vendor.99a913bcc02dad4e392a.js 5.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. webpackJsonp([0],{"++K3":function(e,t){var n,r,i,a,o,s,l,c,u,h,d,f,p,g,A,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),g=/FBAN\/\w+;/i.exec(e),A=/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||A},nativeApp:function(){return v()||g},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})},"+N5+":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function a(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function o(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n("881s");var h=/[&<>"]/,d=/[&<>"]/g,f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function p(e){return f[e]}var g=/[.?*+^$[\]\\(){}|-]/g;var A=n("TUzn");t.lib={},t.lib.mdurl=n("HxqY"),t.lib.ucmicro=n("QgkH"),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,function(e,t,n){return t||function(e,t){var n=0;return i(u,t)?u[t]:35===t.charCodeAt(0)&&c.test(t)&&a(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?o(n):e}(e,n)})},t.isValidEntityCode=a,t.fromCodePoint=o,t.escapeHtml=function(e){return h.test(e)?e.replace(d,p):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return A.test(e)},t.escapeRE=function(e){return e.replace(g,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},"+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}},"/00o":function(e,t,n){var r=n("To6e"),i=r.System,a=r.VbrMode,o=(r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n),s=(r.new_byte,r.new_double,r.new_float),l=r.new_float_n,c=r.new_int,u=(r.new_int_n,r.assert);function h(){var e=n("zEpL"),t=n("1xnL"),r=n("ZezE"),d=h.FFTOFFSET,f=h.MPG_MD_MS_LR,p=null;this.psy=null;var g=null,A=null,m=null;this.setModules=function(e,t,n,r){p=e,this.psy=t,g=t,A=r,m=n};var v=new e;this.lame_encode_mp3_frame=function(e,n,y,b,_,w){var x,C=o([2,2]);C[0][0]=new t,C[0][1]=new t,C[1][0]=new t,C[1][1]=new t;var S,k=o([2,2]);k[0][0]=new t,k[0][1]=new t,k[1][0]=new t,k[1][1]=new t;var E,T,B,I=[null,null],M=e.internal_flags,P=l([2,4]),D=[.5,.5],F=[[0,0],[0,0]],O=[[0,0],[0,0]];if(I[0]=n,I[1]=y,0==M.lame_encode_frame_init&&function(e,t){var n,r,i=e.internal_flags;if(0==i.lame_encode_frame_init){var a,o,l=s(2014),c=s(2014);for(i.lame_encode_frame_init=1,a=0,o=0;a<286+576*(1+i.mode_gr);++a)a<576*i.mode_gr?(l[a]=0,2==i.channels_out&&(c[a]=0)):(l[a]=t[0][o],2==i.channels_out&&(c[a]=t[1][o]),++o);for(r=0;r<i.mode_gr;r++)for(n=0;n<i.channels_out;n++)i.l3_side.tt[r][n].block_type=h.SHORT_TYPE;v.mdct_sub48(i,l,c),u(576>=h.FFTOFFSET),u(i.mf_size>=h.BLKSIZE+e.framesize-h.FFTOFFSET),u(i.mf_size>=512+e.framesize-32)}}(e,I),M.padding=0,(M.slot_lag-=M.frac_SpF)<0&&(M.slot_lag+=e.out_samplerate,M.padding=1),0!=M.psymodel){var L=[null,null],R=0,N=c(2);for(B=0;B<M.mode_gr;B++){for(T=0;T<M.channels_out;T++)L[T]=I[T],R=576+576*B-h.FFTOFFSET;if(0!=(e.VBR==a.vbr_mtrh||e.VBR==a.vbr_mt?g.L3psycho_anal_vbr(e,L,R,B,C,k,F[B],O[B],P[B],N):g.L3psycho_anal_ns(e,L,R,B,C,k,F[B],O[B],P[B],N)))return-4;for(e.mode==r.JOINT_STEREO&&(D[B]=P[B][2]+P[B][3],D[B]>0&&(D[B]=P[B][3]/D[B])),T=0;T<M.channels_out;T++){var U=M.l3_side.tt[B][T];U.block_type=N[T],U.mixed_block_flag=0}}}else for(B=0;B<M.mode_gr;B++)for(T=0;T<M.channels_out;T++)M.l3_side.tt[B][T].block_type=h.NORM_TYPE,M.l3_side.tt[B][T].mixed_block_flag=0,O[B][T]=F[B][T]=700;if(function(e){var t,n;if(0!=e.ATH.useAdjust)if(n=e.loudness_sq[0][0],t=e.loudness_sq[1][0],2==e.channels_out?(n+=e.loudness_sq[0][1],t+=e.loudness_sq[1][1]):(n+=n,t+=t),2==e.mode_gr&&(n=Math.max(n,t)),n*=.5,(n*=e.ATH.aaSensitivityP)>.03125)e.ATH.adjust>=1?e.ATH.adjust=1:e.ATH.adjust<e.ATH.adjustLimit&&(e.ATH.adjust=e.ATH.adjustLimit),e.ATH.adjustLimit=1;else{var r=31.98*n+625e-6;e.ATH.adjust>=r?(e.ATH.adjust*=.075*r+.925,e.ATH.adjust<r&&(e.ATH.adjust=r)):e.ATH.adjustLimit>=r?e.ATH.adjust=r:e.ATH.adjust<e.ATH.adjustLimit&&(e.ATH.adjust=e.ATH.adjustLimit),e.ATH.adjustLimit=r}else e.ATH.adjust=1}(M),v.mdct_sub48(M,I[0],I[1]),M.mode_ext=h.MPG_MD_LR_LR,e.force_ms)M.mode_ext=h.MPG_MD_MS_LR;else if(e.mode==r.JOINT_STEREO){var j=0,H=0;for(B=0;B<M.mode_gr;B++)for(T=0;T<M.channels_out;T++)j+=O[B][T],H+=F[B][T];if(j<=1*H){var z=M.l3_side.tt[0],Q=M.l3_side.tt[M.mode_gr-1];z[0].block_type==z[1].block_type&&Q[0].block_type==Q[1].block_type&&(M.mode_ext=h.MPG_MD_MS_LR)}}if(M.mode_ext==f?(S=k,E=O):(S=C,E=F),e.analysis&&null!=M.pinfo)for(B=0;B<M.mode_gr;B++)for(T=0;T<M.channels_out;T++)M.pinfo.ms_ratio[B]=M.ms_ratio[B],M.pinfo.ms_ener_ratio[B]=D[B],M.pinfo.blocktype[B][T]=M.l3_side.tt[B][T].block_type,M.pinfo.pe[B][T]=E[B][T],i.arraycopy(M.l3_side.tt[B][T].xr,0,M.pinfo.xr[B][T],0,576),M.mode_ext==f&&(M.pinfo.ers[B][T]=M.pinfo.ers[B][T+2],i.arraycopy(M.pinfo.energy[B][T+2],0,M.pinfo.energy[B][T],0,M.pinfo.energy[B][T].length));if(e.VBR==a.vbr_off||e.VBR==a.vbr_abr){var V,G;for(V=0;V<18;V++)M.nsPsy.pefirbuf[V]=M.nsPsy.pefirbuf[V+1];for(G=0,B=0;B<M.mode_gr;B++)for(T=0;T<M.channels_out;T++)G+=E[B][T];for(M.nsPsy.pefirbuf[18]=G,G=M.nsPsy.pefirbuf[9],V=0;V<9;V++)G+=(M.nsPsy.pefirbuf[V]+M.nsPsy.pefirbuf[18-V])*h.fircoef[V];for(G=3350*M.mode_gr*M.channels_out/G,B=0;B<M.mode_gr;B++)for(T=0;T<M.channels_out;T++)E[B][T]*=G}if(M.iteration_loop.iteration_loop(e,E,D,S),p.format_bitstream(e),x=p.copy_buffer(M,b,_,w,1),e.bWriteVbrTag&&A.addVbrFrame(e),e.analysis&&null!=M.pinfo){for(T=0;T<M.channels_out;T++){var q;for(q=0;q<d;q++)M.pinfo.pcmdata[T][q]=M.pinfo.pcmdata[T][q+e.framesize];for(q=d;q<1600;q++)M.pinfo.pcmdata[T][q]=I[T][q-d]}m.set_frame_pinfo(e,S)}return function(e){var t,n;for(u(0<=e.bitrate_index&&e.bitrate_index<16),u(0<=e.mode_ext&&e.mode_ext<4),e.bitrate_stereoMode_Hist[e.bitrate_index][4]++,e.bitrate_stereoMode_Hist[15][4]++,2==e.channels_out&&(e.bitrate_stereoMode_Hist[e.bitrate_index][e.mode_ext]++,e.bitrate_stereoMode_Hist[15][e.mode_ext]++),t=0;t<e.mode_gr;++t)for(n=0;n<e.channels_out;++n){var r=0|e.l3_side.tt[t][n].block_type;0!=e.l3_side.tt[t][n].mixed_block_flag&&(r=4),e.bitrate_blockType_Hist[e.bitrate_index][r]++,e.bitrate_blockType_Hist[e.bitrate_index][5]++,e.bitrate_blockType_Hist[15][r]++,e.bitrate_blockType_Hist[15][5]++}}(M),x}}h.ENCDELAY=576,h.POSTDELAY=1152,h.MDCTDELAY=48,h.FFTOFFSET=224+h.MDCTDELAY,h.DECDELAY=528,h.SBLIMIT=32,h.CBANDS=64,h.SBPSY_l=21,h.SBPSY_s=12,h.SBMAX_l=22,h.SBMAX_s=13,h.PSFB21=6,h.PSFB12=6,h.BLKSIZE=1024,h.HBLKSIZE=h.BLKSIZE/2+1,h.BLKSIZE_s=256,h.HBLKSIZE_s=h.BLKSIZE_s/2+1,h.NORM_TYPE=0,h.START_TYPE=1,h.SHORT_TYPE=2,h.STOP_TYPE=3,h.MPG_MD_LR_LR=0,h.MPG_MD_LR_I=1,h.MPG_MD_MS_LR=2,h.MPG_MD_MS_I=3,h.fircoef=[-.1039435,-.1892065,5*-.0432472,-.155915,3.898045e-17,.0467745*5,.50455,.756825,.187098*5],e.exports=h},"/506":function(e,t,n){"use strict";var r=n("75l9"),i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={},o=r.version.split(".");function s(e,t){for(var n=t?t.split("."):o,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(e,t,n){var i=t&&s(t);function o(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(o(r," has been removed in "+t));return i&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],o=t[a];if(o){var s=e[a],l=void 0===s||o(s,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:i}},"/OLh":function(e,t,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},"/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.2
  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=g(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 g(e){if(Array.isArray(e))return e.map(g);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=g(e[n]);return t}return e}var A=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===A?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 _={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],g=p&&p.component;return g?(p.configProps&&w(g,o,p.route,p.configProps),s(g,o,r)):s()}var A=c.matched[h],m=A&&A.components[l];if(!A||!m)return u[l]=null,s();u[l]={component:m},o.registerRouteInstance=function(e,t){var n=A.instances[l];(t&&n!==e||!t&&n===e)&&(A.instances[l]=t)},(o.hook||(o.hook={})).prepatch=function(e,t){A.instances[l]=t.componentInstance},o.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==A.instances[l]&&(A.instances[l]=e.componentInstance),b(c)};var v=A.props&&A.props[l];return v&&(i(u[l],{route:c,configProps:v}),w(m,o,c,v)),s(m,o,r)}};function w(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 x(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=j,E=P,T=function(e,t){return F(P(e,t),t)},B=F,I=U,M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function P(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],g=n[5],A=n[6],m=n[7];o&&(r.push(o),o="");var v=null!=d&&null!=h&&h!==d,y="+"===A||"*"===A,b="?"===A||"*"===A,_=n[2]||s,w=p||g;r.push({name:f||i++,prefix:d||"",delimiter:_,optional:b,repeat:y,partial:v,asterisk:!!m,pattern:w?L(w):m?".*":"[^"+O(_)+"]+?"})}}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 F(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 j(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(j(e[i],t,n).source);return R(new RegExp("(?:"+r.join("|")+")",N(n)),t)}(e,t,n):function(e,t,n){return U(P(e,n),t,n)}(e,t,n)}k.parse=E,k.compile=T,k.tokensToFunction=B,k.tokensToRegExp=I;var H=Object.create(null);function z(e,t,n){t=t||{};try{var r=H[e]||(H[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 Q(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=z(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?x(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),g=a.hash||c.hash;return g&&"#"!==g.charAt(0)&&(g="#"+g),{_normalized:!0,path:f,query:p,hash:g}}var V,G=[String,Object],q=[String,Array],W=function(){},$={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:q,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,g=null==h?"router-link-exact-active":h,A=null==this.activeClass?d:this.activeClass,m=null==this.exactActiveClass?g:this.exactActiveClass,y=s.redirectedFrom?p(null,Q(s.redirectedFrom),null,n):s;c[m]=v(r,y,this.exactPath),c[A]=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,_=function(e){K(e)&&(t.replace?n.replace(o,W):n.push(o,W))},w={click:K};Array.isArray(this.event)?this.event.forEach(function(e){w[e]=_}):w[this.event]=_;var x={class:c},C=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:s,navigate:_,isActive:c[A],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)x.on=w,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 E in k.on=k.on||{},k.on){var T=k.on[E];E in w&&(k.on[E]=Array.isArray(T)?T:[T])}for(var B in w)B in k.on?k.on[B].push(w[B]):k.on[B]=_;var I=S.data.attrs=i({},S.data.attrs);I.href=l,I["aria-current"]=b}else x.on=w}return e(this.tag,x,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",_),e.component("RouterLink",$);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var X="undefined"!=typeof window;function Z(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 g={path:p,children:i.children};e(t,n,r,g,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 J(e,t){var n=Z(e),r=n.pathList,i=n.pathMap,a=n.nameMap;function o(e,n,o){var s=Q(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=z(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],g=i[p];if(ee(g.regex,s.path,s.params))return l(g,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 g=function(e,t){return x(e,t.parent?t.parent.path:"/",!0)}(u,e);return o({_normalized:!0,path:z(g,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:z(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;Z([t||e],r,i,a,n),n&&n.alias.length&&Z(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){Z(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){ge(e,a)}).catch(function(e){0}):ge(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 ge(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 Ae,me=X&&((-1===(Ae=window.navigator.userAgent).indexOf("Android 2.")&&-1===Ae.indexOf("Android 4.0")||-1===Ae.indexOf("Mobile Safari")||-1!==Ae.indexOf("Chrome")||-1!==Ae.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 _e={redirected:2,aborted:4,cancelled:8,duplicated:16};function we(e,t){return Ce(e,t,_e.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 xe(e,t){return Ce(e,t,_e.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 Ee(e,t){return ke(e)&&e._isRouter&&(null==t||e.type===t)}function Te(e){return function(t,n,r){var i=!1,a=0,o=null;Be(e,function(e,t,n,s){if("function"==typeof e&&void 0===e.cid){i=!0,a++;var l,c=Pe(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=Pe(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 Be(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 Pe(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=A,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Fe(e,t,n,r){var i=Be(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&&(Ee(e,_e.redirected)&&a===A||(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){!Ee(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,_e.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,g=function(t,n){if(i.pending!==e)return l(xe(a,e));try{t(e,a,function(t){!1===t?(i.ensureURL(!0),l(function(e,t){return Ce(e,t,_e.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(we(a,e)),"object"==typeof t&&t.replace?i.replace(t):i.push(t)):n(t)})}catch(e){l(e)}};be([].concat(function(e){return Fe(e,"beforeRouteLeave",Oe,!0)}(f),this.router.beforeHooks,function(e){return Fe(e,"beforeRouteUpdate",Oe)}(d),p.map(function(e){return e.beforeEnter}),Te(p)),g,function(){be(function(e){return Fe(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),g,function(){if(i.pending!==e)return l(xe(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=A,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===A&&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,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(C(r+"/"))||(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(je(),function(r){n&&le(e.router,r,t,!0),me||Qe(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){ze(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){Qe(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;je()!==t&&(e?ze(t):Qe(t))},t.prototype.getCurrentLocation=function(){return je()},t}(De);function Ue(){var e=je();return"/"===e.charAt(0)||(Qe("/"+e),!1)}function je(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function He(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function ze(e){me?ve(He(e)):window.location.hash=e}function Qe(e){me?ye(He(e)):window.location.replace(He(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){Ee(e,_e.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=J(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}},qe={currentRoute:{configurable:!0}};function We(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)},qe.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 We(this.beforeHooks,e)},Ge.prototype.beforeResolve=function(e){return We(this.resolveHooks,e)},Ge.prototype.afterEach=function(e){return We(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=Q(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!==A&&this.history.transitionTo(this.history.getCurrentLocation())},Ge.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==A&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ge.prototype,qe),Ge.install=Y,Ge.version="3.5.2",Ge.isNavigationFailure=Ee,Ge.NavigationFailureType=_e,Ge.START_LOCATION=A,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}}},"0hxZ":function(e,t,n){var r=n("To6e"),i=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=(r.new_float_n,r.new_int),o=(r.new_int_n,r.assert,n("Y2/2"));e.exports=function(){this.linprebuf=i(2*o.MAX_ORDER),this.linpre=0,this.lstepbuf=i(o.MAX_SAMPLES_PER_WINDOW+o.MAX_ORDER),this.lstep=0,this.loutbuf=i(o.MAX_SAMPLES_PER_WINDOW+o.MAX_ORDER),this.lout=0,this.rinprebuf=i(2*o.MAX_ORDER),this.rinpre=0,this.rstepbuf=i(o.MAX_SAMPLES_PER_WINDOW+o.MAX_ORDER),this.rstep=0,this.routbuf=i(o.MAX_SAMPLES_PER_WINDOW+o.MAX_ORDER),this.rout=0,this.sampleWindow=0,this.totsamp=0,this.lsum=0,this.rsum=0,this.freqindex=0,this.first=0,this.A=a(0|o.STEPS_per_dB*o.MAX_dB),this.B=a(0|o.STEPS_per_dB*o.MAX_dB)}},"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=104)}({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")},104: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))})}}}})},"0mjX":function(e,t,n){var r=n("To6e"),i=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=(r.new_float_n,r.new_int),o=(r.new_int_n,r.assert,n("jhNZ"));e.exports=function(){this.xr=i(576),this.l3_enc=a(576),this.scalefac=a(o.SFBMAX),this.xrpow_max=0,this.part2_3_length=0,this.big_values=0,this.count1=0,this.global_gain=0,this.scalefac_compress=0,this.block_type=0,this.mixed_block_flag=0,this.table_select=a(3),this.subblock_gain=a(4),this.region0_count=0,this.region1_count=0,this.preflag=0,this.scalefac_scale=0,this.count1table_select=0,this.part2_length=0,this.sfb_lmax=0,this.sfb_smin=0,this.psy_lmax=0,this.sfbmax=0,this.psymax=0,this.sfbdivide=0,this.width=a(o.SFBMAX),this.window=a(o.SFBMAX),this.count1bits=0,this.sfb_partition_table=null,this.slen=a(4),this.max_nonzero_coeff=0;var e=this;function t(e){return new Int32Array(e)}this.assign=function(n){var r;e.xr=(r=n.xr,new Float32Array(r)),e.l3_enc=t(n.l3_enc),e.scalefac=t(n.scalefac),e.xrpow_max=n.xrpow_max,e.part2_3_length=n.part2_3_length,e.big_values=n.big_values,e.count1=n.count1,e.global_gain=n.global_gain,e.scalefac_compress=n.scalefac_compress,e.block_type=n.block_type,e.mixed_block_flag=n.mixed_block_flag,e.table_select=t(n.table_select),e.subblock_gain=t(n.subblock_gain),e.region0_count=n.region0_count,e.region1_count=n.region1_count,e.preflag=n.preflag,e.scalefac_scale=n.scalefac_scale,e.count1table_select=n.count1table_select,e.part2_length=n.part2_length,e.sfb_lmax=n.sfb_lmax,e.sfb_smin=n.sfb_smin,e.psy_lmax=n.psy_lmax,e.sfbmax=n.sfbmax,e.psymax=n.psymax,e.sfbdivide=n.sfbdivide,e.width=t(n.width),e.window=t(n.window),e.count1bits=n.count1bits,e.sfb_partition_table=n.sfb_partition_table.slice(0),e.slen=t(n.slen),e.max_nonzero_coeff=n.max_nonzero_coeff}}},"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),A)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||{},g=!!e.sync,A=!1,m={body:void 0,headers:{},statusCode:0,method:d,url:h,rawRequest:c};if("json"in e&&!1!==e.json&&(A=!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,!g,e.username,e.password),g||(c.withCredentials=!!e.withCredentials),!g&&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)}})},"1b2O":function(e,t,n){"use strict";function r(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},"1gAI":function(e,t,n){var r=n("To6e"),i=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays),o=(r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int),s=(r.new_int_n,r.assert),l=n("/00o"),c=n("OSvQ"),u=n("0mjX"),h=n("mlh9");e.exports=function e(){var t=null;function n(e){this.bits=0|e}this.qupvt=null,this.setModules=function(e){this.qupvt=e,t=e};var r=[[0,0],[0,0],[0,0],[0,0],[0,0],[0,1],[1,1],[1,1],[1,2],[2,2],[2,3],[2,3],[3,4],[3,4],[3,4],[4,5],[4,5],[4,6],[5,6],[5,6],[5,7],[6,7],[6,7]];function d(e,t,n,r,i,a){var o=.5946/t;for(s(e>0),e>>=1;0!=e--;)i[a++]=o>n[r++]?0:1,i[a++]=o>n[r++]?0:1}function f(e,n,r,i,a,o){s(e>0);var l=(e>>=1)%2;for(e>>=1;0!=e--;){var c,u,h,d,f,p,g,A;c=r[i++]*n,u=r[i++]*n,f=0|c,h=r[i++]*n,p=0|u,d=r[i++]*n,g=0|h,c+=t.adj43[f],A=0|d,u+=t.adj43[p],a[o++]=0|c,h+=t.adj43[g],a[o++]=0|u,d+=t.adj43[A],a[o++]=0|h,a[o++]=0|d}0!=l&&(f=0|(c=r[i++]*n),p=0|(u=r[i++]*n),c+=t.adj43[f],u+=t.adj43[p],a[o++]=0|c,a[o++]=0|u)}var p=[1,2,5,7,7,10,10,13,13,13,13,13,13,13,13];function g(e,t,n,r){var i=function(e,t,n){var r=0,i=0;do{var a=e[t++],o=e[t++];r<a&&(r=a),i<o&&(i=o)}while(t<n);return r<i&&(r=i),r}(e,t,n);switch(i){case 0:return i;case 1:return function(e,t,n,r){var i=0,a=c.ht[1].hlen;do{var o=2*e[t+0]+e[t+1];t+=2,i+=a[o]}while(t<n);return r.bits+=i,1}(e,t,n,r);case 2:case 3:return function(e,t,n,r,i){var a,o,s=0,l=c.ht[r].xlen;o=2==r?c.table23:c.table56;do{var u=e[t+0]*l+e[t+1];t+=2,s+=o[u]}while(t<n);return a=65535&s,(s>>=16)>a&&(s=a,r++),i.bits+=s,r}(e,t,n,p[i-1],r);case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:return function(e,t,n,r,i){var a=0,o=0,s=0,l=c.ht[r].xlen,u=c.ht[r].hlen,h=c.ht[r+1].hlen,d=c.ht[r+2].hlen;do{var f=e[t+0]*l+e[t+1];t+=2,a+=u[f],o+=h[f],s+=d[f]}while(t<n);var p=r;return a>o&&(a=o,p++),a>s&&(a=s,p=r+2),i.bits+=a,p}(e,t,n,p[i-1],r);default:if(i>h.IXMAX_VAL)return r.bits=h.LARGE_BITS,-1;var a,o;for(i-=15,a=24;a<32&&!(c.ht[a].linmax>=i);a++);for(o=a-8;o<24&&!(c.ht[o].linmax>=i);o++);return function(e,t,n,r,i,a){var o,s=65536*c.ht[r].xlen+c.ht[i].xlen,l=0;do{var u=e[t++],h=e[t++];0!=u&&(u>14&&(u=15,l+=s),u*=16),0!=h&&(h>14&&(h=15,l+=s),u+=h),l+=c.largetbl[u]}while(t<n);return o=65535&l,(l>>=16)>o&&(l=o,r=i),a.bits+=l,r}(e,t,n,o,a,r)}}function A(e,t,r,i,a,o,s,c){for(var u=t.big_values,h=2;h<l.SBMAX_l+1;h++){var d=e.scalefac_band.l[h];if(d>=u)break;var f=a[h-2]+t.count1bits;if(r.part2_3_length<=f)break;var p=new n(f),A=g(i,d,u,p);f=p.bits,r.part2_3_length<=f||(r.assign(t),r.part2_3_length=f,r.region0_count=o[h-2],r.region1_count=h-2-o[h-2],r.table_select[0]=s[h-2],r.table_select[1]=c[h-2],r.table_select[2]=A)}}this.noquant_count_bits=function(e,t,r){var i=t.l3_enc,a=Math.min(576,t.max_nonzero_coeff+2>>1<<1);for(null!=r&&(r.sfb_count1=0);a>1&&0==(i[a-1]|i[a-2]);a-=2);t.count1=a;for(var o=0,u=0;a>3;a-=4){var h;if((2147483647&(i[a-1]|i[a-2]|i[a-3]|i[a-4]))>1)break;h=2*(2*(2*i[a-4]+i[a-3])+i[a-2])+i[a-1],o+=c.t32l[h],u+=c.t33l[h]}var d=o;if(t.count1table_select=0,o>u&&(d=u,t.count1table_select=1),t.count1bits=d,t.big_values=a,0==a)return d;if(t.block_type==l.SHORT_TYPE)(o=3*e.scalefac_band.s[3])>t.big_values&&(o=t.big_values),u=t.big_values;else if(t.block_type==l.NORM_TYPE){if(s(a<=576),o=t.region0_count=e.bv_scf[a-2],u=t.region1_count=e.bv_scf[a-1],s(o+u+2<l.SBPSY_l),u=e.scalefac_band.l[o+u+2],o=e.scalefac_band.l[o+1],u<a){var f=new n(d);t.table_select[2]=g(i,u,a,f),d=f.bits}}else t.region0_count=7,t.region1_count=l.SBMAX_l-1-7-1,(o=e.scalefac_band.l[8])>(u=a)&&(o=u);if(o=Math.min(o,a),u=Math.min(u,a),s(o>=0),s(u>=0),0<o&&(f=new n(d),t.table_select[0]=g(i,0,o,f),d=f.bits),o<u&&(f=new n(d),t.table_select[1]=g(i,o,u,f),d=f.bits),2==e.use_best_huffman&&(t.part2_3_length=d,best_huffman_divide(e,t),d=t.part2_3_length),null!=r&&t.block_type==l.NORM_TYPE){for(var p=0;e.scalefac_band.l[p]<t.big_values;)p++;r.sfb_count1=p}return d},this.count_bits=function(e,n,r,i){var o=r.l3_enc,c=h.IXMAX_VAL/t.IPOW20(r.global_gain);if(r.xrpow_max>c)return h.LARGE_BITS;if(function(e,n,r,i,o){var c,u,h,p=0,g=0,A=0,m=0,v=n,y=0,b=v,_=0,w=e,x=0;for(h=null!=o&&i.global_gain==o.global_gain,u=i.block_type==l.SHORT_TYPE?38:21,c=0;c<=u;c++){var C=-1;if((h||i.block_type==l.NORM_TYPE)&&(C=i.global_gain-(i.scalefac[c]+(0!=i.preflag?t.pretab[c]:0)<<i.scalefac_scale+1)-8*i.subblock_gain[i.window[c]]),s(i.width[c]>=0),h&&o.step[c]==C)0!=g&&(f(g,r,w,x,b,_),g=0),0!=A&&(d(A,r,w,x,b,_),A=0);else{var S,k=i.width[c];if(p+i.width[c]>i.max_nonzero_coeff&&(S=i.max_nonzero_coeff-p+1,a.fill(n,i.max_nonzero_coeff,576,0),(k=S)<0&&(k=0),c=u+1),0==g&&0==A&&(b=v,_=y,w=e,x=m),null!=o&&o.sfb_count1>0&&c>=o.sfb_count1&&o.step[c]>0&&C>=o.step[c]?(0!=g&&(f(g,r,w,x,b,_),g=0,b=v,_=y,w=e,x=m),A+=k):(0!=A&&(d(A,r,w,x,b,_),A=0,b=v,_=y,w=e,x=m),g+=k),k<=0){0!=A&&(d(A,r,w,x,b,_),A=0),0!=g&&(f(g,r,w,x,b,_),g=0);break}}c<=u&&(y+=i.width[c],m+=i.width[c],p+=i.width[c])}0!=g&&(f(g,r,w,x,b,_),g=0),0!=A&&(d(A,r,w,x,b,_),A=0)}(n,o,t.IPOW20(r.global_gain),r,i),0!=(2&e.substep_shaping))for(var u=0,p=r.global_gain+r.scalefac_scale,g=.634521682242439/t.IPOW20(p),A=0;A<r.sfbmax;A++){var m,v=r.width[A];if(s(v>=0),0==e.pseudohalf[A])u+=v;else for(m=u,u+=v;m<u;++m)o[m]=n[m]>=g?o[m]:0}return this.noquant_count_bits(e,r,i)},this.best_huffman_divide=function(e,t){var r=new u,i=t.l3_enc,a=o(23),d=o(23),f=o(23),p=o(23);if(t.block_type!=l.SHORT_TYPE||1!=e.mode_gr){r.assign(t),t.block_type==l.NORM_TYPE&&(function(e,t,r,i,a,o,s){for(var l=t.big_values,c=0;c<=22;c++)i[c]=h.LARGE_BITS;for(c=0;c<16;c++){var u=e.scalefac_band.l[c+1];if(u>=l)break;var d=0,f=new n(d),p=g(r,0,u,f);d=f.bits;for(var A=0;A<8;A++){var m=e.scalefac_band.l[c+A+2];if(m>=l)break;var v=d,y=g(r,u,m,f=new n(v));v=f.bits,i[c+A]>v&&(i[c+A]=v,a[c+A]=c,o[c+A]=p,s[c+A]=y)}}}(e,t,i,a,d,f,p),A(e,r,t,i,a,d,f,p));var m=r.big_values;if(!(0==m||(i[m-2]|i[m-1])>1||(m=t.count1+2)>576)){r.assign(t),r.count1=m;var v=0,y=0;for(s(m<=576);m>r.big_values;m-=4){var b=2*(2*(2*i[m-4]+i[m-3])+i[m-2])+i[m-1];v+=c.t32l[b],y+=c.t33l[b]}if(r.big_values=m,r.count1table_select=0,v>y&&(v=y,r.count1table_select=1),r.count1bits=v,r.block_type==l.NORM_TYPE)A(e,r,t,i,a,d,f,p);else{if(r.part2_3_length=v,(v=e.scalefac_band.l[8])>m&&(v=m),v>0){var _=new n(r.part2_3_length);r.table_select[0]=g(i,0,v,_),r.part2_3_length=_.bits}m>v&&(_=new n(r.part2_3_length),r.table_select[1]=g(i,v,m,_),r.part2_3_length=_.bits),t.part2_3_length>r.part2_3_length&&t.assign(r)}}}};var m=[1,1,1,1,8,2,2,2,4,4,4,8,8,8,16,16],v=[1,2,4,8,1,2,4,8,2,4,8,2,4,8,4,8],y=[0,0,0,0,3,1,1,1,2,2,2,3,3,3,4,4],b=[0,1,2,3,0,1,2,3,1,2,3,1,2,3,2,3];e.slen1_tab=y,e.slen2_tab=b,this.best_scalefac_store=function(e,n,r,i){var a,o,u,h,d=i.tt[n][r],f=0;for(u=0,a=0;a<d.sfbmax;a++){var p=d.width[a];for(s(p>=0),u+=p,h=-p;h<0&&0==d.l3_enc[h+u];h++);0==h&&(d.scalefac[a]=f=-2)}if(0==d.scalefac_scale&&0==d.preflag){var g=0;for(a=0;a<d.sfbmax;a++)d.scalefac[a]>0&&(g|=d.scalefac[a]);if(0==(1&g)&&0!=g){for(a=0;a<d.sfbmax;a++)d.scalefac[a]>0&&(d.scalefac[a]>>=1);d.scalefac_scale=f=1}}if(0==d.preflag&&d.block_type!=l.SHORT_TYPE&&2==e.mode_gr){for(a=11;a<l.SBPSY_l&&!(d.scalefac[a]<t.pretab[a]&&-2!=d.scalefac[a]);a++);if(a==l.SBPSY_l){for(a=11;a<l.SBPSY_l;a++)d.scalefac[a]>0&&(d.scalefac[a]-=t.pretab[a]);d.preflag=f=1}}for(o=0;o<4;o++)i.scfsi[r][o]=0;for(2==e.mode_gr&&1==n&&i.tt[0][r].block_type!=l.SHORT_TYPE&&i.tt[1][r].block_type!=l.SHORT_TYPE&&(function(e,t){for(var n,r=t.tt[1][e],i=t.tt[0][e],a=0;a<c.scfsi_band.length-1;a++){for(n=c.scfsi_band[a];n<c.scfsi_band[a+1]&&!(i.scalefac[n]!=r.scalefac[n]&&r.scalefac[n]>=0);n++);if(n==c.scfsi_band[a+1]){for(n=c.scfsi_band[a];n<c.scfsi_band[a+1];n++)r.scalefac[n]=-1;t.scfsi[e][a]=1}}var o=0,s=0;for(n=0;n<11;n++)-1!=r.scalefac[n]&&(s++,o<r.scalefac[n]&&(o=r.scalefac[n]));for(var u=0,h=0;n<l.SBPSY_l;n++)-1!=r.scalefac[n]&&(h++,u<r.scalefac[n]&&(u=r.scalefac[n]));for(a=0;a<16;a++)if(o<m[a]&&u<v[a]){var d=y[a]*s+b[a]*h;r.part2_length>d&&(r.part2_length=d,r.scalefac_compress=a)}}(r,i),f=0),a=0;a<d.sfbmax;a++)-2==d.scalefac[a]&&(d.scalefac[a]=0);0!=f&&(2==e.mode_gr?this.scale_bitcount(d):this.scale_bitcount_lsf(e,d))};var _=[0,18,36,54,54,36,54,72,54,72,90,72,90,108,108,126],w=[0,18,36,54,51,35,53,71,52,70,88,69,87,105,104,122],x=[0,10,20,30,33,21,31,41,32,42,52,43,53,63,64,74];this.scale_bitcount=function(e){var n,r,i,a=0,o=0,c=e.scalefac;if(s(function(e,t){for(var n=0;n<t;++n)if(e[n]<0)return!1;return!0}(c,e.sfbmax)),e.block_type==l.SHORT_TYPE)i=_,0!=e.mixed_block_flag&&(i=w);else if(i=x,0==e.preflag){for(r=11;r<l.SBPSY_l&&!(c[r]<t.pretab[r]);r++);if(r==l.SBPSY_l)for(e.preflag=1,r=11;r<l.SBPSY_l;r++)c[r]-=t.pretab[r]}for(r=0;r<e.sfbdivide;r++)a<c[r]&&(a=c[r]);for(;r<e.sfbmax;r++)o<c[r]&&(o=c[r]);for(e.part2_length=h.LARGE_BITS,n=0;n<16;n++)a<m[n]&&o<v[n]&&e.part2_length>i[n]&&(e.part2_length=i[n],e.scalefac_compress=n);return e.part2_length==h.LARGE_BITS};var C=[[15,15,7,7],[15,15,7,0],[7,3,0,0],[15,31,31,0],[7,7,7,0],[3,3,0,0]];this.scale_bitcount_lsf=function(e,n){var r,a,c,u,h,d,f,p,g=o(4),A=n.scalefac;for(r=0!=n.preflag?2:0,f=0;f<4;f++)g[f]=0;if(n.block_type==l.SHORT_TYPE){a=1;var m=t.nr_of_sfb_block[r][a];for(p=0,c=0;c<4;c++)for(u=m[c]/3,f=0;f<u;f++,p++)for(h=0;h<3;h++)A[3*p+h]>g[c]&&(g[c]=A[3*p+h])}else for(a=0,m=t.nr_of_sfb_block[r][a],p=0,c=0;c<4;c++)for(u=m[c],f=0;f<u;f++,p++)A[p]>g[c]&&(g[c]=A[p]);for(d=!1,c=0;c<4;c++)g[c]>C[r][c]&&(d=!0);if(!d){var v,y,b,_;for(n.sfb_partition_table=t.nr_of_sfb_block[r][a],c=0;c<4;c++)n.slen[c]=S[g[c]];switch(v=n.slen[0],y=n.slen[1],b=n.slen[2],_=n.slen[3],r){case 0:n.scalefac_compress=(5*v+y<<4)+(b<<2)+_;break;case 1:n.scalefac_compress=400+(5*v+y<<2)+b;break;case 2:n.scalefac_compress=500+3*v+y;break;default:i.err.printf("intensity stereo not implemented yet\n")}}if(!d)for(s(null!=n.sfb_partition_table),n.part2_length=0,c=0;c<4;c++)n.part2_length+=n.slen[c]*n.sfb_partition_table[c];return d};var S=[0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4];this.huffman_init=function(e){for(var t=2;t<=576;t+=2){for(var n,i=0;e.scalefac_band.l[++i]<t;);for(n=r[i][0];e.scalefac_band.l[n+1]>t;)n--;for(n<0&&(n=r[i][0]),e.bv_scf[t-2]=n,n=r[i][1];e.scalefac_band.l[n+e.bv_scf[t-2]+2]>t;)n--;n<0&&(n=r[i][1]),e.bv_scf[t-1]=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()}}}}},"1xnL":function(e,t,n){var r=n("QG6P");e.exports=function(){this.thm=new r,this.en=new r}},"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.setAttribute("class",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.setAttribute("class",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 g=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 A=t.isScroll=function(e,t){if(!o)return g(e,null!==t&&void 0!==t?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)};t.getScrollContainer=function(e,t){if(!o){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(A(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}},"2rcl":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";var r;function i(e){return["image/png","image/jpeg","image/gif"].some(t=>t===e)}n.r(t),n.d(t,"canvastoDataURL",function(){return o}),n.d(t,"canvastoFile",function(){return s}),n.d(t,"dataURLtoFile",function(){return c}),n.d(t,"dataURLtoImage",function(){return u}),n.d(t,"downloadFile",function(){return h}),n.d(t,"filetoDataURL",function(){return d}),n.d(t,"imagetoCanvas",function(){return p}),n.d(t,"urltoBlob",function(){return g}),n.d(t,"urltoImage",function(){return A}),n.d(t,"compress",function(){return v}),n.d(t,"compressAccurately",function(){return y}),n.d(t,"EImageType",function(){return r}),function(e){e.PNG="image/png",e.JPEG="image/jpeg",e.GIF="image/gif"}(r||(r={}));var a=function(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 o(e,t=.92,n=r.JPEG){return a(this,void 0,void 0,function*(){return i(n)||(n=r.JPEG),e.toDataURL(n,t)})}function s(e,t=.92,n=r.JPEG){return new Promise(r=>e.toBlob(e=>r(e),n,t))}var l=function(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 c(e,t){return l(this,void 0,void 0,function*(){const n=e.split(",");let r=n[0].match(/:(.*?);/)[1];const a=atob(n[1]);let o=a.length;const s=new Uint8Array(o);for(;o--;)s[o]=a.charCodeAt(o);return i(t)&&(r=t),new Blob([s],{type:r})})}function u(e){return new Promise((t,n)=>{const r=new Image;r.onload=(()=>t(r)),r.onerror=(()=>n(new Error("dataURLtoImage(): dataURL is illegal"))),r.src=e})}function h(e,t){const n=document.createElement("a");n.href=window.URL.createObjectURL(e),n.download=t||Date.now().toString(36),document.body.appendChild(n);const r=document.createEvent("MouseEvents");r.initEvent("click",!1,!1),n.dispatchEvent(r),document.body.removeChild(n)}function d(e){return new Promise(t=>{const n=new FileReader;n.onloadend=(e=>t(e.target.result)),n.readAsDataURL(e)})}var f=function(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 p(e,t={}){return f(this,void 0,void 0,function*(){const n=Object.assign({},t),r=document.createElement("canvas"),i=r.getContext("2d");let a,o;for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e]=Number(n[e]));if(n.scale){const t=n.scale>0&&n.scale<10?n.scale:1;o=e.width*t,a=e.height*t}else o=n.width||n.height*e.width/e.height||e.width,a=n.height||n.width*e.height/e.width||e.height;switch([5,6,7,8].some(e=>e===n.orientation)?(r.height=o,r.width=a):(r.height=a,r.width=o),n.orientation){case 3:i.rotate(180*Math.PI/180),i.drawImage(e,-r.width,-r.height,r.width,r.height);break;case 6:i.rotate(90*Math.PI/180),i.drawImage(e,0,-r.width,r.height,r.width);break;case 8:i.rotate(270*Math.PI/180),i.drawImage(e,-r.height,0,r.height,r.width);break;case 2:i.translate(r.width,0),i.scale(-1,1),i.drawImage(e,0,0,r.width,r.height);break;case 4:i.translate(r.width,0),i.scale(-1,1),i.rotate(180*Math.PI/180),i.drawImage(e,-r.width,-r.height,r.width,r.height);break;case 5:i.translate(r.width,0),i.scale(-1,1),i.rotate(90*Math.PI/180),i.drawImage(e,0,-r.width,r.height,r.width);break;case 7:i.translate(r.width,0),i.scale(-1,1),i.rotate(270*Math.PI/180),i.drawImage(e,-r.height,0,r.height,r.width);break;default:i.drawImage(e,0,0,r.width,r.height)}return r})}function g(e){return fetch(e).then(e=>e.blob())}function A(e){return new Promise((t,n)=>{const r=new Image;r.onload=(()=>t(r)),r.onerror=(()=>n(new Error("urltoImage(): Image failed to load, please check the image URL"))),r.src=e})}var m=function(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 v(e,t={}){return m(this,void 0,void 0,function*(){if(!(e instanceof Blob))throw new Error("compress(): First arg must be a Blob object or a File object.");if("object"!=typeof t&&(t=Object.assign({quality:t})),t.quality=Number(t.quality),Number.isNaN(t.quality))return e;const n=yield d(e);let a=n.split(",")[0].match(/:(.*?);/)[1],s=r.JPEG;i(t.type)&&(s=t.type,a=t.type);const l=yield c(yield o(yield p(yield u(n),Object.assign({},t)),t.quality,s),a);return l.size>e.size?e:l})}function y(e,t={}){return m(this,void 0,void 0,function*(){if(!(e instanceof Blob))throw new Error("compressAccurately(): First arg must be a Blob object or a File object.");if("object"!=typeof t&&(t=Object.assign({size:t})),t.size=Number(t.size),Number.isNaN(t.size))return e;if(1024*t.size>e.size)return e;t.accuracy=Number(t.accuracy),(!t.accuracy||t.accuracy<.8||t.accuracy>.99)&&(t.accuracy=.95);const n=t.size*(2-t.accuracy)*1024,a=1024*t.size,s=t.size*t.accuracy*1024,l=yield d(e);let h=l.split(",")[0].match(/:(.*?);/)[1],f=r.JPEG;i(t.type)&&(f=t.type,h=t.type);const g=yield p(yield u(l),Object.assign({},t));let A,m=.5;const v=[null,null];for(let e=1;e<=7;e++){const t=.75*(A=yield o(g,m,f)).length;if(7===e){(n<t||s>t)&&(A=[A,...v].filter(e=>e).sort((e,t)=>Math.abs(.75*e.length-a)-Math.abs(.75*t.length-a))[0]);break}if(n<t)v[1]=A,m-=Math.pow(.5,e+1);else{if(!(s>t))break;v[0]=A,m+=Math.pow(.5,e+1)}}const y=yield c(A,h);return y.size>e.size?e:y})}}])},e.exports=r()},"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))}},"3IRH":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"3a40":function(e,t){!function(e){"use strict";var t=e.jsMind;if(t&&void 0===t.screenshot){var n=e.document,r=function(e){return n.createElement(e)},i=function(e,t){return e.getPropertyValue(t)},a=function(e){var t=i(e,"visibility"),n=i(e,"display");return"hidden"!==t&&"none"!==n},o={rect:function(e,t,n,r,i,a){r<2*a&&(a=r/2),i<2*a&&(a=i/2),e.moveTo(t+a,n),e.arcTo(t+r,n,t+r,n+i,a),e.arcTo(t+r,n+i,t,n+i,a),e.arcTo(t,n+i,t,n,a),e.arcTo(t,n,t+r,n,a)},text_multiline:function(e,t,n,r,i,a,o){var s="",l=t.length,c=t.split(""),u=null;e.textAlign="left",e.textBaseline="top";for(var h=0;h<l;h++)u=s+c[h],e.measureText(u).width>i&&h>0?(e.fillText(s,n,r),s=c[h],r+=o):s=u;e.fillText(s,n,r)},text_ellipsis:function(e,t,n,r,i,a){var s=r+a/2;t=o.fittingString(e,t,i);e.textAlign="left",e.textBaseline="middle",e.fillText(t,n,s,i)},fittingString:function(e,t,n){var r=e.measureText(t).width,i=e.measureText("…").width;if(r<=n||r<=i)return t;for(var a=t.length;r>=n-i&&a-- >0;)t=t.substring(0,a),r=e.measureText(t).width;return t+"…"},image:function(e,t,n,r,i,a,s,l,c){var u=new Image;u.onload=function(){e.save(),e.translate(n,r),e.save(),e.beginPath(),o.rect(e,0,0,i,a,s),e.closePath(),e.clip(),e.translate(i/2,a/2),e.rotate(l*Math.PI/180),e.drawImage(u,-i/2,-a/2),e.restore(),e.restore(),c&&c()},u.src=t}};t.screenshot=function(e){this.jm=e,this.canvas_elem=null,this.canvas_ctx=null,this._inited=!1},t.screenshot.prototype={init:function(){if(!this._inited){console.log("init");var e=r("canvas"),t=e.getContext("2d");this.canvas_elem=e,this.canvas_ctx=t,this.jm.view.e_panel.appendChild(e),this._inited=!0,this.resize()}},shoot:function(e){this.init(),this._draw(function(){e&&e(),this.clean()}.bind(this)),this._watermark()},shootDownload:function(){this.shoot(function(){this._download()}.bind(this))},shootAsDataURL:function(e){this.shoot(function(){e&&e(this.canvas_elem.toDataURL())}.bind(this))},resize:function(){this._inited&&(this.canvas_elem.width=this.jm.view.size.w,this.canvas_elem.height=this.jm.view.size.h)},clean:function(){var e=this.canvas_elem;this.canvas_ctx.clearRect(0,0,e.width,e.height)},_draw:function(e){var t=this.canvas_ctx;t.textAlign="left",t.textBaseline="top",this._draw_lines(function(){this._draw_nodes(e)}.bind(this))},_watermark:function(){var t=this.canvas_elem,n=this.canvas_ctx;n.textAlign="right",n.textBaseline="bottom",n.fillStyle="#000",n.font="11px Verdana,Arial,Helvetica,sans-serif",n.fillText("hizzgdev.github.io/jsmind",t.width-5.5,t.height-2.5),n.textAlign="left",n.fillText(e.location,5.5,t.height-2.5)},_draw_lines:function(e){this.jm.view.graph.copy_to(this.canvas_ctx,e)},_draw_nodes:function(t){var n,r=this.jm.mind.nodes;for(var i in r)n=r[i],this._draw_node(n);!function i(){console.log("check_node_ready"+new Date);var a=!0;for(var o in r)a&=(n=r[o]).ready;a?e.setTimeout(t,200):e.setTimeout(i,200)}()},_draw_node:function(e){var t=this.canvas_ctx,n=e._data.view,r=n.element,s=getComputedStyle(r);if(a(s)){var l=i(s,"background-color"),c=parseInt(i(s,"border-top-left-radius")),u=i(s,"color"),h=parseInt(i(s,"padding-left")),d=parseInt(i(s,"padding-right")),f=parseInt(i(s,"padding-top")),p=parseInt(i(s,"padding-bottom")),g=i(s,"text-overflow"),A=i(s,"font-style")+" "+i(s,"font-variant")+" "+i(s,"font-weight")+" "+i(s,"font-size")+"/"+i(s,"line-height")+" "+i(s,"font-family"),m={x:n.abs_x,y:n.abs_y,w:n.width+1,h:n.height+1},v={x:m.x+h,y:m.y+f,w:m.w-h-d,h:m.h-f-p};if(t.font=A,t.fillStyle=l,t.beginPath(),o.rect(t,m.x,m.y,m.w,m.h,c),t.closePath(),t.fill(),t.fillStyle=u,"background-image"in e.data){var y=i(s,"background-image").slice(5,-2);e.ready=!1;var b=0;"background-rotation"in e.data&&(b=e.data["background-rotation"]),o.image(t,y,m.x,m.y,m.w,m.h,c,b,function(){e.ready=!0})}if(e.topic)if("ellipsis"===g)o.text_ellipsis(t,e.topic,v.x,v.y,v.w,v.h);else{var _=parseInt(i(s,"line-height"));o.text_multiline(t,e.topic,v.x,v.y,v.w,v.h,_)}n.expander&&this._draw_expander(n.expander),"background-image"in e.data||(e.ready=!0)}else e.ready=!0},_draw_expander:function(e){var t=this.canvas_ctx,n=getComputedStyle(e);if(a(n)){var r=i(n,"left"),o=i(n,"top"),s=(i(n,"font"),parseInt(r)),l=parseInt(o),c="+"===e.innerHTML;t.lineWidth=1,t.beginPath(),t.arc(s+7,l+7,5,0,2*Math.PI,!0),t.moveTo(s+10,l+7),t.lineTo(s+4,l+7),c&&(t.moveTo(s+7,l+4),t.lineTo(s+7,l+10)),t.closePath(),t.stroke()}},_download:function(){var e=this.canvas_elem,t=this.jm.mind.name+".png";if(navigator.msSaveBlob&&e.msToBlob){var i=e.msToBlob();navigator.msSaveBlob(i,t)}else{var a=this.canvas_elem.toDataURL(),o=r("a");if("download"in o){o.style.visibility="hidden",o.href=a,o.download=t,n.body.appendChild(o);var s=n.createEvent("MouseEvents");s.initEvent("click",!0,!0),o.dispatchEvent(s),n.body.removeChild(o)}else location.href=a}},jm_event_handle:function(e,n){e===t.event_type.resize&&this.resize()}};var s=new t.plugin("screenshot",function(e){var n=new t.screenshot(e);e.screenshot=n,e.shoot=function(){n.shoot()},e.add_event_listener(function(e,t){n.jm_event_handle.call(n,e,t)})});t.register_plugin(s)}}(window)},"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)]}},"3kQQ":function(e,t,n){"use strict";var r=n("+N5+").unescapeAll;e.exports=function(e,t,n){var i,a,o=0,s=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n)return l;if(34!==(a=e.charCodeAt(t))&&39!==a&&40!==a)return l;for(t++,40===a&&(a=41);t<n;){if((i=e.charCodeAt(t))===a)return l.pos=t+1,l.lines=o,l.str=r(e.slice(s+1,t)),l.ok=!0,l;if(40===i&&41===a)return l;10===i?o++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return l}},"4aIT":function(e,t,n){"use strict";var r=n("/OLh"),i=n("wzKY").HTML_OPEN_CLOSE_TAG_RE,a=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,o,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(l=e.src.slice(c,u),i=0;i<a.length&&!a[i][0].test(l);i++);if(i===a.length)return!1;if(r)return a[i][2];if(o=t+1,!a[i][1].test(l))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(c=e.bMarks[o]+e.tShift[o],u=e.eMarks[o],l=e.src.slice(c,u),a[i][1].test(l)){0!==l.length&&o++;break}return e.line=o,(s=e.push("html_block","",0)).map=[t,o],s.content=e.getLines(t,o,e.blkIndent,!0),!0}},"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])})}},"5zde":function(e,t,n){n("zQR9"),n("qyJz"),e.exports=n("FeBl").Array.from},"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},"6nDL":function(e,t,n){"use strict";var r=n("+N5+").arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,a,o,s,l,c,u,h,d,f,p,g,A,m,v,y,b,_=e.tokens;if(e.md.options.linkify)for(n=0,a=_.length;n<a;n++)if("inline"===_[n].type&&e.md.linkify.pretest(_[n].content))for(g=0,t=(o=_[n].children).length-1;t>=0;t--)if("link_close"!==(l=o[t]).type){if("html_inline"===l.type&&(b=l.content,/^<a[>\s]/i.test(b)&&g>0&&g--,i(l.content)&&g++),!(g>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(h=l.content,y=e.md.linkify.match(h),c=[],p=l.level,f=0,y.length>0&&0===y[0].index&&t>0&&"text_special"===o[t-1].type&&(y=y.slice(1)),u=0;u<y.length;u++)A=y[u].url,m=e.md.normalizeLink(A),e.md.validateLink(m)&&(v=y[u].text,v=y[u].schema?"mailto:"!==y[u].schema||/^mailto:/i.test(v)?e.md.normalizeLinkText(v):e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(d=y[u].index)>f&&((s=new e.Token("text","",0)).content=h.slice(f,d),s.level=p,c.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",m]],s.level=p++,s.markup="linkify",s.info="auto",c.push(s),(s=new e.Token("text","",0)).content=v,s.level=p,c.push(s),(s=new e.Token("link_close","a",-1)).level=--p,s.markup="linkify",s.info="auto",c.push(s),f=y[u].lastIndex);f<h.length&&((s=new e.Token("text","",0)).content=h.slice(f),s.level=p,c.push(s)),_[n].children=o=r(o,t,c)}}else for(t--;o[t].level!==l.level&&"link_open"!==o[t].type;)t--}},"7+uW":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){
  7. /*!
  8. * Vue.js v2.6.14
  9. * (c) 2014-2021 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 g(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var A=g("slot,component",!0),m=g("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 _(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var w=/-(\w)/g,x=_(function(e){return e.replace(w,function(e,t){return t?t.toUpperCase():""})}),C=_(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),S=/\B([A-Z])/g,k=_(function(e){return e.replace(S,"-$1").toLowerCase()});var E=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 T(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function B(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]&&B(t,e[n]);return t}function M(e,t,n){}var P=function(e,t,n){return!1},D=function(e){return e};function F(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 F(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||a)return!1;var o=Object.keys(e),l=Object.keys(t);return o.length===l.length&&o.every(function(n){return F(e[n],t[n])})}catch(e){return!1}}function O(e,t){for(var n=0;n<e.length;n++)if(F(e[n],t))return n;return-1}function L(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var R="data-server-rendered",N=["component","directive","filter"],U=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],j={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:P,isReservedAttr:P,isUnknownElement:P,getTagNamespace:M,parsePlatformTagName:D,mustUseProp:P,async:!0,_lifecycleHooks:U},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function z(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function Q(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var V=new RegExp("[^"+H.source+".$_\\d]");var G,q="__proto__"in{},W="undefined"!=typeof window,$="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,K=$&&WXEnvironment.platform.toLowerCase(),Y=W&&window.navigator.userAgent.toLowerCase(),X=Y&&/msie|trident/.test(Y),Z=Y&&Y.indexOf("msie 9.0")>0,J=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(W)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=!W&&!$&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),G},oe=W&&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 ge(){fe.pop(),de.target=fe[fe.length-1]}var Ae=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(Ae.prototype,me);var ve=function(e){void 0===e&&(e="");var t=new Ae;return t.text=e,t.isComment=!0,t};function ye(e){return new Ae(void 0,void 0,void 0,String(e))}function be(e){var t=new Ae(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 _e=Array.prototype,we=Object.create(_e);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=_e[e];Q(we,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 xe=Object.getOwnPropertyNames(we),Ce=!0;function Se(e){Ce=e}var ke=function(e){var t;this.value=e,this.dep=new de,this.vmCount=0,Q(e,"__ob__",this),Array.isArray(e)?(q?(t=we,e.__proto__=t):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var a=n[r];Q(e,a,t[a])}}(e,we,xe),this.observeArray(e)):this.walk(e)};function Ee(e,t){var n;if(s(e)&&!(e instanceof Ae))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 Te(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&&Ee(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&&Ee(t),a.notify())}})}}function Be(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?(Te(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++)Te(e,t[n])},ke.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ee(e[t])};var Me=j.optionMergeStrategies;function Pe(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)&&Pe(r,i):Be(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?Pe(r,i):i}:t?e?function(){return Pe("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Fe(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?B(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]=Fe}),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 B(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 B(i,e),t&&B(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[x(i)]={type:null});else if(c(n))for(var o in n)i=n[o],a[x(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)?B({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=x(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),Ee(o),Se(c)}return o}var je=/^\s*function (\w+)/;function He(e){var t=e&&e.toString().match(je);return t?t[1]:""}function ze(e,t){return He(e)===He(t)}function Qe(e,t){if(!Array.isArray(t))return ze(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(ze(t[n],e))return n;return-1}function Ve(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){qe(e,r,"errorCaptured hook")}}qe(e,t,n)}finally{ge()}}function Ge(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 Ve(e,r,i+" (Promise/async)")}),a._handled=!0)}catch(e){Ve(e,r,i)}return a}function qe(e,t,n){if(j.errorHandler)try{return j.errorHandler.call(null,e,t,n)}catch(t){t!==e&&We(t,null,"config.errorHandler")}We(e,t,n)}function We(e,t,n){if(!W&&!$||"undefined"==typeof console)throw e;console.error(e)}var $e,Ke=!1,Ye=[],Xe=!1;function Ze(){Xe=!1;var e=Ye.slice(0);Ye.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&se(Promise)){var Je=Promise.resolve();$e=function(){Je.then(Ze),ee&&setTimeout(M)},Ke=!0}else if(X||"undefined"==typeof MutationObserver||!se(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())$e="undefined"!=typeof setImmediate&&se(setImmediate)?function(){setImmediate(Ze)}:function(){setTimeout(Ze,0)};else{var et=1,tt=new MutationObserver(Ze),nt=document.createTextNode(String(et));tt.observe(nt,{characterData:!0}),$e=function(){et=(et+1)%2,nt.data=String(et)},Ke=!0}function rt(e,t){var n;if(Ye.push(function(){if(e)try{e.call(t)}catch(e){Ve(e,t,"nextTick")}else n&&n(t)}),Xe||(Xe=!0,$e()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var it=new le;function at(e){!function e(t,n){var r,i;var a=Array.isArray(t);if(!a&&!s(t)||Object.isFrozen(t)||t instanceof Ae)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,it),it.clear()}var ot=_(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 st(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Ge(r,null,arguments,t,"v-on handler");for(var i=r.slice(),a=0;a<i.length;a++)Ge(i[a],null,e,t,"v-on handler")}return n.fns=e,n}function lt(e,t,n,i,o,s){var l,c,u,h;for(l in e)c=e[l],u=t[l],h=ot(l),r(c)||(r(u)?(r(c.fns)&&(c=e[l]=st(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=ot(l)).name,t[l],h.capture)}function ct(e,t,n){var o;e instanceof Ae&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),v(o.fns,l)}r(s)?o=st([l]):i(s.fns)&&a(s.merged)?(o=s).fns.push(l):o=st([s,l]),o.merged=!0,e[t]=o}function ut(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 ht(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&&(dt((c=e(c,(n||"")+"_"+l))[0])&&dt(h)&&(s[u]=ye(h.text+c[0].text),c.shift()),s.push.apply(s,c)):o(c)?dt(h)?s[u]=ye(h.text+c):""!==c&&s.push(ye(c)):dt(c)&&dt(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 dt(e){return i(e)&&i(e.text)&&!1===e.isComment}function ft(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 pt(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(gt)&&delete n[c];return n}function gt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function At(e){return e.isComment&&e.asyncFactory}function mt(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]=vt(t,l,e[l]))}else i={};for(var c in t)c in i||(i[c]=yt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=i),Q(i,"$stable",o),Q(i,"$key",s),Q(i,"$hasNormal",a),i}function vt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ht(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!At(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function yt(e,t){return function(){return e[t]}}function bt(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 _t(e,t,n,r){var i,a=this.$scopedSlots[e];a?(n=n||{},r&&(n=B(B({},r),n)),i=a(n)||("function"==typeof t?t():t)):i=this.$slots[e]||("function"==typeof t?t():t);var o=n&&n.slot;return o?this.$createElement("template",{slot:o},i):i}function wt(e){return Ne(this.$options,"filters",e)||D}function xt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Ct(e,t,n,r,i){var a=j.keyCodes[t]||n;return i&&r&&!j.keyCodes[t]?xt(i,r):a?xt(a,e):r?k(r)!==t:void 0===e}function St(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||j.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=x(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 kt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t?r:(Tt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r)}function Et(e,t,n){return Tt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Tt(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 It(e,t){if(t)if(c(t)){var n=e.on=e.on?B({},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 Mt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var a=e[i];Array.isArray(a)?Mt(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return r&&(t.$key=r),t}function Pt(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 Dt(e,t){return"string"==typeof e?t+e:e}function Ft(e){e._o=Et,e._n=p,e._s=f,e._l=bt,e._t=_t,e._q=F,e._i=O,e._m=kt,e._f=wt,e._k=Ct,e._b=St,e._v=ye,e._e=ve,e._u=Mt,e._g=It,e._d=Pt,e._p=Dt}function Ot(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=ft(c.inject,i),this.slots=function(){return l.$slots||mt(e.scopedSlots,l.$slots=pt(r,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return mt(e.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=mt(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,r){var a=Vt(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 Vt(s,e,t,n,r,h)}}function Lt(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 Rt(e,t){for(var n in t)e[x(n)]=t[n]}Ft(Ot.prototype);var Nt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Nt.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||!o&&e.$scopedSlots.$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 g=e.$options._parentListeners;e.$options._parentListeners=r,Zt(e,r,g),c&&(e.$slots=pt(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,rn(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,on.push(t)):nn(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,tn(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);rn(t,"deactivated")}}(t,!0):t.$destroy())}},Ut=Object.keys(Nt);function jt(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=qt;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=Wt(n,t),l?o.length=0:h(!0)}),p=L(function(t){i(e.errorComp)&&(e.error=!0,h(!0))}),g=e(f,p);return s(g)&&(d(g)?r(e.resolved)&&g.then(f,p):d(g.component)&&(g.component.then(f,p),i(g.error)&&(e.errorComp=Wt(g.error,t)),i(g.loading)&&(e.loadingComp=Wt(g.loading,t),0===g.delay?e.loading=!0:c=setTimeout(function(){c=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,h(!1))},g.delay||200)),i(g.timeout)&&(u=setTimeout(function(){u=null,r(e.resolved)&&p(null)},g.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||{},kn(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);ut(o,l,c,u,!0)||ut(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)&&Rt(l,r.attrs),i(r.props)&&Rt(l,r.props);var h=new Ot(r,l,o,a,e),d=s.render.call(null,h._c,h);if(d instanceof Ae)return Lt(d,r,h.parent,s);if(Array.isArray(d)){for(var f=ht(d)||[],p=new Array(f.length),g=0;g<f.length;g++)p[g]=Lt(f[g],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 g=t.slot;t={},g&&(t.slot=g)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Ut.length;n++){var r=Ut[n],i=t[r],a=Nt[r];i===a||i&&i._merged||(t[r]=i?Ht(a,i):a)}}(t);var A=e.options.name||c;return new Ae("vue-component-"+e.cid+(A?"-"+A:""),t,void 0,void 0,void 0,o,{Ctor:e,propsData:f,listeners:p,tag:c,children:l},h)}}}function Ht(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}var zt=1,Qt=2;function Vt(e,t,n,l,c,u){return(Array.isArray(n)||o(n))&&(c=l,l=n,n=void 0),a(u)&&(c=Qt),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===Qt?o=ht(o):l===zt&&(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||j.getTagNamespace(t),c=j.isReservedTag(t)?new Ae(j.parsePlatformTagName(t),n,o,void 0,void 0,e):n&&n.pre||!i(h=Ne(e.$options,"components",t))?new Ae(t,n,o,void 0,void 0,e):jt(h,n,e,o,t)}else c=jt(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)&&at(e.style);s(e.class)&&at(e.class)}(n),c):ve()}(e,t,n,l,c)}var Gt,qt=null;function Wt(e,t){return(e.__esModule||ce&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function $t(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||At(n)))return n}}function Kt(e,t){Gt.$on(e,t)}function Yt(e,t){Gt.$off(e,t)}function Xt(e,t){var n=Gt;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function Zt(e,t,n){Gt=e,lt(t,n||{},Kt,Yt,Xt,e),Gt=void 0}var Jt=null;function en(e){var t=Jt;return Jt=e,function(){Jt=t}}function tn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function nn(e,t){if(t){if(e._directInactive=!1,tn(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++)nn(e.$children[n]);rn(e,"activated")}}function rn(e,t){pe();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,a=n.length;i<a;i++)Ge(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),ge()}var an=[],on=[],sn={},ln=!1,cn=!1,un=0;var hn=0,dn=Date.now;if(W&&!X){var fn=window.performance;fn&&"function"==typeof fn.now&&dn()>document.createEvent("Event").timeStamp&&(dn=function(){return fn.now()})}function pn(){var e,t;for(hn=dn(),cn=!0,an.sort(function(e,t){return e.id-t.id}),un=0;un<an.length;un++)(e=an[un]).before&&e.before(),t=e.id,sn[t]=null,e.run();var n=on.slice(),r=an.slice();un=an.length=on.length=0,sn={},ln=cn=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,nn(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&&rn(r,"updated")}}(r),oe&&j.devtools&&oe.emit("flush")}var gn=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=++gn,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;Ve(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&at(e),ge(),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==sn[t]){if(sn[t]=!0,cn){for(var n=an.length-1;n>un&&an[n].id>e.id;)n--;an.splice(n+1,0,e)}else an.push(e);ln||(ln=!0,rt(pn))}}(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){var n='callback for watcher "'+this.expression+'"';Ge(this.cb,this.vm,[e,t],this.vm,n)}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 mn={enumerable:!0,configurable:!0,get:M,set:M};function vn(e,t,n){mn.get=function(){return this[t][n]},mn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,mn)}function yn(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);Te(r,a,o),a in e||vn(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:E(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 Ve(e,t,"data()"),{}}finally{ge()}}(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)||z(a)||vn(e,"_data",a)}Ee(t,!0)}(e):Ee(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,bn)),i in e||_n(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++)Cn(e,n,r[i]);else Cn(e,n,r)}}(e,t.watch)}var bn={lazy:!0};function _n(e,t,n){var r=!ae();"function"==typeof n?(mn.get=r?wn(t):xn(n),mn.set=M):(mn.get=n.get?r&&!1!==n.cache?wn(t):xn(n.get):M,mn.set=n.set||M),Object.defineProperty(e,t,mn)}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 Cn(e,t,n,r){return c(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var Sn=0;function kn(e){var t=e.options;if(e.super){var n=kn(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&&B(e.extendOptions,r),(t=e.options=Re(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function En(e){this._init(e)}function Tn(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)vn(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)_n(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=B({},o.options),i[r]=o,o}}function Bn(e){return e&&(e.Ctor.options.name||e.tag)}function In(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!u(e)&&e.test(t)}function Mn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;s&&!t(s)&&Pn(n,a,r,i)}}}function Pn(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=Sn++,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(kn(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&&Zt(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=pt(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return Vt(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Vt(e,t,n,r,i,!0)};var a=r&&r.data;Te(e,"$attrs",a&&a.attrs||n,null,!0),Te(e,"$listeners",t._parentListeners||n,null,!0)}(t),rn(t,"beforeCreate"),function(e){var t=ft(e.$options.inject,e);t&&(Se(!1),Object.keys(t).forEach(function(n){Te(e,n,t[n])}),Se(!0))}(t),yn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),rn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(En),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=Be,e.prototype.$delete=Ie,e.prototype.$watch=function(e,t,n){if(c(t))return Cn(this,e,t,n);(n=n||{}).user=!0;var r=new An(this,e,t,n);if(n.immediate){var i='callback for immediate watcher "'+r.expression+'"';pe(),Ge(t,this,[r.value],this,i),ge()}return function(){r.teardown()}}}(En),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?T(n):n;for(var r=T(arguments,1),i='event handler for "'+e+'"',a=0,o=n.length;a<o;a++)Ge(n[a],t,r,t,i)}return t}}(En),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,a=en(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){rn(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),rn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(En),function(e){Ft(e.prototype),e.prototype.$nextTick=function(e){return rt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=mt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{qt=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){Ve(n,t,"render"),e=t._vnode}finally{qt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof Ae||(e=ve()),e.parent=i,e}}(En);var Dn=[String,RegExp,Array],Fn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Dn,exclude:Dn,max:[String,Number]},methods:{cacheVNode:function(){var e=this.cache,t=this.keys,n=this.vnodeToCache,r=this.keyToCache;if(n){var i=n.tag,a=n.componentInstance,o=n.componentOptions;e[r]={name:Bn(o),tag:i,componentInstance:a},t.push(r),this.max&&t.length>parseInt(this.max)&&Pn(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Pn(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(t){Mn(e,function(e){return In(t,e)})}),this.$watch("exclude",function(t){Mn(e,function(e){return!In(t,e)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=$t(e),n=t&&t.componentOptions;if(n){var r=Bn(n),i=this.include,a=this.exclude;if(i&&(!r||!In(i,r))||a&&r&&In(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)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return j}};Object.defineProperty(e,"config",t),e.util={warn:ue,extend:B,mergeOptions:Re,defineReactive:Te},e.set=Be,e.delete=Ie,e.nextTick=rt,e.observable=function(e){return Ee(e),e},e.options=Object.create(null),N.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,B(e.options.components,Fn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),Tn(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)}(En),Object.defineProperty(En.prototype,"$isServer",{get:ae}),Object.defineProperty(En.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(En,"FunctionalRenderContext",{value:Ot}),En.version="2.6.14";var On=g("style,class"),Ln=g("input,textarea,option,select,progress"),Rn=function(e,t,n){return"value"===n&&Ln(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Nn=g("contenteditable,draggable,spellcheck"),Un=g("events,caret,typing,plaintext-only"),jn=function(e,t){return Gn(t)||"false"===t?"false":"contenteditable"===e&&Un(t)?t:"true"},Hn=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),zn="http://www.w3.org/1999/xlink",Qn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Vn=function(e){return Qn(e)?e.slice(6,e.length):""},Gn=function(e){return null==e||!1===e};function qn(e){for(var t=e.data,n=e,r=e;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Wn(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=Wn(t,n.data));return function(e,t){if(i(e)||i(t))return $n(e,Kn(t));return""}(t.staticClass,t.class)}function Wn(e,t){return{staticClass:$n(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function $n(e,t){return e?t?e+" "+t:e:t||""}function Kn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,a=e.length;r<a;r++)i(t=Kn(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 Yn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Xn=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Zn=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Jn=function(e){return Xn(e)||Zn(e)};function er(e){return Zn(e)?"svg":"math"===e?"math":void 0}var tr=Object.create(null);var nr=g("text,number,password,search,email,tel,url");function rr(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var ir=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(Yn[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,"")}}),ar={create:function(e,t){or(t)},update:function(e,t){e.data.ref!==t.data.ref&&(or(e,!0),or(t))},destroy:function(e){or(e,!0)}};function or(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 sr=new Ae("",{},[]),lr=["create","activate","update","remove","destroy"];function cr(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(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||nr(r)&&nr(a)}(e,t)||a(e.isAsyncPlaceholder)&&r(t.asyncFactory.error))}function ur(e,t,n){var r,a,o={};for(r=t;r<=n;++r)i(a=e[r].key)&&(o[a]=r);return o}var hr={create:dr,update:dr,destroy:function(e){dr(e,sr)}};function dr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,a=e===sr,o=t===sr,s=pr(e.data.directives,e.context),l=pr(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?ct(t,"insert",h):h()}u.length&&ct(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 fr=Object.create(null);function pr(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=fr),i[gr(r)]=r,r.def=Ne(t.$options,"directives",r.name);return i}function gr(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){Ve(r,n.context,"directive "+e.name+" "+t+" hook")}}var mr=[ar,hr];function vr(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=B({},c)),c)o=c[a],l[a]!==o&&yr(s,a,o,t.data.pre);for(a in(X||J)&&c.value!==l.value&&yr(s,"value",c.value),l)r(c[a])&&(Qn(a)?s.removeAttributeNS(zn,Vn(a)):Nn(a)||s.removeAttribute(a))}}function yr(e,t,n,r){r||e.tagName.indexOf("-")>-1?br(e,t,n):Hn(t)?Gn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Nn(t)?e.setAttribute(t,jn(t,n)):Qn(t)?Gn(n)?e.removeAttributeNS(zn,Vn(t)):e.setAttributeNS(zn,t,n):br(e,t,n)}function br(e,t,n){if(Gn(n))e.removeAttribute(t);else{if(X&&!Z&&"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 _r={create:vr,update:vr};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=qn(t),l=n._transitionClasses;i(l)&&(s=$n(s,Kn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var xr,Cr,Sr,kr,Er,Tr,Br={create:wr,update:wr},Ir=/[\w).+\-_$\]]/;function Mr(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,g=void 0;p>=0&&" "===(g=e.charAt(p));p--);g&&Ir.test(g)||(c=!0)}}else void 0===i?(f=r+1,i=e.slice(0,r).trim()):A();function A(){(a||(a=[])).push(e.slice(f,r).trim()),f=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==f&&A(),a)for(r=0;r<a.length;r++)i=Pr(i,a[r]);return i}function Pr(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 Dr(e,t){console.error("[Vue compiler]: "+e)}function Fr(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Or(e,t,n,r,i){(e.props||(e.props=[])).push(Gr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Lr(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Gr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Rr(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Gr({name:t,value:n},r))}function Nr(e,t,n,r,i,a,o,s){(e.directives||(e.directives=[])).push(Gr({name:t,rawName:n,value:r,arg:i,isDynamicArg:a,modifiers:o},s)),e.plain=!1}function Ur(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function jr(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=Ur("!",t,l)),i.once&&(delete i.once,t=Ur("~",t,l)),i.passive&&(delete i.passive,t=Ur("&",t,l)),i.native?(delete i.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});var u=Gr({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 zr(e,t,n){var r=Qr(e,":"+t)||Qr(e,"v-bind:"+t);if(null!=r)return Mr(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 Vr(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 Gr(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function qr(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=Wr(t,a);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+o+"}"}}function Wr(e,t){var n=function(e){if(e=e.trim(),xr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<xr-1)return(kr=e.lastIndexOf("."))>-1?{exp:e.slice(0,kr),key:'"'+e.slice(kr+1)+'"'}:{exp:e,key:null};Cr=e,kr=Er=Tr=0;for(;!Kr();)Yr(Sr=$r())?Zr(Sr):91===Sr&&Xr(Sr);return{exp:e.slice(0,Er),key:e.slice(Er+1,Tr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function $r(){return Cr.charCodeAt(++kr)}function Kr(){return kr>=xr}function Yr(e){return 34===e||39===e}function Xr(e){var t=1;for(Er=kr;!Kr();)if(Yr(e=$r()))Zr(e);else if(91===e&&t++,93===e&&t--,0===t){Tr=kr;break}}function Zr(e){for(var t=e;!Kr()&&(e=$r())!==t;);}var Jr,ei="__r",ti="__c";function ni(e,t,n){var r=Jr;return function i(){null!==t.apply(null,arguments)&&ai(e,i,n,r)}}var ri=Ke&&!(te&&Number(te[1])<=53);function ii(e,t,n,r){if(ri){var i=hn,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 ai(e,t,n,r){(r||Jr).removeEventListener(e,t._wrapper||t,n)}function oi(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[ei])){var t=X?"change":"input";e[t]=[].concat(e[ei],e[t]||[]),delete e[ei]}i(e[ti])&&(e.change=[].concat(e[ti],e.change||[]),delete e[ti])}(n),lt(n,a,ii,ai,ni,t.context),Jr=void 0}}var si,li={create:oi,update:oi};function ci(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=B({},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);ui(o,c)&&(o.value=c)}else if("innerHTML"===n&&Zn(o.tagName)&&r(o.innerHTML)){(si=si||document.createElement("div")).innerHTML="<svg>"+a+"</svg>";for(var u=si.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 ui(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 hi={create:ci,update:ci},di=_(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 fi(e){var t=pi(e.style);return e.staticStyle?B(e.staticStyle,t):t}function pi(e){return Array.isArray(e)?I(e):"string"==typeof e?di(e):e}var gi,Ai=/^--/,mi=/\s*!important$/,vi=function(e,t,n){if(Ai.test(t))e.style.setProperty(t,n);else if(mi.test(n))e.style.setProperty(k(t),n.replace(mi,""),"important");else{var r=bi(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}},yi=["Webkit","Moz","ms"],bi=_(function(e){if(gi=gi||document.createElement("div").style,"filter"!==(e=x(e))&&e in gi)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<yi.length;n++){var r=yi[n]+t;if(r in gi)return r}});function _i(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=pi(t.data.style)||{};t.data.normalizedStyle=i(d.__ob__)?B({},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=fi(i.data))&&B(r,n);(n=fi(e.data))&&B(r,n);for(var a=e;a=a.parent;)a.data&&(n=fi(a.data))&&B(r,n);return r}(t,!0);for(s in h)r(f[s])&&vi(l,s,"");for(s in f)(o=f[s])!==h[s]&&vi(l,s,null==o?"":o)}}var wi={create:_i,update:_i},xi=/\s+/;function Ci(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 Si(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 ki(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&B(t,Ei(e.name||"v")),B(t,e),t}return"string"==typeof e?Ei(e):void 0}}var Ei=_(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"}}),Ti=W&&!Z,Bi="transition",Ii="animation",Mi="transition",Pi="transitionend",Di="animation",Fi="animationend";Ti&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Mi="WebkitTransition",Pi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Di="WebkitAnimation",Fi="webkitAnimationEnd"));var Oi=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Li(e){Oi(function(){Oi(e)})}function Ri(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Ci(e,t))}function Ni(e,t){e._transitionClasses&&v(e._transitionClasses,t),Si(e,t)}function Ui(e,t,n){var r=Hi(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s=i===Bi?Pi:Fi,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 ji=/\b(transform|all)(,|$)/;function Hi(e,t){var n,r=window.getComputedStyle(e),i=(r[Mi+"Delay"]||"").split(", "),a=(r[Mi+"Duration"]||"").split(", "),o=zi(i,a),s=(r[Di+"Delay"]||"").split(", "),l=(r[Di+"Duration"]||"").split(", "),c=zi(s,l),u=0,h=0;return t===Bi?o>0&&(n=Bi,u=o,h=a.length):t===Ii?c>0&&(n=Ii,u=c,h=l.length):h=(n=(u=Math.max(o,c))>0?o>c?Bi:Ii:null)?n===Bi?a.length:l.length:0,{type:n,timeout:u,propCount:h,hasTransform:n===Bi&&ji.test(r[Mi+"Property"])}}function zi(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 Vi(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var a=ki(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,g=a.appearActiveClass,A=a.beforeEnter,m=a.enter,v=a.afterEnter,y=a.enterCancelled,b=a.beforeAppear,_=a.appear,w=a.afterAppear,x=a.appearCancelled,C=a.duration,S=Jt,k=Jt.$vnode;k&&k.parent;)S=k.context,k=k.parent;var E=!S._isMounted||!e.isRootInsert;if(!E||_||""===_){var T=E&&d?d:c,B=E&&g?g:h,I=E&&f?f:u,M=E&&b||A,P=E&&"function"==typeof _?_:m,D=E&&w||v,F=E&&x||y,O=p(s(C)?C.enter:C);0;var R=!1!==o&&!Z,N=Wi(P),U=n._enterCb=L(function(){R&&(Ni(n,I),Ni(n,B)),U.cancelled?(R&&Ni(n,T),F&&F(n)):D&&D(n),n._enterCb=null});e.data.show||ct(e,"insert",function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),P&&P(n,U)}),M&&M(n),R&&(Ri(n,T),Ri(n,B),Li(function(){Ni(n,T),U.cancelled||(Ri(n,I),N||(qi(O)?setTimeout(U,O):Ui(n,l,U)))})),e.data.show&&(t&&t(),P&&P(n,U)),R||N||U()}}}function Gi(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var a=ki(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,g=a.afterLeave,A=a.leaveCancelled,m=a.delayLeave,v=a.duration,y=!1!==o&&!Z,b=Wi(f),_=p(s(v)?v.leave:v);0;var w=n._leaveCb=L(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(Ni(n,u),Ni(n,h)),w.cancelled?(y&&Ni(n,c),A&&A(n)):(t(),g&&g(n)),n._leaveCb=null});m?m(x):x()}function x(){w.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),d&&d(n),y&&(Ri(n,c),Ri(n,h),Li(function(){Ni(n,c),w.cancelled||(Ri(n,u),b||(qi(_)?setTimeout(w,_):Ui(n,l,w)))})),f&&f(n,w),y||b||w())}}function qi(e){return"number"==typeof e&&!isNaN(e)}function Wi(e){if(r(e))return!1;var t=e.fns;return i(t)?Wi(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function $i(e,t){!0!==t.data.show&&Vi(t)}var Ki=function(e){var t,n,s={},l=e.modules,c=e.nodeOps;for(t=0;t<lr.length;++t)for(s[lr[t]]=[],n=0;n<l.length;++n)i(l[n][lr[t]])&&s[lr[t]].push(l[n][lr[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](sr,o);t.push(o);break}f(n,e.elm,r)}(e,t,n,r),!0}}(e,t,n,r)){var h=e.data,g=e.children,A=e.tag;i(A)?(e.elm=e.ns?c.createElementNS(e.ns,A):c.createElement(A,e),v(e),p(e,g,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,A(e)?(m(e,t),v(e)):(or(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 A(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](sr,e);i(t=e.data.hook)&&(i(t.create)&&t.create(sr,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 _(e,t,n){for(;t<=n;++t){var r=e[t];i(r)&&(i(r.tag)?(w(r),b(r)):u(r.elm))}}function w(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)&&w(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 x(e,t,n,r){for(var a=n;a<r;a++){var o=t[a];if(i(o)&&cr(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)?E(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 g=e.children,m=t.children;if(i(p)&&A(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(g)&&i(m)?g!==m&&function(e,t,n,a,o){for(var s,l,u,d=0,f=0,p=t.length-1,g=t[0],A=t[p],m=n.length-1,v=n[0],b=n[m],w=!o;d<=p&&f<=m;)r(g)?g=t[++d]:r(A)?A=t[--p]:cr(g,v)?(C(g,v,a,n,f),g=t[++d],v=n[++f]):cr(A,b)?(C(A,b,a,n,m),A=t[--p],b=n[--m]):cr(g,b)?(C(g,b,a,n,m),w&&c.insertBefore(e,g.elm,c.nextSibling(A.elm)),g=t[++d],b=n[--m]):cr(A,v)?(C(A,v,a,n,f),w&&c.insertBefore(e,A.elm,g.elm),A=t[--p],v=n[++f]):(r(s)&&(s=ur(t,d,p)),r(l=i(v.key)?s[v.key]:x(v,t,d,p))?h(v,a,e,g.elm,!1,n,f):cr(u=t[l],v)?(C(u,v,a,n,f),t[l]=void 0,w&&c.insertBefore(e,u.elm,g.elm)):h(v,a,e,g.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&&_(t,d,p)}(d,g,m,n,u):i(m)?(i(e.text)&&c.setTextContent(d,""),y(d,null,m,0,m.length-1,n)):i(g)?_(g,0,g.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=g("attrs,class,staticClass,staticStyle,key");function E(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||!E(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 g=!1;for(var A in l)if(!k(A)){g=!0,m(t,n);break}!g&&l.class&&at(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&&cr(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)&&E(e,t,d))return S(t,d,!0),e;l=e,e=new Ae(c.tagName(l).toLowerCase(),{},[],void 0,l)}var p=e.elm,g=c.parentNode(p);if(h(t,d,p._leaveCb?null:g,c.nextSibling(p)),i(t.parent))for(var m=t.parent,v=A(t);m;){for(var y=0;y<s.destroy.length;++y)s.destroy[y](m);if(m.elm=t.elm,v){for(var w=0;w<s.create.length;++w)s.create[w](sr,m);var x=m.data.hook.insert;if(x.merged)for(var k=1;k<x.fns.length;k++)x.fns[k]()}else or(m);m=m.parent}i(g)?_([e],0,0):i(e.tag)&&b(e)}}return S(t,d,u),t.elm}i(e)&&b(e)}}({nodeOps:ir,modules:[_r,Br,li,hi,wi,W?{create:$i,activate:$i,remove:function(e,t){!0!==e.data.show?Gi(e,t):t()}}:{}].concat(mr)});Z&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&ra(e,"input")});var Yi={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?ct(n,"postpatch",function(){Yi.componentUpdated(e,t,n)}):Xi(e,t,n.context),e._vOptions=[].map.call(e.options,ea)):("textarea"===n.tag||nr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ta),e.addEventListener("compositionend",na),e.addEventListener("change",na),Z&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Xi(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,ea);if(i.some(function(e,t){return!F(e,r[t])}))(e.multiple?t.value.some(function(e){return Ji(e,i)}):t.value!==t.oldValue&&Ji(t.value,i))&&ra(e,"change")}}};function Xi(e,t,n){Zi(e,t,n),(X||J)&&setTimeout(function(){Zi(e,t,n)},0)}function Zi(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,ea(o))>-1,o.selected!==a&&(o.selected=a);else if(F(ea(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Ji(e,t){return t.every(function(t){return!F(t,e)})}function ea(e){return"_value"in e?e._value:e.value}function ta(e){e.target.composing=!0}function na(e){e.target.composing&&(e.target.composing=!1,ra(e.target,"input"))}function ra(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ia(e){return!e.componentInstance||e.data&&e.data.transition?e:ia(e.componentInstance._vnode)}var aa={model:Yi,show:{bind:function(e,t,n){var r=t.value,i=(n=ia(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Vi(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=ia(n)).data&&n.data.transition?(n.data.show=!0,r?Vi(n,function(){e.style.display=e.__vOriginalDisplay}):Gi(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)}}},oa={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 sa(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?sa($t(t.children)):e}function la(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[x(a)]=i[a];return t}function ca(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var ua=function(e){return e.tag||At(e)},ha=function(e){return"show"===e.name},da={name:"transition",props:oa,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(ua)).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=sa(i);if(!a)return i;if(this._leaving)return ca(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=la(this),c=this._vnode,u=sa(c);if(a.data.directives&&a.data.directives.some(ha)&&(a.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,u)&&!At(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=B({},l);if("out-in"===r)return this._leaving=!0,ct(h,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),ca(e,i);if("in-out"===r){if(At(a))return c;var d,f=function(){d()};ct(l,"afterEnter",f),ct(l,"enterCancelled",f),ct(h,"delayLeave",function(e){d=e})}}return i}}},fa=B({tag:String,moveClass:String},oa);function pa(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ga(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 fa.mode;var ma={Transition:da,TransitionGroup:{props:fa,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=en(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=la(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(pa),e.forEach(ga),e.forEach(Aa),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;Ri(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Pi,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Pi,e),n._moveCb=null,Ni(n,t))})}}))},methods:{hasMove:function(e,t){if(!Ti)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){Si(n,e)}),Ci(n,t),n.style.display="none",this.$el.appendChild(n);var r=Hi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};En.config.mustUseProp=Rn,En.config.isReservedTag=Jn,En.config.isReservedAttr=On,En.config.getTagNamespace=er,En.config.isUnknownElement=function(e){if(!W)return!0;if(Jn(e))return!1;if(e=e.toLowerCase(),null!=tr[e])return tr[e];var t=document.createElement(e);return e.indexOf("-")>-1?tr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:tr[e]=/HTMLUnknownElement/.test(t.toString())},B(En.options.directives,aa),B(En.options.components,ma),En.prototype.__patch__=W?Ki:M,En.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=ve),rn(e,"beforeMount"),new An(e,function(){e._update(e._render(),n)},M,{before:function(){e._isMounted&&!e._isDestroyed&&rn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,rn(e,"mounted")),e}(this,e=e&&W?rr(e):void 0,t)},W&&setTimeout(function(){j.devtools&&oe&&oe.emit("init",En)},0);var va=/\{\{((?:.|\r?\n)+?)\}\}/g,ya=/[-.*+?^${}()|[\]\/\\]/g,ba=_(function(e){var t=e[0].replace(ya,"\\$&"),n=e[1].replace(ya,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function _a(e,t){var n=t?ba(t):va;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=Mr(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=zr(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,Ca={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Qr(e,"style");n&&(e.staticStyle=JSON.stringify(di(n)));var r=zr(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}},Sa=function(e){return(xa=xa||document.createElement("div")).innerHTML=e,xa.textContent},ka=g("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Ea=g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Ta=g("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"),Ba=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ia=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ma="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+H.source+"]*",Pa="((?:"+Ma+"\\:)?"+Ma+")",Da=new RegExp("^<"+Pa),Fa=/^\s*(\/?)>/,Oa=new RegExp("^<\\/"+Pa+"[^>]*>"),La=/^<!DOCTYPE [^>]+>/i,Ra=/^<!\--/,Na=/^<!\[/,Ua=g("script,style,textarea",!0),ja={},Ha={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},za=/&(?:lt|gt|quot|amp|#39);/g,Qa=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Va=g("pre,textarea",!0),Ga=function(e,t){return e&&Va(e)&&"\n"===t[0]};function qa(e,t){var n=t?Qa:za;return e.replace(n,function(e){return Ha[e]})}var Wa,$a,Ka,Ya,Xa,Za,Ja,eo,to=/^@|^v-on:/,no=/^v-|^@|^:|^#/,ro=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,io=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ao=/^\(|\)$/g,oo=/^\[.*\]$/,so=/:(.*)$/,lo=/^:|^\.|^v-bind:/,co=/\.[^.\]]+(?=[^\]]*$)/g,uo=/^v-slot(:|$)|^#/,ho=/[\r\n]/,fo=/[ \f\t\r\n]+/g,po=_(Sa),go="_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 mo(e,t){Wa=t.warn||Dr,Za=t.isPreTag||P,Ja=t.mustUseProp||P,eo=t.getTagNamespace||P;var n=t.isReservedTag||P;(function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))}),Ka=Fr(t.modules,"transformNode"),Ya=Fr(t.modules,"preTransformNode"),Xa=Fr(t.modules,"postTransformNode"),$a=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=vo(e,t)),a.length||e===r||r.if&&(e.elseif||e.else)&&bo(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&&bo(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),Za(e.tag)&&(c=!1);for(var u=0;u<Xa.length;u++)Xa[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||P,s=t.canBeLeftOpenTag||P,l=0;e;){if(n=e,r&&Ua(r)){var c=0,u=r.toLowerCase(),h=ja[u]||(ja[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),d=e.replace(h,function(e,n,r){return c=r.length,Ua(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Ga(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(Ra.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),l,l+p+3),x(p+3);continue}}if(Na.test(e)){var g=e.indexOf("]>");if(g>=0){x(g+2);continue}}var A=e.match(La);if(A){x(A[0].length);continue}var m=e.match(Oa);if(m){var v=l;x(m[0].length),k(m[1],v,l);continue}var y=C();if(y){S(y),Ga(y.tagName,e)&&x(1);continue}}var b=void 0,_=void 0,w=void 0;if(f>=0){for(_=e.slice(f);!(Oa.test(_)||Da.test(_)||Ra.test(_)||Na.test(_)||(w=_.indexOf("<",1))<0);)f+=w,_=e.slice(f);b=e.substring(0,f)}f<0&&(b=e),b&&x(b.length),t.chars&&b&&t.chars(b,l-b.length,l)}if(e===n){t.chars&&t.chars(e);break}}function x(t){l+=t,e=e.substring(t)}function C(){var t=e.match(Da);if(t){var n,r,i={tagName:t[1],attrs:[],start:l};for(x(t[0].length);!(n=e.match(Fa))&&(r=e.match(Ia)||e.match(Ba));)r.start=l,x(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=l,i}}function S(e){var n=e.tagName,l=e.unarySlash;a&&("p"===r&&Ta(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]||"",g="a"===n&&"href"===f[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;h[d]={name:f[1],value:qa(p,g)}}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:Wa,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||eo(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(Co,""),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 g=0;g<Ya.length;g++)p=Ya[g](p,t)||p;l||(!function(e){null!=Qr(e,"v-pre")&&(e.pre=!0)}(p),p.pre&&(l=!0)),Za(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||(yo(p),function(e){var t=Qr(e,"v-if");if(t)e.if=t,bo(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:po(e):h.length?s?"condense"===s&&ho.test(e)?"":" ":o?" ":"":"")c||"condense"!==s||(e=e.replace(fo," ")),!l&&" "!==e&&(a=_a(e,$a))?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 vo(e,t){var n,r;!function(e){var t=zr(e,"key");if(t){e.key=t}}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,(r=zr(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=zr(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Lr(e,"slot",n,Hr(e,"slot")));if("template"===e.tag){var r=Vr(e,uo);if(r){0;var i=_o(r),a=i.name,o=i.dynamic;e.slotTarget=a,e.slotTargetDynamic=o,e.slotScope=r.value||go}}else{var s=Vr(e,uo);if(s){0;var l=e.scopedSlots||(e.scopedSlots={}),c=_o(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||go,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=zr(e,"name"))}(e),function(e){var t;(t=zr(e,"is"))&&(e.component=t);null!=Qr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var i=0;i<Ka.length;i++)e=Ka[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,no.test(r))if(e.hasBindings=!0,(o=wo(r.replace(no,"")))&&(r=r.replace(co,"")),lo.test(r))r=r.replace(lo,""),a=Mr(a),(l=oo.test(r))&&(r=r.slice(1,-1)),o&&(o.prop&&!l&&"innerHtml"===(r=x(r))&&(r="innerHTML"),o.camel&&!l&&(r=x(r)),o.sync&&(s=Wr(a,"$event"),l?jr(e,'"update:"+('+r+")",s,null,!1,0,c[t],!0):(jr(e,"update:"+x(r),s,null,!1,0,c[t]),k(r)!==x(r)&&jr(e,"update:"+k(r),s,null,!1,0,c[t])))),o&&o.prop||!e.component&&Ja(e.tag,e.attrsMap.type,r)?Or(e,r,a,c[t],l):Lr(e,r,a,c[t],l);else if(to.test(r))r=r.replace(to,""),(l=oo.test(r))&&(r=r.slice(1,-1)),jr(e,r,a,o,!1,0,c[t],l);else{var u=(r=r.replace(no,"")).match(so),h=u&&u[1];l=!1,h&&(r=r.slice(0,-(h.length+1)),oo.test(h)&&(h=h.slice(1,-1),l=!0)),Nr(e,r,i,a,h,l,o,c[t])}else Lr(e,r,JSON.stringify(a),c[t]),!e.component&&"muted"===r&&Ja(e.tag,e.attrsMap.type,r)&&Or(e,r,"true",c[t])}}(e),e}function yo(e){var t;if(t=Qr(e,"v-for")){var n=function(e){var t=e.match(ro);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(ao,""),i=r.match(io);i?(n.alias=r.replace(io,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(t);n&&B(e,n)}}function bo(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function _o(e){var t=e.name.replace(uo,"");return t||"#"!==e.name[0]&&(t="default"),oo.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function wo(e){var t=e.match(co);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}var xo=/^xmlns:NS\d+/,Co=/^NS\d+:/;function So(e){return Ao(e.tag,e.attrsList.slice(),e.parent)}var ko=[wa,Ca,{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=zr(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=So(e);yo(l),Rr(l,"type","checkbox"),vo(l,t),l.processed=!0,l.if="("+n+")==='checkbox'"+a,bo(l,{exp:l.if,block:l});var c=So(e);Qr(c,"v-for",!0),Rr(c,"type","radio"),vo(c,t),bo(l,{exp:"("+n+")==='radio'"+a,block:c});var u=So(e);return Qr(u,"v-for",!0),Rr(u,":type",n),vo(u,t),bo(l,{exp:i,block:u}),o?l.else=!0:s&&(l.elseif=s),l}}}}];var Eo,To,Bo={expectHTML:!0,modules:ko,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 qr(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+" "+Wr(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),jr(e,"change",r,null,!0)}(e,r,i);else if("input"===a&&"checkbox"===o)!function(e,t,n){var r=n&&n.number,i=zr(e,"value")||"null",a=zr(e,"true-value")||"true",o=zr(e,"false-value")||"false";Or(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===a?":("+t+")":":_q("+t+","+a+")")),jr(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&&("+Wr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Wr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Wr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===a&&"radio"===o)!function(e,t,n){var r=n&&n.number,i=zr(e,"value")||"null";Or(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),jr(e,"change",Wr(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?ei:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),o&&(u="_n("+u+")");var h=Wr(t,u);l&&(h="if($event.target.composing)return;"+h),Or(e,"value","("+t+")"),jr(e,c,h,null,!0),(s||o)&&jr(e,"blur","$forceUpdate()")}(e,r,i);else if(!j.isReservedTag(a))return qr(e,r,i),!1;return!0},text:function(e,t){t.value&&Or(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Or(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:ka,mustUseProp:Rn,canBeLeftOpenTag:Ea,isReservedTag:Jn,getTagNamespace:er,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(ko)},Io=_(function(e){return g("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function Mo(e,t){e&&(Eo=Io(t.staticKeys||""),To=t.isReservedTag||P,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||A(e.tag)||!To(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(Eo)))}(t);if(1===t.type){if(!To(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 Po=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Do=/\([^)]*?\);*$/,Fo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Oo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Lo={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"]},Ro=function(e){return"if("+e+")return null;"},No={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ro("$event.target !== $event.currentTarget"),ctrl:Ro("!$event.ctrlKey"),shift:Ro("!$event.shiftKey"),alt:Ro("!$event.altKey"),meta:Ro("!$event.metaKey"),left:Ro("'button' in $event && $event.button !== 0"),middle:Ro("'button' in $event && $event.button !== 1"),right:Ro("'button' in $event && $event.button !== 2")};function Uo(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var a in e){var o=jo(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 jo(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return jo(e)}).join(",")+"]";var t=Fo.test(e.value),n=Po.test(e.value),r=Fo.test(e.value.replace(Do,""));if(e.modifiers){var i="",a="",o=[];for(var s in e.modifiers)if(No[s])a+=No[s],Oo[s]&&o.push(s);else if("exact"===s){var l=e.modifiers;a+=Ro(["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+".apply(null, arguments)":n?"return ("+e.value+").apply(null, arguments)":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=Oo[e],r=Lo[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var zo={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||Dr,this.transforms=Fr(e.modules,"transformCode"),this.dataGenFns=Fr(e.modules,"genData"),this.directives=B(B({},zo),e.directives);var t=e.isReservedTag||P;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Vo(e,t){var n=new Qo(t);return{render:"with(this){return "+(e?"script"===e.tag?"null":Go(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Go(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return qo(e,t);if(e.once&&!e.onceProcessed)return Wo(e,t);if(e.for&&!e.forProcessed)return Ko(e,t);if(e.if&&!e.ifProcessed)return $o(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?",function(){return "+r+"}":""),a=e.attrs||e.dynamicAttrs?ns((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:x(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+","+Yo(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Yo(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 qo(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+Go(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function Wo(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return $o(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("+Go(e,t)+","+t.onceId+++","+n+")":Go(e,t)}return qo(e,t)}function $o(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?Wo(e,n):Go(e,n)}}(e.ifConditions.slice(),t,n,r)}function Ko(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||Go)(e,t)+"})"}function Yo(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:"+ns(e.attrs)+","),e.props&&(n+="domProps:"+ns(e.props)+","),e.events&&(n+=Uo(e.events,!1)+","),e.nativeEvents&&(n+=Uo(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||Xo(n)}),i=!!e.if;if(!r)for(var a=e.parent;a;){if(a.slotScope&&a.slotScope!==go||a.for){r=!0;break}a.if&&(i=!0),a=a.parent}var o=Object.keys(t).map(function(e){return Zo(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=Vo(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+'",'+ns(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Xo(e){return 1===e.type&&("slot"===e.tag||e.children.some(Xo))}function Zo(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return $o(e,t,Zo,"null");if(e.for&&!e.forProcessed)return Ko(e,t,Zo);var r=e.slotScope===go?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Jo(e,t)||"undefined")+":undefined":Jo(e,t)||"undefined":Go(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||Go)(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(es(i)||i.ifConditions&&i.ifConditions.some(function(e){return es(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||ts;return"["+a.map(function(e){return c(e,t)}).join(",")+"]"+(l?","+l:"")}}function es(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function ts(e,t){return 1===e.type?Go(e,t):3===e.type&&e.isComment?(r=e,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=e).type?n.expression:rs(JSON.stringify(n.text)))+")";var n,r}function ns(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],a=rs(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 rs(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 is(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),M}}function as(e){var t=Object.create(null);return function(n,r,i){(r=B({},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=is(o.render,l),s.staticRenderFns=o.staticRenderFns.map(function(e){return is(e,l)}),t[a]=s}}var os,ss,ls=(os=function(e,t){var n=mo(e.trim(),t);!1!==t.optimize&&Mo(n,t);var r=Vo(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=B(Object.create(e.directives||null),n.directives)),n)"modules"!==s&&"directives"!==s&&(r[s]=n[s]);r.warn=o;var l=os(t.trim(),r);return l.errors=i,l.tips=a,l}return{compile:t,compileToFunctions:as(t)}})(Bo),cs=(ls.compile,ls.compileToFunctions);function us(e){return(ss=ss||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',ss.innerHTML.indexOf("&#10;")>0}var hs=!!W&&us(!1),ds=!!W&&us(!0),fs=_(function(e){var t=rr(e);return t&&t.innerHTML}),ps=En.prototype.$mount;En.prototype.$mount=function(e,t){if((e=e&&rr(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=fs(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=cs(r,{outputSourceRange:!1,shouldDecodeNewlines:hs,shouldDecodeNewlinesForHref:ds,delimiters:n.delimiters,comments:n.comments},this),a=i.render,o=i.staticRenderFns;n.render=a,n.staticRenderFns=o}}return ps.call(this,e,t)},En.compile=cs,t.default=En}.call(t,n("DuR2"))},"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,f=e.responseType;r.isFormData(h)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",A=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(g+":"+A)}var m=s(e.baseURL,e.url);function v(){if(p){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,a={data:f&&"text"!==f&&"json"!==f?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};i(t,n,a),p=null}}if(p.open(e.method.toUpperCase(),o(m,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(v)},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=(e.withCredentials||c(m))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;y&&(d[e.xsrfHeaderName]=y)}"setRequestHeader"in p&&r.forEach(d,function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),f&&"json"!==f&&(p.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),n(e),p=null)}),h||(h=null),p.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)}},"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.isDefined=t.isUndefined=t.isFunction=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isString=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};var i,a=n("7+uW"),o=(i=a)&&i.__esModule?i:{default:i};var s=function(e){return e&&"[object Function]"==={}.toString.call(e)};"function"==typeof/./||"object"===("undefined"==typeof Int8Array?"undefined":r(Int8Array))||!o.default.prototype.$isServer&&"function"==typeof document.childNodes||(t.isFunction=s=function(e){return"function"==typeof e||!1}),t.isFunction=s;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")},"881s":function(e,t,n){"use strict";e.exports=n("MfCb")},"8PNL":function(e,t,n){"use strict";var r=n("1b2O");function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},"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}},"9Zs0":function(e,t,n){var r=n("ZezE");e.exports=function(){this.class_id=0,this.num_samples=0,this.num_channels=0,this.in_samplerate=0,this.out_samplerate=0,this.scale=0,this.scale_left=0,this.scale_right=0,this.analysis=!1,this.bWriteVbrTag=!1,this.decode_only=!1,this.quality=0,this.mode=r.STEREO,this.force_ms=!1,this.free_format=!1,this.findReplayGain=!1,this.decode_on_the_fly=!1,this.write_id3tag_automatic=!1,this.brate=0,this.compression_ratio=0,this.copyright=0,this.original=0,this.extension=0,this.emphasis=0,this.error_protection=0,this.strict_ISO=!1,this.disable_reservoir=!1,this.quant_comp=0,this.quant_comp_short=0,this.experimentalY=!1,this.experimentalZ=0,this.exp_nspsytune=0,this.preset=0,this.VBR=null,this.VBR_q_frac=0,this.VBR_q=0,this.VBR_mean_bitrate_kbps=0,this.VBR_min_bitrate_kbps=0,this.VBR_max_bitrate_kbps=0,this.VBR_hard_min=0,this.lowpassfreq=0,this.highpassfreq=0,this.lowpasswidth=0,this.highpasswidth=0,this.maskingadjust=0,this.maskingadjust_short=0,this.ATHonly=!1,this.ATHshort=!1,this.noATH=!1,this.ATHtype=0,this.ATHcurve=0,this.ATHlower=0,this.athaa_type=0,this.athaa_loudapprox=0,this.athaa_sensitivity=0,this.short_blocks=null,this.useTemporal=!1,this.interChRatio=0,this.msfix=0,this.tune=!1,this.tune_value_a=0,this.version=0,this.encoder_delay=0,this.encoder_padding=0,this.framesize=0,this.frameNum=0,this.lame_allocated_gfp=0,this.internal_flags=null}},"9bBU":function(e,t,n){n("mClu");var r=n("FeBl").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"9v3E":function(e,t,n){"use strict";var r=n("BldQ"),i=[["text",n("Hvbp")],["linkify",n("hCci")],["newline",n("YNYx")],["escape",n("z7gM")],["backticks",n("LAoY")],["strikethrough",n("HVvo").tokenize],["emphasis",n("Inmu").tokenize],["link",n("EL1N")],["image",n("WCAV")],["autolink",n("W1VW")],["html_inline",n("ryq5")],["entity",n("sIya")]],a=[["balance_pairs",n("GmDp")],["strikethrough",n("HVvo").postProcess],["emphasis",n("Inmu").postProcess],["fragments_join",n("rYzl")]];function o(){var e;for(this.ruler=new r,e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1]);for(this.ruler2=new r,e=0;e<a.length;e++)this.ruler2.push(a[e][0],a[e][1])}o.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),a=i.length,o=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<o)for(n=0;n<a&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},o.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,a=e.posMax,o=e.md.options.maxNesting;e.pos<a;){if(e.level<o)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=a)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,n,r){var i,a,o,s=new this.State(e,t,n,r);for(this.tokenize(s),o=(a=this.ruler2.getRules("")).length,i=0;i<o;i++)a[i](s)},o.prototype.State=n("gEWq"),e.exports=o},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 A(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 A(t).map(function(e,t){return t+1})};function g(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?g(n,o,60,!0):a===t&&s===t?g(n,o,l+1,!0):a!==t&&s===t?g(n,0,l+1,!0):a<t&&s>t&&g(n,0,60,!0)}):g(n,0,60,!0),n};var A=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()}},AWUW:function(e,t){e.exports=function(){this.setModules=function(e,t){}}},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}},BldQ:function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},r.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){var i=this.__find__(e),a=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){var i=this.__find__(e),a=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=r},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"),g=n("NWt+"),A=n("t8x9"),m=n("L42u").set,v=n("82Mu")(),y=n("qARP"),b=n("dNDb"),_=n("iUbK"),w=n("fJUb"),x=l.TypeError,C=l.process,S=C&&C.versions,k=S&&S.v8||"",E=l.Promise,T="process"==u(C),B=function(){},I=i=y.f,M=!!function(){try{var e=E.resolve(1),t=(e.constructor={})[n("dSzd")("species")]=function(e){e(B,B)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(B)instanceof t&&0!==k.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(e){}}(),P=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(x("Promise-chain cycle")):(a=P(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&&F(e)})}},F=function(e){m.call(l,function(){var t,n,r,i=e._v,a=O(e);if(a&&(t=b(function(){T?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=T||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;T?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 x("Promise can't be resolved itself");(t=P(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||(E=function(e){p(this,E,"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")(E.prototype,{then:function(e,t){var n=I(A(this,E));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=T?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===E||e===o?new a(e):i(e)}),h(h.G+h.W+h.F*!M,{Promise:E}),n("e6n0")(E,"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 w(s&&this===o?E:this,e)}}),h(h.S+h.F*!(M&&n("dY0y")(function(e){E.all(e).catch(B)})),"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;g(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(){g(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))}})},CoRl:function(e,t,n){"use strict";e.exports=function(e){var t={};e=e||{},t.src_Any=n("Mur9").source,t.src_Cc=n("DNGd").source,t.src_Z=n("gxby").source,t.src_P=n("TUzn").source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},CwSZ:function(e,t,n){"use strict";var r=n("p8xL"),i=n("XgCd"),a={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return o.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,n,i,a,o,l,c,u,h,d,f,p){var g=t;if("function"==typeof c)g=c(n,g);else if(g instanceof Date)g=d(g);else if(null===g){if(a)return l&&!p?l(n,s.encoder):n;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||r.isBuffer(g))return l?[f(p?n:l(n,s.encoder))+"="+f(l(g,s.encoder))]:[f(n)+"="+f(String(g))];var A,m=[];if(void 0===g)return m;if(Array.isArray(c))A=c;else{var v=Object.keys(g);A=u?v.sort(u):v}for(var y=0;y<A.length;++y){var b=A[y];o&&null===g[b]||(m=Array.isArray(g)?m.concat(e(g[b],i(n,b),i,a,o,l,c,u,h,d,f,p)):m.concat(e(g[b],n+(h?"."+b:"["+b+"]"),i,a,o,l,c,u,h,d,f,p)))}return m};e.exports=function(e,t){var n=e,o=t?r.assign({},t):{};if(null!==o.encoder&&void 0!==o.encoder&&"function"!=typeof o.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===o.delimiter?s.delimiter:o.delimiter,u="boolean"==typeof o.strictNullHandling?o.strictNullHandling:s.strictNullHandling,h="boolean"==typeof o.skipNulls?o.skipNulls:s.skipNulls,d="boolean"==typeof o.encode?o.encode:s.encode,f="function"==typeof o.encoder?o.encoder:s.encoder,p="function"==typeof o.sort?o.sort:null,g=void 0!==o.allowDots&&o.allowDots,A="function"==typeof o.serializeDate?o.serializeDate:s.serializeDate,m="boolean"==typeof o.encodeValuesOnly?o.encodeValuesOnly:s.encodeValuesOnly;if(void 0===o.format)o.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,o.format))throw new TypeError("Unknown format option provided.");var v,y,b=i.formatters[o.format];"function"==typeof o.filter?n=(y=o.filter)("",n):Array.isArray(o.filter)&&(v=y=o.filter);var _,w=[];if("object"!=typeof n||null===n)return"";_=o.arrayFormat in a?o.arrayFormat:"indices"in o?o.indices?"indices":"repeat":"indices";var x=a[_];v||(v=Object.keys(n)),p&&v.sort(p);for(var C=0;C<v.length;++C){var S=v[C];h&&null===n[S]||(w=w.concat(l(n[S],S,x,u,h,d?f:null,y,p,g,A,b,m)))}var k=w.join(c),E=!0===o.addQueryPrefix?"?":"";return k.length>0?E+k:""}},CzOf:function(e,t,n){"use strict";t.parseLinkLabel=n("tBlf"),t.parseLinkDestination=n("ujtc"),t.parseLinkTitle=n("3kQQ")},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={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},o=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(r),s=o?r.slice(0,o.index):r,l=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var c=0;null!==(o=a.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&i.call(Object.prototype,o[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(o[1])}return o&&l.push("["+r.slice(o.index)+"]"),function(e,t,n){for(var r=t,i=e.length-1;i>=0;--i){var a,o=e[i];if("[]"===o)a=(a=[]).concat(r);else{a=n.plainObjects?Object.create(null):{};var s="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,l=parseInt(s,10);!isNaN(l)&&o!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=r:a[s]=r}r=a}return r}(l,t,n)}};e.exports=function(e,t){var n=t?r.assign({},t):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:a.delimiter,n.depth="number"==typeof n.depth?n.depth:a.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:a.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:a.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:a.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:a.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:a.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:a.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:a.strictNullHandling,""===e||null===e||void 0===e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){for(var n={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,s=r.split(t.delimiter,o),l=0;l<s.length;++l){var c,u,h=s[l],d=h.indexOf("]="),f=-1===d?h.indexOf("="):d+1;-1===f?(c=t.decoder(h,a.decoder),u=t.strictNullHandling?null:""):(c=t.decoder(h.slice(0,f),a.decoder),u=t.decoder(h.slice(f+1),a.decoder)),i.call(n,c)?n[c]=[].concat(n[c]).concat(u):n[c]=u}return n}(e,n):e,l=n.plainObjects?Object.create(null):{},c=Object.keys(s),u=0;u<c.length;++u){var h=c[u],d=o(h,s[h],n);l=r.merge(l,d,n)}return r.compact(l)}},DNGd:function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},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,g=/iPad/i.test(d),A=/iPhone/i.test(d)&&!g,m=/iPod/i.test(d),v=A||g||m,y=(i=d.match(/OS (\d+)_/i))&&i[1]?i[1]:null,b=/Android/i.test(d),_=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}(),w=b&&/webkit/i.test(d)&&_<2.3,x=b&&_<5&&p<537,C=/Firefox/i.test(d),S=/Edge/i.test(d),k=!S&&(/Chrome/i.test(d)||/CriOS/i.test(d)),E=function(){var e=d.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),T=/MSIE\s8\.0/.test(d),B=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,P=ee()&&("ontouchstart"in a||a.navigator.maxTouchPoints||a.DocumentTouch&&a.document instanceof a.DocumentTouch),D=ee()&&"backgroundSize"in a.document.createElement("video").style,F=(Object.freeze||Object)({IS_IPAD:g,IS_IPHONE:A,IS_IPOD:m,IS_IOS:v,IOS_VERSION:y,IS_ANDROID:b,ANDROID_VERSION:_,IS_OLD_ANDROID:w,IS_NATIVE_ANDROID:x,IS_FIREFOX:C,IS_EDGE:S,IS_CHROME:k,CHROME_VERSION:E,IS_IE8:T,IE_VERSION:B,IS_SAFARI:I,IS_ANY_SAFARI:M,TOUCH_ENABLED:P,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},j=Object.prototype.toString,H=function(e){return V(e)?Object.keys(e):[]};function z(e,t){H(e).forEach(function(n){return t(e[n],n)})}function Q(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&&z(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]"===j.call(e)&&e.constructor===Object}var q=[],W=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+":"),q&&q.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 $=function e(t){var n="info",r=void 0,i=function e(){for(var t=e.stringify||B&&B<11,i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];r("log",n,a,t)};return r=W(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 q?[].concat(q):[]}).filter=function(e){return(q||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},i.history.clear=function(){q&&(q.length=0)},i.history.disable=function(){null!==q&&(q.length=0,q=null)},i.history.enable=function(){null===q&&(q=[])},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=$.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 Z(e){return"string"==typeof e&&/\S/.test(e)}function J(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(!Z(t))return o[e](null);Z(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?($.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 J(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):(J(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 ge(e,t){e.removeAttribute(t)}function Ae(){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 _e(e){return V(e)&&3===e.nodeType}function we(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function xe(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),te(e)||_e(e)?e:"string"==typeof e&&/\S/.test(e)?o.createTextNode(e):void 0}).filter(function(e){return e})}function Ce(e,t){return xe(t).forEach(function(t){return e.appendChild(t)}),e}function Se(e,t){return Ce(we(e),t)}function ke(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||(9===B||0===e.button&&1===e.buttons))}var Ee=re("querySelector"),Te=re("querySelectorAll"),Be=(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:ge,blockTextSelection:Ae,unblockTextSelection:me,getBoundingClientRect:ve,findPosition:ye,getPointerPosition:be,isTextNode:_e,emptyEl:we,normalizeContent:xe,appendContent:Ce,insertContent:Se,isSingleLeftClick:ke,$:Ee,$$:Te}),Ie=1;function Me(){return Ie++}var Pe={},De="vdata"+(new Date).getTime();function Fe(e){var t=e[De];return t||(t=e[De]=Me()),Pe[t]||(Pe[t]={}),Pe[t]}function Oe(e){var t=e[De];return!!t&&!!Object.getOwnPropertyNames(Pe[t]).length}function Le(e){var t=e[De];if(t){delete Pe[t];try{delete e[De]}catch(t){e.removeAttribute?e.removeAttribute(De):e[De]=null}}}function Re(e,t){var n=Fe(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 je=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){je=!0}});a.addEventListener("test",null,e),a.removeEventListener("test",null,e)}catch(e){}}();var He=["touchstart","touchmove"];function ze(e,t,n){if(Array.isArray(t))return Ne(ze,e,t,n);var r=Fe(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){$.error(e)}}}),1===r.handlers[t].length)if(e.addEventListener){var i=!1;je&&He.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,r.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function Qe(e,t,n){if(Oe(e)){var r=Fe(e);if(r.handlers){if(Array.isArray(t))return Ne(Qe,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)?Fe(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=Fe(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(){Qe(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Me(),ze(e,t,r)}var qe=(Object.freeze||Object)({fixEvent:Ue,on:ze,off:Qe,trigger:Ve,one:Ge}),We=!1,$e=void 0,Ke=function(){if(ee()&&!1!==$e.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")&&$e(f)}else We||Ye(1)}};function Ye(e,t){t&&($e=t),a.setTimeout(Ke,e)}ee()&&"complete"===o.readyState?We=!0:Ge(a,"load",function(){We=!0});var Xe=function(e){var t=o.createElement("style");return t.className=e,t},Ze=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Je=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(){},ze(this,e,t),this.addEventListener=n},nt.prototype.addEventListener=nt.prototype.on,nt.prototype.off=function(e,t){Qe(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=Je(e,a)}},ct=function(e,t,n,r){at(e),e.nodeName?qe[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))Qe(this.eventBusEl_,e,t);else{var r=e,i=t;at(r),ot(i),st(n),n=Je(this,n),this.off("dispose",n),r.nodeName?(Qe(r,i,n),Qe(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 Q(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 z(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 Q(e,dt),e.state=Q({},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 gt(){for(var e={},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&z(t,function(t,n){G(t)?(G(e[n])||(e[n]={}),e[n]=gt(e[n],t)):e[n]=t})}),e}var At=function(){function e(t,n,r){if(L(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=gt({},this.options_),n=this.options_=gt(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 $.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=gt(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 Ee(e,t||this.contentEl())},e.prototype.$$=function(e,t){return Te(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){ge(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=Je(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=Je(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=Je(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=Je(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}At.prototype.supportsRaf_="function"==typeof a.requestAnimationFrame&&"function"==typeof a.cancelAnimationFrame,At.registerComponent("Component",At);for(var _t={},wt=[["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"]],xt=wt[0],Ct=void 0,St=0;St<wt.length;St++)if(wt[St][1]in o){Ct=wt[St];break}if(Ct)for(var kt=0;kt<Ct.length;kt++)_t[xt[kt]]=Ct[kt];function Et(e){if(e instanceof Et)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:V(e)&&("number"==typeof e.code&&(this.code=e.code),Q(this,e)),this.message||(this.message=Et.defaultMessages[this.code]||"")}Et.prototype.code=0,Et.prototype.message="",Et.prototype.status=null,Et.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Et.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 Tt=0;Tt<Et.errorTypes.length;Tt++)Et[Et.errorTypes[Tt]]=Tt,Et.prototype[Et.errorTypes[Tt]]=Tt;function Bt(e){return void 0!==e&&null!==e&&"function"==typeof e.then}function It(e){Bt(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}})})},Pt=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()},Ft="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:Ft+"-content"},{role:"document"}),i.descEl_=ie("p",{className:Ft+"-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 Ft+" 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",Je(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",Je(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"),we(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}(At);Ot.prototype.options_={pauseOnOpen:!0,temporary:!0},At.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,T))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(T){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),jt=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)},Ht=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){jt(r,r[a]);break}if(T){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&&jt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,jt(n,t),n.changing_=!1,n.trigger("change"))})},t}(Lt),zt=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];L(this,t);var i=void 0;if(T){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",Je(this,function(){this.trigger("change")}));-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",Je(this,function(){this.trigger("selectedlanguagechange")}))},t}(Lt),Qt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];L(this,e);var n=this;if(T)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(T)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(T)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_}}),T)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"},qt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Wt={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},$t={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(T)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},Zt=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(e);if(t)return t.pop().toLowerCase()}return""},Jt=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:Zt,isCrossOrigin:Jt}),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 $.error(e)}),a.console&&a.console.groupEnd&&a.console.groupEnd()),n.flush()},nn=function(e,t){var n={uri:e},r=Jt(e);r&&(n.cors=r),c(n,Je(this,function(e,n,r){if(e)return $.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(){$.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=gt(r,{kind:Wt[r.kind]||"subtitles",language:r.language||r.srclang||""}),a=$t[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,T)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=Je(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;$t[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=gt(r,{kind:qt[r.kind]||""}),a=n=N(this,e.call(this,i)),o=!1;if(T)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=gt(r,{kind:Gt[r.kind]||""}),a=n=N(this,e.call(this,i)),o=!1;if(T)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(T)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})}),T?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:Ht,TrackClass:on,capitalName:"Video"},text:{ListClass:zt,TrackClass:rn,capitalName:"Text"}};Object.keys(un).forEach(function(e){un[e].getterName=e+"Tracks",un[e].privateName=e+"Tracks_"});var hn={remoteText:{ListClass:zt,TrackClass:rn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Qt,TrackClass:cn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},dn=gt(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(Je(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 Et(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=gt(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&&($.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]?($.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}(At);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:$.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)}},At.registerComponent("Tech",fn),fn.registerTech("Tech",fn),fn.defaultTechOrder_=[];var pn={},gn={},An={};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=gn[e.id()],r=null;if(void 0===n||null===n)return r=t(e),gn[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(Q({},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(wn(i),r),o=a===An,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},_n={play:1,pause:1};function wn(e){return function(t,n){return t===An?An:n[e]?n[e](t):t}}var xn={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=Zt(e);return xn[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=gt({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=At.getComponent(c)),u&&u.isSupported()){n.loadTech_(c);break}}return o}return R(t,e),t}(At);At.registerComponent("MediaLoader",kn);var En=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=Q({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&$.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=Q({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){ze(o,"keydown",Je(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){Qe(o,"keydown",Je(this,this.handleKeyPress))},t}(At);At.registerComponent("ClickableComponent",En);var Tn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.update(),n.on("posterchange",Je(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}(En);At.registerComponent("PosterImage",Tn);var Bn={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 Pn=function(e){function t(n,r,i){L(this,t);var o=N(this,e.call(this,n,r,i)),s=Je(o,o.updateDisplay);return n.on("loadstart",Je(o,o.toggleDisplay)),n.on("texttrackchange",s),n.on("loadstart",Je(o,o.preselectTrack)),n.ready(Je(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=Bn[r.fontFamily])}}}},t}(At);At.registerComponent("TextTrackDisplay",Pn);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}(At);At.registerComponent("LoadingSpinner",Dn);var Fn=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=Q({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=Q({type:"button"},n);var r=At.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 $.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),At.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}(En);At.registerComponent("Button",Fn);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()};Bt(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}(Fn);On.prototype.controlText_="Play Video",At.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}(Fn);At.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}(Fn);Rn.prototype.controlText_="Play",At.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 jn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Un(e,t)},Hn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.throttledUpdateContent=et(Je(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 jn(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}(At);Hn.prototype.labelText_="Time",Hn.prototype.controlText_="Time",At.registerComponent("TimeDisplay",Hn);var zn=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}(Hn);zn.prototype.labelText_="Current Time",zn.prototype.controlText_="Current Time",At.registerComponent("CurrentTimeDisplay",zn);var Qn=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}(Hn);Qn.prototype.labelText_="Duration",Qn.prototype.controlText_="Duration",At.registerComponent("DurationDisplay",Qn);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}(At);At.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}(Hn);Gn.prototype.labelText_="Remaining Time",Gn.prototype.controlText_="Remaining Time",At.registerComponent("RemainingTimeDisplay",Gn);var qn=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}(At);At.registerComponent("LiveDisplay",qn);var Wn=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=Q({tabIndex:0},n),r=Q({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(),Ae(),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}(At);At.registerComponent("Slider",Wn);var $n=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}(At);At.registerComponent("LoadProgressBar",$n);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}(At);At.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=jn(r,n.player_.duration()),a=n.getChild("timeTooltip");a&&a.update(e,t,i)})},t}(At);Yn.prototype.options_={children:[]},B&&!(B>8)||v||b||Yn.prototype.options_.children.push("timeTooltip"),At.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(Je(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=jn(t*r,r);n.el_.style.left=e.width*t+"px",n.getChild("timeTooltip").update(e,t,i)})},t}(At);Xn.prototype.options_={children:["timeTooltip"]},At.registerComponent("MouseTimeDisplay",Xn);var Zn=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(Je(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}",[jn(e,n),jn(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}(Wn);Zn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},B&&!(B>8)||v||b||Zn.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Zn.prototype.playerEvent="timeupdate",At.registerComponent("SeekBar",Zn);var Jn=function(e){function t(n,r){L(this,t);var i=N(this,e.call(this,n,r));return i.handleMouseMove=et(Je(i,i.handleMouseMove),25),i.throttledHandleMouseSeek=et(Je(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}(At);Jn.prototype.options_={children:["seekBar"]},At.registerComponent("ProgressControl",Jn);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[_t.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}(Fn);er.prototype.controlText_="Fullscreen",At.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}(At);At.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}(Wn);rr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},rr.prototype.playerEvent="volumechange",At.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(Je(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}(At);ir.prototype.options_={children:["volumeBar"]},At.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}(Fn);or.prototype.controlText_="Mute",At.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}(At);sr.prototype.options_={children:["muteToggle","volumeControl"]},At.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",Je(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_),ze(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}(At);At.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 Fn(n,r),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var a=Fn.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+" "+Fn.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",Je(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(){ze(o,"keydown",Je(this,this.handleKeyPress))},t.prototype.handleBlur=function(){Qe(o,"keydown",Je(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}(At);At.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=Je(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);At.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",Q({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}(En);At.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);At.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);At.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);At.registerComponent("TextTrackButton",pr);var gr=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",Je(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);At.registerComponent("ChaptersTrackMenuItem",gr);var Ar=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 gr(this.player_,{track:this.track_,cue:i});e.push(a)}return e},t}(pr);Ar.prototype.kind_="chapters",Ar.prototype.controlText_="Chapters",At.registerComponent("ChaptersButton",Ar);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=Je(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",At.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",At.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);At.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",At.registerComponent("CaptionsButton",br);var _r=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,Q({innerHTML:i},n),r)},t}(dr);At.registerComponent("SubsCapsMenuItem",_r);var wr=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,_r)},t}(pr);wr.prototype.kinds_=["captions","subtitles"],wr.prototype.controlText_="Subtitles",At.registerComponent("SubsCapsButton",wr);var xr=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,Q({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);At.registerComponent("AudioTrackMenuItem",xr);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 xr(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e},t}(ur);Cr.prototype.controlText_="Audio Track",At.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",At.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",At.registerComponent("PlaybackRateMenuButton",kr);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-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(At);At.registerComponent("Spacer",Er);var Tr=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}(Er);At.registerComponent("CustomControlSpacer",Tr);var Br=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}(At);Br.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},At.registerComponent("ControlBar",Br);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_=gt(Ot.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),At.registerComponent("ErrorDisplay",Ir);var Mr=["#000","Black"],Pr=["#00F","Blue"],Dr=["#0FF","Cyan"],Fr=["#0F0","Green"],Or=["#F0F","Magenta"],Lr=["#F00","Red"],Rr=["#FFF","White"],Nr=["#FF0","Yellow"],Ur=["1","Opaque"],jr=["0.5","Semi-Transparent"],Hr=["0","Transparent"],zr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Mr,Rr,Lr,Fr,Pr,Nr,Or,Dr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Ur,jr,Hr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Rr,Mr,Lr,Fr,Pr,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,jr]},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:[Hr,jr,Ur]}};function Qr(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}zr.windowColor.options=zr.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=Je(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()}),z(zr,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=zr[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 H(e).reduce(function(n,r){return t(n,e[r],r)},n)}(zr,function(t,n,r){var i,a,o=(i=e.$(n.selector),a=n.parser,Qr(i.options[i.options.selectedIndex].value,a));return void 0!==o&&(t[r]=o),t},{})},t.prototype.setValues=function(e){var t=this;z(zr,function(n,r){!function(e,t,n){if(t)for(var r=0;r<e.options.length;r++)if(Qr(e.options[r].value,n)===t){e.selectedIndex=r;break}}(t.$(n.selector),e[r],n.parser)})},t.prototype.setDefaults=function(){var e=this;z(zr,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){$.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){$.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);At.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=gt({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&&ze(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&&Qe(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}(At);At.registerComponent("ResizeManager",Gr);var qr=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)},Wr={};T||(Wr=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 $r=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 $r([e.el(),a.HTMLMediaElement.prototype,a.Element.prototype,Wr],"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 qr(e),o}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(n[e]=t[e],t[e]=i(n[e]))}),Object.defineProperty(t,"innerHTML",gt(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={};T||(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 $r([e.el(),a.HTMLMediaElement.prototype,Yr],"src")}(e),r=t.setAttribute,i=t.load;Object.defineProperty(t,"src",gt(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 qr(e)||(e.triggerSourceset(""),Kr(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):qr(e)||Kr(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=i,t.setAttribute=r,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Zr=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."]),Jr=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")||!Jt(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&&$.warn(s(Zr)),i.restoreMetadataTracksInIOSNativePlayer_(),(P||A||x)&&!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=gt({},this.options_.tag&&de(this.options_.tag));P&&!0===this.options_.nativeControlsForTouch||delete r.controls,he(e,Q(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):ge(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){$(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()){Jr.TEST_VID=o.createElement("video");var ei=o.createElement("track");ei.kind="captions",ei.srclang="en",ei.label="English",Jr.TEST_VID.appendChild(ei)}Jr.isSupported=function(){try{Jr.TEST_VID.volume=.5}catch(e){return!1}return!(!Jr.TEST_VID||!Jr.TEST_VID.canPlayType)},Jr.canPlayType=function(e){return Jr.TEST_VID.canPlayType(e)},Jr.canPlaySource=function(e,t){return Jr.canPlayType(e.type)},Jr.canControlVolume=function(){try{var e=Jr.TEST_VID.volume;return Jr.TEST_VID.volume=e/2+.1,e!==Jr.TEST_VID.volume}catch(e){return!1}},Jr.canMuteVolume=function(){try{var e=Jr.TEST_VID.muted;return Jr.TEST_VID.muted=!e,Jr.TEST_VID.muted?pe(Jr.TEST_VID,"muted","muted"):ge(Jr.TEST_VID,"muted"),e!==Jr.TEST_VID.muted}catch(e){return!1}},Jr.canControlPlaybackRate=function(){if(b&&k&&E<58)return!1;try{var e=Jr.TEST_VID.playbackRate;return Jr.TEST_VID.playbackRate=e/2+.1,e!==Jr.TEST_VID.playbackRate}catch(e){return!1}},Jr.canOverrideAttributes=function(){if(T)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},Jr.supportsNativeTextTracks=function(){return M||v&&k},Jr.supportsNativeVideoTracks=function(){return!(!Jr.TEST_VID||!Jr.TEST_VID.videoTracks)},Jr.supportsNativeAudioTracks=function(){return!(!Jr.TEST_VID||!Jr.TEST_VID.audioTracks)},Jr.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Jr.prototype.featuresVolumeControl=Jr.canControlVolume(),Jr.prototype.featuresMuteControl=Jr.canMuteVolume(),Jr.prototype.featuresPlaybackRate=Jr.canControlPlaybackRate(),Jr.prototype.featuresSourceset=Jr.canOverrideAttributes(),Jr.prototype.movingMediaElementInDOM=!v,Jr.prototype.featuresFullscreenResize=!0,Jr.prototype.featuresProgressEvents=!0,Jr.prototype.featuresTimeupdateEvents=!0,Jr.prototype.featuresNativeTextTracks=Jr.supportsNativeTextTracks(),Jr.prototype.featuresNativeVideoTracks=Jr.supportsNativeVideoTracks(),Jr.prototype.featuresNativeAudioTracks=Jr.supportsNativeAudioTracks();var ti=Jr.TEST_VID&&Jr.TEST_VID.constructor.prototype.canPlayType,ni=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,ri=/^video\/mp4/i;Jr.patchCanPlayType=function(){_>=4&&!C&&!k?Jr.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&ni.test(e)?"maybe":ti.call(this,e)}:w&&(Jr.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&ri.test(e)?"maybe":ti.call(this,e)})},Jr.unpatchCanPlayType=function(){var e=Jr.TEST_VID.constructor.prototype.canPlayType;return Jr.TEST_VID.constructor.prototype.canPlayType=ti,e},Jr.patchCanPlayType(),Jr.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){}}()}},Jr.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){Jr.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Jr.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){Jr.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(e){Jr.prototype["set"+pt(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Jr.prototype[e]=function(){return this.el_[e]()}}),fn.withSourceHandlers(Jr),Jr.nativeSourceHandler={},Jr.nativeSourceHandler.canPlayType=function(e){try{return Jr.TEST_VID.canPlayType(e)}catch(e){return""}},Jr.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Jr.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=Zt(e.src);return Jr.nativeSourceHandler.canPlayType("video/"+n)}return""},Jr.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Jr.nativeSourceHandler.dispose=function(){},Jr.registerSourceHandler(Jr.nativeSourceHandler),fn.registerTech("Html5",Jr);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=Q(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=gt(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),gn[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",B&&(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=Ee(".vjs-styles-defaults"),c=Ee("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)?$.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),Ze(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]}),Q(a,this.options_[r]),Q(a,this.options_[i]),Q(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(Je(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_=Pt(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&&$.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){$("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=gt({},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&&($.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(wn(n),r))}(this.middleware_,this.tech_,e,t);if(e in _n)return vn(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw $(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(wn(n),t[n]())}(this.middleware_,this.tech_,e);if(e in _n)return vn(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw $("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw $("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw $(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=_t;this.isFullscreen(!0),e.requestFullscreen?(ze(o,e.fullscreenchange,Je(this,function t(n){this.isFullscreen(o[e.fullscreenElement]),!1===this.isFullscreen()&&Qe(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=_t;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,ze(o,"keydown",Je(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,Qe(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=At.getComponent(i)),a){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else $.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():($.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 Et(e),this.addClass("vjs-error"),$.error("(CODE:"+this.error_.code+" "+Et.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=Je(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 gt(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=gt(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];(r=gt(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?Q(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=Q({},ci,e),this.updateCurrentBreakpoint_(),Q(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&&$.error(a),Q(n,o)}if(Q(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}(At);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},T||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)}}),At.registerComponent("Player",ui);var di={},fi=function(e){return di.hasOwnProperty(e)},pi=function(e){return fi(e)?di[e]:void 0},gi=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},Ai=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(){Ai(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},Ai(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),gi(t,this.name),this.dispose=Je(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))$.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(){Ai(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return gi(this,e),Ai(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&&$.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof e?Ee("#"+yi(e)):e;if(!te(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");o.body.contains(i)||$.warn("The element supplied is not included in the DOM"),t=t||{},bi.hooks("beforesetup").forEach(function(e){var n=e(i,gt(t));V(n)&&!Array.isArray(n)?t=gt(t,n):$.error("please return an object in beforesetup hooks")});var a=At.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 _i=Ee(".vjs-styles-defaults");if(!_i){_i=Xe("vjs-styles-defaults");var wi=Ee("head");wi&&wi.insertBefore(_i,wi.firstChild),Ze(_i,"\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=Ee("#"+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=At.getComponent,bi.registerComponent=function(e,t){fn.isTech(t)&&$.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),At.registerComponent.call(At,e,t)},bi.getTech=fn.getTech,bi.registerTech=fn.registerTech,bi.use=function(e,t){pn[e]=pn[e]||[],pn[e].push(t)},!T&&Object.defineProperty?(Object.defineProperty(bi,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(bi.middleware,"TERMINATOR",{value:An,writeable:!1,enumerable:!0})):bi.middleware={TERMINATOR:An},bi.browser=F,bi.TOUCH_ENABLED=P,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=gt,bi.bind=Je,bi.registerPlugin=vi.registerPlugin,bi.deregisterPlugin=vi.deregisterPlugin,bi.plugin=function(e,t){return $.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=gt(bi.options.languages,((n={})[e]=t,n)),bi.options.languages[e]},bi.log=$,bi.createLogger=K,bi.createTimeRange=bi.createTimeRanges=yt,bi.formatTime=jn,bi.setFormatTime=function(e){Un=e},bi.resetFormatTime=function(){Un=Nn},bi.parseUrl=Yt,bi.isCrossOrigin=Jt,bi.EventTarget=nt,bi.on=ze,bi.one=Ge,bi.off=Qe,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 $.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Be[e].apply(null,arguments)}}),bi.computedStyle=Y,bi.dom=Be,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)}},E7gl:function(e,t,n){var r=n("To6e"),i=r.System,a=r.VbrMode,o=(r.Float,r.ShortBlock),s=(r.Util,r.Arrays),l=(r.new_array_n,r.new_byte),c=(r.new_double,r.new_float,r.new_float_n,r.new_int,r.new_int_n,r.assert);function u(){var e,t,n;this.setModules=function(r,i,a){e=r,t=i,n=a};var r=u.NUMTOCENTRIES,h=u.MAXFRAMESIZE,d=r+4+4+4+4+4+9+1+1+8+1+1+3+1+1+2+4+2+2,f=128,p=64,g=32,A=null,m="Xing",v="Info",y=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];function b(e,t){var n=255&e[t+0];return n<<=8,n|=255&e[t+1],n<<=8,n|=255&e[t+2],n<<=8,n|=255&e[t+3]}function _(e,t,n){e[t+0]=255&n>>24,e[t+1]=255&n>>16,e[t+2]=255&n>>8,e[t+3]=255&n}function w(e,t,n){e[t+0]=255&n>>8,e[t+1]=255&n}function x(e,t,n){return 255&(e<<t|n&~(-1<<t))}function C(t,n){var r=t.internal_flags;n[0]=x(n[0],8,255),n[1]=x(n[1],3,7),n[1]=x(n[1],1,t.out_samplerate<16e3?0:1),n[1]=x(n[1],1,t.version),n[1]=x(n[1],2,1),n[1]=x(n[1],1,t.error_protection?0:1),n[2]=x(n[2],4,r.bitrate_index),n[2]=x(n[2],2,r.samplerate_index),n[2]=x(n[2],1,0),n[2]=x(n[2],1,t.extension),n[3]=x(n[3],2,t.mode.ordinal()),n[3]=x(n[3],2,r.mode_ext),n[3]=x(n[3],1,t.copyright),n[3]=x(n[3],1,t.original),n[3]=x(n[3],2,t.emphasis),n[0]=255;var i,o,s=241&n[1];i=1==t.version?f:t.out_samplerate<16e3?g:p,t.VBR==a.vbr_off&&(i=t.brate),o=t.free_format?0:255&16*e.BitrateIndex(i,t.version,t.out_samplerate),1==t.version?(n[1]=255&(10|s),s=13&n[2],n[2]=255&(o|s)):(n[1]=255&(2|s),s=13&n[2],n[2]=255&(o|s))}function S(e,t){return t=t>>8^y[255&(t^e)]}this.addVbrFrame=function(e){var t=e.internal_flags,n=Tables.bitrate_table[e.version][t.bitrate_index];c(null!=t.VBR_seek_table.bag),function(e,t){if(e.nVbrNumFrames++,e.sum+=t,e.seen++,!(e.seen<e.want)&&(e.pos<e.size&&(e.bag[e.pos]=e.sum,e.pos++,e.seen=0),e.pos==e.size)){for(var n=1;n<e.size;n+=2)e.bag[n/2]=e.bag[n];e.want*=2,e.pos/=2}}(t.VBR_seek_table,n)},this.getVbrTag=function(e){var t=new VBRTagData,n=0;t.flags=0;var i=e[n+1]>>3&1,a=e[n+2]>>2&3,o=e[n+3]>>6&3,s=e[n+2]>>4&15;if(s=Tables.bitrate_table[i][s],e[n+1]>>4==14?t.samprate=Tables.samplerate_table[2][a]:t.samprate=Tables.samplerate_table[i][a],!function(e,t){return new String(e,t,m.length(),A).equals(m)||new String(e,t,v.length(),A).equals(v)}(e,n+=0!=i?3!=o?36:21:3!=o?21:13))return null;n+=4,t.hId=i;var l=t.flags=b(e,n);if(n+=4,0!=(1&l)&&(t.frames=b(e,n),n+=4),0!=(2&l)&&(t.bytes=b(e,n),n+=4),0!=(4&l)){if(null!=t.toc)for(var c=0;c<r;c++)t.toc[c]=e[n+c];n+=r}t.vbrScale=-1,0!=(8&l)&&(t.vbrScale=b(e,n),n+=4),t.headersize=72e3*(i+1)*s/t.samprate;var u=e[(n+=21)+0]<<4;u+=e[n+1]>>4;var h=(15&e[n+1])<<8;return h+=255&e[n+2],(u<0||u>3e3)&&(u=-1),(h<0||h>3e3)&&(h=-1),t.encDelay=u,t.encPadding=h,t},this.InitVbrTag=function(e){var n,r=e.internal_flags;n=1==e.version?f:e.out_samplerate<16e3?g:p,e.VBR==a.vbr_off&&(n=e.brate);var i=72e3*(e.version+1)*n/e.out_samplerate,o=r.sideinfo_len+d;if(r.VBR_seek_table.TotalFrameSize=i,i<o||i>h)e.bWriteVbrTag=!1;else{r.VBR_seek_table.nVbrNumFrames=0,r.VBR_seek_table.nBytesWritten=0,r.VBR_seek_table.sum=0,r.VBR_seek_table.seen=0,r.VBR_seek_table.want=1,r.VBR_seek_table.pos=0,null==r.VBR_seek_table.bag&&(r.VBR_seek_table.bag=new int[400],r.VBR_seek_table.size=400);var s=l(h);C(e,s);for(var c=r.VBR_seek_table.TotalFrameSize,u=0;u<c;++u)t.add_dummy_byte(e,255&s[u],1)}},this.updateMusicCRC=function(e,t,n,r){for(var i=0;i<r;++i)e[0]=S(t[n+i],e[0])},this.getLameTagFrame=function(e,c){var u=e.internal_flags;if(!e.bWriteVbrTag)return 0;if(u.Class_ID!=Lame.LAME_ID)return 0;if(u.VBR_seek_table.pos<=0)return 0;if(c.length<u.VBR_seek_table.TotalFrameSize)return u.VBR_seek_table.TotalFrameSize;s.fill(c,0,u.VBR_seek_table.TotalFrameSize,0),C(e,c);var h=l(r);if(e.free_format)for(var d=1;d<r;++d)h[d]=255&255*d/100;else!function(e,t){if(!(e.pos<=0))for(var n=1;n<r;++n){var i=n/r,a=0|Math.floor(i*e.pos);a>e.pos-1&&(a=e.pos-1);var o=0|256*e.bag[a]/e.sum;o>255&&(o=255),t[n]=255&o}}(u.VBR_seek_table,h);var f=u.sideinfo_len;e.error_protection&&(f-=2),e.VBR==a.vbr_off?(c[f++]=255&v.charAt(0),c[f++]=255&v.charAt(1),c[f++]=255&v.charAt(2),c[f++]=255&v.charAt(3)):(c[f++]=255&m.charAt(0),c[f++]=255&m.charAt(1),c[f++]=255&m.charAt(2),c[f++]=255&m.charAt(3)),_(c,f,15),_(c,f+=4,u.VBR_seek_table.nVbrNumFrames),f+=4;var p=u.VBR_seek_table.nBytesWritten+u.VBR_seek_table.TotalFrameSize;_(c,f,0|p),f+=4,i.arraycopy(h,0,c,f,h.length),f+=h.length,e.error_protection&&t.CRC_writeheader(u,c);var g=0;for(d=0;d<f;d++)g=S(c[d],g);return f+=function(e,t,r,i,a){var s,l,c,u,h,d=e.internal_flags,f=0,p=e.encoder_delay,g=e.encoder_padding,A=100-10*e.VBR_q-e.quality,m=n.getLameVeryShortVersion(),v=[1,5,3,2,4,0,3],y=0|(e.lowpassfreq/100+.5>255?255:e.lowpassfreq/100+.5),b=0,x=0,C=e.internal_flags.noise_shaping,k=0,E=0,T=0,B=0!=(1&e.exp_nspsytune),I=0!=(2&e.exp_nspsytune),M=!1,P=!1,D=e.internal_flags.nogap_total,F=e.internal_flags.nogap_current,O=e.ATHtype;switch(e.VBR){case vbr_abr:h=e.VBR_mean_bitrate_kbps;break;case vbr_off:h=e.brate;break;default:h=e.VBR_min_bitrate_kbps}switch(s=0+(e.VBR.ordinal()<v.length?v[e.VBR.ordinal()]:0),d.findReplayGain&&(d.RadioGain>510&&(d.RadioGain=510),d.RadioGain<-510&&(d.RadioGain=-510),x=8192,x|=3072,d.RadioGain>=0?x|=d.RadioGain:(x|=512,x|=-d.RadioGain)),d.findPeakSample&&(b=Math.abs(0|d.PeakSample/32767*Math.pow(2,23)+.5)),-1!=D&&(F>0&&(P=!0),F<D-1&&(M=!0)),u=O+((B?1:0)<<4)+((I?1:0)<<5)+((M?1:0)<<6)+((P?1:0)<<7),A<0&&(A=0),e.mode){case MONO:k=0;break;case STEREO:k=1;break;case DUAL_CHANNEL:k=2;break;case JOINT_STEREO:k=e.force_ms?4:3;break;case NOT_SET:default:k=7}T=e.in_samplerate<=32e3?0:48e3==e.in_samplerate?2:e.in_samplerate>48e3?3:1,(e.short_blocks==o.short_block_forced||e.short_blocks==o.short_block_dispensed||-1==e.lowpassfreq&&-1==e.highpassfreq||e.scale_left<e.scale_right||e.scale_left>e.scale_right||e.disable_reservoir&&e.brate<320||e.noATH||e.ATHonly||0==O||e.in_samplerate<=32e3)&&(E=1),l=C+(k<<2)+(E<<5)+(T<<6),c=d.nMusicCRC,_(r,i+f,A),f+=4;for(var L=0;L<9;L++)r[i+f+L]=255&m.charAt(L);r[i+(f+=9)]=255&s,r[i+ ++f]=255&y,_(r,i+ ++f,b),w(r,i+(f+=4),x),w(r,i+(f+=2),0),r[i+(f+=2)]=255&u,r[i+ ++f]=h>=255?255:255&h,r[i+ ++f]=255&p>>4,r[i+f+1]=255&(p<<4)+(g>>8),r[i+f+2]=255&g,r[i+(f+=3)]=255&l,f++,r[i+f++]=0,w(r,i+f,e.preset),_(r,i+(f+=2),t),w(r,i+(f+=4),c),f+=2;for(var R=0;R<f;R++)a=S(r[i+R],a);return w(r,i+f,a),f+=2}(e,p,c,f,g),u.VBR_seek_table.TotalFrameSize},this.putVbrTag=function(e,t){if(e.internal_flags.VBR_seek_table.pos<=0)return-1;if(t.seek(t.length()),0==t.length())return-1;var n=function(e){e.seek(0);var t=l(10);return e.readFully(t),new String(t,"ISO-8859-1").startsWith("ID3")?0:((127&t[6])<<21|(127&t[7])<<14|(127&t[8])<<7|127&t[9])+t.length}(t);t.seek(n);var r=l(h),i=getLameTagFrame(e,r);return i>r.length?-1:i<1?0:(t.write(r,0,i),0)}}u.NUMTOCENTRIES=100,u.MAXFRAMESIZE=2880,e.exports=u},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=120)}({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})},120: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},4:function(e,t){e.exports=n("fPll")}})},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},EL1N:function(e,t,n){"use strict";var r=n("+N5+").normalizeReference,i=n("+N5+").isSpace;e.exports=function(e,t){var n,a,o,s,l,c,u,h,d="",f="",p=e.pos,g=e.posMax,A=e.pos,m=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=s+1)<g&&40===e.src.charCodeAt(c)){for(m=!1,c++;c<g&&(a=e.src.charCodeAt(c),i(a)||10===a);c++);if(c>=g)return!1;if(A=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(d=e.md.normalizeLink(u.str),e.md.validateLink(d)?c=u.pos:d="",A=c;c<g&&(a=e.src.charCodeAt(c),i(a)||10===a);c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&A!==c&&u.ok)for(f=u.str,c=u.pos;c<g&&(a=e.src.charCodeAt(c),i(a)||10===a);c++);}(c>=g||41!==e.src.charCodeAt(c))&&(m=!0),c++}if(m){if(void 0===e.env.references)return!1;if(c<g&&91===e.src.charCodeAt(c)?(A=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?o=e.src.slice(A,c++):c=s+1):c=s+1,o||(o=e.src.slice(l,s)),!(h=e.env.references[r(o)]))return e.pos=p,!1;d=h.href,f=h.title}return t||(e.pos=l,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",d]],f&&n.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0}},ELaV:function(e,t){e.exports=function(e){this.bits=e}},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 j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return j(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function A(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 z(j(t,e.length-n),e,n,r)}function b(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return b(e,t,n,r)}function w(e,t,n,r){return z(H(t),e,n,r)}function x(e,t,n,r){return z(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)g(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)g(this,t,t+3),g(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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(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 B(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return T(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 A(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return A(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 _(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(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 E(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 T(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 B(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 P(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 F(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)||P(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)||P(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||P(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||P(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||P(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||P(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):F(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(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):F(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);P(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);P(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||P(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||P(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||P(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||P(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):F(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(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):F(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:j(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 j(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 H(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 z(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"))},FCB1:function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,a,o,s,l=t+1,c=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";l<u&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(r=!1,i=0,a=c.length;i<a;i++)if(c[i](e,l,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(o=e.push("paragraph_open","p",1)).map=[t,e.line],(o=e.push("inline","",0)).content=n,o.map=[t,e.line],o.children=[],o=e.push("paragraph_close","p",-1),e.parentType=s,!0}},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=90)}({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})},90:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("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}})},GmDp:function(e,t,n){"use strict";function r(e,t){var n,r,i,a,o,s,l,c,u={},h=t.length;if(h){var d=0,f=-2,p=[];for(n=0;n<h;n++)if(i=t[n],p.push(0),t[d].marker===i.marker&&f===i.token-1||(d=n),f=i.token,i.length=i.length||0,i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),o=u[i.marker][(i.open?3:0)+i.length%3],s=r=d-p[d]-1;r>o;r-=p[r]+1)if((a=t[r]).marker===i.marker&&a.open&&a.end<0&&(l=!1,(a.close||i.open)&&(a.length+i.length)%3==0&&(a.length%3==0&&i.length%3==0||(l=!0)),!l)){c=r>0&&!t[r-1].open?p[r-1]+1:0,p[n]=n-r+c,p[r]=c,i.open=!1,a.end=n,a.close=!1,s=-1,f=-2;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}e.exports=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(r(0,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&r(0,n[t].delimiters)}},Gu7T:function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("c/Tr"),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,a.default)(e)}},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=73)}({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")},73: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 g=f*n;"border-box"===o&&(g=g+i+a),h=Math.min(g,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),g={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(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick(function(){e.focus()})},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},A=n(0),m=Object(A.a)(g,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")}})},HQRW:function(e,t,n){var r=n("To6e"),i=r.System,a=r.VbrMode,o=(r.Float,r.ShortBlock,r.Util),s=r.Arrays,l=(r.new_array_n,r.new_byte,r.new_double,r.new_float),c=(r.new_float_n,r.new_int,r.new_int_n,r.assert),u=n("AWUW"),h=n("X5vS"),d=n("wdSa"),f=n("/00o"),p=n("0mjX"),g=n("jhNZ");e.exports=function(){var e,t,n;this.rv=null,this.qupvt=null;var r,A=new u;function m(e){this.ordinal=e}function v(e){for(var t=0;t<e.sfbmax;t++)if(e.scalefac[t]+e.subblock_gain[e.window[t]]==0)return!1;return!0}function y(e,t,n,r,i){var a;switch(e){default:case 9:t.over_count>0?(a=n.over_SSD<=t.over_SSD,n.over_SSD==t.over_SSD&&(a=n.bits<t.bits)):a=n.max_noise<0&&10*n.max_noise+n.bits<=10*t.max_noise+t.bits;break;case 0:a=n.over_count<t.over_count||n.over_count==t.over_count&&n.over_noise<t.over_noise||n.over_count==t.over_count&&BitStream.EQ(n.over_noise,t.over_noise)&&n.tot_noise<t.tot_noise;break;case 8:n.max_noise=function(e,t){for(var n,r=1e-37,i=0;i<t.psymax;i++)r+=(n=e[i],o.FAST_LOG10(.368+.632*n*n*n));return Math.max(1e-20,r)}(i,r);case 1:a=n.max_noise<t.max_noise;break;case 2:a=n.tot_noise<t.tot_noise;break;case 3:a=n.tot_noise<t.tot_noise&&n.max_noise<t.max_noise;break;case 4:a=n.max_noise<=0&&t.max_noise>.2||n.max_noise<=0&&t.max_noise<0&&t.max_noise>n.max_noise-.2&&n.tot_noise<t.tot_noise||n.max_noise<=0&&t.max_noise>0&&t.max_noise>n.max_noise-.2&&n.tot_noise<t.tot_noise+t.over_noise||n.max_noise>0&&t.max_noise>-.05&&t.max_noise>n.max_noise-.1&&n.tot_noise+n.over_noise<t.tot_noise+t.over_noise||n.max_noise>0&&t.max_noise>-.1&&t.max_noise>n.max_noise-.15&&n.tot_noise+n.over_noise+n.over_noise<t.tot_noise+t.over_noise+t.over_noise;break;case 5:a=n.over_noise<t.over_noise||BitStream.EQ(n.over_noise,t.over_noise)&&n.tot_noise<t.tot_noise;break;case 6:a=n.over_noise<t.over_noise||BitStream.EQ(n.over_noise,t.over_noise)&&(n.max_noise<t.max_noise||BitStream.EQ(n.max_noise,t.max_noise)&&n.tot_noise<=t.tot_noise);break;case 7:a=n.over_count<t.over_count||n.over_noise<t.over_noise}return 0==t.over_count&&(a=a&&n.bits<t.bits),a}function b(e,t,i,a,o){var l=e.internal_flags;!function(e,t,n,r,i){var a,o=e.internal_flags;a=0==t.scalefac_scale?1.2968395546510096:1.6817928305074292;for(var s=0,l=0;l<t.sfbmax;l++)s<n[l]&&(s=n[l]);var c=o.noise_shaping_amp;switch(3==c&&(c=i?2:1),c){case 2:break;case 1:s>1?s=Math.pow(s,.5):s*=.95;break;case 0:default:s>1?s=1:s*=.95}var u=0;for(l=0;l<t.sfbmax;l++){var h,d=t.width[l];if(u+=d,!(n[l]<s)){if(0!=(2&o.substep_shaping)&&(o.pseudohalf[l]=0==o.pseudohalf[l]?1:0,0==o.pseudohalf[l]&&2==o.noise_shaping_amp))return;for(t.scalefac[l]++,h=-d;h<0;h++)r[u+h]*=a,r[u+h]>t.xrpow_max&&(t.xrpow_max=r[u+h]);if(2==o.noise_shaping_amp)return}}}(e,t,i,a,o);var u=v(t);return!(u||(u=2==l.mode_gr?r.scale_bitcount(t):r.scale_bitcount_lsf(l,t))&&(l.noise_shaping>1&&(s.fill(l.pseudohalf,0),0==t.scalefac_scale?(function(e,t){for(var r=0,i=0;i<e.sfbmax;i++){var a=e.width[i],o=e.scalefac[i];if(0!=e.preflag&&(o+=n.pretab[i]),r+=a,0!=(1&o)){o++;for(var s=-a;s<0;s++)t[r+s]*=1.2968395546510096,t[r+s]>e.xrpow_max&&(e.xrpow_max=t[r+s])}e.scalefac[i]=o>>1}e.preflag=0,e.scalefac_scale=1}(t,a),u=!1):t.block_type==f.SHORT_TYPE&&l.subblock_gain>0&&(u=function(e,t,r){var i,a=t.scalefac;for(i=0;i<t.sfb_lmax;i++)if(a[i]>=16)return!0;for(var o=0;o<3;o++){var s=0,l=0;for(i=t.sfb_lmax+o;i<t.sfbdivide;i+=3)s<a[i]&&(s=a[i]);for(;i<t.sfbmax;i+=3)l<a[i]&&(l=a[i]);if(!(s<16&&l<8)){if(t.subblock_gain[o]>=7)return!0;t.subblock_gain[o]++;var u=e.scalefac_band.l[t.sfb_lmax];for(i=t.sfb_lmax+o;i<t.sfbmax;i+=3){var h=t.width[i],d=a[i];if(c(d>=0),(d-=4>>t.scalefac_scale)>=0)a[i]=d,u+=3*h;else{a[i]=0;var f=210+(d<<t.scalefac_scale+1);g=n.IPOW20(f),u+=h*(o+1);for(var p=-h;p<0;p++)r[u+p]*=g,r[u+p]>t.xrpow_max&&(t.xrpow_max=r[u+p]);u+=h*(3-o-1)}}var g=n.IPOW20(202);for(u+=t.width[i]*(o+1),p=-t.width[i];p<0;p++)r[u+p]*=g,r[u+p]>t.xrpow_max&&(t.xrpow_max=r[u+p])}}return!1}(l,t,a)||v(t))),u||(u=2==l.mode_gr?r.scale_bitcount(t):r.scale_bitcount_lsf(l,t)),u))}this.setModules=function(i,a,o,s){e=i,t=a,this.rv=a,n=o,this.qupvt=o,r=s,A.setModules(n,r)},this.ms_convert=function(e,t){for(var n=0;n<576;++n){var r=e.tt[t][0].xr[n],i=e.tt[t][1].xr[n];e.tt[t][0].xr[n]=(r+i)*(.5*o.SQRT2),e.tt[t][1].xr[n]=(r-i)*(.5*o.SQRT2)}},this.init_xrpow=function(e,t,n){var r=0,i=0|t.max_nonzero_coeff;if(c(null!=n),t.xrpow_max=0,c(0<=i&&i<=575),s.fill(n,i,576,0),(r=function(e,t,n,r){r=0;for(var i=0;i<=n;++i){var a=Math.abs(e.xr[i]);r+=a,t[i]=Math.sqrt(a*Math.sqrt(a)),t[i]>e.xrpow_max&&(e.xrpow_max=t[i])}return r}(t,n,i,r))>1e-20){var a=0;0!=(2&e.substep_shaping)&&(a=1);for(var o=0;o<t.psymax;o++)e.pseudohalf[o]=a;return!0}return s.fill(t.l3_enc,0,576,0),!1},this.init_outer_loop=function(e,t){t.part2_3_length=0,t.big_values=0,t.count1=0,t.global_gain=210,t.scalefac_compress=0,t.table_select[0]=0,t.table_select[1]=0,t.table_select[2]=0,t.subblock_gain[0]=0,t.subblock_gain[1]=0,t.subblock_gain[2]=0,t.subblock_gain[3]=0,t.region0_count=0,t.region1_count=0,t.preflag=0,t.scalefac_scale=0,t.count1table_select=0,t.part2_length=0,t.sfb_lmax=f.SBPSY_l,t.sfb_smin=f.SBPSY_s,t.psy_lmax=e.sfb21_extra?f.SBMAX_l:f.SBPSY_l,t.psymax=t.psy_lmax,t.sfbmax=t.sfb_lmax,t.sfbdivide=11;for(var r=0;r<f.SBMAX_l;r++)t.width[r]=e.scalefac_band.l[r+1]-e.scalefac_band.l[r],t.window[r]=3;if(t.block_type==f.SHORT_TYPE){var a=l(576);t.sfb_smin=0,t.sfb_lmax=0,0!=t.mixed_block_flag&&(t.sfb_smin=3,t.sfb_lmax=2*e.mode_gr+4),t.psymax=t.sfb_lmax+3*((e.sfb21_extra?f.SBMAX_s:f.SBPSY_s)-t.sfb_smin),t.sfbmax=t.sfb_lmax+3*(f.SBPSY_s-t.sfb_smin),t.sfbdivide=t.sfbmax-18,t.psy_lmax=t.sfb_lmax;var o=e.scalefac_band.l[t.sfb_lmax];for(i.arraycopy(t.xr,0,a,0,576),r=t.sfb_smin;r<f.SBMAX_s;r++)for(var c=e.scalefac_band.s[r],u=e.scalefac_band.s[r+1],h=0;h<3;h++)for(var d=c;d<u;d++)t.xr[o++]=a[3*d+h];var p=t.sfb_lmax;for(r=t.sfb_smin;r<f.SBMAX_s;r++)t.width[p]=t.width[p+1]=t.width[p+2]=e.scalefac_band.s[r+1]-e.scalefac_band.s[r],t.window[p]=0,t.window[p+1]=1,t.window[p+2]=2,p+=3}t.count1bits=0,t.sfb_partition_table=n.nr_of_sfb_block[0][0],t.slen[0]=0,t.slen[1]=0,t.slen[2]=0,t.slen[3]=0,t.max_nonzero_coeff=575,s.fill(t.scalefac,0),function(e,t){var r=e.ATH,i=t.xr;if(t.block_type!=f.SHORT_TYPE)for(var a=!1,o=f.PSFB21-1;o>=0&&!a;o--){var s=e.scalefac_band.psfb21[o],l=e.scalefac_band.psfb21[o+1],c=n.athAdjust(r.adjust,r.psfb21[o],r.floor);e.nsPsy.longfact[21]>1e-12&&(c*=e.nsPsy.longfact[21]);for(var u=l-1;u>=s;u--){if(!(Math.abs(i[u])<c)){a=!0;break}i[u]=0}}else for(var h=0;h<3;h++)for(a=!1,o=f.PSFB12-1;o>=0&&!a;o--){l=(s=3*e.scalefac_band.s[12]+(e.scalefac_band.s[13]-e.scalefac_band.s[12])*h+(e.scalefac_band.psfb12[o]-e.scalefac_band.psfb12[0]))+(e.scalefac_band.psfb12[o+1]-e.scalefac_band.psfb12[o]);var d=n.athAdjust(r.adjust,r.psfb12[o],r.floor);for(e.nsPsy.shortfact[12]>1e-12&&(d*=e.nsPsy.shortfact[12]),u=l-1;u>=s;u--){if(!(Math.abs(i[u])<d)){a=!0;break}i[u]=0}}}(e,t)},m.BINSEARCH_NONE=new m(0),m.BINSEARCH_UP=new m(1),m.BINSEARCH_DOWN=new m(2),this.trancate_smallspectrums=function(e,t,i,a){var o=l(g.SFBMAX);if((0!=(4&e.substep_shaping)||t.block_type!=f.SHORT_TYPE)&&0==(128&e.substep_shaping)){n.calc_noise(t,i,o,new h,null);for(var c=0;c<576;c++){var u=0;0!=t.l3_enc[c]&&(u=Math.abs(t.xr[c])),a[c]=u}c=0;var d=8;t.block_type==f.SHORT_TYPE&&(d=6);do{var p,A,m,v,y=t.width[d];if(c+=y,!(o[d]>=1||(s.sort(a,c-y,y),BitStream.EQ(a[c-1],0)))){p=(1-o[d])*i[d],A=0,v=0;do{var b;for(m=1;v+m<y&&!BitStream.NEQ(a[v+c-y],a[v+c+m-y]);m++);if(p<(b=a[v+c-y]*a[v+c-y]*m)){0!=v&&(A=a[v+c-y-1]);break}p-=b,v+=m}while(v<y);if(!BitStream.EQ(A,0))do{Math.abs(t.xr[c-y])<=A&&(t.l3_enc[c-y]=0)}while(--y>0)}}while(++d<t.psymax);t.part2_3_length=r.noquant_count_bits(e,t,null)}},this.outer_loop=function(e,t,o,s,u,A){var v=e.internal_flags,_=new p,w=l(576),x=l(g.SFBMAX),C=new h,S=new d,k=9999999,E=!1,T=!1,B=0;if(function(e,t,n,i,a){var o,s=e.CurrentStep[i],l=!1,u=e.OldValue[i],h=m.BINSEARCH_NONE;for(t.global_gain=u,n-=t.part2_length,c(0!=s);;){var d;if(o=r.count_bits(e,a,t,null),1==s||o==n)break;o>n?(h==m.BINSEARCH_DOWN&&(l=!0),l&&(s/=2),h=m.BINSEARCH_UP,d=s):(h==m.BINSEARCH_UP&&(l=!0),l&&(s/=2),h=m.BINSEARCH_DOWN,d=-s),t.global_gain+=d,t.global_gain<0&&(t.global_gain=0,l=!0),t.global_gain>255&&(t.global_gain=255,l=!0)}for(c(t.global_gain>=0),c(t.global_gain<256);o>n&&t.global_gain<255;)t.global_gain++,o=r.count_bits(e,a,t,null);e.CurrentStep[i]=u-t.global_gain>=4?4:2,e.OldValue[i]=t.global_gain,t.part2_3_length=o}(v,t,A,u,s),0==v.noise_shaping)return 100;n.calc_noise(t,o,x,C,S),C.bits=t.part2_3_length,_.assign(t);var I=0;for(i.arraycopy(s,0,w,0,576);!E;){do{var M,P=new h,D=255;if(M=0!=(2&v.substep_shaping)?20:3,v.sfb21_extra){if(x[_.sfbmax]>1)break;if(_.block_type==f.SHORT_TYPE&&(x[_.sfbmax+1]>1||x[_.sfbmax+2]>1))break}if(!b(e,_,x,s,T))break;0!=_.scalefac_scale&&(D=254);var F=A-_.part2_length;if(F<=0)break;for(;(_.part2_3_length=r.count_bits(v,s,_,S))>F&&_.global_gain<=D;)_.global_gain++;if(_.global_gain>D)break;if(0==C.over_count){for(;(_.part2_3_length=r.count_bits(v,s,_,S))>k&&_.global_gain<=D;)_.global_gain++;if(_.global_gain>D)break}if(n.calc_noise(_,o,x,P,S),P.bits=_.part2_3_length,0!=(y(t.block_type!=f.SHORT_TYPE?e.quant_comp:e.quant_comp_short,C,P,_,x)?1:0))k=t.part2_3_length,C=P,t.assign(_),I=0,i.arraycopy(s,0,w,0,576);else if(0==v.full_outer_loop){if(++I>M&&0==C.over_count)break;if(3==v.noise_shaping_amp&&T&&I>30)break;if(3==v.noise_shaping_amp&&T&&_.global_gain-B>15)break}}while(_.global_gain+_.scalefac_scale<255);3==v.noise_shaping_amp?T?E=!0:(_.assign(t),i.arraycopy(w,0,s,0,576),I=0,B=_.global_gain,T=!0):E=!0}return c(t.global_gain+t.scalefac_scale<=255),e.VBR==a.vbr_rh||e.VBR==a.vbr_mtrh?i.arraycopy(w,0,s,0,576):0!=(1&v.substep_shaping)&&trancate_smallspectrums(v,t,o,s),C.over_count},this.iteration_finish_one=function(e,n,i){var a=e.l3_side,o=a.tt[n][i];r.best_scalefac_store(e,n,i,a),1==e.use_best_huffman&&r.best_huffman_divide(e,o),t.ResvAdjust(e,o)},this.VBR_encode_granule=function(e,t,n,r,a,o,u){var h,d=e.internal_flags,f=new p,g=l(576),A=u,m=u+1,v=(u+o)/2,y=0,b=d.sfb21_extra;c(A<=LameInternalFlags.MAX_BITS_PER_CHANNEL),s.fill(f.l3_enc,0);do{c(v>=o),c(v<=u),c(o<=u),d.sfb21_extra=!(v>A-42)&&b,outer_loop(e,t,n,r,a,v)<=0?(y=1,m=t.part2_3_length,f.assign(t),i.arraycopy(r,0,g,0,576),h=(u=m-32)-o,v=(u+o)/2):(h=u-(o=v+32),v=(u+o)/2,0!=y&&(y=2,t.assign(f),i.arraycopy(g,0,r,0,576)))}while(h>12);d.sfb21_extra=b,2==y&&i.arraycopy(f.l3_enc,0,t.l3_enc,0,576),c(t.part2_3_length<=A)},this.get_framebits=function(n,r){var i=n.internal_flags;i.bitrate_index=i.VBR_min_bitrate;var a=e.getframebits(n);i.bitrate_index=1,a=e.getframebits(n);for(var o=1;o<=i.VBR_max_bitrate;o++){i.bitrate_index=o;var s=new MeanBits(a);r[o]=t.ResvFrameBegin(n,s),a=s.bits}},this.VBR_old_prepare=function(e,r,i,a,o,s,l,c,u){var h,d=e.internal_flags,p=0,g=1,A=0;d.bitrate_index=d.VBR_max_bitrate;var m=t.ResvFrameBegin(e,new MeanBits(0))/d.mode_gr;get_framebits(e,s);for(var v=0;v<d.mode_gr;v++){var y=n.on_pe(e,r,c[v],m,v,0);d.mode_ext==f.MPG_MD_MS_LR&&(ms_convert(d.l3_side,v),n.reduce_side(c[v],i[v],m,y));for(var b=0;b<d.channels_out;++b){var _=d.l3_side.tt[v][b];_.block_type!=f.SHORT_TYPE?(p=1.28/(1+Math.exp(3.5-r[v][b]/300))-.05,h=d.PSY.mask_adjust-p):(p=2.56/(1+Math.exp(3.5-r[v][b]/300))-.14,h=d.PSY.mask_adjust_short-p),d.masking_lower=Math.pow(10,.1*h),init_outer_loop(d,_),u[v][b]=n.calc_xmin(e,a[v][b],_,o[v][b]),0!=u[v][b]&&(g=0),l[v][b]=126,A+=c[v][b]}}for(v=0;v<d.mode_gr;v++)for(b=0;b<d.channels_out;b++)A>s[d.VBR_max_bitrate]&&(c[v][b]*=s[d.VBR_max_bitrate],c[v][b]/=A),l[v][b]>c[v][b]&&(l[v][b]=c[v][b]);return g},this.bitpressure_strategy=function(e,t,n,r){for(var i=0;i<e.mode_gr;i++)for(var a=0;a<e.channels_out;a++){for(var o=e.l3_side.tt[i][a],s=t[i][a],l=0,c=0;c<o.psy_lmax;c++)s[l++]*=1+.029*c*c/f.SBMAX_l/f.SBMAX_l;if(o.block_type==f.SHORT_TYPE)for(c=o.sfb_smin;c<f.SBMAX_s;c++)s[l++]*=1+.029*c*c/f.SBMAX_s/f.SBMAX_s,s[l++]*=1+.029*c*c/f.SBMAX_s/f.SBMAX_s,s[l++]*=1+.029*c*c/f.SBMAX_s/f.SBMAX_s;r[i][a]=0|Math.max(n[i][a],.9*r[i][a])}},this.VBR_new_prepare=function(e,r,i,a,o,s){var l,c=e.internal_flags,u=1,h=0,d=0;if(e.free_format)c.bitrate_index=0,p=new MeanBits(h),l=t.ResvFrameBegin(e,p),h=p.bits,o[0]=l;else{c.bitrate_index=c.VBR_max_bitrate;var p=new MeanBits(h);t.ResvFrameBegin(e,p),h=p.bits,get_framebits(e,o),l=o[c.VBR_max_bitrate]}for(var g=0;g<c.mode_gr;g++){n.on_pe(e,r,s[g],h,g,0),c.mode_ext==f.MPG_MD_MS_LR&&ms_convert(c.l3_side,g);for(var A=0;A<c.channels_out;++A){var m=c.l3_side.tt[g][A];c.masking_lower=Math.pow(10,.1*c.PSY.mask_adjust),init_outer_loop(c,m),0!=n.calc_xmin(e,i[g][A],m,a[g][A])&&(u=0),d+=s[g][A]}}for(g=0;g<c.mode_gr;g++)for(A=0;A<c.channels_out;A++)d>l&&(s[g][A]*=l,s[g][A]/=d);return u},this.calc_target_bits=function(r,i,a,o,s,l){var c,u,h,d,p=r.internal_flags,g=p.l3_side,A=0;p.bitrate_index=p.VBR_max_bitrate;var m=new MeanBits(A);for(l[0]=t.ResvFrameBegin(r,m),A=m.bits,p.bitrate_index=1,A=e.getframebits(r)-8*p.sideinfo_len,s[0]=A/(p.mode_gr*p.channels_out),A=r.VBR_mean_bitrate_kbps*r.framesize*1e3,0!=(1&p.substep_shaping)&&(A*=1.09),A/=r.out_samplerate,A-=8*p.sideinfo_len,A/=p.mode_gr*p.channels_out,(c=.93+.07*(11-r.compression_ratio)/5.5)<.9&&(c=.9),c>1&&(c=1),u=0;u<p.mode_gr;u++){var v=0;for(h=0;h<p.channels_out;h++){if(o[u][h]=int(c*A),i[u][h]>700){var y=int((i[u][h]-700)/1.4),b=g.tt[u][h];o[u][h]=int(c*A),b.block_type==f.SHORT_TYPE&&y<A/2&&(y=A/2),y>3*A/2?y=3*A/2:y<0&&(y=0),o[u][h]+=y}o[u][h]>LameInternalFlags.MAX_BITS_PER_CHANNEL&&(o[u][h]=LameInternalFlags.MAX_BITS_PER_CHANNEL),v+=o[u][h]}if(v>LameInternalFlags.MAX_BITS_PER_GRANULE)for(h=0;h<p.channels_out;++h)o[u][h]*=LameInternalFlags.MAX_BITS_PER_GRANULE,o[u][h]/=v}if(p.mode_ext==f.MPG_MD_MS_LR)for(u=0;u<p.mode_gr;u++)n.reduce_side(o[u],a[u],A*p.channels_out,LameInternalFlags.MAX_BITS_PER_GRANULE);for(d=0,u=0;u<p.mode_gr;u++)for(h=0;h<p.channels_out;h++)o[u][h]>LameInternalFlags.MAX_BITS_PER_CHANNEL&&(o[u][h]=LameInternalFlags.MAX_BITS_PER_CHANNEL),d+=o[u][h];if(d>l[0])for(u=0;u<p.mode_gr;u++)for(h=0;h<p.channels_out;h++)o[u][h]*=l[0],o[u][h]/=d}}},HVvo:function(e,t,n){"use strict";function r(e,t){var n,r,i,a,o,s=[],l=t.length;for(n=0;n<l;n++)126===(i=t[n]).marker&&-1!==i.end&&(a=t[i.end],(o=e.tokens[i.token]).type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",(o=e.tokens[a.token]).type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&s.push(a.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(o=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=o)}}e.exports.tokenize=function(e,t){var n,r,i,a,o=e.pos,s=e.src.charCodeAt(o);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,a=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=a,i--),n=0;n<i;n+=2)e.push("text","",0).content=a+a,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(r(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&r(e,n[t].delimiters)}},Hbx0:function(e,t,n){var r=n("To6e"),i=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util),a=(r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),o=(r.new_float_n,r.new_int,r.new_int_n,r.assert,n("/00o"));e.exports=function(){var e=a(o.BLKSIZE),t=a(o.BLKSIZE_s/2),n=[.9238795325112867,.3826834323650898,.9951847266721969,.0980171403295606,.9996988186962042,.02454122852291229,.9999811752826011,.006135884649154475];function r(e,t,r){var a,o,s,l=0,c=t+(r<<=1);a=4;do{var u,h,d,f,p,g,A;A=a>>1,g=(p=a<<1)+(f=a),a=p<<1,s=(o=t)+A;do{x=e[o+0]-e[o+f],w=e[o+0]+e[o+f],E=e[o+p]-e[o+g],S=e[o+p]+e[o+g],e[o+p]=w-S,e[o+0]=w+S,e[o+g]=x-E,e[o+f]=x+E,x=e[s+0]-e[s+f],w=e[s+0]+e[s+f],E=i.SQRT2*e[s+g],S=i.SQRT2*e[s+p],e[s+p]=w-S,e[s+0]=w+S,e[s+g]=x-E,e[s+f]=x+E,s+=a,o+=a}while(o<c);for(h=n[l+0],u=n[l+1],d=1;d<A;d++){var m,v;m=1-2*u*u,v=2*u*h,o=t+d,s=t+f-d;do{var y,b,_,w,x,C,S,k,E,T;b=v*e[o+f]-m*e[s+f],y=m*e[o+f]+v*e[s+f],x=e[o+0]-y,w=e[o+0]+y,C=e[s+0]-b,_=e[s+0]+b,b=v*e[o+g]-m*e[s+g],y=m*e[o+g]+v*e[s+g],E=e[o+p]-y,S=e[o+p]+y,T=e[s+p]-b,k=e[s+p]+b,b=u*S-h*T,y=h*S+u*T,e[o+p]=w-y,e[o+0]=w+y,e[s+g]=C-b,e[s+f]=C+b,b=h*k-u*E,y=u*k+h*E,e[s+p]=_-y,e[s+0]=_+y,e[o+g]=x-b,e[o+f]=x+b,s+=a,o+=a}while(o<c);h=(m=h)*n[l+0]-u*n[l+1],u=m*n[l+1]+u*n[l+0]}l+=2}while(a<r)}var s=[0,128,64,192,32,160,96,224,16,144,80,208,48,176,112,240,8,136,72,200,40,168,104,232,24,152,88,216,56,184,120,248,4,132,68,196,36,164,100,228,20,148,84,212,52,180,116,244,12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254];this.fft_short=function(e,n,i,a,l){for(var c=0;c<3;c++){var u=o.BLKSIZE_s/2,h=65535&192*(c+1),d=o.BLKSIZE_s/8-1;do{var f,p,g,A,m,v=255&s[d<<2];p=(f=t[v]*a[i][l+v+h])-(m=t[127-v]*a[i][l+v+h+128]),f+=m,A=(g=t[v+64]*a[i][l+v+h+64])-(m=t[63-v]*a[i][l+v+h+192]),g+=m,u-=4,n[c][u+0]=f+g,n[c][u+2]=f-g,n[c][u+1]=p+A,n[c][u+3]=p-A,p=(f=t[v+1]*a[i][l+v+h+1])-(m=t[126-v]*a[i][l+v+h+129]),f+=m,A=(g=t[v+65]*a[i][l+v+h+65])-(m=t[62-v]*a[i][l+v+h+193]),g+=m,n[c][u+o.BLKSIZE_s/2+0]=f+g,n[c][u+o.BLKSIZE_s/2+2]=f-g,n[c][u+o.BLKSIZE_s/2+1]=p+A,n[c][u+o.BLKSIZE_s/2+3]=p-A}while(--d>=0);r(n[c],u,o.BLKSIZE_s/2)}},this.fft_long=function(t,n,i,a,l){var c=o.BLKSIZE/8-1,u=o.BLKSIZE/2;do{var h,d,f,p,g,A=255&s[c];d=(h=e[A]*a[i][l+A])-(g=e[A+512]*a[i][l+A+512]),h+=g,p=(f=e[A+256]*a[i][l+A+256])-(g=e[A+768]*a[i][l+A+768]),f+=g,n[0+(u-=4)]=h+f,n[u+2]=h-f,n[u+1]=d+p,n[u+3]=d-p,d=(h=e[A+1]*a[i][l+A+1])-(g=e[A+513]*a[i][l+A+513]),h+=g,p=(f=e[A+257]*a[i][l+A+257])-(g=e[A+769]*a[i][l+A+769]),f+=g,n[u+o.BLKSIZE/2+0]=h+f,n[u+o.BLKSIZE/2+2]=h-f,n[u+o.BLKSIZE/2+1]=d+p,n[u+o.BLKSIZE/2+3]=d-p}while(--c>=0);r(n,u,o.BLKSIZE/2)},this.init_fft=function(n){for(var r=0;r<o.BLKSIZE;r++)e[r]=.42-.5*Math.cos(2*Math.PI*(r+.5)/o.BLKSIZE)+.08*Math.cos(4*Math.PI*(r+.5)/o.BLKSIZE);for(r=0;r<o.BLKSIZE_s/2;r++)t[r]=.5*(1-Math.cos(2*Math.PI*(r+.5)/o.BLKSIZE_s))}}},Hvbp:function(e,t,n){"use strict";function r(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!r(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}},HxqY:function(e,t,n){"use strict";e.exports.encode=n("TilA"),e.exports.decode=n("zW4X"),e.exports.format=n("K8D5"),e.exports.parse=n("Jv26")},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]}},I95x:function(e,t){
  32. /*!
  33. * screenfull
  34. * v5.2.0 - 2021-11-03
  35. * (c) Sindre Sorhus; MIT License
  36. */
  37. !function(){"use strict";var t="undefined"!=typeof window&&void 0!==window.document?window.document:{},n=void 0!==e&&e.exports,r=function(){for(var e,n=[["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"]],r=0,i=n.length,a={};r<i;r++)if((e=n[r])&&e[1]in t){for(r=0;r<e.length;r++)a[n[0][r]]=e[r];return a}return!1}(),i={change:r.fullscreenchange,error:r.fullscreenerror},a={request:function(e,n){return new Promise(function(i,a){var o=function(){this.off("change",o),i()}.bind(this);this.on("change",o);var s=(e=e||t.documentElement)[r.requestFullscreen](n);s instanceof Promise&&s.then(o).catch(a)}.bind(this))},exit:function(){return new Promise(function(e,n){if(this.isFullscreen){var i=function(){this.off("change",i),e()}.bind(this);this.on("change",i);var a=t[r.exitFullscreen]();a instanceof Promise&&a.then(i).catch(n)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var r=i[e];r&&t.addEventListener(r,n,!1)},off:function(e,n){var r=i[e];r&&t.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(a,{isFullscreen:{get:function(){return Boolean(t[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[r.fullscreenEnabled])}}}),n?e.exports=a:window.screenfull=a):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()},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}},Inmu:function(e,t,n){"use strict";function r(e,t){var n,r,i,a,o,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),(a=e.tokens[r.token]).type=s?"strong_open":"em_open",a.tag=s?"strong":"em",a.nesting=1,a.markup=s?o+o:o,a.content="",(a=e.tokens[i.token]).type=s?"strong_close":"em_close",a.tag=s?"strong":"em",a.nesting=-1,a.markup=s?o+o:o,a.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.tokenize=function(e,t){var n,r,i=e.pos,a=e.src.charCodeAt(i);if(t)return!1;if(95!==a&&42!==a)return!1;for(r=e.scanDelims(e.pos,42===a),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(a),e.delimiters.push({marker:a,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(r(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&r(e,n[t].delimiters)}},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)}}},Jv26:function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var i=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var n,r,a,s,l,g=e;if(g=g.trim(),!t&&1===e.split("#").length){var A=o.exec(g);if(A)return this.pathname=A[1],A[2]&&(this.search=A[2]),this}var m=i.exec(g);if(m&&(a=(m=m[0]).toLowerCase(),this.protocol=m,g=g.substr(m.length)),(t||m||g.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(l="//"===g.substr(0,2))||m&&f[m]||(g=g.substr(2),this.slashes=!0)),!f[m]&&(l||m&&!p[m])){var v,y,b=-1;for(n=0;n<u.length;n++)-1!==(s=g.indexOf(u[n]))&&(-1===b||s<b)&&(b=s);for(-1!==(y=-1===b?g.lastIndexOf("@"):g.lastIndexOf("@",b))&&(v=g.slice(0,y),g=g.slice(y+1),this.auth=v),b=-1,n=0;n<c.length;n++)-1!==(s=g.indexOf(c[n]))&&(-1===b||s<b)&&(b=s);-1===b&&(b=g.length),":"===g[b-1]&&b--;var _=g.slice(0,b);g=g.slice(b),this.parseHost(_),this.hostname=this.hostname||"";var w="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!w){var x=this.hostname.split(/\./);for(n=0,r=x.length;n<r;n++){var C=x[n];if(C&&!C.match(h)){for(var S="",k=0,E=C.length;k<E;k++)C.charCodeAt(k)>127?S+="x":S+=C[k];if(!S.match(h)){var T=x.slice(0,n),B=x.slice(n+1),I=C.match(d);I&&(T.push(I[1]),B.unshift(I[2])),B.length&&(g=B.join(".")+g),this.hostname=T.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var M=g.indexOf("#");-1!==M&&(this.hash=g.substr(M),g=g.slice(0,M));var P=g.indexOf("?");return-1!==P&&(this.search=g.substr(P),g=g.slice(0,P)),g&&(this.pathname=g),p[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}},K6ED:function(e,t,n){e.exports={default:n("cnlX"),__esModule:!0}},K8D5:function(e,t,n){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},KCLY:function(e,t,n){"use strict";(function(t){var r=n("cGG2"),i=n("5VQ+"),a=n("t8qj"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?l=n("7GwW"):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(l=n("7GwW")),l),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),JSON.stringify(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){c.headers[e]={}}),r.forEach(["post","put","patch"],function(e){c.headers[e]=r.merge(o)}),e.exports=c}).call(t,n("lNQ5"))},Kh4W:function(e,t,n){t.f=n("dSzd")},Kv9K: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(8),a=n(3),o=n(7),s=n(9),l=n(11),c=n(13),u=n(15),h=n(16),d=n(18),f=n(20)},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(7);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var c=function(){function e(t){var n=t.pageDiv,r=t.pdfPage,a=t.linkService,s=t.downloadManager,l=t.imageResourcesPath,c=void 0===l?"":l,u=t.renderInteractiveForms,h=void 0!==u&&u,d=t.l10n,f=void 0===d?i.NullL10n:d;o(this,e),this.pageDiv=n,this.pdfPage=r,this.linkService=a,this.downloadManager=s,this.imageResourcesPath=c,this.renderInteractiveForms=h,this.l10n=f,this.div=null,this._cancelled=!1}return l(e,[{key:"render",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display";this.pdfPage.getAnnotations({intent:n}).then(function(n){if(!t._cancelled){var i={viewport:e.clone({dontFlip:!0}),div:t.div,annotations:n,page:t.pdfPage,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,linkService:t.linkService,downloadManager:t.downloadManager};if(t.div)r.AnnotationLayer.update(i);else{if(0===n.length)return;t.div=document.createElement("div"),t.div.className="annotationLayer",t.pageDiv.appendChild(t.div),i.div=t.div,r.AnnotationLayer.render(i),t.l10n.translate(t.div)}}})}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&this.div.setAttribute("hidden","true")}}]),e}();t.AnnotationLayerBuilder=c;var u=function(){function e(){o(this,e)}return l(e,[{key:"createAnnotationLayerBuilder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.NullL10n;return new c({pageDiv:e,pdfPage:t,imageResourcesPath:n,renderInteractiveForms:r,linkService:new a.SimpleLinkService,l10n:o})}}]),e}();t.DefaultAnnotationLayerFactory=u},function(e,t,r){"use strict";var i;i="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:n("QzLT"),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(d).includes(e)&&e!==d.UNKNOWN},t.isValidSpreadMode=function(e){return Number.isInteger(e)&&Object.values(f).includes(e)&&e!==f.UNKNOWN},t.isPortraitOrientation=function(e){return e.width<=e.height},t.clamp=_,t.getPDFFileNameFromURL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof e)return t;if(function(e){var t=0,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;var n=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e),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){for(var t=e.split("&"),n=Object.create(null),r=0,i=t.length;r<i;++r){var a=t[r].split("="),o=a[0].toLowerCase(),s=a.length>1?a[1]:null;n[decodeURIComponent(o)]=decodeURIComponent(s)}return n},t.backtrackBeforeAllVisibleElements=m,t.getVisibleElements=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.scrollTop,a=i+e.clientHeight,o=e.scrollLeft,s=o+e.clientWidth;var l=[],c=t.length,u=0===c?0:A(t,r?function(e){var t=e.div;return t.offsetLeft+t.clientLeft+t.clientWidth>o}:function(e){var t=e.div;return t.offsetTop+t.clientTop+t.clientHeight>i});u>0&&u<c&&!r&&(u=m(u,t,i));for(var h=r?s:-1,d=u;d<c;d++){var f=t[d],p=f.div,g=p.offsetLeft+p.clientLeft,v=p.offsetTop+p.clientTop,y=p.clientWidth,b=p.clientHeight,_=g+y,w=v+b;if(-1===h)w>=a&&(h=w);else if((r?g:v)>h)break;if(!(w<=i||v>=a||_<=o||g>=s)){var x=Math.max(0,i-v)+Math.max(0,w-a),C=Math.max(0,o-g)+Math.max(0,_-s),S=(b-x)*(y-C)*100/b/y|0;l.push({id:f.id,x:g,y:v,view:f,percent:S})}}var k=l[0],E=l[l.length-1];n&&l.sort(function(e,t){var n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id});return{first:k,last:E,views:l}},t.roundToDivide=function(e,t){var n=e%t;return 0===n?e:Math.round(e-n+t)},t.getPageSizeInches=function(e){var t=e.view,n=e.userUnit,r=e.rotate,i=(f=t,p=4,function(e){if(Array.isArray(e))return e}(f)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(f,p)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(f,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],o=i[1],s=i[2],l=i[3],u=r%180!=0,h=(s-a)/72*n,d=(l-o)/72*n;var f,p;return{width:u?d:h,height:u?h:d}},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];var t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];var n,r=e>1?t:e,i=0,a=1,o=1,s=1;for(;;){var l=i+o,c=a+s;if(c>8)break;r<=l/c?(o=l,s=c):(i=l,a=c)}n=r-i/a<o/s-r?r===e?[i,a]:[a,i]:r===e?[o,s]:[s,o];return n},t.getOutputScale=function(e){var 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){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.offsetParent;if(!r)return void console.error("offsetParent is not set -- cannot scroll");var 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){var n=function(n){i||(i=window.requestAnimationFrame(function(){i=null;var n=e.scrollLeft,a=r.lastX;n!==a&&(r.right=n>a),r.lastX=n;var 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},i=null;return e.addEventListener("scroll",n,!0),r},t.binarySearchFirstItem=A,t.normalizeWheelEventDelta=function(e){var t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY),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(e){var t=e.target,n=e.name,r=e.delay,i=void 0===r?0:r;return new Promise(function(e,r){if("object"!==l(t)||!n||"string"!=typeof n||!(Number.isInteger(i)&&i>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function a(r){t instanceof b?t._off(n,o):t.removeEventListener(n,o),c&&clearTimeout(c),e(r)}var o=a.bind(null,v.EVENT);t instanceof b?t._on(n,o):t.addEventListener(n,o);var s=a.bind(null,v.TIMEOUT),c=setTimeout(s,i)})},t.moveToEndOfArray=function(e,t){for(var n=[],r=e.length,i=0,a=0;a<r;++a)t(e[a])?n.push(e[a]):(e[i]=e[a],++i);for(var o=0;i<r;++o,++i)e[i]=n[o]},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;var r,i=(r=n(4))&&r.__esModule?r:{default:r};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function h(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){u(a,r,i,o,s,"next",e)}function s(e){u(a,r,i,o,s,"throw",e)}o(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};var d={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};t.ScrollMode=d;var f={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};t.SpreadMode=f;function p(e,t){return t?e.replace(/\{\{\s*(\w+)\s*\}\}/g,function(e,n){return n in t?t[n]:"{{"+n+"}}"}):e}t.AutoPrintRegExp=/\bprint\s*\(/;var g={getLanguage:function(){return h(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","en-us");case 1:case"end":return e.stop()}},e)}))()},getDirection:function(){return h(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","ltr");case 1:case"end":return e.stop()}},e)}))()},get:function(e,t,n){return h(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",p(n,t));case 1:case"end":return e.stop()}},e)}))()},translate:function(e){return h(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)}))()}};function A(e,t){var n=0,r=e.length-1;if(r<0||!t(e[r]))return e.length;if(t(e[n]))return n;for(;n<r;){var i=n+r>>1;t(e[i])?r=i:n=i+1}return n}function m(e,t,n){if(e<2)return e;var r=t[e].div,i=r.offsetTop+r.clientTop;i>=n&&(i=(r=t[e-1].div).offsetTop+r.clientTop);for(var a=e-2;a>=0&&!((r=t[a].div).offsetTop+r.clientTop+r.clientHeight<=i);--a)e=a;return e}t.NullL10n=g;var v={EVENT:"event",TIMEOUT:"timeout"};t.WaitOnType=v;var y=new Promise(function(e){window.requestAnimationFrame(e)});t.animationStarted=y;var b=function(){function e(t){a(this,e),this._listeners=Object.create(null)}return s(e,[{key:"on",value:function(e,t){this._on(e,t,{external:!0})}},{key:"off",value:function(e,t){this._off(e,t,{external:!0})}},{key:"dispatch",value:function(e){var t=this._listeners[e];if(t&&0!==t.length){var n,r=Array.prototype.slice.call(arguments,1);t.slice(0).forEach(function(e){var t=e.listener;if(e.external)return n||(n=[]),void n.push(t);t.apply(null,r)}),n&&(n.forEach(function(e){e.apply(null,r)}),n=null)}}},{key:"_on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this._listeners[e];r||(this._listeners[e]=r=[]),r.push({listener:t,external:!0===(n&&n.external)})}},{key:"_off",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n=this._listeners[e];if(n)for(var r=0,i=n.length;r<i;r++)if(n[r].listener===t)return void n.splice(r,1)}}]),e}();function _(e,t,n){return Math.min(Math.max(e,t),n)}t.EventBus=b;var w=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.height,i=n.width,o=n.units;a(this,e),this.visible=!0,this.div=document.querySelector(t+" .progress"),this.bar=this.div.parentNode,this.height=r||100,this.width=i||100,this.units=o||"%",this.div.style.height=this.height+this.units,this.percent=0}return s(e,[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate");var e=this.width*this._percent/100;this.div.style.width=e+this.units}},{key:"setWidth",value:function(e){if(e){var t=e.parentNode.offsetWidth-e.offsetWidth;t>0&&(this.bar.style.width="calc(100% - ".concat(t,"px)"))}}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}},{key:"show",value:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}},{key:"percent",get:function(){return this._percent},set:function(e){this._indeterminate=isNaN(e),this._percent=_(e,0,100),this._updateBar()}}]),e}();t.ProgressBar=w},function(e,t,n){"use strict";e.exports=n(5)},function(e,t,n){"use strict";(function(e){function t(e){"@babel/helpers - typeof";return(t="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 n=function(e){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";function c(e,t,n,r){var i=t&&t.prototype instanceof A?t:A,a=Object.create(i.prototype),o=new T(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 I()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===g)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=u(e,t,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===g)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 u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",g={};function A(){}function m(){}function v(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,_=b&&b(b(B([])));_&&_!==r&&i.call(_,o)&&(y=_);var w=v.prototype=A.prototype=Object.create(y);function x(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function C(e,n){var r;this._invoke=function(a,o){function s(){return new n(function(r,s){!function r(a,o,s,l){var c=u(e[a],e,o);if("throw"!==c.type){var h=c.arg,d=h.value;return d&&"object"===t(d)&&i.call(d,"__await")?n.resolve(d.__await).then(function(e){r("next",e,s,l)},function(e){r("throw",e,s,l)}):n.resolve(d).then(function(e){h.value=e,s(h)},function(e){return r("throw",e,s,l)})}l(c.arg)}(a,o,r,s)})}return r=r?r.then(s,s):s()}}function S(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,S(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;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,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function k(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function B(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:I}}function I(){return{value:n,done:!0}}return m.prototype=w.constructor=v,v.constructor=m,v[l]=m.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(C.prototype),C.prototype[s]=function(){return this},e.AsyncIterator=C,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new C(c(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},x(w),w[l]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},e.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}},e.values=B,T.prototype={constructor:T,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(E),!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,g):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),g},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),E(n),g}},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;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:B(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(6)(e))},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var r=n(3);function i(e){"@babel/helpers - typeof";return(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})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.eventBus,r=t.externalLinkTarget,i=void 0===r?null:r,o=t.externalLinkRel,s=void 0===o?null:o,l=t.externalLinkEnabled,c=void 0===l||l,u=t.ignoreDestinationZoom,h=void 0!==u&&u;a(this,e),this.eventBus=n,this.externalLinkTarget=i,this.externalLinkRel=s,this.externalLinkEnabled=c,this._ignoreDestinationZoom=h,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return s(e,[{key:"setDocument",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setHistory",value:function(e){this.pdfHistory=e}},{key:"navigateTo",value:function(e){var t=this;new Promise(function(n,r){"string"!=typeof e?n({namedDest:"",explicitDest:e}):t.pdfDocument.getDestination(e).then(function(t){n({namedDest:e,explicitDest:t})})}).then(function(n){Array.isArray(n.explicitDest)?function n(r){var i,a=r.namedDest,o=r.explicitDest,s=o[0];if(s instanceof Object){if(null===(i=t._cachedPageNumber(s)))return void t.pdfDocument.getPageIndex(s).then(function(e){t.cachePageRef(e+1,s),n({namedDest:a,explicitDest:o})}).catch(function(){console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid page reference, for dest="'.concat(e,'".'))})}else{if(!Number.isInteger(s))return void console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid destination reference, for dest="'.concat(e,'".'));i=s+1}!i||i<1||i>t.pagesCount?console.error('PDFLinkService.navigateTo: "'.concat(i,'" is not ')+'a valid page number, for dest="'.concat(e,'".')):(t.pdfHistory&&(t.pdfHistory.pushCurrentPosition(),t.pdfHistory.push({namedDest:a,explicitDest:o,pageNumber:i})),t.pdfViewer.scrollPageIntoView({pageNumber:i,destArray:o,ignoreDestinationZoom:t._ignoreDestinationZoom}))}(n):console.error('PDFLinkService.navigateTo: "'.concat(n.explicitDest,'" is')+' not a valid destination array, for dest="'.concat(e,'".'))})}},{key:"getDestinationHash",value:function(e){if("string"==typeof e)return this.getAnchorUrl("#"+escape(e));if(Array.isArray(e)){var t=JSON.stringify(e);return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(e){return(this.baseUrl||"")+e}},{key:"setHash",value:function(e){var t,n;if(e.includes("=")){var a=(0,r.parseQueryString)(e);if("search"in a&&this.eventBus.dispatch("findfromurlhash",{source:this,query:a.search.replace(/"/g,""),phraseSearch:"true"===a.phrase}),"page"in a&&(t=0|a.page||1),"zoom"in a){var o=a.zoom.split(","),s=o[0],l=parseFloat(s);s.includes("Fit")?"Fit"===s||"FitB"===s?n=[null,{name:s}]:"FitH"===s||"FitBH"===s||"FitV"===s||"FitBV"===s?n=[null,{name:s},o.length>1?0|o[1]:null]:"FitR"===s?5!==o.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:s},0|o[1],0|o[2],0|o[3],0|o[4]]:console.error('PDFLinkService.setHash: "'.concat(s,'" is not ')+"a valid zoom value."):n=[null,{name:"XYZ"},o.length>1?0|o[1]:null,o.length>2?0|o[2]:null,l?l/100:s]}n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),"pagemode"in a&&this.eventBus.dispatch("pagemode",{source:this,mode:a.pagemode}),"nameddest"in a&&this.navigateTo(a.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;var t=e.length;if(t<2)return!1;var n=e[0];if(!("object"===i(n)&&Number.isInteger(n.num)&&Number.isInteger(n.gen)||Number.isInteger(n)&&n>=0))return!1;var r=e[1];if("object"!==i(r)||"string"!=typeof r.name)return!1;var a=!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;a=!1;break;default:return!1}for(var o=2;o<t;o++){var s=e[o];if(!("number"==typeof s||a&&null===s))return!1}return!0}(n))return void this.navigateTo(n);console.error('PDFLinkService.setHash: "'.concat(unescape(e),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(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})}},{key:"cachePageRef",value:function(e,t){if(t){var n=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);this._pagesRefCache[n]=e}}},{key:"_cachedPageNumber",value:function(e){var t=0===e.gen?"".concat(e.num,"R"):"".concat(e.num,"R").concat(e.gen);return this._pagesRefCache&&this._pagesRefCache[t]||null}},{key:"isPageVisible",value:function(e){return this.pdfViewer.isPageVisible(e)}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(e){this.pdfViewer.pagesRotation=e}}]),e}();t.PDFLinkService=l;var c=function(){function e(){a(this,e),this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}return s(e,[{key:"navigateTo",value:function(e){}},{key:"getDestinationHash",value:function(e){return"#"}},{key:"getAnchorUrl",value:function(e){return"#"}},{key:"setHash",value:function(e){}},{key:"executeNamedAction",value:function(e){}},{key:"cachePageRef",value:function(e,t){}},{key:"isPageVisible",value:function(e){return!0}},{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(e){}},{key:"rotation",get:function(){return 0},set:function(e){}}]),e}();t.SimpleLinkService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTextLayerFactory=t.TextLayerBuilder=void 0;var r=n(2);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var s=function(){function e(t){var n=t.textLayerDiv,r=t.eventBus,a=t.pageIndex,o=t.viewport,s=t.findController,l=void 0===s?null:s,c=t.enhanceTextSelection,u=void 0!==c&&c;i(this,e),this.textLayerDiv=n,this.eventBus=r,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=a,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=o,this.textDivs=[],this.findController=l,this.textLayerRenderTask=null,this.enhanceTextSelection=u,this._onUpdateTextLayerMatches=null,this._bindMouse()}return o(e,[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.appendChild(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var n=document.createDocumentFragment();this.textLayerRenderTask=(0,r.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:n,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:t,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(function(){e.textLayerDiv.appendChild(n),e._finishRendering(),e._updateMatches()},function(e){}),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(t){t.pageIndex!==e.pageIdx&&-1!==t.pageIndex||e._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}}},{key:"cancel",value:function(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}},{key:"setTextContentStream",value:function(e){this.cancel(),this.textContentStream=e}},{key:"setTextContent",value:function(e){this.cancel(),this.textContent=e}},{key:"_convertMatches",value:function(e,t){if(!e)return[];for(var n=this.findController,r=this.textContentItemsStr,i=0,a=0,o=r.length-1,s=n.state.query.length,l=[],c=0,u=e.length;c<u;c++){for(var h=e[c];i!==o&&h>=a+r[i].length;)a+=r[i].length,i++;i===r.length&&console.error("Could not find a matching mapping");var d={begin:{divIdx:i,offset:h-a}};for(h+=t?t[c]:s;i!==o&&h>a+r[i].length;)a+=r[i].length,i++;d.end={divIdx:i,offset:h-a},l.push(d)}return l}},{key:"_renderMatches",value:function(e){if(0!==e.length){var t=this.findController,n=this.pageIdx,r=this.textContentItemsStr,i=this.textDivs,a=n===t.selected.pageIdx,o=t.selected.matchIdx,s=null,l={divIdx:-1,offset:void 0},c=o,u=c+1;if(t.state.highlightAll)c=0,u=e.length;else if(!a)return;for(var h=c;h<u;h++){var d=e[h],f=d.begin,p=d.end,g=a&&h===o,A=g?" selected":"";if(g&&t.scrollMatchIntoView({element:i[f.divIdx],pageIndex:n,matchIndex:o}),s&&f.divIdx===s.divIdx?b(s.divIdx,s.offset,f.offset):(null!==s&&b(s.divIdx,s.offset,l.offset),y(f)),f.divIdx===p.divIdx)b(f.divIdx,f.offset,p.offset,"highlight"+A);else{b(f.divIdx,f.offset,l.offset,"highlight begin"+A);for(var m=f.divIdx+1,v=p.divIdx;m<v;m++)i[m].className="highlight middle"+A;y(p,"highlight end"+A)}s=p}s&&b(s.divIdx,s.offset,l.offset)}function y(e,t){var n=e.divIdx;i[n].textContent="",b(n,0,e.offset,t)}function b(e,t,n,a){var o=i[e],s=r[e].substring(t,n),l=document.createTextNode(s);if(a){var c=document.createElement("span");return c.className=a,c.appendChild(l),void o.appendChild(c)}o.appendChild(l)}}},{key:"_updateMatches",value:function(){if(this.renderingDone){for(var e=this.findController,t=this.matches,n=this.pageIdx,r=this.textContentItemsStr,i=this.textDivs,a=-1,o=0,s=t.length;o<s;o++){for(var l=t[o],c=Math.max(a,l.begin.divIdx),u=l.end.divIdx;c<=u;c++){var h=i[c];h.textContent=r[c],h.className=""}a=l.end.divIdx+1}if(e&&e.highlightMatches){var d=e.pageMatches[n]||null,f=e.pageMatchesLength[n]||null;this.matches=this._convertMatches(d,f),this._renderMatches(this.matches)}}}},{key:"_bindMouse",value:function(){var e=this,t=this.textLayerDiv,n=null;t.addEventListener("mousedown",function(r){if(e.enhanceTextSelection&&e.textLayerRenderTask)return e.textLayerRenderTask.expandTextDivs(!0),void(n&&(clearTimeout(n),n=null));var i=t.querySelector(".endOfContent");if(i){var a=r.target!==t;if(a=a&&"none"!==window.getComputedStyle(i).getPropertyValue("-moz-user-select")){var o=t.getBoundingClientRect(),s=Math.max(0,(r.pageY-o.top)/o.height);i.style.top=(100*s).toFixed(2)+"%"}i.classList.add("active")}}),t.addEventListener("mouseup",function(){if(e.enhanceTextSelection&&e.textLayerRenderTask)n=setTimeout(function(){e.textLayerRenderTask&&e.textLayerRenderTask.expandTextDivs(!1),n=null},300);else{var r=t.querySelector(".endOfContent");r&&(r.style.top="",r.classList.remove("active"))}})}}]),e}();t.TextLayerBuilder=s;var l=function(){function e(){i(this,e)}return o(e,[{key:"createTextLayerBuilder",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new s({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:r,eventBus:i})}}]),e}();t.DefaultTextLayerFactory=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var r=n(2);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=n(10).viewerCompatibilityParams.disableCreateObjectURL||!1;function o(e,t){var 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()}var s=function(){function e(t){var n=t.disableCreateObjectURL,r=void 0===n?a:n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.disableCreateObjectURL=r}var t,n,s;return t=e,(n=[{key:"downloadUrl",value:function(e,t){(0,r.createValidAbsoluteUrl)(e,"http://example.com")&&o(e+"#pdfjs.action=download",t)}},{key:"downloadData",value:function(e,t,n){navigator.msSaveBlob?navigator.msSaveBlob(new Blob([e],{type:n}),t):o((0,r.createObjectURL)(e,n,this.disableCreateObjectURL),t)}},{key:"download",value:function(e,t,n){navigator.msSaveBlob?navigator.msSaveBlob(e,n)||this.downloadUrl(t,n):this.disableCreateObjectURL?this.downloadUrl(t,n):o(URL.createObjectURL(e),n)}}])&&i(t.prototype,n),s&&i(t,s),e}();t.DownloadManager=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.viewerCompatibilityParams=void 0;var r=Object.create(null),i="undefined"!=typeof navigator&&navigator.userAgent||"",a="undefined"!=typeof navigator&&navigator.platform||"",o="undefined"!=typeof navigator&&navigator.maxTouchPoints||1,s=/Android/.test(i),l=/Trident/.test(i),c=/\b(iPad|iPhone|iPod)(?=;)/.test(i)||"MacIntel"===a&&o>1,u=/CriOS/.test(i);(l||u)&&(r.disableCreateObjectURL=!0),(c||s)&&(r.maxCanvasPixels=5242880);var h=Object.freeze(r);t.viewerCompatibilityParams=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0;var r,i=(r=n(4))&&r.__esModule?r:{default:r};function a(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,l,"next",e)}function l(e){a(o,r,i,s,l,"throw",e)}s(void 0)})}}function s(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)}}n(12);var l=document.webL10n,c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._lang=t,this._ready=new Promise(function(e,n){l.setLanguage(t,function(){e(l)})})}var t,n,r;return t=e,(n=[{key:"getLanguage",value:function(){var e=o(i.default.mark(function e(){var t;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.getLanguage());case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"getDirection",value:function(){var e=o(i.default.mark(function e(){var t;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.getDirection());case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"get",value:function(){var e=o(i.default.mark(function e(t,n,r){var a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return a=e.sent,e.abrupt("return",a.get(t,n,r));case 4:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"translate",value:function(){var e=o(i.default.mark(function e(t){var n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return n=e.sent,e.abrupt("return",n.translate(t));case 4:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}])&&s(t.prototype,n),r&&s(t,r),e}();t.GenericL10n=c},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],g=!1,A="";!function e(){for(;;){if(!h.length)return void u();var i=h.shift();if(!a.test(i)){if(n){if(A=o.exec(i)){f=A[1].toLowerCase(),g="*"!==f&&f!==t&&f!==p;continue}if(g)continue;if(A=l.exec(i))return void d(s+A[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 g=p.default_locale.toLowerCase();for(var A in p.locales){if((A=A.toLowerCase())===e){r=p.locales[e];break}A===g&&(r=p.locales[g])}}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=g(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 g(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 A(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++)A(n[i]);A(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(14),a=n(3);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};t.FindState=s;var l={"‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},c=null;function u(e){if(!c){var t=Object.keys(l).join("");c=new RegExp("[".concat(t,"]"),"g")}return e.replace(c,function(e){return l[e]})}var h=function(){function e(t){var n=t.linkService,r=t.eventBus;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._linkService=n,this._eventBus=r,this._reset(),r._on("findbarclose",this._onFindBarClose.bind(this))}var t,n,l;return t=e,(n=[{key:"setDocument",value:function(e){this._pdfDocument&&this._reset(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}},{key:"executeCommand",value:function(e,t){var n=this;if(t){var r=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(e,t))&&(this._dirtyMatch=!0),this._state=t,"findhighlightallchange"!==e&&this._updateUIState(s.PENDING),this._firstPageCapability.promise.then(function(){if(n._pdfDocument&&(!r||n._pdfDocument===r)){n._extractText();var t=!n._highlightMatches,i=!!n._findTimeout;n._findTimeout&&(clearTimeout(n._findTimeout),n._findTimeout=null),"find"===e?n._findTimeout=setTimeout(function(){n._nextMatch(),n._findTimeout=null},250):n._dirtyMatch?n._nextMatch():"findagain"===e?(n._nextMatch(),t&&n._state.highlightAll&&n._updateAllPages()):"findhighlightallchange"===e?(i?n._nextMatch():n._highlightMatches=!0,n._updateAllPages()):n._nextMatch()}})}}},{key:"scrollMatchIntoView",value:function(e){var t=e.element,n=void 0===t?null:t,r=e.pageIndex,i=void 0===r?-1:r,o=e.matchIndex,s=void 0===o?-1:o;if(this._scrollMatches&&n&&-1!==s&&s===this._selected.matchIdx&&-1!==i&&i===this._selected.pageIdx){this._scrollMatches=!1;var l={top:-50,left:-400};(0,a.scrollIntoView)(n,l,!0)}}},{key:"_reset",value:function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,r.createPromiseCapability)()}},{key:"_shouldDirtyMatch",value:function(e,t){if(t.query!==this._state.query)return!0;switch(e){case"findagain":var n=this._selected.pageIdx+1,r=this._linkService;return n>=1&&n<=r.pagesCount&&n!==r.page&&!r.isPageVisible(n);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(e,t,n){function r(t){var n=e[t],r=e[t+1];if(t<e.length-1&&n.match===r.match)return n.skipped=!0,!0;for(var i=t-1;i>=0;i--){var a=e[i];if(!a.skipped){if(a.match+a.matchLength<n.match)break;if(a.match+a.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(var i=0,a=e.length;i<a;i++)r(i)||(t.push(e[i].match),n.push(e[i].matchLength))}},{key:"_isEntireWord",value:function(e,t,n){if(t>0){var r=e.charCodeAt(t),a=e.charCodeAt(t-1);if((0,i.getCharacterType)(r)===(0,i.getCharacterType)(a))return!1}var o=t+n-1;if(o<e.length-1){var s=e.charCodeAt(o),l=e.charCodeAt(o+1);if((0,i.getCharacterType)(s)===(0,i.getCharacterType)(l))return!1}return!0}},{key:"_calculatePhraseMatch",value:function(e,t,n,r){for(var i=[],a=e.length,o=-a;-1!==(o=n.indexOf(e,o+a));)r&&!this._isEntireWord(n,o,a)||i.push(o);this._pageMatches[t]=i}},{key:"_calculateWordMatch",value:function(e,t,n,r){for(var i=[],a=e.match(/\S+/g),o=0,s=a.length;o<s;o++)for(var l=a[o],c=l.length,u=-c;-1!==(u=n.indexOf(l,u+c));)r&&!this._isEntireWord(n,u,c)||i.push({match:u,matchLength:c,skipped:!1});this._pageMatchesLength[t]=[],this._pageMatches[t]=[],this._prepareMatches(i,this._pageMatches[t],this._pageMatchesLength[t])}},{key:"_calculateMatch",value:function(e){var t=this._pageContents[e],n=this._query,r=this._state,i=r.caseSensitive,a=r.entireWord,o=r.phraseSearch;if(0!==n.length){i||(t=t.toLowerCase(),n=n.toLowerCase()),o?this._calculatePhraseMatch(n,e,t,a):this._calculateWordMatch(n,e,t,a),this._state.highlightAll&&this._updatePage(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this._nextPageMatch());var s=this._pageMatches[e].length;s>0&&(this._matchesCountTotal+=s,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var e=this;if(!(this._extractTextPromises.length>0))for(var t=Promise.resolve(),n=function(n,i){var a=(0,r.createPromiseCapability)();e._extractTextPromises[n]=a.promise,t=t.then(function(){return e._pdfDocument.getPage(n+1).then(function(e){return e.getTextContent({normalizeWhitespace:!0})}).then(function(t){for(var r=t.items,i=[],o=0,s=r.length;o<s;o++)i.push(r[o].str);e._pageContents[n]=u(i.join("")),a.resolve(n)},function(t){console.error("Unable to get text content for page ".concat(n+1),t),e._pageContents[n]="",a.resolve(n)})})},i=0,a=this._linkService.pagesCount;i<a;i++)n(i)}},{key:"_updatePage",value:function(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}},{key:"_updateAllPages",value:function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}},{key:"_nextMatch",value:function(){var e=this,t=this._state.findPrevious,n=this._linkService.page-1,r=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=n,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(var i=0;i<r;i++)!0!==this._pendingFindMatches[i]&&(this._pendingFindMatches[i]=!0,this._extractTextPromises[i].then(function(t){delete e._pendingFindMatches[t],e._calculateMatch(t)}))}if(""!==this._query){if(!this._resumePageIdx){var a=this._offset;if(this._pagesToSearch=r,null!==a.matchIdx){var o=this._pageMatches[a.pageIdx].length;if(!t&&a.matchIdx+1<o||t&&a.matchIdx>0)return a.matchIdx=t?a.matchIdx-1:a.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(t)}this._nextPageMatch()}}else this._updateUIState(s.FOUND)}},{key:"_matchesReady",value:function(e){var 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))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var e=null;do{var t=this._offset.pageIdx;if(!(e=this._pageMatches[t])){this._resumePageIdx=t;break}}while(!this._matchesReady(e))}},{key:"_advanceOffsetPage",value:function(e){var 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)}},{key:"_updateMatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=s.NOT_FOUND,n=this._offset.wrapped;if(this._offset.wrapped=!1,e){var r=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?s.WRAPPED:s.FOUND,-1!==r&&r!==this._selected.pageIdx&&this._updatePage(r)}this._updateUIState(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(e){var t=this,n=this._pdfDocument;this._firstPageCapability.promise.then(function(){!t._pdfDocument||n&&t._pdfDocument!==n||(t._findTimeout&&(clearTimeout(t._findTimeout),t._findTimeout=null),t._resumePageIdx&&(t._resumePageIdx=null,t._dirtyMatch=!0),t._updateUIState(s.FOUND),t._highlightMatches=!1,t._updateAllPages())})}},{key:"_requestMatchesCount",value:function(){var e=this._selected,t=e.pageIdx,n=e.matchIdx,r=0,i=this._matchesCountTotal;if(-1!==n){for(var a=0;a<t;a++)r+=this._pageMatches[a]&&this._pageMatches[a].length||0;r+=n+1}return(r<1||r>i)&&(r=i=0),{current:r,total:i}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(e,t){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this._requestMatchesCount()})}},{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}},{key:"_query",get:function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=u(this._state.query)),this._normalizedQuery}}])&&o(t.prototype,n),l&&o(t,l),e}();t.PDFFindController=h},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;var 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=u,t.isDestArraysEqual=h,t.PDFHistory=void 0;var r=n(3);function i(e){"@babel/helpers - typeof";return(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})(e)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){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 l(){return document.location.hash}var c=function(){function e(t){var n=this,r=t.linkService,i=t.eventBus;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.linkService=r,this.eventBus=i,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",function(e){n._isViewerInPresentationMode=e.active||e.switchInProgress}),this.eventBus._on("pagesinit",function(){n._isPagesLoaded=!1;n.eventBus._on("pagesloaded",function e(t){n.eventBus._off("pagesloaded",e),n._isPagesLoaded=!!t.pagesCount})})}var t,n,o;return t=e,(n=[{key:"initialize",value:function(e){var t=e.fingerprint,n=e.resetHistory,r=void 0!==n&&n,i=e.updateUrl,a=void 0!==i&&i;if(t&&"string"==typeof t){this._initialized&&this.reset();var o=""!==this._fingerprint&&this._fingerprint!==t;this._fingerprint=t,this._updateUrl=!0===a,this._initialized=!0,this._bindEvents();var s=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=l(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(s,!0)||r){var c=this._parseCurrentHash(!0),u=c.hash,h=c.page,d=c.rotation;return!u||o||r?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:u,page:h,rotation:d},!0)}var f=s.destination;this._updateInternalState(f,s.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),void 0!==f.rotation&&(this._initialRotation=f.rotation),f.dest?(this._initialBookmark=JSON.stringify(f.dest),this._destination.page=null):f.hash?this._initialBookmark=f.hash:f.page&&(this._initialBookmark="page=".concat(f.page))}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"reset",value:function(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(e){var t=this,n=e.namedDest,r=void 0===n?null:n,i=e.explicitDest,a=e.pageNumber;if(this._initialized)if(r&&"string"!=typeof r)console.error("PDFHistory.push: "+'"'.concat(r,'" is not a valid namedDest parameter.'));else if(Array.isArray(i))if(Number.isInteger(a)&&a>0&&a<=this.linkService.pagesCount||null===a&&!this._destination){var o=r||JSON.stringify(i);if(o){var s=!1;if(this._destination&&(u(this._destination.hash,o)||h(this._destination.dest,i))){if(this._destination.page)return;s=!0}this._popStateInProgress&&!s||(this._pushOrReplaceState({dest:i,hash:o,page:a,rotation:this.linkService.rotation},s),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(function(){t._popStateInProgress=!1})))}}else console.error("PDFHistory.push: "+'"'.concat(a,'" is not a valid pageNumber parameter.'));else console.error("PDFHistory.push: "+'"'.concat(i,'" is not a valid explicitDest parameter.'))}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid<this._maxUid&&window.history.forward()}}},{key:"_pushOrReplaceState",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!this._destination,r={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:e};if(this._updateInternalState(e,r.uid),this._updateUrl&&e&&e.hash){var i=document.location.href.split("#")[0];i.startsWith("file://")||(t="".concat(i,"#").concat(e.hash))}n?window.history.replaceState(r,"",t):(this._maxUid=this._uid,window.history.pushState(r,"",t))}},{key:"_tryPushCurrentPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var t=this._position;if(e&&((t=Object.assign(Object.create(null),this._position)).temporary=!0),this._destination){if(this._destination.temporary)this._pushOrReplaceState(t,!0);else if(this._destination.hash!==t.hash&&(this._destination.page||!(this._numPositionUpdates<=50))){var 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)}}else this._pushOrReplaceState(t)}}},{key:"_isValidState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[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;var n=a(performance.getEntriesByType("navigation"),1)[0];if(!n||"reload"!==n.type)return!1}return!(!Number.isInteger(e.uid)||e.uid<0)&&(null!==e.destination&&"object"===i(e.destination))}},{key:"_updateInternalState",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&e&&e.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=unescape(l()).substring(1),n=(0,r.parseQueryString)(t),i=n.nameddest||"",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}}},{key:"_updateViewarea",value:function(e){var t=this,n=e.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(n.pageNumber):n.pdfOpenParams.substring(1),page:this.linkService.page,first:n.pageNumber,rotation:n.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(function(){t._popStateInProgress||t._tryPushCurrentPosition(!0),t._updateViewareaTimeout=null},1e3))}},{key:"_popState",value:function(e){var t=this,n=e.state,i=l(),a=this._currentHash!==i;if(this._currentHash=i,n){if(this._isValidState(n)){this._popStateInProgress=!0,a&&(this._blockHashChange++,(0,r.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(function(){t._blockHashChange--}));var o=n.destination;this._updateInternalState(o,n.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,r.isValidRotation)(o.rotation)&&(this.linkService.rotation=o.rotation),o.dest?this.linkService.navigateTo(o.dest):o.hash?this.linkService.setHash(o.hash):o.page&&(this.linkService.page=o.page),Promise.resolve().then(function(){t._popStateInProgress=!1})}}else{this._uid++;var s=this._parseCurrentHash(),c=s.hash,u=s.page,h=s.rotation;this._pushOrReplaceState({hash:c,page:u,rotation:h},!0)}}},{key:"_pageHide",value:function(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}},{key:"_bindEvents",value:function(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}},{key:"_unbindEvents",value:function(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}}])&&s(t.prototype,n),o&&s(t,o),e}();function u(e,t){return"string"==typeof e&&"string"==typeof t&&(e===t||(0,r.parseQueryString)(e).nameddest===t)}function h(e,t){function n(e,t){if(i(e)!==i(t))return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"===i(e)&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var 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(var r=0,a=e.length;r<a;r++)if(!n(e[r],t[r]))return!1;return!0}t.PDFHistory=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0;var r,i=(r=n(4))&&r.__esModule?r:{default:r},a=n(3),o=n(2),s=n(17);function l(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=n(10).viewerCompatibilityParams.maxCanvasPixels||16777216,h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=t.container,r=t.defaultViewport;this.id=t.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=t.scale||a.DEFAULT_SCALE,this.viewport=r,this.pdfPageRotate=r.rotation,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:a.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels||u,this.eventBus=t.eventBus,this.renderingQueue=t.renderingQueue,this.textLayerFactory=t.textLayerFactory,this.annotationLayerFactory=t.annotationLayerFactory,this.renderer=t.renderer||a.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.l10n=t.l10n||a.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=s.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;var i=document.createElement("div");i.className="page",i.style.width=Math.floor(this.viewport.width)+"px",i.style.height=Math.floor(this.viewport.height)+"px",i.setAttribute("data-page-number",this.id),this.div=i,n.appendChild(i)}var t,n,r;return t=e,(n=[{key:"setPdfPage",value:function(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*a.CSS_UNITS,rotation:t}),this.stats=e.stats,this.reset()}},{key:"destroy",value:function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}},{key:"_resetZoomLayer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cancelRendering(t),this.renderingState=s.RenderingStates.INITIAL;var n=this.div;n.style.width=Math.floor(this.viewport.width)+"px",n.style.height=Math.floor(this.viewport.height)+"px";for(var r=n.childNodes,i=e&&this.zoomLayer||null,a=t&&this.annotationLayer&&this.annotationLayer.div||null,o=r.length-1;o>=0;o--){var l=r[o];i!==l&&a!==l&&n.removeChild(l)}n.removeAttribute("data-loaded"),a?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),i||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",n.appendChild(this.loadingIconDiv)}},{key:"update",value:function(e,t){this.scale=e||this.scale,void 0!==t&&(this.rotation=t);var n=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*a.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()});var r=!1;if(this.canvas&&this.maxCanvasPixels>0){var i=this.outputScale;(Math.floor(this.viewport.width)*i.sx|0)*(Math.floor(this.viewport.height)*i.sy|0)>this.maxCanvasPixels&&(r=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&r)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});this.zoomLayer||this.canvas.hasAttribute("hidden")||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}},{key:"cancelRendering",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!e&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}},{key:"cssTransform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],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";var a=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,o=Math.abs(a),s=1,l=1;90!==o&&270!==o||(s=r/n,l=n/r);var c="rotate("+a+"deg) scale("+s+","+l+")";if(e.style.transform=c,this.textLayer){var u=this.textLayer.viewport,h=this.viewport.rotation-u.rotation,d=Math.abs(h),f=n/u.width;90!==d&&270!==d||(f=n/u.height);var p,g,A=this.textLayer.textLayerDiv;switch(d){case 0:p=g=0;break;case 90:p=0,g="-"+A.style.height;break;case 180:p="-"+A.style.width,g="-"+A.style.height;break;case 270:p="-"+A.style.width,g=0;break;default:console.error("Bad rotation value.")}A.style.transform="rotate("+d+"deg) scale("+f+", "+f+") translate("+p+", "+g+")",A.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}},{key:"getPagePoint",value:function(e,t){return this.viewport.convertToPdfPoint(e,t)}},{key:"draw",value:function(){var e=this;this.renderingState!==s.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var t=this.div,n=this.pdfPage;if(!n)return this.renderingState=s.RenderingStates.FINISHED,this.loadingIconDiv&&(t.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=s.RenderingStates.RUNNING;var r=document.createElement("div");r.style.width=t.style.width,r.style.height=t.style.height,r.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?t.insertBefore(r,this.annotationLayer.div):t.appendChild(r);var c=null;if(this.textLayerMode!==a.TextLayerMode.DISABLE&&this.textLayerFactory){var u=document.createElement("div");u.className="textLayer",u.style.width=r.style.width,u.style.height=r.style.height,this.annotationLayer&&this.annotationLayer.div?t.insertBefore(u,this.annotationLayer.div):t.appendChild(u),c=this.textLayerFactory.createTextLayerBuilder(u,this.id-1,this.viewport,this.textLayerMode===a.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=c;var h=null;this.renderingQueue&&(h=function(t){if(!e.renderingQueue.isHighestPriority(e))return e.renderingState=s.RenderingStates.PAUSED,void(e.resume=function(){e.renderingState=s.RenderingStates.RUNNING,t()});t()});var d=function(){var r,a=(r=i.default.mark(function r(a){return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(f===e.paintTask&&(e.paintTask=null),!(a instanceof o.RenderingCancelledException)){r.next=4;break}return e.error=null,r.abrupt("return");case 4:if(e.renderingState=s.RenderingStates.FINISHED,e.loadingIconDiv&&(t.removeChild(e.loadingIconDiv),delete e.loadingIconDiv),e._resetZoomLayer(!0),e.error=a,e.stats=n.stats,e.eventBus.dispatch("pagerendered",{source:e,pageNumber:e.id,cssTransform:!1,timestamp:performance.now()}),!a){r.next=12;break}throw a;case 12:case"end":return r.stop()}},r)}),function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(e){l(a,n,i,o,s,"next",e)}function s(e){l(a,n,i,o,s,"throw",e)}o(void 0)})});return function(e){return a.apply(this,arguments)}}(),f=this.renderer===a.RendererType.SVG?this.paintOnSvg(r):this.paintOnCanvas(r);f.onRenderContinue=h,this.paintTask=f;var p=f.promise.then(function(){return d(null).then(function(){if(c){var e=n.streamTextContent({normalizeWhitespace:!0});c.setTextContentStream(e),c.render()}})},function(e){return d(e)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(t,n,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),t.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),p}},{key:"paintOnCanvas",value:function(e){var t=(0,o.createPromiseCapability)(),n={promise:t.promise,onRenderContinue:function(e){e()},cancel:function(){m.cancel()}},r=this.viewport,i=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then(function(e){i.setAttribute("aria-label",e)}),i.setAttribute("hidden","hidden");var s=!0,l=function(){s&&(i.removeAttribute("hidden"),s=!1)};e.appendChild(i),this.canvas=i,i.mozOpaque=!0;var c=i.getContext("2d",{alpha:!1}),u=(0,a.getOutputScale)(c);if(this.outputScale=u,this.useOnlyCssZoom){var h=r.clone({scale:a.CSS_UNITS});u.sx*=h.width/r.width,u.sy*=h.height/r.height,u.scaled=!0}if(this.maxCanvasPixels>0){var d=r.width*r.height,f=Math.sqrt(this.maxCanvasPixels/d);u.sx>f||u.sy>f?(u.sx=f,u.sy=f,u.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var p=(0,a.approximateFraction)(u.sx),g=(0,a.approximateFraction)(u.sy);i.width=(0,a.roundToDivide)(r.width*u.sx,p[0]),i.height=(0,a.roundToDivide)(r.height*u.sy,g[0]),i.style.width=(0,a.roundToDivide)(r.width,p[1])+"px",i.style.height=(0,a.roundToDivide)(r.height,g[1])+"px",this.paintedViewportMap.set(i,r);var A={canvasContext:c,transform:u.scaled?[u.sx,0,0,u.sy,0,0]:null,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms},m=this.pdfPage.render(A);return m.onContinue=function(e){l(),n.onRenderContinue?n.onRenderContinue(e):e()},m.promise.then(function(){l(),t.resolve(void 0)},function(e){l(),t.reject(e)}),n}},{key:"paintOnSvg",value:function(e){var t=this,n=!1,r=function(){if(n)throw new o.RenderingCancelledException("Rendering cancelled, page ".concat(t.id),"svg")},i=this.pdfPage,l=this.viewport.clone({scale:a.CSS_UNITS});return{promise:i.getOperatorList().then(function(n){return r(),new o.SVGGraphics(i.commonObjs,i.objs).getSVG(n,l).then(function(n){r(),t.svg=n,t.paintedViewportMap.set(n,l),n.style.width=e.style.width,n.style.height=e.style.height,t.renderingState=s.RenderingStates.FINISHED,e.appendChild(n)})}),onRenderContinue:function(e){e()},cancel:function(){n=!0}}}},{key:"setPageLabel",value:function(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")}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}}])&&c(t.prototype,n),r&&c(t,r),e}();t.PDFPageView=h},function(e,t,n){"use strict";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)}}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=t.RenderingStates=void 0;var i={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};t.RenderingStates=i;var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}var t,n,a;return t=e,(n=[{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setThumbnailViewer",value:function(e){this.pdfThumbnailViewer=e}},{key:"isHighestPriority",value:function(e){return this.highestPriorityPage===e.renderingId}},{key:"renderHighestPriority",value:function(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),3e4))}},{key:"getHighestPriority",value:function(e,t,n){var r=e.views,i=r.length;if(0===i)return null;for(var a=0;a<i;++a){var o=r[a].view;if(!this.isViewFinished(o))return o}if(n){var s=e.last.id;if(t[s]&&!this.isViewFinished(t[s]))return t[s]}else{var l=e.first.id-2;if(t[l]&&!this.isViewFinished(t[l]))return t[l]}return null}},{key:"isViewFinished",value:function(e){return e.renderingState===i.FINISHED}},{key:"renderView",value:function(e){var t=this;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(function(){t.renderHighestPriority()}).catch(function(e){console.error('renderView: "'.concat(e,'"'))})}return!0}}])&&r(t.prototype,n),a&&r(t,a),e}();t.PDFRenderingQueue=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSinglePageViewer=void 0;var r=n(19),i=n(2);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(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 s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(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=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===a(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=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&&l(e,t)}(d,r.BaseViewer);var t,n,a,h=c(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(t=h.call(this,e)).eventBus._on("pagesinit",function(e){t._ensurePageViewVisible()}),t}return t=d,(n=[{key:"_resetView",value:function(){s(u(d.prototype),"_resetView",this).call(this),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}},{key:"_ensurePageViewVisible",value:function(){var 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}},{key:"_scrollUpdate",value:function(){this._updateScrollDown&&this._updateScrollDown(),s(u(d.prototype),"_scrollUpdate",this).call(this)}},{key:"_scrollIntoView",value:function(e){var t=this,n=e.pageDiv,r=e.pageSpot,i=void 0===r?null:r,a=e.pageNumber,o=void 0===a?null:a;o&&this._setCurrentPageNumber(o);var l=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),s(u(d.prototype),"_scrollIntoView",this).call(this,{pageDiv:n,pageSpot:i,pageNumber:o}),this._updateScrollDown=function(){t.scroll.down=l,t._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(e){}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_viewerElement",get:function(){return(0,i.shadow)(this,"_viewerElement",this._shadowViewer)}},{key:"_isScrollModeHorizontal",get:function(){return(0,i.shadow)(this,"_isScrollModeHorizontal",!1)}}])&&o(t.prototype,n),a&&o(t,a),d}();t.PDFSinglePageViewer=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseViewer=void 0;var r=n(3),i=n(17),a=n(1),o=n(2),s=n(16),l=n(7),c=n(8);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h=function(){function e(t){var n=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.constructor===e)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=t.container,this.viewer=t.viewer||t.container.firstElementChild,this.eventBus=t.eventBus,this.linkService=t.linkService||new l.SimpleLinkService,this.downloadManager=t.downloadManager||null,this.findController=t.findController||null,this.removePageBorders=t.removePageBorders||!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:r.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms||!1,this.enablePrintAutoRotate=t.enablePrintAutoRotate||!1,this.renderer=t.renderer||r.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels,this.l10n=t.l10n||r.NullL10n,this.defaultRenderingQueue=!t.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new i.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=t.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(function(){n.eventBus.dispatch("baseviewerinit",{source:n})})}var t,n,h;return t=e,(n=[{key:"getPageView",value:function(e){return this._pages[e]}},{key:"_setCurrentPageNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[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)}},{key:"_onePageRenderedOrForceFetch",value:function(){return this.container.offsetParent&&0!==this._getVisiblePages().views.length?this._onePageRenderedCapability.promise:Promise.resolve()}},{key:"setDocument",value:function(e){var t=this;if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=e,e){var n=e.numPages,i=e.getPage(1);this._pagesCapability.promise.then(function(){t.eventBus.dispatch("pagesloaded",{source:t,pagesCount:n})}),this._onBeforeDraw=function(e){var n=t._pages[e.pageNumber-1];n&&t._buffer.push(n)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=function(e){e.cssTransform||t._onePageRenderedCapability.settled||(t._onePageRenderedCapability.resolve(),t.eventBus._off("pagerendered",t._onAfterDraw),t._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),i.then(function(i){t._firstPageCapability.resolve(i);for(var a=t.currentScale,o=i.getViewport({scale:a*r.CSS_UNITS}),l=t.textLayerMode!==r.TextLayerMode.DISABLE?t:null,c=1;c<=n;++c){var u=new s.PDFPageView({container:t._viewerElement,eventBus:t.eventBus,id:c,scale:a,defaultViewport:o.clone(),renderingQueue:t.renderingQueue,textLayerFactory:l,textLayerMode:t.textLayerMode,annotationLayerFactory:t,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,renderer:t.renderer,enableWebGL:t.enableWebGL,useOnlyCssZoom:t.useOnlyCssZoom,maxCanvasPixels:t.maxCanvasPixels,l10n:t.l10n});t._pages.push(u)}var h=t._pages[0];h&&(h.setPdfPage(i),t.linkService.cachePageRef(1,i.ref)),t._spreadMode!==r.SpreadMode.NONE&&t._updateSpreadMode(),t._onePageRenderedOrForceFetch().then(function(){if(t.findController&&t.findController.setDocument(e),e.loadingParams.disableAutoFetch||n>7500)t._pagesCapability.resolve();else{var r=n-1;if(r<=0)t._pagesCapability.resolve();else for(var i=function(n){e.getPage(n).then(function(e){var i=t._pages[n-1];i.pdfPage||i.setPdfPage(e),t.linkService.cachePageRef(n,e.ref),0==--r&&t._pagesCapability.resolve()},function(e){console.error("Unable to get page ".concat(n," to initialize viewer"),e),0==--r&&t._pagesCapability.resolve()})},a=2;a<=n;++a)i(a)}}),t.eventBus.dispatch("pagesinit",{source:t}),t.defaultRenderingQueue&&t.update()}).catch(function(e){console.error("Unable to initialize viewer",e)})}}},{key:"setPageLabels",value:function(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("".concat(this._name,".setPageLabels: Invalid page labels."))):this._pageLabels=null;for(var t=0,n=this._pages.length;t<n;t++){var r=this._pages[t],i=this._pageLabels&&this._pageLabels[t];r.setPageLabel(i)}}}},{key:"_resetView",value:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=r.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new function(e){var t=[];this.push=function(n){var 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){for(var a=new Set,o=0,s=i.length;o<s;++o)a.add(i[o].id);(0,r.moveToEndOfArray)(t,function(e){return a.has(e.id)})}for(;t.length>e;)t.shift().destroy()}}(10),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()}},{key:"_scrollUpdate",value:function(){0!==this.pagesCount&&this.update()}},{key:"_scrollIntoView",value:function(e){var t=e.pageDiv,n=e.pageSpot,i=void 0===n?null:n;e.pageNumber;(0,r.scrollIntoView)(t,i)}},{key:"_setScaleUpdatePages",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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(var i=0,a=this._pages.length;i<a;i++)this._pages[i].update(e);if(this._currentScale=e,!n){var o,s=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(s=this._location.pageNumber,o=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:s,destArray:o,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:r?t:void 0}),this.defaultRenderingQueue&&this.update()}}},{key:"_setScale",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=parseFloat(e);if(n>0)this._setScaleUpdatePages(n,e,t,!1);else{var i=this._pages[this._currentPageNumber-1];if(!i)return;var a=this.isInPresentationMode||this.removePageBorders,o=a?0:r.SCROLLBAR_PADDING,s=a?0:r.VERTICAL_PADDING;if(!a&&this._isScrollModeHorizontal){var l=[s,o];o=l[0],s=l[1]}var c=(this.container.clientWidth-o)/i.width*i.scale,u=(this.container.clientHeight-s)/i.height*i.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=c;break;case"page-height":n=u;break;case"page-fit":n=Math.min(c,u);break;case"auto":var h=(0,r.isPortraitOrientation)(i)?c:Math.min(u,c);n=Math.min(r.MAX_AUTO_SCALE,h);break;default:return void console.error("".concat(this._name,'._setScale: "').concat(e,'" is an unknown zoom value.'))}this._setScaleUpdatePages(n,e,t,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);var e=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:e.div})}},{key:"scrollPageIntoView",value:function(e){var t=e.pageNumber,n=e.destArray,i=void 0===n?null:n,a=e.allowNegativeOffset,o=void 0!==a&&a,s=e.ignoreDestinationZoom,l=void 0!==s&&s;if(this.pdfDocument){var c=Number.isInteger(t)&&this._pages[t-1];if(c)if(!this.isInPresentationMode&&i){var u,h,d=0,f=0,p=0,g=0,A=c.rotation%180!=0,m=(A?c.height:c.width)/c.scale/r.CSS_UNITS,v=(A?c.width:c.height)/c.scale/r.CSS_UNITS,y=0;switch(i[1].name){case"XYZ":d=i[2],f=i[3],y=i[4],d=null!==d?d:0,f=null!==f?f:v;break;case"Fit":case"FitB":y="page-fit";break;case"FitH":case"FitBH":y="page-width",null===(f=i[2])&&this._location&&(d=this._location.left,f=this._location.top);break;case"FitV":case"FitBV":d=i[2],p=m,g=v,y="page-height";break;case"FitR":d=i[2],f=i[3],p=i[4]-d,g=i[5]-f;var b=this.removePageBorders?0:r.SCROLLBAR_PADDING,_=this.removePageBorders?0:r.VERTICAL_PADDING;u=(this.container.clientWidth-b)/p/r.CSS_UNITS,h=(this.container.clientHeight-_)/g/r.CSS_UNITS,y=Math.min(Math.abs(u),Math.abs(h));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(i[1].name,'" is not a valid destination type.'))}if(l||(y&&y!==this._currentScale?this.currentScaleValue=y:this._currentScale===r.UNKNOWN_SCALE&&(this.currentScaleValue=r.DEFAULT_SCALE_VALUE)),"page-fit"!==y||i[4]){var w=[c.viewport.convertToViewportPoint(d,f),c.viewport.convertToViewportPoint(d+p,f+g)],x=Math.min(w[0][0],w[1][0]),C=Math.min(w[0][1],w[1][1]);o||(x=Math.max(x,0),C=Math.max(C,0)),this._scrollIntoView({pageDiv:c.div,pageSpot:{left:x,top:C},pageNumber:t})}else this._scrollIntoView({pageDiv:c.div,pageNumber:t})}else this._setCurrentPageNumber(t,!0);else console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(t,'" is not a valid pageNumber parameter.'))}}},{key:"_updateLocation",value:function(e){var t=this._currentScale,n=this._currentScaleValue,r=parseFloat(n)===t?Math.round(1e4*t)/100:n,i=e.id,a="#page="+i;a+="&zoom="+r;var 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}}},{key:"_updateHelper",value:function(e){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var e=this._getVisiblePages(),t=e.views,n=t.length;if(0!==n){var r=Math.max(10,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})}}},{key:"containsElement",value:function(e){return this.container.contains(e)}},{key:"focus",value:function(){this.container.focus()}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var 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]}}},{key:"_getVisiblePages",value:function(){return(0,r.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}},{key:"isPageVisible",value:function(e){return!!this.pdfDocument&&(e<1||e>this.pagesCount?(console.error("".concat(this._name,'.isPageVisible: "').concat(e,'" is out of bounds.')),!1):this._getVisiblePages().views.some(function(t){return t.id===e}))}},{key:"cleanup",value:function(){for(var e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].renderingState!==i.RenderingStates.FINISHED&&this._pages[e].reset()}},{key:"_cancelRendering",value:function(){for(var e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].cancelRendering()}},{key:"_ensurePdfPageLoaded",value:function(e){var t=this;if(e.pdfPage)return Promise.resolve(e.pdfPage);if(this._pagesRequests.has(e))return this._pagesRequests.get(e);var n=this.pdfDocument.getPage(e.id).then(function(n){return e.pdfPage||e.setPdfPage(n),t._pagesRequests.delete(e),n}).catch(function(n){console.error("Unable to get page for page view",n),t._pagesRequests.delete(e)});return this._pagesRequests.set(e,n),n}},{key:"forceRendering",value:function(e){var t=this,n=e||this._getVisiblePages(),r=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,i=this.renderingQueue.getHighestPriority(n,this._pages,r);return!!i&&(this._ensurePdfPageLoaded(i).then(function(){t.renderingQueue.renderView(i)}),!0)}},{key:"createTextLayerBuilder",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new c.TextLayerBuilder({textLayerDiv:e,eventBus:i,pageIndex:t,viewport:n,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&r})}},{key:"createAnnotationLayerBuilder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.NullL10n;return new a.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:n,renderInteractiveForms:i,linkService:this.linkService,downloadManager:this.downloadManager,l10n:o})}},{key:"getPagesOverview",value:function(){var e=this._pages.map(function(e){var t=e.pdfPage.getViewport({scale:1});return{width:t.width,height:t.height,rotation:t.rotation}});if(!this.enablePrintAutoRotate)return e;var 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}})}},{key:"_updateScrollMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,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())}},{key:"_updateSpreadMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var t=this.viewer,n=this._pages;if(t.textContent="",this._spreadMode===r.SpreadMode.NONE)for(var i=0,a=n.length;i<a;++i)t.appendChild(n[i].div);else for(var o=this._spreadMode-1,s=null,l=0,c=n.length;l<c;++l)null===s?((s=document.createElement("div")).className="spread",t.appendChild(s)):l%2===o&&(s=s.cloneNode(!1),t.appendChild(s)),s.appendChild(n[l].div);e&&(this._setCurrentPageNumber(e,!0),this.update())}}},{key:"pagesCount",get:function(){return this._pages.length}},{key:"pageViewsReady",get:function(){return!!this._pagesCapability.settled&&this._pages.every(function(e){return e&&e.pdfPage})}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(e,!0)||console.error("".concat(this._name,'.currentPageNumber: "').concat(e,'" is not a valid page.')))}},{key:"currentPageLabel",get:function(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]},set:function(e){if(this.pdfDocument){var t=0|e;if(this._pageLabels){var n=this._pageLabels.indexOf(e);n>=0&&(t=n+1)}this._setCurrentPageNumber(t,!0)||console.error("".concat(this._name,'.currentPageLabel: "').concat(e,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==r.UNKNOWN_SCALE?this._currentScale:r.DEFAULT_SCALE},set:function(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(e,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(e){this.pdfDocument&&this._setScale(e,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(e){if(!(0,r.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&this._pagesRotation!==e){this._pagesRotation=e;for(var t=this._currentPageNumber,n=0,i=this._pages.length;n<i;n++){var a=this._pages[n];a.update(a.scale,e)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}}},{key:"firstPagePromise",get:function(){return this.pdfDocument?this._firstPageCapability.promise:null}},{key:"onePageRendered",get:function(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}},{key:"pagesPromise",get:function(){return this.pdfDocument?this._pagesCapability.promise:null}},{key:"_viewerElement",get:function(){throw new Error("Not implemented: _viewerElement")}},{key:"_isScrollModeHorizontal",get:function(){return!this.isInPresentationMode&&this._scrollMode===r.ScrollMode.HORIZONTAL}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===r.PresentationModeState.FULLSCREEN}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===r.PresentationModeState.CHANGING}},{key:"isHorizontalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"hasEqualPageSizes",get:function(){for(var e=this._pages[0],t=1,n=this._pages.length;t<n;++t){var r=this._pages[t];if(r.width!==e.width||r.height!==e.height)return!1}return!0}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(e){if(this._scrollMode!==e){if(!(0,r.isValidScrollMode)(e))throw new Error("Invalid scroll mode: ".concat(e));this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber)}}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(e){if(this._spreadMode!==e){if(!(0,r.isValidSpreadMode)(e))throw new Error("Invalid spread mode: ".concat(e));this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}}])&&u(t.prototype,n),h&&u(t,h),e}();t.BaseViewer=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=void 0;var r=n(19),i=n(2);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(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 c(e,t,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(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=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===a(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 d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=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&&u(e,t)}(f,r.BaseViewer);var t,n,a,s=h(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),s.apply(this,arguments)}return t=f,(n=[{key:"_scrollIntoView",value:function(e){var t=e.pageDiv,n=e.pageSpot,r=void 0===n?null:n,i=e.pageNumber,a=void 0===i?null:i;if(!r&&!this.isInPresentationMode){var o=t.offsetLeft+t.clientLeft,s=o+t.clientWidth,l=this.container,u=l.scrollLeft,h=l.clientWidth;(this._isScrollModeHorizontal||o<u||s>u+h)&&(r={left:0,top:0})}c(d(f.prototype),"_scrollIntoView",this).call(this,{pageDiv:t,pageSpot:r,pageNumber:a})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():c(d(f.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(e){if(!this.isInPresentationMode){var t,n=this._currentPageNumber,r=!1,i=o(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.percent<100)break;if(a.id===n){r=!0;break}}}catch(e){i.e(e)}finally{i.f()}r||(n=e[0].id),this._setCurrentPageNumber(n)}}},{key:"_viewerElement",get:function(){return(0,i.shadow)(this,"_viewerElement",this.viewer)}}])&&l(t.prototype,n),a&&l(t,a),f}();t.PDFViewer=f}])},e.exports=r()},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,g=u.Dispatch,A=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[++A]=function(){s("function"==typeof e?e:Function(e),t)},r(A),A},f=function(e){delete m[e]},"process"==n("R9M2")(h)?r=function(e){h.nextTick(o(v,e,1))}:g&&g.now?r=function(e){g.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}},LAoY:function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,a,o,s,l,c,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;if(l=(i=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=i),e.pos+=l,!0;for(o=s=u;-1!==(o=e.src.indexOf("`",s));){for(s=o+1;s<r&&96===e.src.charCodeAt(s);)s++;if((c=s-o)===l)return t||((a=e.push("code_inline","code",0)).markup=i,a.content=e.src.slice(u,o).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[c]=o}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}},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])}},LSQh:function(e,t,n){"use strict";e.exports=function(e){var t,n,r,i,a,o,s=e.tokens;for(t=0,n=s.length;t<n;t++)if("inline"===s[t].type){for(a=(r=s[t].children).length,i=0;i<a;i++)"text_special"===r[i].type&&(r[i].type="text");for(i=o=0;i<a;i++)"text"===r[i].type&&i+1<a&&"text"===r[i+1].type?r[i+1].content=r[i].content+r[i+1].content:(i!==o&&(r[o]=r[i]),o++);i!==o&&(r.length=o)}}},LyDL:function(e,t){e.exports=function(){this.getLameVersion=function(){return"3.98.4"},this.getLameShortVersion=function(){return"3.98.4"},this.getLameVeryShortVersion=function(){return"LAME3.98r"},this.getPsyVersion=function(){return"0.93"},this.getLameUrl=function(){return"http://www.mp3dev.org/"},this.getLameOsBitness=function(){return"32bits"}}},"M+GW":function(e,t,n){"use strict";var r=n("+N5+").isSpace;e.exports=function(e,t,n,i){var a,o,s,l,c,u,h,d,f,p,g,A,m,v,y,b,_,w,x,C,S=e.lineMax,k=e.bMarks[t]+e.tShift[t],E=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(k++))return!1;if(i)return!0;for(l=f=e.sCount[t]+1,32===e.src.charCodeAt(k)?(k++,l++,f++,a=!1,b=!0):9===e.src.charCodeAt(k)?(b=!0,(e.bsCount[t]+f)%4==3?(k++,l++,f++,a=!1):a=!0):b=!1,p=[e.bMarks[t]],e.bMarks[t]=k;k<E&&(o=e.src.charCodeAt(k),r(o));)9===o?f+=4-(f+e.bsCount[t]+(a?1:0))%4:f++,k++;for(g=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),u=k>=E,v=[e.sCount[t]],e.sCount[t]=f-l,y=[e.tShift[t]],e.tShift[t]=k-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),m=e.parentType,e.parentType="blockquote",d=t+1;d<n&&(C=e.sCount[d]<e.blkIndent,!((k=e.bMarks[d]+e.tShift[d])>=(E=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(k++)||C){if(u)break;for(_=!1,s=0,c=w.length;s<c;s++)if(w[s](e,d,n,!0)){_=!0;break}if(_){e.lineMax=d,0!==e.blkIndent&&(p.push(e.bMarks[d]),g.push(e.bsCount[d]),y.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}p.push(e.bMarks[d]),g.push(e.bsCount[d]),y.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]=-1}else{for(l=f=e.sCount[d]+1,32===e.src.charCodeAt(k)?(k++,l++,f++,a=!1,b=!0):9===e.src.charCodeAt(k)?(b=!0,(e.bsCount[d]+f)%4==3?(k++,l++,f++,a=!1):a=!0):b=!1,p.push(e.bMarks[d]),e.bMarks[d]=k;k<E&&(o=e.src.charCodeAt(k),r(o));)9===o?f+=4-(f+e.bsCount[d]+(a?1:0))%4:f++,k++;u=k>=E,g.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(b?1:0),v.push(e.sCount[d]),e.sCount[d]=f-l,y.push(e.tShift[d]),e.tShift[d]=k-e.bMarks[d]}for(A=e.blkIndent,e.blkIndent=0,(x=e.push("blockquote_open","blockquote",1)).markup=">",x.map=h=[t,0],e.md.block.tokenize(e,t,d),(x=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=m,h[1]=e.line,s=0;s<y.length;s++)e.bMarks[s+t]=p[s],e.tShift[s+t]=y[s],e.sCount[s+t]=v[s],e.bsCount[s+t]=g[s];return e.blkIndent=A,!0}},M3Bs:function(e,t){!function(e){"use strict";var t=e.document,n=e.jsMind;if(n&&void 0===n.draggable){var r=n.util.dom,i="getSelection"in e?function(){e.getSelection().removeAllRanges()}:function(){t.selection.empty()},a=5,o=500,s=80;n.draggable=function(e){this.jm=e,this.e_canvas=null,this.canvas_ctx=null,this.shadow=null,this.shadow_w=0,this.shadow_h=0,this.active_node=null,this.target_node=null,this.target_direct=null,this.client_w=0,this.client_h=0,this.offset_x=0,this.offset_y=0,this.hlookup_delay=0,this.hlookup_timer=0,this.capture=!1,this.moved=!1},n.draggable.prototype={init:function(){this._create_canvas(),this._create_shadow(),this._event_bind()},resize:function(){this.jm.view.e_nodes.appendChild(this.shadow),this.e_canvas.width=this.jm.view.size.w,this.e_canvas.height=this.jm.view.size.h},_create_canvas:function(){var e=t.createElement("canvas");this.jm.view.e_panel.appendChild(e);var n=e.getContext("2d");this.e_canvas=e,this.canvas_ctx=n},_create_shadow:function(){var e=t.createElement("jmnode");e.style.visibility="hidden",e.style.zIndex="3",e.style.cursor="move",e.style.opacity="0.7",this.shadow=e},reset_shadow:function(e){var t=this.shadow.style;this.shadow.innerHTML=e.innerHTML,t.left=e.style.left,t.top=e.style.top,t.width=e.style.width,t.height=e.style.height,t.backgroundImage=e.style.backgroundImage,t.backgroundSize=e.style.backgroundSize,t.transform=e.style.transform,this.shadow_w=this.shadow.clientWidth,this.shadow_h=this.shadow.clientHeight},show_shadow:function(){this.moved||(this.shadow.style.visibility="visible")},hide_shadow:function(){this.shadow.style.visibility="hidden"},_magnet_shadow:function(e){e&&(this.canvas_ctx.lineWidth=a,this.canvas_ctx.strokeStyle="rgba(0,0,0,0.3)",this.canvas_ctx.lineCap="round",this._clear_lines(),this._canvas_lineto(e.sp.x,e.sp.y,e.np.x,e.np.y))},_clear_lines:function(){this.canvas_ctx.clearRect(0,0,this.jm.view.size.w,this.jm.view.size.h)},_canvas_lineto:function(e,t,n,r){this.canvas_ctx.beginPath(),this.canvas_ctx.moveTo(e,t),this.canvas_ctx.lineTo(n,r),this.canvas_ctx.stroke()},_lookup_close_node:function(){var e,t,r=this.jm.get_root(),i=r.get_location(),o=r.get_size(),s=i.x+o.w/2,l=this.shadow_w,c=this.shadow_h,u=this.shadow.offsetLeft,h=this.shadow.offsetTop,d=u+l/2>=s?n.direction.right:n.direction.left,f=this.jm.mind.nodes,p=null,g=this.jm.layout,A=Number.MAX_VALUE,m=0,v=null,y=null,b=null;for(var _ in f){var w,x;if((p=f[_]).isroot||p.direction==d){if(p.id==this.active_node.id)continue;if(!g.is_visible(p))continue;if(e=p.get_size(),t=p.get_location(),d==n.direction.right){if(u-t.x-e.w<=0)continue;m=Math.abs(u-t.x-e.w)+Math.abs(h+c/2-t.y-e.h/2),w={x:t.x+e.w-a,y:t.y+e.h/2},x={x:u+a,y:h+c/2}}else{if(t.x-u-l<=0)continue;m=Math.abs(u+l-t.x)+Math.abs(h+c/2-t.y-e.h/2),w={x:t.x+a,y:t.y+e.h/2},x={x:u+l-a,y:h+c/2}}m<A&&(v=p,y=w,b=x,A=m)}}var C=null;return v&&(C={node:v,direction:d,sp:b,np:y}),C},lookup_close_node:function(){var e=this._lookup_close_node();e&&(this._magnet_shadow(e),this.target_node=e.node,this.target_direct=e.direction)},_event_bind:function(){var e=this,t=this.jm.view.container;r.add_event(t,"mousedown",function(t){var n=t||event;e.dragstart.call(e,n)}),r.add_event(t,"mousemove",function(t){var n=t||event;e.drag.call(e,n)}),r.add_event(t,"mouseup",function(t){var n=t||event;e.dragend.call(e,n)}),r.add_event(t,"touchstart",function(t){var n=t||event;e.dragstart.call(e,n)}),r.add_event(t,"touchmove",function(t){var n=t||event;e.drag.call(e,n)}),r.add_event(t,"touchend",function(t){var n=t||event;e.dragend.call(e,n)})},dragstart:function(t){if(this.jm.get_editable()&&!this.capture){this.active_node=null;var n=this.jm.view,r=t.target||event.srcElement;if("jmnode"==r.tagName.toLowerCase()){var i=n.get_binded_nodeid(r);if(i){var a=this.jm.get_node(i);if(!a.isroot){this.reset_shadow(r),this.active_node=a,this.offset_x=(t.clientX||t.touches[0].clientX)/n.actualZoom-r.offsetLeft,this.offset_y=(t.clientY||t.touches[0].clientY)/n.actualZoom-r.offsetTop,this.client_hw=Math.floor(r.clientWidth/2),this.client_hh=Math.floor(r.clientHeight/2),0!=this.hlookup_delay&&e.clearTimeout(this.hlookup_delay),0!=this.hlookup_timer&&e.clearInterval(this.hlookup_timer);var l=this;this.hlookup_delay=e.setTimeout(function(){l.hlookup_delay=0,l.hlookup_timer=e.setInterval(function(){l.lookup_close_node.call(l)},s)},o),this.capture=!0}}}}},drag:function(e){if(this.jm.get_editable()&&this.capture){e.preventDefault(),this.show_shadow(),this.moved=!0,i();var t=this.jm.view,n=(e.clientX||e.touches[0].clientX)/t.actualZoom-this.offset_x,r=(e.clientY||e.touches[0].clientY)/t.actualZoom-this.offset_y;this.shadow.style.left=n+"px",this.shadow.style.top=r+"px",i()}},dragend:function(t){if(this.jm.get_editable()){if(this.capture){if(0!=this.hlookup_delay&&(e.clearTimeout(this.hlookup_delay),this.hlookup_delay=0,this._clear_lines()),0!=this.hlookup_timer&&(e.clearInterval(this.hlookup_timer),this.hlookup_timer=0,this._clear_lines()),this.moved){var n=this.active_node,r=this.target_node,i=this.target_direct;this.move_node(n,r,i)}this.hide_shadow()}this.moved=!1,this.capture=!1}},move_node:function(e,t,r){var i=this.shadow.offsetTop;if(t&&e&&!n.node.inherited(e,t)){for(var a=t.children,o=a.length,s=null,l=Number.MAX_VALUE,c=null,u="_last_";o--;)if((s=a[o]).direction==r&&s.id!=e.id){var h=s.get_location().y-i;h>0&&h<l&&(l=h,c=s,u="_first_")}c&&(u=c.id),this.jm.move_node(e.id,u,t.id,r)}this.active_node=null,this.target_node=null,this.target_direct=null},jm_event_handle:function(e,t){e===n.event_type.resize&&this.resize()}};var l=new n.plugin("draggable",function(e){var t=new n.draggable(e);t.init(),e.add_event_listener(function(e,n){t.jm_event_handle.call(t,e,n)})});n.register_plugin(l)}}(window)},M6a0:function(e,t){},MHwQ:function(e,t,n){"use strict";var r=n("BldQ"),i=[["normalize",n("N/bT")],["block",n("q/Lo")],["inline",n("uiO5")],["linkify",n("6nDL")],["replacements",n("ai7u")],["smartquotes",n("S/pY")],["text_join",n("LSQh")]];function a(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1])}a.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},a.prototype.State=n("8PNL"),e.exports=a},MJLE:function(e,t,n){var r,i;i=function(){function e(e){this.mode=n.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,r=this.data.length;t<r;t++){var i=[],a=this.data.charCodeAt(t);a>65536?(i[0]=240|(1835008&a)>>>18,i[1]=128|(258048&a)>>>12,i[2]=128|(4032&a)>>>6,i[3]=128|63&a):a>2048?(i[0]=224|(61440&a)>>>12,i[1]=128|(4032&a)>>>6,i[2]=128|63&a):a>128?(i[0]=192|(1984&a)>>>6,i[1]=128|63&a):i[0]=a,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function t(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}e.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t<n;t++)e.put(this.parsedData[t],8)}},t.prototype={addData:function(t){var n=new e(t);this.dataList.push(n),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,n){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[r][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,n),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=f.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i<this.modules.length;i++)for(var a=1*i,o=0;o<this.modules[i].length;o++){var s=1*o;this.modules[i][o]&&(r.beginFill(0,100),r.moveTo(s,a),r.lineTo(s+1,a),r.lineTo(s+1,a+1),r.lineTo(s,a+1),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=f.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],i=e[n];if(null==this.modules[r][i])for(var a=-2;a<=2;a++)for(var o=-2;o<=2;o++)this.modules[r+a][i+o]=-2==a||2==a||-2==o||2==o||0==a&&0==o}},setupTypeNumber:function(e){for(var t=f.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=f.getBCHTypeInfo(n),i=0;i<15;i++){var a=!e&&1==(r>>i&1);i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(i=0;i<15;i++){a=!e&&1==(r>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,a=0,o=this.moduleCount-1;o>0;o-=2)for(6==o&&o--;;){for(var s=0;s<2;s++)if(null==this.modules[r][o-s]){var l=!1;a<e.length&&(l=1==(e[a]>>>i&1)),f.getMask(t,r,o-s)&&(l=!l),this.modules[r][o-s]=l,-1==--i&&(a++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}},t.PAD0=236,t.PAD1=17,t.createData=function(e,n,r){for(var i=m.getRSBlocks(e,n),a=new v,o=0;o<r.length;o++){var s=r[o];a.put(s.mode,4),a.put(s.getLength(),f.getLengthInBits(s.mode,e)),s.write(a)}var l=0;for(o=0;o<i.length;o++)l+=i[o].dataCount;if(a.getLengthInBits()>8*l)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*l+")");for(a.getLengthInBits()+4<=8*l&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*l||(a.put(t.PAD0,8),a.getLengthInBits()>=8*l));)a.put(t.PAD1,8);return t.createBytes(a,i)},t.createBytes=function(e,t){for(var n=0,r=0,i=0,a=new Array(t.length),o=new Array(t.length),s=0;s<t.length;s++){var l=t[s].dataCount,c=t[s].totalCount-l;r=Math.max(r,l),i=Math.max(i,c),a[s]=new Array(l);for(var u=0;u<a[s].length;u++)a[s][u]=255&e.buffer[u+n];n+=l;var h=f.getErrorCorrectPolynomial(c),d=new A(a[s],h.getLength()-1).mod(h);o[s]=new Array(h.getLength()-1);for(u=0;u<o[s].length;u++){var p=u+d.getLength()-o[s].length;o[s][u]=p>=0?d.get(p):0}}var g=0;for(u=0;u<t.length;u++)g+=t[u].totalCount;var m=new Array(g),v=0;for(u=0;u<r;u++)for(s=0;s<t.length;s++)u<a[s].length&&(m[v++]=a[s][u]);for(u=0;u<i;u++)for(s=0;s<t.length;s++)u<o[s].length&&(m[v++]=o[s][u]);return m};for(var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},a=0,o=1,s=2,l=3,c=4,u=5,h=6,d=7,f={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;f.getBCHDigit(t)-f.getBCHDigit(f.G15)>=0;)t^=f.G15<<f.getBCHDigit(t)-f.getBCHDigit(f.G15);return(e<<10|t)^f.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;f.getBCHDigit(t)-f.getBCHDigit(f.G18)>=0;)t^=f.G18<<f.getBCHDigit(t)-f.getBCHDigit(f.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return f.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a:return(t+n)%2==0;case o:return t%2==0;case s:return n%3==0;case l:return(t+n)%3==0;case c:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case u:return t*n%2+t*n%3==0;case h:return(t*n%2+t*n%3)%2==0;case d:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new A([1],0),n=0;n<e;n++)t=t.multiply(new A([1,p.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var i=0;i<t;i++){for(var a=0,o=e.isDark(r,i),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l++)i+l<0||t<=i+l||0==s&&0==l||o==e.isDark(r+s,i+l)&&a++;a>5&&(n+=3+a-5)}for(r=0;r<t-1;r++)for(i=0;i<t-1;i++){var c=0;e.isDark(r,i)&&c++,e.isDark(r+1,i)&&c++,e.isDark(r,i+1)&&c++,e.isDark(r+1,i+1)&&c++,0!=c&&4!=c||(n+=3)}for(r=0;r<t;r++)for(i=0;i<t-6;i++)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(i=0;i<t;i++)for(r=0;r<t-6;r++)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);var u=0;for(i=0;i<t;i++)for(r=0;r<t;r++)e.isDark(r,i)&&u++;return n+=10*(Math.abs(100*u/t/t-50)/5)}},p={glog:function(e){if(e<1)throw new Error("glog("+e+")");return p.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return p.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)p.EXP_TABLE[g]=1<<g;for(g=8;g<256;g++)p.EXP_TABLE[g]=p.EXP_TABLE[g-4]^p.EXP_TABLE[g-5]^p.EXP_TABLE[g-6]^p.EXP_TABLE[g-8];for(g=0;g<255;g++)p.LOG_TABLE[p.EXP_TABLE[g]]=g;function A(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}function m(e,t){this.totalCount=e,this.dataCount=t}function v(){this.buffer=[],this.length=0}A.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<e.getLength();r++)t[n+r]^=p.gexp(p.glog(this.get(n))+p.glog(e.get(r)));return new A(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=p.glog(this.get(0))-p.glog(e.get(0)),n=new Array(this.getLength()),r=0;r<this.getLength();r++)n[r]=this.get(r);for(r=0;r<e.getLength();r++)n[r]^=p.gexp(p.glog(e.get(r))+t);return new A(n,0).mod(e)}},m.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],m.getRSBlocks=function(e,t){var n=m.getRsBlockTable(e,t);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,i=[],a=0;a<r;a++)for(var o=n[3*a+0],s=n[3*a+1],l=n[3*a+2],c=0;c<o;c++)i.push(new m(s,l));return i},m.getRsBlockTable=function(e,t){switch(t){case i.L:return m.RS_BLOCK_TABLE[4*(e-1)+0];case i.M:return m.RS_BLOCK_TABLE[4*(e-1)+1];case i.Q:return m.RS_BLOCK_TABLE[4*(e-1)+2];case i.H:return m.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},v.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var y=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function b(){var e=!1,t=navigator.userAgent;if(/android/i.test(t)){e=!0;var n=t.toString().match(/android ([0-9]\.[0-9])/i);n&&n[1]&&(e=parseFloat(n[1]))}return e}var _=function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){var t=this._htOption,n=this._el,r=e.getModuleCount();Math.floor(t.width/r),Math.floor(t.height/r);function i(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg",e);for(var r in t)t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n}this.clear();var a=i("svg",{viewBox:"0 0 "+String(r)+" "+String(r),width:"100%",height:"100%",fill:t.colorLight});a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),n.appendChild(a),a.appendChild(i("rect",{fill:t.colorLight,width:"100%",height:"100%"})),a.appendChild(i("rect",{fill:t.colorDark,width:"1",height:"1",id:"template"}));for(var o=0;o<r;o++)for(var s=0;s<r;s++)if(e.isDark(o,s)){var l=i("use",{x:String(s),y:String(o)});l.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),a.appendChild(l)}},e.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},e}(),w="svg"===document.documentElement.tagName.toLowerCase()?_:"undefined"==typeof CanvasRenderingContext2D?function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){for(var t=this._htOption,n=this._el,r=e.getModuleCount(),i=Math.floor(t.width/r),a=Math.floor(t.height/r),o=['<table style="border:0;border-collapse:collapse;">'],s=0;s<r;s++){o.push("<tr>");for(var l=0;l<r;l++)o.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+i+"px;height:"+a+"px;background-color:"+(e.isDark(s,l)?t.colorDark:t.colorLight)+';"></td>');o.push("</tr>")}o.push("</table>"),n.innerHTML=o.join("");var c=n.childNodes[0],u=(t.width-c.offsetWidth)/2,h=(t.height-c.offsetHeight)/2;u>0&&h>0&&(c.style.margin=h+"px "+u+"px")},e.prototype.clear=function(){this._el.innerHTML=""},e}():function(){function e(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this._android&&this._android<=2.1){var t=1/window.devicePixelRatio,n=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(e,r,i,a,o,s,l,c,u){if("nodeName"in e&&/img/i.test(e.nodeName))for(var h=arguments.length-1;h>=1;h--)arguments[h]=arguments[h]*t;else void 0===c&&(arguments[1]*=t,arguments[2]*=t,arguments[3]*=t,arguments[4]*=t);n.apply(this,arguments)}}var r=function(e,t){this._bIsPainted=!1,this._android=b(),this._htOption=t,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=t.width,this._elCanvas.height=t.height,e.appendChild(this._elCanvas),this._el=e,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return r.prototype.draw=function(e){var t=this._elImage,n=this._oContext,r=this._htOption,i=e.getModuleCount(),a=r.width/i,o=r.height/i,s=Math.round(a),l=Math.round(o);t.style.display="none",this.clear();for(var c=0;c<i;c++)for(var u=0;u<i;u++){var h=e.isDark(c,u),d=u*a,f=c*o;n.strokeStyle=h?r.colorDark:r.colorLight,n.lineWidth=1,n.fillStyle=h?r.colorDark:r.colorLight,n.fillRect(d,f,a,o),n.strokeRect(Math.floor(d)+.5,Math.floor(f)+.5,s,l),n.strokeRect(Math.ceil(d)-.5,Math.ceil(f)-.5,s,l)}this._bIsPainted=!0},r.prototype.makeImage=function(){this._bIsPainted&&function(e,t){var n=this;if(n._fFail=t,n._fSuccess=e,null===n._bSupportDataURI){var r=document.createElement("img"),i=function(){n._bSupportDataURI=!1,n._fFail&&n._fFail.call(n)};return r.onabort=i,r.onerror=i,r.onload=function(){n._bSupportDataURI=!0,n._fSuccess&&n._fSuccess.call(n)},void(r.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===n._bSupportDataURI&&n._fSuccess?n._fSuccess.call(n):!1===n._bSupportDataURI&&n._fFail&&n._fFail.call(n)}.call(this,e)},r.prototype.isPainted=function(){return this._bIsPainted},r.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},r.prototype.round=function(e){return e?Math.floor(1e3*e)/1e3:e},r}();function x(e,t){for(var n=1,r=function(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}(e),a=0,o=y.length;a<=o;a++){var s=0;switch(t){case i.L:s=y[a][0];break;case i.M:s=y[a][1];break;case i.Q:s=y[a][2];break;case i.H:s=y[a][3]}if(r<=s)break;n++}if(n>y.length)throw new Error("Too long data");return n}return(r=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:i.H},"string"==typeof t&&(t={text:t}),t)for(var n in t)this._htOption[n]=t[n];"string"==typeof e&&(e=document.getElementById(e)),this._htOption.useSVG&&(w=_),this._android=b(),this._el=e,this._oQRCode=null,this._oDrawing=new w(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)}).prototype.makeCode=function(e){this._oQRCode=new t(x(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},r.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},r.prototype.clear=function(){this._oDrawing.clear()},r.CorrectLevel=i,r},e.exports=i()},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")}},Mur9:function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},"N/bT":function(e,t,n){"use strict";var r=/\r\n?|\n/g,i=/\0/g;e.exports=function(e){var t;t=(t=e.src.replace(r,"\n")).replace(i,"�"),e.src=t}},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),g="fixed"===t.offsets.popper.position?0:(a=f)==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):a.scrollTop,A="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-g),right:e.document.documentElement.clientWidth-(p.left-A),bottom:e.document.documentElement.clientHeight-(p.top-g),left:0-(p.left-A)}}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 g=l[h]+(n||l[u]/2-p/2)-s[h];return g=Math.max(Math.min(s[u]-p-8,g),8),i[h]=g,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,g,A,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((A=t?v(o(p=e[y])[0],p[1]):v(e[y]))===c||A===u)return A}else for(g=m.call(e);!(p=g.next()).done;)if((A=i(g,v,p.value,t))===c||A===u)return A}).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;g(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;g(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 g(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=A(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 A(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){g(e,t,n.concat(a),r,i)})}function A(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||
  38. /*!
  39. * vuex v3.6.2
  40. * (c) 2021 Evan You
  41. * @license MIT
  42. */
  43. 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),g(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=A(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 x(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 x(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}),_=C(function(e,t){var n={};return x(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}),w=C(function(e,t){var n={};return x(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 x(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 E(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function T(){var e=new Date;return" @ "+B(e.getHours(),2)+":"+B(e.getMinutes(),2)+":"+B(e.getSeconds(),2)+"."+B(e.getMilliseconds(),3)}function B(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:_,mapActions:w,createNamespacedHelpers:function(e){return{mapState:y.bind(null,e),mapGetters:_.bind(null,e),mapMutations:b.bind(null,e),mapActions:w.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=T(),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)),E(u)}h=s}),c&&e.subscribeAction(function(e,n){if(o(e,n)){var r=T(),i=s(e),a="action "+e.type+r;k(u,a,t),u.log("%c action","color: #03A9F4; font-weight: bold",i),E(u)}}))}}};t.a=I}).call(t,n("DuR2"))},NpIQ:function(e,t){t.f={}.propertyIsEnumerable},O4g8:function(e,t){e.exports=!0},O7JS:function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},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)}},OSvQ:function(e,t){function n(e,t,n,r){this.xlen=e,this.linmax=t,this.table=n,this.hlen=r}var r={t1HB:[1,1,1,0],t2HB:[1,2,1,3,1,1,3,2,0],t3HB:[3,2,1,1,1,1,3,2,0],t5HB:[1,2,6,5,3,1,4,4,7,5,7,1,6,1,1,0],t6HB:[7,3,5,1,6,2,3,2,5,4,4,1,3,3,2,0],t7HB:[1,2,10,19,16,10,3,3,7,10,5,3,11,4,13,17,8,4,12,11,18,15,11,2,7,6,9,14,3,1,6,4,5,3,2,0],t8HB:[3,4,6,18,12,5,5,1,2,16,9,3,7,3,5,14,7,3,19,17,15,13,10,4,13,5,8,11,5,1,12,4,4,1,1,0],t9HB:[7,5,9,14,15,7,6,4,5,5,6,7,7,6,8,8,8,5,15,6,9,10,5,1,11,7,9,6,4,1,14,4,6,2,6,0],t10HB:[1,2,10,23,35,30,12,17,3,3,8,12,18,21,12,7,11,9,15,21,32,40,19,6,14,13,22,34,46,23,18,7,20,19,33,47,27,22,9,3,31,22,41,26,21,20,5,3,14,13,10,11,16,6,5,1,9,8,7,8,4,4,2,0],t11HB:[3,4,10,24,34,33,21,15,5,3,4,10,32,17,11,10,11,7,13,18,30,31,20,5,25,11,19,59,27,18,12,5,35,33,31,58,30,16,7,5,28,26,32,19,17,15,8,14,14,12,9,13,14,9,4,1,11,4,6,6,6,3,2,0],t12HB:[9,6,16,33,41,39,38,26,7,5,6,9,23,16,26,11,17,7,11,14,21,30,10,7,17,10,15,12,18,28,14,5,32,13,22,19,18,16,9,5,40,17,31,29,17,13,4,2,27,12,11,15,10,7,4,1,27,12,8,12,6,3,1,0],t13HB:[1,5,14,21,34,51,46,71,42,52,68,52,67,44,43,19,3,4,12,19,31,26,44,33,31,24,32,24,31,35,22,14,15,13,23,36,59,49,77,65,29,40,30,40,27,33,42,16,22,20,37,61,56,79,73,64,43,76,56,37,26,31,25,14,35,16,60,57,97,75,114,91,54,73,55,41,48,53,23,24,58,27,50,96,76,70,93,84,77,58,79,29,74,49,41,17,47,45,78,74,115,94,90,79,69,83,71,50,59,38,36,15,72,34,56,95,92,85,91,90,86,73,77,65,51,44,43,42,43,20,30,44,55,78,72,87,78,61,46,54,37,30,20,16,53,25,41,37,44,59,54,81,66,76,57,54,37,18,39,11,35,33,31,57,42,82,72,80,47,58,55,21,22,26,38,22,53,25,23,38,70,60,51,36,55,26,34,23,27,14,9,7,34,32,28,39,49,75,30,52,48,40,52,28,18,17,9,5,45,21,34,64,56,50,49,45,31,19,12,15,10,7,6,3,48,23,20,39,36,35,53,21,16,23,13,10,6,1,4,2,16,15,17,27,25,20,29,11,17,12,16,8,1,1,0,1],t15HB:[7,12,18,53,47,76,124,108,89,123,108,119,107,81,122,63,13,5,16,27,46,36,61,51,42,70,52,83,65,41,59,36,19,17,15,24,41,34,59,48,40,64,50,78,62,80,56,33,29,28,25,43,39,63,55,93,76,59,93,72,54,75,50,29,52,22,42,40,67,57,95,79,72,57,89,69,49,66,46,27,77,37,35,66,58,52,91,74,62,48,79,63,90,62,40,38,125,32,60,56,50,92,78,65,55,87,71,51,73,51,70,30,109,53,49,94,88,75,66,122,91,73,56,42,64,44,21,25,90,43,41,77,73,63,56,92,77,66,47,67,48,53,36,20,71,34,67,60,58,49,88,76,67,106,71,54,38,39,23,15,109,53,51,47,90,82,58,57,48,72,57,41,23,27,62,9,86,42,40,37,70,64,52,43,70,55,42,25,29,18,11,11,118,68,30,55,50,46,74,65,49,39,24,16,22,13,14,7,91,44,39,38,34,63,52,45,31,52,28,19,14,8,9,3,123,60,58,53,47,43,32,22,37,24,17,12,15,10,2,1,71,37,34,30,28,20,17,26,21,16,10,6,8,6,2,0],t16HB:[1,5,14,44,74,63,110,93,172,149,138,242,225,195,376,17,3,4,12,20,35,62,53,47,83,75,68,119,201,107,207,9,15,13,23,38,67,58,103,90,161,72,127,117,110,209,206,16,45,21,39,69,64,114,99,87,158,140,252,212,199,387,365,26,75,36,68,65,115,101,179,164,155,264,246,226,395,382,362,9,66,30,59,56,102,185,173,265,142,253,232,400,388,378,445,16,111,54,52,100,184,178,160,133,257,244,228,217,385,366,715,10,98,48,91,88,165,157,148,261,248,407,397,372,380,889,884,8,85,84,81,159,156,143,260,249,427,401,392,383,727,713,708,7,154,76,73,141,131,256,245,426,406,394,384,735,359,710,352,11,139,129,67,125,247,233,229,219,393,743,737,720,885,882,439,4,243,120,118,115,227,223,396,746,742,736,721,712,706,223,436,6,202,224,222,218,216,389,386,381,364,888,443,707,440,437,1728,4,747,211,210,208,370,379,734,723,714,1735,883,877,876,3459,865,2,377,369,102,187,726,722,358,711,709,866,1734,871,3458,870,434,0,12,10,7,11,10,17,11,9,13,12,10,7,5,3,1,3],t24HB:[15,13,46,80,146,262,248,434,426,669,653,649,621,517,1032,88,14,12,21,38,71,130,122,216,209,198,327,345,319,297,279,42,47,22,41,74,68,128,120,221,207,194,182,340,315,295,541,18,81,39,75,70,134,125,116,220,204,190,178,325,311,293,271,16,147,72,69,135,127,118,112,210,200,188,352,323,306,285,540,14,263,66,129,126,119,114,214,202,192,180,341,317,301,281,262,12,249,123,121,117,113,215,206,195,185,347,330,308,291,272,520,10,435,115,111,109,211,203,196,187,353,332,313,298,283,531,381,17,427,212,208,205,201,193,186,177,169,320,303,286,268,514,377,16,335,199,197,191,189,181,174,333,321,305,289,275,521,379,371,11,668,184,183,179,175,344,331,314,304,290,277,530,383,373,366,10,652,346,171,168,164,318,309,299,287,276,263,513,375,368,362,6,648,322,316,312,307,302,292,284,269,261,512,376,370,364,359,4,620,300,296,294,288,282,273,266,515,380,374,369,365,361,357,2,1033,280,278,274,267,264,259,382,378,372,367,363,360,358,356,0,43,20,19,17,15,13,11,9,7,6,4,7,5,3,1,3],t32HB:[1,10,8,20,12,20,16,32,14,12,24,0,28,16,24,16],t33HB:[15,28,26,48,22,40,36,64,14,24,20,32,12,16,8,0],t1l:[1,4,3,5],t2l:[1,4,7,4,5,7,6,7,8],t3l:[2,3,7,4,4,7,6,7,8],t5l:[1,4,7,8,4,5,8,9,7,8,9,10,8,8,9,10],t6l:[3,4,6,8,4,4,6,7,5,6,7,8,7,7,8,9],t7l:[1,4,7,9,9,10,4,6,8,9,9,10,7,7,9,10,10,11,8,9,10,11,11,11,8,9,10,11,11,12,9,10,11,12,12,12],t8l:[2,4,7,9,9,10,4,4,6,10,10,10,7,6,8,10,10,11,9,10,10,11,11,12,9,9,10,11,12,12,10,10,11,11,13,13],t9l:[3,4,6,7,9,10,4,5,6,7,8,10,5,6,7,8,9,10,7,7,8,9,9,10,8,8,9,9,10,11,9,9,10,10,11,11],t10l:[1,4,7,9,10,10,10,11,4,6,8,9,10,11,10,10,7,8,9,10,11,12,11,11,8,9,10,11,12,12,11,12,9,10,11,12,12,12,12,12,10,11,12,12,13,13,12,13,9,10,11,12,12,12,13,13,10,10,11,12,12,13,13,13],t11l:[2,4,6,8,9,10,9,10,4,5,6,8,10,10,9,10,6,7,8,9,10,11,10,10,8,8,9,11,10,12,10,11,9,10,10,11,11,12,11,12,9,10,11,12,12,13,12,13,9,9,9,10,11,12,12,12,9,9,10,11,12,12,12,12],t12l:[4,4,6,8,9,10,10,10,4,5,6,7,9,9,10,10,6,6,7,8,9,10,9,10,7,7,8,8,9,10,10,10,8,8,9,9,10,10,10,11,9,9,10,10,10,11,10,11,9,9,9,10,10,11,11,12,10,10,10,11,11,11,11,12],t13l:[1,5,7,8,9,10,10,11,10,11,12,12,13,13,14,14,4,6,8,9,10,10,11,11,11,11,12,12,13,14,14,14,7,8,9,10,11,11,12,12,11,12,12,13,13,14,15,15,8,9,10,11,11,12,12,12,12,13,13,13,13,14,15,15,9,9,11,11,12,12,13,13,12,13,13,14,14,15,15,16,10,10,11,12,12,12,13,13,13,13,14,13,15,15,16,16,10,11,12,12,13,13,13,13,13,14,14,14,15,15,16,16,11,11,12,13,13,13,14,14,14,14,15,15,15,16,18,18,10,10,11,12,12,13,13,14,14,14,14,15,15,16,17,17,11,11,12,12,13,13,13,15,14,15,15,16,16,16,18,17,11,12,12,13,13,14,14,15,14,15,16,15,16,17,18,19,12,12,12,13,14,14,14,14,15,15,15,16,17,17,17,18,12,13,13,14,14,15,14,15,16,16,17,17,17,18,18,18,13,13,14,15,15,15,16,16,16,16,16,17,18,17,18,18,14,14,14,15,15,15,17,16,16,19,17,17,17,19,18,18,13,14,15,16,16,16,17,16,17,17,18,18,21,20,21,18],t15l:[3,5,6,8,8,9,10,10,10,11,11,12,12,12,13,14,5,5,7,8,9,9,10,10,10,11,11,12,12,12,13,13,6,7,7,8,9,9,10,10,10,11,11,12,12,13,13,13,7,8,8,9,9,10,10,11,11,11,12,12,12,13,13,13,8,8,9,9,10,10,11,11,11,11,12,12,12,13,13,13,9,9,9,10,10,10,11,11,11,11,12,12,13,13,13,14,10,9,10,10,10,11,11,11,11,12,12,12,13,13,14,14,10,10,10,11,11,11,11,12,12,12,12,12,13,13,13,14,10,10,10,11,11,11,11,12,12,12,12,13,13,14,14,14,10,10,11,11,11,11,12,12,12,13,13,13,13,14,14,14,11,11,11,11,12,12,12,12,12,13,13,13,13,14,15,14,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,15,12,12,11,12,12,12,13,13,13,13,13,13,14,14,15,15,12,12,12,12,12,13,13,13,13,14,14,14,14,14,15,15,13,13,13,13,13,13,13,13,14,14,14,14,15,15,14,15,13,13,13,13,13,13,13,14,14,14,14,14,15,15,15,15],t16_5l:[1,5,7,9,10,10,11,11,12,12,12,13,13,13,14,11,4,6,8,9,10,11,11,11,12,12,12,13,14,13,14,11,7,8,9,10,11,11,12,12,13,12,13,13,13,14,14,12,9,9,10,11,11,12,12,12,13,13,14,14,14,15,15,13,10,10,11,11,12,12,13,13,13,14,14,14,15,15,15,12,10,10,11,11,12,13,13,14,13,14,14,15,15,15,16,13,11,11,11,12,13,13,13,13,14,14,14,14,15,15,16,13,11,11,12,12,13,13,13,14,14,15,15,15,15,17,17,13,11,12,12,13,13,13,14,14,15,15,15,15,16,16,16,13,12,12,12,13,13,14,14,15,15,15,15,16,15,16,15,14,12,13,12,13,14,14,14,14,15,16,16,16,17,17,16,13,13,13,13,13,14,14,15,16,16,16,16,16,16,15,16,14,13,14,14,14,14,15,15,15,15,17,16,16,16,16,18,14,15,14,14,14,15,15,16,16,16,18,17,17,17,19,17,14,14,15,13,14,16,16,15,16,16,17,18,17,19,17,16,14,11,11,11,12,12,13,13,13,14,14,14,14,14,14,14,12],t16l:[1,5,7,9,10,10,11,11,12,12,12,13,13,13,14,10,4,6,8,9,10,11,11,11,12,12,12,13,14,13,14,10,7,8,9,10,11,11,12,12,13,12,13,13,13,14,14,11,9,9,10,11,11,12,12,12,13,13,14,14,14,15,15,12,10,10,11,11,12,12,13,13,13,14,14,14,15,15,15,11,10,10,11,11,12,13,13,14,13,14,14,15,15,15,16,12,11,11,11,12,13,13,13,13,14,14,14,14,15,15,16,12,11,11,12,12,13,13,13,14,14,15,15,15,15,17,17,12,11,12,12,13,13,13,14,14,15,15,15,15,16,16,16,12,12,12,12,13,13,14,14,15,15,15,15,16,15,16,15,13,12,13,12,13,14,14,14,14,15,16,16,16,17,17,16,12,13,13,13,13,14,14,15,16,16,16,16,16,16,15,16,13,13,14,14,14,14,15,15,15,15,17,16,16,16,16,18,13,15,14,14,14,15,15,16,16,16,18,17,17,17,19,17,13,14,15,13,14,16,16,15,16,16,17,18,17,19,17,16,13,10,10,10,11,11,12,12,12,13,13,13,13,13,13,13,10],t24l:[4,5,7,8,9,10,10,11,11,12,12,12,12,12,13,10,5,6,7,8,9,10,10,11,11,11,12,12,12,12,12,10,7,7,8,9,9,10,10,11,11,11,11,12,12,12,13,9,8,8,9,9,10,10,10,11,11,11,11,12,12,12,12,9,9,9,9,10,10,10,10,11,11,11,12,12,12,12,13,9,10,9,10,10,10,10,11,11,11,11,12,12,12,12,12,9,10,10,10,10,10,11,11,11,11,12,12,12,12,12,13,9,11,10,10,10,11,11,11,11,12,12,12,12,12,13,13,10,11,11,11,11,11,11,11,11,11,12,12,12,12,13,13,10,11,11,11,11,11,11,11,12,12,12,12,12,13,13,13,10,12,11,11,11,11,12,12,12,12,12,12,13,13,13,13,10,12,12,11,11,11,12,12,12,12,12,12,13,13,13,13,10,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,10,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,10,13,12,12,12,12,12,12,13,13,13,13,13,13,13,13,10,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,6],t32l:[1,5,5,7,5,8,7,9,5,7,7,9,7,9,9,10],t33l:[4,5,5,6,5,6,6,7,5,6,6,7,6,7,7,8]};r.ht=[new n(0,0,null,null),new n(2,0,r.t1HB,r.t1l),new n(3,0,r.t2HB,r.t2l),new n(3,0,r.t3HB,r.t3l),new n(0,0,null,null),new n(4,0,r.t5HB,r.t5l),new n(4,0,r.t6HB,r.t6l),new n(6,0,r.t7HB,r.t7l),new n(6,0,r.t8HB,r.t8l),new n(6,0,r.t9HB,r.t9l),new n(8,0,r.t10HB,r.t10l),new n(8,0,r.t11HB,r.t11l),new n(8,0,r.t12HB,r.t12l),new n(16,0,r.t13HB,r.t13l),new n(0,0,null,r.t16_5l),new n(16,0,r.t15HB,r.t15l),new n(1,1,r.t16HB,r.t16l),new n(2,3,r.t16HB,r.t16l),new n(3,7,r.t16HB,r.t16l),new n(4,15,r.t16HB,r.t16l),new n(6,63,r.t16HB,r.t16l),new n(8,255,r.t16HB,r.t16l),new n(10,1023,r.t16HB,r.t16l),new n(13,8191,r.t16HB,r.t16l),new n(4,15,r.t24HB,r.t24l),new n(5,31,r.t24HB,r.t24l),new n(6,63,r.t24HB,r.t24l),new n(7,127,r.t24HB,r.t24l),new n(8,255,r.t24HB,r.t24l),new n(9,511,r.t24HB,r.t24l),new n(11,2047,r.t24HB,r.t24l),new n(13,8191,r.t24HB,r.t24l),new n(0,0,r.t32HB,r.t32l),new n(0,0,r.t33HB,r.t33l)],r.largetbl=[65540,327685,458759,589832,655369,655370,720906,720907,786443,786444,786444,851980,851980,851980,917517,655370,262149,393222,524295,589832,655369,720906,720906,720907,786443,786443,786444,851980,917516,851980,917516,655370,458759,524295,589832,655369,720905,720906,786442,786443,851979,786443,851979,851980,851980,917516,917517,720905,589832,589832,655369,720905,720906,786442,786442,786443,851979,851979,917515,917516,917516,983052,983052,786441,655369,655369,720905,720906,786442,786442,851978,851979,851979,917515,917516,917516,983052,983052,983053,720905,655370,655369,720906,720906,786442,851978,851979,917515,851979,917515,917516,983052,983052,983052,1048588,786441,720906,720906,720906,786442,851978,851979,851979,851979,917515,917516,917516,917516,983052,983052,1048589,786441,720907,720906,786442,786442,851979,851979,851979,917515,917516,983052,983052,983052,983052,1114125,1114125,786442,720907,786443,786443,851979,851979,851979,917515,917515,983051,983052,983052,983052,1048588,1048589,1048589,786442,786443,786443,786443,851979,851979,917515,917515,983052,983052,983052,983052,1048588,983053,1048589,983053,851978,786444,851979,786443,851979,917515,917516,917516,917516,983052,1048588,1048588,1048589,1114125,1114125,1048589,786442,851980,851980,851979,851979,917515,917516,983052,1048588,1048588,1048588,1048588,1048589,1048589,983053,1048589,851978,851980,917516,917516,917516,917516,983052,983052,983052,983052,1114124,1048589,1048589,1048589,1048589,1179661,851978,983052,917516,917516,917516,983052,983052,1048588,1048588,1048589,1179661,1114125,1114125,1114125,1245197,1114125,851978,917517,983052,851980,917516,1048588,1048588,983052,1048589,1048589,1114125,1179661,1114125,1245197,1114125,1048589,851978,655369,655369,655369,720905,720905,786441,786441,786441,851977,851977,851977,851978,851978,851978,851978,655366],r.table23=[65538,262147,458759,262148,327684,458759,393222,458759,524296],r.table56=[65539,262148,458758,524296,262148,327684,524294,589831,458757,524294,589831,655368,524295,524295,589832,655369],r.bitrate_table=[[0,8,16,24,32,40,48,56,64,80,96,112,128,144,160,-1],[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],[0,8,16,24,32,40,48,56,64,-1,-1,-1,-1,-1,-1,-1]],r.samplerate_table=[[22050,24e3,16e3,-1],[44100,48e3,32e3,-1],[11025,12e3,8e3,-1]],r.scfsi_band=[0,6,11,16,21],e.exports=r},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}},PMNR:function(e,t,n){(function(t,n,r){var i,a;a=function(){return function e(t,n,r){function a(s,l){if(!n[s]){if(!t[s]){if(!l&&("function"==typeof i&&i))return i(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){return a(t[s][1][e]||e)},u,u.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof i&&i,s=0;s<r.length;s++)a(r[s]);return a}({1:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,o,s,l,c,u=[],h=0,d=e.length,f=d,p="string"!==r.getTypeOf(e);h<e.length;)f=d-h,i=p?(t=e[h++],n=h<d?e[h++]:0,h<d?e[h++]:0):(t=e.charCodeAt(h++),n=h<d?e.charCodeAt(h++):0,h<d?e.charCodeAt(h++):0),o=t>>2,s=(3&t)<<4|n>>4,l=1<f?(15&n)<<2|i>>6:64,c=2<f?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(l)+a.charAt(c));return u.join("")},n.decode=function(e){var t,n,r,o,s,l,c=0,u=0,h="data:";if(e.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&f--,e.charAt(e.length-2)===a.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=a.indexOf(e.charAt(c++))<<2|(o=a.indexOf(e.charAt(c++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(l=a.indexOf(e.charAt(c++))),d[u++]=t,64!==s&&(d[u++]=n),64!==l&&(d[u++]=r);return d}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var a=i,o=0+n;e^=-1;for(var s=0;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,n,r){var a=i,o=0+n;e^=-1;for(var s=0;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,u){var h,d,f=e.file,p=e.compression,g=u!==s.utf8encode,A=a.transformTo("string",u(f.name)),m=a.transformTo("string",s.utf8encode(f.name)),v=f.comment,y=a.transformTo("string",u(v)),b=a.transformTo("string",s.utf8encode(v)),_=m.length!==f.name.length,w=b.length!==v.length,x="",C="",S="",k=f.dir,E=f.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var B=0;t&&(B|=8),g||!_&&!w||(B|=2048);var I=0,M=0;k&&(I|=16),"UNIX"===o?(M=798,I|=function(e,t){var n=e;return e||(n=k?16893:33204),(65535&n)<<16}(f.unixPermissions)):(M=20,I|=63&(f.dosPermissions||0)),h=E.getUTCHours(),h<<=6,h|=E.getUTCMinutes(),h<<=5,h|=E.getUTCSeconds()/2,d=E.getUTCFullYear()-1980,d<<=4,d|=E.getUTCMonth()+1,d<<=5,d|=E.getUTCDate(),_&&(x+="up"+r((C=r(1,1)+r(l(A),4)+m).length,2)+C),w&&(x+="uc"+r((S=r(1,1)+r(l(y),4)+b).length,2)+S);var P="";return P+="\n\0",P+=r(B,2),P+=p.magic,P+=r(h,2),P+=r(d,2),P+=r(T.crc32,4),P+=r(T.compressedSize,4),P+=r(T.uncompressedSize,4),P+=r(A.length,2),P+=r(x.length,2),{fileRecord:c.LOCAL_FILE_HEADER+P+A+x,dirRecord:c.CENTRAL_FILE_HEADER+r(M,2)+P+r(y.length,2)+"\0\0\0\0"+r(I,4)+r(i,4)+A+x+y}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,o){var s=a.transformTo("string",o(i));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)}),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./external"),a=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new i.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",function(e){n(e)}).on("end",function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new o(t);return n.load(e),n}).then(function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(c(r[a]));return i.Promise.all(n)}).then(function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],l=s.fileNameStr,c=r.resolve(s.fileNameStr);n.file(c,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(c).unsafeOriginalName=l)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),n&&n(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,n,r){"use strict";n.exports={isNode:void 0!==t,newBufferFrom:function(e,n){if(t.from&&t.from!==Uint8Array.from)return t.from(e,n);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new t(e,n)},allocBuffer:function(e){if(t.alloc)return t.alloc(e);var n=new t(e);return n.fill(0),n},isBuffer:function(e){return t.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(r=p(e))&&A.call(this,r,!0);var h="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!h),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var m;m=t instanceof c||t instanceof o?t:d.isNode&&d.isStream(t)?new f(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var v=new u(e,m,s);this.files[e]=v}var i=e("./utf8"),a=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),h=e("./generate"),d=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},A=function(e,t){return t=void 0!==t?t:l.createFolders,e=g(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function m(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(m(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(m(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=A.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=h.generateWorker(this,n,r)}catch(e){(t=new o("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function a(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,n,r){"use strict";var i=e("../utils"),a=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),l=e("../support"),c=e("../external"),u=null;if(l.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function h(e,t,n){var r=t;switch(t){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=t,this._mimeType=n,i.checkSupport(r),this._worker=e.pipe(new a(r)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}h.prototype={accumulate:function(e){return function(e,n){return new c.Promise(function(r,a){var o=[],l=e._internalType,c=e._outputType,u=e._mimeType;e.on("data",function(e,t){o.push(e),n&&n(t)}).on("error",function(e){o=[],a(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return i.transformTo(e,t)}}(c,function(e,n){var r,i=0,a=null,o=0;for(r=0;r<n.length;r++)o+=n[r].length;switch(e){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(a=new Uint8Array(o),r=0;r<n.length;r++)a.set(n[r],i),i+=n[r].length;return a;case"nodebuffer":return t.concat(n);default:throw new Error("concat : unsupported type '"+e+"'")}}(l,o),u);r(e)}catch(e){a(e)}o=[]}).resume()})}(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){i.delay(t,arguments,n)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},n.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,n,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer=void 0!==t,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),r.blob=0===a.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),a=o=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,a,o=e.length,l=new Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)l[n++]=i;else if(4<(a=s[i]))l[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(c,o),c.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+s[e[n]]>t?n:t}(t),l=t;o!==t.length&&(i.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=c.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=c.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return c.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function h(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var d={};d.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,a.allocBuffer(e.length))}},d.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},d.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:u,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},d.nodebuffer={string:u,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return d[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];"."===i||""===i&&0!==r&&r!==t.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&a.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,c){return o.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var u=n.getTypeOf(t);return u?("arraybuffer"===u?t=n.transformTo("uint8array",t):"string"===u&&(c?t=i.decode(t):a&&!0!==s&&(t=function(e){return l(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)?null:o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)?null:o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new a(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<c.length;h++)r.prototype[c[h]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}t.exports=function(e){1!==c.push(e)||r||n()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var r=e("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r(function(){var r;try{r=t(n)}catch(r){return a.reject(e,r)}r===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,r)})}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=p(function(){t(i,r)});"error"===o.status&&r(o.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var n=new this.constructor(i);return this.state!==l?h(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=p(d,t);if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)f(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return a.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,l=-1,c=new this(i);++l<n;)u(e[l],l);return c;function u(e,i){t.resolve(e).then(function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(c,o))},function(e){r||(r=!0,a.reject(c,e))})}},c.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r,o=-1,s=new this(i);++o<t;)r=e[o],this.resolve(r).then(function(e){n||(n=!0,a.resolve(s,e))},function(e){n||(n=!0,a.reject(s,e))});return s}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,h=0,d=8;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({level:u,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==c)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==c)throw new Error(o[n]);this._dict_set=!0}}function p(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}f.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,o))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==o||(this.onEnd(c),!(s.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)}function d(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}h.prototype.push=function(e,t){var n,s,l,c,h,d,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,A=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(n=r.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(d="string"==typeof g?a.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,d)),n===o.Z_BUF_ERROR&&!0===A&&(n=o.Z_OK,A=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(f.output,f.next_out),c=f.next_out-l,h=a.buf2string(f.output,l),f.next_out=c,f.avail_out=p-c,c&&i.arraySet(f.output,f.output,l,c,0),this.onData(h)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(A=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(f.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),a=o=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,c=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)c[r++]=i;else if(4<(a=o[i]))c[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,h=0,d=-2,f=-1,p=4,g=2,A=8,m=9,v=286,y=30,b=19,_=2*v+1,w=15,x=3,C=258,S=C+x+1,k=42,E=113,T=1,B=2,I=3,M=4;function P(e,t){return e.msg=l[t],t}function D(e){return(e<<1)-(4<e?9:0)}function F(e){for(var t=e.length;0<=--t;)e[t]=0}function O(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function L(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,O(e.strm)}function R(e,t){e.pending_buf[e.pending++]=t}function N(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function U(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-S?e.strstart-(e.w_size-S):0,c=e.window,u=e.w_mask,h=e.prev,d=e.strstart+C,f=c[a+o-1],p=c[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+o]===p&&c[n+o-1]===f&&c[n]===c[a]&&c[++n]===c[a+1]){a+=2,n++;do{}while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&a<d);if(r=C-(d-a),a=d-C,o<r){if(e.match_start=t,s<=(o=r))break;f=c[a+o-1],p=c[a+o]}}}while((t=h[t&u])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function j(e){var t,n,r,a,l,c,u,h,d,f,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-S)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);a+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,h=e.strstart+e.lookahead,f=void 0,(d=a)<(f=c.avail_in)&&(f=d),n=0===f?0:(c.avail_in-=f,i.arraySet(u,c.input,c.next_in,f,h),1===c.state.wrap?c.adler=o(c.adler,u,f,h):2===c.state.wrap&&(c.adler=s(c.adler,u,f,h)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=x)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+x-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<x)););}while(e.lookahead<S&&0!==e.strm.avail_in)}function H(e,t){for(var n,r;;){if(e.lookahead<S){if(j(e),e.lookahead<S&&t===c)return T;if(0===e.lookahead)break}if(n=0,e.lookahead>=x&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-S&&(e.match_length=U(e,n)),e.match_length>=x)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(L(e,!1),0===e.strm.avail_out))return T}return e.insert=e.strstart<x-1?e.strstart:x-1,t===u?(L(e,!0),0===e.strm.avail_out?I:M):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?T:B}function z(e,t){for(var n,r,i;;){if(e.lookahead<S){if(j(e),e.lookahead<S&&t===c)return T;if(0===e.lookahead)break}if(n=0,e.lookahead>=x&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=x-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-S&&(e.match_length=U(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===x&&4096<e.strstart-e.match_start)&&(e.match_length=x-1)),e.prev_length>=x&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-x,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=x-1,e.strstart++,r&&(L(e,!1),0===e.strm.avail_out))return T}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&L(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return T}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<x-1?e.strstart:x-1,t===u?(L(e,!0),0===e.strm.avail_out?I:M):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?T:B}function Q(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function V(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=A,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*b+1)),F(this.dyn_ltree),F(this.dyn_dtree),F(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(w+1),this.heap=new i.Buf16(2*v+1),F(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),F(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function G(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?k:E,e.adler=2===t.wrap?0:1,t.last_flush=c,a._tr_init(t),h):P(e,d)}function q(e){var t=G(e);return t===h&&function(e){e.window_size=2*e.w_size,F(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=x-1,e.match_available=0,e.ins_h=0}(e.state),t}function W(e,t,n,r,a,o){if(!e)return d;var s=1;if(t===f&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||m<a||n!==A||r<8||15<r||t<0||9<t||o<0||p<o)return P(e,d);8===r&&(r=9);var l=new V;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+x-1)/x),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,q(e)}r=[new Q(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(j(e),0===e.lookahead&&t===c)return T;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,L(e,!1),0===e.strm.avail_out))return T;if(e.strstart-e.block_start>=e.w_size-S&&(L(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===u?(L(e,!0),0===e.strm.avail_out?I:M):(e.strstart>e.block_start&&(L(e,!1),e.strm.avail_out),T)}),new Q(4,4,8,4,H),new Q(4,5,16,8,H),new Q(4,6,32,32,H),new Q(4,4,16,16,z),new Q(8,16,32,32,z),new Q(8,16,128,128,z),new Q(8,32,128,256,z),new Q(32,128,258,1024,z),new Q(32,258,258,4096,z)],n.deflateInit=function(e,t){return W(e,t,A,15,8,0)},n.deflateInit2=W,n.deflateReset=q,n.deflateResetKeep=G,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,h):d},n.deflate=function(e,t){var n,i,o,l;if(!e||!e.state||5<t||t<0)return e?P(e,d):d;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==u)return P(e,0===e.avail_out?-5:d);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===k)if(2===i.wrap)e.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),R(i,3),i.status=E);else{var f=A+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=E,N(i,f),0!==i.strstart&&(N(i,e.adler>>>16),N(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),O(e),o=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),O(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),O(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&O(e),i.pending+2<=i.pending_buf_size&&(R(i,255&e.adler),R(i,e.adler>>8&255),e.adler=0,i.status=E)):i.status=E),0!==i.pending){if(O(e),0===e.avail_out)return i.last_flush=-1,h}else if(0===e.avail_in&&D(t)<=D(n)&&t!==u)return P(e,-5);if(666===i.status&&0!==e.avail_in)return P(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(j(e),0===e.lookahead)){if(t===c)return T;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(L(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===u?(L(e,!0),0===e.strm.avail_out?I:M):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?T:B}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=C){if(j(e),e.lookahead<=C&&t===c)return T;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+C;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=C-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(n=a._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(L(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===u?(L(e,!0),0===e.strm.avail_out?I:M):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?T:B}(i,t):r[i.level].func(i,t);if(p!==I&&p!==M||(i.status=666),p===T||p===I)return 0===e.avail_out&&(i.last_flush=-1),h;if(p===B&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(F(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),O(e),0===e.avail_out))return i.last_flush=-1,h}return t!==u?h:i.wrap<=0?1:(2===i.wrap?(R(i,255&e.adler),R(i,e.adler>>8&255),R(i,e.adler>>16&255),R(i,e.adler>>24&255),R(i,255&e.total_in),R(i,e.total_in>>8&255),R(i,e.total_in>>16&255),R(i,e.total_in>>24&255)):(N(i,e.adler>>>16),N(i,65535&e.adler)),O(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?h:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==k&&69!==t&&73!==t&&91!==t&&103!==t&&t!==E&&666!==t?P(e,d):(e.state=null,t===E?P(e,-3):h):d},n.deflateSetDictionary=function(e,t){var n,r,a,s,l,c,u,f,p=t.length;if(!e||!e.state)return d;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==k||n.lookahead)return d;for(1===s&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(F(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,p-n.w_size,n.w_size,0),t=f,p=n.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,j(n);n.lookahead>=x;){for(r=n.strstart,a=n.lookahead-(x-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+x-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=x-1,j(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=x-1,n.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,n.wrap=s,h},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,a,o,s,l,c,u,h,d,f,p,g,A,m,v,y,b,_,w,x,C,S,k;n=e.state,r=e.next_in,S=e.input,i=r+(e.avail_in-5),a=e.next_out,k=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,h=n.wnext,d=n.window,f=n.hold,p=n.bits,g=n.lencode,A=n.distcode,m=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{p<15&&(f+=S[r++]<<p,p+=8,f+=S[r++]<<p,p+=8),y=g[f&m];t:for(;;){if(f>>>=b=y>>>24,p-=b,0==(b=y>>>16&255))k[a++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=g[(65535&y)+(f&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}_=65535&y,(b&=15)&&(p<b&&(f+=S[r++]<<p,p+=8),_+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=S[r++]<<p,p+=8,f+=S[r++]<<p,p+=8),y=A[f&v];n:for(;;){if(f>>>=b=y>>>24,p-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=A[(65535&y)+(f&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(w=65535&y,p<(b&=15)&&(f+=S[r++]<<p,(p+=8)<b&&(f+=S[r++]<<p,p+=8)),l<(w+=f&(1<<b)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=b,p-=b,(b=a-o)<w){if(u<(b=w-b)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(C=d,(x=0)===h){if(x+=c-b,b<_){for(_-=b;k[a++]=d[x++],--b;);x=a-w,C=k}}else if(h<b){if(x+=c+h-b,(b-=h)<_){for(_-=b;k[a++]=d[x++],--b;);if(x=0,h<_){for(_-=b=h;k[a++]=d[x++],--b;);x=a-w,C=k}}}else if(x+=h-b,b<_){for(_-=b;k[a++]=d[x++],--b;);x=a-w,C=k}for(;2<_;)k[a++]=C[x++],k[a++]=C[x++],k[a++]=C[x++],_-=3;_&&(k[a++]=C[x++],1<_&&(k[a++]=C[x++]))}else{for(x=a-w;k[a++]=k[x++],k[a++]=k[x++],k[a++]=k[x++],2<(_-=3););_&&(k[a++]=k[x++],1<_&&(k[a++]=k[x++]))}break}}break}}while(r<i&&a<s);r-=_=p>>3,f&=(1<<(p-=_<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=f,n.bits=p}},{}],49:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),l=1,c=2,u=0,h=-2,d=1,f=852,p=592;function g(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function A(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=d,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(f),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,u):h}function m(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,A(e)):h}function v(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?h:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,m(e))):h}function y(e,t){var n,i;return e?(i=new function(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0},(e.state=i).window=null,(n=v(e,t))!==u&&(e.state=null),n):h}var b,_,w=!0;function x(e){if(w){var t;for(b=new r.Buf32(512),_=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,b,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(c,e.lens,0,32,_,0,e.work,{bits:5}),w=!1}e.lencode=b,e.lenbits=9,e.distcode=_,e.distbits=5}function C(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=m,n.inflateReset2=v,n.inflateResetKeep=A,n.inflateInit=function(e){return y(e,15)},n.inflateInit2=y,n.inflate=function(e,t){var n,f,p,A,m,v,y,b,_,w,S,k,E,T,B,I,M,P,D,F,O,L,R,N,U=0,j=new r.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return h;12===(n=e.state).mode&&(n.mode=13),m=e.next_out,p=e.output,y=e.avail_out,A=e.next_in,f=e.input,v=e.avail_in,b=n.hold,_=n.bits,w=v,S=y,L=u;e:for(;;)switch(n.mode){case d:if(0===n.wrap){n.mode=13;break}for(;_<16;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}if(2&n.wrap&&35615===b){j[n.check=0]=255&b,j[1]=b>>>8&255,n.check=a(n.check,j,2,0),_=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){e.msg="unknown compression method",n.mode=30;break}if(_-=4,O=8+(15&(b>>>=4)),0===n.wbits)n.wbits=O;else if(O>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<O,e.adler=n.check=1,n.mode=512&b?10:12,_=b=0;break;case 2:for(;_<16;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}if(n.flags=b,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(j[0]=255&b,j[1]=b>>>8&255,n.check=a(n.check,j,2,0)),_=b=0,n.mode=3;case 3:for(;_<32;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}n.head&&(n.head.time=b),512&n.flags&&(j[0]=255&b,j[1]=b>>>8&255,j[2]=b>>>16&255,j[3]=b>>>24&255,n.check=a(n.check,j,4,0)),_=b=0,n.mode=4;case 4:for(;_<16;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(j[0]=255&b,j[1]=b>>>8&255,n.check=a(n.check,j,2,0)),_=b=0,n.mode=5;case 5:if(1024&n.flags){for(;_<16;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(j[0]=255&b,j[1]=b>>>8&255,n.check=a(n.check,j,2,0)),_=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(k=n.length)&&(k=v),k&&(n.head&&(O=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,f,A,k,O)),512&n.flags&&(n.check=a(n.check,f,k,A)),v-=k,A+=k,n.length-=k),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break e;for(k=0;O=f[A+k++],n.head&&O&&n.length<65536&&(n.head.name+=String.fromCharCode(O)),O&&k<v;);if(512&n.flags&&(n.check=a(n.check,f,k,A)),v-=k,A+=k,O)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break e;for(k=0;O=f[A+k++],n.head&&O&&n.length<65536&&(n.head.comment+=String.fromCharCode(O)),O&&k<v;);if(512&n.flags&&(n.check=a(n.check,f,k,A)),v-=k,A+=k,O)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;_<16;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}if(b!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}_=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;_<32;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}e.adler=n.check=g(b),_=b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=m,e.avail_out=y,e.next_in=A,e.avail_in=v,n.hold=b,n.bits=_,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){b>>>=7&_,_-=7&_,n.mode=27;break}for(;_<3;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}switch(n.last=1&b,_-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(x(n),n.mode=20,6!==t)break;b>>>=2,_-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}b>>>=2,_-=2;break;case 14:for(b>>>=7&_,_-=7&_;_<32;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}if((65535&b)!=(b>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,_=b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(k=n.length){if(v<k&&(k=v),y<k&&(k=y),0===k)break e;r.arraySet(p,f,A,k,m),v-=k,A+=k,y-=k,m+=k,n.length-=k;break}n.mode=12;break;case 17:for(;_<14;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}if(n.nlen=257+(31&b),b>>>=5,_-=5,n.ndist=1+(31&b),b>>>=5,_-=5,n.ncode=4+(15&b),b>>>=4,_-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;_<3;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}n.lens[H[n.have++]]=7&b,b>>>=3,_-=3}for(;n.have<19;)n.lens[H[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},L=s(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,L){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;I=(U=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,M=65535&U,!((B=U>>>24)<=_);){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}if(M<16)b>>>=B,_-=B,n.lens[n.have++]=M;else{if(16===M){for(N=B+2;_<N;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}if(b>>>=B,_-=B,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}O=n.lens[n.have-1],k=3+(3&b),b>>>=2,_-=2}else if(17===M){for(N=B+3;_<N;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}_-=B,O=0,k=3+(7&(b>>>=B)),b>>>=3,_-=3}else{for(N=B+7;_<N;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}_-=B,O=0,k=11+(127&(b>>>=B)),b>>>=7,_-=7}if(n.have+k>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;k--;)n.lens[n.have++]=O}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,R={bits:n.lenbits},L=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,L){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},L=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,L){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=v&&258<=y){e.next_out=m,e.avail_out=y,e.next_in=A,e.avail_in=v,n.hold=b,n.bits=_,o(e,S),m=e.next_out,p=e.output,y=e.avail_out,A=e.next_in,f=e.input,v=e.avail_in,b=n.hold,_=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;I=(U=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,M=65535&U,!((B=U>>>24)<=_);){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}if(I&&0==(240&I)){for(P=B,D=I,F=M;I=(U=n.lencode[F+((b&(1<<P+D)-1)>>P)])>>>16&255,M=65535&U,!(P+(B=U>>>24)<=_);){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}b>>>=P,_-=P,n.back+=P}if(b>>>=B,_-=B,n.back+=B,n.length=M,0===I){n.mode=26;break}if(32&I){n.back=-1,n.mode=12;break}if(64&I){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&I,n.mode=22;case 22:if(n.extra){for(N=n.extra;_<N;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,_-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;I=(U=n.distcode[b&(1<<n.distbits)-1])>>>16&255,M=65535&U,!((B=U>>>24)<=_);){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}if(0==(240&I)){for(P=B,D=I,F=M;I=(U=n.distcode[F+((b&(1<<P+D)-1)>>P)])>>>16&255,M=65535&U,!(P+(B=U>>>24)<=_);){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}b>>>=P,_-=P,n.back+=P}if(b>>>=B,_-=B,n.back+=B,64&I){e.msg="invalid distance code",n.mode=30;break}n.offset=M,n.extra=15&I,n.mode=24;case 24:if(n.extra){for(N=n.extra;_<N;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,_-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===y)break e;if(k=S-y,n.offset>k){if((k=n.offset-k)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}E=k>n.wnext?(k-=n.wnext,n.wsize-k):n.wnext-k,k>n.length&&(k=n.length),T=n.window}else T=p,E=m-n.offset,k=n.length;for(y<k&&(k=y),y-=k,n.length-=k;p[m++]=T[E++],--k;);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[m++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;_<32;){if(0===v)break e;v--,b|=f[A++]<<_,_+=8}if(S-=y,e.total_out+=S,n.total+=S,S&&(e.adler=n.check=n.flags?a(n.check,p,S,m-S):i(n.check,p,S,m-S)),S=y,(n.flags?b:g(b))!==n.check){e.msg="incorrect data check",n.mode=30;break}_=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;_<32;){if(0===v)break e;v--,b+=f[A++]<<_,_+=8}if(b!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}_=b=0}n.mode=29;case 29:L=1;break e;case 30:L=-3;break e;case 31:return-4;case 32:default:return h}return e.next_out=m,e.avail_out=y,e.next_in=A,e.avail_in=v,n.hold=b,n.bits=_,(n.wsize||S!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&C(e,e.output,e.next_out,S-e.avail_out)?(n.mode=31,-4):(w-=e.avail_in,S-=e.avail_out,e.total_in+=w,e.total_out+=S,n.total+=S,n.wrap&&S&&(e.adler=n.check=n.flags?a(n.check,p,S,e.next_out-S):i(n.check,p,S,e.next_out-S)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===S||4===t)&&L===u&&(L=-5),L)},n.inflateEnd=function(e){if(!e||!e.state)return h;var t=e.state;return t.window&&(t.window=null),e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?h:((n.head=t).done=!1,u):h},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?h:11===n.mode&&i(1,t,r,0)!==n.check?-3:C(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):h},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,c,u,h,d){var f,p,g,A,m,v,y,b,_,w=d.bits,x=0,C=0,S=0,k=0,E=0,T=0,B=0,I=0,M=0,P=0,D=null,F=0,O=new r.Buf16(16),L=new r.Buf16(16),R=null,N=0;for(x=0;x<=15;x++)O[x]=0;for(C=0;C<l;C++)O[t[n+C]]++;for(E=w,k=15;1<=k&&0===O[k];k--);if(k<E&&(E=k),0===k)return c[u++]=20971520,c[u++]=20971520,d.bits=1,0;for(S=1;S<k&&0===O[S];S++);for(E<S&&(E=S),x=I=1;x<=15;x++)if(I<<=1,(I-=O[x])<0)return-1;if(0<I&&(0===e||1!==k))return-1;for(L[1]=0,x=1;x<15;x++)L[x+1]=L[x]+O[x];for(C=0;C<l;C++)0!==t[n+C]&&(h[L[t[n+C]]++]=C);if(v=0===e?(D=R=h,19):1===e?(D=i,F-=257,R=a,N-=257,256):(D=o,R=s,-1),x=S,m=u,B=C=P=0,g=-1,A=(M=1<<(T=E))-1,1===e&&852<M||2===e&&592<M)return 1;for(;;){for(y=x-B,_=h[C]<v?(b=0,h[C]):h[C]>v?(b=R[N+h[C]],D[F+h[C]]):(b=96,0),f=1<<x-B,S=p=1<<T;c[m+(P>>B)+(p-=f)]=y<<24|b<<16|_|0,0!==p;);for(f=1<<x-1;P&f;)f>>=1;if(0!==f?(P&=f-1,P+=f):P=0,C++,0==--O[x]){if(x===k)break;x=t[n+h[C]]}if(E<x&&(P&A)!==g){for(0===B&&(B=E),m+=S,I=1<<(T=x-B);T+B<k&&!((I-=O[T+B])<=0);)T++,I<<=1;if(M+=1<<T,1===e&&852<M||2===e&&592<M)return 1;c[g=P&A]=E<<24|T<<16|m-u|0}}return 0!==P&&(c[m+P]=x-B<<24|64<<16|0),d.bits=E,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";var r=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var a=0,o=256,s=o+1+29,l=30,c=19,u=2*s+1,h=15,d=16,f=256,p=16,g=17,A=18,m=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],v=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],b=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(2*(s+2));i(_);var w=new Array(2*l);i(w);var x=new Array(512);i(x);var C=new Array(256);i(C);var S=new Array(29);i(S);var k,E,T,B=new Array(l);function I(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function M(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function P(e){return e<256?x[e]:x[256+(e>>>7)]}function D(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,n){e.bi_valid>d-n?(e.bi_buf|=t<<e.bi_valid&65535,D(e,e.bi_buf),e.bi_buf=t>>d-e.bi_valid,e.bi_valid+=n-d):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function O(e,t,n){F(e,n[2*t],n[2*t+1])}function L(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function R(e,t,n){var r,i,a=new Array(h+1),o=0;for(r=1;r<=h;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=L(a[s]++,s))}}function N(e){var t;for(t=0;t<s;t++)e.dyn_ltree[2*t]=0;for(t=0;t<l;t++)e.dyn_dtree[2*t]=0;for(t=0;t<c;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*f]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function U(e){8<e.bi_valid?D(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function j(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function H(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&j(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!j(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function z(e,t,n){var r,i,a,s,l=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===r?O(e,i,t):(O(e,(a=C[i])+o+1,t),0!==(s=m[a])&&F(e,i-=S[a],s),O(e,a=P(--r),n),0!==(s=v[a])&&F(e,r-=B[a],s)),l<e.last_lit;);O(e,f,t)}function Q(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=u,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;1<=n;n--)H(e,a,n);for(i=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],H(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,H(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,c=t.max_code,d=t.stat_desc.static_tree,f=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,g=t.stat_desc.extra_base,A=t.stat_desc.max_length,m=0;for(a=0;a<=h;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<u;n++)A<(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(a=A,m++),l[2*r+1]=a,c<r||(e.bl_count[a]++,o=0,g<=r&&(o=p[r-g]),s=l[2*r],e.opt_len+=s*(a+o),f&&(e.static_len+=s*(d[2*r+1]+o)));if(0!==m){do{for(a=A-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[A]--,m-=2}while(0<m);for(a=A;0!==a;a--)for(r=e.bl_count[a];0!==r;)c<(i=e.heap[--n])||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),R(a,c,e.bl_count)}function V(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*p]++):s<=10?e.bl_tree[2*g]++:e.bl_tree[2*A]++,a=i,c=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4))}function G(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<c)for(;O(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(O(e,i,e.bl_tree),s--),O(e,p,e.bl_tree),F(e,s-3,2)):s<=10?(O(e,g,e.bl_tree),F(e,s-3,3)):(O(e,A,e.bl_tree),F(e,s-11,7));a=i,c=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4)}}i(B);var q=!1;function W(e,t,n,i){F(e,(a<<1)+(i?1:0),3),function(e,t,n,i){U(e),D(e,n),D(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}n._tr_init=function(e){q||(function(){var e,t,n,r,i,a=new Array(h+1);for(r=n=0;r<28;r++)for(S[r]=n,e=0;e<1<<m[r];e++)C[n++]=r;for(C[n-1]=r,r=i=0;r<16;r++)for(B[r]=i,e=0;e<1<<v[r];e++)x[i++]=r;for(i>>=7;r<l;r++)for(B[r]=i<<7,e=0;e<1<<v[r]-7;e++)x[256+i++]=r;for(t=0;t<=h;t++)a[t]=0;for(e=0;e<=143;)_[2*e+1]=8,e++,a[8]++;for(;e<=255;)_[2*e+1]=9,e++,a[9]++;for(;e<=279;)_[2*e+1]=7,e++,a[7]++;for(;e<=287;)_[2*e+1]=8,e++,a[8]++;for(R(_,s+1,a),e=0;e<l;e++)w[2*e+1]=5,w[2*e]=L(e,5);k=new I(_,m,o+1,s,h),E=new I(w,v,0,l,h),T=new I(new Array(0),y,0,c,7)}(),q=!0),e.l_desc=new M(e.dyn_ltree,k),e.d_desc=new M(e.dyn_dtree,E),e.bl_desc=new M(e.bl_tree,T),e.bi_buf=0,e.bi_valid=0,N(e)},n._tr_stored_block=W,n._tr_flush_block=function(e,t,n,r){var i,a,s=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Q(e,e.l_desc),Q(e,e.d_desc),s=function(e){var t;for(V(e,e.dyn_ltree,e.l_desc.max_code),V(e,e.dyn_dtree,e.d_desc.max_code),Q(e,e.bl_desc),t=c-1;3<=t&&0===e.bl_tree[2*b[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?W(e,t,n,r):4===e.strategy||a===i?(F(e,2+(r?1:0),3),z(e,_,w)):(F(e,4+(r?1:0),3),function(e,t,n,r){var i;for(F(e,t-257,5),F(e,n-1,5),F(e,r-4,4),i=0;i<r;i++)F(e,e.bl_tree[2*b[i]+1],3);G(e,e.dyn_ltree,t-1),G(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),z(e,e.dyn_ltree,e.dyn_dtree)),N(e),r&&U(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(C[n]+o+1)]++,e.dyn_dtree[2*P(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){F(e,2,3),O(e,f,_),function(e){16===e.bi_valid?(D(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,i){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,i,a,o,s=1,l={},c=!1,u=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,n="[object process]"==={}.toString.call(e.process)?function(e){r.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){a.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(i=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(f,0,e)},h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return l[s]=i,n(s),s++},h.clearImmediate=d}function d(e){delete l[e]}function f(e){if(c)setTimeout(f,0,e);else{var n=l[e];if(n){c=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),c=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},e.exports=a()}).call(t,n("EuP9").Buffer,n("DuR2"),n("lNQ5"))},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}},QG6P:function(e,t,n){var r=n("/00o"),i=n("To6e"),a=i.System,o=(i.VbrMode,i.Float,i.ShortBlock,i.Util,i.Arrays,i.new_array_n,i.new_byte,i.new_double,i.new_float),s=i.new_float_n;i.new_int,i.new_int_n,i.assert;e.exports=function(){this.l=o(r.SBMAX_l),this.s=s([r.SBMAX_s,3]);var e=this;this.assign=function(t){a.arraycopy(t.l,0,e.l,0,r.SBMAX_l);for(var n=0;n<r.SBMAX_s;n++)for(var i=0;i<3;i++)e.s[n][i]=t.s[n][i]}}},QHhf:function(e,t,n){"use strict";var r=n("1b2O"),i=n("+N5+").isSpace;function a(e,t,n,r){var a,o,s,l,c,u,h,d;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,s=l=u=h=0,c=(o=this.src).length;l<c;l++){if(a=o.charCodeAt(l),!d){if(i(a)){u++,9===a?h+=4-h%4:h++;continue}d=!0}10!==a&&l!==c-1||(10!==a&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(h),this.bsCount.push(0),d=!1,u=0,h=0,s=l+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}a.prototype.push=function(e,t,n){var i=new r(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},a.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},a.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},a.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),i(t));e++);return e},a.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},a.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},a.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},a.prototype.getLines=function(e,t,n,r){var a,o,s,l,c,u,h,d=e;if(e>=t)return"";for(u=new Array(t-e),a=0;d<t;d++,a++){for(o=0,h=l=this.bMarks[d],c=d+1<t||r?this.eMarks[d]+1:this.eMarks[d];l<c&&o<n;){if(s=this.src.charCodeAt(l),i(s))9===s?o+=4-(o+this.bsCount[d])%4:o++;else{if(!(l-h<this.tShift[d]))break;o++}l++}u[a]=o>n?new Array(o-n+1).join(" ")+this.src.slice(l,c):this.src.slice(l,c)}return u.join("")},a.prototype.Token=r,e.exports=a},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")},QgkH:function(e,t,n){"use strict";t.Any=n("Mur9"),t.Cc=n("DNGd"),t.Cf=n("O7JS"),t.P=n("TUzn"),t.Z=n("gxby")},QzLT:function(module,exports,__webpack_require__){(function(Buffer,process,global){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(198),a=n(5),o=n(209),s=n(200),l=n(203),c=n(210),u=n(211);if(n(7).isNodeJS){var h=n(212).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)(function(e){return new h(e)})}else{var d,f=n(215).PDFNetworkStream;(0,r.isFetchSupported)()&&(d=n(216).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)(function(e){return d&&(0,r.isValidFetchUrl)(e.url)?new d(e):new f(e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,r=t.target,i=t.rel,o=t.enabled,s=void 0===o||o;(0,a.assert)(n&&"string"==typeof n,'addLinkAttributes: A valid "url" parameter must provided.');var l=(0,a.removeNullCharacters)(n);s?e.href=e.title=l:(e.href="",e.title="Disabled: ".concat(l),e.onclick=function(){return!1});var c="";switch(r){case C.NONE:break;case C.SELF:c="_self";break;case C.BLANK:c="_blank";break;case C.PARENT:c="_parent";break;case C.TOP:c="_top"}e.target=c,e.rel="string"==typeof i?i:m},t.getFilenameFromUrl=function(e){var 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=E,t.isValidFetchUrl=T,t.loadScript=function(e){return new Promise(function(t,n){var r=document.createElement("script");r.src=e,r.onload=t,r.onerror=function(){n(new Error("Cannot load script at: ".concat(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,i=(r=n(2))&&r.__esModule?r:{default:r},a=n(5);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(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=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===l(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 h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function f(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){d(a,r,i,o,s,"next",e)}function s(e){d(a,r,i,o,s,"throw",e)}o(void 0)})}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 A(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}var m="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=m;var v="http://www.w3.org/2000/svg",y=function(){function e(){p(this,e)}return A(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var n=document.createElement("canvas"),r=n.getContext("2d");return n.width=e,n.height=t,{canvas:n,context:r}}},{key:"reset",value:function(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}},{key:"destroy",value:function(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}}]),e}();t.DOMCanvasFactory=y;var b=function(){function e(t){var n=t.baseUrl,r=void 0===n?null:n,i=t.isCompressed,a=void 0!==i&&i;p(this,e),this.baseUrl=r,this.isCompressed=a}return A(e,[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=f(i.default.mark(function e(t){var n,r,o,s=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(n){e.next=5;break}throw new Error("CMap name must be specified.");case 5:if(r=this.baseUrl+n+(this.isCompressed?".bcmap":""),o=this.isCompressed?a.CMapCompressionType.BINARY:a.CMapCompressionType.NONE,!E()||!T(r,document.baseURI)){e.next=9;break}return e.abrupt("return",fetch(r).then(function(){var e=f(i.default.mark(function e(t){var n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=2;break}throw new Error(t.statusText);case 2:if(!s.isCompressed){e.next=10;break}return e.t0=Uint8Array,e.next=6,t.arrayBuffer();case 6:e.t1=e.sent,n=new e.t0(e.t1),e.next=15;break;case 10:return e.t2=a.stringToBytes,e.next=13,t.text();case 13:e.t3=e.sent,n=(0,e.t2)(e.t3);case 15:return e.abrupt("return",{cMapData:n,compressionType:o});case 16:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"")+"CMap at: ".concat(r))}));case 9:return e.abrupt("return",new Promise(function(e,t){var n=new XMLHttpRequest;n.open("GET",r,!0),s.isCompressed&&(n.responseType="arraybuffer"),n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE){var r;if(200===n.status||0===n.status)if(s.isCompressed&&n.response?r=new Uint8Array(n.response):!s.isCompressed&&n.responseText&&(r=(0,a.stringToBytes)(n.responseText)),r)return void e({cMapData:r,compressionType:o});t(new Error(n.statusText))}},n.send(null)}).catch(function(e){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"")+"CMap at: ".concat(r))}));case 10:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}())}]),e}();t.DOMCMapReaderFactory=b;var _=function(){function e(){p(this,e)}return A(e,[{key:"create",value:function(e,t){(0,a.assert)(e>0&&t>0,"Invalid SVG dimensions");var n=document.createElementNS(v,"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}},{key:"createElement",value:function(e){return(0,a.assert)("string"==typeof e,"Invalid SVG element type"),document.createElementNS(v,e)}}]),e}();t.DOMSVGFactory=_;var w=function(){function e(t){var n=t.viewBox,r=t.scale,i=t.rotation,a=t.offsetX,o=void 0===a?0:a,s=t.offsetY,l=void 0===s?0:s,c=t.dontFlip,u=void 0!==c&&c;p(this,e),this.viewBox=n,this.scale=r,this.rotation=i,this.offsetX=o,this.offsetY=l;var h,d,f,g,A,m,v,y,b=(n[2]+n[0])/2,_=(n[3]+n[1])/2;switch(i=(i%=360)<0?i+360:i){case 180:h=-1,d=0,f=0,g=1;break;case 90:h=0,d=1,f=1,g=0;break;case 270:h=0,d=-1,f=-1,g=0;break;case 0:h=1,d=0,f=0,g=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}u&&(f=-f,g=-g),0===h?(A=Math.abs(_-n[1])*r+o,m=Math.abs(b-n[0])*r+l,v=Math.abs(n[3]-n[1])*r,y=Math.abs(n[2]-n[0])*r):(A=Math.abs(b-n[0])*r+o,m=Math.abs(_-n[1])*r+l,v=Math.abs(n[2]-n[0])*r,y=Math.abs(n[3]-n[1])*r),this.transform=[h*r,d*r,f*r,g*r,A-h*r*b-f*r*_,m-d*r*b-g*r*_],this.width=v,this.height=y}return A(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.scale,r=void 0===n?this.scale:n,i=t.rotation,a=void 0===i?this.rotation:i,o=t.offsetX,s=void 0===o?this.offsetX:o,l=t.offsetY,c=void 0===l?this.offsetY:l,u=t.dontFlip,h=void 0!==u&&u;return new e({viewBox:this.viewBox.slice(),scale:r,rotation:a,offsetX:s,offsetY:c,dontFlip:h})}},{key:"convertToViewportPoint",value:function(e,t){return a.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=a.Util.applyTransform([e[0],e[1]],this.transform),n=a.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function(e,t){return a.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=w;var x=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&&c(e,t)}(n,a.BaseException);var t=u(n);function n(e,r){var i;return p(this,n),(i=t.call(this,e)).type=r,i}return n}();t.RenderingCancelledException=x;var C={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};t.LinkTarget=C;var S,k=function(){function e(){p(this,e),this.started=Object.create(null),this.times=[]}return A(e,[{key:"time",value:function(e){e in this.started&&(0,a.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,a.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],n=0,r=o(this.times);try{for(r.s();!(e=r.n()).done;){var i=e.value.name;i.length>n&&(n=i.length)}}catch(e){r.e(e)}finally{r.f()}var a,s=o(this.times);try{for(s.s();!(a=s.n()).done;){var l=a.value,c=l.end-l.start;t.push("".concat(l.name.padEnd(n)," ").concat(c,"ms\n"))}}catch(e){s.e(e)}finally{s.f()}return t.join("")}}]),e}();function E(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function T(e,t){try{var n=(t?new URL(e,t):new URL(e)).protocol;return"http:"===n||"https:"===n}catch(e){return!1}}t.StatTimer=k;var B=function(){function e(){p(this,e)}return A(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,a.isString)(e))return null;S||(S=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=S.exec(e);if(!t)return null;var n=parseInt(t[1],10),r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;var i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;var o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;var s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;var l=parseInt(t[6],10);l=l>=0&&l<=59?l:0;var c=t[7]||"Z",u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;var h=parseInt(t[9],10)||0;return h=h>=0&&h<=59?h:0,"-"===c?(o+=u,s+=h):"+"===c&&(o-=u,s-=h),new Date(Date.UTC(n,r,i,o,s,l))}}]),e}();t.PDFDateString=B},function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){"use strict";(function(e){function t(e){"@babel/helpers - typeof";return(t="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 n=function(e){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";function c(e,t,n,r){var i=t&&t.prototype instanceof A?t:A,a=Object.create(i.prototype),o=new T(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 I()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===g)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=u(e,t,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===g)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 u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",g={};function A(){}function m(){}function v(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,_=b&&b(b(B([])));_&&_!==r&&i.call(_,o)&&(y=_);var w=v.prototype=A.prototype=Object.create(y);function x(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function C(e,n){var r;this._invoke=function(a,o){function s(){return new n(function(r,s){!function r(a,o,s,l){var c=u(e[a],e,o);if("throw"!==c.type){var h=c.arg,d=h.value;return d&&"object"===t(d)&&i.call(d,"__await")?n.resolve(d.__await).then(function(e){r("next",e,s,l)},function(e){r("throw",e,s,l)}):n.resolve(d).then(function(e){h.value=e,s(h)},function(e){return r("throw",e,s,l)})}l(c.arg)}(a,o,r,s)})}return r=r?r.then(s,s):s()}}function S(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,S(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;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,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function k(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function B(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:I}}function I(){return{value:n,done:!0}}return m.prototype=w.constructor=v,v.constructor=m,v[l]=m.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(C.prototype),C.prototype[s]=function(){return this},e.AsyncIterator=C,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new C(c(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},x(w),w[l]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},e.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}},e.values=B,T.prototype={constructor:T,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(E),!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,g):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),g},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),E(n),g}},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;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:B(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(4)(e))},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";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){"@babel/helpers - typeof";return(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})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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&&s(e,t)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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=c(e);if(t){var a=c(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(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 c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=k,t.arraysToBytes=function(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var n=0,r=0;r<t;r++)n+=k(e[r]);for(var i=0,a=new Uint8Array(n),o=0;o<t;o++){var s=e[o];s instanceof Uint8Array||(s="string"==typeof s?S(s):new Uint8Array(s));var l=s.byteLength;a.set(s,i),i+=l}return a},t.assert=p,t.bytesToString=function(e){p(null!==e&&"object"===i(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length;if(t<8192)return String.fromCharCode.apply(null,e);for(var n=[],r=0;r<t;r+=8192){var a=Math.min(r+8192,t),o=e.subarray(r,a);n.push(String.fromCharCode.apply(null,o))}return n.join("")},t.createPromiseCapability=function(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return 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 h},t.info=function(e){h>=u.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===i(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(var 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){var n;try{if(!(n=new URL(e)).origin||"null"===n.origin)return!1}catch(e){return!1}var r=new URL(t,n);return n.origin===r.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var 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 d("The argument for removeNullCharacters must be a string."),e;return e.replace(C,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(h=e)},t.shadow=g,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=S,t.stringToPDFString=function(e){var t=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(var 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(var i=2;i<t;i+=2)n.push(String.fromCharCode(e.charCodeAt(i+1)<<8|e.charCodeAt(i)));else for(var a=0;a<t;++a){var o=M[e.charCodeAt(a)];n.push(o?String.fromCharCode(o):e.charAt(a))}return n.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=d,t.unreachable=f,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(6);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"};var u={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=u;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};var h=u.WARNINGS;function d(e){h>=u.WARNINGS&&console.log("Warning: ".concat(e))}function f(e){throw new Error(e)}function p(e,t){e||f(t)}function g(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}var A=function(){function e(t){this.constructor===e&&f("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=A;var m=function(e){o(n,A);var t=l(n);function n(e,r){var i;return a(this,n),(i=t.call(this,e)).code=r,i}return n}();t.PasswordException=m;var v=function(e){o(n,A);var t=l(n);function n(e,r){var i;return a(this,n),(i=t.call(this,e)).details=r,i}return n}();t.UnknownErrorException=v;var y=function(e){o(n,A);var t=l(n);function n(){return a(this,n),t.apply(this,arguments)}return n}();t.InvalidPDFException=y;var b=function(e){o(n,A);var t=l(n);function n(){return a(this,n),t.apply(this,arguments)}return n}();t.MissingPDFException=b;var _=function(e){o(n,A);var t=l(n);function n(e,r){var i;return a(this,n),(i=t.call(this,e)).status=r,i}return n}();t.UnexpectedResponseException=_;var w=function(e){o(n,A);var t=l(n);function n(){return a(this,n),t.apply(this,arguments)}return n}();t.FormatError=w;var x=function(e){o(n,A);var t=l(n);function n(){return a(this,n),t.apply(this,arguments)}return n}();t.AbortException=x;var C=/\x00/g;function S(e){p("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,n=new Uint8Array(t),r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function k(e){return void 0!==e.length?e.length:(p(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}var E={get value(){return g(this,"value",((e=new Uint8Array(4))[0]=1,1===new Uint32Array(e.buffer,0,1)[0]));var e}};t.IsLittleEndianCached=E;var T={get value(){return g(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}};t.IsEvalSupportedCached=T;var B=["rgb(",0,",",0,",",0,")"],I=function(){function e(){a(this,e)}var t,n,i;return t=e,i=[{key:"makeCssRgb",value:function(e,t,n){return B[1]=e,B[3]=t,B[5]=n,B.join("")}},{key:"transform",value:function(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]]}},{key:"applyTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}},{key:"applyInverseTransform",value:function(e,t){var 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]}},{key:"getAxialAlignedBoundingBox",value:function(t,n){var r=e.applyTransform(t,n),i=e.applyTransform(t.slice(2,4),n),a=e.applyTransform([t[0],t[3]],n),o=e.applyTransform([t[2],t[1]],n);return[Math.min(r[0],i[0],a[0],o[0]),Math.min(r[1],i[1],a[1],o[1]),Math.max(r[0],i[0],a[0],o[0]),Math.max(r[1],i[1],a[1],o[1])]}},{key:"inverseTransform",value:function(e){var 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]}},{key:"apply3dTransform",value:function(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]]}},{key:"singularValueDecompose2dScale",value:function(e){var 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)]}},{key:"normalizeRect",value:function(e){var 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}},{key:"intersect",value:function(t,n){function r(e,t){return e-t}var i=[t[0],t[2],n[0],n[2]].sort(r),a=[t[1],t[3],n[1],n[3]].sort(r),o=[];return t=e.normalizeRect(t),n=e.normalizeRect(n),i[0]===t[0]&&i[1]===n[0]||i[0]===n[0]&&i[1]===t[0]?(o[0]=i[1],o[2]=i[2],a[0]===t[1]&&a[1]===n[1]||a[0]===n[1]&&a[1]===t[1]?(o[1]=a[1],o[3]=a[2],o):null):null}}],(n=null)&&r(t.prototype,n),i&&r(t,i),e}();t.Util=I;var 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];var P,D=(P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",function(e,t){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var n=new Blob([e],{type:t});return URL.createObjectURL(n)}for(var r="data:".concat(t,";base64,"),i=0,a=e.length;i<a;i+=3){var o=255&e[i],s=255&e[i+1],l=255&e[i+2];r+=P[o>>2]+P[(3&o)<<4|s>>4]+P[i+1<a?(15&s)<<2|l>>6:64]+P[i+2<a?63&l:64]}return r});t.createObjectURL=D},function(e,t,n){"use strict";var r=n(7);function i(e){"@babel/helpers - typeof";return(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})(e)}if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=n(8)),globalThis._pdfjsCompatibilityChecked=!0;var a="object"===("undefined"==typeof window?"undefined":i(window))&&"object"===("undefined"==typeof document?"undefined":i(document)),o="undefined"!=typeof navigator&&navigator.userAgent||"",s=/Trident/.test(o);!globalThis.btoa&&r.isNodeJS&&(globalThis.btoa=function(e){return Buffer.from(e,"binary").toString("base64")}),!globalThis.atob&&r.isNodeJS&&(globalThis.atob=function(e){return Buffer.from(e,"base64").toString("binary")}),a&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),function(){if(a&&!r.isNodeJS){var e=document.createElement("div");if(e.classList.add("testOne","testTwo"),!0!==e.classList.contains("testOne")||!0!==e.classList.contains("testTwo")){var t=DOMTokenList.prototype.add,n=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];t.call(this,o)}},DOMTokenList.prototype.remove=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i=0,a=t;i<a.length;i++){var o=a[i];n.call(this,o)}}}}}(),a&&!r.isNodeJS&&!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(e){var t=arguments.length>1?!!arguments[1]:!this.contains(e);return this[t?"add":"remove"](e),t}),function(){if(a&&s){var e=window.history.pushState,t=window.history.replaceState;window.history.pushState=function(t,n,r){var i=void 0===r?[t,n]:[t,n,r];e.apply(this,i)},window.history.replaceState=function(e,n,r){var i=void 0===r?[e,n]:[e,n,r];t.apply(this,i)}}}(),String.prototype.startsWith||n(53),String.prototype.endsWith||n(64),String.prototype.includes||n(66),Array.prototype.includes||n(68),Array.from||n(76),Object.assign||n(98),Math.log2||(Math.log2=n(101)),Number.isNaN||(Number.isNaN=n(103)),Number.isInteger||(Number.isInteger=n(105)),Uint8Array.prototype.slice||n(108),globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=n(113)),globalThis.URL=n(136),function(){var e=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),e=!0}catch(e){}e||(globalThis.ReadableStream=n(143).ReadableStream)}(),globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=n(144)),globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=n(151)),globalThis.WeakMap||(globalThis.WeakMap=n(153)),globalThis.WeakSet||(globalThis.WeakSet=n(159)),String.prototype.codePointAt||n(161),String.fromCodePoint||(String.fromCodePoint=n(163)),globalThis.Symbol||n(165),String.prototype.padStart||n(188),String.prototype.padEnd||n(193),Object.values||(Object.values=n(195))}},function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var i="object"===(void 0===process?"undefined":r(process))&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;t.isNodeJS=i},function(e,t,n){n(9),e.exports=n(11)},function(e,t,n){n(10)({global:!0},{globalThis:n(11)})},function(e,t,n){var r=n(11),i=n(12).f,a=n(26),o=n(29),s=n(30),l=n(40),c=n(52);e.exports=function(e,t){var n,u,h,d,f,p=e.target,g=e.global,A=e.stat;if(n=g?r:A?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(d=t[u],h=e.noTargetGet?(f=i(n,u))&&f.value:n[u],!c(g?u:p+(A?".":"#")+u,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(e.sham||h&&h.sham)&&a(d,"sham",!0),o(n,u,d,e)}}},function(e,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 global&&global)||Function("return this")()},function(e,t,n){var r=n(13),i=n(15),a=n(16),o=n(17),s=n(21),l=n(23),c=n(24),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(14);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},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){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(18),i=n(20);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(14),i=n(19),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){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,n){var r=n(22);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(13),i=n(14),a=n(25);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(11),i=n(22),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(13),i=n(27),a=n(16);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(13),i=n(24),a=n(28),o=n(21),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){var r=n(22);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(11),i=n(26),a=n(23),o=n(30),s=n(31),l=n(33),c=l.get,u=l.enforce,h=String(String).split("String");(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),u(n).source=h.join("string"==typeof t?t:"")),e!==r?(l?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=n:i(e,t,n)):c?e[t]=n:o(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},function(e,t,n){var r=n(11),i=n(26);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(32),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(11),i=n(30),a=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=a},function(e,t,n){var r,i,a,o=n(34),s=n(11),l=n(22),c=n(26),u=n(23),h=n(35),d=n(39),f=s.WeakMap;if(o){var p=new f,g=p.get,A=p.has,m=p.set;r=function(e,t){return m.call(p,e,t),t},i=function(e){return g.call(p,e)||{}},a=function(e){return A.call(p,e)}}else{var v=h("state");d[v]=!0,r=function(e,t){return c(e,v,t),t},i=function(e){return u(e,v)?e[v]:{}},a=function(e){return u(e,v)}}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){var r=n(11),i=n(31),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},function(e,t,n){var r=n(36),i=n(38),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,n){var r=n(37),i=n(32);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},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){e.exports={}},function(e,t,n){var r=n(23),i=n(41),a=n(12),o=n(27);e.exports=function(e,t){for(var n=i(t),s=o.f,l=a.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},function(e,t,n){var r=n(42),i=n(44),a=n(51),o=n(28);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(43),i=n(11),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(11);e.exports=r},function(e,t,n){var r=n(45),i=n(50).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(23),i=n(17),a=n(46).indexOf,o=n(39);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(17),i=n(47),a=n(49),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(48),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},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(48),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){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(14),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){n(54);var r=n(61);e.exports=r("String","startsWith")},function(e,t,n){"use strict";var r,i=n(10),a=n(12).f,o=n(47),s=n(55),l=n(20),c=n(60),u=n(37),h="".startsWith,d=Math.min,f=c("startsWith");i({target:"String",proto:!0,forced:!!(u||f||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!f},{startsWith:function(e){var t=String(l(this));s(e);var n=o(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return h?h.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(56);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(22),i=n(19),a=n(57)("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(11),i=n(36),a=n(23),o=n(38),s=n(58),l=n(59),c=i("wks"),u=r.Symbol,h=l?u:u&&u.withoutSetter||o;e.exports=function(e){return a(c,e)||(s&&a(u,e)?c[e]=u[e]:c[e]=h("Symbol."+e)),c[e]}},function(e,t,n){var r=n(14);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},function(e,t,n){var r=n(58);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(57)("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(11),i=n(62),a=Function.call;e.exports=function(e,t,n){return i(a,r[e].prototype[t],n)}},function(e,t,n){var r=n(63);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){n(65);var r=n(61);e.exports=r("String","endsWith")},function(e,t,n){"use strict";var r,i=n(10),a=n(12).f,o=n(47),s=n(55),l=n(20),c=n(60),u=n(37),h="".endsWith,d=Math.min,f=c("endsWith");i({target:"String",proto:!0,forced:!!(u||f||(r=a(String.prototype,"endsWith"),!r||r.writable))&&!f},{endsWith:function(e){var t=String(l(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=o(t.length),i=void 0===n?r:d(o(n),r),a=String(e);return h?h.call(t,a,i):t.slice(i-a.length,i)===a}})},function(e,t,n){n(67);var r=n(61);e.exports=r("String","includes")},function(e,t,n){"use strict";var r=n(10),i=n(55),a=n(20);r({target:"String",proto:!0,forced:!n(60)("includes")},{includes:function(e){return!!~String(a(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(69);var r=n(61);e.exports=r("Array","includes")},function(e,t,n){"use strict";var r=n(10),i=n(46).includes,a=n(70);r({target:"Array",proto:!0,forced:!n(75)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){var r=n(57),i=n(71),a=n(27),o=r("unscopables"),s=Array.prototype;void 0==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,n){var r,i=n(28),a=n(72),o=n(50),s=n(39),l=n(74),c=n(25),u=n(35)("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(13),i=n(27),a=n(28),o=n(73);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){var r=n(45),i=n(50);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(42);e.exports=r("document","documentElement")},function(e,t,n){var r=n(13),i=n(14),a=n(23),o=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(a(s,e))return s[e];t||(t={});var n=[][e],c=!!a(t,"ACCESSORS")&&t.ACCESSORS,u=a(t,0)?t[0]:l,h=a(t,1)?t[1]:void 0;return s[e]=!!n&&!i(function(){if(c&&!r)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,h)})}},function(e,t,n){n(77),n(89);var r=n(43);e.exports=r.Array.from},function(e,t,n){"use strict";var r=n(78).charAt,i=n(33),a=n(79),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){var r=n(48),i=n(20),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(10),i=n(80),a=n(82),o=n(87),s=n(85),l=n(26),c=n(29),u=n(57),h=n(37),d=n(86),f=n(81),p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,A=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&&T)return T;if(!g&&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,E=k[A]||k["@@iterator"]||f&&k[f],T=!g&&E||x(f),B="Array"==t&&k.entries||E;if(B&&(b=a(B.call(new e)),p!==Object.prototype&&b.next&&(h||a(b)===p||(o?o(b,p):"function"!=typeof b[A]&&l(b,A,m)),s(b,C,!0,!0),h&&(d[C]=m))),"values"==f&&E&&"values"!==E.name&&(S=!0,T=function(){return E.call(this)}),h&&!y||k[A]===T||l(k,A,T),d[t]=T,f)if(_={values:x("values"),keys:v?T:x("keys"),entries:x("entries")},y)for(w in _)!g&&!S&&w in k||c(k,w,_[w]);else r({target:t,proto:!0,forced:g||S},_);return _}},function(e,t,n){"use strict";var r=n(81).IteratorPrototype,i=n(71),a=n(16),o=n(85),s=n(86),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,i,a,o=n(82),s=n(26),l=n(23),c=n(57),u=n(37),h=c("iterator"),d=!1;[].keys&&("next"in(a=[].keys())?(i=o(o(a)))!==Object.prototype&&(r=i):d=!0),void 0==r&&(r={}),u||l(r,h)||s(r,h,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var r=n(23),i=n(83),a=n(35),o=n(84),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(20);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(14);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var r=n(27).f,i=n(23),a=n(57)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,n){var r=n(28),i=n(88);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(22);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(10),i=n(90);r({target:"Array",stat:!0,forced:!n(97)(function(e){Array.from(e)})},{from:i})},function(e,t,n){"use strict";var r=n(62),i=n(83),a=n(91),o=n(92),s=n(47),l=n(93),c=n(94);e.exports=function(e){var t,n,u,h,d,f,p=i(e),g="function"==typeof this?this:Array,A=arguments.length,m=A>1?arguments[1]:void 0,v=void 0!==m,y=c(p),b=0;if(v&&(m=r(m,A>2?arguments[2]:void 0,2)),void 0==y||g==Array&&o(y))for(n=new g(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 g;!(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(28);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}}},function(e,t,n){var r=n(57),i=n(86),a=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},function(e,t,n){"use strict";var r=n(21),i=n(27),a=n(16);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){var r=n(95),i=n(86),a=n(57)("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(96),i=n(19),a=n(57)("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,n){var r={};r[n(57)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(57)("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){n(99);var r=n(43);e.exports=r.Object.assign},function(e,t,n){var r=n(10),i=n(100);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";var r=n(13),i=n(14),a=n(73),o=n(51),s=n(15),l=n(83),c=n(18),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++]),g=h?a(p).concat(h(p)):a(p),A=g.length,m=0;A>m;)f=g[m++],r&&!d.call(p,f)||(n[f]=p[f]);return n}:u},function(e,t,n){n(102);var r=n(43);e.exports=r.Math.log2},function(e,t,n){var r=n(10),i=Math.log,a=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return i(e)/a}})},function(e,t,n){n(104);var r=n(43);e.exports=r.Number.isNaN},function(e,t,n){n(10)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){n(106);var r=n(43);e.exports=r.Number.isInteger},function(e,t,n){n(10)({target:"Number",stat:!0},{isInteger:n(107)})},function(e,t,n){var r=n(22),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){n(109)},function(e,t,n){"use strict";var r=n(110),i=n(112),a=n(14),o=r.aTypedArray,s=r.aTypedArrayConstructor,l=r.exportTypedArrayMethod,c=[].slice;l("slice",function(e,t){for(var n=c.call(o(this),e,t),r=i(this,this.constructor),a=0,l=n.length,u=new(s(r))(l);l>a;)u[a]=n[a++];return u},a(function(){new Int8Array(1).slice()}))},function(e,t,n){"use strict";var r,i=n(111),a=n(13),o=n(11),s=n(22),l=n(23),c=n(95),u=n(26),h=n(29),d=n(27).f,f=n(82),p=n(87),g=n(57),A=n(38),m=o.Int8Array,v=m&&m.prototype,y=o.Uint8ClampedArray,b=y&&y.prototype,_=m&&f(m),w=v&&f(v),x=Object.prototype,C=x.isPrototypeOf,S=g("toStringTag"),k=A("TYPED_ARRAY_TAG"),E=i&&!!p&&"Opera"!==c(o.opera),T=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},I=function(e){return s(e)&&l(B,c(e))};for(r in B)o[r]||(E=!1);if((!E||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},E))for(r in B)o[r]&&p(o[r],_);if((!E||!w||w===x)&&(w=_.prototype,E))for(r in B)o[r]&&p(o[r].prototype,w);if(E&&f(b)!==w&&p(b,w),a&&!l(w,S))for(r in T=!0,d(w,S,{get:function(){return s(this)?this[k]:void 0}}),B)o[r]&&u(o[r],k,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:E,TYPED_ARRAY_TAG:T&&k,aTypedArray:function(e){if(I(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(p){if(C.call(_,e))return e}else for(var t in B)if(l(B,r)){var n=o[t];if(n&&(e===n||C.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(a){if(n)for(var r in B){var i=o[r];i&&l(i.prototype,e)&&delete i.prototype[e]}w[e]&&!n||h(w,e,n?t:E&&v[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(a){if(p){if(n)for(r in B)(i=o[r])&&l(i,e)&&delete i[e];if(_[e]&&!n)return;try{return h(_,e,n?t:E&&m[e]||t)}catch(e){}}for(r in B)!(i=o[r])||i[e]&&!n||h(i,e,t)}},isView:function(e){var t=c(e);return"DataView"===t||l(B,t)},isTypedArray:I,TypedArray:_,TypedArrayPrototype:w}},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var r=n(28),i=n(63),a=n(57)("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){n(114),n(77),n(116),n(119),n(134),n(135);var r=n(43);e.exports=r.Promise},function(e,t,n){var r=n(96),i=n(29),a=n(115);r||i(Object.prototype,"toString",a,{unsafe:!0})},function(e,t,n){"use strict";var r=n(96),i=n(95);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){var r=n(11),i=n(117),a=n(118),o=n(26),s=n(57),l=s("iterator"),c=s("toStringTag"),u=a.values;for(var h in i){var d=r[h],f=d&&d.prototype;if(f){if(f[l]!==u)try{o(f,l,u)}catch(e){f[l]=u}if(f[c]||o(f,c,h),i[h])for(var p in a)if(f[p]!==a[p])try{o(f,p,a[p])}catch(e){f[p]=a[p]}}}},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){"use strict";var r=n(17),i=n(70),a=n(86),o=n(33),s=n(79),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,n){"use strict";var r,i,a,o,s=n(10),l=n(37),c=n(11),u=n(42),h=n(120),d=n(29),f=n(121),p=n(85),g=n(122),A=n(22),m=n(63),v=n(123),y=n(19),b=n(31),_=n(124),w=n(97),x=n(112),C=n(125).set,S=n(128),k=n(129),E=n(131),T=n(130),B=n(132),I=n(33),M=n(52),P=n(57),D=n(133),F=P("species"),O="Promise",L=I.get,R=I.set,N=I.getterFor(O),U=h,j=c.TypeError,H=c.document,z=c.process,Q=u("fetch"),V=T.f,G=V,q="process"==y(z),W=!!(H&&H.createEvent&&c.dispatchEvent),$=M(O,function(){if(!(b(U)!==String(U))){if(66===D)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)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={})[F]=t,!(e.then(function(){})instanceof t)}),K=$||!w(function(e){U.all(e).catch(function(){})}),Y=function(e){var t;return!(!A(e)||"function"!=typeof(t=e.then))&&t},X=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;S(function(){for(var i=t.value,a=1==t.state,o=0;r.length>o;){var s,l,c,u=r[o++],h=a?u.ok:u.fail,d=u.resolve,f=u.reject,p=u.domain;try{h?(a||(2===t.rejection&&te(e,t),t.rejection=1),!0===h?s=i:(p&&p.enter(),s=h(i),p&&(p.exit(),c=!0)),s===u.promise?f(j("Promise-chain cycle")):(l=Y(s))?l.call(s,d,f):d(s)):f(i)}catch(e){p&&!c&&p.exit(),f(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&J(e,t)})}},Z=function(e,t,n){var r,i;W?((r=H.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(i=c["on"+e])?i(r):"unhandledrejection"===e&&E("Unhandled promise rejection",n)},J=function(e,t){C.call(c,function(){var n,r=t.value;if(ee(t)&&(n=B(function(){q?z.emit("unhandledRejection",r,e):Z("unhandledrejection",e,r)}),t.rejection=q||ee(t)?2:1,n.error))throw n.value})},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){C.call(c,function(){q?z.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)})},ne=function(e,t,n,r){return function(i){e(t,n,i,r)}},re=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,X(e,t,!0))},ie=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw j("Promise can't be resolved itself");var i=Y(n);i?S(function(){var r={done:!1};try{i.call(n,ne(ie,e,r,t),ne(re,e,r,t))}catch(n){re(e,r,n,t)}}):(t.value=n,t.state=1,X(e,t,!1))}catch(n){re(e,{done:!1},n,t)}}};$&&(U=function(e){v(this,U,O),m(e),r.call(this);var t=L(this);try{e(ne(ie,this,t),ne(re,this,t))}catch(e){re(this,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=q?z.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&X(this,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,e,t),this.reject=ne(re,e,t)},T.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 Q&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return k(U,Q.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:$},{Promise:U}),p(U,O,!1,!0),g(O),a=u(O),s({target:O,stat:!0,forced:$},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:O,stat:!0,forced:l||$},{resolve:function(e){return k(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=B(function(){var n=m(t.resolve),a=[],o=0,s=1;_(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=B(function(){var i=m(t.resolve);_(e,function(e){i.call(t,e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})},function(e,t,n){var r=n(11);e.exports=r.Promise},function(e,t,n){var r=n(29);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(42),i=n(27),a=n(57),o=n(13),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){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(28),i=n(92),a=n(47),o=n(62),s=n(94),l=n(91),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,u,h){var d,f,p,g,A,m,v,y=o(t,n,u?2:1);if(h)d=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(i(f)){for(p=0,g=a(e.length);g>p;p++)if((A=u?y(r(v=e[p])[0],v[1]):y(e[p]))&&A instanceof c)return A;return new c(!1)}d=f.call(e)}for(m=d.next;!(v=m.call(d)).done;)if("object"==typeof(A=l(d,y,v.value,u))&&A&&A instanceof c)return A;return new c(!1)}).stop=function(e){return new c(!0,e)}},function(e,t,n){var r,i,a,o=n(11),s=n(14),l=n(19),c=n(62),u=n(74),h=n(25),d=n(126),f=o.location,p=o.setImmediate,g=o.clearImmediate,A=o.process,m=o.MessageChannel,v=o.Dispatch,y=0,b={},_=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},w=function(e){return function(){_(e)}},x=function(e){_(e.data)},C=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};p&&g||(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},g=function(e){delete b[e]},"process"==l(A)?r=function(e){A.nextTick(w(e))}:v&&v.now?r=function(e){v.now(w(e))}:m&&!d?(a=(i=new m).port2,i.port1.onmessage=x,r=c(a.postMessage,a,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(C)||"file:"===f.protocol?r="onreadystatechange"in h("script")?function(e){u.appendChild(h("script")).onreadystatechange=function(){u.removeChild(this),_(e)}}:function(e){setTimeout(w(e),0)}:(r=C,o.addEventListener("message",x,!1))),e.exports={set:p,clear:g}},function(e,t,n){var r=n(127);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(42);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r,i,a,o,s,l,c,u,h=n(11),d=n(12).f,f=n(19),p=n(125).set,g=n(126),A=h.MutationObserver||h.WebKitMutationObserver,m=h.process,v=h.Promise,y="process"==f(m),b=d(h,"queueMicrotask"),_=b&&b.value;_||(r=function(){var e,t;for(y&&(e=m.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()},y?o=function(){m.nextTick(r)}:A&&!g?(s=!0,l=document.createTextNode(""),new A(r).observe(l,{characterData:!0}),o=function(){l.data=s=!s}):v&&v.resolve?(c=v.resolve(void 0),u=c.then,o=function(){u.call(c,r)}):o=function(){p.call(h,r)}),e.exports=_||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(28),i=n(22),a=n(130);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=n(63);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){var r=n(11);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){var r,i,a=n(11),o=n(127),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){"use strict";var r=n(10),i=n(63),a=n(130),o=n(132),s=n(124);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(10),i=n(37),a=n(120),o=n(14),s=n(42),l=n(112),c=n(129),u=n(29);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){n(137),n(142),n(140);var r=n(43);e.exports=r.URL},function(e,t,n){"use strict";n(77);var r,i=n(10),a=n(13),o=n(138),s=n(11),l=n(72),c=n(29),u=n(123),h=n(23),d=n(100),f=n(90),p=n(78).codeAt,g=n(139),A=n(85),m=n(140),v=n(33),y=s.URL,b=m.URLSearchParams,_=m.getState,w=v.set,x=v.getterFor("URL"),C=Math.floor,S=Math.pow,k=/[A-Za-z]/,E=/[\d+-.A-Za-z]/,T=/\d/,B=/^(0x|0X)/,I=/^[0-7]+$/,M=/^\d+$/,P=/^[\dA-Fa-f]+$/,D=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,F=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,O=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,L=/[\u0009\u000A\u000D]/g,R=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=U(t.slice(1,-1))))return"Invalid host";e.host=n}else if(W(e)){if(t=g(t),D.test(t))return"Invalid host";if(null===(n=N(t)))return"Invalid host";e.host=n}else{if(F.test(t))return"Invalid host";for(n="",r=f(t),i=0;i<r.length;i++)n+=G(r[i],H);e.host=n}},N=function(e){var t,n,r,i,a,o,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=l[r]))return e;if(a=10,i.length>1&&"0"==i.charAt(0)&&(a=B.test(i)?16:8,i=i.slice(8==a?1:2)),""===i)o=0;else{if(!(10==a?M:8==a?I:P).test(i))return e;o=parseInt(i,a)}n.push(o)}for(r=0;r<t;r++)if(o=n[r],r==t-1){if(o>=S(256,5-t))return null}else if(o>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*S(256,3-r);return s},U=function(e){var t,n,r,i,a,o,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,h=0,d=function(){return e.charAt(h)};if(":"==d()){if(":"!=e.charAt(1))return;h+=2,u=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=n=0;n<4&&P.test(d());)t=16*t+parseInt(d(),16),h++,n++;if("."==d()){if(0==n)return;if(h-=n,c>6)return;for(r=0;d();){if(i=null,r>0){if(!("."==d()&&r<4))return;h++}if(!T.test(d()))return;for(;T.test(d());){if(a=parseInt(d(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;h++}l[c]=256*l[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[c++]=t}else{if(null!==u)return;h++,u=++c}}if(null!==u)for(o=c-u,c=7;0!=c&&o>0;)s=l[c],l[c--]=l[u+o-1],l[u+--o]=s;else if(8!=c)return;return l},j=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=C(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},H={},z=d({},H,{" ":1,'"':1,"<":1,">":1,"`":1}),Q=d({},z,{"#":1,"?":1,"{":1,"}":1}),V=d({},Q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),G=function(e,t){var n=p(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},W=function(e){return h(q,e.scheme)},$=function(e){return""!=e.username||""!=e.password},K=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Y=function(e,t){var n;return 2==e.length&&k.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},X=function(e){var t;return e.length>1&&Y(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Z=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Y(t[0],!0)||t.pop()},J=function(e){return"."===e||"%2e"===e.toLowerCase()},ee={},te={},ne={},re={},ie={},ae={},oe={},se={},le={},ce={},ue={},he={},de={},fe={},pe={},ge={},Ae={},me={},ve={},ye={},be={},_e=function(e,t,n,i){var a,o,s,l,c,u=n||ee,d=0,p="",g=!1,A=!1,m=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(O,"")),t=t.replace(L,""),a=f(t);d<=a.length;){switch(o=a[d],u){case ee:if(!o||!k.test(o)){if(n)return"Invalid scheme";u=ne;continue}p+=o.toLowerCase(),u=te;break;case te:if(o&&(E.test(o)||"+"==o||"-"==o||"."==o))p+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";p="",u=ne,d=0;continue}if(n&&(W(e)!=h(q,p)||"file"==p&&($(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=p,n)return void(W(e)&&q[e.scheme]==e.port&&(e.port=null));p="","file"==e.scheme?u=fe:W(e)&&i&&i.scheme==e.scheme?u=re:W(e)?u=se:"/"==a[d+1]?(u=ie,d++):(e.cannotBeABaseURL=!0,e.path.push(""),u=ve)}break;case ne:if(!i||i.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==o){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,u=be;break}u="file"==i.scheme?fe:ae;continue;case re:if("/"!=o||"/"!=a[d+1]){u=ae;continue}u=le,d++;break;case ie:if("/"==o){u=ce;break}u=me;continue;case ae:if(e.scheme=i.scheme,o==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==o||"\\"==o&&W(e))u=oe;else if("?"==o)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",u=ye;else{if("#"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),u=me;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=be}break;case oe:if(!W(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,u=me;continue}u=ce}else u=le;break;case se:if(u=le,"/"!=o||"/"!=p.charAt(d+1))continue;d++;break;case le:if("/"!=o&&"\\"!=o){u=ce;continue}break;case ce:if("@"==o){g&&(p="%40"+p),g=!0,s=f(p);for(var v=0;v<s.length;v++){var y=s[v];if(":"!=y||m){var b=G(y,V);m?e.password+=b:e.username+=b}else m=!0}p=""}else if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&W(e)){if(g&&""==p)return"Invalid authority";d-=f(p).length+1,p="",u=ue}else p+=o;break;case ue:case he:if(n&&"file"==e.scheme){u=ge;continue}if(":"!=o||A){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&W(e)){if(W(e)&&""==p)return"Invalid host";if(n&&""==p&&($(e)||null!==e.port))return;if(l=R(e,p))return l;if(p="",u=Ae,n)return;continue}"["==o?A=!0:"]"==o&&(A=!1),p+=o}else{if(""==p)return"Invalid host";if(l=R(e,p))return l;if(p="",u=de,n==he)return}break;case de:if(!T.test(o)){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&W(e)||n){if(""!=p){var _=parseInt(p,10);if(_>65535)return"Invalid port";e.port=W(e)&&_===q[e.scheme]?null:_,p=""}if(n)return;u=Ae;continue}return"Invalid port"}p+=o;break;case fe:if(e.scheme="file","/"==o||"\\"==o)u=pe;else{if(!i||"file"!=i.scheme){u=me;continue}if(o==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==o)e.host=i.host,e.path=i.path.slice(),e.query="",u=ye;else{if("#"!=o){X(a.slice(d).join(""))||(e.host=i.host,e.path=i.path.slice(),Z(e)),u=me;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=be}}break;case pe:if("/"==o||"\\"==o){u=ge;break}i&&"file"==i.scheme&&!X(a.slice(d).join(""))&&(Y(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),u=me;continue;case ge:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&Y(p))u=me;else if(""==p){if(e.host="",n)return;u=Ae}else{if(l=R(e,p))return l;if("localhost"==e.host&&(e.host=""),n)return;p="",u=Ae}continue}p+=o;break;case Ae:if(W(e)){if(u=me,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=r&&(u=me,"/"!=o))continue}else e.fragment="",u=be;else e.query="",u=ye;break;case me:if(o==r||"/"==o||"\\"==o&&W(e)||!n&&("?"==o||"#"==o)){if(".."===(c=(c=p).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Z(e),"/"==o||"\\"==o&&W(e)||e.path.push("")):J(p)?"/"==o||"\\"==o&&W(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Y(p)&&(e.host&&(e.host=""),p=p.charAt(0)+":"),e.path.push(p)),p="","file"==e.scheme&&(o==r||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",u=ye):"#"==o&&(e.fragment="",u=be)}else p+=G(o,Q);break;case ve:"?"==o?(e.query="",u=ye):"#"==o?(e.fragment="",u=be):o!=r&&(e.path[0]+=G(o,H));break;case ye:n||"#"!=o?o!=r&&("'"==o&&W(e)?e.query+="%27":e.query+="#"==o?"%23":G(o,H)):(e.fragment="",u=be);break;case be:o!=r&&(e.fragment+=G(o,z))}d++}},we=function(e){var t,n,r=u(this,we,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),s=w(r,{type:"URL"});if(void 0!==i)if(i instanceof we)t=x(i);else if(n=_e(t={},String(i)))throw TypeError(n);if(n=_e(s,o,null,t))throw TypeError(n);var l=s.searchParams=new b,c=_(l);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(l)||null},a||(r.href=Ce.call(r),r.origin=Se.call(r),r.protocol=ke.call(r),r.username=Ee.call(r),r.password=Te.call(r),r.host=Be.call(r),r.hostname=Ie.call(r),r.port=Me.call(r),r.pathname=Pe.call(r),r.search=De.call(r),r.searchParams=Fe.call(r),r.hash=Oe.call(r))},xe=we.prototype,Ce=function(){var e=x(this),t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",$(e)&&(c+=n+(r?":"+r:"")+"@"),c+=j(i),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Se=function(){var e=x(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&W(e)?t+"://"+j(e.host)+(null!==n?":"+n:""):"null"},ke=function(){return x(this).scheme+":"},Ee=function(){return x(this).username},Te=function(){return x(this).password},Be=function(){var e=x(this),t=e.host,n=e.port;return null===t?"":null===n?j(t):j(t)+":"+n},Ie=function(){var e=x(this).host;return null===e?"":j(e)},Me=function(){var e=x(this).port;return null===e?"":String(e)},Pe=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},De=function(){var e=x(this).query;return e?"?"+e:""},Fe=function(){return x(this).searchParams},Oe=function(){var e=x(this).fragment;return e?"#"+e:""},Le=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&l(xe,{href:Le(Ce,function(e){var t=x(this),n=String(e),r=_e(t,n);if(r)throw TypeError(r);_(t.searchParams).updateSearchParams(t.query)}),origin:Le(Se),protocol:Le(ke,function(e){var t=x(this);_e(t,String(e)+":",ee)}),username:Le(Ee,function(e){var t=x(this),n=f(String(e));if(!K(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=G(n[r],V)}}),password:Le(Te,function(e){var t=x(this),n=f(String(e));if(!K(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=G(n[r],V)}}),host:Le(Be,function(e){var t=x(this);t.cannotBeABaseURL||_e(t,String(e),ue)}),hostname:Le(Ie,function(e){var t=x(this);t.cannotBeABaseURL||_e(t,String(e),he)}),port:Le(Me,function(e){var t=x(this);K(t)||(""==(e=String(e))?t.port=null:_e(t,e,de))}),pathname:Le(Pe,function(e){var t=x(this);t.cannotBeABaseURL||(t.path=[],_e(t,e+"",Ae))}),search:Le(De,function(e){var t=x(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",_e(t,e,ye)),_(t.searchParams).updateSearchParams(t.query)}),searchParams:Le(Fe),hash:Le(Oe,function(e){var t=x(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",_e(t,e,be)):t.fragment=null})}),c(xe,"toJSON",function(){return Ce.call(this)},{enumerable:!0}),c(xe,"toString",function(){return Ce.call(this)},{enumerable:!0}),y){var Re=y.createObjectURL,Ne=y.revokeObjectURL;Re&&c(we,"createObjectURL",function(e){return Re.apply(y,arguments)}),Ne&&c(we,"revokeObjectURL",function(e){return Ne.apply(y,arguments)})}A(we,"URL"),i({global:!0,forced:!o,sham:!a},{URL:we})},function(e,t,n){var r=n(14),i=n(57),a=n(37),o=i("iterator");e.exports=!r(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),n+=r+e}),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})},function(e,t,n){"use strict";var r=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",o=Math.floor,s=String.fromCharCode,l=function(e){return e+22+75*(e<26)},c=function(e,t,n){var r=0;for(e=n?o(e/700):e>>1,e+=o(e/t);e>455;r+=36)e=o(e/35);return o(r+36*e/(e+38))},u=function(e){var t,n,r=[],i=(e=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)).length,u=128,h=0,d=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(s(n));var f=r.length,p=f;for(f&&r.push("-");p<i;){var g=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=u&&n<g&&(g=n);var A=p+1;if(g-u>o((2147483647-h)/A))throw RangeError(a);for(h+=(g-u)*A,u=g,t=0;t<e.length;t++){if((n=e[t])<u&&++h>2147483647)throw RangeError(a);if(n==u){for(var m=h,v=36;;v+=36){var y=v<=d?1:v>=d+26?26:v-d;if(m<y)break;var b=m-y,_=36-y;r.push(s(l(y+b%_))),m=o(b/_)}r.push(s(l(m))),d=c(h,A,p==f),h=0,++p}}++h,++u}return r.join("")};e.exports=function(e){var t,n,a=[],o=e.toLowerCase().replace(i,".").split(".");for(t=0;t<o.length;t++)n=o[t],a.push(r.test(n)?"xn--"+u(n):n);return a.join(".")}},function(e,t,n){"use strict";n(118);var r=n(10),i=n(42),a=n(138),o=n(29),s=n(121),l=n(85),c=n(80),u=n(33),h=n(123),d=n(23),f=n(62),p=n(95),g=n(28),A=n(22),m=n(71),v=n(16),y=n(141),b=n(94),_=n(57),w=i("fetch"),x=i("Headers"),C=_("iterator"),S=u.set,k=u.getterFor("URLSearchParams"),E=u.getterFor("URLSearchParamsIterator"),T=/\+/g,B=Array(4),I=function(e){return B[e-1]||(B[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},M=function(e){try{return decodeURIComponent(e)}catch(t){return e}},P=function(e){var t=e.replace(T," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(I(n--),M);return t}},D=/[!'()~]|%20/g,F={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},O=function(e){return F[e]},L=function(e){return encodeURIComponent(e).replace(D,O)},R=function(e,t){if(t)for(var n,r,i=t.split("&"),a=0;a<i.length;)(n=i[a++]).length&&(r=n.split("="),e.push({key:P(r.shift()),value:P(r.join("="))}))},N=function(e){this.entries.length=0,R(this.entries,e)},U=function(e,t){if(e<t)throw TypeError("Not enough arguments")},j=c(function(e,t){S(this,{type:"URLSearchParamsIterator",iterator:y(k(e).entries),kind:t})},"Iterator",function(){var e=E(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),H=function(){h(this,H,"URLSearchParams");var e,t,n,r,i,a,o,s,l,c=arguments.length>0?arguments[0]:void 0,u=[];if(S(this,{type:"URLSearchParams",entries:u,updateURL:function(){},updateSearchParams:N}),void 0!==c)if(A(c))if("function"==typeof(e=b(c)))for(n=(t=e.call(c)).next;!(r=n.call(t)).done;){if((o=(a=(i=y(g(r.value))).next).call(i)).done||(s=a.call(i)).done||!a.call(i).done)throw TypeError("Expected sequence with length 2");u.push({key:o.value+"",value:s.value+""})}else for(l in c)d(c,l)&&u.push({key:l,value:c[l]+""});else R(u,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},z=H.prototype;s(z,{append:function(e,t){U(arguments.length,2);var n=k(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){U(arguments.length,1);for(var t=k(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){U(arguments.length,1);for(var t=k(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){U(arguments.length,1);for(var t=k(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){U(arguments.length,1);for(var t=k(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){U(arguments.length,1);for(var n,r=k(this),i=r.entries,a=!1,o=e+"",s=t+"",l=0;l<i.length;l++)(n=i[l]).key===o&&(a?i.splice(l--,1):(a=!0,n.value=s));a||i.push({key:o,value:s}),r.updateURL()},sort:function(){var e,t,n,r=k(this),i=r.entries,a=i.slice();for(i.length=0,n=0;n<a.length;n++){for(e=a[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=k(this).entries,r=f(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new j(this,"keys")},values:function(){return new j(this,"values")},entries:function(){return new j(this,"entries")}},{enumerable:!0}),o(z,C,z.entries),o(z,"toString",function(){for(var e,t=k(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(L(e.key)+"="+L(e.value));return n.join("&")},{enumerable:!0}),l(H,"URLSearchParams"),r({global:!0,forced:!a},{URLSearchParams:H}),a||"function"!=typeof w||"function"!=typeof x||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],A(t)&&(n=t.body,"URLSearchParams"===p(n)&&((r=t.headers?new x(t.headers):new x).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=m(t,{body:v(0,String(n)),headers:v(0,r)}))),i.push(t)),w.apply(this,i)}}),e.exports={URLSearchParams:H,getState:k}},function(e,t,n){var r=n(28),i=n(94);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){"use strict";n(10)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,n){!function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"};function n(){}var r=Number.isNaN||function(e){return e!=e},i=n;function a(e){return"object"==typeof e&&null!==e||"function"==typeof e}function o(e){return e.slice()}function s(e){return!1!==function(e){return"number"==typeof e&&(!r(e)&&!(e<0))}(e)&&e!==1/0}function l(e,t,n){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,n)}function c(e,t,n,r){var i=e[t];if(void 0!==i){if("function"!=typeof i)throw new TypeError(i+" is not a method");switch(n){case 0:return function(){return h(i,e,r)};case 1:return function(t){var n=[t].concat(r);return h(i,e,n)}}}return function(){return b(void 0)}}function u(e,t,n){var r=e[t];if(void 0!==r)return l(r,e,n)}function h(e,t,n){try{return b(l(e,t,n))}catch(e){return _(e)}}function d(e){return e}function f(e){if(e=Number(e),r(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function p(e){if(void 0===e)return function(){return 1};if("function"!=typeof e)throw new TypeError("size property of a queuing strategy must be a function");return function(t){return e(t)}}var g=Promise,A=Promise.prototype.then,m=Promise.resolve.bind(g),v=Promise.reject.bind(g);function y(e){return new g(e)}function b(e){return m(e)}function _(e){return v(e)}function w(e,t,n){return A.call(e,t,n)}function x(e,t,n){w(w(e,t,n),void 0,i)}function C(e,t){x(e,t)}function S(e,t){x(e,void 0,t)}function k(e,t,n){return w(e,t,n)}function E(e){w(e,void 0,i)}var T=function(){function e(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.push=function(e){var t=this._back,n=t;16383===t._elements.length&&(n={_elements:[],_next:void 0}),t._elements.push(e),n!==t&&(this._back=n,t._next=n),++this._size},e.prototype.shift=function(){var e=this._front,t=e,n=this._cursor,r=n+1,i=e._elements,a=i[n];return 16384===r&&(t=e._next,r=0),--this._size,this._cursor=r,e!==t&&(this._front=t),i[n]=void 0,a},e.prototype.forEach=function(e){for(var t=this._cursor,n=this._front,r=n._elements;!(t===r.length&&void 0===n._next||t===r.length&&(n=n._next,r=n._elements,t=0,0===r.length));)e(r[t]),++t},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}();function B(e,t,n){var r=null;!0===n&&(r=Object.prototype);var i=Object.create(r);return i.value=e,i.done=t,i}function I(e,t){e._forAuthorCode=!0,e._ownerReadableStream=t,t._reader=e,"readable"===t._state?F(e):"closed"===t._state?function(e){F(e),R(e)}(e):O(e,t._storedError)}function M(e,t){var n=e._ownerReadableStream;return Ht(n,t)}function P(e){"readable"===e._ownerReadableStream._state?L(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e,t){O(e,t)}(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function D(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function F(e){e._closedPromise=y(function(t,n){e._closedPromise_resolve=t,e._closedPromise_reject=n})}function O(e,t){F(e),L(e,t)}function L(e,t){E(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function R(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}var N=t("[[CancelSteps]]"),U=t("[[PullSteps]]");function j(e,t){void 0===t&&(t=!1);var n=new W(e);return n._forAuthorCode=t,n}function H(e){var t=y(function(t,n){var r={_resolve:t,_reject:n};e._reader._readRequests.push(r)});return t}function z(e,t,n){var r=e._reader,i=r._readRequests.shift();i._resolve(B(t,n,r._forAuthorCode))}function Q(e){return e._reader._readRequests.length}function V(e){var t=e._reader;return void 0!==t&&!!$(t)}var G,q,W=function(){function e(e){if(!1===Ut(e))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===jt(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");I(this,e),this._readRequests=new T}return Object.defineProperty(e.prototype,"closed",{get:function(){return $(this)?this._closedPromise:_(Y("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return $(this)?void 0===this._ownerReadableStream?_(D("cancel")):M(this,e):_(Y("cancel"))},e.prototype.read=function(){return $(this)?void 0===this._ownerReadableStream?_(D("read from")):K(this):_(Y("read"))},e.prototype.releaseLock=function(){if(!$(this))throw Y("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");P(this)}},e}();function $(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function K(e){var t=e._ownerReadableStream;return t._disturbed=!0,"closed"===t._state?b(B(void 0,!0,e._forAuthorCode)):"errored"===t._state?_(t._storedError):t._readableStreamController[U]()}function Y(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof t.asyncIterator&&((G={})[t.asyncIterator]=function(){return this},q=G,Object.defineProperty(q,t.asyncIterator,{enumerable:!1}));var X={next:function(){if(!1===Z(this))return _(J("next"));var e=this._asyncIteratorReader;return void 0===e._ownerReadableStream?_(D("iterate")):k(K(e),function(t){var n=t.done;n&&P(e);var r=t.value;return B(r,n,!0)})},return:function(e){if(!1===Z(this))return _(J("next"));var t=this._asyncIteratorReader;if(void 0===t._ownerReadableStream)return _(D("finish iterating"));if(t._readRequests.length>0)return _(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var n=M(t,e);return P(t),k(n,function(){return B(e,!0,!0)})}return P(t),b(B(e,!0,!0))}};function Z(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader")}function J(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function ee(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function te(e,t,n){if(!s(n=Number(n)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:n}),e._queueTotalSize+=n}function ne(e){e._queue=new T,e._queueTotalSize=0}void 0!==q&&Object.setPrototypeOf(X,q),Object.defineProperty(X,"next",{enumerable:!1}),Object.defineProperty(X,"return",{enumerable:!1});var re=t("[[AbortSteps]]"),ie=t("[[ErrorSteps]]"),ae=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),se(this);var n=t.size,r=t.highWaterMark,i=e.type;if(void 0!==i)throw new RangeError("Invalid type is specified");var a=p(n);void 0===r&&(r=1),r=f(r),function(e,t,n,r){var i=Object.create(Se.prototype),a=c(t,"write",1,[i]),o=c(t,"close",0,[]),s=c(t,"abort",1,[]);ke(e,i,function(){return u(t,"start",[i])},a,o,s,n,r)}(this,e,r,a)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===le(this))throw De("locked");return ce(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===le(this)?_(De("abort")):!0===ce(this)?_(new TypeError("Cannot abort a stream that already has a writer")):ue(this,e)},e.prototype.close=function(){return!1===le(this)?_(De("close")):!0===ce(this)?_(new TypeError("Cannot close a stream that already has a writer")):!0===ge(this)?_(new TypeError("Cannot close an already-closing stream")):he(this)},e.prototype.getWriter=function(){if(!1===le(this))throw De("getWriter");return oe(this)},e}();function oe(e){return new ve(e)}function se(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new T,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function le(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function ce(e){return void 0!==e._writer}function ue(e,t){var n=e._state;if("closed"===n||"errored"===n)return b(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var r=!1;"erroring"===n&&(r=!0,t=void 0);var i=y(function(n,i){e._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:i,_reason:t,_wasAlreadyErroring:r}});return e._pendingAbortRequest._promise=i,!1===r&&fe(e,t),i}function he(e){var t=e._state;if("closed"===t||"errored"===t)return _(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var n,r=y(function(t,n){var r={_resolve:t,_reject:n};e._closeRequest=r}),i=e._writer;return void 0!==i&&!0===e._backpressure&&"writable"===t&&Ve(i),te(n=e._writableStreamController,"close",0),Be(n),r}function de(e,t){var n=e._state;"writable"!==n?pe(e):fe(e,t)}function fe(e,t){var n=e._writableStreamController;e._state="erroring",e._storedError=t;var r=e._writer;void 0!==r&&we(r,t),!1===function(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}(e)&&!0===n._started&&pe(e)}function pe(e){e._state="errored",e._writableStreamController[ie]();var t=e._storedError;if(e._writeRequests.forEach(function(e){e._reject(t)}),e._writeRequests=new T,void 0!==e._pendingAbortRequest){var n=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===n._wasAlreadyErroring)return n._reject(t),void Ae(e);var r=e._writableStreamController[re](n._reason);x(r,function(){n._resolve(),Ae(e)},function(t){n._reject(t),Ae(e)})}else Ae(e)}function ge(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function Ae(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&Ne(t,e._storedError)}function me(e,t){var n=e._writer;void 0!==n&&t!==e._backpressure&&(!0===t?function(e){je(e)}(n):Ve(n)),e._backpressure=t}var ve=function(){function e(e){if(!1===le(e))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===ce(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;var t,n=e._state;if("writable"===n)!1===ge(e)&&!0===e._backpressure?je(this):ze(this),Le(this);else if("erroring"===n)He(this,e._storedError),Le(this);else if("closed"===n)ze(this),Le(t=this),Ue(t);else{var r=e._storedError;He(this,r),Re(this,r)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return!1===ye(this)?_(Fe("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===ye(this))throw Fe("desiredSize");if(void 0===this._ownerWritableStream)throw Oe("desiredSize");return e=this._ownerWritableStream,"errored"===(t=e._state)||"erroring"===t?null:"closed"===t?0:Te(e._writableStreamController);var e,t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return!1===ye(this)?_(Fe("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===ye(this)?_(Fe("abort")):void 0===this._ownerWritableStream?_(Oe("abort")):function(e,t){return ue(e._ownerWritableStream,t)}(this,e)},e.prototype.close=function(){if(!1===ye(this))return _(Fe("close"));var e=this._ownerWritableStream;return void 0===e?_(Oe("close")):!0===ge(e)?_(new TypeError("Cannot close an already-closing stream")):be(this)},e.prototype.releaseLock=function(){if(!1===ye(this))throw Fe("releaseLock");var e=this._ownerWritableStream;void 0!==e&&xe(this)},e.prototype.write=function(e){return!1===ye(this)?_(Fe("write")):void 0===this._ownerWritableStream?_(Oe("write to")):Ce(this,e)},e}();function ye(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function be(e){var t=e._ownerWritableStream;return he(t)}function _e(e,t){"pending"===e._closedPromiseState?Ne(e,t):function(e,t){Re(e,t)}(e,t)}function we(e,t){"pending"===e._readyPromiseState?Qe(e,t):function(e,t){He(e,t)}(e,t)}function xe(e){var t=e._ownerWritableStream,n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");we(e,n),_e(e,n),t._writer=void 0,e._ownerWritableStream=void 0}function Ce(e,t){var n=e._ownerWritableStream,r=n._writableStreamController,i=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return Ie(e,t),1}}(r,t);if(n!==e._ownerWritableStream)return _(Oe("write to"));var a=n._state;if("errored"===a)return _(n._storedError);if(!0===ge(n)||"closed"===a)return _(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===a)return _(n._storedError);var o=function(e){return y(function(t,n){var r={_resolve:t,_reject:n};e._writeRequests.push(r)})}(n);return function(e,t,n){var r={chunk:t};try{te(e,r,n)}catch(t){return void Ie(e,t)}var i=e._controlledWritableStream;if(!1===ge(i)&&"writable"===i._state){var a=Me(e);me(i,a)}Be(e)}(r,t,i),o}var Se=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(e){if(!1==(!!a(t=this)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledWritableStream")))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var t,n=this._controlledWritableStream._state;"writable"===n&&Pe(this,e)},e.prototype[re]=function(e){var t=this._abortAlgorithm(e);return Ee(this),t},e.prototype[ie]=function(){ne(this)},e}();function ke(e,t,n,r,i,a,o,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,ne(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=o,t._writeAlgorithm=r,t._closeAlgorithm=i,t._abortAlgorithm=a;var l=Me(t);me(e,l);var c=n(),u=b(c);x(u,function(){t._started=!0,Be(t)},function(n){t._started=!0,de(e,n)})}function Ee(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Te(e){return e._strategyHWM-e._queueTotalSize}function Be(e){var t=e._controlledWritableStream;if(!1!==e._started&&void 0===t._inFlightWriteRequest){var n=t._state;if("erroring"!==n){if(0!==e._queue.length){var r=e._queue.peek().value;"close"===r?function(e){var t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),ee(e);var n=e._closeAlgorithm();Ee(e),x(n,function(){!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var t=e._writer;void 0!==t&&Ue(t)}(t)},function(e){!function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),de(e,t)}(t,e)})}(e):function(e,t){var n=e._controlledWritableStream;(function(e){e._inFlightWriteRequest=e._writeRequests.shift()})(n),x(e._writeAlgorithm(t),function(){!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(n);var t=n._state;if(ee(e),!1===ge(n)&&"writable"===t){var r=Me(e);me(n,r)}Be(e)},function(t){"writable"===n._state&&Ee(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,de(e,t)}(n,t)})}(e,r.chunk)}}else pe(t)}}function Ie(e,t){"writable"===e._controlledWritableStream._state&&Pe(e,t)}function Me(e){var t=Te(e);return t<=0}function Pe(e,t){var n=e._controlledWritableStream;Ee(e),fe(n,t)}function De(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function Fe(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function Oe(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Le(e){e._closedPromise=y(function(t,n){e._closedPromise_resolve=t,e._closedPromise_reject=n,e._closedPromiseState="pending"})}function Re(e,t){Le(e),Ne(e,t)}function Ne(e,t){E(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function Ue(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function je(e){e._readyPromise=y(function(t,n){e._readyPromise_resolve=t,e._readyPromise_reject=n}),e._readyPromiseState="pending"}function He(e,t){je(e),Qe(e,t)}function ze(e){je(e),Ve(e)}function Qe(e,t){E(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function Ve(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function Ge(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}var qe,We="undefined"!=typeof DOMException?DOMException:void 0,$e=function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(We)?We:((qe=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}).prototype=Object.create(Error.prototype),Object.defineProperty(qe.prototype,"constructor",{value:qe,writable:!0,configurable:!0}),qe);function Ke(e,t,r,i,a,o){var s=j(e),l=oe(t);e._disturbed=!0;var c=!1,u=b(void 0);return y(function(h,d){var f,p,g,A;if(void 0!==o){if(f=function(){var n=new $e("Aborted","AbortError"),r=[];!1===i&&r.push(function(){return"writable"===t._state?ue(t,n):b(void 0)}),!1===a&&r.push(function(){return"readable"===e._state?Ht(e,n):b(void 0)}),T(function(){return Promise.all(r.map(function(e){return e()}))},!0,n)},!0===o.aborted)return void f();o.addEventListener("abort",f)}if(k(e,s._closedPromise,function(e){!1===i?T(function(){return ue(t,e)},!0,e):B(!0,e)}),k(t,l._closedPromise,function(t){!1===a?T(function(){return Ht(e,t)},!0,t):B(!0,t)}),p=e,g=s._closedPromise,A=function(){!1===r?T(function(){return function(e){var t=e._ownerWritableStream,n=t._state;return!0===ge(t)||"closed"===n?b(void 0):"errored"===n?_(t._storedError):be(e)}(l)}):B()},"closed"===p._state?A():C(g,A),!0===ge(t)||"closed"===t._state){var m=new TypeError("the destination writable stream closed before all data could be piped to it");!1===a?T(function(){return Ht(e,m)},!0,m):B(!0,m)}function v(){var e=u;return w(u,function(){return e!==u?v():void 0})}function k(e,t,n){"errored"===e._state?n(e._storedError):S(t,n)}function T(e,n,r){function i(){x(e(),function(){return I(n,r)},function(e){return I(!0,e)})}!0!==c&&(c=!0,"writable"===t._state&&!1===ge(t)?C(v(),i):i())}function B(e,n){!0!==c&&(c=!0,"writable"===t._state&&!1===ge(t)?C(v(),function(){return I(e,n)}):I(e,n))}function I(e,t){xe(l),P(s),void 0!==o&&o.removeEventListener("abort",f),e?d(t):h(void 0)}E(y(function(e,t){!function r(i){i?e():w(!0===c?b(!0):w(l._readyPromise,function(){return w(K(s),function(e){return!0===e.done||(u=w(Ce(l,e.value),void 0,n),!1)})}),r,t)}(!1)}))})}var Ye=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Xe(this))throw st("desiredSize");return it(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===Xe(this))throw st("close");if(!1===at(this))throw new TypeError("The stream is not in a state that permits close");tt(this)},e.prototype.enqueue=function(e){if(!1===Xe(this))throw st("enqueue");if(!1===at(this))throw new TypeError("The stream is not in a state that permits enqueue");return nt(this,e)},e.prototype.error=function(e){if(!1===Xe(this))throw st("error");rt(this,e)},e.prototype[N]=function(e){ne(this);var t=this._cancelAlgorithm(e);return et(this),t},e.prototype[U]=function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=ee(this);return!0===this._closeRequested&&0===this._queue.length?(et(this),zt(e)):Ze(this),b(B(t,!1,e._reader._forAuthorCode))}var n=H(e);return Ze(this),n},e}();function Xe(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function Ze(e){var t=Je(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var n=e._pullAlgorithm();x(n,function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Ze(e))},function(t){rt(e,t)})}else e._pullAgain=!0}function Je(e){var t=e._controlledReadableStream;if(!1===at(e))return!1;if(!1===e._started)return!1;if(!0===jt(t)&&Q(t)>0)return!0;var n=it(e);return n>0}function et(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function tt(e){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(et(e),zt(t))}function nt(e,t){var n=e._controlledReadableStream;if(!0===jt(n)&&Q(n)>0)z(n,t,!1);else{var r=void 0;try{r=e._strategySizeAlgorithm(t)}catch(t){throw rt(e,t),t}try{te(e,t,r)}catch(t){throw rt(e,t),t}}Ze(e)}function rt(e,t){var n=e._controlledReadableStream;"readable"===n._state&&(ne(e),et(e),Qt(n,t))}function it(e){var t=e._controlledReadableStream,n=t._state;return"errored"===n?null:"closed"===n?0:e._strategyHWM-e._queueTotalSize}function at(e){var t=e._controlledReadableStream._state;return!1===e._closeRequested&&"readable"===t}function ot(e,t,n,r,i,a,o){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ne(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=o,t._strategyHWM=a,t._pullAlgorithm=r,t._cancelAlgorithm=i,e._readableStreamController=t;var s=n();x(b(s),function(){t._started=!0,Ze(t)},function(e){rt(t,e)})}function st(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}var lt=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},ct=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!1===dt(this))throw Tt("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(e){if(!1===dt(this))throw Tt("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,function(e,t){if(!1===s(t=Number(t)))throw new RangeError("bytesWritten must be a finite");wt(e,t)}(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!1===dt(this))throw Tt("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");e.buffer,function(e,t){var n=e._pendingPullIntos.peek();if(n.byteOffset+n.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(n.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");n.buffer=t.buffer,wt(e,t.byteLength)}(this._associatedReadableByteStreamController,e)},e}(),ut=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!1===ht(this))throw Bt("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var e=this._pendingPullIntos.peek(),t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),n=Object.create(ct.prototype);!function(e,t,n){e._associatedReadableByteStreamController=t,e._view=n}(n,this,t),this._byobRequest=n}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===ht(this))throw Bt("desiredSize");return kt(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===ht(this))throw Bt("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");!function(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){var n=e._pendingPullIntos.peek();if(n.bytesFilled>0){var r=new TypeError("Insufficient bytes to fill elements in the given buffer");throw St(e,r),r}}Ct(e),zt(t)}}(this)},e.prototype.enqueue=function(e){if(!1===ht(this))throw Bt("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(e))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");e.buffer,function(e,t){var n=e._controlledReadableByteStream,r=t.buffer,i=t.byteOffset,a=t.byteLength,o=d(r);if(!0===V(n))if(0===Q(n))At(e,o,i,a);else{var s=new Uint8Array(o,i,a);z(n,s,!1)}else!0===Pt(n)?(At(e,o,i,a),_t(e)):At(e,o,i,a);ft(e)}(this,e)},e.prototype.error=function(e){if(!1===ht(this))throw Bt("error");St(this,e)},e.prototype[N]=function(e){if(this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek();t.bytesFilled=0}ne(this);var n=this._cancelAlgorithm(e);return Ct(this),n},e.prototype[U]=function(){var e=this._controlledReadableByteStream;if(this._queueTotalSize>0){var t=this._queue.shift();this._queueTotalSize-=t.byteLength,yt(this);var n=void 0;try{n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(e){return _(e)}return b(B(n,!1,e._reader._forAuthorCode))}var r=this._autoAllocateChunkSize;if(void 0!==r){var i=void 0;try{i=new ArrayBuffer(r)}catch(e){return _(e)}var a={buffer:i,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(a)}var o=H(e);return ft(this),o},e}();function ht(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function dt(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function ft(e){var t=function(e){var t=e._controlledReadableByteStream;return"readable"===t._state&&(!0!==e._closeRequested&&(!1!==e._started&&(!0===V(t)&&Q(t)>0||(!0===Pt(t)&&Mt(t)>0||kt(e)>0))))}(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var n=e._pullAlgorithm();x(n,function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,ft(e))},function(t){St(e,t)})}else e._pullAgain=!0}function pt(e,t){var n=!1;"closed"===e._state&&(n=!0);var r=gt(t);"default"===t.readerType?z(e,r,n):function(e,t,n){var r=e._reader;r._readIntoRequests.shift()._resolve(B(t,n,r._forAuthorCode))}(e,r,n)}function gt(e){var t=e.bytesFilled,n=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/n)}function At(e,t,n,r){e._queue.push({buffer:t,byteOffset:n,byteLength:r}),e._queueTotalSize+=r}function mt(e,t){var n=t.elementSize,r=t.bytesFilled-t.bytesFilled%n,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),a=t.bytesFilled+i,o=a-a%n,s=i,l=!1;o>r&&(s=o-t.bytesFilled,l=!0);for(var c,u,h,d,f,p=e._queue;s>0;){var g=p.peek(),A=Math.min(s,g.byteLength),m=t.byteOffset+t.bytesFilled;c=t.buffer,u=m,h=g.buffer,d=g.byteOffset,f=A,new Uint8Array(c).set(new Uint8Array(h,d,f),u),g.byteLength===A?p.shift():(g.byteOffset+=A,g.byteLength-=A),e._queueTotalSize-=A,vt(e,A,t),s-=A}return l}function vt(e,t,n){bt(e),n.bytesFilled+=t}function yt(e){0===e._queueTotalSize&&!0===e._closeRequested?(Ct(e),zt(e._controlledReadableByteStream)):ft(e)}function bt(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function _t(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();!0===mt(e,t)&&(xt(e),pt(e._controlledReadableByteStream,t))}}function wt(e,t){var n=e._pendingPullIntos.peek(),r=e._controlledReadableByteStream;if("closed"===r._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function(e,t){t.buffer=d(t.buffer);var n=e._controlledReadableByteStream;if(!0===Pt(n))for(;Mt(n)>0;){var r=xt(e);pt(n,r)}}(e,n)}else!function(e,t,n){if(n.bytesFilled+t>n.byteLength)throw new RangeError("bytesWritten out of range");if(vt(e,t,n),!(n.bytesFilled<n.elementSize)){xt(e);var r=n.bytesFilled%n.elementSize;if(r>0){var i=n.byteOffset+n.bytesFilled,a=n.buffer.slice(i-r,i);At(e,a,0,a.byteLength)}n.buffer=d(n.buffer),n.bytesFilled-=r,pt(e._controlledReadableByteStream,n),_t(e)}}(e,t,n);ft(e)}function xt(e){var t=e._pendingPullIntos.shift();return bt(e),t}function Ct(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function St(e,t){var n=e._controlledReadableByteStream;"readable"===n._state&&(function(e){bt(e),e._pendingPullIntos=new T}(e),ne(e),Ct(e),Qt(n,t))}function kt(e){var t=e._controlledReadableByteStream,n=t._state;return"errored"===n?null:"closed"===n?0:e._strategyHWM-e._queueTotalSize}function Et(e,t,n){var r=Object.create(ut.prototype),i=c(t,"pull",0,[r]),a=c(t,"cancel",1,[]),o=t.autoAllocateChunkSize;if(void 0!==o&&(o=Number(o),!1===lt(o)||o<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(e,t,n,r,i,a,o){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=void 0,t._queue=t._queueTotalSize=void 0,ne(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=f(a),t._pullAlgorithm=r,t._cancelAlgorithm=i,t._autoAllocateChunkSize=o,t._pendingPullIntos=new T,e._readableStreamController=t,x(b(n()),function(){t._started=!0,ft(t)},function(e){St(t,e)})}(e,r,function(){return u(t,"start",[r])},i,a,n,o)}function Tt(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Bt(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function It(e){var t=y(function(t,n){var r={_resolve:t,_reject:n};e._reader._readIntoRequests.push(r)});return t}function Mt(e){return e._reader._readIntoRequests.length}function Pt(e){var t=e._reader;return void 0!==t&&!!Ft(t)}var Dt=function(){function e(e){if(!Ut(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===ht(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(jt(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");I(this,e),this._readIntoRequests=new T}return Object.defineProperty(e.prototype,"closed",{get:function(){return Ft(this)?this._closedPromise:_(Ot("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return Ft(this)?void 0===this._ownerReadableStream?_(D("cancel")):M(this,e):_(Ot("cancel"))},e.prototype.read=function(e){return Ft(this)?void 0===this._ownerReadableStream?_(D("read from")):ArrayBuffer.isView(e)?(e.buffer,0===e.byteLength?_(new TypeError("view must have non-zero byteLength")):function(e,t){var n=e._ownerReadableStream;return n._disturbed=!0,"errored"===n._state?_(n._storedError):function(e,t){var n=e._controlledReadableByteStream,r=1;t.constructor!==DataView&&(r=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a={buffer:d(t.buffer),byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:r,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(a),It(n);if("closed"===n._state){var o=new i(a.buffer,a.byteOffset,0);return b(B(o,!0,n._reader._forAuthorCode))}if(e._queueTotalSize>0){if(!0===mt(e,a)){var s=gt(a);return yt(e),b(B(s,!1,n._reader._forAuthorCode))}if(!0===e._closeRequested){var l=new TypeError("Insufficient bytes to fill elements in the given buffer");return St(e,l),_(l)}}e._pendingPullIntos.push(a);var c=It(n);return ft(e),c}(n._readableStreamController,t)}(this,e)):_(new TypeError("view must be an array buffer view")):_(Ot("read"))},e.prototype.releaseLock=function(){if(!Ft(this))throw Ot("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");P(this)}},e}();function Ft(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function Ot(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}var Lt=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Nt(this);var n=t.size,r=t.highWaterMark,i=e.type,a=String(i);if("bytes"===a){if(void 0!==n)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===r&&(r=0),r=f(r),Et(this,e,r)}else{if(void 0!==i)throw new RangeError("Invalid type is specified");var o=p(n);void 0===r&&(r=1),r=f(r),function(e,t,n,r){var i=Object.create(Ye.prototype),a=c(t,"pull",0,[i]),o=c(t,"cancel",1,[]);ot(e,i,function(){return u(t,"start",[i])},a,o,n,r)}(this,e,r,o)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===Ut(this))throw Vt("locked");return jt(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return!1===Ut(this)?_(Vt("cancel")):!0===jt(this)?_(new TypeError("Cannot cancel a stream that already has a reader")):Ht(this,e)},e.prototype.getReader=function(e){var t=(void 0===e?{}:e).mode;if(!1===Ut(this))throw Vt("getReader");if(void 0===t)return j(this,!0);if("byob"===(t=String(t)))return function(e,t){void 0===t&&(t=!1);var n=new Dt(e);return n._forAuthorCode=t,n}(this,!0);throw new RangeError("Invalid mode is specified")},e.prototype.pipeThrough=function(e,t){var n=e.writable,r=e.readable,i=void 0===t?{}:t,a=i.preventClose,o=i.preventAbort,s=i.preventCancel,l=i.signal;if(!1===Ut(this))throw Vt("pipeThrough");if(!1===le(n))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===Ut(r))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(a=Boolean(a),o=Boolean(o),s=Boolean(s),void 0!==l&&!Ge(l))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===jt(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===ce(n))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var c=Ke(this,n,a,o,s,l);return E(c),r},e.prototype.pipeTo=function(e,t){var n=void 0===t?{}:t,r=n.preventClose,i=n.preventAbort,a=n.preventCancel,o=n.signal;return!1===Ut(this)?_(Vt("pipeTo")):!1===le(e)?_(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),i=Boolean(i),a=Boolean(a),void 0===o||Ge(o)?!0===jt(this)?_(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===ce(e)?_(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Ke(this,e,r,i,a,o):_(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},e.prototype.tee=function(){if(!1===Ut(this))throw Vt("tee");var e=function(e,t){var n,r,i,a,s,l=j(e),c=!1,u=!1,h=!1,d=y(function(e){s=e});function f(){if(!0===c)return b(void 0);c=!0;var e=k(K(l),function(e){c=!1;var t=e.done;if(!0===t)return!1===u&&tt(i._readableStreamController),void(!1===h&&tt(a._readableStreamController));var n=e.value,r=n,o=n;!1===u&&nt(i._readableStreamController,r),!1===h&&nt(a._readableStreamController,o)});return E(e),b(void 0)}function p(){}return i=Rt(p,f,function(t){if(u=!0,n=t,!0===h){var i=o([n,r]),a=Ht(e,i);s(a)}return d}),a=Rt(p,f,function(t){if(h=!0,r=t,!0===u){var i=o([n,r]),a=Ht(e,i);s(a)}return d}),S(l._closedPromise,function(e){rt(i._readableStreamController,e),rt(a._readableStreamController,e)}),[i,a]}(this);return o(e)},e.prototype.getIterator=function(e){var t=(void 0===e?{}:e).preventCancel,n=void 0!==t&&t;if(!1===Ut(this))throw Vt("getIterator");return function(e,t){void 0===t&&(t=!1);var n=j(e),r=Object.create(X);return r._asyncIteratorReader=n,r._preventCancel=Boolean(t),r}(this,n)},e}();function Rt(e,t,n,r,i){void 0===r&&(r=1),void 0===i&&(i=function(){return 1});var a=Object.create(Lt.prototype);Nt(a);var o=Object.create(Ye.prototype);return ot(a,o,e,t,n,r,i),a}function Nt(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Ut(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function jt(e){return void 0!==e._reader}function Ht(e,t){if(e._disturbed=!0,"closed"===e._state)return b(void 0);if("errored"===e._state)return _(e._storedError);zt(e);var r=e._readableStreamController[N](t);return k(r,n)}function zt(e){e._state="closed";var t=e._reader;void 0!==t&&($(t)&&(t._readRequests.forEach(function(e){e._resolve(B(void 0,!0,t._forAuthorCode))}),t._readRequests=new T),R(t))}function Qt(e,t){e._state="errored",e._storedError=t;var n=e._reader;void 0!==n&&($(n)?(n._readRequests.forEach(function(e){e._reject(t)}),n._readRequests=new T):(n._readIntoRequests.forEach(function(e){e._reject(t)}),n._readIntoRequests=new T),L(n,t))}function Vt(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}"symbol"==typeof t.asyncIterator&&Object.defineProperty(Lt.prototype,t.asyncIterator,{value:Lt.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Gt=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(e){return e.byteLength},e}(),qt=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(){return 1},e}(),Wt=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={});var r=t.size,i=t.highWaterMark,a=n.size,o=n.highWaterMark,s=e.writableType;if(void 0!==s)throw new RangeError("Invalid writable type specified");var l=p(r);void 0===i&&(i=1),i=f(i);var d=e.readableType;if(void 0!==d)throw new RangeError("Invalid readable type specified");var g,A=p(a);void 0===o&&(o=0),o=f(o);var m=y(function(e){g=e});!function(e,t,n,r,i,a){function o(){return t}e._writable=function(e,t,n,r,i,a){void 0===i&&(i=1),void 0===a&&(a=function(){return 1});var o=Object.create(ae.prototype);se(o);var s=Object.create(Se.prototype);return ke(o,s,e,t,n,r,i,a),o}(o,function(t){return function(e,t){var n=e._transformStreamController;if(!0===e._backpressure){var r=e._backpressureChangePromise;return k(r,function(){var r=e._writable,i=r._state;if("erroring"===i)throw r._storedError;return nn(n,t)})}return nn(n,t)}(e,t)},function(){return function(e){var t=e._readable,n=e._transformStreamController,r=n._flushAlgorithm();return en(n),k(r,function(){if("errored"===t._state)throw t._storedError;var e=t._readableStreamController;!0===at(e)&&tt(e)},function(n){throw Kt(e,n),t._storedError})}(e)},function(t){return function(e,t){return Kt(e,t),b(void 0)}(e,t)},n,r),e._readable=Rt(o,function(){return function(e){return Xt(e,!1),e._backpressureChangePromise}(e)},function(t){return Yt(e,t),b(void 0)},i,a),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Xt(e,!0),e._transformStreamController=void 0}(this,m,i,l,o,A),function(e,t){var n=Object.create(Zt.prototype),r=function(e){try{return tn(n,e),b(void 0)}catch(e){return _(e)}},i=t.transform;if(void 0!==i){if("function"!=typeof i)throw new TypeError("transform is not a method");r=function(e){return h(i,t,[e,n])}}var a=c(t,"flush",0,[n]);!function(e,t,n,r){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=n,t._flushAlgorithm=r}(e,n,r,a)}(this,e);var v=u(e,"start",[this._transformStreamController]);g(v)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!1===$t(this))throw an("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!1===$t(this))throw an("writable");return this._writable},enumerable:!0,configurable:!0}),e}();function $t(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function Kt(e,t){rt(e._readable._readableStreamController,t),Yt(e,t)}function Yt(e,t){en(e._transformStreamController),Ie(e._writable._writableStreamController,t),!0===e._backpressure&&Xt(e,!1)}function Xt(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=y(function(t){e._backpressureChangePromise_resolve=t}),e._backpressure=t}var Zt=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Jt(this))throw rn("desiredSize");var e=this._controlledTransformStream._readable._readableStreamController;return it(e)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e){if(!1===Jt(this))throw rn("enqueue");tn(this,e)},e.prototype.error=function(e){if(!1===Jt(this))throw rn("error");var t;t=e,Kt(this._controlledTransformStream,t)},e.prototype.terminate=function(){if(!1===Jt(this))throw rn("terminate");!function(e){var t=e._controlledTransformStream,n=t._readable._readableStreamController;!0===at(n)&&tt(n);var r=new TypeError("TransformStream terminated");Yt(t,r)}(this)},e}();function Jt(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function en(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function tn(e,t){var n=e._controlledTransformStream,r=n._readable._readableStreamController;if(!1===at(r))throw new TypeError("Readable side is not in a state that permits enqueue");try{nt(r,t)}catch(e){throw Yt(n,e),n._readable._storedError}var i=function(e){return!0!==Je(e)}(r);i!==n._backpressure&&Xt(n,!0)}function nn(e,t){var n=e._transformAlgorithm(t);return k(n,void 0,function(t){throw Kt(e._controlledTransformStream,t),t})}function rn(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function an(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}e.ByteLengthQueuingStrategy=Gt,e.CountQueuingStrategy=qt,e.ReadableStream=Lt,e.TransformStream=Wt,e.WritableStream=ae,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){n(145),n(114),n(77),n(116);var r=n(43);e.exports=r.Map},function(e,t,n){"use strict";var r=n(146),i=n(150);e.exports=r("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,n){"use strict";var r=n(10),i=n(11),a=n(52),o=n(29),s=n(147),l=n(124),c=n(123),u=n(22),h=n(14),d=n(97),f=n(85),p=n(149);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),A=-1!==e.indexOf("Weak"),m=g?"set":"add",v=i[e],y=v&&v.prototype,b=v,_={},w=function(e){var t=y[e];o(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(A&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return A&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(A&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof v||!(A||y.forEach&&!h(function(){(new v).entries().next()}))))b=n.getConstructor(t,e,g,m),s.REQUIRED=!0;else if(a(e,!0)){var x=new b,C=x[m](A?{}:-0,1)!=x,S=h(function(){x.has(1)}),k=d(function(e){new v(e)}),E=!A&&h(function(){for(var e=new v,t=5;t--;)e[m](t,t);return!e.has(-0)});k||((b=t(function(t,n){c(t,b,e);var r=p(new v,t,b);return void 0!=n&&l(n,r[m],r,g),r})).prototype=y,y.constructor=b),(S||E)&&(w("delete"),w("has"),g&&w("get")),(E||C)&&w(m),A&&y.clear&&delete y.clear}return _[e]=b,r({global:!0,forced:b!=v},_),f(b,e),A||n.setStrong(b,e,g),b}},function(e,t,n){var r=n(39),i=n(22),a=n(23),o=n(27).f,s=n(38),l=n(148),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){var r=n(14);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var r=n(22),i=n(87);e.exports=function(e,t,n){var a,o;return i&&"function"==typeof(a=t.constructor)&&a!==n&&r(o=a.prototype)&&o!==n.prototype&&i(e,o),e}},function(e,t,n){"use strict";var r=n(27).f,i=n(71),a=n(121),o=n(62),s=n(123),l=n(124),c=n(79),u=n(122),h=n(13),d=n(147).fastKey,f=n(33),p=f.set,g=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],e,n)}),f=g(t),A=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 A(this,0===e?0:e,t)}}:{add:function(e){return A(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=g(t),a=g(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){n(152),n(114),n(77),n(116);var r=n(43);e.exports=r.Set},function(e,t,n){"use strict";var r=n(146),i=n(150);e.exports=r("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,n){n(114),n(154),n(116);var r=n(43);e.exports=r.WeakMap},function(e,t,n){"use strict";var r,i=n(11),a=n(121),o=n(147),s=n(146),l=n(155),c=n(22),u=n(33).enforce,h=n(34),d=!i.ActiveXObject&&"ActiveXObject"in i,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",p,l);if(h&&d){r=l.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var A=g.prototype,m=A.delete,v=A.has,y=A.get,b=A.set;a(A,{delete:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new r),m.call(this,e)||t.frozen.delete(e)}return m.call(this,e)},has:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new r),v.call(this,e)||t.frozen.has(e)}return v.call(this,e)},get:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new r),v.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(c(e)&&!f(e)){var n=u(this);n.frozen||(n.frozen=new r),v.call(this,e)?b.call(this,e,t):n.frozen.set(e,t)}else b.call(this,e,t);return this}})}},function(e,t,n){"use strict";var r=n(121),i=n(147).getWeakData,a=n(28),o=n(22),s=n(123),l=n(124),c=n(156),u=n(23),h=n(33),d=h.set,f=h.getterFor,p=c.find,g=c.findIndex,A=0,m=function(e){return e.frozen||(e.frozen=new v)},v=function(){this.entries=[]},y=function(e,t){return p(e.entries,function(e){return e[0]===t})};v.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var h=e(function(e,r){s(e,h,t),d(e,{type:t,id:A++,frozen:void 0}),void 0!=r&&l(r,e[c],e,n)}),p=f(t),g=function(e,t,n){var r=p(e),o=i(a(t),!0);return!0===o?m(r).set(t,n):o[r.id]=n,e};return r(h.prototype,{delete:function(e){var t=p(this);if(!o(e))return!1;var n=i(e);return!0===n?m(t).delete(e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!o(e))return!1;var n=i(e);return!0===n?m(t).has(e):n&&u(n,t.id)}}),r(h.prototype,n?{get:function(e){var t=p(this);if(o(e)){var n=i(e);return!0===n?m(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),h}}},function(e,t,n){var r=n(62),i=n(18),a=n(83),o=n(47),s=n(157),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,h=6==e,d=5==e||h;return function(f,p,g,A){for(var m,v,y=a(f),b=i(y),_=r(p,g,3),w=o(b.length),x=0,C=A||s,S=t?C(f,w):n?C(f,0):void 0;w>x;x++)if((d||x in b)&&(v=_(m=b[x],x,y),e))if(t)S[x]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:l.call(S,m)}else if(u)return!1;return h?-1:c||u?u:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,n){var r=n(22),i=n(158),a=n(57)("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){var r=n(19);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){n(114),n(160),n(116);var r=n(43);e.exports=r.WeakSet},function(e,t,n){"use strict";n(146)("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(155))},function(e,t,n){n(162);var r=n(61);e.exports=r("String","codePointAt")},function(e,t,n){"use strict";var r=n(10),i=n(78).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(e,t,n){n(164);var r=n(43);e.exports=r.String.fromCodePoint},function(e,t,n){var r=n(10),i=n(49),a=String.fromCharCode,o=String.fromCodePoint;r({target:"String",stat:!0,forced:!!o&&1!=o.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,o=0;r>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){n(166),n(114),n(168),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187);var r=n(43);e.exports=r.Symbol},function(e,t,n){"use strict";var r=n(10),i=n(14),a=n(158),o=n(22),s=n(83),l=n(47),c=n(93),u=n(157),h=n(167),d=n(57),f=n(133),p=d("isConcatSpreadable"),g=f>=51||!i(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),A=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:!g||!A},{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){var r=n(14),i=n(57),a=n(133),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){"use strict";var r=n(10),i=n(11),a=n(42),o=n(37),s=n(13),l=n(58),c=n(59),u=n(14),h=n(23),d=n(158),f=n(22),p=n(28),g=n(83),A=n(17),m=n(21),v=n(16),y=n(71),b=n(73),_=n(44),w=n(169),x=n(51),C=n(12),S=n(27),k=n(15),E=n(26),T=n(29),B=n(36),I=n(35),M=n(39),P=n(38),D=n(57),F=n(170),O=n(171),L=n(85),R=n(33),N=n(156).forEach,U=I("hidden"),j=D("toPrimitive"),H=R.set,z=R.getterFor("Symbol"),Q=Object.prototype,V=i.Symbol,G=a("JSON","stringify"),q=C.f,W=S.f,$=w.f,K=k.f,Y=B("symbols"),X=B("op-symbols"),Z=B("string-to-symbol-registry"),J=B("symbol-to-string-registry"),ee=B("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&u(function(){return 7!=y(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=q(Q,t);r&&delete Q[t],W(e,t,n),r&&e!==Q&&W(Q,t,r)}:W,ie=function(e,t){var n=Y[e]=y(V.prototype);return H(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===Q&&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)||W(e,U,v(1,{})),e[U][r]=!0),re(e,r,n)):W(e,r,n)},se=function(e,t){p(e);var n=A(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===Q&&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=A(e),r=m(t,!0);if(n!==Q||!h(Y,r)||h(X,r)){var i=q(n,r);return!i||!h(Y,r)||h(n,U)&&n[U][r]||(i.enumerable=!0),i}},ue=function(e){var t=$(A(e)),n=[];return N(t,function(e){h(Y,e)||h(M,e)||n.push(e)}),n},he=function(e){var t=e===Q,n=$(t?X:A(e)),r=[];return N(n,function(e){!h(Y,e)||t&&!h(Q,e)||r.push(Y[e])}),r};(l||(T((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=P(e),n=function(e){this===Q&&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(Q,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",function(){return z(this).tag}),T(V,"withoutSetter",function(e){return ie(P(e),e)}),k.f=le,S.f=oe,C.f=ce,_.f=w.f=ue,x.f=he,F.f=function(e){return ie(D(e),e)},s&&(W(V.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),o||T(Q,"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(Z,t))return Z[t];var n=V(t);return Z[t]=n,J[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(h(J,e))return J[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(){x.f(1)})},{getOwnPropertySymbols:function(e){return x.f(g(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[j]||E(V.prototype,j,V.prototype.valueOf),L(V,"Symbol"),M[U]=!0},function(e,t,n){var r=n(17),i=n(44).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){var r=n(57);t.f=r},function(e,t,n){var r=n(43),i=n(23),a=n(170),o=n(27).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},function(e,t,n){n(171)("asyncIterator")},function(e,t,n){"use strict";var r=n(10),i=n(13),a=n(11),o=n(23),s=n(22),l=n(27).f,c=n(40),u=a.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var h={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new u(e):void 0===e?u():u(e);return""===e&&(h[t]=!0),t};c(d,u);var f=d.prototype=u.prototype;f.constructor=d;var p=f.toString,g="Symbol(test)"==String(u("test")),A=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(o(h,e))return"";var n=g?t.slice(7,-1):t.replace(A,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},function(e,t,n){n(171)("hasInstance")},function(e,t,n){n(171)("isConcatSpreadable")},function(e,t,n){n(171)("iterator")},function(e,t,n){n(171)("match")},function(e,t,n){n(171)("matchAll")},function(e,t,n){n(171)("replace")},function(e,t,n){n(171)("search")},function(e,t,n){n(171)("species")},function(e,t,n){n(171)("split")},function(e,t,n){n(171)("toPrimitive")},function(e,t,n){n(171)("toStringTag")},function(e,t,n){n(171)("unscopables")},function(e,t,n){n(85)(Math,"Math",!0)},function(e,t,n){var r=n(11);n(85)(r.JSON,"JSON",!0)},function(e,t,n){n(189);var r=n(61);e.exports=r("String","padStart")},function(e,t,n){"use strict";var r=n(10),i=n(190).start;r({target:"String",proto:!0,forced:n(192)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(47),i=n(191),a=n(20),o=Math.ceil,s=function(e){return function(t,n,s){var l,c,u=String(a(t)),h=u.length,d=void 0===s?" ":String(s),f=r(n);return f<=h||""==d?u:(l=f-h,(c=i.call(d,o(l/d.length))).length>l&&(c=c.slice(0,l)),e?u+c:c+u)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,n){"use strict";var r=n(48),i=n(20);e.exports="".repeat||function(e){var t=String(i(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},function(e,t,n){var r=n(127);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){n(194);var r=n(61);e.exports=r("String","padEnd")},function(e,t,n){"use strict";var r=n(10),i=n(190).end;r({target:"String",proto:!0,forced:n(192)},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(196);var r=n(43);e.exports=r.Object.values},function(e,t,n){var r=n(10),i=n(197).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,n){var r=n(13),i=n(73),a=n(17),o=n(15).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(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 _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(199),_api_compatibility=__w_pdfjs_require__(200),_canvas=__w_pdfjs_require__(201),_worker_options=__w_pdfjs_require__(203),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(204),_metadata=__w_pdfjs_require__(205),_transport_stream=__w_pdfjs_require__(207),_webgl=__w_pdfjs_require__(208);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function asyncGeneratorStep(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){asyncGeneratorStep(a,r,i,o,s,"next",e)}function s(e){asyncGeneratorStep(a,r,i,o,s,"throw",e)}o(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){"@babel/helpers - typeof";return(_typeof="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 DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream;function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){var t,n=new PDFDocumentLoadingTask;if("string"==typeof e)t={url:e};else if((0,_util.isArrayBuffer)(e))t={data:e};else if(e instanceof PDFDataRangeTransport)t={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");t=e}var r=Object.create(null),i=null,a=null;for(var o in t)if("url"!==o||"undefined"==typeof window)if("range"!==o)if("worker"!==o)if("data"!==o||t[o]instanceof Uint8Array)r[o]=t[o];else{var s=t[o];if("string"==typeof s)r[o]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");r[o]=new Uint8Array(s)}else r[o]=new Uint8Array(s)}else a=t[o];else i=t[o];else r[o]=new URL(t[o],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){var l={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};a=l.port?PDFWorker.fromPort(l):new PDFWorker(l),n._worker=a}var c=n.docId;return a.promise.then(function(){if(n.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(a,r,i,c),t=new Promise(function(e){var 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,t]).then(function(e){var t=_slicedToArray(e,2),i=t[0],o=t[1];if(n.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(c,i,a.port);s.postMessageTransfers=a.postMessageTransfers;var l=new WorkerTransport(s,n,o,r);n._transport=l,s.send("Ready",null)})}).catch(n._capability.reject),n}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}))}var PDFDocumentLoadingTask=(nextDocumentId=0,function(){function e(){_classCallCheck(this,e),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+nextDocumentId++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(e,[{key:"destroy",value:function(){var e=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)})}},{key:"promise",get:function(){return this._capability.promise}}]),e}()),nextDocumentId,PDFDataRangeTransport=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.length=t,this.initialData=n,this.progressiveDone=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var n,r=_createForOfIteratorHelper(this._rangeListeners);try{for(r.s();!(n=r.n()).done;){(0,n.value)(e,t)}}catch(e){r.e(e)}finally{r.f()}}},{key:"onDataProgress",value:function(e,t){var n=this;this._readyCapability.promise.then(function(){var r,i=_createForOfIteratorHelper(n._progressListeners);try{for(i.s();!(r=i.n()).done;){(0,r.value)(e,t)}}catch(e){i.e(e)}finally{i.f()}})}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then(function(){var n,r=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(r.s();!(n=r.n()).done;){(0,n.value)(e)}}catch(e){r.e(e)}finally{r.f()}})}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then(function(){var t,n=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(n.s();!(t=n.n()).done;){(0,t.value)()}}catch(e){n.e(e)}finally{n.f()}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,n){_classCallCheck(this,e),this._pdfInfo=t,this._transport=n}return _createClass(e,[{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then(function(e){return e&&e.dest?e.dest:null})}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=n,this._transport=r,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(e,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,n=e.rotation,r=void 0===n?this.rotate:n,i=e.offsetX,a=void 0===i?0:i,o=e.offsetY,s=void 0===o?0:o,l=e.dontFlip,c=void 0!==l&&l;return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:r,offsetX:a,offsetY:s,dontFlip:c})}},{key:"getAnnotations",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intent,t=void 0===e?null:e;return this.annotationsPromise&&this.annotationsIntent===t||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,t),this.annotationsIntent=t),this.annotationsPromise}},{key:"render",value:function(e){var t=this,n=e.canvasContext,r=e.viewport,i=e.intent,a=void 0===i?"display":i,o=e.enableWebGL,s=void 0!==o&&o,l=e.renderInteractiveForms,c=void 0!==l&&l,u=e.transform,h=void 0===u?null:u,d=e.imageLayer,f=void 0===d?null:d,p=e.canvasFactory,g=void 0===p?null:p,A=e.background,m=void 0===A?null:A;this._stats&&this._stats.time("Overall");var v="print"===a?"print":"display";this.pendingCleanup=!1,this.intentStates[v]||(this.intentStates[v]=Object.create(null));var y=this.intentStates[v];y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);var b=g||new _display_utils.DOMCanvasFactory,_=new _webgl.WebGLContext({enable:s});y.displayReadyCapability||(y.displayReadyCapability=(0,_util.createPromiseCapability)(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:v,renderInteractiveForms:!0===c}));var w=function(e){var n=y.renderTasks.indexOf(x);n>=0&&y.renderTasks.splice(n,1),(t.cleanupAfterRender||"print"===v)&&(t.pendingCleanup=!0),t._tryCleanup(),e?(x.capability.reject(e),t._abortOperatorList({intentState:y,reason:e})):x.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},x=new InternalRenderTask({callback:w,params:{canvasContext:n,viewport:r,transform:h,imageLayer:f,background:m},objs:this.objs,commonObjs:this.commonObjs,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:b,webGLContext:_,useRequestAnimationFrame:"print"!==v,pdfBug:this._pdfBug});y.renderTasks||(y.renderTasks=[]),y.renderTasks.push(x);var C=x.task;return y.displayReadyCapability.promise.then(function(e){t.pendingCleanup?w():(t._stats&&t._stats.time("Rendering"),x.initializeGraphics(e),x.operatorListChanged())}).catch(w),C}},{key:"getOperatorList",value:function(){this.intentStates.oplist||(this.intentStates.oplist=Object.create(null));var e,t=this.intentStates.oplist;return t.opListReadCapability||((e={}).operatorListChanged=function(){if(t.operatorList.lastChunk){t.opListReadCapability.resolve(t.operatorList);var n=t.renderTasks.indexOf(e);n>=0&&t.renderTasks.splice(n,1)}},t.opListReadCapability=(0,_util.createPromiseCapability)(),t.renderTasks=[],t.renderTasks.push(e),t.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:"oplist"})),t.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,n=void 0!==t&&t,r=e.disableCombineTextItems,i=void 0!==r&&r;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===n,combineTextItems:!0!==i},{highWaterMark:100,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.streamTextContent(e);return new Promise(function(e,n){var r=t.getReader(),i={items:[],styles:Object.create(null)};!function t(){r.read().then(function(n){var r,a=n.value;n.done?e(i):(Object.assign(i.styles,a.styles),(r=i.items).push.apply(r,_toConsumableArray(a.items)),t())},n)}()})}},{key:"_destroy",value:function(){var e=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var t=[];return Object.keys(this.intentStates).forEach(function(n){var r=e.intentStates[n];e._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==n&&r.renderTasks.forEach(function(e){var n=e.capability.promise.catch(function(){});t.push(n),e.cancel()})}),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some(function(t){var n=e.intentStates[t];return 0!==n.renderTasks.length||!n.operatorList.lastChunk}))&&(Object.keys(this.intentStates).forEach(function(t){delete e.intentStates[t]}),this.objs.clear(),this.annotationsPromise=null,t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}},{key:"_startRenderPage",value:function(e,t){var n=this.intentStates[t];n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var 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(var i=0;i<t.renderTasks.length;i++)t.renderTasks[i].operatorListChanged();e.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(e){var t=this;(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var n=this._transport.messageHandler.sendWithStream("GetOperatorList",e).getReader(),r=this.intentStates[e.intent];r.streamReader=n;!function e(){n.read().then(function(n){var i=n.value;n.done?r.streamReader=null:t._transport.destroyed||(t._renderPageChunk(i,r),e())},function(e){if(r.streamReader=null,!t._transport.destroyed){if(r.operatorList){r.operatorList.lastChunk=!0;for(var n=0;n<r.renderTasks.length;n++)r.renderTasks[n].operatorListChanged();t._tryCleanup()}if(r.displayReadyCapability)r.displayReadyCapability.reject(e);else{if(!r.opListReadCapability)throw e;r.opListReadCapability.reject(e)}}})}()}},{key:"_abortOperatorList",value:function(e){var t=this,n=e.intentState,r=e.reason,i=e.force,a=void 0!==i&&i;if((0,_util.assert)(r instanceof Error||"object"===_typeof(r)&&null!==r,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),n.streamReader){if(!a){if(0!==n.renderTasks.length)return;if(r instanceof _display_utils.RenderingCancelledException)return void(n.streamReaderCancelTimeout=setTimeout(function(){t._abortOperatorList({intentState:n,reason:r,force:!0}),n.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}n.streamReader.cancel(new _util.AbortException(r&&r.message)),n.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some(function(e){return t.intentStates[e]===n&&(delete t.intentStates[e],!0)}),this.cleanup())}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),e}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return _createClass(e,[{key:"postMessage",value:function(e,t){var n=this;if(this._defer){var r=new WeakMap,i={data:function e(n){if("object"!==_typeof(n)||null===n)return n;if(r.has(n))return r.get(n);var i,a;if((i=n.buffer)&&(0,_util.isArrayBuffer)(i))return a=t&&t.includes(i)?new n.constructor(i,n.byteOffset,n.byteLength):new n.constructor(n),r.set(n,a),a;for(var o in a=Array.isArray(n)?[]:{},r.set(n,a),n){for(var s=void 0,l=n;!(s=Object.getOwnPropertyDescriptor(l,o));)l=Object.getPrototypeOf(l);if(void 0!==s.value)if("function"!=typeof s.value)a[o]=e(s.value);else if(n.hasOwnProperty&&n.hasOwnProperty(o))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(n[o]))}return a}(e)};this._deferred.then(function(){n._listeners.forEach(function(e){e.call(n,i)})})}else this._listeners.forEach(function(t){t.call(n,{data:e})})}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this._listeners.indexOf(t);this._listeners.splice(n,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"==typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(e){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref10=_asyncToGenerator(_regenerator.default.mark(function _callee(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}},_callee)}));return function(){return _ref10.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}var PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.name,r=void 0===n?null:n,i=t.port,a=void 0===i?null:i,o=t.verbosity,s=void 0===o?(0,_util.getVerbosityLevel)():o;if(_classCallCheck(this,e),a&&pdfWorkerPorts.has(a))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=r,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,a)return pdfWorkerPorts.set(a,this),void this._initializeFromPort(a);this._initialize()}return _createClass(e,[{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var n=new Worker(t),r=new _message_handler.MessageHandler("main","worker",n),i=function(){n.removeEventListener("error",a),r.destroy(),n.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},a=function(){e._webWorker||i()};n.addEventListener("error",a),r.on("test",function(t){n.removeEventListener("error",a),e.destroyed?i():t?(e._messageHandler=r,e._port=n,e._webWorker=n,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),r.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),r.destroy(),n.terminate())}),r.on("ready",function(t){if(n.removeEventListener("error",a),e.destroyed)i();else try{o()}catch(t){e._setupFakeWorker()}});var o=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{r.send("test",t,[t.buffer])}catch(e){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,r.send("test",t)}};return void o()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var n=new LoopbackPort;e._port=n;var r="fake"+nextFakeWorkerId++,i=new _message_handler.MessageHandler(r+"_worker",r,n);t.setup(i,n);var a=new _message_handler.MessageHandler(r,r+"_worker",n);e._messageHandler=a,e._readyCapability.resolve(),a.send("configure",{verbosity:e.verbosity})}}).catch(function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))})}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new e(t)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),e}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function e(t,n,r,i){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=n,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:n.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=i,this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(e,[{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach(function(e){e&&t.push(e._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;var n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then(function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,n=this.loadingTask;t.on("GetReader",function(t,n){(0,_util.assert)(e._networkStream,"GetReader - no `IPDFStream` instance available."),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},n.onPull=function(){e._fullReader.read().then(function(e){var t=e.value;e.done?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(t),"GetReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(t),1,[t]))}).catch(function(e){n.error(e)})},n.onCancel=function(t){e._fullReader.cancel(t)}}),t.on("ReaderHeadersReady",function(t){var r=(0,_util.createPromiseCapability)(),i=e._fullReader;return i.headersReady.then(function(){i.isStreamingSupported&&i.isRangeSupported||(e._lastProgress&&n.onProgress&&n.onProgress(e._lastProgress),i.onProgress=function(e){n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})}),r.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})},r.reject),r.promise}),t.on("GetRangeReader",function(t,n){(0,_util.assert)(e._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var r=e._networkStream.getRangeReader(t.begin,t.end);r?(n.onPull=function(){r.read().then(function(e){var t=e.value;e.done?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(t),"GetRangeReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(t),1,[t]))}).catch(function(e){n.error(e)})},n.onCancel=function(e){r.cancel(e)}):n.close()}),t.on("GetDoc",function(t){var r=t.pdfInfo;e._numPages=r.numPages,n._capability.resolve(new PDFDocumentProxy(r,e))}),t.on("DocException",function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details)}n._capability.reject(t)}),t.on("PasswordRequest",function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),n.onPassword){try{n.onPassword(function(t){e._passwordCapability.resolve({password:t})},t.code)}catch(t){e._passwordCapability.reject(t)}}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise}),t.on("DataLoaded",function(t){n.onProgress&&n.onProgress({loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)}),t.on("StartRenderPage",function(t){e.destroyed||e.pageCache[t.pageIndex]._startRenderPage(t.transparency,t.intent)}),t.on("commonobj",function(n){if(!e.destroyed){var r=_slicedToArray(n,3),i=r[0],a=r[1],o=r[2];if(!e.commonObjs.has(i))switch(a){case"Font":var s=e._params;if("error"in o){var l=o.error;(0,_util.warn)("Error during font loading: ".concat(l)),e.commonObjs.resolve(i,l);break}var c=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(c={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var u=new _font_loader.FontFaceObject(o,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:c});e.fontLoader.bind(u).catch(function(e){return t.sendWithPromise("FontFallback",{id:i})}).finally(function(){!s.fontExtraProperties&&u.data&&(u.data=null),e.commonObjs.resolve(i,u)});break;case"FontPath":case"FontType3Res":case"Image":e.commonObjs.resolve(i,o);break;default:throw new Error("Got unknown common object type ".concat(a))}}}),t.on("obj",function(t){if(!e.destroyed){var n=_slicedToArray(t,4),r=n[0],i=n[1],a=n[2],o=n[3],s=e.pageCache[i];if(!s.objs.has(r))switch(a){case"Image":s.objs.resolve(r,o);o&&"data"in o&&o.data.length>8e6&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(a))}}}),t.on("DocProgress",function(t){e.destroyed||n.onProgress&&n.onProgress({loaded:t.loaded,total:t.total})}),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("FetchBuiltInCMap",function(t,n){if(e.destroyed)n.error(new Error("Worker was destroyed"));else{var r=!1;n.onPull=function(){r?n.close():(r=!0,e.CMapReaderFactory.fetch(t).then(function(e){n.enqueue(e,1,[e.cMapData.buffer])}).catch(function(e){n.error(e)}))}}})}},{key:"_onUnsupportedFeature",value:function(e){var t=e.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(t)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));var n=e-1;if(n in this.pagePromises)return this.pagePromises[n];var r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(function(e){if(t.destroyed)throw new Error("Transport destroyed");var r=new PDFPageProxy(n,e,t,t._params.pdfBug);return t.pageCache[n]=r,r});return this.pagePromises[n]=r,r}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch(function(e){return Promise.reject(new Error(e))})}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(t){return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}})}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=this;return this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var t=0,n=e.pageCache.length;t<n;t++){var r=e.pageCache[t];if(r)if(!r.cleanup())throw new Error("startCleanup: Page ".concat(t+1," is currently rendering."))}e.commonObjs.clear(),e.fontLoader.clear()})}},{key:"loadingParams",get:function(){var e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableFontFace:e.disableFontFace})}}]),e}(),PDFObjects=function(){function e(){_classCallCheck(this,e),this._objs=Object.create(null)}return _createClass(e,[{key:"_ensureObj",value:function(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var n=this._objs[e];if(!n||!n.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,t){var n=this._ensureObj(e);n.resolved=!0,n.data=t,n.capability.resolve(t)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),e}(),RenderTask=function(){function e(t){_classCallCheck(this,e),this._internalRenderTask=t,this.onContinue=null}return _createClass(e,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),e}(),InternalRenderTask=(canvasInRendering=new WeakSet,function(){function e(t){var n=t.callback,r=t.params,i=t.objs,a=t.commonObjs,o=t.operatorList,s=t.pageIndex,l=t.canvasFactory,c=t.webGLContext,u=t.useRequestAnimationFrame,h=void 0!==u&&u,d=t.pdfBug,f=void 0!==d&&d;_classCallCheck(this,e),this.callback=n,this.params=r,this.objs=i,this.commonObjs=a,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=s,this.canvasFactory=l,this.webGLContext=c,this._pdfBug=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvasContext.canvas}return _createClass(e,[{key:"initializeGraphics",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(canvasInRendering.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.");canvasInRendering.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var t=this.params,n=t.canvasContext,r=t.viewport,i=t.transform,a=t.imageLayer,o=t.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,a),this.gfx.beginDrawing({transform:i,viewport:r,transparency:e,background:o}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&canvasInRendering.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){e._nextBound().catch(e.cancel.bind(e))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:(t=_asyncToGenerator(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cancelled){e.next=2;break}return e.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&canvasInRendering.delete(this._canvas),this.callback()));case 4:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})}]),e;var t}()),canvasInRendering,version="2.5.207";exports.version=version;var 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,i=(r=n(2))&&r.__esModule?r:{default:r},a=n(5);function o(e){"@babel/helpers - typeof";return(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})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===o(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 c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}var p,g=function(){function e(t){var n=t.docId,r=t.onUnsupportedFeature;h(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseFontLoader."),this.docId=n,this._onUnsupportedFeature=r,this.nativeFontFaces=[],this.styleElement=null}return f(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||((t=this.styleElement=document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(t));var n=t.sheet;n.insertRule(e,n.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach(function(e){document.fonts.delete(e)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var e,t=(e=i.default.mark(function e(t){var n,r,o=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.attached&&!t.missingFile){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!this.isFontLoadingAPISupported){e.next=19;break}if(!(n=t.createNativeFontFace())){e.next=18;break}return this.addNativeFontFace(n),e.prev=7,e.next=10,n.loaded;case 10:e.next=18;break;case 12:throw e.prev=12,e.t0=e.catch(7),this._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,a.warn)("Failed to load font '".concat(n.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 18:return e.abrupt("return");case 19:if(!(r=t.createFontFaceRule())){e.next=26;break}if(this.insertRule(r),!this.isSyncFontLoadingSupported){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,new Promise(function(e){var n=o._queueLoadingCallback(e);o._prepareFontLoadEvent([r],[t],n)});case 26:case"end":return e.stop()}},e,this,[[7,12]])}),function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){u(a,r,i,o,s,"next",e)}function s(e){u(a,r,i,o,s,"throw",e)}o(void 0)})});return function(e){return t.apply(this,arguments)}}()},{key:"_queueLoadingCallback",value:function(e){(0,a.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(e,t,n){(0,a.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var e="undefined"!=typeof document&&!!document.fonts;return(0,a.shadow)(this,"isFontLoadingAPISupported",e)}},{key:"isSyncFontLoadingSupported",get:function(){(0,a.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,a.unreachable)("Abstract method `_loadTestFont`.")}}]),e}();t.FontLoader=p,t.FontLoader=p=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&&s(e,t)}(n,g);var t=l(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).loadingContext={requests:[],nextRequestId:0},r.loadTestFontId=0,r}return f(n,[{key:"_queueLoadingCallback",value:function(e){var t=this.loadingContext,n={id:"pdfjs-font-loading-".concat(t.nextRequestId++),done:!1,complete:function(){for((0,a.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){var e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(e,t,n){function r(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}var o,s,l=document.createElement("canvas");l.width=1,l.height=1;var c=l.getContext("2d"),u=0;var h="lt".concat(Date.now()).concat(this.loadTestFontId++),d=this._loadTestFont,f=r(d=i(d,976,h.length,h),16);for(o=0,s=h.length-3;o<s;o+=4)f=f-1482184792+r(h,o)|0;o<h.length&&(f=f-1482184792+r(h+"XXX",o)|0),d=i(d,16,4,(0,a.string32)(f));var p="url(data:font/opentype;base64,".concat(btoa(d),");"),g='@font-face {font-family:"'.concat(h,'";src:').concat(p,"}");this.insertRule(g);var A=[];for(o=0,s=t.length;o<s;o++)A.push(t[o].loadedName);A.push(h);var m=document.createElement("div");for(m.style.visibility="hidden",m.style.width=m.style.height="10px",m.style.position="absolute",m.style.top=m.style.left="0px",o=0,s=A.length;o<s;++o){var v=document.createElement("span");v.textContent="Hi",v.style.fontFamily=A[o],m.appendChild(v)}document.body.appendChild(m),function e(t,n){if(++u>30)return(0,a.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(m),n.complete()})}},{key:"isSyncFontLoadingSupported",get:function(){var e=!1;if("undefined"==typeof navigator)e=!0;else{var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,a.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_loadTestFont",get:function(){return(0,a.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}}]),n}();var A=function(){function e(t,n){var r=n.isEvalSupported,i=void 0===r||r,a=n.disableFontFace,o=void 0!==a&&a,s=n.ignoreErrors,l=void 0!==s&&s,c=n.onUnsupportedFeature,u=void 0===c?null:c,d=n.fontRegistry,f=void 0===d?null:d;for(var p in h(this,e),this.compiledGlyphs=Object.create(null),t)this[p]=t[p];this.isEvalSupported=!1!==i,this.disableFontFace=!0===o,this.ignoreErrors=!0===l,this._onUnsupportedFeature=u,this.fontRegistry=f}return f(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e=(0,a.bytesToString)(new Uint8Array(this.data)),t="url(data:".concat(this.mimetype,";base64,").concat(btoa(e),");"),n='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var n,r;try{n=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,a.warn)('getPathGenerator - ignoring character: "'.concat(e,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&a.IsEvalSupportedCached.value){for(var i,o="",s=0,l=n.length;s<l;s++)i=void 0!==(r=n[s]).args?r.args.join(","):"",o+="c."+r.cmd+"("+i+");\n";return this.compiledGlyphs[t]=new Function("c","size",o)}return this.compiledGlyphs[t]=function(e,t){for(var i=0,a=n.length;i<a;i++)"scale"===(r=n[i]).cmd&&(r.args=[t,-t]),e[r.cmd].apply(e,r.args)}}}]),e}();t.FontFaceObject=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiCompatibilityParams=void 0;var r=n(7),i=Object.create(null);r.isNodeJS&&(i.disableFontFace=!0);var 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(5),i=n(202);function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=16;function l(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 c=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&&l(i.context),i},clear:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}},e}();var u=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}(),h=function(){function e(e,t,n,r,i,a){this.ctx=e,this.current=new u,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 c(this.canvasFactory),e&&l(e),this._cachedGetSinglePixelWidth=null}function t(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var n,i,a,o,l,c=t.height,u=t.width,h=c%s,d=(c-h)/s,f=0===h?d:d+1,p=e.createImageData(u,s),g=0,A=t.data,m=p.data;if(t.kind===r.ImageKind.GRAYSCALE_1BPP){var v=A.byteLength,y=new Uint32Array(m.buffer,0,m.byteLength>>2),b=y.length,_=u+7>>3,w=4294967295,x=r.IsLittleEndianCached.value?4278190080:255;for(i=0;i<f;i++){for(o=i<d?s:h,n=0,a=0;a<o;a++){for(var C=v-g,S=0,k=C>_?u:8*C-7,E=-8&k,T=0,B=0;S<E;S+=8)B=A[g++],y[n++]=128&B?w:x,y[n++]=64&B?w:x,y[n++]=32&B?w:x,y[n++]=16&B?w:x,y[n++]=8&B?w:x,y[n++]=4&B?w:x,y[n++]=2&B?w:x,y[n++]=1&B?w:x;for(;S<k;S++)0===T&&(B=A[g++],T=128),y[n++]=B&T?w:x,T>>=1}for(;n<b;)y[n++]=0;e.putImageData(p,0,i*s)}}else if(t.kind===r.ImageKind.RGBA_32BPP){for(a=0,l=u*s*4,i=0;i<d;i++)m.set(A.subarray(g,g+l)),g+=l,e.putImageData(p,0,a),a+=s;i<f&&(l=u*h*4,m.set(A.subarray(g,g+l)),e.putImageData(p,0,a))}else{if(t.kind!==r.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));for(l=u*(o=s),i=0;i<f;i++){for(i>=d&&(l=u*(o=h)),n=0,a=l;a--;)m[n++]=A[g++],m[n++]=A[g++],m[n++]=A[g++],m[n++]=255;e.putImageData(p,0,i*s)}}}}function n(e,t){for(var n=t.height,r=t.width,i=n%s,a=(n-i)/s,o=0===i?a:a+1,l=e.createImageData(r,s),c=0,u=t.data,h=l.data,d=0;d<o;d++){for(var f=d<a?s:i,p=3,g=0;g<f;g++)for(var A=0,m=0;m<r;m++){if(!A){var v=u[c++];A=128}h[p]=v&A?0:255,p+=4,A>>=1}e.putImageData(l,0,d*s)}}function o(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 h(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 d(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 f(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 p(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 g(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){var s=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(s,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,h=l?a[2]:0;s="Luminosity"===i?p:f;for(var g=Math.min(r,Math.ceil(1048576/n)),A=0;A<r;A+=g){var m=Math.min(g,r-A),v=e.getImageData(0,A,n,m),y=t.getImageData(0,A,n,m);l&&d(v.data,c,u,h),s(v.data,y.data,o),e.putImageData(y,0,A)}}(a,n,i.width,i.height,t.subtype,o,t.transferMap),e.drawImage(i,0,0)}var A=["butt","round","square"],m=["miter","round","bevel"],v={},y={};for(var b in e.prototype={beginDrawing:function(e){var t=e.transform,n=e.viewport,r=e.transparency,i=void 0!==r&&r,a=e.background,o=void 0===a?null:a,s=this.ctx.canvas.width,l=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=o||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,s,l),this.ctx.restore(),i){var c=this.cachedCanvases.getCanvas("transparent",s,l,!0);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),h(this.ctx),t&&this.ctx.transform.apply(this.ctx,t),this.ctx.transform.apply(this.ctx,n.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(e,t,n,i){var o=e.argsArray,s=e.fnArray,l=t||0,c=o.length;if(c===l)return l;for(var u,h=c-l>10&&"function"==typeof n,d=h?Date.now()+15:0,f=0,p=this.commonObjs,g=this.objs;;){if(void 0!==i&&l===i.nextBreakPoint)return i.breakIt(l,n),l;if((u=s[l])!==r.OPS.dependency)this[u].apply(this,o[l]);else{var A,m=a(o[l]);try{for(m.s();!(A=m.n()).done;){var v=A.value,y=v.startsWith("g_")?p:g;if(!y.has(v))return y.get(v,n),l}}catch(e){m.e(e)}finally{m.f()}}if(++l===c)return l;if(h&&++f>10){if(Date.now()>d)return n(),l;f=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=m[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:function(e){},setFlatness:function(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,s=a.mozCurrentTransform;this.ctx.save();var l=i.context;l.scale(1/e.scaleX,1/e.scaleY),l.translate(-e.offsetX,-e.offsetY),l.transform.apply(l,s),e.startTransformInverse=l.mozCurrentTransformInverse,o(a,l),this.ctx=l,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(),g(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),o(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(),g(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),o(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();var i=t.mozCurrentTransform,a=r.Util.singularValueDecompose2dScale(i)[0];t.strokeStyle=n.getPattern(t,this),t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth*a),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=v},eoClip:function(){this.pendingClip=y},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 ".concat(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){var a=n.loadedName||"sans-serif",o="normal";n.black?o="900":n.bold&&(o="bold");var s=n.italic?"italic":"normal",l='"'.concat(a,'", ').concat(n.fallbackName),c=t;t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font="".concat(s," ").concat(o," ").concat(c,"px ").concat(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:function(e,t,n,i){var a,o=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,h=c&r.TextRenderingMode.FILL_STROKE_MASK,d=!!(c&r.TextRenderingMode.ADD_TO_PATH_FLAG),f=s.patternFill&&!l.missingFile;((l.disableFontFace||d||f)&&(a=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||f?(o.save(),o.translate(t,n),o.beginPath(),a(o,u),i&&o.setTransform.apply(o,i),h!==r.TextRenderingMode.FILL&&h!==r.TextRenderingMode.FILL_STROKE||o.fill(),h!==r.TextRenderingMode.STROKE&&h!==r.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(h!==r.TextRenderingMode.FILL&&h!==r.TextRenderingMode.FILL_STROKE||o.fillText(e,t,n),h!==r.TextRenderingMode.STROKE&&h!==r.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,n)),d)&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:o.mozCurrentTransform,x:t,y:n,fontSize:u,addToPath:a})},get isFontSubpixelAAEnabled(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;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){var a,o=this.ctx,s=t.fontSizeScale,l=t.charSpacing,c=t.wordSpacing,u=t.fontDirection,h=t.textHScale*u,d=e.length,f=n.vertical,p=f?1:-1,g=n.defaultVMetrics,A=i*t.fontMatrix[0],m=t.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;if(o.save(),t.patternFill){o.save();var v=t.fillColor.getPattern(o,this);a=o.mozCurrentTransform,o.restore(),o.fillStyle=v}o.transform.apply(o,t.textMatrix),o.translate(t.x,t.y+t.textRise),u>0?o.scale(h,-1):o.scale(h,1);var y=t.lineWidth,b=t.textMatrixScale;if(0===b||0===y){var _=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;_!==r.TextRenderingMode.STROKE&&_!==r.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,y=.65*this.getSinglePixelWidth())}else y/=b;1!==s&&(o.scale(s,s),y/=s),o.lineWidth=y;var w,x=0;for(w=0;w<d;++w){var C=e[w];if((0,r.isNum)(C))x+=p*C*i/1e3;else{var S,k,E,T,B,I,M,P=!1,D=(C.isSpace?c:0)+l,F=C.fontChar,O=C.accent,L=C.width;if(f)B=C.vmetric||g,I=-(I=C.vmetric?B[1]:.5*L)*A,M=B[2]*A,L=B?-B[0]:L,S=I/s,k=(x+M)/s;else S=x/s,k=0;if(n.remeasure&&L>0){var R=1e3*o.measureText(F).width/i*s;if(L<R&&this.isFontSubpixelAAEnabled){var N=L/R;P=!0,o.save(),o.scale(N,1),S/=N}else L!==R&&(S+=(L-R)/2e3*i/s)}(C.isInFont||n.missingFile)&&(m&&!O?o.fillText(F,S,k):(this.paintChar(F,S,k,a),O&&(E=S+O.offset.x/s,T=k-O.offset.y/s,this.paintChar(O.fontChar,E,T,a)))),x+=f?L*A-D*u:L*A+D*u,P&&o.restore()}}f?t.y-=x:t.x+=x*h,o.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,g=s.fontMatrix||r.FONT_IDENTITY_MATRIX,A=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<A;++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,g),this.executeOperatorList(v),this.restore(),i=r.Util.applyTransform([n.width,0],g)[0]*c+m,o.translate(i,0),s.x+=i*p;else(0,r.warn)('Type3 character "'.concat(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,r=this;if("TilingPattern"===t[0]){var a=t[1],o=this.baseTransform||this.ctx.mozCurrentTransform.slice(),s={createCanvasGraphics:function(t){return new e(t,r.commonObjs,r.objs,r.canvasFactory,r.webGLContext)}};n=new i.TilingPattern(t,a,this.ctx,s,o)}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]),g=Math.max(c[0],u[0],h[0],d[0]),A=Math.max(c[1],u[1],h[1],d[1]);this.ctx.fillRect(f,p,g-f,A-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 s=Math.floor(i[0]),l=Math.floor(i[1]),c=Math.max(Math.ceil(i[2])-s,1),u=Math.max(Math.ceil(i[3])-l,1),h=1,d=1;c>4096&&(h=c/4096,c=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,c,u,!0),g=p.context;g.scale(1/h,1/d),g.translate(-s,-l),g.transform.apply(g,n),e.smask?this.smaskStack.push({canvas:p.canvas,context:g,offsetX:s,offsetY:l,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(s,l),t.scale(h,d)),o(t,g),this.ctx=g,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(),h(this.ctx),this.current=new u,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,g=h[t];p>0;)d[f++]=g&p?0:255,p>>=1;var A=0;for(0!==d[f=0]&&(l[0]=1,++A),n=1;n<a;n++)d[f]!==d[f+1]&&(l[n]=d[f]?2:1,++A),f++;for(0!==d[f]&&(l[n]=2,++A),t=1;t<o;t++){r=t*s,d[(f=t*u)-u]!==d[f]&&(l[r]=d[f]?1:8,++A);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],++A),f++;if(d[f-u]!==d[f]&&(l[r+n]=d[f]?2:4,++A),A>1e3)return null}for(r=t*s,0!==d[f=u*(o-1)]&&(l[r]=8,++A),n=1;n<a;n++)d[f]!==d[f+1]&&(l[r+n]=d[f]?4:8,++A),f++;if(0!==d[f]&&(l[r+n]=4,++A),A>1e3)return null;var v=new Int32Array([0,s,-1,0,-s,0,0,0,1]),y=[];for(t=0;A&&t<=o;t++){for(var b=t*s,_=b+a;b<_&&!l[b];)b++;if(b!==_){var w,x=[b%s,t],C=l[b],S=b;do{var k=v[C];do{b+=k}while(!l[b]);5!==(w=l[b])&&10!==w?(C=w,l[b]=0):(C=w&51*C>>4,l[b]&=C>>2|C<<2),x.push(b%s),x.push(b/s|0),l[b]||--A}while(S!==b);y.push(x),--t}}return function(e){e.save(),e.scale(1/a,-1/o),e.translate(0,-o),e.beginPath();for(var t=0,n=y.length;t<n;t++){var r=y[t];e.moveTo(r[0],r[1]);for(var i=2,s=r.length;i<s;i+=2)e.lineTo(r[i],r[i+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){var 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){var 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 g=n,A=r,m="prescale1";u>2&&g>1||f>2&&A>1;){var v=g,y=A;u>2&&g>1&&(u/=g/(v=Math.ceil(g/2))),f>2&&A>1&&(f/=A/(y=Math.ceil(A/2))),(p=(o=this.cachedCanvases.getCanvas(m,v,y)).context).clearRect(0,0,v,y),p.drawImage(a,0,0,g,A,0,0,v,y),a=o.canvas,g=v,A=y,m="prescale1"===m?"prescale2":"prescale1"}if(i.drawImage(a,0,0,g,A,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===y?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth:function(e){if(null===this._cachedGetSinglePixelWidth){var t=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1],t[2]*t[2]+t[3]*t[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[b]]=e.prototype[b];return e}();t.CanvasGraphics=h},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: ".concat(e[0]));return t.fromIR(e)},t.TilingPattern=void 0;var r=n(5),i={};function a(e,t){if(t&&"undefined"!=typeof Path2D){var 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,g=(c[r]+t.offsetX)*t.scaleX,A=(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,E=u[a],T=u[a+1],B=u[a+2],I=u[o],M=u[o+1],P=u[o+2],D=u[s],F=u[s+1],O=u[s+2],L=Math.round(p),R=Math.round(v),N=L;N<=R;N++){if(N<A){var U=void 0;y=f-(f-g)*(U=N<p?0:p===A?1:(p-N)/(p-A)),b=E-(E-I)*U,_=T-(T-M)*U,w=B-(B-P)*U}else{var j=void 0;y=g-(g-m)*(j=N>v?1:A===v?0:(A-N)/(A-v)),b=I-(I-D)*j,_=M-(M-F)*j,w=P-(P-O)*j}var H=void 0;x=f-(f-m)*(H=N<p?0:N>v?1:(p-N)/(p-v)),C=E-(E-D)*H,S=T-(T-F)*H,k=B-(B-O)*H;for(var z=Math.round(Math.min(y,x)),Q=Math.round(Math.max(y,x)),V=d*N+4*z,G=z;G<=Q;G++)(H=(y-G)/(y-x))<0?H=0:H>1&&(H=1),h[V++]=b-(b-C)*H|0,h[V++]=_-(_-S)*H|0,h[V++]=w-(w-k)*H|0,h[V++]=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]),g=Math.ceil(e[2])-f,A=Math.ceil(e[3])-p,m=Math.min(Math.ceil(Math.abs(g*n[0]*1.1)),3e3),v=Math.min(Math.ceil(Math.abs(A*n[1]*1.1)),3e3),y=g/m,b=A/v,_={coords:r,colors:i,offsetX:-f,offsetY:-p,scaleX:1/y,scaleY:1/b},w=m+4,x=v+4;if(l.isEnabled)c=l.drawFigures({width:m,height:v,backgroundColor:o,figures:a,context:_}),(u=s.getCanvas("mesh",w,x,!1)).context.drawImage(c,2,2),c=u.canvas;else{var C=(u=s.getCanvas("mesh",w,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],_);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 g=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(g.offsetX,g.offsetY),e.scale(g.scaleX,g.scaleY),e.createPattern(g.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),g=r.Util.singularValueDecompose2dScale(this.baseTransform),A=[p[0]*g[0],p[1]*g[1]],m=this.getSizeAndScale(i,this.ctx.canvas.width,A[0]),v=this.getSizeAndScale(a,this.ctx.canvas.height,A[1]),y=e.cachedCanvases.getCanvas("pattern",m.size,v.size,!0),b=y.context,_=c.createCanvasGraphics(b);return _.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(_,o,l),_.transform(m.scale,0,0,v.scale,0,0),_.transform(1,0,0,1,-u,-h),this.clipBbox(_,n,u,h,d,f),_.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){var 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: ".concat(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;var 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,i=(r=n(2))&&r.__esModule?r:{default:r},a=n(5);function o(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function s(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 l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c={UNKNOWN:0,DATA:1,ERROR:2},u=1,h=2,d=3,f=4,p=5,g=6,A=7,m=8;function v(e){if("object"!==l(e)||null===e)return e;switch(e.name){case"AbortException":return new a.AbortException(e.message);case"MissingPDFException":return new a.MissingPDFException(e.message);case"UnexpectedResponseException":return new a.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new a.UnknownErrorException(e.message,e.details);default:return new a.UnknownErrorException(e.message,e.toString())}}var y=function(){function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceName=t,this.targetName=n,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===i.sourceName)if(t.stream)i._processStreamMessage(t);else if(t.callback){var n=t.callbackId,a=i.callbackCapabilities[n];if(!a)throw new Error("Cannot resolve callback ".concat(n));if(delete i.callbackCapabilities[n],t.callback===c.DATA)a.resolve(t.data);else{if(t.callback!==c.ERROR)throw new Error("Unexpected callback case");a.reject(v(t.reason))}}else{var o=i.actionHandler[t.action];if(!o)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var s=i.sourceName,l=t.sourceName;new Promise(function(e){e(o(t.data))}).then(function(e){r.postMessage({sourceName:s,targetName:l,callback:c.DATA,callbackId:t.callbackId,data:e})},function(e){r.postMessage({sourceName:s,targetName:l,callback:c.ERROR,callbackId:t.callbackId,reason:v(e)})})}else t.streamId?i._createStreamSink(t):o(t.data)}},r.addEventListener("message",this._onComObjOnMessage)}var t,n,r;return t=e,(n=[{key:"on",value:function(e,t){var n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}},{key:"send",value:function(e,t,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}},{key:"sendWithPromise",value:function(e,t,n){var r=this.callbackId++,i=(0,a.createPromiseCapability)();this.callbackCapabilities[r]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:t},n)}catch(e){i.reject(e)}return i.promise}},{key:"sendWithStream",value:function(e,t,n,r){var i=this,o=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:function(n){var c=(0,a.createPromiseCapability)();return i.streamControllers[o]={controller:n,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},i._postMessage({sourceName:s,targetName:l,action:e,streamId:o,data:t,desiredSize:n.desiredSize},r),c.promise},pull:function(e){var t=(0,a.createPromiseCapability)();return i.streamControllers[o].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:g,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,a.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,a.createPromiseCapability)();return i.streamControllers[o].cancelCall=t,i.streamControllers[o].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:u,streamId:o,reason:v(e)}),t.promise}},n)}},{key:"_createStreamSink",value:function(e){var t=this,n=this.actionHandler[e.action],r=e.streamId,i=this.sourceName,o=e.sourceName,s=this.comObj,l={enqueue:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var l=this.desiredSize;this.desiredSize-=n,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,a.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:i,targetName:o,stream:f,streamId:r,chunk:e},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:o,stream:d,streamId:r}),delete t.streamSinks[r])},error:function(e){(0,a.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:o,stream:p,streamId:r,reason:v(e)}))},sinkCapability:(0,a.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[r]=l,new Promise(function(t){t(n(e.data,l))}).then(function(){s.postMessage({sourceName:i,targetName:o,stream:m,streamId:r,success:!0})},function(e){s.postMessage({sourceName:i,targetName:o,stream:m,streamId:r,reason:v(e)})})}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,n=this.sourceName,r=e.sourceName,i=this.comObj;switch(e.stream){case m:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(v(e.reason));break;case A:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(v(e.reason));break;case g:if(!this.streamSinks[t]){i.postMessage({sourceName:n,targetName:r,stream:A,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var o=this.streamSinks[e.streamId].onPull;new Promise(function(e){e(o&&o())}).then(function(){i.postMessage({sourceName:n,targetName:r,stream:A,streamId:t,success:!0})},function(e){i.postMessage({sourceName:n,targetName:r,stream:A,streamId:t,reason:v(e)})});break;case f:if((0,a.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case d:if((0,a.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 p:(0,a.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(v(e.reason)),this._deleteStreamController(t);break;case h:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(v(e.reason)),this._deleteStreamController(t);break;case u:if(!this.streamSinks[t])break;var s=this.streamSinks[e.streamId].onCancel;new Promise(function(t){t(s&&s(v(e.reason)))}).then(function(){i.postMessage({sourceName:n,targetName:r,stream:h,streamId:t,success:!0})},function(e){i.postMessage({sourceName:n,targetName:r,stream:h,streamId:t,reason:v(e)})}),this.streamSinks[t].sinkCapability.reject(v(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e,t=(e=i.default.mark(function e(t){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map(function(e){return e&&e.promise}));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}},e,this)}),function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,l,"next",e)}function l(e){o(a,r,i,s,l,"throw",e)}s(void 0)})});return function(e){return t.apply(this,arguments)}}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}])&&s(t.prototype,n),r&&s(t,r),e}();t.MessageHandler=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(5),i=n(206);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,r.assert)("string"==typeof t,"Metadata: input is not a string"),t=this._repair(t);var n=(new i.SimpleXMLParser).parseFromString(t);this._metadataMap=new Map,n&&this._parse(n)}var t,n,s;return t=e,(n=[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(e,t){for(var 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: ".concat(t," isn't defined."))}),r="",i=0,a=n.length;i<a;i+=2){var o=256*n.charCodeAt(i)+n.charCodeAt(i+1);r+=o>=32&&o<127&&60!==o&&62!==o&&38!==o?String.fromCharCode(o):"&#x"+(65536+o).toString(16).substring(1)+";"}return">"+r})}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase())for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName.toLowerCase();)t=t.nextSibling;var n=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===n&&t.hasChildNodes())for(var r=t.childNodes,i=0,a=r.length;i<a;i++){var o=r[i];if("rdf:description"===o.nodeName.toLowerCase())for(var s=0,l=o.childNodes.length;s<l;s++)if("#text"!==o.childNodes[s].nodeName.toLowerCase()){var c=o.childNodes[s],u=c.nodeName.toLowerCase();this._metadataMap.set(u,c.textContent.trim())}}}},{key:"get",value:function(e){return this._metadataMap.has(e)?this._metadataMap.get(e):null}},{key:"getAll",value:function(){var e,t=Object.create(null),n=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(this._metadataMap);try{for(n.s();!(e=n.n()).done;){var r=a(e.value,2),i=r[0],s=r[1];t[i]=s}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"has",value:function(e){return this._metadataMap.has(e)}}])&&l(t.prototype,n),s&&l(t,s),e}();t.Metadata=c},function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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,i=c(e);if(t){var a=c(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===r(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 c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 d(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleXMLParser=void 0;var f={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function p(e,t){var n=e[t];return" "===n||"\n"===n||"\r"===n||"\t"===n}var g=function(){function e(){u(this,e)}return d(e,[{key:"_resolveEntities",value:function(e){var t=this;return e.replace(/&([^;]+);/g,function(e,n){if("#x"===n.substring(0,2))return String.fromCharCode(parseInt(n.substring(2),16));if("#"===n.substring(0,1))return String.fromCharCode(parseInt(n.substring(1),10));switch(n){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return t.onResolveEntity(n)})}},{key:"_parseContent",value:function(e,t){var n=[],r=t;function i(){for(;r<e.length&&p(e,r);)++r}for(;r<e.length&&!p(e,r)&&">"!==e[r]&&"/"!==e[r];)++r;var a=e.substring(t,r);for(i();r<e.length&&">"!==e[r]&&"/"!==e[r]&&"?"!==e[r];){i();for(var o,s="";r<e.length&&!p(e,r)&&"="!==e[r];)s+=e[r],++r;if(i(),"="!==e[r])return null;++r,i();var l=e[r];if('"'!==l&&"'"!==l)return null;var c=e.indexOf(l,++r);if(c<0)return null;o=e.substring(r,c),n.push({name:s,value:this._resolveEntities(o)}),r=c+1,i()}return{name:a,attributes:n,parsed:r-t}}},{key:"_parseProcessingInstruction",value:function(e,t){var n=t;for(;n<e.length&&!p(e,n)&&">"!==e[n]&&"/"!==e[n];)++n;var r=e.substring(t,n);!function(){for(;n<e.length&&p(e,n);)++n}();for(var i=n;n<e.length&&("?"!==e[n]||">"!==e[n+1]);)++n;return{name:r,value:e.substring(i,n),parsed:n-t}}},{key:"parseXml",value:function(e){for(var t=0;t<e.length;){var n=t;if("<"===e[t]){var r=void 0;switch(e[++n]){case"/":if(++n,(r=e.indexOf(">",n))<0)return void this.onError(f.UnterminatedElement);this.onEndElement(e.substring(n,r)),n=r+1;break;case"?":++n;var i=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+i.parsed,n+i.parsed+2))return void this.onError(f.UnterminatedXmlDeclaration);this.onPi(i.name,i.value),n+=i.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if((r=e.indexOf("--\x3e",n+3))<0)return void this.onError(f.UnterminatedComment);this.onComment(e.substring(n+3,r)),n=r+3}else if("[CDATA["===e.substring(n+1,n+8)){if((r=e.indexOf("]]>",n+8))<0)return void this.onError(f.UnterminatedCdat);this.onCdata(e.substring(n+8,r)),n=r+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(f.MalformedElement);var a=e.indexOf("[",n+8),o=!1;if((r=e.indexOf(">",n+8))<0)return void this.onError(f.UnterminatedDoctypeDeclaration);if(a>0&&r>a){if((r=e.indexOf("]>",n+8))<0)return void this.onError(f.UnterminatedDoctypeDeclaration);o=!0}var s=e.substring(n+8,r+(o?1:0));this.onDoctype(s),n=r+(o?2:1)}break;default:var l=this._parseContent(e,n);if(null===l)return void this.onError(f.MalformedElement);var c=!1;if("/>"===e.substring(n+l.parsed,n+l.parsed+2))c=!0;else if(">"!==e.substring(n+l.parsed,n+l.parsed+1))return void this.onError(f.UnterminatedElement);this.onBeginElement(l.name,l.attributes,c),n+=l.parsed+(c?2:1)}}else{for(;n<e.length&&"<"!==e[n];)n++;var u=e.substring(t,n);this.onText(this._resolveEntities(u))}t=n}}},{key:"onResolveEntity",value:function(e){return"&".concat(e,";")}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(e){}},{key:"onCdata",value:function(e){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(e){}},{key:"onBeginElement",value:function(e,t,n){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(e){}}]),e}(),A=function(){function e(t,n){u(this,e),this.nodeName=t,this.nodeValue=n,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return d(e,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map(function(e){return e.textContent}).join(""):this.nodeValue||""}}]),e}(),m=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&&s(e,t)}(n,g);var t=l(n);function n(){var e;return u(this,n),(e=t.call(this))._currentFragment=null,e._stack=null,e._errorCode=f.NoError,e}return d(n,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=f.NoError,this.parseXml(e),this._errorCode===f.NoError){var t=i(this._currentFragment,1)[0];if(t)return{documentElement:t}}}},{key:"onResolveEntity",value:function(e){switch(e){case"apos":return"'"}return o(c(n.prototype),"onResolveEntity",this).call(this,e)}},{key:"onText",value:function(e){if(!function(e){for(var t=0,n=e.length;t<n;t++)if(!p(e,t))return!1;return!0}(e)){var t=new A("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new A("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,n){var r=new A(e);r.childNodes=[],this._currentFragment.push(r),n||(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var n=0,r=t.childNodes.length;n<r;n++)t.childNodes[n].parentNode=t}},{key:"onError",value:function(e){this._errorCode=e}}]),n}();t.SimpleXMLParser=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},a=n(5);function o(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,l,"next",e)}function l(e){o(a,r,i,s,l,"throw",e)}s(void 0)})}}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 d(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}var f=function(){function e(t,n){var r=this;u(this,e),(0,a.assert)(n,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=t.progressiveDone||!1;var i=t.initialData;if(i&&i.length>0){var o=new Uint8Array(i).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=n,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(e,t){r._onReceiveData({begin:e,chunk:t})}),this._pdfDataRangeTransport.addProgressListener(function(e,t){r._onProgress({loaded:e,total:t})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(e){r._onReceiveData({chunk:e})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){r._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return d(e,[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var n=this._rangeReaders.some(function(n){return n._begin===e.begin&&(n._enqueue(t),!0)});(0,a.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var n=this._fullRequestReader;n&&n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,a.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new p(this,e,this._progressiveDone)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new g(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach(function(t){t.cancel(e)}),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFDataTransportStream=f;var p=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];u(this,e),this._stream=t,this._done=r||!1,this._filename=null,this._queuedChunks=n||[],this._loaded=0;var i,a=l(this._queuedChunks);try{for(a.s();!(i=a.n()).done;){var o=i.value;this._loaded+=o.byteLength}}catch(e){a.e(e)}finally{a.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return d(e,[{key:"_enqueue",value:function(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}}},{key:"read",value:function(){var e=s(i.default.mark(function e(){var t,n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return n=(0,a.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 8:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),e}(),g=function(){function e(t,n,r){u(this,e),this._stream=t,this._begin=n,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return d(e,[{key:"_enqueue",value:function(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)}}},{key:"read",value:function(){var e=s(i.default.mark(function e(){var t,n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,a.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var r=n(5);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(t){var n=t.enable,r=void 0!==n&&n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._enabled=!0===r}var t,n,a;return t=e,(n=[{key:"composeSMask",value:function(e){var t=e.layer,n=e.mask,r=e.properties;return o.composeSMask(t,n,r)}},{key:"drawFigures",value:function(e){var t=e.width,n=e.height,r=e.backgroundColor,i=e.figures,a=e.context;return o.drawFigures(t,n,r,i,a)}},{key:"clear",value:function(){o.cleanup()}},{key:"isEnabled",get:function(){var e=this._enabled;return e&&(e=o.tryInitGL()),(0,r.shadow)(this,"isEnabled",e)}}])&&i(t.prototype,n),a&&i(t,a),e}();t.WebGLContext=a;var o=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:function(){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"),g=i.getUniformLocation(h,"u_mask"),A=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,A),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(g,1),u=d}();var g=u,A=g.canvas,m=g.gl;A.width=f,A.height=p,m.viewport(0,0,m.drawingBufferWidth,m.drawingBufferHeight),m.uniform2f(g.resolutionLocation,f,p),d.backdrop?m.uniform4f(g.resolutionLocation,d.backdrop[0],d.backdrop[1],d.backdrop[2],1):m.uniform4f(g.resolutionLocation,0,0,0,0),m.uniform1i(g.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(g.positionLocation),m.vertexAttribPointer(g.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),A},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,g=p.canvas,A=p.gl;g.width=e,g.height=i,A.viewport(0,0,A.drawingBufferWidth,A.drawingBufferHeight),A.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 _=new Float32Array(2*b),w=new Uint8Array(3*b),x=u.coords,C=u.colors,S=0,k=0;for(m=0,v=c.length;m<v;m++){var E=c[m],T=E.coords,B=E.colors;switch(E.type){case"lattice":var I=E.verticesPerRow;y=T.length/I|0;for(var M=1;M<y;M++)for(var P=M*I+1,D=1;D<I;D++,P++)_[S]=x[T[P-I-1]],_[S+1]=x[T[P-I-1]+1],_[S+2]=x[T[P-I]],_[S+3]=x[T[P-I]+1],_[S+4]=x[T[P-1]],_[S+5]=x[T[P-1]+1],w[k]=C[B[P-I-1]],w[k+1]=C[B[P-I-1]+1],w[k+2]=C[B[P-I-1]+2],w[k+3]=C[B[P-I]],w[k+4]=C[B[P-I]+1],w[k+5]=C[B[P-I]+2],w[k+6]=C[B[P-1]],w[k+7]=C[B[P-1]+1],w[k+8]=C[B[P-1]+2],_[S+6]=_[S+2],_[S+7]=_[S+3],_[S+8]=_[S+4],_[S+9]=_[S+5],_[S+10]=x[T[P]],_[S+11]=x[T[P]+1],w[k+9]=w[k+3],w[k+10]=w[k+4],w[k+11]=w[k+5],w[k+12]=w[k+6],w[k+13]=w[k+7],w[k+14]=w[k+8],w[k+15]=C[B[P]],w[k+16]=C[B[P]+1],w[k+17]=C[B[P]+2],S+=12,k+=18;break;case"triangles":for(var F=0,O=T.length;F<O;F++)_[S]=x[T[F]],_[S+1]=x[T[F]+1],w[k]=C[B[F]],w[k+1]=C[B[F]+1],w[k+2]=C[B[F]+2],S+=2,k+=3}}l?A.clearColor(l[0]/255,l[1]/255,l[2]/255,1):A.clearColor(0,0,0,0),A.clear(A.COLOR_BUFFER_BIT);var L=A.createBuffer();A.bindBuffer(A.ARRAY_BUFFER,L),A.bufferData(A.ARRAY_BUFFER,_,A.STATIC_DRAW),A.enableVertexAttribArray(p.positionLocation),A.vertexAttribPointer(p.positionLocation,2,A.FLOAT,!1,0,0);var R=A.createBuffer();return A.bindBuffer(A.ARRAY_BUFFER,R),A.bufferData(A.ARRAY_BUFFER,w,A.STATIC_DRAW),A.enableVertexAttribArray(p.colorLocation),A.vertexAttribPointer(p.colorLocation,3,A.UNSIGNED_BYTE,!1,0,0),A.uniform2f(p.scaleLocation,u.scaleX,u.scaleY),A.uniform2f(p.offsetLocation,u.offsetX,u.offsetY),A.drawArrays(A.TRIANGLES,0,b),A.flush(),A.deleteBuffer(L),A.deleteBuffer(R),g},cleanup:function(){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(5);function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(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&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(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=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return d(e)}(this,n)}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 A(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}var m=function(){function e(){p(this,e)}return A(e,null,[{key:"create",value:function(e){switch(e.data.annotationType){case i.AnnotationType.LINK:return new y(e);case i.AnnotationType.TEXT:return new b(e);case i.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new w(e);case"Btn":return e.data.radioButton?new C(e):e.data.checkBox?new x(e):new S(e);case"Ch":return new k(e)}return new _(e);case i.AnnotationType.POPUP:return new E(e);case i.AnnotationType.FREETEXT:return new B(e);case i.AnnotationType.LINE:return new I(e);case i.AnnotationType.SQUARE:return new M(e);case i.AnnotationType.CIRCLE:return new P(e);case i.AnnotationType.POLYLINE:return new D(e);case i.AnnotationType.CARET:return new O(e);case i.AnnotationType.INK:return new L(e);case i.AnnotationType.POLYGON:return new F(e);case i.AnnotationType.HIGHLIGHT:return new R(e);case i.AnnotationType.UNDERLINE:return new N(e);case i.AnnotationType.SQUIGGLY:return new U(e);case i.AnnotationType.STRIKEOUT:return new j(e);case i.AnnotationType.STAMP:return new H(e);case i.AnnotationType.FILEATTACHMENT:return new z(e);default:return new v(e)}}}]),e}(),v=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,e),this.isRenderable=n,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,n&&(this.container=this._createContainer(r))}return A(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,n=this.page,r=this.viewport,a=document.createElement("section"),o=t.rect[2]-t.rect[0],s=t.rect[3]-t.rect[1];a.setAttribute("data-annotation-id",t.id);var 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(".concat(r.transform.join(","),")"),a.style.transformOrigin="-".concat(l[0],"px -").concat(l[1],"px"),!e&&t.borderStyle.width>0){a.style.borderWidth="".concat(t.borderStyle.width,"px"),t.borderStyle.style!==i.AnnotationBorderStyleType.UNDERLINE&&(o-=2*t.borderStyle.width,s-=2*t.borderStyle.width);var c=t.borderStyle.horizontalCornerRadius,u=t.borderStyle.verticalCornerRadius;if(c>0||u>0){var h="".concat(c,"px / ").concat(u,"px");a.style.borderRadius=h}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="".concat(l[0],"px"),a.style.top="".concat(l[1],"px"),a.style.width="".concat(o,"px"),a.style.height="".concat(s,"px"),a}},{key:"_createPopup",value:function(e,t,n){t||((t=document.createElement("div")).style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var r=new T({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)}},{key:"render",value:function(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),y=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!!(e.data.url||e.data.dest||e.data.action);return t.call(this,e,r)}return A(n,[{key:"render",value:function(){this.container.className="linkAnnotation";var e=this.data,t=this.linkService,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}},{key:"_bindLink",value:function(e,t){var n=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&n.linkService.navigateTo(t),!1},t&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var n=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return n.linkService.executeNamedAction(t),!1},e.className="internalLink"}}]),n}(),b=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r)}return A(n,[{key:"render",value:function(){this.container.className="textAnnotation";var 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}}]),n}(),_=function(e){c(n,v);var t=h(n);function n(){return p(this,n),t.apply(this,arguments)}return A(n,[{key:"render",value:function(){return this.container}}]),n}(),w=function(e){c(n,_);var t=h(n);function n(e){p(this,n);var r=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return t.call(this,e,r)}return A(n,[{key:"render",value:function(){this.container.className="textWidgetAnnotation";var e=null;if(this.renderInteractiveForms){if(this.data.multiLine?(e=document.createElement("textarea")).textContent=this.data.fieldValue:((e=document.createElement("input")).type="text",e.setAttribute("value",this.data.fieldValue)),e.disabled=this.data.readOnly,e.name=this.data.fieldName,null!==this.data.maxLen&&(e.maxLength=this.data.maxLen),this.data.comb){var t=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;e.classList.add("comb"),e.style.letterSpacing="calc(".concat(t,"px - 1ch)")}}else{(e=document.createElement("div")).textContent=this.data.fieldValue,e.style.verticalAlign="middle",e.style.display="table-cell";var n=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(n=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(e,n)}return null!==this.data.textAlignment&&(e.style.textAlign=["left","center","right"][this.data.textAlignment]),this.container.appendChild(e),this.container}},{key:"_setTextStyle",value:function(e,t){var n=e.style;if(n.fontSize="".concat(this.data.fontSize,"px"),n.direction=this.data.fontDirection<0?"rtl":"ltr",t){var r="normal";t.black?r="900":t.bold&&(r="bold"),n.fontWeight=r,n.fontStyle=t.italic?"italic":"normal";var i=t.loadedName?'"'.concat(t.loadedName,'", '):"",a=t.fallbackName||"Helvetica, sans-serif";n.fontFamily=i+a}}}]),n}(),x=function(e){c(n,_);var t=h(n);function n(e){return p(this,n),t.call(this,e,e.renderInteractiveForms)}return A(n,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var 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}}]),n}(),C=function(e){c(n,_);var t=h(n);function n(e){return p(this,n),t.call(this,e,e.renderInteractiveForms)}return A(n,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var 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}}]),n}(),S=function(e){c(n,y);var t=h(n);function n(){return p(this,n),t.apply(this,arguments)}return A(n,[{key:"render",value:function(){var e=s(f(n.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",e}}]),n}(),k=function(e){c(n,_);var t=h(n);function n(e){return p(this,n),t.call(this,e,e.renderInteractiveForms)}return A(n,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var 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));var t,n=a(this.data.options);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=document.createElement("option");i.textContent=r.displayValue,i.value=r.exportValue,this.data.fieldValue.includes(r.displayValue)&&i.setAttribute("selected",!0),e.appendChild(i)}}catch(e){n.e(e)}finally{n.f()}return this.container.appendChild(e),this.container}}]),n}(),E=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!(!e.data.title&&!e.data.contents);return t.call(this,e,r)}return A(n,[{key:"render",value:function(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;var e='[data-annotation-id="'.concat(this.data.parentId,'"]'),t=this.layer.querySelector(e);if(!t)return this.container;var n=new T({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="-".concat(r+i,"px -").concat(t.style.top),this.container.style.left="".concat(r+i,"px"),this.container.appendChild(n.render()),this.container}}]),n}(),T=function(){function e(t){p(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return A(e,[{key:"render",value:function(){var e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);var t=document.createElement("div");t.className="popup";var n=this.color;if(n){var a=.7*(255-n[0])+n[0],o=.7*(255-n[1])+n[1],s=.7*(255-n[2])+n[2];t.style.backgroundColor=i.Util.makeCssRgb(0|a,0|o,0|s)}var l=document.createElement("h1");l.textContent=this.title,t.appendChild(l);var c=r.PDFDateString.toDateObject(this.modificationDate);if(c){var u=document.createElement("span");u.textContent="{{date}}, {{time}}",u.dataset.l10nId="annotation_date_string",u.dataset.l10nArgs=JSON.stringify({date:c.toLocaleDateString(),time:c.toLocaleTimeString()}),t.appendChild(u)}var h=this._formatContents(this.contents);return t.appendChild(h),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}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),n=e.split(/(?:\r\n?|\n)/),r=0,i=n.length;r<i;++r){var a=n[r];t.appendChild(document.createTextNode(a)),r<i-1&&t.appendChild(document.createElement("br"))}return t}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),e}(),B=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return A(n,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),I=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return A(n,[{key:"render",value:function(){this.container.className="lineAnnotation";var 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}}]),n}(),M=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return A(n,[{key:"render",value:function(){this.container.className="squareAnnotation";var 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}}]),n}(),P=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return A(n,[{key:"render",value:function(){this.container.className="circleAnnotation";var 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}}]),n}(),D=function(e){c(n,v);var t=h(n);function n(e){var r;p(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return(r=t.call(this,e,i,!0)).containerClassName="polylineAnnotation",r.svgElementName="svg:polyline",r}return A(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,n=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],i=this.svgFactory.create(n,r),o=[],s=a(t.vertices);try{for(s.s();!(e=s.n()).done;){var l=e.value,c=l.x-t.rect[0],u=t.rect[3]-l.y;o.push(c+","+u)}}catch(e){s.e(e)}finally{s.f()}o=o.join(" ");var h=this.svgFactory.createElement(this.svgElementName);return h.setAttribute("points",o),h.setAttribute("stroke-width",t.borderStyle.width||1),h.setAttribute("stroke","transparent"),h.setAttribute("fill","none"),i.appendChild(h),this.container.append(i),this._createPopup(this.container,h,t),this.container}}]),n}(),F=function(e){c(n,D);var t=h(n);function n(e){var r;return p(this,n),(r=t.call(this,e)).containerClassName="polygonAnnotation",r.svgElementName="svg:polygon",r}return n}(),O=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return A(n,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),L=function(e){c(n,v);var t=h(n);function n(e){var r;p(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return(r=t.call(this,e,i,!0)).containerClassName="inkAnnotation",r.svgElementName="svg:polyline",r}return A(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,n=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],i=this.svgFactory.create(n,r),o=a(t.inkLists);try{for(o.s();!(e=o.n()).done;){var s,l=[],c=a(e.value);try{for(c.s();!(s=c.n()).done;){var u=s.value,h=u.x-t.rect[0],d=t.rect[3]-u.y;l.push("".concat(h,",").concat(d))}}catch(e){c.e(e)}finally{c.f()}l=l.join(" ");var f=this.svgFactory.createElement(this.svgElementName);f.setAttribute("points",l),f.setAttribute("stroke-width",t.borderStyle.width||1),f.setAttribute("stroke","transparent"),f.setAttribute("fill","none"),this._createPopup(this.container,f,t),i.appendChild(f)}}catch(e){o.e(e)}finally{o.f()}return this.container.append(i),this.container}}]),n}(),R=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return A(n,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),N=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return A(n,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),U=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return A(n,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),j=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return A(n,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),H=function(e){c(n,v);var t=h(n);function n(e){p(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return A(n,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(),z=function(e){c(n,v);var t=h(n);function n(e){var a;p(this,n);var o=(a=t.call(this,e,!0)).data.file,s=o.filename,l=o.content;return a.filename=(0,r.getFilenameFromUrl)(s),a.content=l,a.linkService.eventBus&&a.linkService.eventBus.dispatch("fileattachmentannotation",{source:d(a),id:(0,i.stringToPDFString)(s),filename:s,content:l}),a}return A(n,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var 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}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,i.warn)("Download cannot be started due to unavailable download manager")}}]),n}(),Q=function(){function e(){p(this,e)}return A(e,null,[{key:"render",value:function(e){var t,n=[],o=[],s=a(e.annotations);try{for(s.s();!(t=s.n()).done;){var l=t.value;l&&(l.annotationType!==i.AnnotationType.POPUP?n.push(l):o.push(l))}}catch(e){s.e(e)}finally{s.f()}o.length&&n.push.apply(n,o);for(var c=0,u=n;c<u.length;c++){var h=u[c],d=m.create({data:h,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});d.isRenderable&&e.div.appendChild(d.render())}}},{key:"update",value:function(e){var t,n=a(e.annotations);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=e.div.querySelector('[data-annotation-id="'.concat(r.id,'"]'));i&&(i.style.transform="matrix(".concat(e.viewport.transform.join(","),")"))}}catch(e){n.e(e)}finally{n.f()}e.div.removeAttribute("hidden")}}]),e}();t.AnnotationLayer=Q},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var r=n(5),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,d,f=Math.sqrt(l[2]*l[2]+l[3]*l[3]),p=f;u.ascent?p=u.ascent*p:u.descent&&(p=(1+u.descent)*p),0===c?(h=l[4],d=l[5]-p):(h=l[4]+p*Math.sin(c),d=l[5]-p*Math.cos(c)),o.style.left="".concat(h,"px"),o.style.top="".concat(d,"px"),o.style.fontSize="".concat(f,"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));var g=!1;if(n.str.length>1)g=!0;else if(n.transform[0]!==n.transform[3]){var A=Math.abs(n.transform[0]),m=Math.abs(n.transform[3]);A!==m&&Math.max(A,m)/Math.min(A,m)>1.5&&(g=!0)}if(g&&(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 v=1,y=0;0!==c&&(v=Math.cos(c),y=Math.sin(c));var b,_,w=(u.vertical?n.height:n.width)*e._viewport.scale,x=f;0!==c?(b=[v,y,-y,v,h,d],_=r.Util.getAxialAlignedBoundingBox([0,0,w,x],b)):_=[h,d,h+w,d+x],e._bounds.push({left:_[0],top:_[1],right:_[2],bottom:_[3],div:o,size:[w,x],m:b})}}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){for(var r=0,i=0;i<n;i++){var a=e[t++];a>0&&(r=r?Math.min(a,r):a)}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],g=[[0,0],[0,h.size[1]],[h.size[0],0],h.size],A=new Float64Array(64);g.forEach(function(e,t){var n=r.Util.applyTransform(e,d);A[t+0]=f&&(u.left-n[0])/f,A[t+4]=p&&(u.top-n[1])/p,A[t+8]=f&&(u.right-n[0])/f,A[t+12]=p&&(u.bottom-n[1])/p,A[t+16]=p&&(u.left-n[0])/-p,A[t+20]=f&&(u.top-n[1])/f,A[t+24]=p&&(u.right-n[0])/-p,A[t+28]=f&&(u.bottom-n[1])/f,A[t+32]=f&&(u.left-n[0])/-f,A[t+36]=p&&(u.top-n[1])/-p,A[t+40]=f&&(u.right-n[0])/-f,A[t+44]=p&&(u.bottom-n[1])/-p,A[t+48]=p&&(u.left-n[0])/p,A[t+52]=f&&(u.top-n[1])/-f,A[t+56]=p&&(u.right-n[0])/p,A[t+60]=f&&(u.bottom-n[1])/-f});var m=1+Math.min(Math.abs(f),Math.abs(p));c.paddingLeft=a(A,32,16)/m,c.paddingTop=a(A,48,16)/m,c.paddingRight=a(A,0,16)/m,c.paddingBottom=a(A,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(e){var t=this,n=e.textContent,i=e.textContentStream,a=e.container,o=e.viewport,s=e.textDivs,l=e.textContentItemsStr,c=e.enhanceTextSelection;this._textContent=n,this._textContentStream=i,this._container=a,this._viewport=o,this._textDivs=s||[],this._textContentItemsStr=l||[],this._enhanceTextSelection=!!c,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,r.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){t._layoutTextCtx&&(t._layoutTextCtx.canvas.width=0,t._layoutTextCtx.canvas.height=0,t._layoutTextCtx=null)}).catch(function(){})}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:function(e,t){for(var r=0,i=e.length;r<i;r++)this._textContentItemsStr.push(e[r].str),n(this,e[r],t)},_layoutText:function(e){var t=this._textDivProperties.get(e);if(!t.isWhitespace){var n="";if(0!==t.canvasWidth){var r=e.style,i=r.fontSize,a=r.fontFamily;i===this._layoutTextLastFontSize&&a===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(i," ").concat(a),this._layoutTextLastFontSize=i,this._layoutTextLastFontFamily=a);var o=this._layoutTextCtx.measureText(e.textContent).width;o>0&&(t.scale=t.canvasWidth/o,n="scaleX(".concat(t.scale,")"))}0!==t.angle&&(n="rotate(".concat(t.angle,"deg) ").concat(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){var t=this,n=(0,r.createPromiseCapability)(),a=Object.create(null),o=document.createElement("canvas");if(o.mozOpaque=!0,this._layoutTextCtx=o.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,l=this._textContent.styles;this._processItems(s,l),n.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function e(){t._reader.read().then(function(r){var i=r.value;r.done?n.resolve():(Object.assign(a,i.styles),t._processItems(i.items,a),e())},n.reject)}()}n.promise.then(function(){a=null,e?t._renderTimer=setTimeout(function(){i(t),t._renderTimer=null},e):i(t)},this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(o(this),this._bounds=null);for(var t=[],n=[],r=0,i=this._textDivs.length;r<i;r++){var a=this._textDivs[r],s=this._textDivProperties.get(a);s.isWhitespace||(e?(t.length=0,n.length=0,s.originalTransform&&t.push(s.originalTransform),s.paddingTop>0?(n.push("".concat(s.paddingTop,"px")),t.push("translateY(".concat(-s.paddingTop,"px)"))):n.push(0),s.paddingRight>0?n.push("".concat(s.paddingRight/s.scale,"px")):n.push(0),s.paddingBottom>0?n.push("".concat(s.paddingBottom,"px")):n.push(0),s.paddingLeft>0?(n.push("".concat(s.paddingLeft/s.scale,"px")),t.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):n.push(0),a.style.padding=n.join(" "),t.length&&(a.style.transform=t.join(" "))):(a.style.padding=null,a.style.transform=s.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(5),i=n(1),a=n(7);function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}var p=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=p;var g=function(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),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)},A=function(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(g(e[0])," ").concat(g(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(g(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(g(e[4])," ").concat(g(e[5]),")");return"matrix(".concat(g(e[0])," ").concat(g(e[1])," ").concat(g(e[2])," ").concat(g(e[3])," ").concat(g(e[4])," ")+"".concat(g(e[5]),")")},m={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},v=["butt","round","square"],y=["miter","round","bevel"],b=function(){for(var e=new Uint8Array([137,80,78,71,13,10,26,10]),t=12,n=new Int32Array(256),i=0;i<256;i++){for(var o=i,s=0;s<8;s++)o=1&o?3988292384^o>>1&2147483647:o>>1&2147483647;n[i]=o}function l(e,t,r,i){var a=i,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);var s=function(e,t,r){for(var i=-1,a=t;a<r;a++){var o=255&(i^e[a]);i=i>>>8^n[o]}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 c(e){var t=e.length,n=Math.ceil(t/65535),r=new Uint8Array(2+t+5*n+4),i=0;r[i++]=120,r[i++]=156;for(var a=0;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;var o=function(e,t,n){for(var r=1,i=0,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 u(n,i,o,s){var u,h,d,f=n.width,p=n.height,g=n.data;switch(i){case r.ImageKind.GRAYSCALE_1BPP:h=0,u=1,d=f+7>>3;break;case r.ImageKind.RGB_24BPP:h=2,u=8,d=3*f;break;case r.ImageKind.RGBA_32BPP:h=6,u=8,d=4*f;break;default:throw new Error("invalid format")}for(var A=new Uint8Array((1+d)*p),m=0,v=0,y=0;y<p;++y)A[m++]=0,A.set(g.subarray(v,v+d),m),v+=d,m+=d;if(i===r.ImageKind.GRAYSCALE_1BPP&&s){m=0;for(var b=0;b<p;b++){m++;for(var _=0;_<d;_++)A[m++]^=255}}var w=new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,p>>24&255,p>>16&255,p>>8&255,255&p,u,h,0,0,0]),x=function(e){if(!a.isNodeJS)return c(e);try{var t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);var 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 c(e)}(A),C=e.length+3*t+w.length+x.length,S=new Uint8Array(C),k=0;return S.set(e,k),l("IHDR",w,S,k+=e.length),l("IDATA",x,S,k+=t+w.length),k+=t+x.length,l("IEND",new Uint8Array(0),S,k),(0,r.createObjectURL)(S,"image/png",o)}return function(e,t,n){return u(e,void 0===e.kind?r.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}(),_=function(){function e(){h(this,e),this.fontSizeScale=1,this.fontWeight=m.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=m.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return f(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}(),w=0,x=0,C=0;t.SVGGraphics=p=function(){function e(t,n){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var o in h(this,e),this.svgFactory=new i.DOMSVGFactory,this.current=new _,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=n,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!a,this._operatorIdMapping=[],r.OPS)this._operatorIdMapping[r.OPS[o]]=o}return f(e,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,n=e.fnArray,i=e.argsArray,a=0,o=n.length;a<o;a++)if(n[a]===r.OPS.dependency){var s,c=l(i[a]);try{var u=function(){var e=s.value,n=e.startsWith("g_")?t.commonObjs:t.objs,r=new Promise(function(t){n.get(e,t)});t.current.dependencies.push(r)};for(c.s();!(s=c.n()).done;)u()}catch(e){c.e(e)}finally{c.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(e,t,n,i,a,o){var s=[e,t,n,i,a,o];this.transformMatrix=r.Util.transform(this.transformMatrix,s),this.tgrp=null}},{key:"getSVG",value:function(e,t){var n=this;this.viewport=t;var i=this._initialize(t);return this.loadDependencies(e).then(function(){return n.transformMatrix=r.IDENTITY_MATRIX,n.executeOpTree(n.convertOpList(e)),i})}},{key:"convertOpList",value:function(e){for(var t=this._operatorIdMapping,n=e.argsArray,r=e.fnArray,i=[],a=0,o=r.length;a<o;a++){var s=r[a];i.push({fnId:s,fn:t[s],args:n[a]})}return function(e){var t,n=[],r=[],i=l(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;"save"!==a.fn?"restore"===a.fn?n=r.pop():n.push(a):(n.push({fnId:92,fn:"group",items:[]}),r.push(n),n=n[n.length-1].items)}}catch(e){i.e(e)}finally{i.f()}return n}(i)}},{key:"executeOpTree",value:function(e){var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,a=i.fn,o=i.fnId,s=i.args;switch(0|o){case r.OPS.beginText:this.beginText();break;case r.OPS.dependency:break;case r.OPS.setLeading:this.setLeading(s);break;case r.OPS.setLeadingMoveText:this.setLeadingMoveText(s[0],s[1]);break;case r.OPS.setFont:this.setFont(s);break;case r.OPS.showText:case r.OPS.showSpacedText:this.showText(s[0]);break;case r.OPS.endText:this.endText();break;case r.OPS.moveText:this.moveText(s[0],s[1]);break;case r.OPS.setCharSpacing:this.setCharSpacing(s[0]);break;case r.OPS.setWordSpacing:this.setWordSpacing(s[0]);break;case r.OPS.setHScale:this.setHScale(s[0]);break;case r.OPS.setTextMatrix:this.setTextMatrix(s[0],s[1],s[2],s[3],s[4],s[5]);break;case r.OPS.setTextRise:this.setTextRise(s[0]);break;case r.OPS.setTextRenderingMode:this.setTextRenderingMode(s[0]);break;case r.OPS.setLineWidth:this.setLineWidth(s[0]);break;case r.OPS.setLineJoin:this.setLineJoin(s[0]);break;case r.OPS.setLineCap:this.setLineCap(s[0]);break;case r.OPS.setMiterLimit:this.setMiterLimit(s[0]);break;case r.OPS.setFillRGBColor:this.setFillRGBColor(s[0],s[1],s[2]);break;case r.OPS.setStrokeRGBColor:this.setStrokeRGBColor(s[0],s[1],s[2]);break;case r.OPS.setStrokeColorN:this.setStrokeColorN(s);break;case r.OPS.setFillColorN:this.setFillColorN(s);break;case r.OPS.shadingFill:this.shadingFill(s[0]);break;case r.OPS.setDash:this.setDash(s[0],s[1]);break;case r.OPS.setRenderingIntent:this.setRenderingIntent(s[0]);break;case r.OPS.setFlatness:this.setFlatness(s[0]);break;case r.OPS.setGState:this.setGState(s[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(s[0]);break;case r.OPS.paintInlineImageXObject:this.paintInlineImageXObject(s[0]);break;case r.OPS.paintImageMaskXObject:this.paintImageMaskXObject(s[0]);break;case r.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(s[0],s[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(s[0],s[1],s[2],s[3],s[4],s[5]);break;case r.OPS.constructPath:this.constructPath(s[0],s[1]);break;case r.OPS.endPath:this.endPath();break;case 92:this.group(i.items);break;default:(0,r.warn)("Unimplemented operator ".concat(a))}}}catch(e){n.e(e)}finally{n.f()}}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(e,t,n,r,i,a){var 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","".concat(g(o.fontSize),"px")),o.tspan.setAttributeNS(null,"y",g(-o.y)),o.txtElement=this.svgFactory.createElement("svg:text"),o.txtElement.appendChild(o.tspan)}},{key:"beginText",value:function(){var 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=[]}},{key:"moveText",value:function(e,t){var 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","".concat(g(n.fontSize),"px")),n.tspan.setAttributeNS(null,"y",g(-n.y))}},{key:"showText",value:function(e){var t=this.current,n=t.font,i=t.fontSize;if(0!==i){var a,o=t.fontSizeScale,s=t.charSpacing,c=t.wordSpacing,u=t.fontDirection,h=t.textHScale*u,d=n.vertical,f=d?1:-1,p=n.defaultVMetrics,v=i*t.fontMatrix[0],y=0,b=l(e);try{for(b.s();!(a=b.n()).done;){var _=a.value;if(null!==_)if((0,r.isNum)(_))y+=f*_*i/1e3;else{var w=(_.isSpace?c:0)+s,x=_.fontChar,C=void 0,S=void 0,k=_.width;if(d){var E=void 0,T=_.vmetric||p;E=-(E=_.vmetric?T[1]:.5*k)*v;var B=T[2]*v;k=T?-T[0]:k,C=E/o,S=(y+B)/o}else C=y/o,S=0;(_.isInFont||n.missingFile)&&(t.xcoords.push(t.x+C),d&&t.ycoords.push(-t.y+S),t.tspan.textContent+=x);y+=d?k*v-w*u:k*v+w*u}else y+=u*c}}catch(e){b.e(e)}finally{b.f()}t.tspan.setAttributeNS(null,"x",t.xcoords.map(g).join(" ")),d?t.tspan.setAttributeNS(null,"y",t.ycoords.map(g).join(" ")):t.tspan.setAttributeNS(null,"y",g(-t.y)),d?t.y-=y:t.x+=y*h,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(g(t.fontSize),"px")),t.fontStyle!==m.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==m.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);var I=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;if(I===r.TextRenderingMode.FILL||I===r.TextRenderingMode.FILL_STROKE?(t.fillColor!==m.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===r.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),I===r.TextRenderingMode.STROKE||I===r.TextRenderingMode.FILL_STROKE){var M=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,M)}var P=t.textMatrix;0!==t.textRise&&((P=P.slice())[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(A(P)," scale(").concat(g(h),", -1)")),t.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.txtElement.appendChild(t.tspan),t.txtgrp.appendChild(t.txtElement),this._ensureTransformGroup().appendChild(t.txtElement)}}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"addFontStyle",value:function(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));var t=(0,r.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}},{key:"setFont",value:function(e){var t=this.current,n=this.commonObjs.get(e[0]),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;var a="normal";n.black?a="900":n.bold&&(a="bold");var 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",g(-t.y)),t.xcoords=[],t.ycoords=[]}},{key:"endText",value:function(){var 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())}},{key:"setLineWidth",value:function(e){e>0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=v[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=y[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,n){this.current.strokeColor=r.Util.makeCssRgb(e,t,n)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(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=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var 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)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],n=e[2],i=e[3]||r.IDENTITY_MATRIX,a=s(e[4],4),l=a[0],c=a[1],u=a[2],h=a[3],d=e[5],f=e[6],p=e[7],g="shading".concat(C++),A=s(r.Util.applyTransform([l,c],i),2),m=A[0],v=A[1],y=s(r.Util.applyTransform([u,h],i),2),b=y[0],_=y[1],w=s(r.Util.singularValueDecompose2dScale(i),2),x=d*w[0],S=f*w[1],k=this.svgFactory.createElement("svg:pattern");k.setAttributeNS(null,"id",g),k.setAttributeNS(null,"patternUnits","userSpaceOnUse"),k.setAttributeNS(null,"width",x),k.setAttributeNS(null,"height",S),k.setAttributeNS(null,"x","".concat(m)),k.setAttributeNS(null,"y","".concat(v));var E=this.svg,T=this.transformMatrix,B=this.current.fillColor,I=this.current.strokeColor,M=this.svgFactory.create(b-m,_-v);if(this.svg=M,this.transformMatrix=i,2===p){var P=r.Util.makeCssRgb.apply(r.Util,o(t));this.current.fillColor=P,this.current.strokeColor=P}return this.executeOpTree(this.convertOpList(n)),this.svg=E,this.transformMatrix=T,this.current.fillColor=B,this.current.strokeColor=I,k.appendChild(M.childNodes[0]),this.defs.appendChild(k),"url(#".concat(g,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,n="shading".concat(C++),i=e[3];switch(e[1]){case"axial":var a=e[4],o=e[5];(t=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",a[0]),t.setAttributeNS(null,"y1",a[1]),t.setAttributeNS(null,"x2",o[0]),t.setAttributeNS(null,"y2",o[1]);break;case"radial":var s=e[4],c=e[5],u=e[6],h=e[7];(t=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",c[0]),t.setAttributeNS(null,"cy",c[1]),t.setAttributeNS(null,"r",h),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",u);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var d,f=l(i);try{for(f.s();!(d=f.n()).done;){var p=d.value,g=this.svgFactory.createElement("svg:stop");g.setAttributeNS(null,"offset",p[0]),g.setAttributeNS(null,"stop-color",p[1]),t.appendChild(g)}}catch(e){f.e(e)}finally{f.f()}return this.defs.appendChild(t),"url(#".concat(n,")");case"Mesh":return(0,r.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var n,i=this.current,a=i.x,o=i.y,s=[],c=0,u=l(e);try{for(u.s();!(n=u.n()).done;){switch(0|n.value){case r.OPS.rectangle:a=t[c++],o=t[c++];var h=a+t[c++],d=o+t[c++];s.push("M",g(a),g(o),"L",g(h),g(o),"L",g(h),g(d),"L",g(a),g(d),"Z");break;case r.OPS.moveTo:a=t[c++],o=t[c++],s.push("M",g(a),g(o));break;case r.OPS.lineTo:a=t[c++],o=t[c++],s.push("L",g(a),g(o));break;case r.OPS.curveTo:a=t[c+4],o=t[c+5],s.push("C",g(t[c]),g(t[c+1]),g(t[c+2]),g(t[c+3]),g(a),g(o)),c+=6;break;case r.OPS.curveTo2:s.push("C",g(a),g(o),g(t[c]),g(t[c+1]),g(t[c+2]),g(t[c+3])),a=t[c+2],o=t[c+3],c+=4;break;case r.OPS.curveTo3:a=t[c+2],o=t[c+3],s.push("C",g(t[c]),g(t[c+1]),g(a),g(o),g(a),g(o)),c+=4;break;case r.OPS.closePath:s.push("Z")}}}catch(e){u.e(e)}finally{u.f()}s=s.join(" "),i.path&&e.length>0&&e[0]!==r.OPS.rectangle&&e[0]!==r.OPS.moveTo?s=i.path.getAttributeNS(null,"d")+s:(i.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(i.path)),i.path.setAttributeNS(null,"d",s),i.path.setAttributeNS(null,"fill","none"),i.element=i.path,i.setCurrentPoint(a,o)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(w++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",A(this.transformMatrix));var 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(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var i=s(t.value,2),a=i[0],o=i[1];switch(a){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o);break;case"CA":this.setStrokeAlpha(o);break;case"ca":this.setFillAlpha(o);break;default:(0,r.warn)("Unimplemented graphic state operator ".concat(a))}}}catch(e){n.e(e)}finally{n.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.current,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",g(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",g(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(g).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",g(t*n.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var 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)}},{key:"paintImageXObject",value:function(e){var t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var n=e.width,r=e.height,i=b(e,this.forceDataSchema,!!t),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",g(n)),a.setAttributeNS(null,"height",g(r)),this.current.element=a,this.clip("nonzero");var o=this.svgFactory.createElement("svg:image");o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",g(-r)),o.setAttributeNS(null,"width",g(n)+"px"),o.setAttributeNS(null,"height",g(r)+"px"),o.setAttributeNS(null,"transform","scale(".concat(g(1/n)," ").concat(g(-1/r),")")),t?t.appendChild(o):this._ensureTransformGroup().appendChild(o)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,n=e.width,r=e.height,i=t.fillColor;t.maskId="mask".concat(x++);var a=this.svgFactory.createElement("svg:mask");a.setAttributeNS(null,"id",t.maskId);var o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",g(n)),o.setAttributeNS(null,"height",g(r)),o.setAttributeNS(null,"fill",i),o.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(a),this._ensureTransformGroup().appendChild(o),this.paintInlineImageXObject(e,a)}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var n=t[2]-t[0],r=t[3]-t[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",t[0]),i.setAttributeNS(null,"y",t[1]),i.setAttributeNS(null,"width",g(n)),i.setAttributeNS(null,"height",g(r)),this.current.element=i,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.appendChild(n),this.defs=n;var r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",A(e.transform)),t.appendChild(r),this.svg=r,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var 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}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",A(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},a=n(5),o=n(213);function s(e){"@babel/helpers - typeof";return(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})(e)}function l(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&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(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=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===s(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 h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function f(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){d(a,r,i,o,s,"next",e)}function s(e){d(a,r,i,o,s,"throw",e)}o(void 0)})}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 A(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}var m=__webpack_require__(1),v=__webpack_require__(2),y=__webpack_require__(3),b=__webpack_require__(4),_=/^file:\/\/\/[a-zA-Z]:\//;var w=function(){function e(t){var n,r;p(this,e),this.source=t,this.url=(n=t.url,"file:"===(r=b.parse(n)).protocol||r.host?r:/^[a-z]:[/\\]/i.test(n)?b.parse("file:///".concat(n)):(r.host||(r.protocol="file:"),r)),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return A(e,[{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new T(this):new k(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=this.isFsUrl?new B(this,e,t):new E(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFNodeStream=w;var x=function(){function e(t){p(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var n=t.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)(),this._headersCapability=(0,a.createPromiseCapability)()}return A(e,[{key:"read",value:function(){var e=f(i.default.mark(function e(){var t,n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,a.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),n=new Uint8Array(t).buffer,e.abrupt("return",{value:n,done:!1});case 14:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",function(){t._readCapability.resolve()}),e.on("end",function(){e.destroy(),t._done=!0,t._readCapability.resolve()}),e.on("error",function(e){t._error(e)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new a.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),C=function(){function e(t){p(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)();var n=t.source;this._isStreamingSupported=!n.disableStream}return A(e,[{key:"read",value:function(){var e=f(i.default.mark(function e(){var t,n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,a.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),n=new Uint8Array(t).buffer,e.abrupt("return",{value:n,done:!1});case 14:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",function(){t._readCapability.resolve()}),e.on("end",function(){e.destroy(),t._done=!0,t._readCapability.resolve()}),e.on("error",function(e){t._error(e)}),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}();function S(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var k=function(e){l(n,x);var t=u(n);function n(e){var r;p(this,n);var i=function(t){if(404===t.statusCode){var n=new a.MissingPDFException('Missing PDF "'.concat(r._url,'".'));return r._storedError=n,void r._headersCapability.reject(n)}r._headersCapability.resolve(),r._setReadableStream(t);var i=function(e){return r._readableStream.headers[e.toLowerCase()]},s=(0,o.validateRangeRequestCapabilities)({getResponseHeader:i,isHttp:e.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),l=s.allowRangeRequests,c=s.suggestedLength;r._isRangeSupported=l,r._contentLength=c||r._contentLength,r._filename=(0,o.extractFilenameFromHeader)(i)};return(r=t.call(this,e))._request=null,"http:"===r._url.protocol?r._request=v.request(S(r._url,e.httpHeaders),i):r._request=y.request(S(r._url,e.httpHeaders),i),r._request.on("error",function(e){r._storedError=e,r._headersCapability.reject(e)}),r._request.end(),r}return n}(),E=function(e){l(n,C);var t=u(n);function n(e,r,i){var o;for(var s in p(this,n),(o=t.call(this,e))._httpHeaders={},e.httpHeaders){var l=e.httpHeaders[s];void 0!==l&&(o._httpHeaders[s]=l)}o._httpHeaders.Range="bytes=".concat(r,"-").concat(i-1);var c=function(e){if(404!==e.statusCode)o._setReadableStream(e);else{var t=new a.MissingPDFException('Missing PDF "'.concat(o._url,'".'));o._storedError=t}};return o._request=null,"http:"===o._url.protocol?o._request=v.request(S(o._url,o._httpHeaders),c):o._request=y.request(S(o._url,o._httpHeaders),c),o._request.on("error",function(e){o._storedError=e}),o._request.end(),o}return n}(),T=function(e){l(n,x);var t=u(n);function n(e){var r;p(this,n),r=t.call(this,e);var i=decodeURIComponent(r._url.path);return _.test(r._url.href)&&(i=i.replace(/^\//,"")),m.lstat(i,function(e,t){if(e)return"ENOENT"===e.code&&(e=new a.MissingPDFException('Missing PDF "'.concat(i,'".'))),r._storedError=e,void r._headersCapability.reject(e);r._contentLength=t.size,r._setReadableStream(m.createReadStream(i)),r._headersCapability.resolve()}),r}return n}(),B=function(e){l(n,C);var t=u(n);function n(e,r,i){var a;p(this,n),a=t.call(this,e);var o=decodeURIComponent(a._url.path);return _.test(a._url.href)&&(o=o.replace(/^\//,"")),a._setReadableStream(m.createReadStream(o,{start:r,end:i-1})),a}return n}()},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){var t=e("Content-Disposition");if(t){var n=(0,i.getFilenameFromContentDispositionHeader)(t);if(n.includes("%"))try{n=decodeURIComponent(n)}catch(e){}if(/\.pdf$/i.test(n))return n}return null},t.validateRangeRequestCapabilities=function(e){var t=e.getResponseHeader,n=e.isHttp,i=e.rangeChunkSize,a=e.disableRange;(0,r.assert)(i>0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);if(!Number.isInteger(s))return o;if(o.suggestedLength=s,s<=2*i)return o;if(a||!n)return o;if("bytes"!==t("Accept-Ranges"))return o;if("identity"!==(t("Content-Encoding")||"identity"))return o;return o.allowRangeRequests=!0,o},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(5),i=n(214)},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){var t=!0,n=s("filename\\*","i").exec(e);if(n){var i=u(n=n[1]);return c(i=d(i=h(i=unescape(i))))}if(n=function(e){for(var t,n=[],i=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(t=i.exec(e));){var a=t,o=r(a,4),l=o[1],c=o[2],d=o[3];if((l=parseInt(l,10))in n){if(0===l)break}else n[l]=[c,d]}for(var f=[],p=0;p<n.length&&p in n;++p){var g=r(n[p],2),A=g[0],m=g[1];m=u(m),A&&(m=unescape(m),0===p&&(m=h(m))),f.push(m)}return f.join("")}(e)){var a=d(n);return c(a)}if(n=s("filename","i").exec(e)){var o=u(n=n[1]);return c(o=d(o))}function s(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function l(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{var 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 c(e){return t&&/[\x80-\xff]/.test(e)&&(e=l("utf-8",e),t&&(e=l("iso-8859-1",e))),e}function u(e){if(e.startsWith('"')){for(var t=e.slice(1).split('\\"'),n=0;n<t.length;++n){var r=t[n].indexOf('"');-1!==r&&(t[n]=t[n].slice(0,r),t.length=n+1),t[n]=t[n].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function h(e){var t=e.indexOf("'");if(-1===t)return e;var n=e.slice(0,t),r=e.slice(t+1),i=r.replace(/^[^']*'/,"");return l(n,i)}function d(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))}),l(t,r);try{r=atob(r)}catch(e){}return l(t,r)})}return""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},a=n(5),o=n(213);function s(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){s(a,r,i,o,l,"next",e)}function l(e){s(a,r,i,o,l,"throw",e)}o(void 0)})}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 h(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}var d=function(){function e(t,n){c(this,e),this.url=t,n=n||{},this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&n.httpHeaders||{},this.withCredentials=n.withCredentials||!1,this.getXhr=n.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return h(e,[{key:"requestRange",value:function(e,t,n){var r={begin:e,end:t};for(var i in n)r[i]=n[i];return this.request(r)}},{key:"requestFull",value:function(e){return this.request(e)}},{key:"request",value:function(e){var t=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};for(var i in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var a=this.httpHeaders[i];void 0!==a&&t.setRequestHeader(i,a)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),r.expectedStatus=206):r.expectedStatus=200,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}},{key:"onProgress",value:function(e,t){var n=this.pendingRequests[e];n&&n.onProgress&&n.onProgress(t)}},{key:"onStateChange",value:function(e,t){var n=this.pendingRequests[e];if(n){var r=n.xhr;if(r.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4===r.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===r.status&&this.isHttp)n.onError&&n.onError(r.status);else{var i=r.status||200;if(200===i&&206===n.expectedStatus||i===n.expectedStatus){var o=function(e){var t=e.response;return"string"!=typeof t?t:(0,a.stringToBytes)(t).buffer}(r);if(206===i){var s=r.getResponseHeader("Content-Range"),l=/bytes (\d+)-(\d+)\/(\d+)/.exec(s);n.onDone({begin:parseInt(l[1],10),chunk:o})}else o?n.onDone({begin:0,chunk:o}):n.onError&&n.onError(r.status)}else n.onError&&n.onError(r.status)}}}},{key:"hasPendingRequests",value:function(){for(var e in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),f=function(){function e(t){c(this,e),this._source=t,this._manager=new d(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return h(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new p(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var n=new g(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}}]),e}();t.PDFNetworkStream=f;var p=function(){function e(t,n){c(this,e),this._manager=t;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._fullRequestId=t.requestFull(r),this._headersReceivedCapability=(0,a.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return h(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=function(e){return t.getResponseHeader(e)},r=(0,o.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=r.allowRangeRequests,a=r.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):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=[])}},{key:"_onError",value:function(e){var t=this._url,n=(0,o.createResponseStatusError)(e,t);this._storedError=n,this._headersReceivedCapability.reject(n),this._requests.forEach(function(e){e.reject(n)}),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"read",value:function(){var e=l(i.default.mark(function e(){var t,n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return n=(0,a.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 10:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(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}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),e}(),g=function(){function e(t,n,r){c(this,e),this._manager=t;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(n,r,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return h(e,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(e){var t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t;this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}},{key:"_onProgress",value:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}},{key:"read",value:function(){var e=l(i.default.mark(function e(){var t,n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,a.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(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()}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},a=n(5),o=n(213);function s(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){s(a,r,i,o,l,"next",e)}function l(e){s(a,r,i,o,l,"throw",e)}o(void 0)})}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 h(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function d(e,t,n){return{method:"GET",headers:e,signal:n&&n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function f(e){var t=new Headers;for(var n in e){var r=e[n];void 0!==r&&t.append(n,r)}return t}var p=function(){function e(t){c(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return h(e,[{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new g(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new A(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFFetchStream=p;var g=function(){function e(t){var n=this;c(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var r=t.source;this._withCredentials=r.withCredentials||!1,this._contentLength=r.length,this._headersCapability=(0,a.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._headers=f(this._stream.httpHeaders);var i=r.url;fetch(i,d(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,i);n._reader=e.body.getReader(),n._headersCapability.resolve();var t=function(t){return e.headers.get(t)},r=(0,o.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:n._stream.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),s=r.allowRangeRequests,l=r.suggestedLength;n._isRangeSupported=s,n._contentLength=l||n._contentLength,n._filename=(0,o.extractFilenameFromHeader)(t),!n._isStreamingSupported&&n._isRangeSupported&&n.cancel(new a.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return h(e,[{key:"read",value:function(){var e=l(i.default.mark(function e(){var t,n,r,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,n=t.value,!(r=t.done)){e.next=9;break}return e.abrupt("return",{value:n,done:r});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),a=new Uint8Array(n).buffer,e.abrupt("return",{value:a,done:!1});case 13:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),A=function(){function e(t,n,r){var i=this;c(this,e),this._stream=t,this._reader=null,this._loaded=0;var s=t.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,a.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=f(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(n,"-").concat(r-1));var l=s.url;fetch(l,d(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,l);i._readCapability.resolve(),i._reader=e.body.getReader()}),this.onProgress=null}return h(e,[{key:"read",value:function(){var e=l(i.default.mark(function e(){var t,n,r,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,n=t.value,!(r=t.done)){e.next=9;break}return e.abrupt("return",{value:n,done:r});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),a=new Uint8Array(n).buffer,e.abrupt("return",{value:a,done:!1});case 13:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}()}])},module.exports=factory()}).call(exports,__webpack_require__("EuP9").Buffer,__webpack_require__("lNQ5"),__webpack_require__("DuR2"))},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=108)}({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})},108:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])};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))}},"S/pY":function(e,t,n){"use strict";var r=n("+N5+").isWhiteSpace,i=n("+N5+").isPunctChar,a=n("+N5+").isMdAsciiPunct,o=/['"]/,s=/['"]/g,l="’";function c(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function u(e,t){var n,o,u,h,d,f,p,g,A,m,v,y,b,_,w,x,C,S,k,E,T;for(k=[],n=0;n<e.length;n++){for(o=e[n],p=e[n].level,C=k.length-1;C>=0&&!(k[C].level<=p);C--);if(k.length=C+1,"text"===o.type){d=0,f=(u=o.content).length;e:for(;d<f&&(s.lastIndex=d,h=s.exec(u));){if(w=x=!0,d=h.index+1,S="'"===h[0],A=32,h.index-1>=0)A=u.charCodeAt(h.index-1);else for(C=n-1;C>=0&&("softbreak"!==e[C].type&&"hardbreak"!==e[C].type);C--)if(e[C].content){A=e[C].content.charCodeAt(e[C].content.length-1);break}if(m=32,d<f)m=u.charCodeAt(d);else for(C=n+1;C<e.length&&("softbreak"!==e[C].type&&"hardbreak"!==e[C].type);C++)if(e[C].content){m=e[C].content.charCodeAt(0);break}if(v=a(A)||i(String.fromCharCode(A)),y=a(m)||i(String.fromCharCode(m)),b=r(A),(_=r(m))?w=!1:y&&(b||v||(w=!1)),b?x=!1:v&&(_||y||(x=!1)),34===m&&'"'===h[0]&&A>=48&&A<=57&&(x=w=!1),w&&x&&(w=v,x=y),w||x){if(x)for(C=k.length-1;C>=0&&(g=k[C],!(k[C].level<p));C--)if(g.single===S&&k[C].level===p){g=k[C],S?(E=t.md.options.quotes[2],T=t.md.options.quotes[3]):(E=t.md.options.quotes[0],T=t.md.options.quotes[1]),o.content=c(o.content,h.index,T),e[g.token].content=c(e[g.token].content,g.pos,E),d+=T.length-1,g.token===n&&(d+=E.length-1),f=(u=o.content).length,k.length=C;continue e}w?k.push({token:n,pos:h.index,single:S,level:p}):x&&S&&(o.content=c(o.content,h.index,l))}else S&&(o.content=c(o.content,h.index,l))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&o.test(e.tokens[t].content)&&u(e.tokens[t].children,e)}},S82l:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},SFHI:function(e,t,n){"use strict";var r=n("BldQ"),i=[["table",n("efRz"),["paragraph","reference"]],["code",n("UDBF")],["fence",n("i0+k"),["paragraph","reference","blockquote","list"]],["blockquote",n("M+GW"),["paragraph","reference","blockquote","list"]],["hr",n("tNJR"),["paragraph","reference","blockquote","list"]],["list",n("aBKc"),["paragraph","reference","blockquote"]],["reference",n("u8ag")],["html_block",n("4aIT"),["paragraph","reference","blockquote"]],["heading",n("pgii"),["paragraph","reference","blockquote"]],["lheading",n("xyVx")],["paragraph",n("FCB1")]];function a(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1],{alt:(i[e][2]||[]).slice()})}a.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),a=i.length,o=t,s=!1,l=e.md.options.maxNesting;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n))&&!(e.sCount[o]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<a&&!i[r](e,o,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(o=e.line)<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},a.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},a.prototype.State=n("QHhf"),e.exports=a},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=79)}({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")},79: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",g={},A={};A[o]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(M([])));v&&v!==r&&i.call(v,o)&&(A=v);var y=C.prototype=w.prototype=Object.create(A);x.prototype=y.constructor=C,C.constructor=x,C[l]=x.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(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(B),!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,g):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),g},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),B(n),g}},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;B(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),g}}}function b(e,t,n,r){var i=t&&t.prototype instanceof w?t:w,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 P()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=E(o,n);if(s){if(s===g)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=_(e,t,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===g)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 _(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function w(){}function x(){}function C(){}function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function 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=_(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 E(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,E(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=_(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;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,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function T(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 B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,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:P}}function P(){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},TMZu:function(e,t,n){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},TNV1:function(e,t,n){"use strict";var r=n("cGG2"),i=n("KCLY");e.exports=function(e,t,n){var a=this||i;return r.forEach(n,function(n){e=n.call(a,e,t)}),e}},TUzn:function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},TcQ7:function(e,t,n){var r=n("MU5D"),i=n("52gC");e.exports=function(e){return r(i(e))}},TilA:function(e,t,n){"use strict";var r={};function i(e,t,n){var a,o,s,l,c,u="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)i[e.charCodeAt(t)]=e[t];return i}(t),a=0,o=e.length;a<o;a++)if(s=e.charCodeAt(a),n&&37===s&&a+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3)))u+=e.slice(a,a+3),a+=2;else if(s<128)u+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1<o&&(l=e.charCodeAt(a+1))>=56320&&l<=57343){u+=encodeURIComponent(e[a]+e[a+1]),a++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[a]);return u}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},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++]),g=h?i(p).concat(h(p)):i(p),A=g.length,m=0;A>m;)f=g[m++],r&&!d.call(p,f)||(n[f]=p[f]);return n}:c},To6e:function(e,t){function n(e){return new Int16Array(e)}function r(e){return new Int32Array(e)}function i(e){return new Float32Array(e)}var a={fill:function(e,t,n,r){if(2==arguments.length)for(var i=0;i<e.length;i++)e[i]=arguments[1];else for(i=t;i<n;i++)e[i]=r}},o={arraycopy:function(e,t,n,r,i){for(var a=t+i;t<a;)n[r++]=e[t++]},out:{}};o.out.println=function(e){console.log(e)},o.out.printf=function(){console.log.apply(console,arguments)};var s={};function l(e){this.ordinal=e}s.SQRT2=1.4142135623730951,s.FAST_LOG10=function(e){return Math.log10(e)},s.FAST_LOG10_X=function(e,t){return Math.log10(e)*t},l.short_block_allowed=new l(0),l.short_block_coupled=new l(1),l.short_block_dispensed=new l(2),l.short_block_forced=new l(3);var c={};function u(e){this.ordinal=e}c.MAX_VALUE=3.4028235e38,u.vbr_off=new u(0),u.vbr_mt=new u(1),u.vbr_rh=new u(2),u.vbr_abr=new u(3),u.vbr_mtrh=new u(4),u.vbr_default=u.vbr_mtrh;e.exports={System:o,VbrMode:u,Float:c,ShortBlock:l,Util:s,Arrays:a,new_array_n:function e(t){if(1==t.length)return new Array(t[0]);var n=t[0];t=t.slice(1);for(var r=[],i=0;i<n;i++)r.push(e(t));return r},new_byte:function(e){return new Int8Array(e)},new_double:function(e){return new Float64Array(e)},new_float:i,new_float_n:function e(t){if(1==t.length)return i(t[0]);var n=t[0];t=t.slice(1);for(var r=[],a=0;a<n;a++)r.push(e(t));return r},new_int:r,new_int_n:function e(t){if(1==t.length)return r(t[0]);var n=t[0];t=t.slice(1);for(var i=[],a=0;a<n;a++)i.push(e(t));return i},new_short:n,new_short_n:function e(t){if(1==t.length)return n(t[0]);var r=t[0];t=t.slice(1);for(var i=[],a=0;a<r;a++)i.push(e(t));return i},assert:function(e){}}},U3YJ:function(module,exports,__webpack_require__){var require,require,e;e=function(){var define,module,exports;return function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(!s&&("function"==typeof require&&require))return require(o,!0);if(a)return a(o,!0);throw new Error("Cannot find module '"+o+"'")}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){
  44. /*!
  45. * The buffer module from node.js, for the browser.
  46. *
  47. * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
  48. * @license MIT
  49. */
  50. var r=e("base64-js"),i=e("ieee754"),a=e("is-array");n.Buffer=s,n.SlowBuffer=s,n.INSPECT_MAX_BYTES=50,s.poolSize=8192;var o=1073741823;function s(e,t,n){if(!(this instanceof s))return new s(e,t,n);var r,i,l,c=typeof e;if("number"===c)r=e>0?e>>>0:0;else if("string"===c)"base64"===t&&(e=function(e){e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(x,"");for(;e.length%4!=0;)e+="=";return e}(e)),r=s.byteLength(e,t);else{if("object"!==c||null===e)throw new TypeError("must start with number, buffer, array or string");"Buffer"===e.type&&a(e.data)&&(e=e.data),r=+e.length>0?Math.floor(+e.length):0}if(this.length>o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");if(s.TYPED_ARRAY_SUPPORT?i=s._augment(new Uint8Array(r)):((i=this).length=r,i._isBuffer=!0),s.TYPED_ARRAY_SUPPORT&&"number"==typeof e.byteLength)i._set(e);else if(function(e){return a(e)||s.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}(e))if(s.isBuffer(e))for(l=0;l<r;l++)i[l]=e.readUInt8(l);else for(l=0;l<r;l++)i[l]=(e[l]%256+256)%256;else if("string"===c)i.write(e,0,t);else if("number"===c&&!s.TYPED_ARRAY_SUPPORT&&!n)for(l=0;l<r;l++)i[l]=0;return i}function l(e,t,n,r){return E(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function c(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function u(e,t,n){var r="",i="";n=Math.min(e.length,n);for(var a=t;a<n;a++)e[a]<=127?(r+=T(i)+String.fromCharCode(e[a]),i=""):i+="%"+e[a].toString(16);return r+T(i)}function h(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 d(e,t,n){return h(e,t,n)}function f(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+=C(e[a]);return i}function p(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 g(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 A(e,t,n,r,i,a){if(!s.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>i||t<a)throw new TypeError("value is out of bounds");if(n+r>e.length)throw new TypeError("index out of range")}function m(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 v(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 y(e,t,n,r,i,a){if(t>i||t<a)throw new TypeError("value is out of bounds");if(n+r>e.length)throw new TypeError("index out of range")}function b(e,t,n,r,a){return a||y(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),i.write(e,t,n,r,23,4),n+4}function _(e,t,n,r,a){return a||y(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),i.write(e,t,n,r,52,8),n+8}s.TYPED_ARRAY_SUPPORT=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(e){return!1}}(),s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a&&e[i]===t[i];i++);return i!==a&&(n=e[i],r=t[i]),n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!a(e))throw new TypeError("Usage: Buffer.concat(list[, length])");if(0===e.length)return new s(0);if(1===e.length)return e[0];var n;if(void 0===t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;var r=new s(t),i=0;for(n=0;n<e.length;n++){var o=e[n];o.copy(r,i),i+=o.length}return r},s.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"ascii":case"binary":case"raw":n=e.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;case"hex":n=e.length>>>1;break;case"utf8":case"utf-8":n=S(e).length;break;case"base64":n=k(e).length;break;default:n=e.length}return n},s.prototype.length=void 0,s.prototype.parent=void 0,s.prototype.toString=function(e,t,n){var r=!1;if(t>>>=0,n=void 0===n||n===1/0?this.length:n>>>0,e||(e="utf8"),t<0&&(t=0),n>this.length&&(n=this.length),n<=t)return"";for(;;)switch(e){case"hex":return f(this,t,n);case"utf8":case"utf-8":return u(this,t,n);case"ascii":return h(this,t,n);case"binary":return d(this,t,n);case"base64":return c(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return 0===s.compare(this,e)},s.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},s.prototype.compare=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return s.compare(this,e)},s.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},s.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},s.prototype.write=function(e,t,n,r){if(isFinite(t))isFinite(n)||(r=n,n=void 0);else{var i=r;r=t,t=n,n=i}t=Number(t)||0;var a,o=this.length-t;switch(n?(n=Number(n))>o&&(n=o):n=o,r=String(r||"utf8").toLowerCase()){case"hex":a=function(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 Error("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))throw new Error("Invalid hex string");e[n+o]=s}return o}(this,e,t,n);break;case"utf8":case"utf-8":a=function(e,t,n,r){return E(S(t),e,n,r)}(this,e,t,n);break;case"ascii":a=l(this,e,t,n);break;case"binary":a=function(e,t,n,r){return l(e,t,n,r)}(this,e,t,n);break;case"base64":a=function(e,t,n,r){return E(k(t),e,n,r)}(this,e,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=function(e,t,n,r){return E(function(e){for(var t,n,r,i=[],a=0;a<e.length;a++)t=e.charCodeAt(a),n=t>>8,r=t%256,i.push(r),i.push(n);return i}(t),e,n,r,2)}(this,e,t,n);break;default:throw new TypeError("Unknown encoding: "+r)}return a},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),s.TYPED_ARRAY_SUPPORT)return s._augment(this.subarray(e,t));for(var r=t-e,i=new s(r,void 0,!0),a=0;a<r;a++)i[a]=this[a+e];return i},s.prototype.readUInt8=function(e,t){return t||g(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||g(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||g(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||g(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||g(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readInt8=function(e,t){return t||g(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||g(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||g(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||g(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||g(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||g(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||g(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||g(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||g(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):m(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):m(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e):v(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):v(this,e,t,!1),t+4},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):m(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):m(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):v(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):v(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return b(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return b(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return _(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return _(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t||(t=0),r!==n&&0!==e.length&&0!==this.length){if(r<n)throw new TypeError("sourceEnd < sourceStart");if(t<0||t>=e.length)throw new TypeError("targetStart out of bounds");if(n<0||n>=this.length)throw new TypeError("sourceStart out of bounds");if(r<0||r>this.length)throw new TypeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(var a=0;a<i;a++)e[a+t]=this[a+n];else e._set(this.subarray(n,n+i),t)}},s.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),n<t)throw new TypeError("end < start");if(n!==t&&0!==this.length){if(t<0||t>=this.length)throw new TypeError("start out of bounds");if(n<0||n>this.length)throw new TypeError("end out of bounds");var r;if("number"==typeof e)for(r=t;r<n;r++)this[r]=e;else{var i=S(e.toString()),a=i.length;for(r=t;r<n;r++)this[r]=i[r%a]}return this}},s.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(s.TYPED_ARRAY_SUPPORT)return new s(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var w=s.prototype;s._augment=function(e){return e.constructor=s,e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=w.get,e.set=w.set,e.write=w.write,e.toString=w.toString,e.toLocaleString=w.toString,e.toJSON=w.toJSON,e.equals=w.equals,e.compare=w.compare,e.copy=w.copy,e.slice=w.slice,e.readUInt8=w.readUInt8,e.readUInt16LE=w.readUInt16LE,e.readUInt16BE=w.readUInt16BE,e.readUInt32LE=w.readUInt32LE,e.readUInt32BE=w.readUInt32BE,e.readInt8=w.readInt8,e.readInt16LE=w.readInt16LE,e.readInt16BE=w.readInt16BE,e.readInt32LE=w.readInt32LE,e.readInt32BE=w.readInt32BE,e.readFloatLE=w.readFloatLE,e.readFloatBE=w.readFloatBE,e.readDoubleLE=w.readDoubleLE,e.readDoubleBE=w.readDoubleBE,e.writeUInt8=w.writeUInt8,e.writeUInt16LE=w.writeUInt16LE,e.writeUInt16BE=w.writeUInt16BE,e.writeUInt32LE=w.writeUInt32LE,e.writeUInt32BE=w.writeUInt32BE,e.writeInt8=w.writeInt8,e.writeInt16LE=w.writeInt16LE,e.writeInt16BE=w.writeInt16BE,e.writeInt32LE=w.writeInt32LE,e.writeInt32BE=w.writeInt32BE,e.writeFloatLE=w.writeFloatLE,e.writeFloatBE=w.writeFloatBE,e.writeDoubleLE=w.writeDoubleLE,e.writeDoubleBE=w.writeDoubleBE,e.fill=w.fill,e.inspect=w.inspect,e.toArrayBuffer=w.toArrayBuffer,e};var x=/[^+\/0-9A-z]/g;function C(e){return e<16?"0"+e.toString(16):e.toString(16)}function S(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else{var i=n;r>=55296&&r<=57343&&n++;for(var a=encodeURIComponent(e.slice(i,n+1)).substr(1).split("%"),o=0;o<a.length;o++)t.push(parseInt(a[o],16))}}return t}function k(e){return r.toByteArray(e)}function E(e,t,n,r,i){i&&(r-=r%i);for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);a++)t[a+n]=e[a];return a}function T(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}},{"base64-js":2,ieee754:3,"is-array":4}],2:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),i="/".charCodeAt(0),a="0".charCodeAt(0),o="a".charCodeAt(0),s="A".charCodeAt(0);function l(e){var t=e.charCodeAt(0);return t===n?62:t===i?63:t<a?-1:t<a+10?t-a+26+26:t<s+26?t-s:t<o+26?t-o+26:void 0}e.toByteArray=function(e){var n,r,i,a,o,s;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.length;o="="===e.charAt(c-2)?2:"="===e.charAt(c-1)?1:0,s=new t(3*e.length/4-o),i=o>0?e.length-4:e.length;var u=0;function h(e){s[u++]=e}for(n=0,r=0;n<i;n+=4,r+=3)h((16711680&(a=l(e.charAt(n))<<18|l(e.charAt(n+1))<<12|l(e.charAt(n+2))<<6|l(e.charAt(n+3))))>>16),h((65280&a)>>8),h(255&a);return 2===o?h(255&(a=l(e.charAt(n))<<2|l(e.charAt(n+1))>>4)):1===o&&(h((a=l(e.charAt(n))<<10|l(e.charAt(n+1))<<4|l(e.charAt(n+2))>>2)>>8&255),h(255&a)),s},e.fromByteArray=function(e){var t,n,i,a,o=e.length%3,s="";function l(e){return r.charAt(e)}for(t=0,i=e.length-o;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],s+=l((a=n)>>18&63)+l(a>>12&63)+l(a>>6&63)+l(63&a);switch(o){case 1:s+=l((n=e[e.length-1])>>2),s+=l(n<<4&63),s+="==";break;case 2:s+=l((n=(e[e.length-2]<<8)+e[e.length-1])>>10),s+=l(n>>4&63),s+=l(n<<2&63),s+="="}return s}}(void 0===n?this.base64js={}:n)},{}],3:[function(e,t,n){n.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)},n.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,g=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*g}},{}],4:[function(e,t,n){var r=Array.isArray,i=Object.prototype.toString;t.exports=r||function(e){return!!e&&"[object Array]"==i.call(e)}},{}],5:[function(e,t,n){"use strict";var r=e("./dataReader");function i(e){if(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0;for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}}i.prototype=new r,i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"./dataReader":10}],6:[function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e,t){for(var n,i,a,o,s,l,c,u="",h=0;h<e.length;)o=(n=e.charCodeAt(h++))>>2,s=(3&n)<<4|(i=e.charCodeAt(h++))>>4,l=(15&i)<<2|(a=e.charCodeAt(h++))>>6,c=63&a,isNaN(i)?l=c=64:isNaN(a)&&(c=64),u=u+r.charAt(o)+r.charAt(s)+r.charAt(l)+r.charAt(c);return u},n.decode=function(e,t){var n,i,a,o,s,l,c="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)n=r.indexOf(e.charAt(u++))<<2|(o=r.indexOf(e.charAt(u++)))>>4,i=(15&o)<<4|(s=r.indexOf(e.charAt(u++)))>>2,a=(3&s)<<6|(l=r.indexOf(e.charAt(u++))),c+=String.fromCharCode(n),64!=s&&(c+=String.fromCharCode(i)),64!=l&&(c+=String.fromCharCode(a));return c}},{}],7:[function(e,t,n){"use strict";function r(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}r.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=r},{}],8:[function(e,t,n){"use strict";n.STORE={magic:"\0\0",compress:function(e,t){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},n.DEFLATE=e("./flate")},{"./flate":13}],9:[function(e,t,n){"use strict";var r=e("./utils"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(e,t){if(void 0===e||!e.length)return 0;var n="string"!==r.getTypeOf(e);void 0===t&&(t=0);var a=0;t^=-1;for(var o=0,s=e.length;o<s;o++)a=n?e[o]:e.charCodeAt(o),t=t>>>8^i[255&(t^a)];return-1^t}},{"./utils":26}],10:[function(e,t,n){"use strict";var r=e("./utils");function i(e){this.data=null,this.length=0,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},t.exports=i},{"./utils":26}],11:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],12:[function(e,t,n){"use strict";var r=e("./utils");n.string2binary=function(e){return r.string2binary(e)},n.string2Uint8Array=function(e){return r.transformTo("uint8array",e)},n.uint8Array2String=function(e){return r.transformTo("string",e)},n.string2Blob=function(e){var t=r.transformTo("arraybuffer",e);return r.arrayBuffer2Blob(t)},n.arrayBuffer2Blob=function(e){return r.arrayBuffer2Blob(e)},n.transformTo=function(e,t){return r.transformTo(e,t)},n.getTypeOf=function(e){return r.getTypeOf(e)},n.checkSupport=function(e){return r.checkSupport(e)},n.MAX_VALUE_16BITS=r.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=r.MAX_VALUE_32BITS,n.pretty=function(e){return r.pretty(e)},n.findCompression=function(e){return r.findCompression(e)},n.isRegExp=function(e){return r.isRegExp(e)}},{"./utils":26}],13:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako");n.uncompressInputType=r?"uint8array":"array",n.compressInputType=r?"uint8array":"array",n.magic="\b\0",n.compress=function(e,t){return i.deflateRaw(e,{level:t.level||-1})},n.uncompress=function(e){return i.inflateRaw(e)}},{pako:29}],14:[function(e,t,n){"use strict";var r=e("./base64");function i(e,t){if(!(this instanceof i))return new i(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}i.prototype=e("./object"),i.prototype.load=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.utils=e("./deprecatedPublicUtils"),i.base64={encode:function(e){return r.encode(e)},decode:function(e){return r.decode(e)}},i.compressions=e("./compressions"),t.exports=i},{"./base64":6,"./compressions":8,"./defaults":11,"./deprecatedPublicUtils":12,"./load":15,"./object":18,"./support":22}],15:[function(e,t,n){"use strict";var r=e("./base64"),i=e("./utf8"),a=e("./utils"),o=e("./zipEntries");t.exports=function(e,t){var n,s,l,c;for((t=a.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode})).base64&&(e=r.decode(e)),n=(s=new o(e,t)).files,l=0;l<n.length;l++)c=n[l],this.file(c.fileNameStr,c.decompressed,{binary:!0,optimizedBinaryString:!0,date:c.date,dir:c.dir,comment:c.fileCommentStr.length?c.fileCommentStr:null,unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions,createFolders:t.createFolders});return s.zipComment.length&&(this.comment=s.zipComment),this}},{"./base64":6,"./utf8":25,"./utils":26,"./zipEntries":27}],16:[function(e,t,n){(function(e){"use strict";t.exports=function(t,n){return new e(t,n)},t.exports.test=function(t){return e.isBuffer(t)}}).call(this,e("buffer").Buffer)},{buffer:1}],17:[function(e,t,n){"use strict";var r=e("./uint8ArrayReader");function i(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0}i.prototype=new r,i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"./uint8ArrayReader":23}],18:[function(e,t,n){"use strict";var r=e("./support"),i=e("./utils"),a=e("./crc32"),o=e("./signature"),s=e("./defaults"),l=e("./base64"),c=e("./compressions"),u=e("./compressedObject"),h=e("./nodeBuffer"),d=e("./utf8"),f=e("./stringWriter"),p=e("./uint8ArrayWriter"),g=function(e){if(e._data instanceof u&&(e._data=e._data.getContent(),e.options.binary=!0,e.options.base64=!1,"uint8array"===i.getTypeOf(e._data))){var t=e._data;e._data=new Uint8Array(t.length),0!==t.length&&e._data.set(t,0)}return e._data},A=function(e){var t=g(e);return"string"===i.getTypeOf(t)?!e.options.binary&&r.nodebuffer?h(t,"utf-8"):e.asBinary():t},m=function(e){var t=g(this);return null===t||void 0===t?"":(this.options.base64&&(t=l.decode(t)),t=e&&this.options.binary?k.utf8decode(t):i.transformTo("string",t),e||this.options.binary||(t=i.transformTo("string",k.utf8encode(t))),t)},v=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this.options=n,this._initialMetadata={dir:n.dir,date:n.date}};v.prototype={asText:function(){return m.call(this,!0)},asBinary:function(){return m.call(this,!1)},asNodeBuffer:function(){var e=A(this);return i.transformTo("nodebuffer",e)},asUint8Array:function(){var e=A(this);return i.transformTo("uint8array",e)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var y=function(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r},b=function(e,t,n){var r,a=i.getTypeOf(t);if("string"==typeof(n=function(e){return!0!==(e=e||{}).base64||null!==e.binary&&void 0!==e.binary||(e.binary=!0),(e=i.extend(e,s)).date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e}(n)).unixPermissions&&(n.unixPermissions=parseInt(n.unixPermissions,8)),n.unixPermissions&&16384&n.unixPermissions&&(n.dir=!0),n.dosPermissions&&16&n.dosPermissions&&(n.dir=!0),n.dir&&(e=w(e)),n.createFolders&&(r=_(e))&&x.call(this,r,!0),n.dir||null===t||void 0===t)n.base64=!1,n.binary=!1,t=null,a=null;else if("string"===a)n.binary&&!n.base64&&!0!==n.optimizedBinaryString&&(t=i.string2binary(t));else{if(n.base64=!1,n.binary=!0,!(a||t instanceof u))throw new Error("The data of '"+e+"' is in an unsupported format !");"arraybuffer"===a&&(t=i.transformTo("uint8array",t))}var o=new v(e,t,n);return this.files[e]=o,o},_=function(e){"/"==e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},w=function(e){return"/"!=e.slice(-1)&&(e+="/"),e},x=function(e,t){return t=void 0!==t&&t,e=w(e),this.files[e]||b.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},C=function(e,t,n){var r,o=new u;return e._data instanceof u?(o.uncompressedSize=e._data.uncompressedSize,o.crc32=e._data.crc32,0===o.uncompressedSize||e.dir?(t=c.STORE,o.compressedContent="",o.crc32=0):e._data.compressionMethod===t.magic?o.compressedContent=e._data.getCompressedContent():(r=e._data.getContent(),o.compressedContent=t.compress(i.transformTo(t.compressInputType,r),n))):((r=A(e))&&0!==r.length&&!e.dir||(t=c.STORE,r=""),o.uncompressedSize=r.length,o.crc32=a(r),o.compressedContent=t.compress(i.transformTo(t.compressInputType,r),n)),o.compressedSize=o.compressedContent.length,o.compressionMethod=t.magic,o},S=function(e,t,n,r,s,l){n.compressedContent;var c,u,h,f,p=l!==d.utf8encode,g=i.transformTo("string",l(t.name)),A=i.transformTo("string",d.utf8encode(t.name)),m=t.comment||"",v=i.transformTo("string",l(m)),b=i.transformTo("string",d.utf8encode(m)),_=A.length!==t.name.length,w=b.length!==m.length,x=t.options,C="",S="",k="";h=t._initialMetadata.dir!==t.dir?t.dir:x.dir,f=t._initialMetadata.date!==t.date?t.date:x.date;var E,T,B=0,I=0;h&&(B|=16),"UNIX"===s?(I=798,B|=(E=t.unixPermissions,T=E,E||(T=h?16893:33204),(65535&T)<<16)):(I=20,B|=63&(t.dosPermissions||0)),c=f.getHours(),c<<=6,c|=f.getMinutes(),c<<=5,c|=f.getSeconds()/2,u=f.getFullYear()-1980,u<<=4,u|=f.getMonth()+1,u<<=5,u|=f.getDate(),_&&(S=y(1,1)+y(a(g),4)+A,C+="up"+y(S.length,2)+S),w&&(k=y(1,1)+y(this.crc32(v),4)+b,C+="uc"+y(k.length,2)+k);var M="";return M+="\n\0",M+=p||!_&&!w?"\0\0":"\0\b",M+=n.compressionMethod,M+=y(c,2),M+=y(u,2),M+=y(n.crc32,4),M+=y(n.compressedSize,4),M+=y(n.uncompressedSize,4),M+=y(g.length,2),M+=y(C.length,2),{fileRecord:o.LOCAL_FILE_HEADER+M+g+C,dirRecord:o.CENTRAL_FILE_HEADER+y(I,2)+M+y(v.length,2)+"\0\0\0\0"+y(B,4)+y(r,4)+g+C+v,compressedObject:n}},k={load:function(e,t){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){var t,n,r,a,o=[];for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],a=new v(r.name,r._data,i.extend(r.options)),n=t.slice(this.root.length,t.length),t.slice(0,this.root.length)===this.root&&e(n,a)&&o.push(a));return o},file:function(e,t,n){if(1===arguments.length){if(i.isRegExp(e)){var r=e;return this.filter(function(e,t){return!t.dir&&r.test(e)})}return this.filter(function(t,n){return!n.dir&&t===e})[0]||null}return e=this.root+e,b.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(i.isRegExp(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=x.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!=e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){e=i.extend(e||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:d.utf8encode}),i.checkSupport(e.type),"darwin"!==e.platform&&"freebsd"!==e.platform&&"linux"!==e.platform&&"sunos"!==e.platform||(e.platform="UNIX"),"win32"===e.platform&&(e.platform="DOS");var t,n,r=[],a=0,s=0,u=i.transformTo("string",e.encodeFileName(e.comment||this.comment||""));for(var h in this.files)if(this.files.hasOwnProperty(h)){var g=this.files[h],A=g.options.compression||e.compression.toUpperCase(),m=c[A];if(!m)throw new Error(A+" is not a valid compression method !");var v=g.options.compressionOptions||e.compressionOptions||{},b=C.call(this,g,m,v),_=S.call(this,h,g,b,a,e.platform,e.encodeFileName);a+=_.fileRecord.length+b.compressedSize,s+=_.dirRecord.length,r.push(_)}var w;w=o.CENTRAL_DIRECTORY_END+"\0\0\0\0"+y(r.length,2)+y(r.length,2)+y(s,4)+y(a,4)+y(u.length,2)+u;var x=e.type.toLowerCase();for(t="uint8array"===x||"arraybuffer"===x||"blob"===x||"nodebuffer"===x?new p(a+s+w.length):new f(a+s+w.length),n=0;n<r.length;n++)t.append(r[n].fileRecord),t.append(r[n].compressedObject.compressedContent);for(n=0;n<r.length;n++)t.append(r[n].dirRecord);t.append(w);var k=t.finalize();switch(e.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return i.transformTo(e.type.toLowerCase(),k);case"blob":return i.arrayBuffer2Blob(i.transformTo("arraybuffer",k),e.mimeType);case"base64":return e.base64?l.encode(k):k;default:return k}},crc32:function(e,t){return a(e,t)},utf8encode:function(e){return i.transformTo("string",d.utf8encode(e))},utf8decode:function(e){return d.utf8decode(e)}};t.exports=k},{"./base64":6,"./compressedObject":7,"./compressions":8,"./crc32":9,"./defaults":11,"./nodeBuffer":16,"./signature":19,"./stringWriter":21,"./support":22,"./uint8ArrayWriter":24,"./utf8":25,"./utils":26}],19:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],20:[function(e,t,n){"use strict";var r=e("./dataReader"),i=e("./utils");function a(e,t){this.data=e,t||(this.data=i.string2binary(this.data)),this.length=this.data.length,this.index=0,this.zero=0}a.prototype=new r,a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"./dataReader":10,"./utils":26}],21:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){this.data=[]};i.prototype={append:function(e){e=r.transformTo("string",e),this.data.push(e)},finalize:function(){return this.data.join("")}},t.exports=i},{"./utils":26}],22:[function(e,t,n){(function(e){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer=void 0!==e,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var t=new ArrayBuffer(0);try{n.blob=0===new Blob([t],{type:"application/zip"}).size}catch(e){try{var r=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);r.append(t),n.blob=0===r.getBlob("application/zip").size}catch(e){n.blob=!1}}}}).call(this,e("buffer").Buffer)},{buffer:1}],23:[function(e,t,n){"use strict";var r=e("./arrayReader");function i(e){e&&(this.data=e,this.length=this.data.length,this.index=0,this.zero=0)}i.prototype=new r,i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"./arrayReader":5}],24:[function(e,t,n){"use strict";var r=e("./utils"),i=function(e){this.data=new Uint8Array(e),this.index=0};i.prototype={append:function(e){0!==e.length&&(e=r.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},t.exports=i},{"./utils":26}],25:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),a=e("./nodeBuffer"),o=new Array(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;o[254]=o[254]=1;var l=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t},c=function(e){var t,n,i,a,s=e.length,l=new Array(2*s);for(n=0,t=0;t<s;)if((i=e[t++])<128)l[n++]=i;else if((a=o[i])>4)l[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&t<s;)i=i<<6|63&e[t++],a--;a>1?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)};n.utf8encode=function(e){return i.nodebuffer?a(e,"utf-8"):function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),o=0,a=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){if(i.nodebuffer)return r.transformTo("nodebuffer",e).toString("utf-8");for(var t=[],n=0,a=(e=r.transformTo(i.uint8array?"uint8array":"array",e)).length;n<a;){var o=l(e,Math.min(n+65536,a));i.uint8array?t.push(c(e.subarray(n,o))):t.push(c(e.slice(n,o))),n=o}return t.join("")}},{"./nodeBuffer":16,"./support":22,"./utils":26}],26:[function(e,t,n){"use strict";var r=e("./support"),i=e("./compressions"),a=e("./nodeBuffer");function o(e){return e}function s(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}function l(e){var t=65536,r=[],i=e.length,o=n.getTypeOf(e),s=0,l=!0;try{switch(o){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,a(0))}}catch(e){l=!1}if(!l){for(var c="",u=0;u<e.length;u++)c+=String.fromCharCode(e[u]);return c}for(;s<i&&t>1;)try{"array"===o||"nodebuffer"===o?r.push(String.fromCharCode.apply(null,e.slice(s,Math.min(s+t,i)))):r.push(String.fromCharCode.apply(null,e.subarray(s,Math.min(s+t,i)))),s+=t}catch(e){t=Math.floor(t/2)}return r.join("")}function c(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.string2binary=function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(255&e.charCodeAt(n));return t},n.arrayBuffer2Blob=function(e,t){n.checkSupport("blob"),t=t||"application/zip";try{return new Blob([e],{type:t})}catch(n){try{var r=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}},n.applyFromCharCode=l;var u={};u.string={string:o,array:function(e){return s(e,new Array(e.length))},arraybuffer:function(e){return u.string.uint8array(e).buffer},uint8array:function(e){return s(e,new Uint8Array(e.length))},nodebuffer:function(e){return s(e,a(e.length))}},u.array={string:l,array:o,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a(e)}},u.arraybuffer={string:function(e){return l(new Uint8Array(e))},array:function(e){return c(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:o,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a(new Uint8Array(e))}},u.uint8array={string:l,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:o,nodebuffer:function(e){return a(e)}},u.nodebuffer={string:l,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return u.nodebuffer.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:o},n.transformTo=function(e,t){if(t||(t=""),!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return u[r][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&a.test(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this browser")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.findCompression=function(e){for(var t in i)if(i.hasOwnProperty(t)&&i[t].magic===e)return i[t];return null},n.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n}},{"./compressions":8,"./nodeBuffer":16,"./support":22}],27:[function(e,t,n){"use strict";var r=e("./stringReader"),i=e("./nodeBufferReader"),a=e("./uint8ArrayReader"),o=e("./arrayReader"),s=e("./utils"),l=e("./signature"),c=e("./zipEntry"),u=e("./support");e("./object");function h(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}h.prototype={checkSignature:function(e){var t=this.reader.readString(4);if(t!==e)throw new Error("Corrupted zip or bug : unexpected signature ("+s.pretty(t)+", expected "+s.pretty(e)+")")},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=u.uint8array?"uint8array":"array",n=s.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readString(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(l.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===l.CENTRAL_FILE_HEADER;)(e=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(l.CENTRAL_DIRECTORY_END);if(e<0)throw!this.isSignature(0,l.LOCAL_FILE_HEADER)?new Error("Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip : can't find end of central directory");this.reader.setIndex(e);var t=e;if(this.checkSignature(l.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,l.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip : can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(r>0)this.isSignature(t,l.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){var t=s.getTypeOf(e);if(s.checkSupport(t),"string"!==t||u.uint8array)if("nodebuffer"===t)this.reader=new i(e);else if(u.uint8array)this.reader=new a(s.transformTo("uint8array",e));else{if(!u.array)throw new Error("Unexpected error: unsupported type '"+t+"'");this.reader=new o(s.transformTo("array",e))}else this.reader=new r(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=h},{"./arrayReader":5,"./nodeBufferReader":17,"./object":18,"./signature":19,"./stringReader":20,"./support":22,"./uint8ArrayReader":23,"./utils":26,"./zipEntry":28}],28:[function(e,t,n){"use strict";var r=e("./stringReader"),i=e("./utils"),a=e("./compressedObject"),o=e("./object"),s=e("./support");function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},prepareCompressedContent:function(e,t,n){return function(){var r=e.index;e.setIndex(t);var i=e.readData(n);return e.setIndex(r),i}},prepareContent:function(e,t,n,r,a){return function(){var e=i.transformTo(r.uncompressInputType,this.getCompressedContent()),t=r.uncompress(e);if(t.length!==a)throw new Error("Bug : uncompressed data size mismatch");return t}},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(null===(t=i.findCompression(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");if(this.decompressed=new a,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(e,e.index,this.compressedSize,t),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,t,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=i.transformTo("string",this.decompressed.getContent()),o.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(e){if(this.versionMadeBy=e.readInt(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=e.readData(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=new r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index;for(this.extraFields=this.extraFields||{};e.index<i+this.extraFieldsLength;)t=e.readInt(2),n=e.readInt(2),r=e.readString(n),this.extraFields[t]={id:t,length:n,value:r}},handleUTF8:function(){var e=s.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=new r(e.value);return 1!==t.readInt(1)?null:o.crc32(this.fileName)!==t.readInt(4)?null:o.utf8decode(t.readString(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=new r(e.value);return 1!==t.readInt(1)?null:o.crc32(this.fileComment)!==t.readInt(4)?null:o.utf8decode(t.readString(e.length-5))}return null}},t.exports=l},{"./compressedObject":7,"./object":18,"./stringReader":20,"./support":22,"./utils":26}],29:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":30,"./lib/inflate":31,"./lib/utils/common":32,"./lib/zlib/constants":35}],30:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,h=0,d=8;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({level:u,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==c)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==c)throw new Error(o[n]);this._dict_set=!0}}function p(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}f.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,o))&&n!==c)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==o||(this.onEnd(c),s.avail_out=0,!0)},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":32,"./utils/strings":33,"./zlib/deflate":37,"./zlib/messages":42,"./zlib/zstream":44}],31:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)}function d(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}h.prototype.push=function(e,t){var n,s,l,c,h,d,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,A=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(n=r.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(d="string"==typeof g?a.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,d)),n===o.Z_BUF_ERROR&&!0===A&&(n=o.Z_OK,A=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&n!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(f.output,f.next_out),c=f.next_out-l,h=a.buf2string(f.output,l),f.next_out=c,f.avail_out=p-c,c&&i.arraySet(f.output,f.output,l,c,0),this.onData(h)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(A=!0)}while((f.avail_in>0||0===f.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),f.avail_out=0,!0)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},n.ungzip=d},{"./utils/common":32,"./utils/strings":33,"./zlib/constants":35,"./zlib/gzheader":38,"./zlib/inflate":40,"./zlib/messages":42,"./zlib/zstream":44}],32:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],33:[function(e,t,n){"use strict";var r=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),o=0,a=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,c=new Array(2*s);for(r=0,n=0;n<s;)if((i=e[n++])<128)c[r++]=i;else if((a=o[i])>4)c[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&n<s;)i=i<<6|63&e[n++],a--;a>1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t}},{"./common":32}],34:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}},{}],35:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],36:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],37:[function(e,t,n){"use strict";var r,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=1,h=3,d=4,f=5,p=0,g=1,A=-2,m=-3,v=-5,y=-1,b=1,_=2,w=3,x=4,C=0,S=2,k=8,E=9,T=15,B=8,I=286,M=30,P=19,D=2*I+1,F=15,O=3,L=258,R=L+O+1,N=32,U=42,j=69,H=73,z=91,Q=103,V=113,G=666,q=1,W=2,$=3,K=4,Y=3;function X(e,t){return e.msg=l[t],t}function Z(e){return(e<<1)-(e>4?9:0)}function J(e){for(var t=e.length;--t>=0;)e[t]=0}function ee(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function te(e,t){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ee(e.strm)}function ne(e,t){e.pending_buf[e.pending++]=t}function re(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ie(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-R?e.strstart-(e.w_size-R):0,c=e.window,u=e.w_mask,h=e.prev,d=e.strstart+L,f=c[a+o-1],p=c[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+o]===p&&c[n+o-1]===f&&c[n]===c[a]&&c[++n]===c[a+1]){a+=2,n++;do{}while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&a<d);if(r=L-(d-a),a=d-L,r>o){if(e.match_start=t,o=r,r>=s)break;f=c[a+o-1],p=c[a+o]}}}while((t=h[t&u])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function ae(e){var t,n,r,a,l,c,u,h,d,f,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-R)){i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=p?r-p:0}while(--n);t=n=p;do{r=e.prev[--t],e.prev[t]=r>=p?r-p:0}while(--n);a+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,h=e.strstart+e.lookahead,d=a,f=void 0,(f=c.avail_in)>d&&(f=d),n=0===f?0:(c.avail_in-=f,i.arraySet(u,c.input,c.next_in,f,h),1===c.state.wrap?c.adler=o(c.adler,u,f,h):2===c.state.wrap&&(c.adler=s(c.adler,u,f,h)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=O)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+O-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<O)););}while(e.lookahead<R&&0!==e.strm.avail_in)}function oe(e,t){for(var n,r;;){if(e.lookahead<R){if(ae(e),e.lookahead<R&&t===c)return q;if(0===e.lookahead)break}if(n=0,e.lookahead>=O&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+O-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-R&&(e.match_length=ie(e,n)),e.match_length>=O)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-O),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=O){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+O-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(te(e,!1),0===e.strm.avail_out))return q}return e.insert=e.strstart<O-1?e.strstart:O-1,t===d?(te(e,!0),0===e.strm.avail_out?$:K):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?q:W}function se(e,t){for(var n,r,i;;){if(e.lookahead<R){if(ae(e),e.lookahead<R&&t===c)return q;if(0===e.lookahead)break}if(n=0,e.lookahead>=O&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+O-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=O-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-R&&(e.match_length=ie(e,n),e.match_length<=5&&(e.strategy===b||e.match_length===O&&e.strstart-e.match_start>4096)&&(e.match_length=O-1)),e.prev_length>=O&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-O,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-O),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+O-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=O-1,e.strstart++,r&&(te(e,!1),0===e.strm.avail_out))return q}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&te(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return q}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<O-1?e.strstart:O-1,t===d?(te(e,!0),0===e.strm.avail_out?$:K):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?q:W}function le(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function ce(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=S,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?U:V,e.adler=2===t.wrap?0:1,t.last_flush=c,a._tr_init(t),p):X(e,A)}function ue(e){var t,n=ce(e);return n===p&&((t=e.state).window_size=2*t.w_size,J(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=O-1,t.match_available=0,t.ins_h=0),n}function he(e,t,n,r,a,o){if(!e)return A;var s=1;if(t===y&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),a<1||a>E||n!==k||r<8||r>15||t<0||t>9||o<0||o>x)return X(e,A);8===r&&(r=9);var l=new function(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=k,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*D),this.dyn_dtree=new i.Buf16(2*(2*M+1)),this.bl_tree=new i.Buf16(2*(2*P+1)),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(F+1),this.heap=new i.Buf16(2*I+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*I+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0};return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+O-1)/O),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=l.lit_bufsize>>1,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,ue(e)}r=[new le(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ae(e),0===e.lookahead&&t===c)return q;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,te(e,!1),0===e.strm.avail_out))return q;if(e.strstart-e.block_start>=e.w_size-R&&(te(e,!1),0===e.strm.avail_out))return q}return e.insert=0,t===d?(te(e,!0),0===e.strm.avail_out?$:K):(e.strstart>e.block_start&&(te(e,!1),e.strm.avail_out),q)}),new le(4,4,8,4,oe),new le(4,5,16,8,oe),new le(4,6,32,32,oe),new le(4,4,16,16,se),new le(8,16,32,32,se),new le(8,16,128,128,se),new le(8,32,128,256,se),new le(32,128,258,1024,se),new le(32,258,258,4096,se)],n.deflateInit=function(e,t){return he(e,t,k,T,B,C)},n.deflateInit2=he,n.deflateReset=ue,n.deflateResetKeep=ce,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?A:(e.state.gzhead=t,p):A},n.deflate=function(e,t){var n,i,o,l;if(!e||!e.state||t>f||t<0)return e?X(e,A):A;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===G&&t!==d)return X(e,0===e.avail_out?v:A);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===U)if(2===i.wrap)e.adler=0,ne(i,31),ne(i,139),ne(i,8),i.gzhead?(ne(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ne(i,255&i.gzhead.time),ne(i,i.gzhead.time>>8&255),ne(i,i.gzhead.time>>16&255),ne(i,i.gzhead.time>>24&255),ne(i,9===i.level?2:i.strategy>=_||i.level<2?4:0),ne(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(ne(i,255&i.gzhead.extra.length),ne(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=j):(ne(i,0),ne(i,0),ne(i,0),ne(i,0),ne(i,0),ne(i,9===i.level?2:i.strategy>=_||i.level<2?4:0),ne(i,Y),i.status=V);else{var m=k+(i.w_bits-8<<4)<<8;m|=(i.strategy>=_||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(m|=N),m+=31-m%31,i.status=V,re(i,m),0!==i.strstart&&(re(i,e.adler>>>16),re(i,65535&e.adler)),e.adler=1}if(i.status===j)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),ee(e),o=i.pending,i.pending!==i.pending_buf_size));)ne(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=H)}else i.status=H;if(i.status===H)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),ee(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,ne(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=z)}else i.status=z;if(i.status===z)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),ee(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,ne(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=Q)}else i.status=Q;if(i.status===Q&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ee(e),i.pending+2<=i.pending_buf_size&&(ne(i,255&e.adler),ne(i,e.adler>>8&255),e.adler=0,i.status=V)):i.status=V),0!==i.pending){if(ee(e),0===e.avail_out)return i.last_flush=-1,p}else if(0===e.avail_in&&Z(t)<=Z(n)&&t!==d)return X(e,v);if(i.status===G&&0!==e.avail_in)return X(e,v);if(0!==e.avail_in||0!==i.lookahead||t!==c&&i.status!==G){var y=i.strategy===_?function(e,t){for(var n;;){if(0===e.lookahead&&(ae(e),0===e.lookahead)){if(t===c)return q;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(te(e,!1),0===e.strm.avail_out))return q}return e.insert=0,t===d?(te(e,!0),0===e.strm.avail_out?$:K):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?q:W}(i,t):i.strategy===w?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=L){if(ae(e),e.lookahead<=L&&t===c)return q;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=O&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+L;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=L-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=O?(n=a._tr_tally(e,1,e.match_length-O),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(te(e,!1),0===e.strm.avail_out))return q}return e.insert=0,t===d?(te(e,!0),0===e.strm.avail_out?$:K):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?q:W}(i,t):r[i.level].func(i,t);if(y!==$&&y!==K||(i.status=G),y===q||y===$)return 0===e.avail_out&&(i.last_flush=-1),p;if(y===W&&(t===u?a._tr_align(i):t!==f&&(a._tr_stored_block(i,0,0,!1),t===h&&(J(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ee(e),0===e.avail_out))return i.last_flush=-1,p}return t!==d?p:i.wrap<=0?g:(2===i.wrap?(ne(i,255&e.adler),ne(i,e.adler>>8&255),ne(i,e.adler>>16&255),ne(i,e.adler>>24&255),ne(i,255&e.total_in),ne(i,e.total_in>>8&255),ne(i,e.total_in>>16&255),ne(i,e.total_in>>24&255)):(re(i,e.adler>>>16),re(i,65535&e.adler)),ee(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?p:g)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==U&&t!==j&&t!==H&&t!==z&&t!==Q&&t!==V&&t!==G?X(e,A):(e.state=null,t===V?X(e,m):p):A},n.deflateSetDictionary=function(e,t){var n,r,a,s,l,c,u,h,d=t.length;if(!e||!e.state)return A;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==U||n.lookahead)return A;for(1===s&&(e.adler=o(e.adler,t,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(J(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,t,d-n.w_size,n.w_size,0),t=h,d=n.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=d,e.next_in=0,e.input=t,ae(n);n.lookahead>=O;){r=n.strstart,a=n.lookahead-(O-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+O-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--a);n.strstart=r,n.lookahead=O-1,ae(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=O-1,n.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,n.wrap=s,p},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":32,"./adler32":34,"./crc32":36,"./messages":42,"./trees":43}],38:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],39:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,a,o,s,l,c,u,h,d,f,p,g,A,m,v,y,b,_,w,x,C,S,k;n=e.state,r=e.next_in,S=e.input,i=r+(e.avail_in-5),a=e.next_out,k=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,h=n.wnext,d=n.window,f=n.hold,p=n.bits,g=n.lencode,A=n.distcode,m=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{p<15&&(f+=S[r++]<<p,p+=8,f+=S[r++]<<p,p+=8),y=g[f&m];t:for(;;){if(f>>>=b=y>>>24,p-=b,0===(b=y>>>16&255))k[a++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=g[(65535&y)+(f&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}_=65535&y,(b&=15)&&(p<b&&(f+=S[r++]<<p,p+=8),_+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=S[r++]<<p,p+=8,f+=S[r++]<<p,p+=8),y=A[f&v];n:for(;;){if(f>>>=b=y>>>24,p-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=A[(65535&y)+(f&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(w=65535&y,p<(b&=15)&&(f+=S[r++]<<p,(p+=8)<b&&(f+=S[r++]<<p,p+=8)),(w+=f&(1<<b)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=b,p-=b,w>(b=a-o)){if((b=w-b)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=0,C=d,0===h){if(x+=c-b,b<_){_-=b;do{k[a++]=d[x++]}while(--b);x=a-w,C=k}}else if(h<b){if(x+=c+h-b,(b-=h)<_){_-=b;do{k[a++]=d[x++]}while(--b);if(x=0,h<_){_-=b=h;do{k[a++]=d[x++]}while(--b);x=a-w,C=k}}}else if(x+=h-b,b<_){_-=b;do{k[a++]=d[x++]}while(--b);x=a-w,C=k}for(;_>2;)k[a++]=C[x++],k[a++]=C[x++],k[a++]=C[x++],_-=3;_&&(k[a++]=C[x++],_>1&&(k[a++]=C[x++]))}else{x=a-w;do{k[a++]=k[x++],k[a++]=k[x++],k[a++]=k[x++],_-=3}while(_>2);_&&(k[a++]=k[x++],_>1&&(k[a++]=k[x++]))}break}}break}}while(r<i&&a<s);r-=_=p>>3,f&=(1<<(p-=_<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=f,n.bits=p}},{}],40:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),l=0,c=1,u=2,h=4,d=5,f=6,p=0,g=1,A=2,m=-2,v=-3,y=-4,b=-5,_=8,w=1,x=2,C=3,S=4,k=5,E=6,T=7,B=8,I=9,M=10,P=11,D=12,F=13,O=14,L=15,R=16,N=17,U=18,j=19,H=20,z=21,Q=22,V=23,G=24,q=25,W=26,$=27,K=28,Y=29,X=30,Z=31,J=32,ee=852,te=592,ne=15;function re(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ie(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=w,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(ee),t.distcode=t.distdyn=new r.Buf32(te),t.sane=1,t.back=-1,p):m}function ae(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,ie(e)):m}function oe(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?m:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ae(e))):m}function se(e,t){var n,i;return e?(i=new function(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0},e.state=i,i.window=null,(n=oe(e,t))!==p&&(e.state=null),n):m}var le,ce,ue=!0;function he(e){if(ue){var t;for(le=new r.Buf32(512),ce=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,le,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,ce,0,e.work,{bits:5}),ue=!1}e.lencode=le,e.lenbits=9,e.distcode=ce,e.distbits=5}function de(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=ae,n.inflateReset2=oe,n.inflateResetKeep=ie,n.inflateInit=function(e){return se(e,ne)},n.inflateInit2=se,n.inflate=function(e,t){var n,ee,te,ne,ie,ae,oe,se,le,ce,ue,fe,pe,ge,Ae,me,ve,ye,be,_e,we,xe,Ce,Se,ke=0,Ee=new r.Buf8(4),Te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return m;(n=e.state).mode===D&&(n.mode=F),ie=e.next_out,te=e.output,oe=e.avail_out,ne=e.next_in,ee=e.input,ae=e.avail_in,se=n.hold,le=n.bits,ce=ae,ue=oe,xe=p;e:for(;;)switch(n.mode){case w:if(0===n.wrap){n.mode=F;break}for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(2&n.wrap&&35615===se){n.check=0,Ee[0]=255&se,Ee[1]=se>>>8&255,n.check=a(n.check,Ee,2,0),se=0,le=0,n.mode=x;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",n.mode=X;break}if((15&se)!==_){e.msg="unknown compression method",n.mode=X;break}if(le-=4,we=8+(15&(se>>>=4)),0===n.wbits)n.wbits=we;else if(we>n.wbits){e.msg="invalid window size",n.mode=X;break}n.dmax=1<<we,e.adler=n.check=1,n.mode=512&se?M:D,se=0,le=0;break;case x:for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(n.flags=se,(255&n.flags)!==_){e.msg="unknown compression method",n.mode=X;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=X;break}n.head&&(n.head.text=se>>8&1),512&n.flags&&(Ee[0]=255&se,Ee[1]=se>>>8&255,n.check=a(n.check,Ee,2,0)),se=0,le=0,n.mode=C;case C:for(;le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}n.head&&(n.head.time=se),512&n.flags&&(Ee[0]=255&se,Ee[1]=se>>>8&255,Ee[2]=se>>>16&255,Ee[3]=se>>>24&255,n.check=a(n.check,Ee,4,0)),se=0,le=0,n.mode=S;case S:for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}n.head&&(n.head.xflags=255&se,n.head.os=se>>8),512&n.flags&&(Ee[0]=255&se,Ee[1]=se>>>8&255,n.check=a(n.check,Ee,2,0)),se=0,le=0,n.mode=k;case k:if(1024&n.flags){for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}n.length=se,n.head&&(n.head.extra_len=se),512&n.flags&&(Ee[0]=255&se,Ee[1]=se>>>8&255,n.check=a(n.check,Ee,2,0)),se=0,le=0}else n.head&&(n.head.extra=null);n.mode=E;case E:if(1024&n.flags&&((fe=n.length)>ae&&(fe=ae),fe&&(n.head&&(we=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,ee,ne,fe,we)),512&n.flags&&(n.check=a(n.check,ee,fe,ne)),ae-=fe,ne+=fe,n.length-=fe),n.length))break e;n.length=0,n.mode=T;case T:if(2048&n.flags){if(0===ae)break e;fe=0;do{we=ee[ne+fe++],n.head&&we&&n.length<65536&&(n.head.name+=String.fromCharCode(we))}while(we&&fe<ae);if(512&n.flags&&(n.check=a(n.check,ee,fe,ne)),ae-=fe,ne+=fe,we)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=B;case B:if(4096&n.flags){if(0===ae)break e;fe=0;do{we=ee[ne+fe++],n.head&&we&&n.length<65536&&(n.head.comment+=String.fromCharCode(we))}while(we&&fe<ae);if(512&n.flags&&(n.check=a(n.check,ee,fe,ne)),ae-=fe,ne+=fe,we)break e}else n.head&&(n.head.comment=null);n.mode=I;case I:if(512&n.flags){for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(se!==(65535&n.check)){e.msg="header crc mismatch",n.mode=X;break}se=0,le=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=D;break;case M:for(;le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}e.adler=n.check=re(se),se=0,le=0,n.mode=P;case P:if(0===n.havedict)return e.next_out=ie,e.avail_out=oe,e.next_in=ne,e.avail_in=ae,n.hold=se,n.bits=le,A;e.adler=n.check=1,n.mode=D;case D:if(t===d||t===f)break e;case F:if(n.last){se>>>=7&le,le-=7&le,n.mode=$;break}for(;le<3;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}switch(n.last=1&se,le-=1,3&(se>>>=1)){case 0:n.mode=O;break;case 1:if(he(n),n.mode=H,t===f){se>>>=2,le-=2;break e}break;case 2:n.mode=N;break;case 3:e.msg="invalid block type",n.mode=X}se>>>=2,le-=2;break;case O:for(se>>>=7&le,le-=7&le;le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if((65535&se)!=(se>>>16^65535)){e.msg="invalid stored block lengths",n.mode=X;break}if(n.length=65535&se,se=0,le=0,n.mode=L,t===f)break e;case L:n.mode=R;case R:if(fe=n.length){if(fe>ae&&(fe=ae),fe>oe&&(fe=oe),0===fe)break e;r.arraySet(te,ee,ne,fe,ie),ae-=fe,ne+=fe,oe-=fe,ie+=fe,n.length-=fe;break}n.mode=D;break;case N:for(;le<14;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(n.nlen=257+(31&se),se>>>=5,le-=5,n.ndist=1+(31&se),se>>>=5,le-=5,n.ncode=4+(15&se),se>>>=4,le-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=X;break}n.have=0,n.mode=U;case U:for(;n.have<n.ncode;){for(;le<3;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}n.lens[Te[n.have++]]=7&se,se>>>=3,le-=3}for(;n.have<19;)n.lens[Te[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ce={bits:n.lenbits},xe=s(l,n.lens,0,19,n.lencode,0,n.work,Ce),n.lenbits=Ce.bits,xe){e.msg="invalid code lengths set",n.mode=X;break}n.have=0,n.mode=j;case j:for(;n.have<n.nlen+n.ndist;){for(;me=(ke=n.lencode[se&(1<<n.lenbits)-1])>>>16&255,ve=65535&ke,!((Ae=ke>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(ve<16)se>>>=Ae,le-=Ae,n.lens[n.have++]=ve;else{if(16===ve){for(Se=Ae+2;le<Se;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(se>>>=Ae,le-=Ae,0===n.have){e.msg="invalid bit length repeat",n.mode=X;break}we=n.lens[n.have-1],fe=3+(3&se),se>>>=2,le-=2}else if(17===ve){for(Se=Ae+3;le<Se;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}le-=Ae,we=0,fe=3+(7&(se>>>=Ae)),se>>>=3,le-=3}else{for(Se=Ae+7;le<Se;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}le-=Ae,we=0,fe=11+(127&(se>>>=Ae)),se>>>=7,le-=7}if(n.have+fe>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=X;break}for(;fe--;)n.lens[n.have++]=we}}if(n.mode===X)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=X;break}if(n.lenbits=9,Ce={bits:n.lenbits},xe=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,Ce),n.lenbits=Ce.bits,xe){e.msg="invalid literal/lengths set",n.mode=X;break}if(n.distbits=6,n.distcode=n.distdyn,Ce={bits:n.distbits},xe=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ce),n.distbits=Ce.bits,xe){e.msg="invalid distances set",n.mode=X;break}if(n.mode=H,t===f)break e;case H:n.mode=z;case z:if(ae>=6&&oe>=258){e.next_out=ie,e.avail_out=oe,e.next_in=ne,e.avail_in=ae,n.hold=se,n.bits=le,o(e,ue),ie=e.next_out,te=e.output,oe=e.avail_out,ne=e.next_in,ee=e.input,ae=e.avail_in,se=n.hold,le=n.bits,n.mode===D&&(n.back=-1);break}for(n.back=0;me=(ke=n.lencode[se&(1<<n.lenbits)-1])>>>16&255,ve=65535&ke,!((Ae=ke>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(me&&0==(240&me)){for(ye=Ae,be=me,_e=ve;me=(ke=n.lencode[_e+((se&(1<<ye+be)-1)>>ye)])>>>16&255,ve=65535&ke,!(ye+(Ae=ke>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}se>>>=ye,le-=ye,n.back+=ye}if(se>>>=Ae,le-=Ae,n.back+=Ae,n.length=ve,0===me){n.mode=W;break}if(32&me){n.back=-1,n.mode=D;break}if(64&me){e.msg="invalid literal/length code",n.mode=X;break}n.extra=15&me,n.mode=Q;case Q:if(n.extra){for(Se=n.extra;le<Se;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}n.length+=se&(1<<n.extra)-1,se>>>=n.extra,le-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=V;case V:for(;me=(ke=n.distcode[se&(1<<n.distbits)-1])>>>16&255,ve=65535&ke,!((Ae=ke>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(0==(240&me)){for(ye=Ae,be=me,_e=ve;me=(ke=n.distcode[_e+((se&(1<<ye+be)-1)>>ye)])>>>16&255,ve=65535&ke,!(ye+(Ae=ke>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}se>>>=ye,le-=ye,n.back+=ye}if(se>>>=Ae,le-=Ae,n.back+=Ae,64&me){e.msg="invalid distance code",n.mode=X;break}n.offset=ve,n.extra=15&me,n.mode=G;case G:if(n.extra){for(Se=n.extra;le<Se;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}n.offset+=se&(1<<n.extra)-1,se>>>=n.extra,le-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=X;break}n.mode=q;case q:if(0===oe)break e;if(fe=ue-oe,n.offset>fe){if((fe=n.offset-fe)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=X;break}fe>n.wnext?(fe-=n.wnext,pe=n.wsize-fe):pe=n.wnext-fe,fe>n.length&&(fe=n.length),ge=n.window}else ge=te,pe=ie-n.offset,fe=n.length;fe>oe&&(fe=oe),oe-=fe,n.length-=fe;do{te[ie++]=ge[pe++]}while(--fe);0===n.length&&(n.mode=z);break;case W:if(0===oe)break e;te[ie++]=n.length,oe--,n.mode=z;break;case $:if(n.wrap){for(;le<32;){if(0===ae)break e;ae--,se|=ee[ne++]<<le,le+=8}if(ue-=oe,e.total_out+=ue,n.total+=ue,ue&&(e.adler=n.check=n.flags?a(n.check,te,ue,ie-ue):i(n.check,te,ue,ie-ue)),ue=oe,(n.flags?se:re(se))!==n.check){e.msg="incorrect data check",n.mode=X;break}se=0,le=0}n.mode=K;case K:if(n.wrap&&n.flags){for(;le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(se!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=X;break}se=0,le=0}n.mode=Y;case Y:xe=g;break e;case X:xe=v;break e;case Z:return y;case J:default:return m}return e.next_out=ie,e.avail_out=oe,e.next_in=ne,e.avail_in=ae,n.hold=se,n.bits=le,(n.wsize||ue!==e.avail_out&&n.mode<X&&(n.mode<$||t!==h))&&de(e,e.output,e.next_out,ue-e.avail_out)?(n.mode=Z,y):(ce-=e.avail_in,ue-=e.avail_out,e.total_in+=ce,e.total_out+=ue,n.total+=ue,n.wrap&&ue&&(e.adler=n.check=n.flags?a(n.check,te,ue,e.next_out-ue):i(n.check,te,ue,e.next_out-ue)),e.data_type=n.bits+(n.last?64:0)+(n.mode===D?128:0)+(n.mode===H||n.mode===L?256:0),(0===ce&&0===ue||t===h)&&xe===p&&(xe=b),xe)},n.inflateEnd=function(e){if(!e||!e.state)return m;var t=e.state;return t.window&&(t.window=null),e.state=null,p},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?m:(n.head=t,t.done=!1,p):m},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&n.mode!==P?m:n.mode===P&&i(1,t,r,0)!==n.check?v:de(e,t,r,r)?(n.mode=Z,y):(n.havedict=1,p):m},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":32,"./adler32":34,"./crc32":36,"./inffast":39,"./inftrees":41}],41:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,c,u,h,d){var f,p,g,A,m,v,y,b,_,w=d.bits,x=0,C=0,S=0,k=0,E=0,T=0,B=0,I=0,M=0,P=0,D=null,F=0,O=new r.Buf16(16),L=new r.Buf16(16),R=null,N=0;for(x=0;x<=15;x++)O[x]=0;for(C=0;C<l;C++)O[t[n+C]]++;for(E=w,k=15;k>=1&&0===O[k];k--);if(E>k&&(E=k),0===k)return c[u++]=20971520,c[u++]=20971520,d.bits=1,0;for(S=1;S<k&&0===O[S];S++);for(E<S&&(E=S),I=1,x=1;x<=15;x++)if(I<<=1,(I-=O[x])<0)return-1;if(I>0&&(0===e||1!==k))return-1;for(L[1]=0,x=1;x<15;x++)L[x+1]=L[x]+O[x];for(C=0;C<l;C++)0!==t[n+C]&&(h[L[t[n+C]]++]=C);if(0===e?(D=R=h,v=19):1===e?(D=i,F-=257,R=a,N-=257,v=256):(D=o,R=s,v=-1),P=0,C=0,x=S,m=u,T=E,B=0,g=-1,A=(M=1<<E)-1,1===e&&M>852||2===e&&M>592)return 1;for(;;){0,y=x-B,h[C]<v?(b=0,_=h[C]):h[C]>v?(b=R[N+h[C]],_=D[F+h[C]]):(b=96,_=0),f=1<<x-B,S=p=1<<T;do{c[m+(P>>B)+(p-=f)]=y<<24|b<<16|_|0}while(0!==p);for(f=1<<x-1;P&f;)f>>=1;if(0!==f?(P&=f-1,P+=f):P=0,C++,0==--O[x]){if(x===k)break;x=t[n+h[C]]}if(x>E&&(P&A)!==g){for(0===B&&(B=E),m+=S,I=1<<(T=x-B);T+B<k&&!((I-=O[T+B])<=0);)T++,I<<=1;if(M+=1<<T,1===e&&M>852||2===e&&M>592)return 1;c[g=P&A]=E<<24|T<<16|m-u|0}}return 0!==P&&(c[m+P]=x-B<<24|64<<16|0),d.bits=E,0}},{"../utils/common":32}],42:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],43:[function(e,t,n){"use strict";var r=e("../utils/common"),i=4,a=0,o=1,s=2;function l(e){for(var t=e.length;--t>=0;)e[t]=0}var c=0,u=1,h=2,d=29,f=256,p=f+1+d,g=30,A=19,m=2*p+1,v=15,y=16,b=7,_=256,w=16,x=17,C=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=new Array(2*(p+2));l(B);var I=new Array(2*g);l(I);var M=new Array(512);l(M);var P=new Array(256);l(P);var D=new Array(d);l(D);var F,O,L,R=new Array(g);function N(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function U(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function j(e){return e<256?M[e]:M[256+(e>>>7)]}function H(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function z(e,t,n){e.bi_valid>y-n?(e.bi_buf|=t<<e.bi_valid&65535,H(e,e.bi_buf),e.bi_buf=t>>y-e.bi_valid,e.bi_valid+=n-y):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function Q(e,t,n){z(e,n[2*t],n[2*t+1])}function V(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function G(e,t,n){var r,i,a=new Array(v+1),o=0;for(r=1;r<=v;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=V(a[s]++,s))}}function q(e){var t;for(t=0;t<p;t++)e.dyn_ltree[2*t]=0;for(t=0;t<g;t++)e.dyn_dtree[2*t]=0;for(t=0;t<A;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*_]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function W(e){e.bi_valid>8?H(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function $(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function K(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&$(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!$(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function Y(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?Q(e,i,t):(Q(e,(a=P[i])+f+1,t),0!==(o=S[a])&&z(e,i-=D[a],o),Q(e,a=j(--r),n),0!==(o=k[a])&&z(e,r-=R[a],o))}while(s<e.last_lit);Q(e,_,t)}function X(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=m,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)K(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],K(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,K(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(a=0;a<=v;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<m;n++)(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)>p&&(a=p,g++),l[2*r+1]=a,r>c||(e.bl_count[a]++,o=0,r>=f&&(o=d[r-f]),s=l[2*r],e.opt_len+=s*(a+o),h&&(e.static_len+=s*(u[2*r+1]+o)));if(0!==g){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(a=p;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>c||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),G(a,c,e.bl_count)}function Z(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*w]++):s<=10?e.bl_tree[2*x]++:e.bl_tree[2*C]++,s=0,a=i,0===o?(l=138,c=3):i===o?(l=6,c=3):(l=7,c=4))}function J(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<c)do{Q(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(Q(e,i,e.bl_tree),s--),Q(e,w,e.bl_tree),z(e,s-3,2)):s<=10?(Q(e,x,e.bl_tree),z(e,s-3,3)):(Q(e,C,e.bl_tree),z(e,s-11,7));s=0,a=i,0===o?(l=138,c=3):i===o?(l=6,c=3):(l=7,c=4)}}l(R);var ee=!1;function te(e,t,n,i){z(e,(c<<1)+(i?1:0),3),function(e,t,n,i){W(e),i&&(H(e,n),H(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){ee||(function(){var e,t,n,r,i,a=new Array(v+1);for(n=0,r=0;r<d-1;r++)for(D[r]=n,e=0;e<1<<S[r];e++)P[n++]=r;for(P[n-1]=r,i=0,r=0;r<16;r++)for(R[r]=i,e=0;e<1<<k[r];e++)M[i++]=r;for(i>>=7;r<g;r++)for(R[r]=i<<7,e=0;e<1<<k[r]-7;e++)M[256+i++]=r;for(t=0;t<=v;t++)a[t]=0;for(e=0;e<=143;)B[2*e+1]=8,e++,a[8]++;for(;e<=255;)B[2*e+1]=9,e++,a[9]++;for(;e<=279;)B[2*e+1]=7,e++,a[7]++;for(;e<=287;)B[2*e+1]=8,e++,a[8]++;for(G(B,p+1,a),e=0;e<g;e++)I[2*e+1]=5,I[2*e]=V(e,5);F=new N(B,S,f+1,p,v),O=new N(I,k,0,g,v),L=new N(new Array(0),E,0,A,b)}(),ee=!0),e.l_desc=new U(e.dyn_ltree,F),e.d_desc=new U(e.dyn_dtree,O),e.bl_desc=new U(e.bl_tree,L),e.bi_buf=0,e.bi_valid=0,q(e)},n._tr_stored_block=te,n._tr_flush_block=function(e,t,n,r){var l,c,d=0;e.level>0?(e.strm.data_type===s&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t<f;t++)if(0!==e.dyn_ltree[2*t])return o;return a}(e)),X(e,e.l_desc),X(e,e.d_desc),d=function(e){var t;for(Z(e,e.dyn_ltree,e.l_desc.max_code),Z(e,e.dyn_dtree,e.d_desc.max_code),X(e,e.bl_desc),t=A-1;t>=3&&0===e.bl_tree[2*T[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),l=e.opt_len+3+7>>>3,(c=e.static_len+3+7>>>3)<=l&&(l=c)):l=c=n+5,n+4<=l&&-1!==t?te(e,t,n,r):e.strategy===i||c===l?(z(e,(u<<1)+(r?1:0),3),Y(e,B,I)):(z(e,(h<<1)+(r?1:0),3),function(e,t,n,r){var i;for(z(e,t-257,5),z(e,n-1,5),z(e,r-4,4),i=0;i<r;i++)z(e,e.bl_tree[2*T[i]+1],3);J(e,e.dyn_ltree,t-1),J(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,d+1),Y(e,e.dyn_ltree,e.dyn_dtree)),q(e),r&&W(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(P[n]+f+1)]++,e.dyn_dtree[2*j(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){z(e,u<<1,3),Q(e,_,B),function(e){16===e.bi_valid?(H(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":32}],44:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],45:[function(e,t,n){var r=e("lodash._root"),i=1/0,a="[object Symbol]",o=/[&<>"'`]/g,s=RegExp(o.source),l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"};function c(e){return l[e]}var u=Object.prototype.toString,h=r.Symbol,d=h?h.prototype:void 0,f=h?d.toString:void 0;function p(e){if("string"==typeof e)return e;if(null==e)return"";if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&u.call(e)==a}(e))return h?f.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}t.exports=function(e){return(e=p(e))&&s.test(e)?e.replace(o,c):e}},{"lodash._root":46}],46:[function(e,t,n){(function(e){var r={function:!0,object:!0},i=r[typeof n]&&n&&!n.nodeType?n:void 0,a=r[typeof t]&&t&&!t.nodeType?t:void 0,o=h(i&&a&&"object"==typeof e&&e),s=h(r[typeof self]&&self),l=h(r[typeof window]&&window),c=h(r[typeof this]&&this),u=o||l!==(c&&c.window)&&l||s||c||Function("return this")();function h(e){return e&&e.Object===Object?e:null}t.exports=u}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],47:[function(e,t,n){var r=e("lodash._arraycopy"),i=e("lodash._arrayeach"),a=e("lodash._createassigner"),o=e("lodash.isarguments"),s=e("lodash.isarray"),l=e("lodash.isplainobject"),c=e("lodash.istypedarray"),u=e("lodash.keys"),h=e("lodash.toplainobject");var d=9007199254740991;var f,p=(f="length",function(e){return null==e?void 0:e[f]});function g(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}(p(e))}var A=a(function e(t,n,a,d,f){if(A=typeof(p=t),!p||"object"!=A&&"function"!=A)return t;var p,A,m=g(n)&&(s(n)||c(n)),v=m?void 0:u(n);return i(v||n,function(i,u){if(v&&(i=n[u=i]),function(e){return!!e&&"object"==typeof e}(i))d||(d=[]),f||(f=[]),function(e,t,n,i,a,u,d){for(var f=u.length,p=t[n];f--;)if(u[f]==p)return void(e[n]=d[f]);var A=e[n],m=a?a(A,p,n,e,t):void 0,v=void 0===m;v&&(m=p,g(p)&&(s(p)||c(p))?m=s(A)?A:g(A)?r(A):[]:l(p)||o(p)?m=o(A)?h(A):l(A)?A:{}:v=!1),u.push(p),d.push(m),v?e[n]=i(m,p,a,u,d):(m==m?m!==A:A==A)&&(e[n]=m)}(t,n,u,e,a,d,f);else{var p=t[u],A=a?a(p,i,u,t,n):void 0,y=void 0===A;y&&(A=i),void 0===A&&(!m||u in t)||!y&&(A==A?A===p:p!=p)||(t[u]=A)}}),t});t.exports=A},{"lodash._arraycopy":48,"lodash._arrayeach":49,"lodash._createassigner":50,"lodash.isarguments":55,"lodash.isarray":56,"lodash.isplainobject":57,"lodash.istypedarray":59,"lodash.keys":60,"lodash.toplainobject":62}],48:[function(e,t,n){t.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},{}],49:[function(e,t,n){t.exports=function(e,t){for(var n=-1,r=e.length;++n<r&&!1!==t(e[n],n,e););return e}},{}],50:[function(e,t,n){var r=e("lodash._bindcallback"),i=e("lodash._isiterateecall"),a=e("lodash.restparam");t.exports=function(e){return a(function(t,n){var a=-1,o=null==t?0:n.length,s=o>2?n[o-2]:void 0,l=o>2?n[2]:void 0,c=o>1?n[o-1]:void 0;for("function"==typeof s?(s=r(s,c,5),o-=2):o-=(s="function"==typeof c?c:void 0)?1:0,l&&i(n[0],n[1],l)&&(s=o<3?void 0:s,o=1);++a<o;){var u=n[a];u&&e(t,u,s)}return t})}},{"lodash._bindcallback":51,"lodash._isiterateecall":52,"lodash.restparam":53}],51:[function(e,t,n){function r(e){return e}t.exports=function(e,t,n){if("function"!=typeof e)return r;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,a){return e.call(t,n,r,i,a)};case 5:return function(n,r,i,a,o){return e.call(t,n,r,i,a,o)}}return function(){return e.apply(t,arguments)}}},{}],52:[function(e,t,n){var r=/^\d+$/,i=9007199254740991;var a,o=(a="length",function(e){return null==e?void 0:e[a]});function s(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}(o(e))}t.exports=function(e,t,n){if(!function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(n))return!1;var a=typeof t;if("number"==a?s(n)&&function(e,t){return e="number"==typeof e||r.test(e)?+e:-1,t=null==t?i:t,e>-1&&e%1==0&&e<t}(t,n.length):"string"==a&&t in n){var o=n[t];return e==e?e===o:o!=o}return!1}},{}],53:[function(e,t,n){var r="Expected a function",i=Math.max;t.exports=function(e,t){if("function"!=typeof e)throw new TypeError(r);return t=i(void 0===t?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,a=i(n.length-t,0),o=Array(a);++r<a;)o[r]=n[t+r];switch(t){case 0:return e.call(this,o);case 1:return e.call(this,n[0],o);case 2:return e.call(this,n[0],n[1],o)}var s=Array(t+1);for(r=-1;++r<t;)s[r]=n[r];return s[t]=o,e.apply(this,s)}}},{}],54:[function(e,t,n){var r="[object Function]",i=/^\[object .+?Constructor\]$/;var a=Object.prototype,o=Function.prototype.toString,s=a.hasOwnProperty,l=a.toString,c=RegExp("^"+o.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(e,t){var n=null==e?void 0:e[t];return function(e){return null!=e&&(function(e){return function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)&&l.call(e)==r}(e)?c.test(o.call(e)):function(e){return!!e&&"object"==typeof e}(e)&&i.test(e))}(n)?n:void 0}},{}],55:[function(e,t,n){var r=9007199254740991,i="[object Arguments]",a="[object Function]",o="[object GeneratorFunction]",s=Object.prototype,l=s.hasOwnProperty,c=s.toString,u=s.propertyIsEnumerable;var h,d=(h="length",function(e){return null==e?void 0:e[h]});t.exports=function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(d(e))&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?c.call(e):"";return t==a||t==o}(e)}(e)}(e)&&l.call(e,"callee")&&(!u.call(e,"callee")||c.call(e)==i)}},{}],56:[function(e,t,n){var r="[object Function]",i=/^\[object .+?Constructor\]$/;function a(e){return!!e&&"object"==typeof e}var o,s,l=Object.prototype,c=Function.prototype.toString,u=l.hasOwnProperty,h=l.toString,d=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),f=9007199254740991;var p=(o=Array,function(e){return null!=e&&(function(e){return function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)&&h.call(e)==r}(e)?d.test(c.call(e)):a(e)&&i.test(e))}(s=null==o?void 0:o["isArray"])?s:void 0)||function(e){return a(e)&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}(e.length)&&"[object Array]"==h.call(e)};t.exports=p},{}],57:[function(e,t,n){var r=e("lodash._basefor"),i=e("lodash.isarguments"),a=e("lodash.keysin"),o="[object Object]";var s=Object.prototype,l=s.hasOwnProperty,c=s.toString;t.exports=function(e){var t,n;return!(!function(e){return!!e&&"object"==typeof e}(e)||c.call(e)!=o||i(e)||!(l.call(e,"constructor")||"function"!=typeof(t=e.constructor)||t instanceof t))&&(r(e,function(e,t){n=t},a),void 0===n||l.call(e,n))}},{"lodash._basefor":58,"lodash.isarguments":55,"lodash.keysin":61}],58:[function(e,t,n){var r,i=function(e,t,n){for(var i=-1,a=Object(e),o=n(e),s=o.length;s--;){var l=o[r?s:++i];if(!1===t(a[l],l,a))break}return e};t.exports=i},{}],59:[function(e,t,n){var r=9007199254740991,i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var a=Object.prototype.toString;t.exports=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!!i[a.call(e)]}},{}],60:[function(e,t,n){var r=e("lodash._getnative"),i=e("lodash.isarguments"),a=e("lodash.isarray"),o=/^\d+$/,s=Object.prototype.hasOwnProperty,l=r(Object,"keys"),c=9007199254740991;var u,h=(u="length",function(e){return null==e?void 0:e[u]});function d(e,t){return e="number"==typeof e||o.test(e)?+e:-1,t=null==t?c:t,e>-1&&e%1==0&&e<t}function f(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function p(e){for(var t=function(e){if(null==e)return[];g(e)||(e=Object(e));var t=e.length;t=t&&f(t)&&(a(e)||i(e))&&t||0;var n=e.constructor,r=-1,o="function"==typeof n&&n.prototype===e,l=Array(t),c=t>0;for(;++r<t;)l[r]=r+"";for(var u in e)c&&d(u,t)||"constructor"==u&&(o||!s.call(e,u))||l.push(u);return l}(e),n=t.length,r=n&&e.length,o=!!r&&f(r)&&(a(e)||i(e)),l=-1,c=[];++l<n;){var u=t[l];(o&&d(u,r)||s.call(e,u))&&c.push(u)}return c}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var A=l?function(e){var t,n=null==e?void 0:e.constructor;return"function"==typeof n&&n.prototype===e||"function"!=typeof e&&(null!=(t=e)&&f(h(t)))?p(e):g(e)?l(e):[]}:p;t.exports=A},{"lodash._getnative":54,"lodash.isarguments":55,"lodash.isarray":56}],61:[function(e,t,n){var r=e("lodash.isarguments"),i=e("lodash.isarray"),a=/^\d+$/,o=Object.prototype.hasOwnProperty,s=9007199254740991;function l(e,t){return e="number"==typeof e||a.test(e)?+e:-1,t=null==t?s:t,e>-1&&e%1==0&&e<t}t.exports=function(e){if(null==e)return[];var t,n;n=typeof(t=e),(!t||"object"!=n&&"function"!=n)&&(e=Object(e));var a=e.length;a=a&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}(a)&&(i(e)||r(e))&&a||0;for(var c=e.constructor,u=-1,h="function"==typeof c&&c.prototype===e,d=Array(a),f=a>0;++u<a;)d[u]=u+"";for(var p in e)f&&l(p,a)||"constructor"==p&&(h||!o.call(e,p))||d.push(p);return d}},{"lodash.isarguments":55,"lodash.isarray":56}],62:[function(e,t,n){var r=e("lodash._basecopy"),i=e("lodash.keysin");t.exports=function(e){return r(e,i(e))}},{"lodash._basecopy":63,"lodash.keysin":61}],63:[function(e,t,n){t.exports=function(e,t,n){n||(n={});for(var r=-1,i=t.length;++r<i;){var a=t[r];n[a]=e[a]}return n}},{}],64:[function(e,t,n){var r,i;r=e("jszip"),i=e("./internal"),t.exports={asBlob:function(e,t){var n;return n=new r,i.addFiles(n,e,t),i.generateDocument(n)}}},{"./internal":65,jszip:14}],65:[function(e,t,n){(function(n,r){var i,a,o;i=e("./templates/document"),a=e("./utils"),o={merge:e("lodash.merge")},t.exports={generateDocument:function(e){var t;if(t=e.generate({type:"arraybuffer"}),n.Blob)return new Blob([t],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});if(n.Buffer)return new r(new Uint8Array(t));throw new Error("Neither Blob nor Buffer are accessible in this environment. Consider adding Blob.js shim")},renderDocumentFile:function(e){var t;return null==e&&(e={}),t=o.merge({margins:{top:1440,right:1440,bottom:1440,left:1440,header:720,footer:720,gutter:0}},function(){switch(e.orientation){case"landscape":return{height:12240,width:15840,orient:"landscape"};default:return{width:12240,height:15840,orient:"portrait"}}}(),{margins:e.margins}),i(t)},addFiles:function(e,t,n){return e.file("[Content_Types].xml",r("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8VHlwZXMgeG1sbnM9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9wYWNrYWdlLzIwMDYvY29udGVudC10eXBlcyI+CiAgPERlZmF1bHQgRXh0ZW5zaW9uPSJyZWxzIiBDb250ZW50VHlwZT0KICAgICJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtcGFja2FnZS5yZWxhdGlvbnNoaXBzK3htbCIgLz4KICA8T3ZlcnJpZGUgUGFydE5hbWU9Ii93b3JkL2RvY3VtZW50LnhtbCIgQ29udGVudFR5cGU9CiAgICAiYXBwbGljYXRpb24vdm5kLm9wZW54bWxmb3JtYXRzLW9mZmljZWRvY3VtZW50LndvcmRwcm9jZXNzaW5nbWwuZG9jdW1lbnQubWFpbit4bWwiLz4KICA8T3ZlcnJpZGUgUGFydE5hbWU9Ii93b3JkL2FmY2h1bmsubWh0IiBDb250ZW50VHlwZT0ibWVzc2FnZS9yZmM4MjIiLz4KPC9UeXBlcz4K","base64")),e.folder("_rels").file(".rels",r("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8UmVsYXRpb25zaGlwcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzIj4KICA8UmVsYXRpb25zaGlwCiAgICAgIFR5cGU9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMvb2ZmaWNlRG9jdW1lbnQiCiAgICAgIFRhcmdldD0iL3dvcmQvZG9jdW1lbnQueG1sIiBJZD0iUjA5YzgzZmFmYzA2NzQ4OGUiIC8+CjwvUmVsYXRpb25zaGlwcz4K","base64")),e.folder("word").file("document.xml",this.renderDocumentFile(n)).file("afchunk.mht",a.getMHTdocument(t)).folder("_rels").file("document.xml.rels",r("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8UmVsYXRpb25zaGlwcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzIj4KICA8UmVsYXRpb25zaGlwIFR5cGU9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMvYUZDaHVuayIKICAgIFRhcmdldD0iL3dvcmQvYWZjaHVuay5taHQiIElkPSJodG1sQ2h1bmsiIC8+CjwvUmVsYXRpb25zaGlwcz4K","base64"))}}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./templates/document":66,"./utils":69,buffer:1,"lodash.merge":47}],66:[function(_dereq_,module,exports){var _={escape:_dereq_("lodash.escape")};module.exports=function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<w:document\n xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"\n xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"\n xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"\n xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"\n xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"\n xmlns:ns6="http://schemas.openxmlformats.org/schemaLibrary/2006/main"\n xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"\n xmlns:ns8="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing"\n xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram"\n xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"\n xmlns:ns11="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"\n xmlns:dsp="http://schemas.microsoft.com/office/drawing/2008/diagram"\n xmlns:ns13="urn:schemas-microsoft-com:office:excel"\n xmlns:o="urn:schemas-microsoft-com:office:office"\n xmlns:v="urn:schemas-microsoft-com:vml"\n xmlns:w10="urn:schemas-microsoft-com:office:word"\n xmlns:ns17="urn:schemas-microsoft-com:office:powerpoint"\n xmlns:odx="http://opendope.org/xpaths"\n xmlns:odc="http://opendope.org/conditions"\n xmlns:odq="http://opendope.org/questions"\n xmlns:odi="http://opendope.org/components"\n xmlns:odgm="http://opendope.org/SmartArt/DataHierarchy"\n xmlns:ns24="http://schemas.openxmlformats.org/officeDocument/2006/bibliography"\n xmlns:ns25="http://schemas.openxmlformats.org/drawingml/2006/compatibility"\n xmlns:ns26="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas">\n <w:body>\n <w:altChunk r:id="htmlChunk" />\n <w:sectPr>\n <w:pgSz w:w="'+(null==(__t=width)?"":__t)+'" w:h="'+(null==(__t=height)?"":__t)+'" w:orient="'+(null==(__t=orient)?"":__t)+'" />\n <w:pgMar w:top="'+(null==(__t=margins.top)?"":__t)+'"\n w:right="'+(null==(__t=margins.right)?"":__t)+'"\n w:bottom="'+(null==(__t=margins.bottom)?"":__t)+'"\n w:left="'+(null==(__t=margins.left)?"":__t)+'"\n w:header="'+(null==(__t=margins.header)?"":__t)+'"\n w:footer="'+(null==(__t=margins.footer)?"":__t)+'"\n w:gutter="'+(null==(__t=margins.gutter)?"":__t)+'"/>\n </w:sectPr>\n </w:body>\n</w:document>\n';return __p}},{"lodash.escape":45}],67:[function(_dereq_,module,exports){var _={escape:_dereq_("lodash.escape")};module.exports=function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='MIME-Version: 1.0\nContent-Type: multipart/related;\n type="text/html";\n boundary="----=mhtDocumentPart"\n\n\n------=mhtDocumentPart\nContent-Type: text/html;\n charset="utf-8"\nContent-Transfer-Encoding: quoted-printable\nContent-Location: file:///C:/fake/document.html\n\n'+(null==(__t=htmlSource)?"":__t)+"\n\n"+(null==(__t=contentParts)?"":__t)+"\n\n------=mhtDocumentPart--\n";return __p}},{"lodash.escape":45}],68:[function(_dereq_,module,exports){var _={escape:_dereq_("lodash.escape")};module.exports=function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+="------=mhtDocumentPart\nContent-Type: "+(null==(__t=contentType)?"":__t)+"\nContent-Transfer-Encoding: "+(null==(__t=contentEncoding)?"":__t)+"\nContent-Location: "+(null==(__t=contentLocation)?"":__t)+"\n\n"+(null==(__t=encodedContent)?"":__t)+"\n";return __p}},{"lodash.escape":45}],69:[function(e,t,n){var r,i;r=e("./templates/mht_document"),i=e("./templates/mht_part"),t.exports={getMHTdocument:function(e){var t,n;return e=(n=this._prepareImageParts(e)).htmlSource,t=n.imageContentParts,e=e.replace(/\=/g,"=3D"),r({htmlSource:e,contentParts:t.join("\n")})},_prepareImageParts:function(e){var t,n,r;if(t=[],r=/"data:(\w+\/\w+);(\w+),(\S+)"/g,n=function(e,n,r,a){var o;return o="file:///C:/fake/image"+t.length+"."+n.split("/")[1],t.push(i({contentType:n,contentEncoding:r,contentLocation:o,encodedContent:a})),'"'+o+'"'},"string"==typeof e)return/<img/g.test(e)?{htmlSource:e=e.replace(r,n),imageContentParts:t}:{htmlSource:e,imageContentParts:t};throw new Error("Not a valid source provided!")}}},{"./templates/mht_document":67,"./templates/mht_part":68}]},{},[64])(64)},module.exports=e()},U5ju:function(e,t,n){n("M6a0"),n("zQR9"),n("+tPU"),n("CXw9"),n("EqBC"),n("jKW+"),e.exports=n("FeBl").Promise},UDBF:function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,a;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(a=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",a.map=[t,e.line],!0}},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)}},V0p0:function(e,t,n){var r=n("To6e"),i=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte),a=r.new_double,o=r.new_float,s=r.new_float_n,l=r.new_int,c=r.new_int_n,u=(r.assert,n("f64w")),h=n("d4lq"),d=n("vbIv"),f=n("fd8M"),p=n("QG6P"),g=n("/00o"),A=n("jhNZ");function m(){var e=40;function t(){this.write_timing=0,this.ptr=0,this.buf=i(e)}this.Class_ID=0,this.lame_encode_frame_init=0,this.iteration_init_init=0,this.fill_buffer_resample_init=0,this.mfbuf=s([2,m.MFSIZE]),this.mode_gr=0,this.channels_in=0,this.channels_out=0,this.resample_ratio=0,this.mf_samples_to_encode=0,this.mf_size=0,this.VBR_min_bitrate=0,this.VBR_max_bitrate=0,this.bitrate_index=0,this.samplerate_index=0,this.mode_ext=0,this.lowpass1=0,this.lowpass2=0,this.highpass1=0,this.highpass2=0,this.noise_shaping=0,this.noise_shaping_amp=0,this.substep_shaping=0,this.psymodel=0,this.noise_shaping_stop=0,this.subblock_gain=0,this.use_best_huffman=0,this.full_outer_loop=0,this.l3_side=new u,this.ms_ratio=o(2),this.padding=0,this.frac_SpF=0,this.slot_lag=0,this.tag_spec=null,this.nMusicCRC=0,this.OldValue=l(2),this.CurrentStep=l(2),this.masking_lower=0,this.bv_scf=l(576),this.pseudohalf=l(A.SFBMAX),this.sfb21_extra=!1,this.inbuf_old=new Array(2),this.blackfilt=new Array(2*m.BPC+1),this.itime=a(2),this.sideinfo_len=0,this.sb_sample=s([2,2,18,g.SBLIMIT]),this.amp_filter=o(32),this.header=new Array(m.MAX_HEADER_BUF),this.h_ptr=0,this.w_ptr=0,this.ancillary_flag=0,this.ResvSize=0,this.ResvMax=0,this.scalefac_band=new h,this.minval_l=o(g.CBANDS),this.minval_s=o(g.CBANDS),this.nb_1=s([4,g.CBANDS]),this.nb_2=s([4,g.CBANDS]),this.nb_s1=s([4,g.CBANDS]),this.nb_s2=s([4,g.CBANDS]),this.s3_ss=null,this.s3_ll=null,this.decay=0,this.thm=new Array(4),this.en=new Array(4),this.tot_ener=o(4),this.loudness_sq=s([2,2]),this.loudness_sq_save=o(2),this.mld_l=o(g.SBMAX_l),this.mld_s=o(g.SBMAX_s),this.bm_l=l(g.SBMAX_l),this.bo_l=l(g.SBMAX_l),this.bm_s=l(g.SBMAX_s),this.bo_s=l(g.SBMAX_s),this.npart_l=0,this.npart_s=0,this.s3ind=c([g.CBANDS,2]),this.s3ind_s=c([g.CBANDS,2]),this.numlines_s=l(g.CBANDS),this.numlines_l=l(g.CBANDS),this.rnumlines_l=o(g.CBANDS),this.mld_cb_l=o(g.CBANDS),this.mld_cb_s=o(g.CBANDS),this.numlines_s_num1=0,this.numlines_l_num1=0,this.pe=o(4),this.ms_ratio_s_old=0,this.ms_ratio_l_old=0,this.ms_ener_ratio_old=0,this.blocktype_old=l(2),this.nsPsy=new d,this.VBR_seek_table=new f,this.ATH=null,this.PSY=null,this.nogap_total=0,this.nogap_current=0,this.decode_on_the_fly=!0,this.findReplayGain=!0,this.findPeakSample=!0,this.PeakSample=0,this.RadioGain=0,this.AudiophileGain=0,this.rgdata=null,this.noclipGainChange=0,this.noclipScale=0,this.bitrate_stereoMode_Hist=c([16,5]),this.bitrate_blockType_Hist=c([16,6]),this.pinfo=null,this.hip=null,this.in_buffer_nsamples=0,this.in_buffer_0=null,this.in_buffer_1=null,this.iteration_loop=null;for(var n=0;n<this.en.length;n++)this.en[n]=new p;for(n=0;n<this.thm.length;n++)this.thm[n]=new p;for(n=0;n<this.header.length;n++)this.header[n]=new t}m.MFSIZE=3456+g.ENCDELAY-g.MDCTDELAY,m.MAX_HEADER_BUF=256,m.MAX_BITS_PER_CHANNEL=4095,m.MAX_BITS_PER_GRANULE=7680,m.BPC=320,e.exports=m},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:"取消"},empty:{description:"暂无数据"}}}},W1VW:function(e,t,n){"use strict";var r=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,i=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,t){var n,a,o,s,l,c,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c)return!1;if(60===(s=e.src.charCodeAt(u)))return!1;if(62===s)break}return n=e.src.slice(l+1,u),i.test(n)?(a=e.md.normalizeLink(n),!!e.md.validateLink(a)&&(t||((o=e.push("link_open","a",1)).attrs=[["href",a]],o.markup="autolink",o.info="auto",(o=e.push("text","",0)).content=e.md.normalizeLinkText(n),(o=e.push("link_close","a",-1)).markup="autolink",o.info="auto"),e.pos+=n.length+2,!0)):!!r.test(n)&&(a=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(a)&&(t||((o=e.push("link_open","a",1)).attrs=[["href",a]],o.markup="autolink",o.info="auto",(o=e.push("text","",0)).content=e.md.normalizeLinkText(n),(o=e.push("link_close","a",-1)).markup="autolink",o.info="auto"),e.pos+=n.length+2,!0))}},WCAV:function(e,t,n){"use strict";var r=n("+N5+").normalizeReference,i=n("+N5+").isSpace;e.exports=function(e,t){var n,a,o,s,l,c,u,h,d,f,p,g,A,m="",v=e.pos,y=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=l+1)<y&&40===e.src.charCodeAt(u)){for(u++;u<y&&(a=e.src.charCodeAt(u),i(a)||10===a);u++);if(u>=y)return!1;for(A=u,(d=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(m=e.md.normalizeLink(d.str),e.md.validateLink(m)?u=d.pos:m=""),A=u;u<y&&(a=e.src.charCodeAt(u),i(a)||10===a);u++);if(d=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<y&&A!==u&&d.ok)for(f=d.str,u=d.pos;u<y&&(a=e.src.charCodeAt(u),i(a)||10===a);u++);else f="";if(u>=y||41!==e.src.charCodeAt(u))return e.pos=v,!1;u++}else{if(void 0===e.env.references)return!1;if(u<y&&91===e.src.charCodeAt(u)?(A=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?s=e.src.slice(A,u++):u=l+1):u=l+1,s||(s=e.src.slice(c,l)),!(h=e.env.references[r(s)]))return e.pos=v,!1;m=h.href,f=h.title}return t||(o=e.src.slice(c,l),e.md.inline.parse(o,e.md,e.env,g=[]),(p=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],p.children=g,p.content=o,f&&n.push(["title",f])),e.pos=u,e.posMax=y,!0}},WFjR:function(e,t,n){e.exports=n("2rcl")},WwEC:function(e,t,n){(function(t){!function(t){"use strict";var n=function(){},r="undefined"==typeof console?{log:n,debug:n,error:n,warn:n,info:n}:console;if(void 0!==e&&e.exports||void 0===t.jsMind){var i=t.document,a=function(e){return i.createElement(e)},o=function(e,t){e.hasChildNodes()?e.firstChild.nodeValue=t:e.appendChild(i.createTextNode(t))},s=function(e,t){t instanceof HTMLElement?(e.innerHTML="",e.appendChild(t)):e.innerHTML=t};"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(e){return this.slice(0,e.length)===e});var l={container:"",editable:!1,theme:null,mode:"full",support_html:!0,view:{engine:"canvas",hmargin:100,vmargin:50,line_width:2,line_color:"#555",draggable:!1,hide_scrollbars_when_draggable:!1},layout:{hspace:30,vspace:20,pspace:13},default_event_handle:{enable_mousedown_handle:!0,enable_click_handle:!0,enable_dblclick_handle:!0,enable_mousewheel_handle:!0},shortcut:{enable:!0,handles:{},mapping:{addchild:45,addbrother:13,editnode:113,delnode:46,toggle:32,left:37,up:38,right:39,down:40}}},c=function(e){c.current=this,this.version="0.4.8";var t={};c.util.json.merge(t,l),c.util.json.merge(t,e),t.container?(this.options=t,this.inited=!1,this.mind=null,this.event_handles=[],this.init()):r.error("the options.container should not be null or empty.")};c.direction={left:-1,center:0,right:1},c.event_type={show:1,resize:2,edit:3,select:4},c.key={meta:8192,ctrl:4096,alt:2048,shift:1024},c.node=function(e,t,n,i,a,o,s,l){e?"number"==typeof t?(void 0===l&&(l=!0),this.id=e,this.index=t,this.topic=n,this.data=i||{},this.isroot=a,this.parent=o,this.direction=s,this.expanded=!!l,this.children=[],this._data={}):r.error("invalid node index"):r.error("invalid nodeid")},c.node.compare=function(e,t){var n=e.index,r=t.index;return n>=0&&r>=0?n-r:-1==n&&-1==r?0:-1==n?1:-1==r?-1:0},c.node.inherited=function(e,t){if(e&&t){if(e.id===t.id)return!0;if(e.isroot)return!0;for(var n=e.id,r=t;!r.isroot;)if((r=r.parent).id===n)return!0}return!1},c.node.prototype={get_location:function(){var e=this._data.view;return{x:e.abs_x,y:e.abs_y}},get_size:function(){var e=this._data.view;return{w:e.width,h:e.height}}},c.mind=function(){this.name=null,this.author=null,this.version=null,this.root=null,this.selected=null,this.nodes={}},c.mind.prototype={get_node:function(e){return e in this.nodes?this.nodes[e]:(r.warn("the node[id="+e+"] can not be found"),null)},set_root:function(e,t,n){null==this.root?(this.root=new c.node(e,0,t,n,!0),this._put_node(this.root)):r.error("root node is already exist")},add_node:function(e,t,n,i,a,o,s){if(!c.util.is_node(e)){var l=this.get_node(e);return l?this.add_node(l,t,n,i,a,o,s):(r.error("the parent_node[id="+e+"] can not be found."),null)}var u=a||-1,h=null;if(e.isroot){var d=c.direction.right;if(isNaN(o)){if("side"!==c.current.options.mode){for(var f=e.children,p=f.length,g=0,A=0;A<p;A++)f[A].direction===c.direction.left?g--:g++;d=p>1&&g>0?c.direction.left:c.direction.right}}else d=o!=c.direction.left?c.direction.right:c.direction.left;h=new c.node(t,u,n,i,!1,e,d,s)}else h=new c.node(t,u,n,i,!1,e,e.direction,s);return this._put_node(h)?(e.children.push(h),this._reindex(e)):(r.error("fail, the nodeid '"+h.id+"' has been already exist."),h=null),h},insert_node_before:function(e,t,n,i){if(!c.util.is_node(e)){var a=this.get_node(e);return a?this.insert_node_before(a,t,n,i):(r.error("the node_before[id="+e+"] can not be found."),null)}var o=e.index-.5;return this.add_node(e.parent,t,n,i,o)},get_node_before:function(e){if(!c.util.is_node(e)){var t=this.get_node(e);return t?this.get_node_before(t):(r.error("the node[id="+e+"] can not be found."),null)}if(e.isroot)return null;var n=e.index-2;return n>=0?e.parent.children[n]:null},insert_node_after:function(e,t,n,i){if(!c.util.is_node(e)){var a=this.get_node(e);return a?this.insert_node_after(a,t,n,i):(r.error("the node_after[id="+e+"] can not be found."),null)}var o=e.index+.5;return this.add_node(e.parent,t,n,i,o)},get_node_after:function(e){if(!c.util.is_node(e)){var t=this.get_node(e);return t?this.get_node_after(t):(r.error("the node[id="+e+"] can not be found."),null)}if(e.isroot)return null;var n=e.index;return e.parent.children.length>=n?e.parent.children[n]:null},move_node:function(e,t,n,i){if(!c.util.is_node(e)){var a=this.get_node(e);return a?this.move_node(a,t,n,i):(r.error("the node[id="+e+"] can not be found."),null)}return n||(n=e.parent.id),this._move_node(e,t,n,i)},_flow_node_direction:function(e,t){void 0===t?t=e.direction:e.direction=t;for(var n=e.children.length;n--;)this._flow_node_direction(e.children[n],t)},_move_node_internal:function(e,t){if(e&&t)if("_last_"==t)e.index=-1,this._reindex(e.parent);else if("_first_"==t)e.index=0,this._reindex(e.parent);else{var n=t?this.get_node(t):null;null!=n&&null!=n.parent&&n.parent.id==e.parent.id&&(e.index=n.index-.5,this._reindex(e.parent))}return e},_move_node:function(e,t,n,r){if(e&&n){if(e.parent.id!=n){for(var i=e.parent.children,a=i.length;a--;)if(i[a].id==e.id){i.splice(a,1);break}e.parent=this.get_node(n),e.parent.children.push(e)}e.parent.isroot?r==c.direction.left?e.direction=r:e.direction=c.direction.right:e.direction=e.parent.direction,this._move_node_internal(e,t),this._flow_node_direction(e)}return e},remove_node:function(e){if(!c.util.is_node(e)){var t=this.get_node(e);return t?this.remove_node(t):(r.error("the node[id="+e+"] can not be found."),!1)}if(!e)return r.error("fail, the node can not be found"),!1;if(e.isroot)return r.error("fail, can not remove root node"),!1;null!=this.selected&&this.selected.id==e.id&&(this.selected=null);for(var n=e.children,i=n.length;i--;)this.remove_node(n[i]);n.length=0;for(var a=e.parent.children,o=a.length;o--;)if(a[o].id==e.id){a.splice(o,1);break}for(var s in delete this.nodes[e.id],e)delete e[s];return e=null,!0},_put_node:function(e){return e.id in this.nodes?(r.warn("the nodeid '"+e.id+"' has been already exist."),!1):(this.nodes[e.id]=e,!0)},_reindex:function(e){if(e instanceof c.node){e.children.sort(c.node.compare);for(var t=0;t<e.children.length;t++)e.children[t].index=t+1}}},c.format={node_tree:{example:{meta:{name:"jsMind",author:"hizzgdev@163.com",version:"0.4.8"},format:"node_tree",data:{id:"root",topic:"jsMind Example"}},get_mind:function(e){var t=c.format.node_tree,n=new c.mind;return n.name=e.meta.name,n.author=e.meta.author,n.version=e.meta.version,t._parse(n,e.data),n},get_data:function(e){var t=c.format.node_tree,n={};return n.meta={name:e.name,author:e.author,version:e.version},n.format="node_tree",n.data=t._buildnode(e.root),n},_parse:function(e,t){var n=c.format.node_tree,r=n._extract_data(t);if(e.set_root(t.id,t.topic,r),"children"in t)for(var i=t.children,a=0;a<i.length;a++)n._extract_subnode(e,e.root,i[a])},_extract_data:function(e){var t={};for(var n in e)"id"!=n&&"topic"!=n&&"children"!=n&&"direction"!=n&&"expanded"!=n&&(t[n]=e[n]);return t},_extract_subnode:function(e,t,n){var r=c.format.node_tree,i=r._extract_data(n),a=null;t.isroot&&(a="left"==n.direction?c.direction.left:c.direction.right);var o=e.add_node(t,n.id,n.topic,i,null,a,n.expanded);if(n.children)for(var s=n.children,l=0;l<s.length;l++)r._extract_subnode(e,o,s[l])},_buildnode:function(e){var t=c.format.node_tree;if(e instanceof c.node){var n={id:e.id,topic:e.topic,expanded:e.expanded};if(e.parent&&e.parent.isroot&&(n.direction=e.direction==c.direction.left?"left":"right"),null!=e.data){var r=e.data;for(var i in r)n[i]=r[i]}var a=e.children;if(a.length>0){n.children=[];for(var o=0;o<a.length;o++)n.children.push(t._buildnode(a[o]))}return n}}},node_array:{example:{meta:{name:"jsMind",author:"hizzgdev@163.com",version:"0.4.8"},format:"node_array",data:[{id:"root",topic:"jsMind Example",isroot:!0}]},get_mind:function(e){var t=c.format.node_array,n=new c.mind;return n.name=e.meta.name,n.author=e.meta.author,n.version=e.meta.version,t._parse(n,e.data),n},get_data:function(e){var t=c.format.node_array,n={};return n.meta={name:e.name,author:e.author,version:e.version},n.format="node_array",n.data=[],t._array(e,n.data),n},_parse:function(e,t){var n=c.format.node_array,i=t.slice(0);i.reverse();var a=n._extract_root(e,i);a?n._extract_subnode(e,a,i):r.error("root node can not be found")},_extract_root:function(e,t){for(var n=c.format.node_array,r=t.length;r--;)if("isroot"in t[r]&&t[r].isroot){var i=t[r],a=n._extract_data(i);return e.set_root(i.id,i.topic,a),t.splice(r,1),i.id}return null},_extract_subnode:function(e,t,n){for(var r=c.format.node_array,i=n.length,a=null,o=null,s=0;i--;)if((a=n[i]).parentid==t){o=r._extract_data(a);var l=null,u=a.direction;u&&(l="left"==u?c.direction.left:c.direction.right),e.add_node(t,a.id,a.topic,o,null,l,a.expanded),n.splice(i,1),s++;var h=r._extract_subnode(e,a.id,n);h>0&&(i=n.length,s+=h)}return s},_extract_data:function(e){var t={};for(var n in e)"id"!=n&&"topic"!=n&&"parentid"!=n&&"isroot"!=n&&"direction"!=n&&"expanded"!=n&&(t[n]=e[n]);return t},_array:function(e,t){c.format.node_array._array_node(e.root,t)},_array_node:function(e,t){var n=c.format.node_array;if(e instanceof c.node){var r={id:e.id,topic:e.topic,expanded:e.expanded};if(e.parent&&(r.parentid=e.parent.id),e.isroot&&(r.isroot=!0),e.parent&&e.parent.isroot&&(r.direction=e.direction==c.direction.left?"left":"right"),null!=e.data){var i=e.data;for(var a in i)r[a]=i[a]}t.push(r);for(var o=e.children.length,s=0;s<o;s++)n._array_node(e.children[s],t)}}},freemind:{example:{meta:{name:"jsMind",author:"hizzgdev@163.com",version:"0.4.8"},format:"freemind",data:'<map version="1.0.1"><node ID="root" TEXT="freemind Example"/></map>'},get_mind:function(e){var t=c.format.freemind,n=new c.mind;n.name=e.meta.name,n.author=e.meta.author,n.version=e.meta.version;var r=e.data,i=t._parse_xml(r),a=t._find_root(i);return t._load_node(n,null,a),n},get_data:function(e){var t=c.format.freemind,n={};n.meta={name:e.name,author:e.author,version:e.version},n.format="freemind";var r=[];return r.push('<map version="1.0.1">'),t._buildmap(e.root,r),r.push("</map>"),n.data=r.join(" "),n},_parse_xml:function(e){var t=null;window.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e));return t},_find_root:function(e){for(var t=e.childNodes,n=null,r=null,i=0;i<t.length;i++)if(1==(r=t[i]).nodeType&&"map"==r.tagName){n=r;break}if(n){var a=n.childNodes;n=null;for(i=0;i<a.length;i++)if(1==(r=a[i]).nodeType&&"node"==r.tagName){n=r;break}}return n},_load_node:function(e,t,n){var r=c.format.freemind,i=n.getAttribute("ID"),a=n.getAttribute("TEXT");if(null==a)for(var o=n.childNodes,s=null,l=0;l<o.length;l++)if(1==(s=o[l]).nodeType&&"richcontent"===s.tagName){a=s.textContent;break}var u=r._load_attributes(n),h=!("expanded"in u)||"true"==u.expanded;delete u.expanded;var d=n.getAttribute("POSITION"),f=null;d&&(f="left"==d?c.direction.left:c.direction.right),t?e.add_node(t,i,a,u,null,f,h):e.set_root(i,a,u);var p=n.childNodes,g=null;for(l=0;l<p.length;l++)1==(g=p[l]).nodeType&&"node"==g.tagName&&r._load_node(e,i,g)},_load_attributes:function(e){for(var t=e.childNodes,n=null,r={},i=0;i<t.length;i++)1==(n=t[i]).nodeType&&"attribute"===n.tagName&&(r[n.getAttribute("NAME")]=n.getAttribute("VALUE"));return r},_buildmap:function(e,t){var n=c.format.freemind,r=null;e.parent&&e.parent.isroot&&(r=e.direction===c.direction.left?"left":"right"),t.push("<node"),t.push('ID="'+e.id+'"'),r&&t.push('POSITION="'+r+'"'),t.push('TEXT="'+e.topic+'">'),t.push('<attribute NAME="expanded" VALUE="'+e.expanded+'"/>');var i=e.data;if(null!=i)for(var a in i)t.push('<attribute NAME="'+a+'" VALUE="'+i[a]+'"/>');for(var o=e.children,s=0;s<o.length;s++)n._buildmap(o[s],t);t.push("</node>")}}},c.util={is_node:function(e){return!!e&&e instanceof c.node},ajax:{_xhr:function(){var e=null;if(window.XMLHttpRequest)e=new XMLHttpRequest;else try{e=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}return e},_eurl:function(e){return encodeURIComponent(e)},request:function(e,t,n,i,a){var o=c.util.ajax,s=null,l=[];for(var u in t)l.push(o._eurl(u)+"="+o._eurl(t[u]));l.length>0&&(s=l.join("&"));var h=o._xhr();h&&(h.onreadystatechange=function(){if(4==h.readyState)if(200==h.status||0==h.status){if("function"==typeof i){var e=c.util.json.string2json(h.responseText);i(null!=e?e:h.responseText)}}else"function"==typeof a?a(h):r.error("xhr request failed.",h)},n=n||"GET",h.open(n,e,!0),h.setRequestHeader("If-Modified-Since","0"),"POST"==n?(h.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),h.send(s)):h.send())},get:function(e,t){return c.util.ajax.request(e,{},"GET",t)},post:function(e,t,n){return c.util.ajax.request(e,t,"POST",n)}},dom:{add_event:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}},file:{read:function(e,t){var n=new FileReader;n.onload=function(){"function"==typeof t&&t(this.result,e.name)},n.readAsText(e)},save:function(e,n,r){var o;if("function"==typeof t.Blob)o=new Blob([e],{type:n});else{var s=new(t.BlobBuilder||t.MozBlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder);s.append(e),o=s.getBlob(n)}if(navigator.msSaveBlob)navigator.msSaveBlob(o,r);else{var l=(t.URL||t.webkitURL).createObjectURL(o),c=a("a");if("download"in c){c.style.visibility="hidden",c.href=l,c.download=r,i.body.appendChild(c);var u=i.createEvent("MouseEvents");u.initEvent("click",!0,!0),c.dispatchEvent(u),i.body.removeChild(c)}else location.href=l}}},json:{json2string:function(e){if(JSON)try{return JSON.stringify(e)}catch(e){return r.warn(e),r.warn("can not convert to string"),null}},string2json:function(e){if(JSON)try{return JSON.parse(e)}catch(e){return r.warn(e),r.warn("can not parse to json"),null}},merge:function(e,t){for(var n in t)n in e?"object"!=typeof e[n]||"[object object]"!=Object.prototype.toString.call(e[n]).toLowerCase()||e[n].length?e[n]=t[n]:c.util.json.merge(e[n],t[n]):e[n]=t[n];return e}},uuid:{newid:function(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}},text:{is_empty:function(e){return!e||0==e.replace(/\s*/,"").length}}},c.prototype={init:function(){if(!this.inited){this.inited=!0;var e=this.options,t={mode:e.mode,hspace:e.layout.hspace,vspace:e.layout.vspace,pspace:e.layout.pspace},n={container:e.container,support_html:e.support_html,engine:e.view.engine,hmargin:e.view.hmargin,vmargin:e.view.vmargin,line_width:e.view.line_width,line_color:e.view.line_color,draggable:e.view.draggable,hide_scrollbars_when_draggable:e.view.hide_scrollbars_when_draggable};this.data=new c.data_provider(this),this.layout=new c.layout_provider(this,t),this.view=new c.view_provider(this,n),this.shortcut=new c.shortcut_provider(this,e.shortcut),this.data.init(),this.layout.init(),this.view.init(),this.shortcut.init(),this._event_bind(),c.init_plugins(this)}},enable_edit:function(){this.options.editable=!0},disable_edit:function(){this.options.editable=!1},enable_event_handle:function(e){this.options.default_event_handle["enable_"+e+"_handle"]=!0},disable_event_handle:function(e){this.options.default_event_handle["enable_"+e+"_handle"]=!1},get_editable:function(){return this.options.editable},set_theme:function(e){var t=this.options.theme;this.options.theme=e||null,t!=this.options.theme&&(this.view.reset_theme(),this.view.reset_custom_style())},_event_bind:function(){this.view.add_event(this,"mousedown",this.mousedown_handle),this.view.add_event(this,"click",this.click_handle),this.view.add_event(this,"dblclick",this.dblclick_handle),this.view.add_event(this,"mousewheel",this.mousewheel_handle)},mousedown_handle:function(e){if(this.options.default_event_handle.enable_mousedown_handle){var t=e.target||event.srcElement,n=this.view.get_binded_nodeid(t);n?"jmnode"==t.tagName.toLowerCase()&&this.select_node(n):this.select_clear()}},click_handle:function(e){if(this.options.default_event_handle.enable_click_handle){var t=e.target||event.srcElement;if(this.view.is_expander(t)){var n=this.view.get_binded_nodeid(t);n&&this.toggle_node(n)}}},dblclick_handle:function(e){if(this.options.default_event_handle.enable_dblclick_handle&&this.get_editable()){var t=e.target||event.srcElement,n=this.view.get_binded_nodeid(t);n&&this.begin_edit(n)}},mousewheel_handle:function(e){this.options.default_event_handle.enable_mousewheel_handle&&window.event.ctrlKey&&(e.preventDefault(),"Up"==(e.deltaY>0?"Up":"Down")?this.view.zoomIn():this.view.zoomOut())},begin_edit:function(e){if(!c.util.is_node(e)){var t=this.get_node(e);return t?this.begin_edit(t):(r.error("the node[id="+e+"] can not be found."),!1)}this.get_editable()?this.view.edit_node_begin(e):r.error("fail, this mind map is not editable.")},end_edit:function(){this.view.edit_node_end()},toggle_node:function(e){if(!c.util.is_node(e)){var t=this.get_node(e);return t?this.toggle_node(t):void r.error("the node[id="+e+"] can not be found.")}e.isroot||(this.view.save_location(e),this.layout.toggle_node(e),this.view.relayout(),this.view.restore_location(e))},expand_node:function(e){if(!c.util.is_node(e)){var t=this.get_node(e);return t?this.expand_node(t):void r.error("the node[id="+e+"] can not be found.")}e.isroot||(this.view.save_location(e),this.layout.expand_node(e),this.view.relayout(),this.view.restore_location(e))},collapse_node:function(e){if(!c.util.is_node(e)){var t=this.get_node(e);return t?this.collapse_node(t):void r.error("the node[id="+e+"] can not be found.")}e.isroot||(this.view.save_location(e),this.layout.collapse_node(e),this.view.relayout(),this.view.restore_location(e))},expand_all:function(){this.layout.expand_all(),this.view.relayout()},collapse_all:function(){this.layout.collapse_all(),this.view.relayout()},expand_to_depth:function(e){this.layout.expand_to_depth(e),this.view.relayout()},_reset:function(){this.view.reset(),this.layout.reset(),this.data.reset()},_show:function(e){var t=e||c.format.node_array.example;this.mind=this.data.load(t),this.mind?(r.debug("data.load ok"),this.view.load(),r.debug("view.load ok"),this.layout.layout(),r.debug("layout.layout ok"),this.view.show(!0),r.debug("view.show ok"),this.invoke_event_handle(c.event_type.show,{data:[e]})):r.error("data.load error")},show:function(e){this._reset(),this._show(e)},get_meta:function(){return{name:this.mind.name,author:this.mind.author,version:this.mind.version}},get_data:function(e){var t=e||"node_tree";return this.data.get_data(t)},get_root:function(){return this.mind.root},get_node:function(e){return this.mind.get_node(e)},add_node:function(e,t,n,i){if(this.get_editable()){var a=this.mind.add_node(e,t,n,i);return a&&(this.view.add_node(a),this.layout.layout(),this.view.show(!1),this.view.reset_node_custom_style(a),this.expand_node(e),this.invoke_event_handle(c.event_type.edit,{evt:"add_node",data:[e.id,t,n,i],node:t})),a}return r.error("fail, this mind map is not editable"),null},insert_node_before:function(e,t,n,i){if(this.get_editable()){var a=c.util.is_node(e)?e.id:e,o=this.mind.insert_node_before(e,t,n,i);return o&&(this.view.add_node(o),this.layout.layout(),this.view.show(!1),this.invoke_event_handle(c.event_type.edit,{evt:"insert_node_before",data:[a,t,n,i],node:t})),o}return r.error("fail, this mind map is not editable"),null},insert_node_after:function(e,t,n,i){if(this.get_editable()){var a=c.util.is_node(e)?e.id:e,o=this.mind.insert_node_after(e,t,n,i);return o&&(this.view.add_node(o),this.layout.layout(),this.view.show(!1),this.invoke_event_handle(c.event_type.edit,{evt:"insert_node_after",data:[a,t,n,i],node:t})),o}return r.error("fail, this mind map is not editable"),null},remove_node:function(e){if(!c.util.is_node(e)){var t=this.get_node(e);return t?this.remove_node(t):(r.error("the node[id="+e+"] can not be found."),!1)}if(this.get_editable()){if(e.isroot)return r.error("fail, can not remove root node"),!1;var n=e.id,i=e.parent.id,a=this.get_node(i);return this.view.save_location(a),this.view.remove_node(e),this.mind.remove_node(e),this.layout.layout(),this.view.show(!1),this.view.restore_location(a),this.invoke_event_handle(c.event_type.edit,{evt:"remove_node",data:[n],node:i}),!0}return r.error("fail, this mind map is not editable"),!1},update_node:function(e,t){if(this.get_editable())if(c.util.text.is_empty(t))r.warn("fail, topic can not be empty");else{var n=this.get_node(e);if(n){if(n.topic===t)return r.info("nothing changed"),void this.view.update_node(n);n.topic=t,this.view.update_node(n),this.layout.layout(),this.view.show(!1),this.invoke_event_handle(c.event_type.edit,{evt:"update_node",data:[e,t],node:e})}}else r.error("fail, this mind map is not editable")},move_node:function(e,t,n,i){if(this.get_editable()){var a=this.mind.move_node(e,t,n,i);a&&(this.view.update_node(a),this.layout.layout(),this.view.show(!1),this.invoke_event_handle(c.event_type.edit,{evt:"move_node",data:[e,t,n,i],node:e}))}else r.error("fail, this mind map is not editable")},select_node:function(e){if(!c.util.is_node(e)){var t=this.get_node(e);return t?this.select_node(t):void r.error("the node[id="+e+"] can not be found.")}this.layout.is_visible(e)&&(this.mind.selected=e,this.view.select_node(e),this.invoke_event_handle(c.event_type.select,{evt:"select_node",data:[],node:e.id}))},get_selected_node:function(){return this.mind?this.mind.selected:null},select_clear:function(){this.mind&&(this.mind.selected=null,this.view.select_clear())},is_node_visible:function(e){return this.layout.is_visible(e)},find_node_before:function(e){if(!c.util.is_node(e)){var t=this.get_node(e);return t?this.find_node_before(t):void r.error("the node[id="+e+"] can not be found.")}if(e.isroot)return null;var n=null;if(e.parent.isroot)for(var i=e.parent.children,a=null,o=null,s=0;s<i.length;s++)o=i[s],e.direction===o.direction&&(e.id===o.id&&(n=a),a=o);else n=this.mind.get_node_before(e);return n},find_node_after:function(e){if(!c.util.is_node(e)){var t=this.get_node(e);return t?this.find_node_after(t):void r.error("the node[id="+e+"] can not be found.")}if(e.isroot)return null;var n=null;if(e.parent.isroot){for(var i=e.parent.children,a=!1,o=null,s=0;s<i.length;s++)if(o=i[s],e.direction===o.direction){if(a){n=o;break}e.id===o.id&&(a=!0)}}else n=this.mind.get_node_after(e);return n},set_node_color:function(e,t,n){if(!this.get_editable())return r.error("fail, this mind map is not editable"),null;var i=this.mind.get_node(e);i&&(t&&(i.data["background-color"]=t),n&&(i.data["foreground-color"]=n),this.view.reset_node_custom_style(i))},set_node_font_style:function(e,t,n,i){if(!this.get_editable())return r.error("fail, this mind map is not editable"),null;var a=this.mind.get_node(e);a&&(t&&(a.data["font-size"]=t),n&&(a.data["font-weight"]=n),i&&(a.data["font-style"]=i),this.view.reset_node_custom_style(a),this.view.update_node(a),this.layout.layout(),this.view.show(!1))},set_node_background_image:function(e,t,n,i,a){if(!this.get_editable())return r.error("fail, this mind map is not editable"),null;var o=this.mind.get_node(e);o&&(t&&(o.data["background-image"]=t),n&&(o.data.width=n),i&&(o.data.height=i),a&&(o.data["background-rotation"]=a),this.view.reset_node_custom_style(o),this.view.update_node(o),this.layout.layout(),this.view.show(!1))},set_node_background_rotation:function(e,t){if(!this.get_editable())return r.error("fail, this mind map is not editable"),null;var n=this.mind.get_node(e);if(n){if(!n.data["background-image"])return r.error("fail, only can change rotation angle of node with background image"),null;n.data["background-rotation"]=t,this.view.reset_node_custom_style(n),this.view.update_node(n),this.layout.layout(),this.view.show(!1)}},resize:function(){this.view.resize()},add_event_listener:function(e){"function"==typeof e&&this.event_handles.push(e)},clear_event_listener:function(){this.event_handles=[]},invoke_event_handle:function(e,n){var r=this;t.setTimeout(function(){r._invoke_event_handle(e,n)},0)},_invoke_event_handle:function(e,t){for(var n=this.event_handles.length,r=0;r<n;r++)this.event_handles[r](e,t)}},c.data_provider=function(e){this.jm=e},c.data_provider.prototype={init:function(){r.debug("data.init")},reset:function(){r.debug("data.reset")},load:function(e){var t=null,n=null;return"node_array"==(t="object"==typeof e?e.format?e.format:"node_tree":"freemind")?n=c.format.node_array.get_mind(e):"node_tree"==t?n=c.format.node_tree.get_mind(e):"freemind"==t?n=c.format.freemind.get_mind(e):r.warn("unsupported format"),n},get_data:function(e){var t=null;return"node_array"==e?t=c.format.node_array.get_data(this.jm.mind):"node_tree"==e?t=c.format.node_tree.get_data(this.jm.mind):"freemind"==e?t=c.format.freemind.get_data(this.jm.mind):r.error("unsupported "+e+" format"),t}},c.layout_provider=function(e,t){this.opts=t,this.jm=e,this.isside="side"==this.opts.mode,this.bounds=null,this.cache_valid=!1},c.layout_provider.prototype={init:function(){r.debug("layout.init")},reset:function(){r.debug("layout.reset"),this.bounds={n:0,s:0,w:0,e:0}},layout:function(){r.debug("layout.layout"),this.layout_direction(),this.layout_offset()},layout_direction:function(){this._layout_direction_root()},_layout_direction_root:function(){var e=this.jm.mind.root,t=null;"layout"in e._data?t=e._data.layout:(t={},e._data.layout=t);var n=e.children,r=n.length;if(t.direction=c.direction.center,t.side_index=0,this.isside)for(var i=r;i--;)this._layout_direction_side(n[i],c.direction.right,i);else{i=r;for(var a=null;i--;)(a=n[i]).direction==c.direction.left?this._layout_direction_side(a,c.direction.left,i):this._layout_direction_side(a,c.direction.right,i)}},_layout_direction_side:function(e,t,n){var r=null;"layout"in e._data?r=e._data.layout:(r={},e._data.layout=r);var i=e.children,a=i.length;r.direction=t,r.side_index=n;for(var o=a;o--;)this._layout_direction_side(i[o],t,o)},layout_offset:function(){var e=this.jm.mind.root,t=e._data.layout;t.offset_x=0,t.offset_y=0,t.outer_height=0;for(var n=e.children,r=n.length,i=[],a=[],o=null;r--;)(o=n[r])._data.layout.direction==c.direction.right?a.unshift(o):i.unshift(o);t.left_nodes=i,t.right_nodes=a,t.outer_height_left=this._layout_offset_subnodes(i),t.outer_height_right=this._layout_offset_subnodes(a),this.bounds.e=e._data.view.width/2,this.bounds.w=0-this.bounds.e,this.bounds.n=0,this.bounds.s=Math.max(t.outer_height_left,t.outer_height_right)},_layout_offset_subnodes:function(e){for(var t=0,n=e.length,r=n,i=null,a=0,o=null,s=0,l=null;r--;)o=(i=e[r])._data.layout,null==l&&(l=i.parent._data),a=this._layout_offset_subnodes(i.children),i.expanded||(a=0,this.set_visible(i.children,!1)),a=Math.max(i._data.view.height,a),o.outer_height=a,o.offset_y=s-a/2,o.offset_x=this.opts.hspace*o.direction+l.view.width*(l.layout.direction+o.direction)/2,i.parent.isroot||(o.offset_x+=this.opts.pspace*o.direction),s=s-a-this.opts.vspace,t+=a;n>1&&(t+=this.opts.vspace*(n-1)),r=n;for(var c=t/2;r--;)(i=e[r])._data.layout.offset_y+=c;return t},_layout_offset_subnodes_height:function(e){for(var t=0,n=e.length,r=n,i=null,a=0,o=null,s=0,l=null;r--;)o=(i=e[r])._data.layout,null==l&&(l=i.parent._data),a=this._layout_offset_subnodes_height(i.children),i.expanded||(a=0),a=Math.max(i._data.view.height,a),o.outer_height=a,o.offset_y=s-a/2,s=s-a-this.opts.vspace,t+=a;n>1&&(t+=this.opts.vspace*(n-1)),r=n;for(var c=t/2;r--;)(i=e[r])._data.layout.offset_y+=c;return t},get_node_offset:function(e){var t=e._data.layout,n=null;if("_offset_"in t&&this.cache_valid?n=t._offset_:(n={x:-1,y:-1},t._offset_=n),-1==n.x||-1==n.y){var r=t.offset_x,i=t.offset_y;if(!e.isroot){var a=this.get_node_offset(e.parent);r+=a.x,i+=a.y}n.x=r,n.y=i}return n},get_node_point:function(e){var t=e._data.view,n=this.get_node_offset(e),r={};return r.x=n.x+t.width*(e._data.layout.direction-1)/2,r.y=n.y-t.height/2,r},get_node_point_in:function(e){return this.get_node_offset(e)},get_node_point_out:function(e){var t=e._data.layout,n=null;if("_pout_"in t&&this.cache_valid?n=t._pout_:(n={x:-1,y:-1},t._pout_=n),-1==n.x||-1==n.y)if(e.isroot)n.x=0,n.y=0;else{var r=e._data.view,i=this.get_node_offset(e);n.x=i.x+(r.width+this.opts.pspace)*e._data.layout.direction,n.y=i.y}return n},get_expander_point:function(e){var t=this.get_node_point_out(e),n={};return e._data.layout.direction==c.direction.right?n.x=t.x-this.opts.pspace:n.x=t.x,n.y=t.y-Math.ceil(this.opts.pspace/2),n},get_min_size:function(){var e=this.jm.mind.nodes,t=null,n=null;for(var r in e)t=e[r],(n=this.get_node_point_out(t)).x>this.bounds.e&&(this.bounds.e=n.x),n.x<this.bounds.w&&(this.bounds.w=n.x);return{w:this.bounds.e-this.bounds.w,h:this.bounds.s-this.bounds.n}},toggle_node:function(e){e.isroot||(e.expanded?this.collapse_node(e):this.expand_node(e))},expand_node:function(e){e.expanded=!0,this.part_layout(e),this.set_visible(e.children,!0),this.jm.invoke_event_handle(c.event_type.show,{evt:"expand_node",data:[],node:e.id})},collapse_node:function(e){e.expanded=!1,this.part_layout(e),this.set_visible(e.children,!1),this.jm.invoke_event_handle(c.event_type.show,{evt:"collapse_node",data:[],node:e.id})},expand_all:function(){var e,t=this.jm.mind.nodes,n=0;for(var r in t)(e=t[r]).expanded||(e.expanded=!0,n++);if(n>0){var i=this.jm.mind.root;this.part_layout(i),this.set_visible(i.children,!0)}},collapse_all:function(){var e,t=this.jm.mind.nodes,n=0;for(var r in t)(e=t[r]).expanded&&!e.isroot&&(e.expanded=!1,n++);if(n>0){var i=this.jm.mind.root;this.part_layout(i),this.set_visible(i.children,!0)}},expand_to_depth:function(e,t,n){if(!(e<1))for(var r=t||this.jm.mind.root.children,i=n||1,a=r.length,o=null;a--;)o=r[a],i<e&&(o.expanded||this.expand_node(o),this.expand_to_depth(e,o.children,i+1)),i==e&&o.expanded&&this.collapse_node(o)},part_layout:function(e){var t=this.jm.mind.root;if(t){var n=t._data.layout;e.isroot?(n.outer_height_right=this._layout_offset_subnodes_height(n.right_nodes),n.outer_height_left=this._layout_offset_subnodes_height(n.left_nodes)):e._data.layout.direction==c.direction.right?n.outer_height_right=this._layout_offset_subnodes_height(n.right_nodes):n.outer_height_left=this._layout_offset_subnodes_height(n.left_nodes),this.bounds.s=Math.max(n.outer_height_left,n.outer_height_right),this.cache_valid=!1}else r.warn("can not found root node")},set_visible:function(e,t){for(var n=e.length,r=null;n--;)(r=e[n])._data.layout,r.expanded?this.set_visible(r.children,t):this.set_visible(r.children,!1),r.isroot||(r._data.layout.visible=t)},is_expand:function(e){return e.expanded},is_visible:function(e){var t=e._data.layout;return!("visible"in t&&!t.visible)}},c.graph_canvas=function(e){this.opts=e.opts,this.e_canvas=a("canvas"),this.e_canvas.className="jsmind",this.canvas_ctx=this.e_canvas.getContext("2d"),this.size={w:0,h:0}},c.graph_canvas.prototype={element:function(){return this.e_canvas},set_size:function(e,t){this.size.w=e,this.size.h=t,this.e_canvas.width=e,this.e_canvas.height=t},clear:function(){this.canvas_ctx.clearRect(0,0,this.size.w,this.size.h)},draw_line:function(e,t,n){var r=this.canvas_ctx;r.strokeStyle=this.opts.line_color,r.lineWidth=this.opts.line_width,r.lineCap="round",this._bezier_to(r,t.x+n.x,t.y+n.y,e.x+n.x,e.y+n.y)},copy_to:function(e,t){e.drawImage(this.e_canvas,0,0),t&&t()},_bezier_to:function(e,t,n,r,i){e.beginPath(),e.moveTo(t,n),e.bezierCurveTo(t+2*(r-t)/3,n,t,i,r,i),e.stroke()},_line_to:function(e,t,n,r,i){e.beginPath(),e.moveTo(t,n),e.lineTo(r,i),e.stroke()}},c.graph_svg=function(e){this.view=e,this.opts=e.opts,this.e_svg=c.graph_svg.c("svg"),this.e_svg.setAttribute("class","jsmind"),this.size={w:0,h:0},this.lines=[]},c.graph_svg.c=function(e){return i.createElementNS("http://www.w3.org/2000/svg",e)},c.graph_svg.prototype={element:function(){return this.e_svg},set_size:function(e,t){this.size.w=e,this.size.h=t,this.e_svg.setAttribute("width",e),this.e_svg.setAttribute("height",t)},clear:function(){for(var e=this.lines.length;e--;)this.e_svg.removeChild(this.lines[e]);this.lines.length=0},draw_line:function(e,t,n){var r=c.graph_svg.c("path");r.setAttribute("stroke",this.opts.line_color),r.setAttribute("stroke-width",this.opts.line_width),r.setAttribute("fill","transparent"),this.lines.push(r),this.e_svg.appendChild(r),this._bezier_to(r,t.x+n.x,t.y+n.y,e.x+n.x,e.y+n.y)},copy_to:function(e,t){var n=new Image;n.onload=function(){e.drawImage(n,0,0),t&&t()},n.src="data:image/svg+xml;base64,"+btoa((new XMLSerializer).serializeToString(this.e_svg))},_bezier_to:function(e,t,n,r,i){e.setAttribute("d","M"+t+" "+n+" C "+(t+2*(r-t)/3)+" "+n+", "+t+" "+i+", "+r+" "+i)},_line_to:function(e,t,n,r,i){e.setAttribute("d","M "+t+" "+n+" L "+r+" "+i)}},c.view_provider=function(e,t){this.opts=t,this.jm=e,this.layout=e.layout,this.container=null,this.e_panel=null,this.e_nodes=null,this.size={w:0,h:0},this.selected_node=null,this.editing_node=null,this.graph=null},c.view_provider.prototype={init:function(){var e,t;if(r.debug("view.init"),this.container=(t=this.opts.container)&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument?this.opts.container:(e=this.opts.container,i.getElementById(e)),this.container){this.e_panel=a("div"),this.e_nodes=a("jmnodes"),this.e_editor=a("input"),this.graph="svg"===this.opts.engine.toLowerCase()?new c.graph_svg(this):new c.graph_canvas(this),this.e_panel.className="jsmind-inner",this.e_panel.tabIndex=1,this.e_panel.appendChild(this.graph.element()),this.e_panel.appendChild(this.e_nodes),this.e_editor.className="jsmind-editor",this.e_editor.type="text",this.actualZoom=1,this.zoomStep=.1,this.minZoom=.5,this.maxZoom=2;var n=this;c.util.dom.add_event(this.e_editor,"keydown",function(e){var t=e||event;13==t.keyCode&&(n.edit_node_end(),t.stopPropagation())}),c.util.dom.add_event(this.e_editor,"blur",function(e){n.edit_node_end()}),this.container.appendChild(this.e_panel),this.enable_draggable_canvas()}else r.error("the options.view.container was not be found in dom")},add_event:function(e,t,n){c.util.dom.add_event(this.e_nodes,t,function(t){var r=t||event;n.call(e,r)})},get_binded_nodeid:function(e){if(null==e)return null;var t=e.tagName.toLowerCase();return"jmnodes"==t||"body"==t||"html"==t?null:"jmnode"==t||"jmexpander"==t?e.getAttribute("nodeid"):this.get_binded_nodeid(e.parentElement)},is_expander:function(e){return"jmexpander"==e.tagName.toLowerCase()},reset:function(){r.debug("view.reset"),this.selected_node=null,this.clear_lines(),this.clear_nodes(),this.reset_theme()},reset_theme:function(){var e=this.jm.options.theme;this.e_nodes.className=e?"theme-"+e:""},reset_custom_style:function(){var e=this.jm.mind.nodes;for(var t in e)this.reset_node_custom_style(e[t])},load:function(){r.debug("view.load"),this.init_nodes()},expand_size:function(){var e=this.layout.get_min_size(),t=e.w+2*this.opts.hmargin,n=e.h+2*this.opts.vmargin,r=this.e_panel.clientWidth,i=this.e_panel.clientHeight;r<t&&(r=t),i<n&&(i=n),this.size.w=r,this.size.h=i},init_nodes_size:function(e){var t=e._data.view;t.width=t.element.clientWidth,t.height=t.element.clientHeight},init_nodes:function(){var e=this.jm.mind.nodes,t=i.createDocumentFragment();for(var n in e)this.create_node_element(e[n],t);for(var n in this.e_nodes.appendChild(t),e)this.init_nodes_size(e[n])},add_node:function(e){this.create_node_element(e,this.e_nodes),this.init_nodes_size(e)},create_node_element:function(e,t){var n=null;"view"in e._data?n=e._data.view:(n={},e._data.view=n);var r=a("jmnode");if(e.isroot)r.className="root";else{var i=a("jmexpander");o(i,"-"),i.setAttribute("nodeid",e.id),i.style.visibility="hidden",t.appendChild(i),n.expander=i}e.topic&&(this.opts.support_html?s(r,e.topic):o(r,e.topic)),r.setAttribute("nodeid",e.id),r.style.visibility="hidden",this._reset_node_custom_style(r,e.data),t.appendChild(r),n.element=r},remove_node:function(e){null!=this.selected_node&&this.selected_node.id==e.id&&(this.selected_node=null),null!=this.editing_node&&this.editing_node.id==e.id&&(e._data.view.element.removeChild(this.e_editor),this.editing_node=null);for(var t=e.children,n=t.length;n--;)this.remove_node(t[n]);if(e._data.view){var r=e._data.view.element,i=e._data.view.expander;this.e_nodes.removeChild(r),this.e_nodes.removeChild(i),e._data.view.element=null,e._data.view.expander=null}},update_node:function(e){var t=e._data.view,n=t.element;e.topic&&(this.opts.support_html?s(n,e.topic):o(n,e.topic)),t.width=n.clientWidth,t.height=n.clientHeight},select_node:function(e){this.selected_node&&(this.selected_node._data.view.element.className=this.selected_node._data.view.element.className.replace(/\s*selected\b/i,""),this.reset_node_custom_style(this.selected_node)),e&&(this.selected_node=e,e._data.view.element.className+=" selected",this.clear_node_custom_style(e))},select_clear:function(){this.select_node(null)},get_editing_node:function(){return this.editing_node},is_editing:function(){return!!this.editing_node},edit_node_begin:function(e){if(e.topic){null!=this.editing_node&&this.edit_node_end(),this.editing_node=e;var t=e._data.view.element,n=e.topic,i=getComputedStyle(t);this.e_editor.value=n,this.e_editor.style.width=t.clientWidth-parseInt(i.getPropertyValue("padding-left"))-parseInt(i.getPropertyValue("padding-right"))+"px",t.innerHTML="",t.appendChild(this.e_editor),t.style.zIndex=5,this.e_editor.focus(),this.e_editor.select()}else r.warn("don't edit image nodes")},edit_node_end:function(){if(null!=this.editing_node){var e=this.editing_node;this.editing_node=null;var t=e._data.view.element,n=this.e_editor.value;t.style.zIndex="auto",t.removeChild(this.e_editor),c.util.text.is_empty(n)||e.topic===n?this.opts.support_html?s(t,e.topic):o(t,e.topic):this.jm.update_node(e.id,n)}this.e_panel.focus()},get_view_offset:function(){var e=this.layout.bounds;return{x:(this.size.w-e.e-e.w)/2,y:this.size.h/2}},resize:function(){this.graph.set_size(1,1),this.e_nodes.style.width="1px",this.e_nodes.style.height="1px",this.expand_size(),this._show()},_show:function(){this.graph.set_size(this.size.w,this.size.h),this.e_nodes.style.width=this.size.w+"px",this.e_nodes.style.height=this.size.h+"px",this.show_nodes(),this.show_lines(),this.jm.invoke_event_handle(c.event_type.resize,{data:[]})},zoomIn:function(){return this.setZoom(this.actualZoom+this.zoomStep)},zoomOut:function(){return this.setZoom(this.actualZoom-this.zoomStep)},setZoom:function(e){if(e<this.minZoom||e>this.maxZoom)return!1;this.actualZoom=e;for(var t=0;t<this.e_panel.children.length;t++)this.e_panel.children[t].style.transform="scale("+e+")";return this.show(!0),!0},_center_root:function(){var e=this.e_panel.clientWidth,t=this.e_panel.clientHeight;if(this.size.w>e){var n=this.get_view_offset();this.e_panel.scrollLeft=n.x-e/2}this.size.h>t&&(this.e_panel.scrollTop=(this.size.h-t)/2)},show:function(e){r.debug("view.show"),this.expand_size(),this._show(),e&&this._center_root()},relayout:function(){this.expand_size(),this._show()},save_location:function(e){var t=e._data.view;t._saved_location={x:parseInt(t.element.style.left)-this.e_panel.scrollLeft,y:parseInt(t.element.style.top)-this.e_panel.scrollTop}},restore_location:function(e){var t=e._data.view;this.e_panel.scrollLeft=parseInt(t.element.style.left)-t._saved_location.x,this.e_panel.scrollTop=parseInt(t.element.style.top)-t._saved_location.y},clear_nodes:function(){var e=this.jm.mind;if(null!=e){var t=e.nodes,n=null;for(var r in t)(n=t[r])._data.view.element=null,n._data.view.expander=null;this.e_nodes.innerHTML=""}},show_nodes:function(){var e=this.jm.mind.nodes,t=null,n=null,r=null,i=null,a=null,s="-",l=null,c=this.get_view_offset();for(var u in e)n=(l=(t=e[u])._data.view).element,r=l.expander,this.layout.is_visible(t)?(this.reset_node_custom_style(t),i=this.layout.get_node_point(t),l.abs_x=c.x+i.x,l.abs_y=c.y+i.y,n.style.left=c.x+i.x+"px",n.style.top=c.y+i.y+"px",n.style.display="",n.style.visibility="visible",!t.isroot&&t.children.length>0&&(s=t.expanded?"-":"+",a=this.layout.get_expander_point(t),r.style.left=c.x+a.x+"px",r.style.top=c.y+a.y+"px",r.style.display="",r.style.visibility="visible",o(r,s)),t.isroot||0!=t.children.length||(r.style.display="none",r.style.visibility="hidden")):(n.style.display="none",r.style.display="none")},reset_node_custom_style:function(e){this._reset_node_custom_style(e._data.view.element,e.data)},_reset_node_custom_style:function(e,t){if("background-color"in t&&(e.style.backgroundColor=t["background-color"]),"foreground-color"in t&&(e.style.color=t["foreground-color"]),"width"in t&&(e.style.width=t.width+"px"),"height"in t&&(e.style.height=t.height+"px"),"font-size"in t&&(e.style.fontSize=t["font-size"]+"px"),"font-weight"in t&&(e.style.fontWeight=t["font-weight"]),"font-style"in t&&(e.style.fontStyle=t["font-style"]),"background-image"in t){var n=t["background-image"];if(n.startsWith("data")&&t.width&&t.height){var r=new Image;r.onload=function(){var t=a("canvas");t.width=e.clientWidth,t.height=e.clientHeight;if(t.getContext){t.getContext("2d").drawImage(this,2,2,e.clientWidth,e.clientHeight);var n=t.toDataURL();e.style.backgroundImage="url("+n+")"}},r.src=n}else e.style.backgroundImage="url("+n+")";e.style.backgroundSize="99%","background-rotation"in t&&(e.style.transform="rotate("+t["background-rotation"]+"deg)")}},clear_node_custom_style:function(e){var t=e._data.view.element;t.style.backgroundColor="",t.style.color=""},clear_lines:function(){this.graph.clear()},show_lines:function(){this.clear_lines();var e=this.jm.mind.nodes,t=null,n=null,r=null,i=this.get_view_offset();for(var a in e)(t=e[a]).isroot||"visible"in t._data.layout&&!t._data.layout.visible||(n=this.layout.get_node_point_in(t),r=this.layout.get_node_point_out(t.parent),this.graph.draw_line(r,n,i))},enable_draggable_canvas:function(){if(this.opts.draggable){let e,t,n=!1;this.opts.hide_scrollbars_when_draggable&&(this.e_panel.style="overflow: hidden"),c.util.dom.add_event(this.container,"mousedown",r=>{n=!0,e=r.clientX,t=r.clientY}),c.util.dom.add_event(this.container,"mouseup",()=>{n=!1}),c.util.dom.add_event(this.container,"mousemove",r=>{n&&(this.e_panel.scrollBy(e-r.clientX,t-r.clientY),e=r.clientX,t=r.clientY)})}}},c.shortcut_provider=function(e,t){this.jm=e,this.opts=t,this.mapping=t.mapping,this.handles=t.handles,this._newid=null,this._mapping={}},c.shortcut_provider.prototype={init:function(){for(var e in c.util.dom.add_event(this.jm.view.e_panel,"keydown",this.handler.bind(this)),this.handles.addchild=this.handle_addchild,this.handles.addbrother=this.handle_addbrother,this.handles.editnode=this.handle_editnode,this.handles.delnode=this.handle_delnode,this.handles.toggle=this.handle_toggle,this.handles.up=this.handle_up,this.handles.down=this.handle_down,this.handles.left=this.handle_left,this.handles.right=this.handle_right,this.mapping)this.mapping[e]&&e in this.handles&&(this._mapping[this.mapping[e]]=this.handles[e]);"function"==typeof this.opts.id_generator?this._newid=this.opts.id_generator:this._newid=c.util.uuid.newid},enable_shortcut:function(){this.opts.enable=!0},disable_shortcut:function(){this.opts.enable=!1},handler:function(e){if(9==e.which&&e.preventDefault(),!this.jm.view.is_editing()){var t=e||event;if(!this.opts.enable)return!0;var n=t.keyCode+(t.metaKey<<13)+(t.ctrlKey<<12)+(t.altKey<<11)+(t.shiftKey<<10);n in this._mapping&&this._mapping[n].call(this,this.jm,e)}},handle_addchild:function(e,t){var n=e.get_selected_node();if(n){var r=this._newid();e.add_node(n,r,"New Node")&&(e.select_node(r),e.begin_edit(r))}},handle_addbrother:function(e,t){var n=e.get_selected_node();if(n&&!n.isroot){var r=this._newid();e.insert_node_after(n,r,"New Node")&&(e.select_node(r),e.begin_edit(r))}},handle_editnode:function(e,t){var n=e.get_selected_node();n&&e.begin_edit(n)},handle_delnode:function(e,t){var n=e.get_selected_node();n&&!n.isroot&&(e.select_node(n.parent),e.remove_node(n))},handle_toggle:function(e,t){var n=t||event,r=e.get_selected_node();r&&(e.toggle_node(r.id),n.stopPropagation(),n.preventDefault())},handle_up:function(e,t){var n=t||event,r=e.get_selected_node();if(r){var i=e.find_node_before(r);if(!i){var a=e.find_node_before(r.parent);a&&a.children.length>0&&(i=a.children[a.children.length-1])}i&&e.select_node(i),n.stopPropagation(),n.preventDefault()}},handle_down:function(e,t){var n=t||event,r=e.get_selected_node();if(r){var i=e.find_node_after(r);if(!i){var a=e.find_node_after(r.parent);a&&a.children.length>0&&(i=a.children[0])}i&&e.select_node(i),n.stopPropagation(),n.preventDefault()}},handle_left:function(e,t){this._handle_direction(e,t,c.direction.left)},handle_right:function(e,t){this._handle_direction(e,t,c.direction.right)},_handle_direction:function(e,t,n){var r=t||event,i=e.get_selected_node(),a=null;if(i){if(i.isroot){for(var o=i.children,s=[],l=0;l<o.length;l++)o[l].direction===n&&s.push(l);a=o[s[Math.floor((s.length-1)/2)]]}else if(i.direction===n){var c=(s=i.children).length;c>0&&(a=s[Math.floor((c-1)/2)])}else a=i.parent;a&&e.select_node(a),r.stopPropagation(),r.preventDefault()}}},c.plugin=function(e,t){this.name=e,this.init=t},c.plugins=[],c.register_plugin=function(e){e instanceof c.plugin&&c.plugins.push(e)},c.init_plugins=function(e){t.setTimeout(function(){c._init_plugins(e)},0)},c._init_plugins=function(e){for(var t=c.plugins.length,n=null,r=0;r<t;r++)"function"==typeof(n=c.plugins[r].init)&&n(e)},c.show=function(e,t){var n=new c(e);return n.show(t),n},e.exports=c}else r.log("jsMind has been already exist.")}("undefined"!=typeof window?window:t)}).call(t,n("DuR2"))},X0uZ:function(e,t,n){var r=n("kM2E");r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},X5vS:function(e,t){e.exports=function(){this.over_noise=0,this.tot_noise=0,this.max_noise=0,this.over_count=0,this.over_SSD=0,this.bits=0}},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 j}),n.d(r,"defaults",function(){return H}),n.d(r,"createCanvas",function(){return z}),n.d(r,"indexOf",function(){return Q}),n.d(r,"inherits",function(){return V}),n.d(r,"mixin",function(){return G}),n.d(r,"isArrayLike",function(){return q}),n.d(r,"each",function(){return W}),n.d(r,"map",function(){return $}),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 Z}),n.d(r,"bind",function(){return J}),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,"isImagePatternObject",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 ge}),n.d(r,"retrieve3",function(){return Ae}),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 we}),n.d(r,"isPrimitive",function(){return xe}),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 Ee}),n.d(r,"hasOwn",function(){return Te}),n.d(r,"noop",function(){return Be});var i={};n.d(i,"create",function(){return Pe}),n.d(i,"copy",function(){return De}),n.d(i,"clone",function(){return Fe}),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 je}),n.d(i,"lenSquare",function(){return He}),n.d(i,"lengthSquare",function(){return ze}),n.d(i,"mul",function(){return Qe}),n.d(i,"div",function(){return Ve}),n.d(i,"dot",function(){return Ge}),n.d(i,"scale",function(){return qe}),n.d(i,"normalize",function(){return We}),n.d(i,"distance",function(){return $e}),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 Ze}),n.d(i,"lerp",function(){return Je}),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,"parse",function(){return gn}),n.d(a,"lift",function(){return mn}),n.d(a,"toHex",function(){return vn}),n.d(a,"fastLerp",function(){return yn}),n.d(a,"fastMapToColor",function(){return bn}),n.d(a,"lerp",function(){return _n}),n.d(a,"mapToColor",function(){return wn}),n.d(a,"modifyHSL",function(){return xn}),n.d(a,"modifyAlpha",function(){return Cn}),n.d(a,"stringify",function(){return Sn}),n.d(a,"lum",function(){return kn}),n.d(a,"random",function(){return En});var o={};n.d(o,"create",function(){return ur}),n.d(o,"identity",function(){return hr}),n.d(o,"copy",function(){return dr}),n.d(o,"mul",function(){return fr}),n.d(o,"translate",function(){return pr}),n.d(o,"rotate",function(){return gr}),n.d(o,"scale",function(){return Ar}),n.d(o,"invert",function(){return mr}),n.d(o,"clone",function(){return vr});var s={};n.d(s,"init",function(){return fi}),n.d(s,"dispose",function(){return pi}),n.d(s,"disposeAll",function(){return gi}),n.d(s,"getInstance",function(){return Ai}),n.d(s,"registerPainter",function(){return mi}),n.d(s,"version",function(){return vi});var l={};n.d(l,"updateProps",function(){return Eu}),n.d(l,"initProps",function(){return Tu}),n.d(l,"removeElement",function(){return Iu}),n.d(l,"removeElementWithFadeOut",function(){return Pu}),n.d(l,"isElementRemoved",function(){return Bu}),n.d(l,"extendShape",function(){return Ru}),n.d(l,"extendPath",function(){return Uu}),n.d(l,"registerShape",function(){return ju}),n.d(l,"getShapeClass",function(){return Hu}),n.d(l,"makePath",function(){return zu}),n.d(l,"makeImage",function(){return Qu}),n.d(l,"mergePath",function(){return Gu}),n.d(l,"resizePath",function(){return qu}),n.d(l,"subPixelOptimizeLine",function(){return Wu}),n.d(l,"subPixelOptimizeRect",function(){return $u}),n.d(l,"subPixelOptimize",function(){return Ku}),n.d(l,"getTransform",function(){return Yu}),n.d(l,"applyTransform",function(){return Xu}),n.d(l,"transformDirection",function(){return Zu}),n.d(l,"groupTransition",function(){return eh}),n.d(l,"clipPointsByRect",function(){return th}),n.d(l,"clipRectByRect",function(){return nh}),n.d(l,"createIcon",function(){return rh}),n.d(l,"linePolygonIntersect",function(){return ih}),n.d(l,"lineLineIntersect",function(){return ah}),n.d(l,"setTooltipConfig",function(){return sh}),n.d(l,"Group",function(){return li}),n.d(l,"Image",function(){return Fs}),n.d(l,"Text",function(){return el}),n.d(l,"Circle",function(){return Cc}),n.d(l,"Ellipse",function(){return Ec}),n.d(l,"Sector",function(){return Qc}),n.d(l,"Ring",function(){return qc}),n.d(l,"Polygon",function(){return Xc}),n.d(l,"Polyline",function(){return eu}),n.d(l,"Rect",function(){return zs}),n.d(l,"Line",function(){return iu}),n.d(l,"BezierCurve",function(){return cu}),n.d(l,"Arc",function(){return du}),n.d(l,"IncrementalDisplayable",function(){return xu}),n.d(l,"CompoundPath",function(){return fu}),n.d(l,"LinearGradient",function(){return gu}),n.d(l,"RadialGradient",function(){return Au}),n.d(l,"BoundingRect",function(){return jr}),n.d(l,"OrientedBoundingRect",function(){return _u}),n.d(l,"Point",function(){return Mr}),n.d(l,"Path",function(){return Es});var c={};n.d(c,"createList",function(){return P_}),n.d(c,"getLayoutRect",function(){return zd}),n.d(c,"createDimensions",function(){return fb}),n.d(c,"dataStack",function(){return D_}),n.d(c,"createSymbol",function(){return KA}),n.d(c,"createScale",function(){return F_}),n.d(c,"mixinAxisModelCommonMethods",function(){return O_}),n.d(c,"getECData",function(){return tl}),n.d(c,"enableHoverEmphasis",function(){return Wl}),n.d(c,"createTextStyle",function(){return L_});var u={};n.d(u,"linearMap",function(){return _i}),n.d(u,"round",function(){return xi}),n.d(u,"asc",function(){return Ci}),n.d(u,"getPrecision",function(){return Si}),n.d(u,"getPrecisionSafe",function(){return ki}),n.d(u,"getPixelPrecision",function(){return Ei}),n.d(u,"getPercentWithPrecision",function(){return Ti}),n.d(u,"MAX_SAFE_INTEGER",function(){return Ii}),n.d(u,"remRadian",function(){return Mi}),n.d(u,"isRadianAroundZero",function(){return Pi}),n.d(u,"parseDate",function(){return Fi}),n.d(u,"quantity",function(){return Oi}),n.d(u,"quantityExponent",function(){return Li}),n.d(u,"nice",function(){return Ri}),n.d(u,"quantile",function(){return Ni}),n.d(u,"reformIntervals",function(){return Ui}),n.d(u,"isNumeric",function(){return Hi}),n.d(u,"numericToNumber",function(){return ji});var h={};n.d(h,"parse",function(){return Fi}),n.d(h,"format",function(){return id});var d={};n.d(d,"extendShape",function(){return Ru}),n.d(d,"extendPath",function(){return Uu}),n.d(d,"makePath",function(){return zu}),n.d(d,"makeImage",function(){return Qu}),n.d(d,"mergePath",function(){return Gu}),n.d(d,"resizePath",function(){return qu}),n.d(d,"createIcon",function(){return rh}),n.d(d,"updateProps",function(){return Eu}),n.d(d,"initProps",function(){return Tu}),n.d(d,"getTransform",function(){return Yu}),n.d(d,"clipPointsByRect",function(){return th}),n.d(d,"clipRectByRect",function(){return nh}),n.d(d,"registerShape",function(){return ju}),n.d(d,"getShapeClass",function(){return Hu}),n.d(d,"Group",function(){return li}),n.d(d,"Image",function(){return Fs}),n.d(d,"Text",function(){return el}),n.d(d,"Circle",function(){return Cc}),n.d(d,"Ellipse",function(){return Ec}),n.d(d,"Sector",function(){return Qc}),n.d(d,"Ring",function(){return qc}),n.d(d,"Polygon",function(){return Xc}),n.d(d,"Polyline",function(){return eu}),n.d(d,"Rect",function(){return zs}),n.d(d,"Line",function(){return iu}),n.d(d,"BezierCurve",function(){return cu}),n.d(d,"Arc",function(){return du}),n.d(d,"IncrementalDisplayable",function(){return xu}),n.d(d,"CompoundPath",function(){return fu}),n.d(d,"LinearGradient",function(){return gu}),n.d(d,"RadialGradient",function(){return Au}),n.d(d,"BoundingRect",function(){return jr});var f={};n.d(f,"addCommas",function(){return wd}),n.d(f,"toCamelCase",function(){return xd}),n.d(f,"normalizeCssArray",function(){return Cd}),n.d(f,"encodeHTML",function(){return Ed}),n.d(f,"formatTpl",function(){return Md}),n.d(f,"getTooltipMarker",function(){return Pd}),n.d(f,"formatTime",function(){return Dd}),n.d(f,"capitalFirst",function(){return Fd}),n.d(f,"truncateText",function(){return Oa}),n.d(f,"getTextRect",function(){return _d});var p={};n.d(p,"map",function(){return $}),n.d(p,"each",function(){return W}),n.d(p,"indexOf",function(){return Q}),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 J}),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 j}),n.d(p,"defaults",function(){return H}),n.d(p,"clone",function(){return R}),n.d(p,"merge",function(){return N});
  51. /*! *****************************************************************************
  52. Copyright (c) Microsoft Corporation.
  53. Permission to use, copy, modify, and/or distribute this software for any
  54. purpose with or without fee is hereby granted.
  55. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  56. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  57. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  58. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  59. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  60. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  61. PERFORMANCE OF THIS SOFTWARE.
  62. ***************************************************************************** */
  63. var g=function(e,t){return(g=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 A(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}g(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;Object.create;var v=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),y=new(function(){return function(){this.browser=new v,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(y.wxa=!0,y.canvasSupported=!0,y.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(y.worker=!0,y.canvasSupported=!0):"undefined"==typeof navigator?(y.node=!0,y.canvasSupported=!0,y.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;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,y);var b=y,_={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},w={"[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},x=Object.prototype.toString,C=Array.prototype,S=C.forEach,k=C.filter,E=C.slice,T=C.map,B=function(){}.constructor,I=B?B.prototype:null,M="__proto__",P={};function D(e,t){P[e]=t}var F=2311;function O(){return F++}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=x.call(e);if("[object Array]"===n){if(!xe(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=R(e[r])}}else if(w[n]){if(!xe(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(!_[n]&&!xe(e)&&!ce(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==M&&(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)&&r!==M){var i=e[r],a=t[r];!oe(a)||!oe(i)||te(a)||te(i)||ce(a)||ce(i)||se(a)||se(i)||xe(a)||xe(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 j(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==M&&(e[n]=t[n]);return e}function H(e,t,n){for(var r=Z(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 z=function(){return P.createCanvas()};function Q(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 H(e,t,n)}function q(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function W(e,t,n){if(e&&t)if(e.forEach&&e.forEach===S)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 $(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===k)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 Z(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}P.createCanvas=function(){return document.createElement("canvas")};var J=I&&ne(I.bind)?I.call.bind(I.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]"===x.call(e)}function ne(e){return"function"==typeof e}function re(e){return"string"==typeof e}function ie(e){return"[object String]"===x.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.call(e)]}function le(e){return!!w[x.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]"===x.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 ge(e,t){return null!=e?e:t}function Ae(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 _e="__ec_primitive__";function we(e){e[_e]=!0}function xe(e){return e[_e]}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&&W(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 Z(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 Ee(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&j(n,t),n}function Te(e,t){return e.hasOwnProperty(t)}function Be(){}
  64. /*! *****************************************************************************
  65. Copyright (c) Microsoft Corporation.
  66. Permission to use, copy, modify, and/or distribute this software for any
  67. purpose with or without fee is hereby granted.
  68. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  69. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  70. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  71. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  72. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  73. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  74. PERFORMANCE OF THIS SOFTWARE.
  75. ***************************************************************************** */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){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}Ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;function Pe(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 Fe(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(He(e))}var je=Ue;function He(e){return e[0]*e[0]+e[1]*e[1]}var ze=He;function Qe(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 qe(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function We(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 $e(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ke=$e;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 Ze(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Je(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){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=t[a-1],s=r.length,l=0;l<s;l++){var c=r[l];if(!i||!i.filter||null==c.query||i.filter(e,c.query))switch(a){case 0:c.h.call(o);break;case 1:c.h.call(o,t[0]);break;case 2:c.h.call(o,t[0],t[1]);break;default:c.h.apply(o,t.slice(1,a-1))}}return i&&i.afterTrigger&&i.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&&b.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/,gt=[];function At(e,t,n,r){return n=n||{},r||!b.canvasSupported?mt(e,t,n):b.browser.firefox&&b.browser.version<"39"&&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(b.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(gt,e,r,i))return n.zrX=gt[0],void(n.zrY=gt[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&&At(e,i,t,n)}else{At(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 _t=ft?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function wt(e){return 2===e.which||3===e.which}var xt=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=At(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 Et(){_t(this.event)}var Tt=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),Bt=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 Bt(0,0),a.storage=t,a.painter=n,a.painterRoot=i,r=r||new Tt,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&&(W(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 Bt(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 Bt(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:Et}}(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 Bt(e,t),a=r.length-1;a>=0;a--){var o=void 0;if(r[a]!==n&&!r[a].ignore&&(o=Pt(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 xt);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 Bt;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(at);function Pt(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()}W(["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 Ft=Mt,Ot=32,Lt=7;function Rt(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 Nt(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 Ut(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 jt(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 Ht(e,t){var n,r,i,a=Lt,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=jt(e[u],e,l,c,0,t);l+=d,0!==(c-=d)&&0!==(h=Ut(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,g=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)<g);if(p)break;do{if(0!==(d=jt(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=Ut(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}g--}while(d>=Lt||f>=Lt);if(p)break;g<0&&(g=0),g+=2}if((a=g)<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 g=0,A=0,m=!1;do{if(t(s[u],e[c])<0){if(e[h--]=e[c--],g++,A=0,0==--r){m=!0;break}}else if(e[h--]=s[u--],A++,g=0,1==--o){m=!0;break}}while((g|A)<p);if(m)break;do{if(0!==(g=r-jt(s[u],e,n,r,r-1,t))){for(r-=g,f=(h-=g)+1,d=(c-=g)+1,l=g-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!==(A=o-Ut(e[c],s,0,o,o-1,t))){for(o-=A,f=(h-=A)+1,d=(u-=A)+1,l=0;l<A;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(g>=Lt||A>=Lt);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 zt(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var a=0;if(i<Ot)Nt(e,n,r,n+(a=Rt(e,n,r,t)),t);else{var o=Ht(e,t),s=function(e){for(var t=0;e>=Ot;)t|=1&e,e>>=1;return e+t}(i);do{if((a=Rt(e,n,r,t))<s){var l=i;l>s&&(l=s),Nt(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 Qt=1,Vt=4,Gt=!1;function qt(){Gt||(Gt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Wt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var $t=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Wt}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,b.canvasSupported&&zt(n,Wt)},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|=Qt),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)&&(qt(),c.z=0),isNaN(c.z2)&&(qt(),c.z2=0),isNaN(c.zlevel)&&(qt(),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=Q(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}(),Kt="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)},Yt={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-Yt.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*Yt.bounceIn(2*e):.5*Yt.bounceOut(2*e-1)+.5}},Xt=Yt,Zt=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?Xt[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}(),Jt=function(){return function(e){this.value=e}}(),en=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Jt(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}(),tn=function(){function e(e){this._list=new en,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 Jt(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}(),nn={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 rn(e){return(e=Math.round(e))<0?0:e>255?255:e}function an(e){return e<0?0:e>1?1:e}function on(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?rn(parseFloat(t)/100*255):rn(parseInt(t,10))}function sn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?an(parseFloat(t)/100):an(parseFloat(t))}function ln(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 cn(e,t,n){return e+(t-e)*n}function un(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function hn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var dn=new tn(20),fn=null;function pn(e,t){fn&&hn(fn,t),fn=dn.put(e,fn||t.slice())}function gn(e,t){if(e){t=t||[];var n=dn.get(e);if(n)return hn(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in nn)return hn(t,nn[r]),pn(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?(un(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),pn(e,t),t):void un(t,0,0,0,1):7===a||9===a?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(un(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===a?parseInt(r.slice(7),16)/255:1),pn(e,t),t):void un(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?un(t,+c[0],+c[1],+c[2],1):un(t,0,0,0,1);u=sn(c.pop());case"rgb":return 3!==c.length?void un(t,0,0,0,1):(un(t,on(c[0]),on(c[1]),on(c[2]),u),pn(e,t),t);case"hsla":return 4!==c.length?void un(t,0,0,0,1):(c[3]=sn(c[3]),An(c,t),pn(e,t),t);case"hsl":return 3!==c.length?void un(t,0,0,0,1):(An(c,t),pn(e,t),t);default:return}}un(t,0,0,0,1)}}function An(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=sn(e[1]),i=sn(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=2*i-a;return un(t=t||[],rn(255*ln(o,a,n+1/3)),rn(255*ln(o,a,n)),rn(255*ln(o,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function mn(e,t){var n=gn(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 Sn(n,4===n.length?"rgba":"rgb")}}function vn(e){var t=gn(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function yn(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]=rn(cn(o[0],s[0],l)),n[1]=rn(cn(o[1],s[1],l)),n[2]=rn(cn(o[2],s[2],l)),n[3]=an(cn(o[3],s[3],l)),n}}var bn=yn;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=gn(t[i]),s=gn(t[a]),l=r-i,c=Sn([rn(cn(o[0],s[0],l)),rn(cn(o[1],s[1],l)),rn(cn(o[2],s[2],l)),an(cn(o[3],s[3],l))],"rgba");return n?{color:c,leftIndex:i,rightIndex:a,value:r}:c}}var wn=_n;function xn(e,t,n,r){var i,a=gn(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]=sn(n)),null!=r&&(a[2]=sn(r)),Sn(An(a),"rgba")}function Cn(e,t){var n=gn(e);if(n&&null!=t)return n[3]=an(t),Sn(n,"rgba")}function Sn(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 kn(e,t){var n=gn(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function En(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}var Tn=Array.prototype.slice;function Bn(e,t,n){return(t-e)*n+e}function In(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Bn(t[a],n[a],r)}function Mn(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 Dn(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]:Tn.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 Fn(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 On(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 Ln(e,t,n,r,i,a,o,s){for(var l=t.length,c=0;c<l;c++)e[c]=On(t[c],n[c],r[c],i[c],a,o,s)}function Rn(e){if(q(e)){var t=e.length;if(q(e[0])){for(var n=[],r=0;r<t;r++)n.push(Tn.call(e[r]));return n}return Tn.call(e)}return e}function Nn(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}var Un,jn,Hn=[0,0,0,0],zn=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&&this.maxTime>0},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(q(t)){var i=function(e){return q(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&&Fn(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=gn(t);o?(t=o,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof t||isNaN(t))return void(this.interpolable=!1);if(this._isAllValueEqual&&r>0){a=n[r-1];this.isValueColor&&!Fn(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&&Dn(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=Mn([],t[a].value,o,-1):t[a].additiveValue=t[a].value-o:1===n?t[a].additiveValue=Mn([],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?Hn:e[s];if((l>0||c)&&!p&&(p=this._additiveValue=[]),this.useSpline){var g=a[n][i],A=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?Ln(p,A,g,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]=On(t[u][h],n[u][h],r[u][h],i[u][h],a,o,s)}}(p,A,g,m,v,f,f*f,f*f*f);else if(c)Ln(p,A,g,m,v,f,f*f,f*f*f),r||(e[s]=Nn(p));else{var y=void 0;y=this.interpolable?On(A,g,m,v,f,f*f,f*f*f):m,r?this._additiveValue=y:e[s]=y}}else if(l>0)1===l?In(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]=Bn(t[o][s],n[o][s],r)}}(p,h[i],u[i],f);else if(c)In(p,h[i],u[i],f),r||(e[s]=Nn(p));else{y=void 0;y=this.interpolable?Bn(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?(gn(e[n],Hn),Mn(Hn,Hn,r,1),e[n]=Nn(Hn)):e[n]=e[n]+r:1===t?Mn(e[n],e[n],r,1):2===t&&Pn(e[n],e[n],r,1)},e}(),Qn=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,Z(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 zn(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=Nn(s))}else s=this._target[a];if(null==s)continue;0!==e&&o.addKeyframe(0,Rn(s)),this._trackKeys.push(a)}o.addKeyframe(e,Rn(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._doneCbs;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._abortedCbs;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 Zt({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._onframeCbs;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._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.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=Rn(o.value);i.isValueColor&&(s=Nn(s)),e[r]=s}}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Z(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}(),Vn=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,Kt(function t(){e._running&&(Kt(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 Qn(e,t.loop);return this.addAnimator(n),n},t}(at),Gn=b.domSupported,qn=(jn={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Un=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:$(Un,function(e){var t=e.replace("mouse","pointer");return jn.hasOwnProperty(t)?t:e})}),Wn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},$n=!1;function Kn(e){var t=e.pointerType;return"pen"===t||"touch"===t}function Yn(e){e&&(e.zrByTouch=!0)}function Xn(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 Zn=function(){return function(e,t){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}}(),Jn={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){Xn(this,(e=yt(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){$n=!0,e=yt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){$n||(e=yt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){Yn(e=yt(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Jn.mousemove.call(this,e),Jn.mousedown.call(this,e)},touchmove:function(e){Yn(e=yt(this.dom,e)),this.handler.processGesture(e,"change"),Jn.mousemove.call(this,e)},touchend:function(e){Yn(e=yt(this.dom,e)),this.handler.processGesture(e,"end"),Jn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&Jn.click.call(this,e)},pointerdown:function(e){Jn.mousedown.call(this,e)},pointermove:function(e){Kn(e)||Jn.mousemove.call(this,e)},pointerup:function(e){Jn.mouseup.call(this,e)},pointerout:function(e){Kn(e)||Jn.mouseout.call(this,e)}};W(["click","dblclick","contextmenu"],function(e){Jn[e]=function(t){t=yt(this.dom,t),this.trigger(e,t)}});var er={pointermove:function(e){Kn(e)||er.mousemove.call(this,e)},pointerup:function(e){er.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 tr(e,t){var n=t.domHandlers;b.pointerEventsSupported?W(qn.pointer,function(r){rr(t,r,function(t){n[r].call(e,t)})}):(b.touchEventsSupported&&W(qn.touch,function(r){rr(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)})}),W(qn.mouse,function(r){rr(t,r,function(i){i=vt(i),t.touching||n[r].call(e,i)})}))}function nr(e,t){function n(n){rr(t,n,function(r){r=vt(r),Xn(e,r.target)||(r=function(e,t){return yt(e.dom,new Zn(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))},{capture:!0})}b.pointerEventsSupported?W(Wn.pointer,n):b.touchEventsSupported||W(Wn.mouse,n)}function rr(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,bt(e.domTarget,t,n,r)}function ir(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 ar=function(){return function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}}(),or=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 ar(t,Jn),Gn&&(r._globalHandlerScope=new ar(document,er)),tr(r,r._localHandlerScope),r}return Me(t,e),t.prototype.dispose=function(){ir(this._localHandlerScope),Gn&&ir(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,Gn&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?nr(this,t):ir(t)}},t}(at),sr=1;"undefined"!=typeof window&&(sr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var lr=sr,cr=.4;function ur(){return[1,0,0,1,0,0]}function hr(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function dr(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 fr(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 pr(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 gr(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 Ar(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 mr(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 vr(e){var t=[1,0,0,1,0,0];return dr(t,e),t}var yr=hr,br=5e-5;function _r(e){return e>br||e<-br}var wr,xr,Cr=[],Sr=[],kr=[1,0,0,1,0,0],Er=Math.abs,Tr=function(){function e(){}var t;return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},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.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return _r(this.rotation)||_r(this.x)||_r(this.y)||_r(this.scaleX-1)||_r(this.scaleY-1)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):yr(n),e&&(t?fr(n,e,n):dr(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&yr(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Cr);var n=Cr[0]<0?-1:1,r=Cr[1]<0?-1:1,i=((Cr[0]-n)*t+n)/Cr[0]||0,a=((Cr[1]-r)*t+r)/Cr[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||[1,0,0,1,0,0],mr(this.invTransform,e)},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],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(fr(Sr,e.invTransform,t),t=Sr);var n=this.originX,r=this.originY;(n||r)&&(kr[4]=n,kr[5]=r,fr(Sr,t,kr),Sr[4]-=n,Sr[5]-=r,t=Sr),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&&Er(e[0]-1)>1e-10&&Er(e[3]-1)>1e-10?Math.sqrt(Er(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){for(var t=0;t<Br.length;t++){var n=Br[t];this[n]=e[n]}},e.getLocalTransform=function(e,t){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,c=e.skewX?Math.tan(e.skewX):0,u=e.skewY?Math.tan(-e.skewY):0;return n||r?(t[4]=-n*i-c*r*a,t[5]=-r*a-u*n*i):t[4]=t[5]=0,t[0]=i,t[3]=a,t[1]=u*i,t[2]=c*a,o&&gr(t,t,o),t[4]+=n+s,t[5]+=r+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.skewX=0,t.skewY=0,t.rotation=0,void(t.globalScaleRatio=1)),e}(),Br=["x","y","originX","originY","rotation","scaleX","scaleY","skewX","skewY"],Ir=Tr,Mr=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}(),Pr=Math.min,Dr=Math.max,Fr=new Mr,Or=new Mr,Lr=new Mr,Rr=new Mr,Nr=new Mr,Ur=new Mr,jr=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=Pr(e.x,this.x),n=Pr(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Dr(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Dr(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 pr(i,i,[-t.x,-t.y]),Ar(i,i,[n,r]),pr(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,g=Math.abs(a-l),A=Math.abs(c-i),m=Math.abs(s-u),v=Math.abs(h-o),y=Math.min(g,A),b=Math.min(m,v);a<l||c<i?y>p&&(p=y,g<A?Mr.set(Ur,-g,0):Mr.set(Ur,A,0)):y<f&&(f=y,g<A?Mr.set(Nr,g,0):Mr.set(Nr,-A,0)),s<u||h<o?b>p&&(p=b,m<v?Mr.set(Ur,0,-m):Mr.set(Ur,0,v)):y<f&&(f=y,m<v?Mr.set(Nr,0,m):Mr.set(Nr,0,-v))}return n&&Mr.copy(n,d?Nr:Ur),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))}Fr.x=Lr.x=n.x,Fr.y=Rr.y=n.y,Or.x=Rr.x=n.x+n.width,Or.y=Lr.y=n.y+n.height,Fr.transform(r),Rr.transform(r),Or.transform(r),Lr.transform(r),t.x=Pr(Fr.x,Or.x,Lr.x,Rr.x),t.y=Pr(Fr.y,Or.y,Lr.y,Rr.y);var l=Dr(Fr.x,Or.x,Lr.x,Rr.x),c=Dr(Fr.y,Or.y,Lr.y,Rr.y);t.width=l-t.x,t.height=c-t.y}else t!==n&&e.copy(t,n)},e}(),Hr={},zr="12px sans-serif";var Qr={measureText:function(e,t){return wr||(wr=z().getContext("2d")),xr!==t&&(xr=wr.font=t||zr),wr.measureText(e)}};function Vr(e,t){var n=Hr[t=t||zr];n||(n=Hr[t]=new tn(500));var r=n.get(e);return null==r&&(r=Qr.measureText(e,t).width,n.put(e,r)),r}function Gr(e,t,n,r){var i=Vr(e,t),a=Kr(t),o=Wr(0,i,n),s=$r(0,a,r);return new jr(o,s,i,a)}function qr(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return Gr(i[0],t,n,r);for(var a=new jr(0,0,0,0),o=0;o<i.length;o++){var s=Gr(i[o],t,n,r);0===o?a.copy(s):a.union(s)}return a}function Wr(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function $r(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function Kr(e){return Vr("国",e)}function Yr(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Xr(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+=Yr(r[0],n.width),c+=Yr(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 Zr=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],Jr={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},ei={},ti=new jr(0,0,0,0),ni=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.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var c=ti;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ei,n,c):Xr(ei,n,c),i.x=ei.x,i.y=ei.y,a=ei.align,o=ei.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=Yr(u[0],c.width),d=Yr(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,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),A=void 0,m=void 0,v=void 0;p&&this.canBeInsideText()?(A=n.insideFill,m=n.insideStroke,null!=A&&"auto"!==A||(A=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(A),v=!0)):(A=n.outsideFill,m=n.outsideStroke,null!=A&&"auto"!==A||(A=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(A),v=!0)),(A=A||"#000")===g.fill&&m===g.stroke&&v===g.autoStroke&&a===g.align&&o===g.verticalAlign||(s=!0,g.fill=A,g.stroke=m,g.autoStroke=v,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=Qt,s&&t.dirtyStyle(!0)}},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&&gn(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,Sn(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||{},j(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=Z(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,Zr)},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(e,t,n,r){var i="__zr_normal__"===e;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(Q(a,e)>=0)||!t&&1!==a.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var c=this._textContent,u=this._textGuide;return c&&c.useState(e,t,n,l),u&&u.useState(e,t,n,l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Qt),s}L("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o)for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}if(o)return;for(s=0;s<a;s++){var l=e[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,e)),c||(c=this.states[l]),c&&r.push(c)}var u=r[a-1],h=!!(u&&u.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&f&&f.duration>0,f);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,h),g&&g.useStates(e,t,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Qt)}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=Q(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=Q(r,e),a=Q(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];j(n,i),i.textConfig&&j(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=j({},r?this.textConfig:n.textConfig),j(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<Zr.length;c++){var u=Zr[c],h=i&&Jr[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.innerTransformable=new Ir,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),j(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=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|=Qt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.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){if(this.__zr!==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){if(this.__zr){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 Qn(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=Q(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){ri(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){ri(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=ri(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.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=Qt;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&&(!b.browser.ie||b.browser.version>8)&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),e}();function ri(e,t,n,r,i){var a=[];!function e(t,n,r,i,a,o,s,l){var c=[];var u=[];var h=Z(i);var d=a.duration;var f=a.delay;var p=a.additive;var g=a.setToFinal;var A=!oe(o);for(var m=0;m<h.length;m++){var v=h[m];if(null!=r[v]&&null!=i[v]&&(A||o[v]))if(oe(i[v])&&!q(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=0;w<b.length;w++)b[w].targetName===n&&_.push(b[w]);if(!p&&_.length)for(var w=0;w<_.length;w++){var x=_[w].stopTracks(u);if(x){var C=Q(b,_[w]);b.splice(C,1)}}var S=void 0,k=void 0,E=void 0;if(l){k={},g&&(S={});for(var w=0;w<y;w++){var v=c[w];k[v]=r[v],g?S[v]=i[v]:r[v]=i[v]}}else if(g){E={};for(var w=0;w<y;w++){var v=c[w];E[v]=Rn(r[v]),ai(r,i,v)}}var T=new Qn(r,!1,p?_:null);T.targetName=n,a.scope&&(T.scope=a.scope),g&&S&&T.whenWithKeys(0,S,c),E&&T.whenWithKeys(0,E,c),T.whenWithKeys(null==d?500:d,l?k:i,c).delay(f||0),t.addAnimator(T,n),s.push(T)}}(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 ii(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function ai(e,t,n){if(q(t[n]))if(q(e[n])||(e[n]=[]),le(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),ii(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(q(i[0]))for(var s=i[0].length,l=0;l<o;l++)a[l]?ii(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else ii(a,i,o);a.length=i.length}else e[n]=t[n]}G(ni,at),G(ni,Ir);var oi=ni,si=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.replace=function(e,t){var n=Q(this._children,e);return n>=0&&this.replaceAt(t,n),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=Q(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 jr(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?(jr.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(oi);si.prototype.type="group";var li=si,ci=!b.canvasSupported,ui={},hi={};
  76. /*!
  77. * ZRender, a high performance 2d drawing library.
  78. *
  79. * Copyright (c) 2013, Baidu Inc.
  80. * All rights reserved.
  81. *
  82. * LICENSE
  83. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  84. */var di=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 $t,a=n.renderer||"canvas";if(ci)throw new Error("IE8 support has been dropped since 5.0");if(ui[a]||(a=Z(ui)[0]),!ui[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var o=new ui[a](t,i,n,e);this.storage=i,this.painter=o;var s=b.node||b.worker?null:new or(o.getViewportRoot(),o.root);this.handler=new Ft(i,o,s,o.root),this.animation=new Vn({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 kn(e,1)<cr;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=kn(t[i].color,1);return(n/=r)<cr}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 li&&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 hi[e]},e}();function fi(e,t){var n=new di(O(),e,t);return hi[n.id]=n,n}function pi(e){e.dispose()}function gi(){for(var e in hi)hi.hasOwnProperty(e)&&hi[e].dispose();hi={}}function Ai(e){return hi[e]}function mi(e,t){ui[e]=t}var vi="5.2.1",yi=1e-4,bi=20;function _i(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],l=a-i,c=s-o;if(0===l)return 0===c?o:(o+s)/2;if(r)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*c+o}function wi(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 xi(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),bi),e=(+e).toFixed(t),n?e:+e}function Ci(e){return e.sort(function(e,t){return e-t}),e}function Si(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return ki(e)}function ki(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-r)}function Ei(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 Ti(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=$(e,function(e){return(isNaN(e)?0:e)/r*i*100}),o=100*i,s=$(a,function(e){return Math.floor(e)}),l=K(s,function(e,t){return e+t},0),c=$(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}function Bi(e,t){var n=Math.max(Si(e),Si(t)),r=e+t;return n>bi?r:xi(r,n)}var Ii=9007199254740991;function Mi(e){var t=2*Math.PI;return(e%t+t)%t}function Pi(e){return e>-yi&&e<yi}var Di=/^(?:(\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 Fi(e){if(e instanceof Date)return e;if("string"==typeof e){var t=Di.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]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function Oi(e){return Math.pow(10,Li(e))}function Li(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 Ri(e,t){var n=Li(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 Ni(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 Ui(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 ji(e){var t=parseFloat(e);return t==e&&(0!==t||"string"!=typeof e||e.indexOf("x")<=0)?t:NaN}function Hi(e){return!isNaN(ji(e))}function zi(){return Math.round(9*Math.random())}function Qi(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 Vi(e){0}function Gi(e){throw new Error(e)}var qi="series\0",Wi="\0_ec_\0";function $i(e){return e instanceof Array?e:null==e?[]:[e]}function Ki(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 Yi=["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 Xi(e){return!oe(e)||te(e)||e instanceof Date?e:e.value}function Zi(e){return oe(e)&&!(e instanceof Array)}function Ji(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,a="replaceAll"===n;e=e||[],t=(t||[]).slice();var o=Se();W(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||ia(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}(e,o,n);return(r||i)&&function(e,t,n,r){W(r,function(i,a){if(i&&null!=i.id){var o=ta(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){W(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)&&!ia(n)&&!ia(a)&&ea("name",a,n))return e[i].newOption=n,void(t[r]=null)}})}(c,t),r||i?function(e,t,n){W(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||ia(r.existing)||r.existing&&null!=t.id&&!ea("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){W(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(c,t),s=c,l=Se(),W(s,function(e){var t=e.existing;t&&l.set(t.id,e)}),W(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={})}),W(s,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(oe(r)){if(i.name=null!=r.name?ta(r.name):n?n.name:qi+t,n)i.id=ta(n.id);else if(null!=r.id)i.id=ta(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 ea(e,t,n){var r=na(t[e],null),i=na(n[e],null);return null!=r&&null!=i&&r===i}function ta(e){return na(e,"")}function na(e,t){if(null==e)return t;var n=typeof e;return"string"===n?e:"number"===n||ie(e)?e+"":t}function ra(e){var t=e.name;return!(!t||!t.indexOf(qi))}function ia(e){return e&&null!=e.id&&0===ta(e.id).indexOf(Wi)}function aa(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?te(t.dataIndex)?$(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?te(t.name)?$(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function oa(){var e="__ec_inner_"+sa++;return function(t){return t[e]||(t[e]={})}}var sa=zi();function la(e,t,n){var r=ca(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=da(e,r,t,{useDefault:s===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}function ca(e,t){var n;if(re(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Se(),a={},o=!1;return W(n,function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&Q(t.includeMainTypes,s)<0))o=o||!!s,(i.get(s)||i.set(s,{}))[l]=e}else a[n]=e}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ua={useDefault:!0,enableAll:!1,enableNone:!1},ha={useDefault:!1,enableAll:!0,enableNone:!0};function da(e,t,n,r){r=r||ua;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 fa(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function pa(e,t){var n=Se(),r=[];return W(e,function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)}),{keys:r,buckets:n}}function ga(e,t,n,r,i){var a=null==t||"auto"===t;if(null==r)return r;if("number"==typeof r)return xi(p=Bn(n||0,r,i),a?Math.max(Si(n||0),Si(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){var h=e.getDimensionInfo(u);if(h&&"ordinal"===h.type)o[u]=(i<1&&s?s:l)[u];else{var d=s&&s[u]?s[u]:0,f=l[u],p=Bn(d,f,i);o[u]=xi(p,a?Math.max(Si(d),Si(f)):t)}}return o}var Aa=".",ma="___EC__COMPONENT__CONTAINER___",va="___EC__EXTENDED_CLASS___";function ya(e){var t={main:"",sub:""};if(e){var n=e.split(Aa);t.main=n[0]||"",t.sub=n[1]||""}return t}function ba(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 Ee(n.prototype,new(t.bind.apply(t,function(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)}([void 0],i))));t.apply(this,arguments)}}return n[va]=!0,j(n.prototype,e),n.extend=this.extend,n.superCall=xa,n.superApply=Ca,V(n,this),n.superClass=t,n}}function _a(e,t){e.extend=t.extend}var wa=Math.round(10*Math.random());function xa(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 Ca(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Sa(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=ya(r);if(i.sub){if(i.sub!==ma){((function(e){var n=t[e.main];n&&n[ma]||((n=t[e.main]={})[ma]=!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[ma]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=ya(e),r=[],i=t[n.main];return i&&i[ma]?W(i,function(e,t){t!==ma&&r.push(e)}):r.push(i),r},e.hasClass=function(e){var n=ya(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return W(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=ya(e),r=t[n.main];return r&&r[ma]}}function ka(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&&Q(r,s)>=0||i&&Q(i,s)<0)){var l=n.getShallow(s,t);null!=l&&(a[e[o][0]]=l)}}return a}}var Ea=ka([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Ta=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Ea(this,e,t)},e}(),Ba=new tn(50);function Ia(e){if("string"==typeof e){var t=Ba.get(e);return t&&t.image}return e}function Ma(e,t,n,r,i){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var a=Ba.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?!Da(t=a.image)&&a.pending.push(o):((t=new Image).onload=t.onerror=Pa,Ba.put(e,t.__cachedImgObj={image:t,pending:[o]}),t.src=t.__zrImageSrc=e),t}return e}return t}function Pa(){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 Da(e){return e&&e.width&&e.height}var Fa=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Oa(e,t,n,r,i){if(!t)return"";var a=(e+"").split("\n");i=La(t,n,r,i);for(var o=0,s=a.length;o<s;o++)a[o]=Ra(a[o],i);return a.join("\n")}function La(e,t,n,r){var i=j({},r=r||{});i.font=t,n=ge(n,"..."),i.maxIterations=ge(r.maxIterations,2);var a=i.minChar=ge(r.minChar,0);i.cnCharWidth=Vr("国",t);var o=i.ascCharWidth=Vr("a",t);i.placeholder=ge(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var c=Vr(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 Ra(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var a=Vr(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?Na(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;a=Vr(e=e.substr(0,s),r)}return""===e&&(e=t.placeholder),e}function Na(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 Ua=function(){return function(){}}(),ja=function(){return function(e){this.tokens=[],e&&(this.tokens=e)}}(),Ha=function(){return function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}}();function za(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=Yr(l.width,r.width)+f;c.length>0&&p+r.accumWidth>r.width&&(a=t.split("\n"),h=!0),r.accumWidth=p}else{var g=Ga(t,u,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+f,o=g.linesWidths,a=g.lines}}else a=t.split("\n");for(var A=0;A<a.length;A++){var m=a[A],v=new Ua;if(v.styleName=i,v.text=m,v.isLineHolder=!m&&!s,"number"==typeof l.width?v.width=l.width:v.width=o?o[A]:Vr(m,u),A||h)c.push(new ja([v]));else{var y=(c[c.length-1]||(c[0]=new ja)).tokens,b=y.length;1===b&&y[0].isLineHolder?y[0]=v:(m||!b||s)&&y.push(v)}}}var Qa=K(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Va(e){return!function(e){var t=e.charCodeAt(0);return t>=33&&t<=255}(e)||!!Qa[e]}function Ga(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=Vr(d,t),p=!r&&!Va(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 qa="__zr_style_"+Math.round(10*Math.random()),Wa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},$a={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Wa[qa]=!0;var Ka=["z","z2","invisible"],Ya=["invisible"],Xa=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=Z(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 Ja.width=t,Ja.height=n,!Za.intersect(Ja)}(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 jr(0,0,0,0)),t?jr.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 jr(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:j(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Ee(Wa,e)},t.prototype.useStyle=function(e){e[qa]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[qa]},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,Ka)},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=Z(c),h=0;h<u.length;h++){(f=u[h])in s&&(s[f]=s[f],this.style[f]=c[f])}var d=Z(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);var p=this.__inHover?Ya:Ka;for(h=0;h<p.length;h++){f=p[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 j(e,t),e},t.prototype.getAnimationStyleProps=function(){return $a},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=2|Qt)),t}(oi),Za=new jr(0,0,0,0),Ja=new jr(0,0,0,0);var eo=Xa,to=Math.pow,no=Math.sqrt,ro=1e-8,io=1e-4,ao=no(3),oo=1/3,so=Pe(),lo=Pe(),co=Pe();function uo(e){return e>-ro&&e<ro}function ho(e){return e>ro||e<-ro}function fo(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 po(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function go(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(uo(u)&&uo(h)){if(uo(s))a[0]=0;else(C=-l/s)>=0&&C<=1&&(a[f++]=C)}else{var p=h*h-4*u*d;if(uo(p)){var g=h/u,A=-g/2;(C=-s/o+g)>=0&&C<=1&&(a[f++]=C),A>=0&&A<=1&&(a[f++]=A)}else if(p>0){var m=no(p),v=u*s+1.5*o*(-h+m),y=u*s+1.5*o*(-h-m);(C=(-s-((v=v<0?-to(-v,oo):to(v,oo))+(y=y<0?-to(-y,oo):to(y,oo))))/(3*o))>=0&&C<=1&&(a[f++]=C)}else{var b=(2*u*s-3*o*h)/(2*no(u*u*u)),_=Math.acos(b)/3,w=no(u),x=Math.cos(_),C=(-s-2*w*x)/(3*o),S=(A=(-s+w*(x+ao*Math.sin(_)))/(3*o),(-s+w*(x-ao*Math.sin(_)))/(3*o));C>=0&&C<=1&&(a[f++]=C),A>=0&&A<=1&&(a[f++]=A),S>=0&&S<=1&&(a[f++]=S)}}return f}function Ao(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(uo(o)){if(ho(a))(u=-s/a)>=0&&u<=1&&(i[l++]=u)}else{var c=a*a-4*o*s;if(uo(c))i[0]=-a/(2*o);else if(c>0){var u,h=no(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 mo(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 vo(e,t,n,r,i,a,o,s,l,c,u){var h,d,f,p,g,A=.005,m=1/0;so[0]=l,so[1]=c;for(var v=0;v<1;v+=.05)lo[0]=fo(e,n,i,o,v),lo[1]=fo(t,r,a,s,v),(p=Xe(so,lo))<m&&(h=v,m=p);m=1/0;for(var y=0;y<32&&!(A<io);y++)d=h-A,f=h+A,lo[0]=fo(e,n,i,o,d),lo[1]=fo(t,r,a,s,d),p=Xe(lo,so),d>=0&&p<m?(h=d,m=p):(co[0]=fo(e,n,i,o,f),co[1]=fo(t,r,a,s,f),g=Xe(co,so),f<=1&&g<m?(h=f,m=g):A*=.5);return u&&(u[0]=fo(e,n,i,o,h),u[1]=fo(t,r,a,s,h)),no(m)}function yo(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,g=fo(e,n,i,o,p),A=fo(t,r,a,s,p),m=g-c,v=A-u;h+=Math.sqrt(m*m+v*v),c=g,u=A}return h}function bo(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function _o(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function wo(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function xo(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 Co(e,t,n,r,i,a,o,s,l){var c,u=.005,h=1/0;so[0]=o,so[1]=s;for(var d=0;d<1;d+=.05){lo[0]=bo(e,n,i,d),lo[1]=bo(t,r,a,d),(A=Xe(so,lo))<h&&(c=d,h=A)}h=1/0;for(var f=0;f<32&&!(u<io);f++){var p=c-u,g=c+u;lo[0]=bo(e,n,i,p),lo[1]=bo(t,r,a,p);var A=Xe(lo,so);if(p>=0&&A<h)c=p,h=A;else{co[0]=bo(e,n,i,g),co[1]=bo(t,r,a,g);var m=Xe(co,so);g<=1&&m<h?(c=g,h=m):u*=.5}}return l&&(l[0]=bo(e,n,i,c),l[1]=bo(t,r,a,c)),no(h)}function So(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=bo(e,n,i,d),p=bo(t,r,a,d),g=f-s,A=p-l;c+=Math.sqrt(g*g+A*A),s=f,l=p}return c}var ko=Math.min,Eo=Math.max,To=Math.sin,Bo=Math.cos,Io=2*Math.PI,Mo=Pe(),Po=Pe(),Do=Pe();function Fo(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=ko(i,r[0]),a=Eo(a,r[0]),o=ko(o,r[1]),s=Eo(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function Oo(e,t,n,r,i,a){i[0]=ko(e,n),i[1]=ko(t,r),a[0]=Eo(e,n),a[1]=Eo(t,r)}var Lo=[],Ro=[];function No(e,t,n,r,i,a,o,s,l,c){var u=Ao,h=fo,d=u(e,n,i,o,Lo);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,Lo[f]);l[0]=ko(p,l[0]),c[0]=Eo(p,c[0])}d=u(t,r,a,s,Ro);for(f=0;f<d;f++){var g=h(t,r,a,s,Ro[f]);l[1]=ko(g,l[1]),c[1]=Eo(g,c[1])}l[0]=ko(e,l[0]),c[0]=Eo(e,c[0]),l[0]=ko(o,l[0]),c[0]=Eo(o,c[0]),l[1]=ko(t,l[1]),c[1]=Eo(t,c[1]),l[1]=ko(s,l[1]),c[1]=Eo(s,c[1])}function Uo(e,t,n,r,i,a,o,s){var l=wo,c=bo,u=Eo(ko(l(e,n,i),1),0),h=Eo(ko(l(t,r,a),1),0),d=c(e,n,i,u),f=c(t,r,a,h);o[0]=ko(e,i,d),o[1]=ko(t,a,f),s[0]=Eo(e,i,d),s[1]=Eo(t,a,f)}function jo(e,t,n,r,i,a,o,s,l){var c=tt,u=nt,h=Math.abs(i-a);if(h%Io<1e-4&&h>1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(Mo[0]=Bo(i)*n+e,Mo[1]=To(i)*r+t,Po[0]=Bo(a)*n+e,Po[1]=To(a)*r+t,c(s,Mo,Po),u(l,Mo,Po),(i%=Io)<0&&(i+=Io),(a%=Io)<0&&(a+=Io),i>a&&!o?a+=Io:i<a&&o&&(i+=Io),o){var d=a;a=i,i=d}for(var f=0;f<a;f+=Math.PI/2)f>i&&(Do[0]=Bo(f)*n+e,Do[1]=To(f)*r+t,c(s,Do,s),u(l,Do,l))}var Ho={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},zo=[],Qo=[],Vo=[],Go=[],qo=[],Wo=[],$o=Math.min,Ko=Math.max,Yo=Math.cos,Xo=Math.sin,Zo=Math.sqrt,Jo=Math.abs,es=Math.PI,ts=2*es,ns="undefined"!=typeof Float32Array,rs=[];function is(e){return Math.round(e/es*1e8)/1e8%2*es}function as(e,t){var n=is(e[0]);n<0&&(n+=ts);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=ts?i=n+ts:t&&n-i>=ts?i=n-ts:!t&&n>i?i=n+(ts-is(n-i)):t&&n<i&&(i=n-(ts-is(i-n))),e[0]=n,e[1]=i}var os=function(){function e(e){this.dpr=1,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=Jo(n/lr/e)||0,this._uy=Jo(n/lr/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._drawPendingPt(),this.addData(Ho.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=Jo(e-this._xi),r=Jo(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Ho.L,e,t),this._ctx&&i&&(this._needsDash?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Ho.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._drawPendingPt(),this.addData(Ho.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){this._drawPendingPt(),rs[0]=r,rs[1]=i,as(rs,a),r=rs[0];var o=(i=rs[1])-r;return this.addData(Ho.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Yo(i)*n+e,this._yi=Xo(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Ho.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ho.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||!ns||(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();ns&&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._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},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,g=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)%g,u>0&&f<l||u<0&&f>l||h>0&&p<c||h<0&&p>c||o[r%2?"moveTo":"lineTo"](u>=0?$o(f,e):Ko(f,e),h>=0?$o(p,t):Ko(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,g=this._xi,A=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=fo(g,e,n,i,o+.1)-fo(g,e,n,i,o),l=fo(A,t,r,a,o+.1)-fo(A,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=fo(g,e,n,i,o),u=fo(A,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){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,ns&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Vo[0]=Vo[1]=qo[0]=qo[1]=Number.MAX_VALUE,Go[0]=Go[1]=Wo[0]=Wo[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 Ho.M:n=i=t[e++],r=a=t[e++],qo[0]=i,qo[1]=a,Wo[0]=i,Wo[1]=a;break;case Ho.L:Oo(n,r,t[e],t[e+1],qo,Wo),n=t[e++],r=t[e++];break;case Ho.C:No(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],qo,Wo),n=t[e++],r=t[e++];break;case Ho.Q:Uo(n,r,t[e++],t[e++],t[e],t[e+1],qo,Wo),n=t[e++],r=t[e++];break;case Ho.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=Yo(d)*u+l,a=Xo(d)*h+c),jo(l,c,u,h,d,f,p,qo,Wo),n=Yo(f)*u+l,r=Xo(f)*h+c;break;case Ho.R:Oo(i=n=t[e++],a=r=t[e++],i+t[e++],a+t[e++],qo,Wo);break;case Ho.Z:n=i,r=a}tt(Vo,Vo,qo),nt(Go,Go,Wo)}return 0===e&&(Vo[0]=Vo[1]=Go[0]=Go[1]=0),new jr(Vo[0],Vo[1],Go[0]-Vo[0],Go[1]-Vo[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 Ho.M:i=o=e[h++],a=s=e[h++];break;case Ho.L:var g=e[h++],A=(y=e[h++])-a;(Jo(B=g-i)>n||Jo(A)>r||h===t-1)&&(p=Math.sqrt(B*B+A*A),i=g,a=y);break;case Ho.C:var m=e[h++],v=e[h++],y=(g=e[h++],e[h++]),b=e[h++],_=e[h++];p=yo(i,a,m,v,g,y,b,_,10),i=b,a=_;break;case Ho.Q:p=So(i,a,m=e[h++],v=e[h++],g=e[h++],y=e[h++],10),i=g,a=y;break;case Ho.A:var w=e[h++],x=e[h++],C=e[h++],S=e[h++],k=e[h++],E=e[h++],T=E+k;h+=1;e[h++];f&&(o=Yo(k)*C+w,s=Xo(k)*S+x),p=Ko(C,S)*$o(ts,Math.abs(E)),i=Yo(T)*C+w,a=Xo(T)*S+x;break;case Ho.R:o=i=e[h++],s=a=e[h++],p=2*e[h++]+2*e[h++];break;case Ho.Z:var B=o-i;A=s-a;p=Math.sqrt(B*B+A*A),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,h,d=this.data,f=this._ux,p=this._uy,g=this._len,A=t<1,m=0,v=0,y=0;if(!A||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=t*this._pathLen))e:for(var b=0;b<g;){var _=d[b++],w=1===b;switch(w&&(n=i=d[b],r=a=d[b+1]),_!==Ho.L&&y>0&&(e.lineTo(u,h),y=0),_){case Ho.M:n=i=d[b++],r=a=d[b++],e.moveTo(i,a);break;case Ho.L:o=d[b++],s=d[b++];var x=Jo(o-i),C=Jo(s-a);if(x>f||C>p){if(A){if(m+($=l[v++])>c){var S=(c-m)/$;e.lineTo(i*(1-S)+o*S,a*(1-S)+s*S);break e}m+=$}e.lineTo(o,s),i=o,a=s,y=0}else{var k=x*x+C*C;k>y&&(u=o,h=s,y=k)}break;case Ho.C:var E=d[b++],T=d[b++],B=d[b++],I=d[b++],M=d[b++],P=d[b++];if(A){if(m+($=l[v++])>c){mo(i,E,B,M,S=(c-m)/$,zo),mo(a,T,I,P,S,Qo),e.bezierCurveTo(zo[1],Qo[1],zo[2],Qo[2],zo[3],Qo[3]);break e}m+=$}e.bezierCurveTo(E,T,B,I,M,P),i=M,a=P;break;case Ho.Q:E=d[b++],T=d[b++],B=d[b++],I=d[b++];if(A){if(m+($=l[v++])>c){xo(i,E,B,S=(c-m)/$,zo),xo(a,T,I,S,Qo),e.quadraticCurveTo(zo[1],Qo[1],zo[2],Qo[2]);break e}m+=$}e.quadraticCurveTo(E,T,B,I),i=B,a=I;break;case Ho.A:var D=d[b++],F=d[b++],O=d[b++],L=d[b++],R=d[b++],N=d[b++],U=d[b++],j=!d[b++],H=O>L?O:L,z=Jo(O-L)>.001,Q=R+N,V=!1;if(A)m+($=l[v++])>c&&(Q=R+N*(c-m)/$,V=!0),m+=$;if(z&&e.ellipse?e.ellipse(D,F,O,L,U,R,Q,j):e.arc(D,F,H,R,Q,j),V)break e;w&&(n=Yo(R)*O+D,r=Xo(R)*L+F),i=Yo(Q)*O+D,a=Xo(Q)*L+F;break;case Ho.R:n=i=d[b],r=a=d[b+1],o=d[b++],s=d[b++];var G=d[b++],q=d[b++];if(A){if(m+($=l[v++])>c){var W=c-m;e.moveTo(o,s),e.lineTo(o+$o(W,G),s),(W-=G)>0&&e.lineTo(o+G,s+$o(W,q)),(W-=q)>0&&e.lineTo(o+Ko(G-W,0),s+q),(W-=G)>0&&e.lineTo(o,s+Ko(q-W,0));break e}m+=$}e.rect(o,s,G,q);break;case Ho.Z:if(A){var $;if(m+($=l[v++])>c){S=(c-m)/$;e.lineTo(i*(1-S)+n*S,a*(1-S)+r*S);break e}m+=$}e.closePath(),i=n,a=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Ho,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._needsDash=!1,t._dashOffset=0,t._dashIdx=0,t._dashSum=0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();function ss(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 ls(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)&&vo(e,t,n,r,i,a,o,s,c,u,null)<=h/2}function cs(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)&&Co(e,t,n,r,i,a,s,l,null)<=c/2}var us=2*Math.PI;function hs(e){return(e%=us)<0&&(e+=us),e}var ds=2*Math.PI;function fs(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)%ds<1e-4)return!0;if(a){var h=r;r=hs(i),i=hs(h)}else r=hs(r),i=hs(i);r>i&&(i+=ds);var d=Math.atan2(l,s);return d<0&&(d+=ds),d>=r&&d<=i||d+ds>=r&&d+ds<=i}function ps(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 gs=os.CMD,As=2*Math.PI,ms=1e-4;var vs=[-1,-1,-1],ys=[-1,-1];function bs(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=go(t,r,a,s,c,vs);if(0===h)return 0;for(var d=0,f=-1,p=void 0,g=void 0,A=0;A<h;A++){var m=vs[A],v=0===m||1===m?.5:1;fo(e,n,i,o,m)<l||(f<0&&(f=Ao(t,r,a,s,ys),ys[1]<ys[0]&&f>1&&(void 0,u=ys[0],ys[0]=ys[1],ys[1]=u),p=fo(t,r,a,s,ys[0]),f>1&&(g=fo(t,r,a,s,ys[1]))),2===f?m<ys[0]?d+=p<t?v:-v:m<ys[1]?d+=g<p?v:-v:d+=s<g?v:-v:m<ys[0]?d+=p<t?v:-v:d+=s<p?v:-v)}return d}function _s(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(uo(a))ho(o)&&(u=-s/o)>=0&&u<=1&&(i[l++]=u);else{var c=o*o-4*a*s;if(uo(c))(u=-o/(2*a))>=0&&u<=1&&(i[l++]=u);else if(c>0){var u,h=no(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,vs);if(0===l)return 0;var c=wo(t,r,a);if(c>=0&&c<=1){for(var u=0,h=bo(t,r,a,c),d=0;d<l;d++){var f=0===vs[d]||1===vs[d]?.5:1;bo(e,n,i,vs[d])<o||(vs[d]<c?u+=h<t?f:-f:u+=a<h?f:-f)}return u}f=0===vs[0]||1===vs[0]?.5:1;return bo(e,n,i,vs[0])<o?0:a<t?f:-f}function ws(e,t,n,r,i,a,o,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);vs[0]=-l,vs[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=As-1e-4){r=0,i=As;var u=a?1:-1;return o>=vs[0]+e&&o<=vs[1]+e?u:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=As,i+=As);for(var d=0,f=0;f<2;f++){var p=vs[f];if(p+e>o){var g=Math.atan2(s,p);u=a?1:-1;g<0&&(g=As+g),(g>=r&&g<=i||g+As>=r&&g+As<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),d+=u)}}return d}function xs(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,g=0,A=0;A<u;){var m=c[A++],v=1===A;switch(m===gs.M&&A>1&&(n||(h+=ps(d,f,p,g,r,i))),v&&(p=d=c[A],g=f=c[A+1]),m){case gs.M:d=p=c[A++],f=g=c[A++];break;case gs.L:if(n){if(ss(d,f,c[A],c[A+1],t,r,i))return!0}else h+=ps(d,f,c[A],c[A+1],r,i)||0;d=c[A++],f=c[A++];break;case gs.C:if(n){if(ls(d,f,c[A++],c[A++],c[A++],c[A++],c[A],c[A+1],t,r,i))return!0}else h+=bs(d,f,c[A++],c[A++],c[A++],c[A++],c[A],c[A+1],r,i)||0;d=c[A++],f=c[A++];break;case gs.Q:if(n){if(cs(d,f,c[A++],c[A++],c[A],c[A+1],t,r,i))return!0}else h+=_s(d,f,c[A++],c[A++],c[A],c[A+1],r,i)||0;d=c[A++],f=c[A++];break;case gs.A:var y=c[A++],b=c[A++],_=c[A++],w=c[A++],x=c[A++],C=c[A++];A+=1;var S=!!(1-c[A++]);a=Math.cos(x)*_+y,o=Math.sin(x)*w+b,v?(p=a,g=o):h+=ps(d,f,a,o,r,i);var k=(r-y)*w/_+y;if(n){if(fs(y,b,w,x,x+C,S,t,k,i))return!0}else h+=ws(y,b,w,x,x+C,S,k,i);d=Math.cos(x+C)*_+y,f=Math.sin(x+C)*w+b;break;case gs.R:if(p=d=c[A++],g=f=c[A++],a=p+c[A++],o=g+c[A++],n){if(ss(p,g,a,g,t,r,i)||ss(a,g,a,o,t,r,i)||ss(a,o,p,o,t,r,i)||ss(p,o,p,g,t,r,i))return!0}else h+=ps(a,g,a,o,r,i),h+=ps(p,o,p,g,r,i);break;case gs.Z:if(n){if(ss(d,f,p,g,t,r,i))return!0}else h+=ps(d,f,p,g,r,i);d=p,f=g}}return n||(s=f,l=g,Math.abs(s-l)<ms)||(h+=ps(d,f,p,g,r,i)||0),0!==h}var Cs=H({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Wa),Ss={style:H({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},$a.style)},ks=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],Es=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<ks.length;++s)i[ks[s]]=this[ks[s]];i.__dirty|=Qt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Z(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?j(this.style,o):this.useStyle(o):"shape"===a?j(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=kn(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())===kn(e,0)<cr)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Vt},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new os(!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,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&Vt)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}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 xs(e,t,!0,n,r)}(a,o/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return xs(e,0,!1,t,n)}(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Vt,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:j(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Vt)},t.prototype.createStyle=function(e){return Ee(Cs,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=j({},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:j(s=j({},r.shape),n.shape):j(s=j({},i?this.shape:r.shape),n.shape):l&&(s=r.shape),s)if(a){this.shape=j({},this.shape);for(var c={},u=Z(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 Ss},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.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=2|Qt|Vt)),t}(eo),Ts=H({strokeFirst:!0,font:zr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Cs),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 Ee(Ts,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=qr(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}(eo);Bs.prototype.type="tspan";var Is=Bs,Ms=H({x:0,y:0},Wa),Ps={style:H({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},$a.style)};var Ds=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Me(t,e),t.prototype.createStyle=function(e){return Ee(Ms,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 Ps},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new jr(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(eo);Ds.prototype.type="image";var Fs=Ds;var Os=Math.round;function Ls(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?(Os(2*r)===Os(2*i)&&(e.x1=e.x2=Ns(r,s,!0)),Os(2*a)===Os(2*o)&&(e.y1=e.y2=Ns(a,s,!0)),e):e}}function Rs(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=Ns(r,s,!0),e.y=Ns(i,s,!0),e.width=Math.max(Ns(r+a,s,!1)-e.x,0===a?0:1),e.height=Math.max(Ns(i+o,s,!1)-e.y,0===o?0:1),e):e}}function Ns(e,t,n){if(!t)return e;var r=Os(2*e);return(r+Os(t))%2==0?r/2:(r+(n?1:-1))/2}var Us=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),js={},Hs=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new Us},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Rs(js,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}(Es);Hs.prototype.type="rect";var zs=Hs,Qs={fill:"#000"},Vs={style:H({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},$a.style)},Gs=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Qs,n.attr(t),n}return Me(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),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}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,$s(e=this.style),W(e.rich,$s),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 jr(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||Qs},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 j(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=Z(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},j(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Vs},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||zr,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=Kr(a),l=ge(t.lineHeight,s),c="truncate"===t.lineOverflow,u=t.width,h=(n=null!=u&&"break"===r||"breakAll"===r?e?Ga(e,t.font,u,"breakAll"===r,0).lines:[]:e?e.split("\n"):[]).length*l,d=ge(t.height,h);if(h>d&&c){var f=Math.floor(d/l);n=n.slice(0,f)}var p=d,g=u;if(i&&(p+=i[0]+i[2],null!=g&&(g+=i[1]+i[3])),e&&o&&null!=g)for(var A=La(u,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<n.length;m++)n[m]=Ra(n[m],A);if(null==u){var v=0;for(m=0;m<n.length;m++)v=Math.max(Vr(n[m],a),v);u=v}return{lines:n,height:d,outerHeight:p,lineHeight:l,calculatedLineHeight:s,contentHeight:h,width:u}}(Zs(e),e),i=Js(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,g=$r(h,r.contentHeight,f);if(i||n){var A=r.width;n&&(A+=n[1]+n[3]);var m=Wr(u,A,d),v=$r(h,o,f);i&&this._renderBackground(e,e,m,v,A,o)}g+=l/2,n&&(p=Xs(u,d,n),"top"===f?g+=n[0]:"bottom"===f&&(g-=n[2]));for(var y=0,b=!1,_=(Ys("fill"in e?e.fill:(b=!0,c.fill))),w=(Ks("stroke"in e?e.stroke:a||c.autoStroke&&!b?null:(y=2,c.stroke))),x=e.textShadowBlur>0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),S=r.calculatedLineHeight,k=0;k<s.length;k++){var E=this._getOrCreateChild(Is),T=E.createStyle();E.useStyle(T),T.text=s[k],T.x=p,T.y=g,d&&(T.textAlign=d),T.textBaseline="middle",T.opacity=e.opacity,T.strokeFirst=!0,x&&(T.shadowBlur=e.textShadowBlur||0,T.shadowColor=e.textShadowColor||"transparent",T.shadowOffsetX=e.textShadowOffsetX||0,T.shadowOffsetY=e.textShadowOffsetY||0),w&&(T.stroke=w,T.lineWidth=e.lineWidth||y,T.lineDash=e.lineDash,T.lineDashOffset=e.lineDashOffset||0),_&&(T.fill=_),T.font=t,g+=l,C&&E.setBoundingRect(new jr(Wr(T.x,e.width,T.textAlign),$r(T.y,S,T.textBaseline),e.width,S))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new Ha;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=Fa.lastIndex=0;null!=(r=Fa.exec(e));){var c=r.index;c>l&&za(n,e.substring(l,c),t,s),za(n,r[2],t,s,r[1]),l=Fa.lastIndex}l<e.length&&za(n,e.substring(l,e.length),t,s);var u=[],h=0,d=0,f=t.padding,p="truncate"===o,g="truncate"===t.lineOverflow;function A(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,_=0;_<v.tokens.length;_++){var w=(P=v.tokens[_]).styleName&&t.rich[P.styleName]||{},x=P.textPadding=w.padding,C=x?x[1]+x[3]:0,S=P.font=w.font||t.font;P.contentHeight=Kr(S);var k=ge(w.height,P.contentHeight);if(P.innerHeight=k,x&&(k+=x[0]+x[2]),P.height=k,P.lineHeight=Ae(w.lineHeight,t.lineHeight,k),P.align=w&&w.align||t.align,P.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=a&&h+P.lineHeight>a){_>0?(v.tokens=v.tokens.slice(0,_),A(v,b,y),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var E=w.width,T=null==E||"auto"===E;if("string"==typeof E&&"%"===E.charAt(E.length-1))P.percentWidth=E,u.push(P),P.contentWidth=Vr(P.text,S);else{if(T){var B=w.backgroundColor,I=B&&B.image;I&&Da(I=Ia(I))&&(P.width=Math.max(P.width,I.width*k/I.height))}var M=p&&null!=i?i-b:null;null!=M&&M<P.width?!T||M<C?(P.text="",P.width=P.contentWidth=0):(P.text=Oa(P.text,M-C,S,t.ellipsis,{minChar:t.truncateMinChar}),P.width=P.contentWidth=Vr(P.text,S)):P.contentWidth=Vr(P.text,S)}P.width+=C,b+=P.width,w&&(y=Math.max(y,P.lineHeight))}A(v,b,y)}for(n.outerWidth=n.width=ge(i,d),n.outerHeight=n.height=ge(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 P,D=(P=u[m]).percentWidth;P.width=parseInt(D,10)/100*n.width}return n}(Zs(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=Wr(o,r,c),d=$r(s,i,u),f=h,p=d;a&&(f+=a[3],p+=a[0]);var g=f+n;Js(e)&&this._renderBackground(e,e,h,d,r,i);for(var A=!!e.backgroundColor,m=0;m<t.lines.length;m++){for(var v=t.lines[m],y=v.tokens,b=y.length,_=v.lineHeight,w=v.width,x=0,C=f,S=g,k=b-1,E=void 0;x<b&&(!(E=y[x]).align||"left"===E.align);)this._placeToken(E,e,_,p,C,"left",A),w-=E.width,C+=E.width,x++;for(;k>=0&&"right"===(E=y[k]).align;)this._placeToken(E,e,_,p,S,"right",A),w-=E.width,S-=E.width,k--;for(C+=(n-(C-f)-(g-S)-w)/2;x<=k;)E=y[x],this._placeToken(E,e,_,p,C+E.width/2,"center",A),C+=E.width,x++;p+=_}},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&&Js(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=Xs(i,a,h),c-=e.height/2-h[0]-e.innerHeight/2);var d=this._getOrCreateChild(Is),f=d.createStyle();d.useStyle(f);var p=this._defaultStyle,g=!1,A=0,m=Ys("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,p.fill)),v=Ks("stroke"in s?s.stroke:"stroke"in t?t.stroke:u||o||p.autoStroke&&!g?null:(A=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||zr,f.opacity=Ae(s.opacity,t.opacity,1),v&&(f.lineWidth=Ae(s.lineWidth,t.lineWidth,A),f.lineDash=ge(s.lineDash,t.lineDash),f.lineDashOffset=t.lineDashOffset||0,f.stroke=v),m&&(f.fill=m);var b=e.contentWidth,_=e.contentHeight;d.setBoundingRect(new jr(Wr(f.x,b,f.textAlign),$r(f.y,_,f.textBaseline),b,_))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o,s,l,c=e.backgroundColor,u=e.borderWidth,h=e.borderColor,d=c&&c.image,f=c&&!d,p=e.borderRadius,g=this;if(f||e.lineHeight||u&&h){(o=this._getOrCreateChild(zs)).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=p,o.dirtyShape()}if(f)(l=o.style).fill=c||null,l.fillOpacity=ge(e.fillOpacity,1);else if(d){(s=this._getOrCreateChild(Fs)).onload=function(){g.dirtyStyle()};var m=s.style;m.image=c.image,m.x=n,m.y=r,m.width=i,m.height=a}u&&h&&((l=o.style).lineWidth=u,l.stroke=h,l.strokeOpacity=ge(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 v=(o||s).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||"transparent",v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=Ae(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}(eo),qs={left:!0,right:1,center:1},Ws={top:1,bottom:1,middle:1};function $s(e){if(e){e.font=Gs.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||qs[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||Ws[n]?n:"top",e.padding&&(e.padding=ve(e.padding))}}function Ks(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function Ys(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function Xs(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function Zs(e){var t=e.text;return null!=t&&(t+=""),t}function Js(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var el=Gs,tl=oa(),nl=function(e,t,n,r){if(r){var i=tl(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,"group"===r.type&&r.traverse(function(r){var i=tl(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t})}},rl=1,il={},al=oa(),ol=0,sl=1,ll=2,cl=["emphasis","blur","select"],ul=["normal","emphasis","blur","select"],hl=10,dl=9,fl="highlight",pl="downplay",gl="select",Al="unselect",ml="toggleSelect";function vl(e){return null!=e&&"none"!==e}var yl=new tn(100);function bl(e){if("string"!=typeof e)return e;var t=yl.get(e);return t||(t=mn(e,-.1),yl.put(e,t)),t}function _l(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function wl(e){_l(e,"emphasis",ll)}function xl(e){e.hoverState===ll&&_l(e,"normal",ol)}function Cl(e){_l(e,"blur",sl)}function Sl(e){e.hoverState===sl&&_l(e,"normal",ol)}function kl(e){e.selected=!0}function El(e){e.selected=!1}function Tl(e,t,n){t(e,n)}function Bl(e,t,n){Tl(e,t,n),e.isGroup&&e.traverse(function(e){Tl(e,t,n)})}function Il(e,t){switch(t){case"emphasis":e.hoverState=ll;break;case"normal":e.hoverState=ol;break;case"blur":e.hoverState=sl;break;case"select":e.selected=!0}}function Ml(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&Q(n,"select")>=0,a=!1;if(e instanceof Es){var o=al(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(vl(s)||vl(l)){var c=(r=r||{}).style||{};"inherit"===c.fill?(a=!0,r=j({},r),(c=j({},c)).fill=s):!vl(c.fill)&&vl(s)?(a=!0,r=j({},r),(c=j({},c)).fill=bl(s)):!vl(c.stroke)&&vl(l)&&(a||(r=j({},r),c=j({},c)),c.stroke=bl(l)),r.style=c}}if(r&&null==r.z2){a||(r=j({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(null!=u?u:hl)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=Q(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=j({},n),o=j({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=j({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:dl)}return n}(this,0,n)}return n}function Pl(e){e.stateProxy=Ml;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Ml),n&&(n.stateProxy=Ml)}function Dl(e,t){!Hl(e,t)&&!e.__highByOuter&&Bl(e,wl)}function Fl(e,t){!Hl(e,t)&&!e.__highByOuter&&Bl(e,xl)}function Ol(e,t){e.__highByOuter|=1<<(t||0),Bl(e,wl)}function Ll(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Bl(e,xl)}function Rl(e){Bl(e,Cl)}function Nl(e){Bl(e,Sl)}function Ul(e){Bl(e,kl)}function jl(e){Bl(e,El)}function Hl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function zl(e){e.getModel().eachComponent(function(t,n){("series"===t?e.getViewOfSeriesModel(n):e.getViewOfComponentModel(n)).group.traverse(function(e){Sl(e)})})}function Ql(e,t,n,r){var i=r.getModel();function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Nl(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(e){var i=o===e,c=e.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!i||"coordinateSystem"===n&&!(c&&s?c===s:i)||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){Cl(e)}),q(t))a(e.getData(),t);else if(oe(t))for(var u=Z(t),h=0;h<u.length;h++)a(e.getData(u[h]),t[u[h]]);l.push(e)}}),i.eachComponent(function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.blurSeries&&n.blurSeries(l,i)}})}}function Vl(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){Cl(e)})}}}function Gl(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s,l=o.findHighDownDispatchers(n),c=0;c<l.length;c++)if("self"===tl(l[c]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function ql(e){W(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Ul(t):jl(t)})})}function Wl(e,t,n){Zl(e,!0),Bl(e,Pl),$l(e,t,n)}function $l(e,t,n){var r=tl(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Kl=["emphasis","blur","select"],Yl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Xl(e,t,n,r){n=n||"itemStyle";for(var i=0;i<Kl.length;i++){var a=Kl[i],o=t.getModel([a,n]);e.ensureState(a).style=r?r(o):o[Yl[n]]()}}function Zl(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 Jl(e){return!(!e||!e.__highDownDispatcher)}function ec(e){var t=e.type;return t===gl||t===Al||t===ml}function tc(e){var t=e.type;return t===fl||t===pl}var nc=os.CMD,rc=[[],[],[]],ic=Math.sqrt,ac=Math.atan2;function oc(e,t){if(t){var n,r,i,a,o,s,l=e.data,c=e.len(),u=nc.M,h=nc.C,d=nc.L,f=nc.R,p=nc.A,g=nc.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 g:r=2;break;case p:var A=t[4],m=t[5],v=ic(t[0]*t[0]+t[1]*t[1]),y=ic(t[2]*t[2]+t[3]*t[3]),b=ac(-t[1]/y,t[0]/v);l[i]*=v,l[i++]+=A,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 _=rc[o];_[0]=l[i++],_[1]=l[i++],et(_,_,t),l[a++]=_[0],l[a++]=_[1]}}e.increaseVersion()}}var sc=Math.sqrt,lc=Math.sin,cc=Math.cos,uc=Math.PI;function hc(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function dc(e,t){return(e[0]*t[0]+e[1]*t[1])/(hc(e)*hc(t))}function fc(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(dc(e,t))}function pc(e,t,n,r,i,a,o,s,l,c,u){var h=l*(uc/180),d=cc(h)*(e-n)/2+lc(h)*(t-r)/2,f=-1*lc(h)*(e-n)/2+cc(h)*(t-r)/2,p=d*d/(o*o)+f*f/(s*s);p>1&&(o*=sc(p),s*=sc(p));var g=(i===a?-1:1)*sc((o*o*(s*s)-o*o*(f*f)-s*s*(d*d))/(o*o*(f*f)+s*s*(d*d)))||0,A=g*o*f/s,m=g*-s*d/o,v=(e+n)/2+cc(h)*A-lc(h)*m,y=(t+r)/2+lc(h)*A+cc(h)*m,b=fc([1,0],[(d-A)/o,(f-m)/s]),_=[(d-A)/o,(f-m)/s],w=[(-1*d-A)/o,(-1*f-m)/s],x=fc(_,w);if(dc(_,w)<=-1&&(x=uc),dc(_,w)>=1&&(x=0),x<0){var C=Math.round(x/uc*1e6)/1e6;x=2*uc+C%2*uc}u.addData(c,v,y,o,s,b,x,h,a)}var gc=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Ac=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var mc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Me(t,e),t.prototype.applyTransform=function(e){},t}(Es);function vc(e){return null!=e.setData}function yc(e,t){var n=function(e){var t=new os;if(!e)return t;var n,r=0,i=0,a=r,o=i,s=os.CMD,l=e.match(gc);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(Ac)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);for(var A=0;A<p;){var m=void 0,v=void 0,y=void 0,b=void 0,_=void 0,w=void 0,x=void 0,C=r,S=i,k=void 0,E=void 0;switch(h){case"l":r+=f[A++],i+=f[A++],d=s.L,t.addData(d,r,i);break;case"L":r=f[A++],i=f[A++],d=s.L,t.addData(d,r,i);break;case"m":r+=f[A++],i+=f[A++],d=s.M,t.addData(d,r,i),a=r,o=i,h="l";break;case"M":r=f[A++],i=f[A++],d=s.M,t.addData(d,r,i),a=r,o=i,h="L";break;case"h":r+=f[A++],d=s.L,t.addData(d,r,i);break;case"H":r=f[A++],d=s.L,t.addData(d,r,i);break;case"v":i+=f[A++],d=s.L,t.addData(d,r,i);break;case"V":i=f[A++],d=s.L,t.addData(d,r,i);break;case"C":d=s.C,t.addData(d,f[A++],f[A++],f[A++],f[A++],f[A++],f[A++]),r=f[A-2],i=f[A-1];break;case"c":d=s.C,t.addData(d,f[A++]+r,f[A++]+i,f[A++]+r,f[A++]+i,f[A++]+r,f[A++]+i),r+=f[A-2],i+=f[A-1];break;case"S":m=r,v=i,k=t.len(),E=t.data,n===s.C&&(m+=r-E[k-4],v+=i-E[k-3]),d=s.C,C=f[A++],S=f[A++],r=f[A++],i=f[A++],t.addData(d,m,v,C,S,r,i);break;case"s":m=r,v=i,k=t.len(),E=t.data,n===s.C&&(m+=r-E[k-4],v+=i-E[k-3]),d=s.C,C=r+f[A++],S=i+f[A++],r+=f[A++],i+=f[A++],t.addData(d,m,v,C,S,r,i);break;case"Q":C=f[A++],S=f[A++],r=f[A++],i=f[A++],d=s.Q,t.addData(d,C,S,r,i);break;case"q":C=f[A++]+r,S=f[A++]+i,r+=f[A++],i+=f[A++],d=s.Q,t.addData(d,C,S,r,i);break;case"T":m=r,v=i,k=t.len(),E=t.data,n===s.Q&&(m+=r-E[k-4],v+=i-E[k-3]),r=f[A++],i=f[A++],d=s.Q,t.addData(d,m,v,r,i);break;case"t":m=r,v=i,k=t.len(),E=t.data,n===s.Q&&(m+=r-E[k-4],v+=i-E[k-3]),r+=f[A++],i+=f[A++],d=s.Q,t.addData(d,m,v,r,i);break;case"A":y=f[A++],b=f[A++],_=f[A++],w=f[A++],x=f[A++],pc(C=r,S=i,r=f[A++],i=f[A++],w,x,y,b,_,d=s.A,t);break;case"a":y=f[A++],b=f[A++],_=f[A++],w=f[A++],x=f[A++],pc(C=r,S=i,r+=f[A++],i+=f[A++],w,x,y,b,_,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=j({},t);return r.buildPath=function(e){if(vc(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){oc(n,e),this.dirtyShape()},r}function bc(e,t){return new mc(yc(e,t))}function _c(e,t){t=t||{};var n=new Es;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?oc(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var wc=function(){return function(){this.cx=0,this.cy=0,this.r=0}}(),xc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new wc},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}(Es);xc.prototype.type="circle";var Cc=xc,Sc=function(){return function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),kc=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}(Es);kc.prototype.type="ellipse";var Ec=kc,Tc=Math.PI,Bc=2*Tc,Ic=Math.sin,Mc=Math.cos,Pc=Math.acos,Dc=Math.atan2,Fc=Math.abs,Oc=Math.sqrt,Lc=Math.max,Rc=Math.min,Nc=1e-4;function Uc(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/Oc(s*s+l*l),u=c*l,h=-c*s,d=e+u,f=t+h,p=n+u,g=r+h,A=(d+p)/2,m=(f+g)/2,v=p-d,y=g-f,b=v*v+y*y,_=i-a,w=d*g-p*f,x=(y<0?-1:1)*Oc(Lc(0,_*_*b-w*w)),C=(w*y-v*x)/b,S=(-w*v-y*x)/b,k=(w*y+v*x)/b,E=(-w*v+y*x)/b,T=C-A,B=S-m,I=k-A,M=E-m;return T*T+B*B>I*I+M*M&&(C=k,S=E),{cx:C,cy:S,x01:-u,y01:-h,x11:C*(i/_-1),y11:S*(i/_-1)}}function jc(e,t){var n=Lc(t.r,0),r=Lc(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];as(u,!s),o=Fc(u[0]-u[1])}var h=t.cx,d=t.cy,f=t.cornerRadius||0,p=t.innerCornerRadius||0;if(n>Nc)if(o>Bc-Nc)e.moveTo(h+n*Mc(l),d+n*Ic(l)),e.arc(h,d,n,l,c,!s),r>Nc&&(e.moveTo(h+r*Mc(c),d+r*Ic(c)),e.arc(h,d,r,c,l,s));else{var g=Fc(n-r)/2,A=Rc(g,f),m=Rc(g,p),v=m,y=A,b=n*Mc(l),_=n*Ic(l),w=r*Mc(c),x=r*Ic(c),C=void 0,S=void 0,k=void 0,E=void 0;if((A>Nc||m>Nc)&&(C=n*Mc(c),S=n*Ic(c),k=r*Mc(l),E=r*Ic(l),o<Tc)){var T=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<Nc))return[e+(d=(u*(t-a)-h*(e-i))/d)*l,t+d*c]}(b,_,k,E,C,S,w,x);if(T){var B=b-T[0],I=_-T[1],M=C-T[0],P=S-T[1],D=1/Ic(Pc((B*M+I*P)/(Oc(B*B+I*I)*Oc(M*M+P*P)))/2),F=Oc(T[0]*T[0]+T[1]*T[1]);v=Rc(m,(r-F)/(D-1)),y=Rc(A,(n-F)/(D+1))}}if(o>Nc)if(y>Nc){var O=Uc(k,E,b,_,n,y,s),L=Uc(C,S,w,x,n,y,s);e.moveTo(h+O.cx+O.x01,d+O.cy+O.y01),y<A?e.arc(h+O.cx,d+O.cy,y,Dc(O.y01,O.x01),Dc(L.y01,L.x01),!s):(e.arc(h+O.cx,d+O.cy,y,Dc(O.y01,O.x01),Dc(O.y11,O.x11),!s),e.arc(h,d,n,Dc(O.cy+O.y11,O.cx+O.x11),Dc(L.cy+L.y11,L.cx+L.x11),!s),e.arc(h+L.cx,d+L.cy,y,Dc(L.y11,L.x11),Dc(L.y01,L.x01),!s))}else e.moveTo(h+b,d+_),e.arc(h,d,n,l,c,!s);else e.moveTo(h+b,d+_);if(r>Nc&&o>Nc)if(v>Nc){O=Uc(w,x,C,S,r,-v,s),L=Uc(b,_,k,E,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,Dc(O.y01,O.x01),Dc(L.y01,L.x01),!s):(e.arc(h+O.cx,d+O.cy,v,Dc(O.y01,O.x01),Dc(O.y11,O.x11),!s),e.arc(h,d,r,Dc(O.cy+O.y11,O.cx+O.x11),Dc(L.cy+L.y11,L.cx+L.x11),s),e.arc(h+L.cx,d+L.cy,v,Dc(L.y11,L.x11),Dc(L.y01,L.x01),!s))}else e.lineTo(h+w,d+x),e.arc(h,d,r,c,l,s);else e.lineTo(h+w,d+x)}else e.moveTo(h,d);e.closePath()}}var Hc=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}}(),zc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new Hc},t.prototype.buildPath=function(e,t){jc(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Es);zc.prototype.type="sector";var Qc=zc,Vc=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),Gc=function(e){function t(t){return e.call(this,t)||this}return Me(t,e),t.prototype.getDefaultShape=function(){return new Vc},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}(Es);Gc.prototype.type="ring";var qc=Gc;function Wc(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 $c(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(Fe(e[d]));continue}i=e[d-1],a=e[d+1]}Ne(c,a,i),qe(c,c,t);var g=$e(p,i),A=$e(p,a),m=g+A;0!==m&&(g/=m,A/=m),qe(u,c,-g),qe(h,c,A);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+=$e(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,g=c*p;r.push([Wc(u[0],h[0],d[0],f[0],c,p,g),Wc(u[1],h[1],d[1],f[1],c,p,g)])}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 Kc=function(){return function(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),Yc=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){$c(e,t,!0)},t}(Es);Yc.prototype.type="polygon";var Xc=Yc,Zc=function(){return function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),Jc=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 Zc},t.prototype.buildPath=function(e,t){$c(e,t,!1)},t}(Es);Jc.prototype.type="polyline";var eu=Jc,tu={},nu=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),ru=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 nu},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Ls(tu,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}(Es);ru.prototype.type="line";var iu=ru,au=[],ou=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 su(e,t,n){var r=e.cpx2,i=e.cpy2;return null===r||null===i?[(n?po:fo)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?po:fo)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?_o:bo)(e.x1,e.cpx1,e.x2,t),(n?_o:bo)(e.y1,e.cpy1,e.y2,t)]}var lu=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 ou},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&&(xo(n,o,i,u,au),o=au[1],i=au[2],xo(r,s,a,u,au),s=au[1],a=au[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(mo(n,o,l,i,u,au),o=au[1],l=au[2],i=au[3],mo(r,s,c,a,u,au),s=au[1],c=au[2],a=au[3]),e.bezierCurveTo(o,s,l,c,i,a)))},t.prototype.pointAt=function(e){return su(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=su(this.shape,e,!0);return We(t,t)},t}(Es);lu.prototype.type="bezier-curve";var cu=lu,uu=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),hu=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 uu},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}(Es);hu.prototype.type="arc";var du=hu,fu=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),Es.prototype.getBoundingRect.call(this)},t}(Es),pu=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),gu=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}(pu),Au=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}(pu),mu=[0,0],vu=[0,0],yu=new Mr,bu=new Mr,_u=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Mr;for(n=0;n<2;n++)this._axes[n]=new Mr;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);Mr.sub(r[0],n[1],n[0]),Mr.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 yu.set(1/0,1/0),bu.set(0,0),!this._intersectCheckOneSide(this,e,yu,bu,r,1)&&(n=!1,r)?n:!this._intersectCheckOneSide(e,this,yu,bu,r,-1)&&(n=!1,r)?n:(r||Mr.copy(t,n?yu:bu),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,mu),this._getProjMinMaxOnAxis(s,t._corners,vu),mu[1]<vu[0]||mu[0]>vu[1]){if(o=!1,i)return o;var c=Math.abs(vu[0]-mu[1]),u=Math.abs(mu[0]-vu[1]);Math.min(c,u)>r.len()&&(c<u?Mr.scale(r,l,-c*a):Mr.scale(r,l,u*a))}else if(n){c=Math.abs(vu[0]-mu[1]),u=Math.abs(mu[0]-vu[1]);Math.min(c,u)<n.len()&&(c<u?Mr.scale(n,l,c*a):Mr.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}(),wu=[],xu=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 jr(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(wu)),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}(eo),Cu=oa();function Su(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,c=void 0,u=void 0;return r?(l=ge(r.duration,200),c=ge(r.easing,"cubicOut"),u=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),c=t.getShallow(s?"animationEasingUpdate":"animationEasing"),u=t.getShallow(s?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(l=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(u=a.delay)),"function"==typeof u&&(u=u(n,i)),"function"==typeof l&&(l=l(n)),{duration:l||0,delay:u,easing:c}}return null}function ku(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="remove"===e;c||t.stopAnimation("remove");var u=Su(e,r,i,c?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var h=u.duration,d=u.delay,f=u.easing,p={duration:h,delay:d||0,easing:f,done:a,force:!!a||!!o,setToFinal:!c,scope:e,during:o};l?t.animateFrom(n,p):t.animateTo(n,p)}else t.stopAnimation(),!l&&t.attr(n),o&&o(1),a&&a()}function Eu(e,t,n,r,i,a){ku("update",e,t,n,r,i,a)}function Tu(e,t,n,r,i,a){ku("init",e,t,n,r,i,a)}function Bu(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 Iu(e,t,n,r,i,a){Bu(e)||ku("remove",e,t,n,r,i,a)}function Mu(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Iu(e,{style:{opacity:0}},t,n,r)}function Pu(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Mu(e,t,n,r)}):Mu(e,t,n,r)}function Du(e){Cu(e).oldStyle=e.style}var Fu=Math.max,Ou=Math.min,Lu={};function Ru(e){return Es.extend(e)}var Nu=function(e,t){var n=yc(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}(mc)};function Uu(e,t){return Nu(e,t)}function ju(e,t){Lu[e]=t}function Hu(e){if(Lu.hasOwnProperty(e))return Lu[e]}function zu(e,t,n,r){var i=bc(e,t);return n&&("center"===r&&(n=Vu(n,i.getBoundingRect())),qu(i,n)),i}function Qu(e,t,n){var r=new Fs({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(Vu(t,i))}}});return r}function Vu(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 Gu=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Es(t);return o.createPathProxy(),o.buildPath=function(e){if(vc(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o};function qu(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Wu(e){return Ls(e.shape,e.shape,e.style),e}function $u(e){return Rs(e.shape,e.shape,e.style),e}var Ku=Ns;function Yu(e,t){for(var n=hr([]);e&&e!==t;)fr(n,e.getLocalTransform(),n),e=e.parent;return n}function Xu(e,t,n){return t&&!q(t)&&(t=Ir.getLocalTransform(t)),n&&(t=mr([],t)),et([],e,t)}function Zu(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=Xu(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Ju(e){return!e.isGroup}function eh(e,t,n){if(e&&t){var r,i=(r={},e.traverse(function(e){Ju(e)&&e.anid&&(r[e.anid]=e)}),r);t.traverse(function(e){if(Ju(e)&&e.anid){var t=i[e.anid];if(t){var r=a(e);e.attr(a(t)),Eu(e,r,n,tl(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=j({},e.shape)),t}}function th(e,t){return $(e,function(e){var n=e[0];n=Fu(n,t.x),n=Ou(n,t.x+t.width);var r=e[1];return r=Fu(r,t.y),[n,r=Ou(r,t.y+t.height)]})}function nh(e,t){var n=Fu(e.x,t.x),r=Ou(e.x+e.width,t.x+t.width),i=Fu(e.y,t.y),a=Ou(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 rh(e,t,n){var r=j({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),H(i,n),new Fs(r)):zu(e.replace("path://",""),r,n,"center")}function ih(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(ah(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function ah(e,t,n,r,i,a,o,s){var l,c=n-e,u=r-t,h=o-i,d=s-a,f=oh(h,d,c,u);if((l=f)<=1e-6&&l>=-1e-6)return!1;var p=e-i,g=t-a,A=oh(p,g,c,u)/f;if(A<0||A>1)return!1;var m=oh(p,g,h,d)/f;return!(m<0||m>1)}function oh(e,t,n,r){return e*r-n*t}function sh(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=re(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&W(Z(l),function(e){Te(s,e)||(s[e]=l[e],s.$vars.push(e))});var c=tl(e.el);c.componentMainType=a,c.componentIndex=o,c.tooltipConfig={name:r,option:H({content:r,formatterParams:s},i)}}ju("circle",Cc),ju("ellipse",Ec),ju("sector",Qc),ju("ring",qc),ju("polygon",Xc),ju("polyline",eu),ju("rect",zs),ju("line",iu),ju("bezierCurve",cu),ju("arc",du);var lh={};function ch(e,t){for(var n=0;n<cl.length;n++){var r=cl[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 uh(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<cl.length;c++){var u=cl[c],h=t[u];l[u]=ge(i?i.getFormattedLabel(a,u,null,o,h&&h.get("formatter")):null,r)}return l}function hh(e,t,n,r){n=n||lh;for(var i=e instanceof el,a=!1,o=0;o<ul.length;o++){if((d=t[ul[o]])&&d.getShallow("show")){a=!0;break}}var s=i?e:e.getTextContent();if(a){i||(s||(s=new el,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=uh(n,t),c=t.normal,u=!!c.getShallow("show"),h=fh(c,r&&r.normal,n,!1,!i);h.text=l.normal,i||e.setTextConfig(ph(c,n,!1));for(o=0;o<cl.length;o++){var d,f=cl[o];if(d=t[f]){var p=s.ensureState(f),g=!!ge(d.getShallow("show"),u);if(g!==u&&(p.ignore=!g),p.style=fh(d,r&&r[f],n,!0,!i),p.style.text=l[f],!i)e.ensureState(f).textConfig=ph(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&&(bh(s).setLabelText=function(e){var r=uh(n,t,e);ch(s,r)})}else s&&(s.ignore=!0);e.dirty()}function dh(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<cl.length;r++){var i=cl[r];n[i]=e.getModel([i,t])}return n}function fh(e,t,n,r,i){var a={};return function(e,t,n,r,i){n=n||lh;var a,o=t.ecModel,s=o&&o.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||lh).rich;if(n){t=t||{};for(var r=Z(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]);vh(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);vh(e,t,s,n,r,i,!0,!1)}(a,e,n,r,i),t&&j(a,t),a}function ph(e,t,n){t=t||{};var r,i={},a=e.getShallow("rotate"),o=ge(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 gh=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ah=["align","lineHeight","width","height","tag","verticalAlign"],mh=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function vh(e,t,n,r,i,a,o,s){n=!i&&n||lh;var l=r&&r.inheritColor,c=t.getShallow("color"),u=t.getShallow("textBorderColor"),h=ge(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=ge(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(e.lineWidth=d);var f=ge(t.getShallow("textBorderType"),n.textBorderType);null!=f&&(e.lineDash=f);var p=ge(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 g=0;g<gh.length;g++){var A=gh[g];null!=(v=ge(t.getShallow(A),n[A]))&&(e[A]=v)}for(g=0;g<Ah.length;g++){A=Ah[g];null!=(v=t.getShallow(A))&&(e[A]=v)}if(null==e.verticalAlign){var m=t.getShallow("baseline");null!=m&&(e.verticalAlign=m)}if(!o||!r.disableBox){for(g=0;g<mh.length;g++){var v;A=mh[g];null!=(v=t.getShallow(A))&&(e[A]=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 yh(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 bh=oa();function _h(e,t,n,r){if(e){var i=bh(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 wh(e,t,n,r,i){var a=bh(e);if(a.valueAnimation&&a.prevValue!==a.value){var o=a.defaultInterpolatedText,s=ge(a.interpolatedValue,a.prevValue),l=a.value;e.percent=0,(null==a.prevValue?Tu:Eu)(e,{percent:1},r,t,null,function(r){var c=ga(n,a.precision,s,l,r);a.interpolatedValue=1===r?null:c;var u=uh({labelDataIndex:t,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);ch(e,u)})}}var xh,Ch,Sh=["textStyle","color"],kh=new el,Eh=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Sh):null)},e.prototype.getFont=function(){return yh({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){return kh.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")}),kh.update(),kh.getBoundingRect()},e}(),Th=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Bh=ka(Th),Ih=function(){function e(){}return e.prototype.getLineStyle=function(e){return Bh(this,e)},e}(),Mh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ph=ka(Mh),Dh=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Ph(this,e,t)},e}(),Fh=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(!b.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}();ba(Fh),xh=Fh,Ch=["__\0is_clz",wa++].join("_"),xh.prototype[Ch]=!0,xh.isInstance=function(e){return!(!e||!e[Ch])},G(Fh,Ih),G(Fh,Dh),G(Fh,Ta),G(Fh,Eh);var Oh=Fh,Lh=Math.round(10*Math.random());function Rh(e){return[e||"",Lh++].join("_")}function Nh(e,t){return N(N({},e,!0),t,!0)}var Uh="ZH",jh="EN",Hh=jh,zh={},Qh={},Vh=b.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(Uh)>-1?Uh:Hh;function Gh(e,t){e=e.toUpperCase(),Qh[e]=new Oh(t),zh[e]=t}function qh(e){return Qh[e]}Gh(jh,{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:"Gauge",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:". "}}}}),Gh(Uh,{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 Wh=1e3,$h=60*Wh,Kh=60*$h,Yh=24*Kh,Xh=365*Yh,Zh={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}"},Jh={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+Zh.hour,minute:"{yyyy}-{MM}-{dd} "+Zh.minute,second:"{yyyy}-{MM}-{dd} "+Zh.second,millisecond:Zh.none},ed=["year","month","day","hour","minute","second","millisecond"],td=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function nd(e,t){return"0000".substr(0,t-(e+="").length)+e}function rd(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 id(e,t,n,r){var i=Fi(e),a=i[sd(n)](),o=i[ld(n)]()+1,s=Math.floor((o-1)/4)+1,l=i[cd(n)](),c=i["get"+(n?"UTC":"")+"Day"](),u=i[ud(n)](),h=(u-1)%12+1,d=i[hd(n)](),f=i[dd(n)](),p=i[fd(n)](),g=(r instanceof Oh?r:qh(r||Vh)||Qh[Hh]).getModel("time"),A=g.get("month"),m=g.get("monthAbbr"),v=g.get("dayOfWeek"),y=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,A[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,nd(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,nd(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,v[c]).replace(/{ee}/g,y[c]).replace(/{e}/g,c+"").replace(/{HH}/g,nd(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,nd(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,nd(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,nd(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,nd(p,3)).replace(/{S}/g,p+"")}function ad(e,t){var n=Fi(e),r=n[ld(t)]()+1,i=n[cd(t)](),a=n[ud(t)](),o=n[hd(t)](),s=n[dd(t)](),l=0===n[fd(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 od(e,t,n){var r="number"==typeof e?Fi(e):e;switch(t=t||ad(e,n)){case"year":return r[sd(n)]();case"half-year":return r[ld(n)]()>=6?1:0;case"quarter":return Math.floor((r[ld(n)]()+1)/4);case"month":return r[ld(n)]();case"day":return r[cd(n)]();case"half-day":return r[ud(n)]()/24;case"hour":return r[ud(n)]();case"minute":return r[hd(n)]();case"second":return r[dd(n)]();case"millisecond":return r[fd(n)]()}}function sd(e){return e?"getUTCFullYear":"getFullYear"}function ld(e){return e?"getUTCMonth":"getMonth"}function cd(e){return e?"getUTCDate":"getDate"}function ud(e){return e?"getUTCHours":"getHours"}function hd(e){return e?"getUTCMinutes":"getMinutes"}function dd(e){return e?"getUTCSeconds":"getSeconds"}function fd(e){return e?"getUTCMilliseconds":"getMilliseconds"}function pd(e){return e?"setUTCFullYear":"setFullYear"}function gd(e){return e?"setUTCMonth":"setMonth"}function Ad(e){return e?"setUTCDate":"setDate"}function md(e){return e?"setUTCHours":"setHours"}function vd(e){return e?"setUTCMinutes":"setMinutes"}function yd(e){return e?"setUTCSeconds":"setSeconds"}function bd(e){return e?"setUTCMilliseconds":"setMilliseconds"}function _d(e,t,n,r,i,a,o,s){return new el({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}}).getBoundingRect()}function wd(e){if(!Hi(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 xd(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 Cd=ve,Sd=/([&<>"'])/g,kd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ed(e){return null==e?"":(e+"").replace(Sd,function(e,t){return kd[t]})}function Td(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?Fi(e):e;if(!isNaN(+s))return id(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=ji(e);return i(l)?wd(l):ie(e)?r(e):"boolean"==typeof e?e+"":"-"}var Bd=["a","b","c","d","e","f","g"],Id=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Md(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=Bd[a];e=e.replace(Id(o),Id(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(Id(Bd[l],s),n?Ed(c):c)}return e}function Pd(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:'+Ed(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ed(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 Dd(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=Fi(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",nd(o,2)).replace("M",o).replace("yyyy",a).replace("yy",a%100+"").replace("dd",nd(s,2)).replace("d",s).replace("hh",nd(l,2)).replace("h",l).replace("mm",nd(c,2)).replace("m",c).replace("ss",nd(u,2)).replace("s",u).replace("SSS",nd(h,3))}function Fd(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function Od(e,t){return t=t||"transparent",re(e)?e:oe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Ld(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Rd=W,Nd=["left","right","top","bottom","width","height"],Ud=[["width","left","right"],["height","top","bottom"]];function jd(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 g=d.width+(p?-p.x+d.x:0);(u=a+g)>r||l.newline?(a=0,u=g,o+=s+n,s=d.height):s=Math.max(s,d.height)}else{var A=d.height+(p?-p.y+d.y:0);(h=o+A)>i||l.newline?(a+=s+n,o=0,h=A,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 Hd=jd;ee(jd,"vertical"),ee(jd,"horizontal");function zd(e,t,n){n=Cd(n||0);var r=t.width,i=t.height,a=wi(e.left,r),o=wi(e.top,i),s=wi(e.right,r),l=wi(e.bottom,i),c=wi(e.width,r),u=wi(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 jr(a+n[3],o+n[0],c,u);return p.margin=n,p}function Qd(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 jr(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=zd(H({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 Vd(e){var t=e.layoutMode||e.constructor.layoutMode;return oe(t)?t:t?{type:t}:null}function Gd(e,t,n){var r=n&&n.ignoreSize;!te(r)&&(r=[r,r]);var i=o(Ud[0],0),a=o(Ud[1],1);function o(n,i){var a={},o=0,c={},u=0;if(Rd(n,function(t){c[t]=e[t]}),Rd(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){Rd(e,function(e){t[e]=n[e]})}c(Ud[0],e,i),c(Ud[1],e,a)}function qd(e){return Wd({},e)}function Wd(e,t){return t&&e&&Rd(Nd,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var $d=oa(),Kd=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Rh("ec_cpt_model"),i}var n;return A(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Vd(this),r=n?qd(e):{};N(e,t.getTheme().get(this.mainType)),N(e,this.getDefaultOption()),n&&Gd(e,r,n)},t.prototype.mergeOption=function(e,t){N(this.option,e,!0);var n=Vd(this);n&&Gd(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[va])}(e))return e.defaultOption;var t=$d(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 da(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}(Oh);_a(Kd,Oh),Sa(Kd),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=ya(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=ya(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 W(e,function(a){var o=n(r,a),s=function(e,t){var n=[];return W(e,function(e){Q(t,e)>=0&&n.push(e)}),n}(o.originalDeps=t(a),e);o.entryCount=s.length,0===o.entryCount&&i.push(a),W(s,function(e){Q(o.predecessor,e)<0&&o.predecessor.push(e);var t=n(r,e);Q(t.successor,e)<0&&t.successor.push(a)})}),{graph:r,noEntryList:i}}(r),s=o.graph,l=o.noEntryList,c={};for(W(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]),W(h.successor,d?p:f)}W(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=[];W(Kd.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=$(t,function(e){return ya(e).main}),"dataset"!==e&&Q(t,"dataset")<=0&&t.unshift("dataset");return t});var Yd=Kd,Xd="";"undefined"!=typeof navigator&&(Xd=navigator.platform||"");var Zd="rgba(0, 0, 0, 0.2)",Jd={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Zd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Xd.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},ef=Se(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),tf="original",nf="arrayRows",rf="objectRows",af="keyedColumns",of="typedArray",sf="unknown",lf="column",cf="row",uf={Must:1,Might:2,Not:3},hf=oa();function df(e,t,n){var r={},i=pf(t);if(!i||!e)return r;var a,o,s=[],l=[],c=t.ecModel,u=hf(c).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;W(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 W(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 ff(e,t,n){var r={};if(!pf(e))return r;var i,a=t.sourceFormat,o=t.dimensionsDefine;a!==rf&&a!==af||W(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=Af(t.data,a,t.seriesLayoutBy,o,t.startIndex,l);s.push(u);var h=u===uf.Not;if(h&&null==e.v&&l!==i&&(e.v=l),(null==e.n||e.n===e.v||!h&&s[e.n]===uf.Not)&&(e.n=l),d(e)&&s[e.n]!==uf.Not)return e;h||(u===uf.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 pf(e){if(!e.get("data",!0))return da(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ua).models[0]}function gf(e,t){return Af(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Af(e,t,n,r,i,a){var o,s,l;if(le(e))return uf.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?uf.Must:uf.Not;if(t===nf){var u=e;if(n===cf){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===rf){var p=e;if(!s)return uf.Not;for(d=0;d<p.length&&d<5;d++){if((m=p[d])&&null!=(o=y(m[s])))return o}}else if(t===af){var g=e;if(!s)return uf.Not;if(!(h=g[s])||le(h))return uf.Not;for(d=0;d<h.length&&d<5;d++)if(null!=(o=y(h[d])))return o}else if(t===tf){var A=e;for(d=0;d<A.length&&d<5;d++){var m,v=Xi(m=A[d]);if(!te(v))return uf.Not;if(null!=(o=y(v[a])))return o}}function y(e){var t=re(e);return null!=e&&isFinite(e)&&""!==e?t?uf.Might:uf.Not:t&&"-"!==e?uf.Must:void 0}return uf.Not}var mf=Se();var vf,yf,bf,_f=oa(),wf=oa(),xf=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=$i(this.get("color",!0)),i=this.get("colorLayer",!0);return Sf(this,_f,r,i,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;(t=_f)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();function Cf(e,t,n,r){var i=$i(e.get(["aria","decal","decals"]));return Sf(e,wf,i,null,t,n,r)}function Sf(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 kf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,this._theme=new Oh(r),this._locale=new Oh(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=Bf(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Bf(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):bf(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&&W(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;hf(this).datasetMap=Se(),W(e,function(e,t){null!=e&&(Yd.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){Yd.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Yd.topologicalTravel(a,Yd.getAllClassMainTypes(),function(t){var a=function(e,t,n){var r=mf.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,$i(e[t])),o=r.get(t),l=o?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=Ji(o,a,l);(function(e,t,n){W(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,Yd),n[t]=null,r.set(t,null),i.set(t,0);var u=[],h=[],d=0;W(c,function(e,n){var r=e.existing,i=e.newOption;if(i){var a="series"===t,o=Yd.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=j({componentIndex:n},e.keyInfo);j(r=new o(i,this,this,s),s),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&&vf(this)},this),this._seriesIndices||vf(this)},t.prototype.getOption=function(){var e=R(this.option);return W(e,function(t,n){if(Yd.hasClass(n)){for(var r=$i(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!ia(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.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=[],W($i(r),function(e){o[e]&&n.push(o[e])})):n=null!=i?Ef("id",i,o):null!=a?Ef("name",a,o):Y(o,function(e){return!!e}),Tf(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=Tf(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=na(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"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){yf(this),W(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){W(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){yf(this),W(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 W(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return yf(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){yf(this);var n=[];W(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){vf(this);var t=this._componentsMap,n=[];t.each(function(e,t){Yd.hasClass(t)&&n.push(t)}),Yd.topologicalTravel(n,Yd.getAllClassMainTypes(),function(n){W(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=(vf=function(e){var t=e._seriesIndices=[];W(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Se(t)},yf=function(e){},void(bf=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,W(r,function(e,t){"colorLayer"===t&&i||Yd.hasClass(t)||("object"==typeof e?n[t]=n[t]?N(n[t],e,!1):R(e):null==n[t]&&(n[t]=e))}),N(t,Jd,!1),e._mergeOption(t,null)})),t}(Oh);function Ef(e,t,n){if(te(t)){var r=Se();return W(t,function(e){null!=e&&(null!=na(e,null)&&r.set(e,!0))}),Y(n,function(t){return t&&r.get(t[e])})}var i=na(t,null);return Y(n,function(t){return t&&null!=i&&t[e]===i})}function Tf(e,t){return t.hasOwnProperty("subType")?Y(e,function(e){return e&&e.subType===t.subType}):e}function Bf(e){var t=Se();return e&&W($i(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}G(kf,xf);var If=kf,Mf=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Pf=function(){return function(e){W(Mf,function(t){this[t]=J(e[t],e)},this)}}(),Df={},Ff=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];W(Df,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){W(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){Df[e]=t},e.get=function(e){return Df[e]},e}(),Of=/^(min|max)?(.+)$/;function Lf(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return W(e,function(e,t){var n=t.match(Of);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 Rf=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(W($i(e.series),function(e){e&&e.data&&le(e.data)&&we(e.data)}),W($i(e.dataset),function(e){e&&e.source&&le(e.source)&&we(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)&&W(c,function(e){e&&e.option&&(e.query?a.push(e):r||(r=e))});function d(e){W(t,function(t){t(e,n)})}return d(i),W(l,function(e){return d(e)}),W(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++)Lf(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=$(s,function(e){return R(-1===e?o.option:a[e].option)})),this._currentMediaIndices=s,l},e}(),Nf=W,Uf=oe,jf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Hf(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=jf.length;n<r;n++){var i=jf[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 zf(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,H(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 Qf(e){zf(e,"itemStyle"),zf(e,"lineStyle"),zf(e,"areaStyle"),zf(e,"label"),zf(e,"labelLine"),zf(e,"upperLabel"),zf(e,"edgeLabel")}function Vf(e,t){var n=Uf(e)&&e[t],r=Uf(n)&&n.textStyle;if(r){0;for(var i=0,a=Yi.length;i<a;i++){var o=Yi[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function Gf(e){e&&(Qf(e),Vf(e,"label"),e.emphasis&&Vf(e.emphasis,"label"))}function qf(e){return te(e)?e:e?[e]:[]}function Wf(e){return(te(e)?e[0]:e)||{}}function $f(e,t){Nf(qf(e.series),function(e){Uf(e)&&function(e){if(Uf(e)){Hf(e),Qf(e),Vf(e,"label"),Vf(e,"upperLabel"),Vf(e,"edgeLabel"),e.emphasis&&(Vf(e.emphasis,"label"),Vf(e.emphasis,"upperLabel"),Vf(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Hf(t),Gf(t));var n=e.markLine;n&&(Hf(n),Gf(n));var r=e.markArea;r&&Gf(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++)Gf(a[o]);W(e.categories,function(e){Qf(e)})}if(i&&!le(i))for(o=0;o<i.length;o++)Gf(i[o]);if((t=e.markPoint)&&t.data){var s=t.data;for(o=0;o<s.length;o++)Gf(s[o])}if((n=e.markLine)&&n.data){var l=n.data;for(o=0;o<l.length;o++)te(l[o])?(Gf(l[o][0]),Gf(l[o][1])):Gf(l[o])}"gauge"===e.type?(Vf(e,"axisLabel"),Vf(e,"title"),Vf(e,"detail")):"treemap"===e.type?(zf(e.breadcrumb,"itemStyle"),W(e.levels,function(e){Qf(e)})):"tree"===e.type&&Qf(e.leaves)}}(e)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Nf(n,function(t){Nf(qf(e[t]),function(e){e&&(Vf(e,"axisLabel"),Vf(e.axisPointer,"label"))})}),Nf(qf(e.parallel),function(e){var t=e&&e.parallelAxisDefault;Vf(t,"axisLabel"),Vf(t&&t.axisPointer,"label")}),Nf(qf(e.calendar),function(e){zf(e,"itemStyle"),Vf(e,"dayLabel"),Vf(e,"monthLabel"),Vf(e,"yearLabel")}),Nf(qf(e.radar),function(e){Vf(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)}),Nf(qf(e.geo),function(e){Uf(e)&&(Gf(e),Nf(qf(e.regions),function(e){Gf(e)}))}),Nf(qf(e.timeline),function(e){Gf(e),zf(e,"label"),zf(e,"itemStyle"),zf(e,"controlStyle",!0);var t=e.data;te(t)&&W(t,function(e){oe(e)&&(zf(e,"label"),zf(e,"itemStyle"))})}),Nf(qf(e.toolbox),function(e){zf(e,"iconStyle"),Nf(e.feature,function(e){zf(e,"iconStyle")})}),Vf(Wf(e.axisPointer),"label"),Vf(Wf(e.tooltip).axisPointer,"label")}function Kf(e){e&&W(Yf,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Yf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Xf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Zf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Jf(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Zf.length;n++){var r=Zf[n][1],i=Zf[n][0];null!=t[r]&&(t[i]=t[r])}}function ep(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function tp(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function np(e,t){$f(e,t),e.series=$i(e.series),W(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),ep(e.label),(a=e.data)&&!le(a))for(var r=0;r<a.length;r++)ep(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(Jf(e),Jf(e.backgroundStyle),Jf(e.emphasis),(a=e.data)&&!le(a))for(r=0;r<a.length;r++)"object"==typeof a[r]&&(Jf(a[r]),Jf(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)),tp(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,tp)}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&&H(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),W(Xf,function(t){var n=e[t];n&&(te(n)||(n=[n]),W(n,function(e){Kf(e)}))})}function rp(e){W(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex;o.modify(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 g=e[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,u)),h>=0){var A=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&A>0||d<=0&&A<0){d=Bi(d,A),f=A;break}}}return r[0]=d,r[1]=f,r})})}var ip,ap,op,sp,lp,cp=function(){return function(e){this.data=e.data||(e.sourceFormat===af?{}:[]),this.sourceFormat=e.sourceFormat||sf,this.seriesLayoutBy=e.seriesLayoutBy||lf,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&gf(this,n)===uf.Must&&(r.type="ordinal")}}}();function up(e){return e instanceof cp}function hp(e,t,n){n=n||fp(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:pp(i),startIndex:o,dimensionsDetectedCount:a};if(t===nf){var s=e;"auto"===r||null==r?gp(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=[],gp(function(e,t){i[t]=null!=e?e+"":""},n,s,1/0)),a=i?i.length:n===cf?s.length:s[0]?s[0].length:null}else if(t===rf)i||(i=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t){var r=[];return W(t,function(e,t){r.push(t)}),r}}(e));else if(t===af)i||(i=[],W(e,function(e,t){i.push(t)}));else if(t===tf){var l=Xi(e[0]);a=te(l)&&l.length||1}return{startIndex:o,dimensionsDefine:pp(i),dimensionsDetectedCount:a}}(e,n,r,t.sourceHeader,t.dimensions);return new cp({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:R(t)})}function dp(e){return new cp({data:e,sourceFormat:le(e)?of:tf})}function fp(e){var t=sf;if(le(e))t=of;else if(te(e)){0===e.length&&(t=nf);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(te(i)){t=nf;break}if(oe(i)){t=rf;break}}}}else if(oe(e))for(var a in e)if(Te(e,a)&&q(e[a])){t=af;break}return t}function pp(e){if(e){var t=Se();return $(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 gp(e,t,n,r){if(t===cf)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)}}function Ap(e){var t=e.sourceFormat;return t===rf||t===af}var mp=function(){function e(e,t){var n=up(e)?e:dp(e);this._source=n;var r=this._data=n.data;n.sourceFormat===of&&(this._offset=0,this._dimSize=t,this._data=r),lp(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;lp=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,l=a.startIndex,c=a.dimensionsDefine,u=sp[Ep(o,s)];if(j(e,u),o===of)e.getItem=t,e.count=r,e.fillStorage=n;else{var h=bp(o,s);e.getItem=J(h,null,i,l,c);var d=xp(o,s);e.count=J(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={})[nf+"_"+lf]={pure:!0,appendData:i},e[nf+"_"+cf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[rf]={pure:!0,appendData:i},e[af]={pure:!0,appendData:function(e){var t=this._data;W(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[tf]={appendData:i},e[of]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},sp=e}(),e}(),vp=function(e,t,n,r){return e[r]},yp=((ip={})[nf+"_"+lf]=function(e,t,n,r){return e[r+t]},ip[nf+"_"+cf]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[r]:null}return a},ip[rf]=vp,ip[af]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name;0;var l=e[s];a[o]=l?l[r]:null}return a},ip[tf]=vp,ip);function bp(e,t){var n=yp[Ep(e,t)];return n}var _p=function(e,t,n){return e.length},wp=((ap={})[nf+"_"+lf]=function(e,t,n){return Math.max(0,e.length-t)},ap[nf+"_"+cf]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},ap[rf]=_p,ap[af]=function(e,t,n){var r=n[0].name;var i=e[r];return i?i.length:0},ap[tf]=_p,ap);function xp(e,t){var n=wp[Ep(e,t)];return n}var Cp=function(e,t,n){return e[t]},Sp=((op={})[nf]=Cp,op[rf]=function(e,t,n){return e[n]},op[af]=Cp,op[tf]=function(e,t,n){var r=Xi(e);return r instanceof Array?r[t]:r},op[of]=Cp,op);function kp(e){var t=Sp[e];return t}function Ep(e,t){return e===nf?e+"_"+t:e}function Tp(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),a=i.getSource().sourceFormat;if(null!=n){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return kp(a)(r,o,s)}var l=r;return a===tf&&(l=Xi(r)),l}}}var Bp=/\{@(.+?)\}/g,Ip=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&&n.userOutput.get();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.fullDimensions: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?Md(i,s).replace(Bp,function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=Tp(o,e,i);if(a&&te(a.interpolatedValue)){var l=o.getDimensionIndex(i);l>=0&&(s=a.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return Tp(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Mp(e){var t,n;return oe(e)?e.type&&(n=e):t=e,{markupText:t,markupFragment:n}}function Pp(e){return new Dp(e)}var Dp=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 g=0;g<p.length;g++)this._doProgress(p[g],d,f,l,c);else this._doProgress(p,d,f,l,c)}this._dueIndex=f;var A=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=A}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){Fp.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Fp.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}(),Fp=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 Op(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"===n&&"number"!=typeof e&&null!=e&&"-"!==e&&(e=+Fi(e)),null==e||""===e?NaN:+e)}var Lp=Se({number:function(e){return parseFloat(e)},time:function(e){return+Fi(e)},trim:function(e){return"string"==typeof e?be(e):e}});function Rp(e){return Lp.get(e)}var Np={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}},Up=function(){function e(e,t){if("number"!=typeof t){var n="";0,Gi(n)}this._opFn=Np[e],this._rvalFloat=ji(t)}return e.prototype.evaluate=function(e){return"number"==typeof e?this._opFn(e,this._rvalFloat):this._opFn(ji(e),this._rvalFloat)},e}(),jp=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:ji(e),a="number"===r?t:ji(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}(),Hp=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ji(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=ji(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function zp(e,t){return"eq"===e||"ne"===e?new Hp("eq"===e,t):Te(Np,e)?new Up(e,t):null}var Qp=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 Op(e,t)},e}();function Vp(e){var t=e.sourceFormat;if(!Yp(t)){var n="";0,Gi(n)}return e.data}function Gp(e){var t=e.sourceFormat,n=e.data;if(!Yp(t)){var r="";0,Gi(r)}if(t===nf){for(var i=[],a=0,o=n.length;a<o;a++)i.push(n[a].slice());return i}if(t===rf){for(i=[],a=0,o=n.length;a<o;a++)i.push(j({},n[a]));return i}}function qp(e,t,n){if(null!=n)return"number"==typeof n||!isNaN(n)&&!Te(t,n)?e[n]:Te(t,n)?t[n]:void 0}function Wp(e){return R(e)}var $p=Se();function Kp(e,t,n,r){var i="";t.length||Gi(i),oe(e)||Gi(i);var a=e.type,o=$p.get(a);o||Gi(i);var s=$(t,function(e){return function(e,t){var n=new Qp,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==lf&&Gi(o);var s=[],l={},c=e.dimensionsDefine;if(c)W(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),null!=n){var i="";Te(l,n)&&Gi(i),l[n]=r}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var h=bp(i,lf);t.__isBuiltIn&&(n.getRawDataItem=function(e){return h(r,a,s,e)},n.getRawData=J(Vp,null,e)),n.cloneRawData=J(Gp,null,e);var d=xp(i,lf);n.count=J(d,null,r,a,s);var f=kp(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=J(qp,null,s,l),n.cloneAllDimensionInfo=J(Wp,null,s),n}(e,o)}),l=$i(o.transform({upstream:s[0],upstreamList:s,config:R(e.config)}));return $(l,function(e,n){var r,i="";oe(e)||Gi(i),e.data||Gi(i),Yp(fp(e.data))||Gi(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:lf,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:lf,sourceHeader:0,dimensions:e.dimensions};return hp(e.data,r,null)})}function Yp(e){return e===nf||e===rf}var Xp,Zp="undefined"==typeof Uint32Array?Array:Uint32Array,Jp="undefined"==typeof Uint16Array?Array:Uint16Array,eg="undefined"==typeof Int32Array?Array:Int32Array,tg="undefined"==typeof Float64Array?Array:Float64Array,ng={float:tg,int:eg,ordinal:Array,number:Array,time:tg};function rg(e){return e>65535?Zp:Jp}function ig(e,t,n,r,i){var a=ng[n||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new a(r),c=0;c<s;c++)l[c]=o[c];e[t]=l}}else e[t]=new a(r)}var ag=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Se()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Xp[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];Ap(r);this._dimensions=$(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new ng[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;0===a&&(i[e]=[1/0,-1/0]);for(var s=i[e],l=a;l<o;l++){var c=n[l]=t.parseAndCollect(n[l]);s[0]=Math.min(c,s[0]),s[1]=Math.max(c,s[1])}r.ordinalMeta=t,r.ordinalOffset=o,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),l=0;l<i;l++){ig(n,l,(f=r[l]).type,s,!0)}for(var c=[],u=o;u<s;u++)for(var h=u-o,d=0;d<i;d++){var f=r[d],p=Xp.arrayRows.call(this,e[h]||c,f.property,h,d);n[d][u]=p;var g=a[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,l=$(a,function(e){return e.property}),c=0;c<o;c++){var u=a[c];s[c]||(s[c]=[1/0,-1/0]),ig(i,c,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var h=[],d=e;d<t;d++){h=r.getItem(d,h);for(var f=0;f<o;f++){var p=i[f],g=this._dimValueGetter(h,l[f],d,f);p[d]=g;var A=s[f];g<A[0]&&(A[0]=g),g>A[1]&&(A[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[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.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._chunks[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.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=rg(this._rawCount))(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(rg(n._rawCount))(r),a=[],o=e.length,s=0,l=e[0],c=n._chunks,u=0;u<r;u++){var h=void 0,d=n.getRawIndex(u);if(0===o)h=t(u);else if(1===o){h=t(c[l][d],u)}else{for(var f=0;f<o;f++)a[f]=c[e[f]][d];a[f]=u,h=t.apply(null,a)}h&&(i[s++]=d)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Z(e),i=r.length;if(!i)return this;var a=t.count(),o=new(rg(t._rawCount))(a),s=0,l=r[0],c=e[l][0],u=e[l][1],h=t._chunks,d=!1;if(!t._indices){var f=0;if(1===i){for(var p=h[r[0]],g=0;g<n;g++){((y=p[g])>=c&&y<=u||isNaN(y))&&(o[s++]=f),f++}d=!0}else if(2===i){p=h[r[0]];var A=h[r[1]],m=e[r[1]][0],v=e[r[1]][1];for(g=0;g<n;g++){var y=p[g],b=A[g];(y>=c&&y<=u||isNaN(y))&&(b>=m&&b<=v||isNaN(b))&&(o[s++]=f),f++}d=!0}}if(!d)if(1===i)for(g=0;g<a;g++){var _=t.getRawIndex(g);((y=h[r[0]][_])>=c&&y<=u||isNaN(y))&&(o[s++]=_)}else for(g=0;g<a;g++){for(var w=!0,x=(_=t.getRawIndex(g),0);x<i;x++){var C=r[x];((y=h[C][_])<e[C][0]||y>e[C][1])&&(w=!1)}w&&(o[s++]=t.getRawIndex(g))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],l=e._rawExtent,c=0;c<t.length;c++)l[t[c]]=[1/0,-1/0];for(var u=0;u<o;u++){for(var h=e.getRawIndex(u),d=0;d<a;d++)s[d]=r[t[d]][h];s[a]=u;var f=n&&n.apply(null,s);if(null!=f){"object"!=typeof f&&(i[0]=f,f=i);for(c=0;c<f.length;c++){var p=t[c],g=f[c],A=l[p],m=r[p];m&&(m[h]=g),g<A[0]&&(A[0]=g),g>A[1]&&(A[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,a=this.clone([e],!0),o=a._chunks[e],s=this.count(),l=0,c=Math.floor(1/t),u=this.getRawIndex(0),h=new(rg(this._rawCount))(Math.ceil(s/c)+2);h[l++]=u;for(var d=1;d<s-1;d+=c){for(var f=Math.min(d+c,s-1),p=Math.min(d+2*c,s),g=(p+f)/2,A=0,m=f;m<p;m++){var v=o[x=this.getRawIndex(m)];isNaN(v)||(A+=v)}A/=p-f;var y=d,b=Math.min(d+c,s),_=d-1,w=o[u];n=-1,i=y;for(m=y;m<b;m++){var x;v=o[x=this.getRawIndex(m)];isNaN(v)||(r=Math.abs((_-g)*(v-w)-(_-m)*(A-w)))>n&&(n=r,i=x)}h[l++]=i,u=i}return h[l++]=this.getRawIndex(s-1),a._count=l,a._indices=h,a.getRawIndex=this._getRawIdx,a},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),l=a[e],c=this.count(),u=i._rawExtent[e]=[1/0,-1/0],h=new(rg(this._rawCount))(Math.ceil(c/s)),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 g=this.getRawIndex(f+p);o[p]=l[g]}var A=n(o),m=this.getRawIndex(Math.min(f+r(o,A)||0,c-1));l[m]=A,A<u[0]&&(u[0]=A),A>u[1]&&(u[1]=A),h[d++]=m}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][o];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];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.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r,i,a=new e,o=this._chunks,s=t&&K(t,function(e,t){return e[t]=!0,e},{});if(s)for(var l=0;l<o.length;l++)a._chunks[l]=s[l]?(r=o[l],i=void 0,(i=r.constructor)===Array?r.slice():new i(r)):o[l];else a._chunks=o;return this._copyCommonProps(a),n||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=R(this._extent),e._rawExtent=R(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Op(e[r],this._dimensions[r])}Xp={arrayRows:e,objectRows:function(e,t,n,r){return Op(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return Op(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),og=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},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(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(lg(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))?of:tf,t=[];var u=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=ge(u.seriesLayoutBy,h.seriesLayoutBy)||null,f=ge(u.sourceHeader,h.sourceHeader)||null,p=ge(u.dimensions,h.dimensions);e=d!==h.seriesLayoutBy||!!f!=!!h.sourceHeader||p?[hp(o,{seriesLayoutBy:d,sourceHeader:f,dimensions:p},s)]:[]}else{var g=n;if(i){var A=this._applyTransform(r);e=A.sourceList,t=A.upstreamSignList}else{e=[hp(g.get("source",!0),this._getSourceMetaRawOption(),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&&cg(a)}var o,s=[],l=[];return W(e,function(e){e.prepareSource();var t=e.getSource(i||0),n="";null==i||t||cg(n),s.push(t),l.push(e._getVersionSign())}),r?t=function(e,t,n){var r=$i(e),i=r.length,a="";i||Gi(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 cp({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:R(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)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){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var a=i[n];if(!a){var o=this._getUpstreamSourceManagers()[0];lg(this._sourceHost)&&o?a=o._innerGetDataStore(e,t,n):(a=new ag).initData(new mp(t,e.length),e),i[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(lg(e)){var t=pf(e);return t?[t.getSourceManager()]:[]}return $(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?da(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ua).models:[]}(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(lg(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 sg(e){e.option.transform&&we(e.option.transform)}function lg(e){return"series"===e.mainType}function cg(e){throw new Error(e)}var ug="line-height:1";function hg(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:"+Ed(r+"")+"px;color:"+Ed(n)+";font-weight:"+Ed(i+""),valueStyle:"font-size:"+Ed(o+"")+"px;color:"+Ed(a)+";font-weight:"+Ed(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var dg=[0,10,20,30],fg=["","\n","\n\n","\n\n\n"];function pg(e,t){return t.type=e,t}function gg(e){return Te(Ag,e.type)&&Ag[e.type]}var Ag={section:{planLayout:function(e){var t=e.blocks.length,n=t>1||t>0&&!e.noHeader,r=0;W(e.blocks,function(e){gg(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=vg(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(Te(s,o)){var l=new jp(s[o],null);a.sort(function(e,t){return l.evaluate(e.sortParam,t.sortParam)})}else"seriesDesc"===o&&a.reverse()}var c=vg(t);if(W(a,function(t,n){var a=gg(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):yg(i.join(""),n)}(e,t,i?n:a.html,r);if(i)return o;var s=Td(t.header,"ordinal",e.useUTC),l=hg(r,e.renderMode).nameStyle;return"richText"===e.renderMode?bg(e,s,l)+a.richText+o:yg('<div style="'+l+";"+ug+';">'+Ed(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?"":Td(l,"ordinal",u),f=t.valueType,p=o?[]:te(c)?$(c,function(e,t){return Td(e,te(f)?f[t]:f,u)}):[Td(c,te(f)?f[0]:f,u)],g=!s||!a,A=!s&&a,m=hg(r,i),v=m.nameStyle,y=m.valueStyle;return"richText"===i?(s?"":h)+(a?"":bg(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,g,A,y)):yg((s?"":h)+(a?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+Ed(e)+"</span>"}(d,!s,v))+(o?"":function(e,t,n,r){return'<span style="'+(t?"float:right;margin-left:"+(n?"10px":"20px"):"")+";"+r+'">'+$(e,function(e){return Ed(e)}).join("&nbsp;&nbsp;")+"</span>"}(p,g,A,y)),n)}}}};function mg(e,t,n,r,i,a){if(e){var o=gg(e);o.planLayout(e);var s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t};return o.build(s,e,0,a)}}function vg(e){var t=e.__gapLevelBetweenSubBlocks;return{html:dg[t],richText:fg[t]}}function yg(e,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+ug+';">'+e+'<div style="clear:both"></div></div>'}function bg(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function _g(e,t){return Od(e.getData().getItemVisual(t,"style")[e.visualDrawType])}function wg(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var xg=function(){function e(){this.richTextStyles={},this._nextStyleNameId=zi()}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=Pd({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)?W(t,function(e){return j(n,e)}):j(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function Cg(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=_g(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(pg("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?W(r,function(e){u(Tp(a,n,e),e)}):W(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 g=l.getDimensionInfo(c[0]);i=t=Tp(l,o,c[0]),n=g.type}else i=t=d?h[0]:h;var A=ra(a),m=A&&a.name||"",v=l.getName(o),y=s?m:v;return pg("section",{header:m,noHeader:s||!A,sortParam:i,blocks:[pg("nameValue",{markerType:"item",markerColor:f,name:y,noName:!be(y),value:t,valueType:n})].concat(r||[])})}var Sg=oa();function kg(e,t){return e.getName(t)||e.getId(t)}var Eg="__universalTransitionEnabled",Tg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return A(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Pp({count:Ig,reset:Mg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Sg(this).sourceManager=new og(this)).prepareSource();var r=this.getInitialData(e,n);Dg(r,this),this.dataTask.context.data=r,Sg(this).dataBeforeProcessed=r,Bg(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Vd(this),r=n?qd(e):{},i=this.subType;Yd.hasClass(i)&&(i+="Series"),N(e,t.getTheme().get(this.subType)),N(e,this.getDefaultOption()),Ki(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Gd(e,r,n)},t.prototype.mergeOption=function(e,t){e=N(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Vd(this);n&&Gd(this.option,e,n);var r=Sg(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Dg(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Sg(this).dataBeforeProcessed=i,Bg(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&&Ki(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=Og(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return Sg(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=Og(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Sg(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Se(e)},t.prototype.getSourceManager=function(){return Sg(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Sg(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return Cg({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){if(b.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=xf.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=kg(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=Z(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[kg(this.getData(t),e)]||!1},t.prototype.isUniversalTransitionEnabled=function(){if(this[Eg])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},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=kg(e,l)]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}else if("single"===i||!0===i){var c=t[a-1],u=kg(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);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Yd.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(Yd);function Bg(e){var t=e.name;ra(e)||(e.name=function(e){var t=e.getRawData(),n=[];return W(t.mapDimensionsAll("seriesName"),function(e){var r=t.getDimensionInfo(e);r.displayName&&n.push(r.displayName)}),n.join(" ")}(e)||t)}function Ig(e){return e.model.getRawData().count()}function Mg(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Pg}function Pg(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Dg(e,t){W(ke(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ee(Fg,t))})}function Fg(e,t){var n=Og(e);return n&&n.setOutputEnd((t||this).count()),t}function Og(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(Tg,Ip),G(Tg,xf),_a(Tg,Yd);var Lg=Tg,Rg=function(){function e(){this.group=new li,this.uid=Rh("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}();ba(Rg),Sa(Rg);var Ng=Rg;function Ug(){var e=oa();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 jg=oa(),Hg=Ug(),zg=function(){function e(){this.group=new li,this.uid=Rh("viewChart"),this.renderTask=Pp({plan:Gg,reset:qg}),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){Vg(e.getData(),r,"emphasis")},e.prototype.downplay=function(e,t,n,r){Vg(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){jg(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function Qg(e,t,n){e&&("emphasis"===t?Ol:Ll)(e,n)}function Vg(e,t,n){var r=aa(e,t),i=t&&null!=t.highlightKey?function(e){var t=il[e];return null==t&&rl<=32&&(t=il[e]=rl++),t}(t.highlightKey):null;null!=r?W($i(r),function(t){Qg(e.getItemGraphicEl(t),n,i)}):e.eachItemGraphicEl(function(e){Qg(e,n,i)})}function Gg(e){return Hg(e.model)}function qg(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&jg(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,r,i),Wg[l]}ba(zg),Sa(zg);var Wg={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)}}},$g=zg,Kg="\0__throttleOriginMethod",Yg="\0__throttleRate",Xg="\0__throttleType";function Zg(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 Jg(e,t,n,r){var i=e[t];if(i){var a=i[Kg]||i,o=i[Xg];if(i[Yg]!==n||o!==r){if(null==n||!r)return e[t]=a;(i=e[t]=Zg(a,n,"debounce"===r))[Kg]=a,i[Xg]=r,i[Yg]=n}return i}}var eA=oa(),tA={itemStyle:ka(Mh,!0),lineStyle:ka(Th,!0)},nA={lineStyle:"stroke",itemStyle:"fill"};function rA(e,t){var n=e.visualStyleMapper||tA[t];return n||(console.warn("Unkown style type '"+t+"'."),tA.itemStyle)}function iA(e,t){var n=e.visualDrawType||nA[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var aA={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=rA(e,r)(i),o=i.getShallow("decal");o&&(n.setVisual("decal",o),o.dirty=!0);var s=iA(e,r),l=a[s],c=ne(l)?l:null,u="auto"===a.fill||"auto"===a.stroke;if(!a[s]||c||u){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=h,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||"function"==typeof a.fill?h:a.fill,a.stroke="auto"===a.stroke||"function"==typeof a.stroke?h:a.stroke}if(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=j({},a);i[s]=c(r),t.setItemVisual(n,"style",i)}}}},oA=new Oh,sA={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=rA(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){oA.option=n[r];var o=i(oA);j(e.ensureUniqueItemVisual(t,"style"),o),oA.option.decal&&(e.setItemVisual(t,"decal",oA.option.decal),oA.option.decal.dirty=!0),a in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},lA={performRawSeries:!0,overallReset:function(e){var t=Se();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),eA(e).scope=i}}),e.eachSeries(function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),a=eA(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=iA(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)}})}})}},cA=Math.PI;var uA=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;W(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))}W(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)||Pp({plan:gA,reset:AA,count:yA}));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||Pp({reset:hA});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,Pp({reset:dA,onDirty:pA})));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,W(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){bA=null;try{e(_A,wA)}catch(e){}return bA}(e)}),e.uid=Rh("stageHandler"),t&&(e.visualType=t),e},e}();function hA(e){e.overallReset(e.ecModel,e.api,e.payload)}function dA(e){return e.overallProgress&&fA}function fA(){this.agent.dirty(),this.getDownstream().dirty()}function pA(){this.agent&&this.agent.dirty()}function gA(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function AA(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=$i(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?$(t,function(e,t){return vA(t)}):mA}var mA=vA(0);function vA(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 yA(e){return e.data.count()}var bA,_A={},wA={};function xA(e,t){for(var n in t.prototype)e[n]=Be}xA(_A,If),xA(wA,Pf),_A.eachSeriesByType=_A.eachRawSeriesByType=function(e){bA=e},_A.eachComponent=function(e){"series"===e.mainType&&e.subType&&(bA=e.subType)};var CA=uA,SA=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],kA={color:SA,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],SA]},EA=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],TA={darkMode:!0,color:EA,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:EA},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"}}};TA.categoryAxis.splitLine.show=!1;var BA=TA,IA=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(re(e)){var i=ya(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};W(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}(),MA={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){var r=e.get("symbol"),i=e.get("symbolSize"),a=e.get("symbolKeepAspect"),o=e.get("symbolRotate"),s=e.get("symbolOffset"),l=ne(r),c=ne(i),u=ne(o),h=ne(s),d=l||c||u||h,f=!l&&r?r:e.defaultSymbol,p=c?null:i,g=u?null:o,A=h?null:s;if(n.setVisual({legendIcon:e.legendIcon||f,symbol:f,symbolSize:p,symbolKeepAspect:a,symbolRotate:g,symbolOffset:A}),!t.isSeriesFiltered(e))return{dataEach:d?function(t,n){var a=e.getRawValue(n),d=e.getDataParams(n);l&&t.setItemVisual(n,"symbol",r(a,d)),c&&t.setItemVisual(n,"symbolSize",i(a,d)),u&&t.setItemVisual(n,"symbolRotate",o(a,d)),h&&t.setItemVisual(n,"symbolOffset",s(a,d))}:null}}}};function PA(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 DA(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 FA(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}}function OA(e,t){W([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(t,r,i){t=j({},t),i.dispatchAction(j(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 LA(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=aa(s,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:te(l)?s.getName(l[0]):s.getName(l),selected:j({},e.option.selectedMap)})}})}function RA(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var NA=Math.round(9*Math.random()),UA="function"==typeof Object.defineProperty,jA=function(){function e(){this._id="__ec_inner_"+NA++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return UA?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}(),HA=Es.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()}}),zA=Es.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()}}),QA=Es.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()}}),VA=Es.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()}}),GA={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/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}},qA={};W({line:iu,rect:zs,roundRect:zs,square:zs,circle:Cc,diamond:zA,pin:QA,arrow:VA,triangle:HA},function(e,t){qA[t]=new e});var WA=Es.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Xr(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=qA[r];i||(i=qA[r="rect"]),GA[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function $A(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function KA(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://")?Qu(e.slice(8),new jr(t,n,r,i),o?"center":"cover"):0===e.indexOf("path://")?zu(e.slice(7),{},new jr(t,n,r,i),o?"center":"cover"):new WA({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=$A,a&&s.setColor(a),s}function YA(e){return te(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function XA(e,t){if(null!=e)return te(e)||(e=[e,e]),[wi(e[0],t[0])||0,wi(ge(e[1],e[0]),t[1])||0]}function ZA(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 JA(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 em(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 tm=new os(!0);function nm(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function rm(e){return"string"==typeof e&&"none"!==e}function im(e){var t=e.fill;return null!=t&&"none"!==t}function am(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 om(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 sm(e,t,n){var r=Ma(t.image,t.__image,n);if(Da(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i.setTransform){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 lm=["shadowBlur","shadowOffsetX","shadowOffsetY"],cm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function um(e,t,n,r,i){var a=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){a||(mm(e,i),a=!0);var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Wa.opacity:o}(r||t.blend!==n.blend)&&(a||(mm(e,i),a=!0),e.globalCompositeOperation=t.blend||Wa.blend);for(var s=0;s<lm.length;s++){var l=lm[s];(r||t[l]!==n[l])&&(a||(mm(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(mm(e,i),a=!0),e.shadowColor=t.shadowColor||Wa.shadowColor),a}function hm(e,t,n,r,i){var a=vm(t,i.inHover),o=r?null:n&&vm(n,i.inHover)||{};if(a===o)return!1;var s=um(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(mm(e,i),s=!0),rm(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(mm(e,i),s=!0),rm(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(mm(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||(mm(e,i),s=!0),e.lineWidth=l)}for(var c=0;c<cm.length;c++){var u=cm[c],h=u[0];(r||a[h]!==o[h])&&(s||(mm(e,i),s=!0),e[h]=a[h]||u[1])}return s}function dm(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 fm=1,pm=2,gm=3,Am=4;function mm(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function vm(e,t){return t&&e.__hoverStyle||e.style}function ym(e,t){bm(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function bm(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~Qt,void(t.__isRendered=!1);var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if(o&&!JA(a,o)||(o&&o.length&&(mm(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(mm(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(),dm(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 Es&&t.autoBatch&&function(e){var t=im(e),n=nm(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)?(mm(e,n),dm(e,t)):d||mm(e,n);var f=vm(t,n.inHover);t instanceof Es?(n.lastDrawType!==fm&&(l=!0,n.lastDrawType=fm),hm(e,t,c,l,n),d&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i=nm(n),a=im(n),o=n.strokePercent,s=o<1,l=!t.path;t.silent&&!s||!l||t.createPathProxy();var c=t.path||tm;if(!r){var u=n.fill,h=n.stroke,d=a&&!!u.colorStops,f=i&&!!h.colorStops,p=a&&!!u.image,g=i&&!!h.image,A=void 0,m=void 0,v=void 0,y=void 0,b=void 0;(d||f)&&(b=t.getBoundingRect()),d&&(A=t.__dirty?ZA(e,u,b):t.__canvasFillGradient,t.__canvasFillGradient=A),f&&(m=t.__dirty?ZA(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(v=t.__dirty||!t.__canvasFillPattern?sm(e,u,t):t.__canvasFillPattern,t.__canvasFillPattern=v),g&&(y=t.__dirty||!t.__canvasStrokePattern?sm(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=v),d?e.fillStyle=A:p&&(v?e.fillStyle=v:a=!1),f?e.strokeStyle=m:g&&(y?e.strokeStyle=y:i=!1)}var _=n.lineDash&&n.lineWidth>0&&em(n.lineDash,n.lineWidth),w=n.lineDashOffset,x=!!e.setLineDash,C=t.getGlobalScale();if(c.setScale(C[0],C[1],t.segmentIgnoreThreshold),_){var S=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;S&&1!==S&&(_=$(_,function(e){return e/S}),w/=S)}var k=!0;(l||t.__dirty&Vt||_&&!x&&i)&&(c.setDPR(e.dpr),s?c.setContext(null):(c.setContext(e),k=!1),c.reset(),_&&!x&&(c.setLineDash(_),c.setLineDashOffset(w)),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),k&&c.rebuildPath(e,s?o:1),_&&x&&(e.setLineDash(_),e.lineDashOffset=w),r||(n.strokeFirst?(i&&om(e,n),a&&am(e,n)):(a&&am(e,n),i&&om(e,n))),_&&x&&e.setLineDash([])}(e,t,f,d),d&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof Is?(n.lastDrawType!==gm&&(l=!0,n.lastDrawType=gm),hm(e,t,c,l,n),function(e,t,n){var r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||zr,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0;if(e.setLineDash){var a=n.lineDash&&n.lineWidth>0&&em(n.lineDash,n.lineWidth),o=n.lineDashOffset;if(a){var s=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(a=$(a,function(e){return e/s}),o/=s),e.setLineDash(a),e.lineDashOffset=o,i=!0}}n.strokeFirst?(nm(n)&&e.strokeText(r,n.x,n.y),im(n)&&e.fillText(r,n.x,n.y)):(im(n)&&e.fillText(r,n.x,n.y),nm(n)&&e.strokeText(r,n.x,n.y)),i&&e.setLineDash([])}}(e,t,f)):t instanceof Fs?(n.lastDrawType!==pm&&(l=!0,n.lastDrawType=pm),function(e,t,n,r,i){um(e,vm(t,i.inHover),n&&vm(n,i.inHover),r,i)}(e,t,c,l,n),function(e,t,n){var r=t.__image=Ma(n.image,t.__image,t,t.onload);if(r&&Da(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 xu&&(n.lastDrawType!==Am&&(l=!0,n.lastDrawType=Am),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(),bm(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(),bm(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&&mm(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var _m,wm=new jA,xm=new tn(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&&wm.delete(e);var a=wm.get(e);if(a)return a;var o=H(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=xm.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=$(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=$(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(o.dashArrayY),g=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),A=(_=f,$(_,function(e){return km(e)})),m=km(p),v=!i&&z(),y=i&&r.painter.createSVGElement("g"),b=function(){for(var e=1,t=0,n=A.length;t<n;++t)e=Qi(e,A[t]);for(var r=1,t=0,n=g.length;t<n;++t)r=Qi(r,g[t].length);e*=r;var i=m*A.length*g.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}();var _;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%g.length,h=0,A=0,_=0;h<2*b.width;){for(var w=0,t=0;t<f[c].length;++t)w+=f[c][t];if(w<=0)break;if(A%2==0){var x=.5*(1-o.symbolSize),C=h+f[c][A]*x,S=a+p[s]*x,k=f[c][A]*o.symbolSize,E=p[s]*o.symbolSize,T=_/2%g[u].length;B(C,S,k,E,g[u][T])}h+=f[c][A],++_,++A===f[c].length&&(A=0)}++c===f.length&&(c=0)}a+=p[s],++l,++s===p.length&&(s=0)}function B(e,t,a,s,l){var c=i?1:n,u=KA(l,e*c,t*c,a*c,s*c,o.color,o.symbolKeepAspect);i?y.appendChild(r.painter.paintOne(u)):ym(d,u)}})(),s&&xm.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,wm.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}function Em(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 Tm={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-anchor":"textAlign",visibility:"visibility",display:"display"},Bm=Z(Tm),Im={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Mm=Z(Im),Pm=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=Em(e);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var r=new li;this._root=r;var i=[],a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Nm(n,r,null,!0,!1);for(var l,c,u=n.firstChild;u;)this._parseNode(u,r,i,null,!1,!1),u=u.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],a){var h=zm(a);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=o&&null!=s&&(c=Wm(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var d=r;(r=new li).add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return t.ignoreRootClip||null==o||null==s||r.setClipPath(new zs({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:c,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o,s=e.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(a=!0),"defs"===s||"switch"===s)o=t;else{if(!i){var c=_m[s];if(c&&Te(_m,s)){o=c.call(this,e,t);var u=e.getAttribute("name");if(u){var h={name:u,namedFrom:null,svgNodeTagLower:s,el:o};n.push(h),"g"===s&&(l=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:o});t.add(o)}}var d=Dm[s];if(d&&Te(Dm,s)){var f=d.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=f)}}if(o&&o.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,o,n,l,i,a):3===g.nodeType&&a&&this._parseText(g,o),g=g.nextSibling},e.prototype._parseText=function(e,t){var n=new Is({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Lm(t,n),Nm(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&("middle"===o&&(s="center"),e.style.textAlign=s)}}(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var a=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=a;var o=n.getBoundingRect();return this._textX+=o.width,t.add(n),n},e.internalField=void(_m={g:function(e,t){var n=new li;return Lm(t,n),Nm(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new zs;return Lm(t,n),Nm(e,n,this._defsUsePending,!1,!1),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.silent=!0,n},circle:function(e,t){var n=new Cc;return Lm(t,n),Nm(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new iu;return Lm(t,n),Nm(e,n,this._defsUsePending,!1,!1),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.silent=!0,n},ellipse:function(e,t){var n=new Ec;return Lm(t,n),Nm(e,n,this._defsUsePending,!1,!1),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.silent=!0,n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=Rm(r));var i=new Xc({shape:{points:n||[]},silent:!0});return Lm(t,i),Nm(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=Rm(r));var i=new eu({shape:{points:n||[]},silent:!0});return Lm(t,i),Nm(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Fs;return Lm(t,n),Nm(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,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 li;return Lm(t,o),Nm(e,o,this._defsUsePending,!1,!0),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 li;return Lm(t,o),Nm(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=bc(e.getAttribute("d")||"");return Lm(t,n),Nm(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),e}(),Dm={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 gu(t,n,r,i);return Fm(e,a),Om(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new Au(t,n,r);return Fm(e,i),Om(e,i),i}};function Fm(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function Om(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};qm(n,a,a);var o=a.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function Lm(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),H(t.__inheritedStyle,e.__inheritedStyle))}function Rm(e){for(var t=zm(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}function Nm(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){var r=[],i=null;(n=n.replace(/,/g," ")).replace(Qm,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=zm(o);switch(i=i||[1,0,0,1,0,0],s){case"translate":pr(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ar(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":gr(i,i,-parseFloat(l[0])*Vm);break;case"skewX":var c=Math.tan(parseFloat(l[0])*Vm);fr(i,[1,0,c,1,0,0],i);break;case"skewY":var u=Math.tan(parseFloat(l[0])*Vm);fr(i,[1,u,0,1,0,0],i);break;case"matrix":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),qm(e,o,s),r||function(e,t,n){for(var r=0;r<Bm.length;r++){var i=Bm[r],a=e.getAttribute(i);null!=a&&(t[Tm[i]]=a)}for(var r=0;r<Mm.length;r++){var i=Mm[r],a=e.getAttribute(i);null!=a&&(n[Im[i]]=a)}}(e,o,s)),a.style=a.style||{},null!=o.fill&&(a.style.fill=jm(a,"fill",o.fill,n)),null!=o.stroke&&(a.style.stroke=jm(a,"stroke",o.stroke,n)),W(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(e){null!=o[e]&&(a.style[e]=parseFloat(o[e]))}),W(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(e){null!=o[e]&&(a.style[e]=o[e])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=$(zm(o.lineDash),function(e){return parseFloat(e)})),"hidden"!==o.visibility&&"collapse"!==o.visibility||(a.invisible=!0),"none"===o.display&&(a.ignore=!0)}var Um=/^url\(\s*#(.*?)\)/;function jm(e,t,n,r){var i=n&&n.match(Um);if(!i)return"none"===n&&(n=null),n;var a=be(i[1]);r.push([e,t,a])}var Hm=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function zm(e){return e.match(Hm)||[]}var Qm=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Vm=Math.PI/180;var Gm=/([^\s:;]+)\s*:\s*([^:;]+)/g;function qm(e,t,n){var r,i=e.getAttribute("style");if(i)for(Gm.lastIndex=0;null!=(r=Gm.exec(i));){var a=r[1],o=Te(Tm,a)?Tm[a]:null;o&&(t[o]=r[2]);var s=Te(Im,a)?Im[a]:null;s&&(n[s]=r[2])}}function Wm(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}var $m=1e-8;function Km(e,t){return Math.abs(e-t)<$m}function Ym(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+=ps(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return Km(i[0],s[0])&&Km(i[1],s[1])||(r+=ps(i[0],i[1],s[0],s[1],t,n)),0!==r}var Xm=[],Zm=function(){function e(e){this.name=e}return e.prototype.getCenter=function(){},e}(),Jm=function(e){function t(t,n,r){var i=e.call(this,t)||this;if(i.type="geoJSON",i.geometries=n,r)r=[r[0],r[1]];else{var a=i.getBoundingRect();r=[a.x+a.width/2,a.y+a.height/2]}return i._center=r,i}return A(t,e),t.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)Fo(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 jr(n[0],n[1],r[0]-n[0],r[1]-n[1])},t.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(Ym(a,e[0],e[1])){for(var s=0;s<(o?o.length:0);s++)if(Ym(o[s],e[0],e[1]))continue e;return!0}}return!1},t.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 jr(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]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t.prototype.getCenter=function(){return this._center},t.prototype.setCenter=function(e){this._center=e},t}(Zm),ev=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return A(t,e),t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this._calculateCenter()),e},t.prototype._calculateCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=hr(Xm),i=e;i&&!i.isGeoSVGGraphicRoot;)fr(r,i.getLocalTransform(),r),i=i.parent;return mr(r,r),et(n,n,r),n},t}(Zm),tv=Se(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),nv=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Se(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Em(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function(e){var t=[],n=Se();return W(e,function(e){if(null==e.namedFrom){var r=new ev(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,r,i;try{ye(null!=(n=(t=e&&(r=e,i={ignoreViewBox:!0,ignoreRootClip:!0},(new Pm).parse(r,i))||{}).root))}catch(e){throw new Error("Invalid svg format\n"+e.message)}var a=new li;a.add(n),a.isGeoSVGGraphicRoot=!0;var o=t.width,s=t.height,l=t.viewBoxRect,c=this._boundingRect;if(!c){var u=void 0,h=void 0,d=void 0,f=void 0;if(null!=o?(u=0,d=o):l&&(u=l.x,d=l.width),null!=s?(h=0,f=s):l&&(h=l.y,f=l.height),null==u||null==h){var p=n.getBoundingRect();null==u&&(u=p.x,d=p.width),null==h&&(h=p.y,f=p.height)}c=this._boundingRect=new jr(u,h,d,f)}if(l){var g=Wm(l,c);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}a.setClipPath(new zs({shape:c.plain()}));var A=[];return W(t.named,function(e){var t;null!=tv.get(e.svgNodeTagLower)&&(A.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1}))}),{root:a,boundingRect:c,named:A}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function rv(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 iv(e,t){return $(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]=rv(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]=rv(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&&W(a=r.coordinates,function(e){e[0]&&i.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})});var o=new Jm(n[t||"name"],i,n.cp);return o.properties=n,o})}for(var av=[126,25],ov="南海诸岛",sv=[[[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]]],lv=0;lv<sv.length;lv++)for(var cv=0;cv<sv[lv].length;cv++)sv[lv][cv][0]/=10.5,sv[lv][cv][1]/=-14,sv[lv][cv][0]+=av[0],sv[lv][cv][1]+=av[1];var uv={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var hv={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};var dv=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var fv=function(){function e(e,t,n){var r;this.type="geoJSON",this._parsedMap=Se(),this._mapName=e,this._specialAreas=n,this._geoJSON=re(r=t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,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}(r)})}var i=Se(),a=[];return W(n.regions,function(t){var n=t.name;e&&e.hasOwnProperty(n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new jr(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,r=this._geoJSON;try{t=r?iv(r,e):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===ov)return;t.push(new Jm(ov,$(sv,function(e){return{type:"polygon",exterior:e}}),av))}}(n,t),W(t,function(e){var t=e.name;!function(e,t){if("china"===e){var n=uv[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}(n,e),function(e,t){if("world"===e){var n=hv[t.name];if(n){var r=[n[0],n[1]];t.setCenter(r)}}}(n,e),function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:dv[0]})}(n,e);var r=this._specialAreas&&this._specialAreas[t];r&&e.transformTo(r.left,r.top,r.width,r.height)},this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();var pv=Se(),gv={registerMap:function(e,t,n){if(t.svg){var r=new nv(e,t.svg);pv.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;r=new fv(e,i,n);pv.set(e,r)}},getGeoResource:function(e){return pv.get(e)},getMapForUser:function(e){var t=pv.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var r=pv.get(e);if(r)return r.load(t,n)}},Av=new at,mv="undefined"!=typeof window,vv={zrender:"5.2.1"},yv=2e3,bv=1e3,_v=3e3,wv={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:bv,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:_v,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},xv=/^[a-zA-Z0-9_]+$/,Cv="__connectUpdateStatus";function Sv(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return Ev(this,e,t);Zv(this.id)}}function kv(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Ev(this,e,t)}}function Ev(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),at.prototype[t].apply(e,n)}var Tv,Bv,Iv,Mv,Pv,Dv,Fv,Ov,Lv,Rv,Nv,Uv,jv,Hv,zv,Qv,Vv,Gv,qv,Wv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t}(at),$v=Wv.prototype;$v.on=kv("on"),$v.off=kv("off");var Kv=function(e){function t(t,n,r){var i=e.call(this,new IA)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},"string"==typeof n&&(n=iy[n]),i._dom=t;var a="canvas",o=!1,s=i._zr=fi(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,useDirtyRect:null==r.useDirtyRect?o:r.useDirtyRect});i._throttledZrFlush=Zg(J(s.flush,s),17),(n=R(n))&&np(n,!0),i._theme=n,i._locale=function(e){if(re(e)){var t=zh[e.toUpperCase()]||{};return e===Uh||e===jh?R(t):N(R(t),R(zh[Hh]),!1)}return N(R(e),R(zh[Hh]),!1)}(r.locale||Vh),i._coordSysMgr=new Ff;var l=i._api=Qv(i);function c(e,t){return e.__prio-t.__prio}return zt(ry,c),zt(ty,c),i._scheduler=new CA(i,l,ty,ry),i._messageCenter=new Wv,i._initEvents(),i.resize=J(i.resize,i),s.animation.on("frame",i._onframe,i),Rv(s,i),Nv(s,i),we(i),i}return A(t,e),t.prototype._onframe=function(){if(!this._disposed){qv(this);var e=this._scheduler;if(this.__pendingUpdate){var t=this.__pendingUpdate.silent;this.__flagInMainProcess=!0,Tv(this),Mv.update.call(this,null,this.__pendingUpdate.updateParams),this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,Ov.call(this,t),Lv.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),Dv(this,r),e.performVisualTasks(r),zv(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)Zv(this.id);else{var r,i,a;if(oe(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 Rf(this._api),s=this._theme,l=this._model=new If;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},ny);var c={seriesTransition:a,optionChanged:!0};n?(this.__pendingUpdate={silent:r,updateParams:c},this.__flagInMainProcess=!1,this.getZr().wakeUp()):(Tv(this),Mv.update.call(this,null,c),this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,Ov.call(this,r),Lv.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||mv&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){if(b.canvasSupported)return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.getSvgDataURL=function(){if(b.svgSupported){var e=this._zr;return W(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;W(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 W(r,function(e){e.group.ignore=!1}),a}Zv(this.id)},t.prototype.getConnectedDataURL=function(e){if(this._disposed)Zv(this.id);else if(b.canvasSupported){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max;if(sy[n]){var a=1/0,o=1/0,s=-1/0,l=-1/0,c=[],u=e&&e.pixelRatio||this.getDevicePixelRatio();W(oy,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=z(),p=fi(f,{renderer:t?"svg":"canvas"});if(p.resize({width:h,height:d}),t){var g="";return W(c,function(e){var t=e.left-a,n=e.top-o;g+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),p.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&p.painter.setBackgroundColor(e.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}return e.connectedBackgroundColor&&p.add(new zs({shape:{x:0,y:0,width:h,height:d},style:{fill:e.connectedBackgroundColor}})),W(c,function(e){var t=new Fs({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 Pv(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Pv(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return W(la(this._model,e),function(e,r){r.indexOf("Models")>=0&&W(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;Zv(this.id)},t.prototype.getVisual=function(e,t){var n=la(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?PA(i,a,t):DA(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;W(Xv,function(e){var t=function(t){var n,i=r.getModel(),a=t.target,o="globalout"===e;if(o?n={}:a&&RA(a,function(e){var t=tl(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=j({},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)}),W(ey,function(e,t){r._messageCenter.on(t,function(e){this.trigger(t,e)},r)}),W(["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?(LA("map","selectchanged",t,r,e),LA("pie","selectchanged",t,r,e)):"select"===e.fromAction?(LA("map","selected",t,r,e),LA("pie","selected",t,r,e)):"unselect"===e.fromAction&&(LA("map","unselected",t,r,e),LA("pie","unselected",t,r,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Zv(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Zv(this.id);else{this._disposed=!0,fa(this.getDom(),uy,"");var e=this._api,t=this._model;W(this._componentsViews,function(n){n.dispose(t,e)}),W(this._chartsViews,function(n){n.dispose(t,e)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete oy[this.id]}},t.prototype.resize=function(e){if(this._disposed)Zv(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.__pendingUpdate&&(null==r&&(r=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0,n&&Tv(this),Mv.update.call(this,{type:"resize",animation:j({duration:0},e&&e.animation)}),this.__flagInMainProcess=!1,Ov.call(this,r),Lv.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Zv(this.id);else if(oe(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ay[e]){var n=ay[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?Zv(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=j({},e);return t.type=ey[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Zv(this.id);else if(oe(t)||(t={silent:!!t}),Jv[e.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(e);else{var n=t.silent;Fv.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&b.browser.weChat&&this._throttledZrFlush(),Ov.call(this,n),Lv.call(this,n)}},t.prototype.updateLabelLayout=function(){Av.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Zv(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===ll&&e.states.emphasis?t.push("emphasis"):e.hoverState===sl&&e.states.blur&&t.push("blur"),e.useStates(t)}function t(e,t){e.preventAutoZ||function e(t,n,r,i){var a=t.getTextContent();var o=t.getTextGuideLine();var s=t.isGroup;if(s)for(var l=t.childrenRef(),c=0;c<l.length;c++)i=Math.max(e(l[c],n,r,i),i);else t.z=n,t.zlevel=r,i=Math.max(t.z2,i);a&&(a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+2));if(o){var u=t.textGuideLineConfig;o.z=n,o.zlevel=r,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}(t.group,e.get("z")||0,e.get("zlevel")||0,-1/0)}function n(e,t){t.group.traverse(function(e){if(!Bu(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(Bu(t))return;if(t instanceof Es&&function(e){var t=al(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)}})}Tv=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Bv(e,!0),Bv(e,!1),t.plan()},Bv=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=ya(e.type),d=t?Ng.getClass(h.main,h.sub):$g.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)}},Iv=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(),W($i(c),function(e){var t=na(e,null);null!=t&&l.set(t,!0)})),tc(n)&&zl(e._api),a&&a.eachComponent(s,function(t){if(!(l&&null!==l.get(t.id)))if(tc(n))if(t instanceof Lg)n.type!==fl||n.notBlur||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType),a=aa(i,t);a=(te(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var c=tl(o);Ql(r,c.focus,c.blurScope,n)}else{var u=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);null!=u&&Ql(r,u,h,n)}}(t,n,e._api);else{var r=Gl(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===fl&&i&&!n.notBlur&&Vl(t.mainType,t.componentIndex,e._api),a&&W(a,function(e){n.type===fl?Ol(e):Ll(e)})}else ec(n)&&t instanceof Lg&&(!function(e,t,n){if(ec(t)){var r=t.dataType,i=aa(e.getData(r),t);te(i)||(i=[i]),e[t.type===ml?"toggleSelect":t.type===gl?"select":"unselect"](i,r)}}(t,n,e._api),ql(t),Gv(e))},e),a&&a.eachComponent(s,function(t){l&&null!==l.get(t.id)||u(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])},e)}else W([].concat(e._componentsViews).concat(e._chartsViews),u);function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},Mv={prepareAndUpdate:function(e){Tv(this),Mv.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(e,t){var n=this._model,r=this._api,i=this._zr,a=this._coordSysMgr,o=this._scheduler;if(n){n.setUpdatePayload(e),o.restoreData(n,e),o.performSeriesTasks(n),a.create(n,r),o.performDataProcessorTasks(n,e),Dv(this,n),a.update(n,r),Uv(n),o.performVisualTasks(n,e),jv(this,n,r,e,t);var s=n.get("backgroundColor")||"transparent",l=n.get("darkMode");if(b.canvasSupported)i.setBackgroundColor(s),null!=l&&"auto"!==l&&i.setDarkMode(l);else{var c=gn(s);s=Sn(c,"rgb"),0===c[3]&&(s="transparent")}Av.trigger("afterupdate",n,r)}},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)}),Uv(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),zv(this,n,r,e,{},a),Av.trigger("afterupdate",n,r)}},updateView:function(e){var t=this._model;t&&(t.setUpdatePayload(e),$g.markUpdateMethod(e,"updateView"),Uv(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),jv(this,t,this._api,e,{}),Av.trigger("afterupdate",t,this._api))},updateVisual:function(e){var t=this,n=this._model;n&&(n.setUpdatePayload(e),n.eachSeries(function(e){e.getData().clearAllVisual()}),$g.markUpdateMethod(e,"updateVisual"),Uv(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)}),Av.trigger("afterupdate",n,this._api))},updateLayout:function(e){Mv.update.call(this,e)}},Pv=function(e,t,n,r){if(e._disposed)Zv(e.id);else{for(var i,a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s=la(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}},Dv=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},Fv=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=Jv[i],s=o.actionInfo,l=(s.update||"update").split(":"),c=l.pop(),u=null!=l[0]&&ya(l[0]);this.__flagInMainProcess=!0;var h=[e],d=!1;e.batch&&(d=!0,h=$(e.batch,function(t){return(t=H(j({},t),e)).batch=null,t}));var f,p=[],g=ec(e),A=tc(e);if(W(h,function(t){if((f=(f=o.action(t,n._model,n._api))||j({},t)).type=s.event||f.type,p.push(f),A){var r=ca(e),i=r.queryOptionMap,a=r.mainTypeSpecified?i.keys()[0]:"series";Iv(n,c,t,a),Gv(n)}else g?(Iv(n,c,t,"series"),Gv(n)):u&&Iv(n,c,t,u.main,u.sub)}),"none"===c||A||g||u||(this.__pendingUpdate?(Tv(this),Mv.update.call(this,e),this.__pendingUpdate=null):Mv[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),g){var v={type:"selectchanged",escapeConnect:a,selected:function(e){var t=[];return e.eachSeries(function(e){W(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)}}},Ov=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Fv.call(this,n,e)}},Lv=function(e){!e&&this.trigger("updated")},Rv=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t.__pendingUpdate||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},Nv=function(e,t){e.on("mouseover",function(e){var n=RA(e.target,Jl);n&&(!function(e,t,n){var r=tl(e),i=Gl(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Vl(r.componentMainType,r.componentIndex,n),W(a,function(e){return Dl(e,t)})):(Ql(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Vl(r.componentMainType,r.componentIndex,n),Dl(e,t))}(n,e,t._api),Gv(t))}).on("mouseout",function(e){var n=RA(e.target,Jl);n&&(!function(e,t,n){zl(n);var r=tl(e),i=Gl(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?W(i,function(e){return Fl(e,t)}):Fl(e,t)}(n,e,t._api),Gv(t))}).on("click",function(e){var n=RA(e.target,function(e){return null!=tl(e).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=tl(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},Uv=function(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})},jv=function(e,t,n,r,i){Hv(e,t,n,r,i),W(e._chartsViews,function(e){e.__alive=!1}),zv(e,t,n,r,i),W(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},Hv=function(e,i,a,o,s,l){W(l||e._componentsViews,function(e){var s=e.__model;n(s,e),e.render(s,i,a,o),t(s,e),r(s,e)})},zv=function(e,i,a,o,s,l){var c=e._scheduler;s=j(s||{},{updatedSeries:i.getSeries()}),Av.trigger("series:beforeupdate",i,a,s);var u=!1;i.eachSeries(function(t){var r=e._chartsMap[t.__viewId];r.__alive=!0;var i=r.renderTask;c.updatePayload(i,o),n(t,r),l&&l.get(t.uid)&&i.dirty(),i.perform(c.getPerformArgs(i))&&(u=!0),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),ql(t)}),c.unfinished=u||c.unfinished,Av.trigger("series:layoutlabels",i,a,s),Av.trigger("series:transition",i,a,s),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")&&!b.node&&!b.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),Av.trigger("series:afterupdate",i,a,s)},Gv=function(e){e.__needsUpdateStatus=!0,e.getZr().wakeUp()},qv=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse(function(t){Bu(t)||e(t)}),t.__needsUpdateStatus=!1)},Qv=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return A(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){Ol(t,n),Gv(e)},n.prototype.leaveEmphasis=function(t,n){Ll(t,n),Gv(e)},n.prototype.enterBlur=function(t){Rl(t),Gv(e)},n.prototype.leaveBlur=function(t){Nl(t),Gv(e)},n.prototype.enterSelect=function(t){Ul(t),Gv(e)},n.prototype.leaveSelect=function(t){jl(t),Gv(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}(Pf))(e)},Vv=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][Cv]=t}}W(ey,function(n,r){e._messageCenter.on(r,function(n){if(sy[e.group]&&0!==e[Cv]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];W(oy,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,0),W(i,function(e){1!==e[Cv]&&e.dispatchAction(r)}),t(i,2)}})})}}(),t}(at),Yv=Kv.prototype;Yv.on=Sv("on"),Yv.off=Sv("off"),Yv.one=function(e,t,n){var r=this;Vi(),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 Xv=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Zv(e){0}var Jv={},ey={},ty=[],ny=[],ry=[],iy={},ay={},oy={},sy={},ly=+new Date-0,cy=+new Date-0,uy="_echarts_instance_";function hy(e,t,n){var r=Ay(e);if(r)return r;var i=new Kv(e,t,n);return i.id="ec_"+ly++,oy[i.id]=i,fa(e,uy,i.id),Vv(i),Av.trigger("afterinit",i),i}function dy(e){if(te(e)){var t=e;e=null,W(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+cy++,W(t,function(t){t.group=e})}return sy[e]=!0,e}function fy(e){sy[e]=!1}var py=fy;function gy(e){"string"==typeof e?e=oy[e]:e instanceof Kv||(e=Ay(e)),e instanceof Kv&&!e.isDisposed()&&e.dispose()}function Ay(e){return oy[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,uy)]}function my(e){return oy[e]}function vy(e,t){iy[e]=t}function yy(e){Q(ny,e)<0&&ny.push(e)}function by(e,t){Iy(ty,e,t,yv)}function _y(e){xy("afterinit",e)}function wy(e){xy("afterupdate",e)}function xy(e,t){Av.on(e,t)}function Cy(e,t,n){"function"==typeof t&&(n=t,t="");var r=oe(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,ey[t]||(ye(xv.test(r)&&xv.test(t)),Jv[r]||(Jv[r]={action:n,actionInfo:e}),ey[t]=r)}function Sy(e,t){Ff.register(e,t)}function ky(e){var t=Ff.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Ey(e,t){Iy(ry,e,t,bv,"layout")}function Ty(e,t){Iy(ry,e,t,_v,"visual")}var By=[];function Iy(e,t,n,r,i){if((ne(t)||oe(t))&&(n=t,t=r),!(Q(By,n)>=0)){By.push(n);var a=CA.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function My(e,t){ay[e]=t}function Py(e){D("createCanvas",e)}function Dy(e,t,n){gv.registerMap(e,t,n)}function Fy(e){return gv.getMapForUser(e)}var Oy=function(e){var t=(e=R(e)).type,n="";t||Gi(n);var r=t.split(":");2!==r.length&&Gi(n);var i=!1;"echarts"===r[0]&&(t=r[1],i=!0),e.__isBuiltIn=i,$p.set(t,e)};Ty(2e3,aA),Ty(4500,sA),Ty(4500,lA),Ty(2e3,MA),Ty(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("symbolOffset",!0),s=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,"symbolOffset",o),null!=s&&e.setItemVisual(t,"symbolKeepAspect",s)}:null}}}),Ty(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))}})}),yy(np),by(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(rp)}),My("default",function(e,t){H(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 li,r=new zs({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,a=new el({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new zs({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(o),t.showSpinner&&((i=new du({shape:{startAngle:-cA/2,endAngle:-cA/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*cA/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*cA/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}),Cy({type:fl,event:fl,update:fl},Be),Cy({type:pl,event:pl,update:pl},Be),Cy({type:gl,event:gl,update:gl},Be),Cy({type:Al,event:Al,update:Al},Be),Cy({type:ml,event:ml,update:ml},Be),vy("light",kA),vy("dark",BA);var Ly={},Ry=[],Ny={registerPreprocessor:yy,registerProcessor:by,registerPostInit:_y,registerPostUpdate:wy,registerUpdateLifecycle:xy,registerAction:Cy,registerCoordinateSystem:Sy,registerLayout:Ey,registerVisual:Ty,registerTransform:Oy,registerLoading:My,registerMap:Dy,PRIORITY:wv,ComponentModel:Yd,ComponentView:Ng,SeriesModel:Lg,ChartView:$g,registerComponentModel:function(e){Yd.registerClass(e)},registerComponentView:function(e){Ng.registerClass(e)},registerSeriesModel:function(e){Lg.registerClass(e)},registerChartView:function(e){$g.registerClass(e)},registerSubTypeDefaulter:function(e,t){Yd.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){mi(e,t)}};function Uy(e){te(e)?W(e,function(e){Uy(e)}):Q(Ry,e)>=0||(Ry.push(e),ne(e)&&(e={install:e}),e.install(Ny))}function jy(e){return null==e?0:e.length||1}function Hy(e){return e}var zy=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||Hy,this._newKeyGetter=r||Hy,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.updateManyToMany=function(e){return this._updateManyToMany=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=jy(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=jy(l),h=jy(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&&h>1)this._updateManyToMany&&this._updateManyToMany(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=jy(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=jy(s);0===l?(t[o]=a,i&&n.push(o)):1===l?t[o]=[s,a]:s.push(a)}}},e}(),Qy=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function Vy(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Gy(e){return"category"===e?"ordinal":"time"===e?"time":"float"}var qy=function(){return function(e){this.otherDims={},null!=e&&j(this,e)}}(),Wy=oa(),$y={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Ky=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Zy(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return ge(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Ap(this.source),n=!Jy(e),r="",i=[],a=0,o=0;a<e;a++){var s=void 0,l=void 0,c=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,l=u.type,c=u.ordinalMeta,o++;else{var h=this.getSourceDimension(a);h&&(s=t?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:c}),!t||null==s||u&&u.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=$y[l]||"f",c&&(r+=c.uid),r+="$"}var d=this.source;return{dimensions:i,hash:[d.seriesLayoutBy,d.startIndex,r].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Yy(e){return e instanceof Ky}function Xy(e){for(var t=Se(),n=0;n<(e||[]).length;n++){var r=e[n],i=oe(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function Zy(e){var t=Wy(e);return t.dimNameMap||(t.dimNameMap=Xy(e.dimensionsDefine))}function Jy(e){return e>30}var eb,tb,nb,rb,ib,ab,ob,sb=oe,lb=$,cb="undefined"==typeof Int32Array?Array:Int32Array,ub=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],hb=["_approximateExtent"],db=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;Yy(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},a=[],o={},s=!1,l={},c=0;c<n.length;c++){var u=n[c],h=re(u)?new qy({name:u}):u instanceof qy?u:new qy(u),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var f=h.otherDims=h.otherDims||{};a.push(d),i[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(o[d]=[]),0===f.itemName&&(this._nameDimIdx=c),0===f.itemId&&(this._idDimIdx=c),r&&(h.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var p=this._dimIdxToName=Se();W(a,function(e){p.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if("number"==typeof e||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof ag&&(r=e),!r){var a=this.dimensions,o=up(e)||q(e)?new mp(e,a.length):e;r=new ag;var s=lb(a,function(e){return{type:i._dimInfos[e].type,property:e}});r.initData(o,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},i=Se(),a=[],o=[],s={};W(e.dimensions,function(t){var n,l=e.getDimensionInfo(t),c=l.coordDim;if(c){var u=l.coordDimIndex;Vy(r,c)[u]=t,l.isExtraCoord||(i.set(c,1),"ordinal"!==(n=l.type)&&"time"!==n&&(a[0]=t),Vy(s,c)[u]=e.getDimensionIndex(l.name)),l.defaultTooltip&&o.push(t)}ef.each(function(e,t){var n=Vy(r,t),i=l.otherDims[t];null!=i&&!1!==i&&(n[i]=l.name)})});var l=[],c={};i.each(function(e,t){var n=r[t];c[t]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=$(l,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=c;var u=r.label;u&&u.length&&(a=u.slice());var h=r.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new Qy(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&ob(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==of&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===tf&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&Zi(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[o]&&null!=l&&(r[o]=na(l,null));var c=s.id;null==i[o]&&null!=c&&(i[o]=na(c,null))}}if(this._shouldMakeIdFromName())for(o=e;o<t;o++)ob(this,o);eb(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(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){sb(e)?j(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=nb(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return tb(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return te(e)?r.getValues(lb(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},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.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){"function"==typeof e&&(n=t,t=e,e=[]);var r=n||this,i=lb(rb(e),this._getStoreDimIndex,this);this._store.each(i,r?J(t,r):t)},e.prototype.filterSelf=function(e,t,n){"function"==typeof e&&(n=t,t=e,e=[]);var r=n||this,i=lb(rb(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?J(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=[];return W(Z(e),function(i){var a=t._getStoreDimIndex(i);n[a]=e[i],r.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){"function"==typeof e&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=lb(rb(e),this._getStoreDimIndex,this),o=ab(this);return o._store=this._store.map(a,i?J(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this;var a=lb(rb(e),this._getStoreDimIndex,this);this._store.modify(a,i?J(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=ab(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.lttbDownSample=function(e,t){var n=ab(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Oh(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new zy(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return tb(e,t)},function(e){return tb(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||{},sb(e)?j(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():sb(i)&&(i=j({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,sb(t)?j(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){if(sb(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?j(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;nl(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){W(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:lb(this.dimensions,this._getDimInfo,this),this.hostModel)),ib(t,this),t._store=this._store,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=(eb=function(e){var t=e._invertedIndicesMap;W(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new cb(a.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},nb=function(e,t,n){return na(e._getCategory(t,n),null)},tb=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=nb(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},rb=function(e){return te(e)||(e=null!=e?[e]:[]),e},ab=function(t){var n=new e(t._schema?t._schema:lb(t.dimensions,t._getDimInfo,t),t.hostModel);return ib(n,t),n},ib=function(e,t){W(ub.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,W(hb,function(n){e[n]=R(t[n])}),e._calculationInfo=j({},t._calculationInfo)},void(ob=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=nb(e,i,t)),null==s&&null!=a&&(r[t]=s=nb(e,a,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 fb(e,t){return pb(e,t).dimensions}function pb(e,t){up(e)||(e=dp(e));var n=(t=t||{}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Se(),a=[],o=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return W(t,function(e){var t;oe(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Jy(o),l=r===e.dimensionsDefine,c=l?Zy(e):Xy(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var h=Se(u),d=new eg(o),f=0;f<d.length;f++)d[f]=-1;function p(e){var t=d[e];if(t<0){var n=r[e],i=oe(n)?n:{name:n},o=new qy,s=i.name;null!=s&&null!=c.get(s)&&(o.name=o.displayName=s),null!=i.type&&(o.type=i.type),null!=i.displayName&&(o.displayName=i.displayName);var l=a.length;return d[e]=l,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(f=0;f<o;f++)p(f);h.each(function(e,t){var n=$i(e).slice();if(1===n.length&&!re(n[0])&&n[0]<0)h.set(t,!1);else{var r=h.set(t,[]);W(n,function(e,n){var i=re(e)?c.get(e):e;null!=i&&i<o&&(r[n]=i,A(p(i),t,n))})}});var g=0;function A(e,t,n){null!=ef.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}W(n,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=j({},i)).ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(t);if(!1!==s){if(!(s=$i(s)).length)for(var c=0;c<(n&&n.length||1);c++){for(;g<o&&null!=p(g).coordDim;)g++;g<o&&s.push(g++)}W(s,function(e,a){var o=p(e);if(l&&null!=i.type&&(o.type=i.type),A(H(o,i),t,a),null==o.name&&n){var s=n[a];!oe(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&H(o.otherDims,r)})}});var m=t.generateCoord,v=t.generateCoordCount,y=null!=v;v=m?v||1:0;var b=m||"value";function _(e){null==e.name&&(e.name=e.coordDim)}if(s)W(a,function(e){_(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var w=0;w<o;w++){var x=p(w);null==x.coordDim&&(x.coordDim=gb(b,i,y),x.coordDimIndex=0,(!m||v<=0)&&(x.isExtraCoord=!0),v--),_(x),null!=x.type||gf(e,w)!==uf.Must&&(!x.isExtraCoord||null==x.otherDims.itemName&&null==x.otherDims.seriesName)||(x.type="ordinal")}return function(e){for(var t=Se(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}(a),new Ky({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function gb(e,t,n){var r=t.data;if(n||r.hasOwnProperty(e)){for(var i=0;r.hasOwnProperty(e+i);)i++;e+=i}return t.set(e,!0),e}var Ab=function(){return function(e){this.coordSysDims=[],this.axisMap=Se(),this.categoryAxisMap=Se(),this.coordSysName=e}}();var mb={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",ua).models[0],a=e.getReferringComponents("yAxis",ua).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),vb(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),vb(a)&&(r.set("y",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",ua).models[0];t.coordSysDims=["single"],n.set("single",i),vb(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",ua).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),vb(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),vb(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();W(a.parallelAxisIndex,function(e,a){var s=i.getComponent("parallelAxis",e),l=o[a];n.set(l,s),vb(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=a))})}};function vb(e){return"category"===e.get("type")}function yb(e,t,n){var r,i,a,o=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!Yy(e.schema)}(t)?(i=t.schema,r=i.dimensions,a=t.store):r=t;var l,c,u,h,d=!(!e||!e.get("stack"));if(W(r,function(e,t){re(e)&&(r[t]=e={name:e}),d&&!e.isExtraCoord&&(o||l||!e.ordinalMeta||(l=e),c||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(c=e))}),!c||o||l||(o=!0),c){u="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var f=c.coordDim,p=c.type,g=0;W(r,function(e){e.coordDim===f&&g++});var A={name:u,coordDim:f,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(a&&(A.storeDimIndex=a.ensureCalculationDimension(h,p),m.storeDimIndex=a.ensureCalculationDimension(u,p)),i.appendCalculationDimension(A),i.appendCalculationDimension(m)):(r.push(A),r.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:o,stackedOverDimension:h,stackResultDimension:u}}function bb(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function _b(e,t){return bb(e,t)?e.getCalculationInfo("stackResultDimension"):t}var wb=function(e,t,n){n=n||{};var r,i=t.getSourceManager(),a=!1;e?(a=!0,r=dp(e)):a=(r=i.getSource()).sourceFormat===tf;var o=function(e){var t=e.get("coordinateSystem"),n=new Ab(t),r=mb[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,r=e.get("coordinateSystem"),i=Ff.get(r);return t&&t.coordSysDims&&(n=$(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=Gy(i)}return n})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(t,o),l=n.useEncodeDefaulter,c=ne(l)?l:l?ee(df,s,t):null,u=pb(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!a}),h=function(e,t,n){var r,i;return n&&W(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(null==r&&(r=a),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)}),i||null==r||(e[r].otherDims.itemName=0),r}(u.dimensions,n.createInvertedIndices,o),d=a?null:i.getSharedDataStore(u),f=yb(t,{schema:u,store:d}),p=new db(u,t);p.setCalculationInfo(f);var g=null!=h&&function(e){if(e.sourceFormat===tf){var t=function(e){for(var t=0;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return null!=t&&!te(Xi(t))}}(r)?function(e,t,n,r){return r===h?n:this.defaultDimValueGetter(e,t,n,r)}:null;return p.hasItemOption=!1,p.initData(a?r:d,null,g),p},xb=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}();Sa(xb);var Cb=xb,Sb=0;function kb(e){return oe(e)&&null!=e.value?e.value:e+""}var Eb=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Sb}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&$(r,kb);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}(),Tb=xi;function Bb(e,t,n,r){var i={},a=e[1]-e[0],o=i.interval=Ri(a/t,!0);null!=n&&o<n&&(o=i.interval=n),null!=r&&o>r&&(o=i.interval=r);var s=i.intervalPrecision=Ib(o);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Mb(e,0,t),Mb(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(i.niceTickExtent=[Tb(Math.ceil(e[0]/o)*o,s),Tb(Math.floor(e[1]/o)*o,s)],e),i}function Ib(e){return Si(e)+2}function Mb(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Pb(e,t){return e>=t[0]&&e<=t[1]}function Db(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Fb(e,t){return e*(t[1]-t[0])+t[0]}var Ob=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new Eb({})),te(r)&&(r=new Eb({categories:$(r,function(e){return oe(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return A(t,e),t.prototype.parse=function(e){return"string"==typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return Pb(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return Db(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(Fb(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}(Cb);Cb.registerClass(Ob);var Lb=Ob,Rb=xi,Nb=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 A(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Pb(e,this._extent)},t.prototype.normalize=function(e){return Db(e,this._extent)},t.prototype.scale=function(e){return Fb(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=Ib(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=Si(e.value)||0:"auto"===n&&(n=this._intervalPrecision),wd(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=Bb(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}(Cb);Cb.registerClass(Nb);var Ub=Nb,jb="__ec_stack_",Hb="undefined"!=typeof Float32Array?Float32Array:Array;function zb(e){return e.get("stack")||jb+e.seriesIndex}function Qb(e){return e.dim+e.index}function Vb(e,t){var n=[];return t.eachSeriesByType(e,function(e){Yb(e)&&!Xb(e)&&n.push(e)}),n}function Gb(e){var t=function(e){var t={};W(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.getDimensionIndex(r.mapDimension(n.dim)),o=r.getStore(),s=0,l=o.count();s<l;++s){var c=o.get(a,s);t[i]?t[i].push(c):t[i]=[c]}});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 W(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=wi(e.get("barWidth"),r),f=wi(e.get("barMaxWidth"),r),p=wi(e.get("barMinWidth")||1,r),g=e.get("barGap"),A=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:g,barCategoryGap:A,axisKey:Qb(i),stackId:zb(e)})}),qb(n)}function qb(e){var t={};W(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 W(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(null==a){var o=Z(r).length;a=Math.max(35-4*o,15)+"%"}var s=wi(a,i),l=wi(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),W(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;W(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;W(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:p,width:e.width},p+=e.width*(1+l)})}),n}function Wb(e,t,n){if(e&&t){var r=e[Qb(t)];return null!=r&&null!=n?r[zb(n)]:r}}function $b(e,t){var n=Vb(e,t),r=Gb(n),i={};W(n,function(e){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=zb(e),s=r[Qb(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=bb(t,d),g=u.isHorizontal(),A=Zb(a,u,p),m=t.getStore(),v=t.getDimensionIndex(d),y=t.getDimensionIndex(f),b=0,_=m.count();b<_;b++){var w=m.get(v,b),x=m.get(y,b),C=w>=0?"p":"n",S=A;p&&(i[o][x]||(i[o][x]={p:A,n:A}),S=i[o][x][C]);var k,E=void 0,T=void 0,B=void 0,I=void 0;if(g)E=S,T=(k=n.dataToPoint([w,x]))[1]+l,B=k[0]-A,I=c,Math.abs(B)<h&&(B=(B<0?-1:1)*h),isNaN(B)||p&&(i[o][x][C]+=B);else E=(k=n.dataToPoint([x,w]))[0]+l,T=S,B=c,I=k[1]-A,Math.abs(I)<h&&(I=(I<=0?-1:1)*h),isNaN(I)||p&&(i[o][x][C]+=I);t.setItemLayout(b,{x:E,y:T,width:B,height:I})}})}var Kb={seriesType:"bar",plan:Ug(),reset:function(e){if(Yb(e)&&Xb(e)){var t=e.getData(),n=e.coordinateSystem,r=n.master.getRect(),i=n.getBaseAxis(),a=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=a.isHorizontal(),c=l?0:1,u=Wb(Gb([e]),i,e).width;return u>.5||(u=.5),{progress:function(e,t){for(var h,d=e.count,f=new Hb(2*d),p=new Hb(2*d),g=new Hb(d),A=[],m=[],v=0,y=0,b=t.getStore();null!=(h=e.next());)m[c]=b.get(o,h),m[1-c]=b.get(s,h),A=n.dataToPoint(m,null),p[v]=l?r.x+r.width:A[0],f[v++]=A[0],p[v]=l?A[1]:r.y+r.height,f[v++]=A[1],g[y++]=h;t.setLayout({largePoints:f,largeDataIndices:g,largeBackgroundPoints:p,barWidth:u,valueAxisStart:Zb(i,a,!1),backgroundStart:l?r.x:r.y,valueAxisHorizontal:l})}}}}};function Yb(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function Xb(e){return e.pipelineContext&&e.pipelineContext.large}function Zb(e,t,n){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}var Jb=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return A(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return id(e.value,Jh[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(rd(this._minLevelUnit))]||Jh.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=j({},Zh);if(e.level>0)for(var s=0;s<ed.length;++s)o[ed[s]]="{primary|"+o[ed[s]]+"}";var l=n?!1===n.inherit?n:H(n,o):o,c=ad(e.value,i);if(l[c])a=l[c];else if(l.inherit){for(s=td.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 id(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=td,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=Fi(t),a=Fi(n),o=function(e){return od(i,e,r)===od(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")}}(rd(e),r[0],r[1],n)){l&&(i=[{value:function(e,t,n){var r=new Date(e);switch(rd(t)){case"year":case"month":r[gd(n)](0);case"day":r[Ad(n)](1);case"hour":r[md(n)](0);case"minute":r[vd(n)](0);case"second":r[yd(n)](0),r[bd(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,g=!1;switch(e){case"year":d=Math.max(1,Math.round(t/Yh/365)),f=sd(n),p=pd(n);break;case"half-year":case"quarter":case"month":d=n_(t),f=ld(n),p=gd(n);break;case"week":case"half-week":case"day":d=t_(t,31),f=cd(n),p=Ad(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=r_(t),f=ud(n),p=md(n);break;case"minute":d=i_(t,!0),f=hd(n),p=vd(n);break;case"second":d=i_(t,!1),f=dd(n),p=yd(n);break;case"millisecond":d=a_(t),f=fd(n),p=bd(n)}o(d,u,h,f,p,g,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=rd(i[d]);if((y=i[d])===rd(y)){s(i[d],l[l.length-1]||[],c);var p=i[d+1]?rd(i[d+1]):null;if(f!==p){if(c.length){h=u,c.sort(function(e,t){return e.value-t.value});for(var g=[],A=0;A<c.length;++A){var m=c[A].value;0!==A&&c[A-1].value===m||(g.push(c[A]),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(g),u>v||e===i[d])break}c=[]}}}var y;0;for(var b=Y($(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=b.length-1,d=0;d<b.length;++d)for(var x=b[d],C=0;C<x.length;++C)_.push({value:x[C].value,level:w-d});_.sort(function(e,t){return e.value-t.value});for(var S=[],d=0;d<_.length;++d)0!==d&&_[d].value===_[d-1].value||S.push(_[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]-=Yh,t[1]+=Yh),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]-Yh}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=e_.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}(e_,this._approxInterval,0,a),a-1);this._interval=e_[o][1],this._minLevelUnit=e_[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return"number"==typeof e?e:+Fi(e)},t.prototype.contain=function(e){return Pb(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Db(this.parse(e),this._extent)},t.prototype.scale=function(e){return Fb(e,this._extent)},t.type="time",t}(Ub),e_=[["second",Wh],["minute",$h],["hour",Kh],["quarter-day",6*Kh],["half-day",12*Kh],["day",1.2*Yh],["half-week",3.5*Yh],["week",7*Yh],["month",31*Yh],["quarter",95*Yh],["half-year",Xh/2],["year",Xh]];function t_(e,t){return(e/=Yh)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function n_(e){return(e/=30*Yh)>6?6:e>3?3:e>2?2:1}function r_(e){return(e/=Kh)>12?12:e>6?6:e>3.5?4:e>2?2:1}function i_(e,t){return(e/=t?$h:Wh)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function a_(e){return Ri(e,!0)}Cb.registerClass(Jb);var o_=Jb,s_=Cb.prototype,l_=Ub.prototype,c_=xi,u_=Math.floor,h_=Math.ceil,d_=Math.pow,f_=Math.log,p_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Ub,t._interval=0,t}return A(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return $(l_.getTicks.call(this,e),function(e){var t=e.value,i=xi(d_(this.base,t));return i=t===n[0]&&this._fixMin?A_(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?A_(i,r[1]):i}},this)},t.prototype.setExtent=function(e,t){var n=this.base;e=f_(e)/f_(n),t=f_(t)/f_(n),l_.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=s_.getExtent.call(this);t[0]=d_(e,t[0]),t[1]=d_(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=A_(t[0],n[0])),this._fixMax&&(t[1]=A_(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=f_(e[0])/f_(t),e[1]=f_(e[1])/f_(t),s_.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=Oi(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[xi(h_(t[0]/r)*r),xi(u_(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},t.prototype.niceExtent=function(e){l_.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 Pb(e=f_(e)/f_(this.base),this._extent)},t.prototype.normalize=function(e){return Db(e=f_(e)/f_(this.base),this._extent)},t.prototype.scale=function(e){return e=Fb(e,this._extent),d_(this.base,e)},t.type="log",t}(Cb),g_=p_.prototype;function A_(e,t){return c_(e,Si(t))}g_.getMinorTicks=l_.getMinorTicks,g_.getLabel=l_.getLabel,Cb.registerClass(p_);var m_=p_,v_=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=w_(e,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=w_(e,i));var a=this._modelMaxRaw=t.get("max",!0);if(ne(a)?this._modelMaxNum=w_(e,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=w_(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=[Yr(s[0],1),Yr(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);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[b_[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=y_[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),y_={min:"_determinedMin",max:"_determinedMax"},b_={min:"_dataMin",max:"_dataMax"};function __(e,t,n){var r=e.rawExtentInfo;return r||(r=new v_(e,t,n),e.rawExtentInfo=r,r)}function w_(e,t){return null==t?null:fe(t)?NaN:e.parse(t)}function x_(e,t){var n=e.type,r=__(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=Vb("bar",o),l=!1;if(W(s,function(e){l=l||e.getBaseAxis()===t.axis}),l){var c=Gb(s),u=function(e,t,n,r){var i=n.axis.getExtent(),a=i[1]-i[0],o=Wb(r,n.axis);if(void 0===o)return{min:e,max:t};var s=1/0;W(o,function(e){s=Math.min(e.offset,s)});var l=-1/0;W(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 C_(e,t){var n=t,r=x_(e,n),i=r.extent,a=n.get("splitNumber");e instanceof m_&&(e.base=n.get("logBase"));var o=e.type;e.setExtent(i[0],i[1]),e.niceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:"interval"===o||"time"===o?n.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?n.get("maxInterval"):null});var s=n.get("interval");null!=s&&e.setInterval&&e.setInterval(s)}function S_(e,t){if(t=t||e.get("type"))switch(t){case"category":return new Lb({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new o_({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Cb.getClass(t)||Ub)}}function k_(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(E_(e,n),r,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function E_(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function T_(e){var t=e.get("interval");return null==t?"auto":t}function B_(e){return"category"===e.type&&0===T_(e.getLabelModel())}function I_(e,t){var n={};return W(e.mapDimensionsAll(t),function(t){n[_b(e,t)]=!0}),Z(n)}var M_=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}();function P_(e){return wb(null,e)}var D_={isDimensionStacked:bb,enableDataStack:yb,getStackedDimension:_b};function F_(e,t){var n=t;t instanceof Oh||(n=new Oh(t));var r=S_(n);return r.setExtent(e[0],e[1]),C_(r,n),r}function O_(e){G(e,M_)}function L_(e,t){return fh(e,null,null,"normal"!==(t=t||{}).state)}var R_=oa();function N_(e){return"category"===e.type?function(e){var t=e.getLabelModel(),n=j_(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=k_(e);return{labels:$(t,function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}})}}(e)}function U_(e,t){return"category"===e.type?function(e,t){var n,r,i=H_(e,"ticks"),a=T_(t),o=z_(i,a);if(o)return o;t.get("show")&&!e.scale.isBlank()||(n=[]);if(ne(a))n=G_(e,a,!0);else if("auto"===a){var s=j_(e,e.getLabelModel());r=s.labelCategoryInterval,n=$(s.labels,function(e){return e.tickValue})}else n=V_(e,r=a,!0);return Q_(i,a,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:$(e.scale.getTicks(),function(e){return e.value})}}function j_(e,t){var n,r=H_(e,"labels"),i=T_(t),a=z_(r,i);return a||Q_(r,i,{labels:ne(i)?G_(e,i):V_(e,n="auto"===i?function(e){var t=R_(e).autoInterval;return null!=t?t:R_(e).autoInterval=e.calculateCategoryInterval()}(e):i),labelCategoryInterval:n})}function H_(e,t){return R_(e)[t]||(R_(e)[t]=[])}function z_(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Q_(e,t,n){return e.push({key:t,value:n}),n}function V_(e,t,n){var r=k_(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=B_(e),d=o.get("showMinLabel")||h,f=o.get("showMaxLabel")||h;d&&c!==a[0]&&g(a[0]);for(var p=c;p<=a[1];p+=l)g(p);function g(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return f&&p-l!==a[1]&&g(a[1]),s}function G_(e,t,n){var r=e.scale,i=k_(e),a=[];return W(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 q_=[0,1];function W_(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var $_=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 Ei(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&&W_(n=n.slice(),r.count()),_i(e,q_,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&W_(n=n.slice(),r.count());var i=_i(e,n,q_,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=$(U_(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;W(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=xi(e),t=xi(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),$(this.scale.getMinorTicks(e),function(e){return $(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(){return N_(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=k_(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,g,A=qr(n({value:l}),t.font,"center","top");p=1.3*A.width,g=1.3*A.height,d=Math.max(d,p,7),f=Math.max(f,g,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=R_(e.model),_=e.getExtent(),w=b.lastAutoInterval,x=b.lastTickCount;return null!=w&&null!=x&&Math.abs(w-y)<=1&&Math.abs(x-o)<=1&&w>y&&b.axisExtent0===_[0]&&b.axisExtent1===_[1]?y=w:(b.lastTickCount=o,b.lastAutoInterval=y,b.axisExtent0=_[0],b.axisExtent1=_[1]),y}(this)},e}();function K_(e){var t=Yd.extend(e);return Yd.registerClass(t),t}function Y_(e){var t=Ng.extend(e);return Ng.registerClass(t),t}function X_(e){var t=Lg.extend(e);return Lg.registerClass(t),t}function Z_(e){var t=$g.extend(e);return $g.registerClass(t),t}var J_=2*Math.PI,ew=os.CMD,tw=["top","right","bottom","left"];function nw(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 rw(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)%J_<1e-4)return l[0]=u,l[1]=h,c-n;if(a){var d=r;r=hs(i),i=hs(d)}else r=hs(r),i=hs(i);r>i&&(i+=J_);var f=Math.atan2(s,o);if(f<0&&(f+=J_),f>=r&&f<=i||f+J_>=r&&f+J_<=i)return l[0]=u,l[1]=h,c-n;var p=n*Math.cos(r)+e,g=n*Math.sin(r)+t,A=n*Math.cos(i)+e,m=n*Math.sin(i)+t,v=(p-o)*(p-o)+(g-s)*(g-s),y=(A-o)*(A-o)+(m-s)*(m-s);return v<y?(l[0]=p,l[1]=g,Math.sqrt(v)):(l[0]=A,l[1]=m,Math.sqrt(y))}function iw(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,g=o[1]=t+f*h;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function aw(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 ow=[];function sw(e,t,n){var r=aw(t.x,t.y,t.width,t.height,e.x,e.y,ow);return n.set(ow[0],ow[1]),r}function lw(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 g=c;switch(p){case ew.M:a=s=u[f++],o=l=u[f++];break;case ew.L:g=iw(a,o,u[f],u[f+1],h,d,ow,!0),a=u[f++],o=u[f++];break;case ew.C:g=vo(a,o,u[f++],u[f++],u[f++],u[f++],u[f],u[f+1],h,d,ow),a=u[f++],o=u[f++];break;case ew.Q:g=Co(a,o,u[f++],u[f++],u[f],u[f+1],h,d,ow),a=u[f++],o=u[f++];break;case ew.A:var A=u[f++],m=u[f++],v=u[f++],y=u[f++],b=u[f++],_=u[f++];f+=1;var w=!!(1-u[f++]);r=Math.cos(b)*v+A,i=Math.sin(b)*y+m,f<=1&&(s=r,l=i),g=rw(A,m,y,b,b+_,w,(h-A)*y/v+A,d,ow),a=Math.cos(b+_)*v+A,o=Math.sin(b+_)*y+m;break;case ew.R:g=aw(s=a=u[f++],l=o=u[f++],u[f++],u[f++],h,d,ow);break;case ew.Z:g=iw(a,o,s,l,h,d,ow,!0),a=s,o=l}g<c&&(c=g,n.set(ow[0],ow[1]))}return c}var cw=new Mr,uw=new Mr,hw=new Mr,dw=new Mr,fw=new Mr;function pw(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||tw,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,c=i.anchor,u=e.getComputedTransform(),h=u&&mr([],u),d=t.get("length2")||0;c&&hw.copy(c);for(var f=0;f<o.length;f++){nw(o[f],0,s,cw,dw),Mr.scaleAndAdd(uw,cw,dw,d),uw.transform(h);var p=e.getBoundingRect(),g=c?c.distance(uw):e instanceof Es?lw(uw,e.path,hw):sw(uw,p,hw);g<l&&(l=g,uw.transform(u),hw.transform(u),hw.toArray(a[0]),uw.toArray(a[1]),cw.toArray(a[2]))}mw(a,t.get("minTurnAngle")),n.setShape({points:a})}}}var gw=[],Aw=new Mr;function mw(e,t){if(t<=180&&t>0){t=t/180*Math.PI,cw.fromArray(e[0]),uw.fromArray(e[1]),hw.fromArray(e[2]),Mr.sub(dw,cw,uw),Mr.sub(fw,hw,uw);var n=dw.len(),r=fw.len();if(!(n<.001||r<.001)){dw.scale(1/n),fw.scale(1/r);var i=dw.dot(fw);if(Math.cos(t)<i){var a=iw(uw.x,uw.y,hw.x,hw.y,cw.x,cw.y,gw,!1);Aw.fromArray(gw),Aw.scaleAndAdd(fw,a/Math.tan(Math.PI-t));var o=hw.x!==uw.x?(Aw.x-uw.x)/(hw.x-uw.x):(Aw.y-uw.y)/(hw.y-uw.y);if(isNaN(o))return;o<0?Mr.copy(Aw,uw):o>1&&Mr.copy(Aw,hw),Aw.toArray(e[1])}}}}function vw(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,cw.fromArray(e[0]),uw.fromArray(e[1]),hw.fromArray(e[2]),Mr.sub(dw,uw,cw),Mr.sub(fw,hw,uw);var r=dw.len(),i=fw.len();if(!(r<.001||i<.001))if(dw.scale(1/r),fw.scale(1/i),dw.dot(t)<Math.cos(n)){var a=iw(uw.x,uw.y,hw.x,hw.y,cw.x,cw.y,gw,!1);Aw.fromArray(gw);var o=Math.PI/2,s=o+Math.acos(fw.dot(t))-n;if(s>=o)Mr.copy(Aw,hw);else{Aw.scaleAndAdd(fw,a/Math.tan(Math.PI/2-s));var l=hw.x!==uw.x?(Aw.x-uw.x)/(hw.x-uw.x):(Aw.y-uw.y)/(hw.y-uw.y);if(isNaN(l))return;l<0?Mr.copy(Aw,uw):l>1&&Mr.copy(Aw,hw)}Aw.toArray(e[1])}}}function yw(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 bw(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=Je([],r[1],r[0],o/i),l=Je([],r[1],r[2],o/a),c=Je([],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 _w(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<ul.length;l++){var c=ul[l],u=t[c],h="normal"===c;if(u){var d=u.get("show");if((h?s:ge(i.states[c]&&i.states[c].ignore,s))||!ge(d,o)){var f=h?r:r&&r.states.normal;f&&(f.ignore=!0);continue}r||(r=new eu,e.setTextGuideLine(r),h||!s&&o||yw(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),yw(r,!1,c,u)}}if(r){H(r.style,n),r.style.fill=null;var p=a.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=p||!1,r.buildPath=bw}}else r&&e.removeTextGuideLine()}function ww(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<cl.length;r++){var i=cl[r];n[i]=e.getModel([i,t])}return n}function xw(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 _u(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}function Cw(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 g=Math.max(-s,0);u.push(g),h+=g,l=p[t]+p[n]}h>0&&a&&w(-h/o,0,o);var A,m,v=e[0],y=e[o-1];return b(),A<0&&x(-A,.8),m<0&&x(m,.8),b(),_(A,m,1),_(m,A,-1),b(),A<0&&C(-A),m<0&&C(m),c}function b(){A=v.rect[t]-r,m=i-y.rect[t]-y.rect[n]}function _(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){w(r*n,0,o);var i=r+e;i<0&&x(-i*n,1)}else x(-e*n,1)}}function w(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 x(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++){w(a[l]*h,0,l+1)}else for(l=o-1;l>0;l--){w(-(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?w(n,0,r+1):w(-n,o-r-1,o),(e-=n)<=0)return}}function Sw(e,t,n,r){return Cw(e,"y","height",t,n,r)}function kw(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new jr(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 _u(p.localRect,p.transform)),h||(h=new _u(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))}}function Ew(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 Tw=["align","verticalAlign","width","height","fontSize"],Bw=new Ir,Iw=oa(),Mw=oa();function Pw(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var Dw=["x","y","rotation"],Fw=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();jr.applyTransform(l,l,s),s?Bw.setLocalTransform(s):(Bw.x=Bw.y=Bw.rotation=Bw.originX=Bw.originY=0,Bw.scaleX=Bw.scaleY=1);var c,u=r.__hostTarget;if(u){c=u.getBoundingRect().plain();var h=u.getComputedTransform();jr.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:Bw.x,y:Bw.y,scaleX:Bw.scaleX,scaleY:Bw.scaleY,rotation:Bw.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)||Z(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=tl(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(){pw(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(Ew(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=wi(c.x,t),o.setStyle("x",0),h=!0):(o.x=l.x,o.setStyle("x",l.style.x)),null!=c.y?(o.y=wi(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)}Iw(o).needsUpdateLabelLine=h,o.rotation=null!=c.rotate?c.rotate*u:l.rotation,o.scaleX=l.scaleX,o.scaleY=l.scaleY;for(var f=0;f<Tw.length;f++){var p=Tw[f];o.setStyle(p,null!=c[p]?c[p]:l.style[p])}if(c.draggable){if(o.draggable=!0,o.cursor="move",s){var g=a.seriesModel;if(null!=a.dataIndex)g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex);o.on("drag",r(s,g.getModel("labelLine")))}}else o.off("drag"),o.cursor=l.cursor}},e.prototype.layout=function(e){var t,n=e.getWidth(),r=e.getHeight(),i=xw(this._labelList),a=Y(i,function(e){return"shiftX"===e.layoutOption.moveOverlap}),o=Y(i,function(e){return"shiftY"===e.layoutOption.moveOverlap});Cw(a,"x","width",0,n,t),Sw(o,0,r),kw(Y(i,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;W(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=Iw(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=tl(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");_w(e,ww(o),s),pw(e,u)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Bu(e))){var i=(f=Iw(n)).oldLayout,a=tl(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&&(Q(c,"select")>=0&&n.attr(f.oldLayoutSelect),Q(c,"emphasis")>=0&&n.attr(f.oldLayoutEmphasis)),Eu(n,s,t,o)}else if(n.attr(s),!bh(n).valueAnimation){var u=ge(n.style.opacity,1);n.style.opacity=0,Tu(n,{style:{opacity:u}},t,o)}if(f.oldLayout=s,n.states.select){var h=f.oldLayoutSelect={};Pw(h,s,Dw),Pw(h,n.states.select,Dw)}if(n.states.emphasis){var d=f.oldLayoutEmphasis={};Pw(d,s,Dw),Pw(d,n.states.emphasis,Dw)}wh(n,o,l,t,t)}if(r&&!r.ignore&&!r.invisible){i=(f=Mw(r)).oldLayout;var f,p={points:r.shape.points};i?(r.attr({shape:i}),Eu(r,{shape:p},t)):(r.setShape(p),r.style.strokePercent=0,Tu(r,{style:{strokePercent:1}},t)),f.oldLayout=p}},e}(),Ow=oa();function Lw(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var r=Ow(t).labelManager;r||(r=Ow(t).labelManager=new Fw),r.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var r=Ow(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}function Rw(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Nw(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var n=gn(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}function Uw(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 jw(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 Hw(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 zw(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=Uw(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?jw((l={newPos:(p=u).newPos,components:p.components.slice(0)}).components,!1,!0):((l=c).newPos++,jw(l.components,!0,!1)),h=Uw(l,t,e,o,n),l.newPos+1>=r&&h+1>=i)return Hw(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)}Uy(Lw);var Qw="none",Vw=Math.round,Gw=Math.sin,qw=Math.cos,Ww=Math.PI,$w=2*Math.PI,Kw=180/Ww,Yw=1e-4;function Xw(e){return Vw(1e3*e)/1e3}function Zw(e){return Vw(1e4*e)/1e4}function Jw(e){return e<Yw&&e>-Yw}function ex(e,t){t&&tx(e,"transform","matrix("+Xw(t[0])+","+Xw(t[1])+","+Xw(t[2])+","+Xw(t[3])+","+Zw(t[4])+","+Zw(t[5])+")")}function tx(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function nx(e,t,n){var r=null==t.opacity?1:t.opacity;if(n instanceof Fs)tx(e,"opacity",r+"");else{if(function(e){var t=e.fill;return null!=t&&t!==Qw}(t)){var i=Nw(t.fill);tx(e,"fill",i.color),tx(e,"fill-opacity",(null!=t.fillOpacity?t.fillOpacity*i.opacity*r:i.opacity*r)+"")}else tx(e,"fill",Qw);if(function(e){var t=e.stroke;return null!=t&&t!==Qw}(t)){var a=Nw(t.stroke);tx(e,"stroke",a.color);var o=t.lineWidth,s=t.strokeNoScale?n.getLineScale():1;tx(e,"stroke-width",(s?o/s:0)+""),tx(e,"paint-order",t.strokeFirst?"stroke":"fill"),tx(e,"stroke-opacity",(null!=t.strokeOpacity?t.strokeOpacity*a.opacity*r:a.opacity*r)+"");var l=t.lineDash&&o>0&&em(t.lineDash,o);if(l){var c=t.lineDashOffset;s&&1!==s&&(l=$(l,function(e){return e/s}),c&&(c=Vw(c/=s))),tx(e,"stroke-dasharray",l.join(",")),tx(e,"stroke-dashoffset",(c||0)+"")}else tx(e,"stroke-dasharray",Qw);t.lineCap&&tx(e,"stroke-linecap",t.lineCap),t.lineJoin&&tx(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&tx(e,"stroke-miterlimit",t.miterLimit+"")}else tx(e,"stroke",Qw)}}var rx=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-$w)||(u?c>=$w:-c>=$w),f=c>0?c%$w:c%$w+$w,p=!1;p=!!d||!Jw(h)&&f>=Ww==!!u;var g=Zw(e+n*qw(a)),A=Zw(t+r*Gw(a));d&&(c=u?$w-1e-4:1e-4-$w,p=!0,l&&this._d.push("M",g,A));var m=Zw(e+n*qw(a+c)),v=Zw(t+r*Gw(a+c));if(isNaN(g)||isNaN(A)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(Kw)||isNaN(m)||isNaN(v))return"";this._d.push("A",Zw(n),Zw(r),Vw(i*Kw),+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),this._add("Z")},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(Zw(u))}},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),ix={brush:function(e){var t=e.style,n=e.__svgEl;n||(n=Rw("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 rx),o.reset(),r.rebuildPath(o,e.style.strokePercent),o.generateStr(),a.__svgPathVersion=i),tx(n,"d",o.getStr()),nx(n,t,e),ex(n,e.transform)}},ax={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=Rw("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),tx(s,"width",a+""),tx(s,"height",o+""),tx(s,"x",r+""),tx(s,"y",i+""),nx(s,t,e),ex(s,e.transform)}}},ox={left:"start",right:"end",center:"middle",middle:"middle"};var sx={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=Rw("text"),"xml:space","preserve"),e.__svgEl=r);var i=t.font||zr;r.style.font=i,r.textContent=n,nx(r,t,e),ex(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,Kr(i),t.textBaseline),s=ox[t.textAlign]||t.textAlign;tx(r,"dominant-baseline","central"),tx(r,"text-anchor",s),tx(r,"x",a+""),tx(r,"y",o+"")}}},lx=function(){function e(e,t,n,r,i){this.nextId=0,this._domName="_dom",this.createElement=Rw,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 W(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;W(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&&W(this.getDoms(),function(n){e.isDomUnused(n)&&t.removeChild(n)})},e.prototype.getSvgProxy=function(e){return e instanceof Es?ix:e instanceof Fs?ax:e instanceof Is?sx:ix},e.prototype.getSvgElement=function(e){return e.__svgEl},e}();function cx(e){return"linear"===e.type}function ux(e){return"radial"===e.type}function hx(e){return e&&("linear"===e.type||"radial"===e.type)}var dx=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;W(["fill","stroke"],function(r){var i=t.style[r];if(hx(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(cx(e))t=this.createElement("linearGradient");else{if(!ux(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(hx(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(cx(e))t.setAttribute("x1",e.x+""),t.setAttribute("y1",e.y+""),t.setAttribute("x2",e.x2+""),t.setAttribute("y2",e.y2+"");else{if(!ux(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=gn(o)[3],l=vn(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}(lx);function fx(e){return e&&(!!e.image||!!e.svgElement)}var px=new jA,gx=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;W(["fill","stroke"],function(r){var i=t.style[r];if(fx(i)){var a=n.getDefs(!0),o=px.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(fx(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(fx(e)){var t=this;this.doUpdate(e,function(){var n=px.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,o=e.image;if("string"==typeof o?a=o:o instanceof HTMLImageElement?a=o.src:o instanceof HTMLCanvasElement&&(a=o.toDataURL()),a){r.setAttribute("href",a),r.setAttribute("x","0"),r.setAttribute("y","0");var s=Ma(a,r,{dirty:function(){}},function(e){t.setAttribute("width",e.width+""),t.setAttribute("height",e.height+"")});s&&s.width&&s.height&&(t.setAttribute("width",s.width+""),t.setAttribute("height",s.height+"")),t.appendChild(r)}}}var l="translate("+(e.x||0)+", "+(e.y||0)+") rotate("+(e.rotation||0)/Math.PI*180+") scale("+(e.scaleX||1)+", "+(e.scaleY||1)+")";t.setAttribute("patternTransform",l),px.set(e,t)},t.prototype.markUsed=function(t){t.style&&(fx(t.style.fill)&&e.prototype.markDomUsed.call(this,px.get(t.style.fill)),fx(t.style.stroke)&&e.prototype.markDomUsed.call(this,px.get(t.style.stroke)))},t}(lx);function Ax(e){var t=e.__clipPaths;return t&&t.length>0}var mx=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(){e.prototype.markAllUnused.call(this);var t=this._refGroups;for(var n in t)t.hasOwnProperty(n)&&this.markDomUnused(t[n]);this._keyDuplicateCount={}},t.prototype._getClipPathGroup=function(e,t){if(Ax(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 JA(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&&W(t.__clipPaths,function(t){t._dom&&e.prototype.markDomUsed.call(n,t._dom)})},t.prototype.removeUnused=function(){e.prototype.removeUnused.call(this);var t={},n=this._refGroups;for(var r in n)if(n.hasOwnProperty(r)){var i=n[r];this.isDomUnused(i)?i.parentNode&&i.parentNode.removeChild(i):t[r]=i}this._refGroups=t},t}(lx),vx=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.removeAttribute("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=Nw(i.shadowColor);r.setAttribute("dx",l/o+""),r.setAttribute("dy",c/s+""),r.setAttribute("flood-color",h.color),r.setAttribute("flood-opacity",h.opacity+"");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.setAttribute("filter","url(#"+f+")")}},t.prototype.removeUnused=function(){if(this.getDefs(!1)){var e=this._shadowDomPool,t=this._shadowDomMap;for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);this._shadowDomMap={}}},t}(lx);function yx(e){return parseInt(e,10)}function bx(e){return e instanceof Es?ix:e instanceof Fs?ax:e instanceof Is?sx:ix}function _x(e,t){return t&&e&&t.parentNode!==e}function xx(e,t,n){if(_x(e,t)&&n){var r=n.nextSibling;r?e.insertBefore(t,r):e.appendChild(t)}}function Cx(e,t){if(_x(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function Sx(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function kx(e){return e.__svgEl}function Ex(e){return function(){L('In SVG mode painter not support method "'+e+'"')}}var Tx=function(){function e(e,t,n,r){this.type="svg",this.refreshHover=Ex("refreshHover"),this.pathToImage=Ex("pathToImage"),this.configLayer=Ex("configLayer"),this.root=e,this.storage=t,this._opts=n=j({},n||{});var i=Rw("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=Rw("g");i.appendChild(a);var o=Rw("g");i.appendChild(o),this._gradientManager=new dx(r,o),this._patternManager=new gx(r,o),this._clipPathManager=new mx(r,o),this._shadowManager=new vx(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=Rw("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0);var n=Nw(e),r=n.color,i=n.opacity;t.setAttribute("fill",r),t.setAttribute("fill-opacity",i),this._backgroundRoot.appendChild(t),this._backgroundNode=t},e.prototype.createSVGElement=function(e){return Rw(e)},e.prototype.paintOne=function(e){var t=bx(e);return t&&t.brush(e),kx(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=bx(b=e[c]),h=kx(b);b.invisible||(!b.__dirty&&h||(u&&u.brush(b),(h=kx(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,g,A,m=zw(o,l);for(c=0;c<m.length;c++){if((y=m[c]).removed)for(var v=0;v<y.count;v++){h=kx(b=o[y.indices[v]]);Ax(b)?(p=h)&&p.parentNode&&p.parentNode.removeChild(p):Sx(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]],_=r.update(b,g);_!==A&&(d=f,_&&(d?xx(a,_,d):Cx(a,_),f=_,d=null),A=_);h=kx(b);d?xx(A||a,h,d):Cx(A||a,h),d=h||d,A||(f=d),t.markUsed(b),t.addWithoutUpdate(h,b),n.markUsed(b),n.addWithoutUpdate(h,b),r.markUsed(b),g=b}}t.removeUnused(),n.removeUnused(),r.removeUnused(),i.removeUnused(),this._visibleList=l},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]||yx(s[n])||yx(o.style[n]))-(yx(s[i])||0)-(yx(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 Bx(){return!1}function Ix(e,t,n){var r=z(),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 Mx=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||lr,"string"==typeof t?i=Ix(t,n,r):oe(t)&&(t=(i=t).id),a.id=t,a.dom=i;var o=i.style;return o&&(i.onselectstart=Bx,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=Ix("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 jr(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero())if(0===a.length){(t=new jr(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 jr(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 jr(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&Qt||!h)?f.getPrevPaintRect():null)&&c(p);var d=h&&(f.__dirty&Qt||!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 g=u+1;g<a.length;)a[u].intersect(a[g])?(i=!0,a[u].union(a[g]),a.splice(g,1)):g++;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||ZA(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o):he(t)&&(o=sm(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&&W(n,function(e){d(e.x*c,e.y*c,e.width*c,e.height*c)})},t}(at),Px=314159;function Dx(e){return parseInt(e,10)}var Fx=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=j({},n||{}),this.dpr=n.devicePixelRatio||lr,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 Mx(l,this,this.dpr);h.__builtin__=!0,h.initContext(),s[Px]=h,h.zlevel=Px,o.push(Px),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(),bm(r,o,i,a===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(1e5)},e.prototype.paintOne=function(e,t){ym(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;Kt(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(Px).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,l=i[o],h=l.ctx,f=a&&l.createRepaintRects(e,t,d._width,d._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,A=g&&Date.now(),m=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,f);else if(p===l.__startIndex){var v=e[p];v.incremental&&v.notClear&&!n||l.clear(!1,m,f)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var y=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=p;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(u=!0),r._doPaintEl(i,l,a,t,n,s===l.__endIndex-1),g)if(Date.now()-A>15)break}n.prevElClipPaths&&h.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var b=d.dpr,_=0;_<f.length;++_){var w=f[_];h.save(),h.beginPath(),h.rect(w.x*b,w.y*b,w.width*b,w.height*b),h.clip(),y(w),h.restore()}else h.save(),y(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},d=this,f=0;f<i.length;f++)h(f);return b.wxa&&W(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))&&(bm(o,e,i,a),e.setPrevPaintRect(s))}else bm(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Px);var n=this._layers[e];return n||((n=new Mx("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&Qt&&!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,W(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(Q(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(Px).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[Px].dom;var t=new Mx("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];bm(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]||Dx(s[n])||Dx(o.style[n]))-(Dx(s[i])||0)-(Dx(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,g=i.height+d+f;n.width=p*t,n.height=g*t,r.scale(t,t),r.clearRect(0,0,p,g),r.dpr=t;var A={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&&bm(r,e,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var m=new Fs({style:{x:0,y:0,image:n}});return j(e,A),m},e}();var Ox=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return A(t,e),t.prototype.getInitialData=function(e){return wb(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new li,n=KA("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),a="none"===r?"circle":r,o=.8*e.itemHeight,s=KA(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?i:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},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,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Lg);function Lx(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Tp(e,t,n[0]);return null!=i?i+"":null}if(r){for(var a=[],o=0;o<n.length;o++)a.push(Tp(e,t,n[o]));return a.join(" ")}}function Rx(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!te(t))return t+"";for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(" ")}function Nx(e,t){this.parent.drift(e,t)}var Ux=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return A(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var a=KA(e,-1,-1,2,2,null,i);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=Nx,this._symbolType=e,this.add(a)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ol(this.childAt(0))},t.prototype.downplay=function(){Ll(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):Eu(d,h,o,n),Du(d)}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,Tu(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=this.childAt(0),p=e.hostModel;if(r&&(a=r.emphasisItemStyle,o=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,c=r.blurScope,u=r.labelStatesModels,h=r.hoverScale,d=r.cursorStyle),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),A=g.getModel("emphasis");a=A.getModel("itemStyle").getItemStyle(),s=g.getModel(["select","itemStyle"]).getItemStyle(),o=g.getModel(["blur","itemStyle"]).getItemStyle(),l=A.get("focus"),c=A.get("blurScope"),u=dh(g),h=A.getShallow("scale"),d=g.getShallow("cursor")}var m=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var v=XA(e.getItemVisual(t,"symbolOffset"),n);v&&(f.x=v[0],f.y=v[1]),d&&f.attr("cursor",d);var y=e.getItemVisual(t,"style"),b=y.fill;if(f instanceof Fs){var _=f.style;f.useStyle(j({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},y))}else f.__isEmptyBrush?f.useStyle(j({},y)):f.useStyle(y),f.style.decal=null,f.setColor(b,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var w=e.getItemVisual(t,"liftZ"),x=this._z2;null!=w?null==x&&(this._z2=f.z2,f.z2+=w):null!=x&&(f.z2=x,this._z2=null);var C=i&&i.useNameLabel;hh(f,u,{labelFetcher:p,labelDataIndex:t,defaultText:function(t){return C?e.getName(t):Lx(e,t)},inheritColor:b,defaultOpacity:y.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var S=f.ensureState("emphasis");if(S.style=a,f.ensureState("select").style=s,f.ensureState("blur").style=o,h){var k=Math.max(1.1,3/this._sizeY);S.scaleX=this._sizeX*k,S.scaleY=this._sizeY*k}this.setSymbolScale(1),Wl(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=tl(this).dataIndex,a=t&&t.animation;if(this.silent=n.silent=!0,t&&t.fadeLabel){var o=n.getTextContent();o&&Iu(o,{style:{opacity:0}},r,{dataIndex:i,removeOpt:a,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Iu(n,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return YA(e.getItemVisual(t,"symbolSize"))},t}(li);function jx(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 Hx(e){return null==e||oe(e)||(e={isIgnore:e}),e||{}}function zx(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"),hoverScale:n.get("scale"),labelStatesModels:dh(t),cursorStyle:t.get("cursor")}}var Qx=function(){function e(e){this.group=new li,this._SymbolCtor=e||Ux}return e.prototype.updateData=function(e,t){t=Hx(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=zx(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(jx(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(jx(e,f,u,t)){var p=e.getItemVisual(u,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),(d=new a(e,u,s,l)).setPosition(f);else{d.updateData(e,u,s,l);var A={x:f[0],y:f[1]};o?d.attr(A):Eu(d,A,r)}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=zx(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=Hx(n);for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(jx(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 Vx(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=$(e.dimensions,function(e){return t.mapDimension(e)}),d=!1,f=t.getCalculationInfo("stackResultDimension");return bb(t,h[0])&&(d=!0,h[0]=f),bb(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 Gx(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 qx="undefined"!=typeof Float32Array,Wx=qx?Float32Array:Array;function $x(e){return te(e)?qx?new Float32Array(e):e:new Wx(e)}var Kx=Math.min,Yx=Math.max;function Xx(e,t){return isNaN(e)||isNaN(t)}function Zx(e,t,n,r,i,a,o,s,l){for(var c,u,h,d,f,p,g=n,A=0;A<r;A++){var m=t[2*g],v=t[2*g+1];if(g>=i||g<0)break;if(Xx(m,v)){if(l){g+=a;continue}break}if(g===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){g+=a;continue}if(o>0){for(var _=g+a,w=t[2*_],x=t[2*_+1];w===m&&x===v&&A<r;)A++,g+=a,w=t[2*(_+=a)],x=t[2*_+1],y=(m=t[2*g])-c,b=(v=t[2*g+1])-u;var C=A+1;if(l)for(;Xx(w,x)&&C<r;)C++,w=t[2*(_+=a)],x=t[2*_+1];var S=.5,k=0,E=0,T=void 0,B=void 0;if(C>=r||Xx(w,x))f=m,p=v;else{k=w-c,E=x-u;var I=m-c,M=w-m,P=v-u,D=x-v,F=void 0,O=void 0;"x"===s?(F=Math.abs(I),O=Math.abs(M),f=m-F*o,p=v,T=m+F*o,B=v):"y"===s?(F=Math.abs(P),O=Math.abs(D),f=m,p=v-F*o,T=m,B=v+F*o):(F=Math.sqrt(I*I+P*P),f=m-k*o*(1-(S=(O=Math.sqrt(M*M+D*D))/(O+F))),p=v-E*o*(1-S),B=v+E*o*S,T=Kx(T=m+k*o*S,Yx(w,m)),B=Kx(B,Yx(x,v)),T=Yx(T,Kx(w,m)),p=v-(E=(B=Yx(B,Kx(x,v)))-v)*F/O,f=Kx(f=m-(k=T-m)*F/O,Yx(c,m)),p=Kx(p,Yx(u,v)),f=Yx(f,Kx(c,m)),p=Yx(p,Kx(u,v)),T=m+(k=m-f)*O/F,B=v+(E=v-p)*O/F)}e.bezierCurveTo(h,d,f,p,m,v),h=T,d=B}else e.lineTo(m,v)}c=m,u=v,g+=a}return A}var Jx=function(){return function(){this.smooth=0,this.smoothConstraint=!0}}(),eC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return A(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&&Xx(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Xx(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Zx(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=os.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,g=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++],(g=o?(e-n)/(c-n):(e-r)/(u-r))<=1&&g>=0){var A=o?(u-r)*g+r:(c-n)*g+n;return o?[e,A]:[A,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?go(n,c,h,f,e,s):go(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){A=o?fo(r,u,d,p,y):fo(n,c,h,f,y);return o?[e,A]:[A,e]}}n=f,r=p}}},t}(Es),tC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t}(Jx),nC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return A(t,e),t.prototype.getDefaultShape=function(){return new tC},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&&Xx(n[2*a-2],n[2*a-1]);a--);for(;i<a&&Xx(n[2*i],n[2*i+1]);i++);}for(;i<a;){var s=Zx(e,n,i,a,a,1,t.smooth,o,t.connectNulls);Zx(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(Es);function rC(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 zs({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),Tu(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 iC(e,t,n){var r=e.getArea(),i=xi(r.r0,1),a=xi(r.r,1),o=new Qc({shape:{cx:xi(e.cx,1),cy:xi(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,Tu(o,{shape:{endAngle:r.endAngle,r:a}},n));return o}function aC(e,t,n,r,i){return e?"polar"===e.type?iC(e,t,n):"cartesian2d"===e.type?rC(e,t,n,r,i):null:null}function oC(e,t){return e.type===t}function sC(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function lC(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 cC(e,t){var n=lC(e),r=n[0],i=n[1],a=lC(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 uC(e){return"number"==typeof e?e:e?.5:0}function hC(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 dC(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){a=r[o];break}}if(a){var l=t.getAxis(i),c=$(a.stops,function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}}),u=c.length,h=a.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),h.reverse());var d=function(e,t){var n,r,i=[],a=e.length;function o(e,t,n){var r=e.coord;return{coord:n,color:_n((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<a;s++){var l=e[s],c=l.coord;if(c<0)n=l;else{if(c>t){r?i.push(o(r,l,t)):n&&i.push(o(n,l,0),o(n,l,t));break}n&&(i.push(o(n,l,0)),n=null),i.push(l),r=l}}return i}(c,"x"===i?n.getWidth():n.getHeight()),f=d.length;if(!f&&u)return c[0].coord<0?h[1]?h[1]:c[u-1].color:h[0]?h[0]:c[0].color;var p=d[0].coord-10,g=d[f-1].coord+10,A=g-p;if(A<.001)return"transparent";W(d,function(e){e.offset=(e.coord-p)/A}),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var m=new gu(0,0,0,0,d,!0);return m[i]=p,m[i+"2"]=g,m}}}function fC(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*Ux.getSymbolSize(t,o)[e.isHorizontal()?1:0]>r)return!1;return!0}(a,t))){var o=t.mapDimension(a.dim),s={};return W(a.getViewLabels(),function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function pC(e,t){return[e[2*t],e[2*t+1]]}function gC(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<cl.length;t++)if(e.get([cl[t],"endLabel","show"]))return!0;return!1}function AC(e,t,n,r){if(oC(t,"cartesian2d")){var i=r.getModel("endLabel"),a=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=gC(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,c=t.getBaseAxis().isHorizontal(),u=rC(t,n,r,function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var h=u.shape,d=Math.max(h.width,h.height);c?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,u),u}return iC(t,n,r)}var mC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype.init=function(){var e=new li,t=new Qx;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,g=this._lineGroup,A=e.get("animation"),m=!l.isEmpty(),v=l.get("origin"),y=Vx(i,o,v),b=m&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=$x(2*r),a=0;a<r;a++){var o=Gx(n,e,t,a);i[2*a]=o[0],i[2*a+1]=o[1]}return i}(i,o,y),_=e.get("showSymbol"),w=_&&!u&&fC(e,o,i),x=this._data;x&&x.eachItemGraphicEl(function(e,t){e.__temp&&(a.remove(e),x.setItemGraphicEl(t,null))}),_||d.remove(),a.add(g);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=dC(o,i,n)||o.getVisual("style")[o.getVisual("drawType")];if(f&&h.type===i.type&&S===this._step){m&&!p?p=this._newPolygon(c,b):p&&!m&&(g.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(e,i,Od(k));var E=g.getClipPath();if(E)Tu(E,{shape:AC(this,i,!1,e).shape},e);else g.setClipPath(AC(this,i,!0,e));_&&d.updateData(o,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),sC(this._stackedOnPoints,b)&&sC(this._points,c)||(A?this._doUpdateAnimation(o,b,i,n,S,v):(S&&(c=hC(c,i,S),b&&(b=hC(b,i,S))),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:b})))}else _&&d.updateData(o,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),A&&this._initSymbolLabelAnimation(o,i,C),S&&(c=hC(c,i,S),b&&(b=hC(b,i,S))),f=this._newPolyline(c),m&&(p=this._newPolygon(c,b)),u||this._initOrUpdateEndLabel(e,i,Od(k)),g.setClipPath(AC(this,i,!0,e));var T=e.get(["emphasis","focus"]),B=e.get(["emphasis","blurScope"]);(f.useStyle(H(s.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Xl(f,e,"lineStyle"),f.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(f.getState("emphasis").style.lineWidth=+f.style.lineWidth+1);tl(f).seriesIndex=e.seriesIndex,Wl(f,T,B);var I=uC(e.get("smooth")),M=e.get("smoothMonotone"),P=e.get("connectNulls");if(f.setShape({smooth:I,smoothMonotone:M,connectNulls:P}),p){var D=o.getCalculationInfo("stackedOnSeries"),F=0;p.useStyle(H(l.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),D&&(F=uC(D.get("smooth"))),p.setShape({smooth:I,stackedOnSmooth:F,smoothMonotone:M,connectNulls:P}),Xl(p,e,"areaStyle"),tl(p).seriesIndex=e.seriesIndex,Wl(p,T,B)}var O=function(e){r._changePolyState(e)};o.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=O)}),this._polyline.onHoverStateChange=O,this._data=o,this._coordSys=i,this._stackedOnPoints=b,this._points=c,this._step=S,this._valueOrigin=v,e.get("triggerLineEvent")&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){tl(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=aa(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;var u=e.get("zlevel"),h=e.get("z");(s=new Ux(i,a)).x=l,s.y=c,s.setZ(u,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else $g.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=aa(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 $g.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Il(this._polyline,e),t&&Il(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new eC({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 nC({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(n)if(i){var g=n,A=t.pointToCoord(h);r?(d=g.startAngle,f=g.endAngle,p=-A[1]/180*Math.PI):(d=g.r0,f=g.r,p=A[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(),_=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(gC(e)){var i=e.getData(),a=this._polyline,o=this._endLabel;o||((o=this._endLabel=new el({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&&(hh(a,dh(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:s,defaultText:function(e,t,n){return null!=n?Rx(i,n):Lx(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(),g=p.isHorizontal(),A=p.inverse,m=t.shape,v=A?g?m.x:m.y+m.height:g?m.x+m.width:m.y,y=(g?f:0)*(A?-1:1),b=(g?0:-f)*(A?-1:1),_=g?"x":"y",w=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,_),x=w.range,C=x[1]-x[0],S=void 0;if(C>=1){if(C>1&&!h){var k=pC(c,x[0]);s.attr({x:k[0]+y,y:k[1]+b}),i&&(S=u.getRawValue(x[0]))}else{(k=l.getPointOn(v,_))&&s.attr({x:k[0]+y,y:k[1]+b});var E=u.getRawValue(x[0]),T=u.getRawValue(x[1]);i&&(S=ga(n,d,E,T,w.t))}r.lastFrameIndex=x[0]}else{var B=1===e||r.lastFrameIndex>0?x[0]:0;k=pC(c,B);i&&(S=u.getRawValue(B)),s.attr({x:k[0]+y,y:k[1]+b})}i&&bh(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=[],g=[],A=Vx(i,t,o),m=e.getLayout("points")||[],v=t.getLayout("points")||[],y=0;y<l.length;y++){var b=l[y],_=!0,w=void 0,x=void 0;switch(b.cmd){case"=":w=2*b.idx,x=2*b.idx1;var C=m[w],S=m[w+1],k=v[x],E=v[x+1];(isNaN(C)||isNaN(S))&&(C=k,S=E),c.push(C,S),u.push(k,E),h.push(n[w],n[w+1]),d.push(r[x],r[x+1]),g.push(t.getRawIndex(b.idx1));break;case"+":var T=b.idx,B=A.dataDimsForPoint,I=i.dataToPoint([t.get(B[0],T),t.get(B[1],T)]);x=2*T,c.push(I[0],I[1]),u.push(v[x],v[x+1]);var M=Gx(A,i,t,T);h.push(M[0],M[1]),d.push(r[x],r[x+1]),g.push(t.getRawIndex(T));break;case"-":_=!1}_&&(f.push(b),p.push(p.length))}p.sort(function(e,t){return g[e]-g[t]});var P=c.length,D=$x(P),F=$x(P),O=$x(P),L=$x(P),R=[];for(y=0;y<p.length;y++){var N=p[y],U=2*y,j=2*N;D[U]=c[j],D[U+1]=c[j+1],F[U]=u[j],F[U+1]=u[j+1],O[U]=h[j],O[U+1]=h[j+1],L[U]=d[j],L[U+1]=d[j+1],R[y]=f[N]}return{current:D,next:F,stackedOnCurrent:O,stackedOnNext:L,status:R}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),u=c.current,h=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(i&&(u=hC(c.current,n,i),h=hC(c.stackedOnCurrent,n,i),d=hC(c.next,n,i),f=hC(c.stackedOnNext,n,i)),cC(u,d)>3e3||s&&cC(h,f)>3e3)return o.stopAnimation(),o.setShape({points:d}),void(s&&(s.stopAnimation(),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(),Eu(o,p,l),s&&(s.setShape({points:u,stackedOnPoints:h}),s.stopAnimation(),Eu(s,{shape:{stackedOnPoints:f}},l),o.shape.points!==s.shape.points&&(s.shape.points=o.shape.points));for(var g=[],A=c.status,m=0;m<A.length;m++){if("="===A[m].cmd){var v=e.getItemGraphicEl(A[m].idx1);v&&g.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<g.length;t++){var n=g[t].el,r=2*g[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}($g);function vC(e,t){return{seriesType:e,plan:Ug(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=$(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,l=n.getCalculationInfo("stackResultDimension");bb(n,o[0])&&(o[0]=l),bb(n,o[1])&&(o[1]=l);var c=n.getStore(),u=n.getDimensionIndex(o[0]),h=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&$x(n*s),o=[],l=[],d=e.start,f=0;d<e.end;d++){var p=void 0;if(1===s){var g=c.get(u,d);p=r.dataToPoint(g,null,l)}else o[0]=c.get(u,d),o[1]=c.get(h,d),p=r.dataToPoint(o,null,l);a?(i[f++]=p[0],i[f++]=p[1]):t.setItemLayout(d,p.slice())}a&&t.setLayout("points",i)}}}}}}var yC={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]}},bC=function(e){return Math.round(e.length/2)};function _C(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=yC[i]:"function"==typeof i&&(f=i),f&&e.setData(r.downSample(r.mapDimension(l.dim),1/d,f,bC))}}}}}var wC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.getInitialData=function(e,t){return wb(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t&&t.clampData){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}(Lg);Lg.registerClass(wC);var xC=wC,CC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.getInitialData=function(){return wb(null,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=Nh(xC.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}(xC),SC=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}}(),kC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return A(t,e),t.prototype.getDefaultShape=function(){return new SC},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}(Es);function EC(e,t,n){return t*Math.sin(e)*(n?-1:1)}function TC(e,t,n){return t*Math.cos(e)*(n?1:-1)}var BC=[0,0],IC=Math.max,MC=Math.min;var PC=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return A(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(oC(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),g=e.get("showBackground",!0),A=e.getModel("backgroundStyle"),m=A.get("borderRadius")||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,_=r&&"changeAxisOrder"===r.type;function w(e){var t=jC[l.type](o,e),n=function(e,t,n){return new("polar"===e.type?Qc:zs)({shape:WC(t,n,e),silent:!0,z2:0})}(l,i,t);return n.useStyle(A.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",m),v[e]=n,n}o.diff(s).add(function(t){var n=o.getItemModel(t),r=jC[l.type](o,t,n);if(g&&w(t),o.hasValue(t)&&UC[l.type](r)){var s=!1;d&&(s=DC[l.type](f,r));var A=FC[l.type](e,o,t,r,i,u,c.model,!1,p);h&&(A.forceLabelAnimation=!0),zC(A,o,t,n,r,e,i,"polar"===l.type),b?A.attr({shape:r}):h?OC(h,u,A,r,t,i,!1,!1):Tu(A,{shape:r},e,t),o.setItemGraphicEl(t,A),a.add(A),A.ignore=s}}).update(function(t,n){var r=o.getItemModel(t),x=jC[l.type](o,t,r);if(g){var C=void 0;0===y.length?C=w(n):((C=y[n]).useStyle(A.getItemStyle()),"cartesian2d"===l.type&&C.setShape("r",m),v[t]=C);var S=jC[l.type](o,t);Eu(C,{shape:WC(i,S,l)},u,t)}var k=s.getItemGraphicEl(n);if(o.hasValue(t)&&UC[l.type](x)){var E=!1;if(d&&(E=DC[l.type](f,x))&&a.remove(k),k?Du(k):k=FC[l.type](e,o,t,x,i,u,c.model,!!k,p),h&&(k.forceLabelAnimation=!0),_){var T=k.getTextContent();if(T){var B=bh(T);null!=B.prevValue&&(B.prevValue=B.value)}}_||zC(k,o,t,r,x,e,i,"polar"===l.type),b?k.attr({shape:x}):h?OC(h,u,k,x,t,i,!0,_):Eu(k,{shape:x},e,t,null),o.setItemGraphicEl(t,k),k.ignore=E,a.add(k)}else a.remove(k)}).remove(function(t){var n=s.getItemGraphicEl(t);n&&Pu(n,e,t)}).execute();var x=this._backgroundGroup||(this._backgroundGroup=new li);x.removeAll();for(var C=0;C<v.length;++C)x.add(v[C]);a.add(x),this._backgroundEls=v,this._data=o},t.prototype._renderLarge=function(e,t,n){this._clear(),GC(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),GC(t,this.group,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)?aC(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:$(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})},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){Pu(t,e,tl(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}($g),DC={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=IC(t.x,e.x),s=MC(t.x+t.width,i),l=IC(t.y,e.y),c=MC(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=MC(t.r,e.r),a=IC(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}},FC={cartesian2d:function(e,t,n,r,i,a,o,s,l){var c=new zs({shape:j({},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=!i&&l?kC:Qc,u=new c({shape:r,z2:1});u.name="item";var h,d,f=HC(i);if(u.calculateTextPosition=(h=f,d=({isRoundCap:c===kC}||{}).isRoundCap,function(e,t,n){var r=t.position;if(!r||r instanceof Array)return Xr(e,t,n);var i=h(r),a=null!=t.distance?t.distance:5,o=this.shape,s=o.cx,l=o.cy,c=o.r,u=o.r0,f=(c+u)/2,p=o.startAngle,g=o.endAngle,A=(p+g)/2,m=d?Math.abs(c-u)/2:0,v=Math.cos,y=Math.sin,b=s+c*v(p),_=l+c*y(p),w="left",x="top";switch(i){case"startArc":b=s+(u-a)*v(A),_=l+(u-a)*y(A),w="center",x="top";break;case"insideStartArc":b=s+(u+a)*v(A),_=l+(u+a)*y(A),w="center",x="bottom";break;case"startAngle":b=s+f*v(p)+EC(p,a+m,!1),_=l+f*y(p)+TC(p,a+m,!1),w="right",x="middle";break;case"insideStartAngle":b=s+f*v(p)+EC(p,-a+m,!1),_=l+f*y(p)+TC(p,-a+m,!1),w="left",x="middle";break;case"middle":b=s+f*v(A),_=l+f*y(A),w="center",x="middle";break;case"endArc":b=s+(c+a)*v(A),_=l+(c+a)*y(A),w="center",x="bottom";break;case"insideEndArc":b=s+(c-a)*v(A),_=l+(c-a)*y(A),w="center",x="top";break;case"endAngle":b=s+f*v(g)+EC(g,a+m,!0),_=l+f*y(g)+TC(g,a+m,!0),w="left",x="middle";break;case"insideEndAngle":b=s+f*v(g)+EC(g,-a+m,!0),_=l+f*y(g)+TC(g,-a+m,!0),w="right",x="middle";break;default:return Xr(e,t,n)}return(e=e||{}).x=b,e.y=_,e.align=w,e.verticalAlign=x,e}),a){var p=u.shape,g=i?"r":"endAngle",A={};p[g]=i?0:r.startAngle,A[g]=r[g],(s?Eu:Tu)(u,{shape:A},a)}return u}};function OC(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?Eu:Tu)(n,{shape:l},t,i,null);var u=t?e.baseAxis.model:null;(o?Eu:Tu)(n,{shape:c},u,i)}function LC(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var RC=["x","y","width","height"],NC=["cx","cy","r","startAngle","endAngle"],UC={cartesian2d:function(e){return!LC(e,RC)},polar:function(e){return!LC(e,NC)}},jC={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}(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,clockwise:r.clockwise}}};function HC(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function zC(e,t,n,r,i,a,o,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",r.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var c=r.getShallow("cursor");c&&e.attr("cursor",c);var u=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=dh(r);hh(e,h,{labelFetcher:a,labelDataIndex:n,defaultText:Lx(a.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u});var d=e.getTextContent();if(s&&d){var f=r.get(["label","position"]);e.textConfig.inside="middle"===f||null,function(e,t,n,r){if("number"!=typeof r)if(te(t))e.setTextConfig({rotation:0});else{var i,a=e.shape,o=a.clockwise?a.startAngle:a.endAngle,s=a.clockwise?a.endAngle:a.startAngle,l=(o+s)/2,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=o;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void e.setTextConfig({rotation:0})}var u=1.5*Math.PI-i;"middle"===c&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}else e.setTextConfig({rotation:r})}(e,"outside"===f?u:f,HC(o),r.get(["label","rotate"]))}_h(d,h,a.getRawValue(n),function(e){return Rx(t,e)});var p=r.getModel(["emphasis"]);Wl(e,p.get("focus"),p.get("blurScope")),Xl(e,r),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(i)&&(e.style.fill="none",e.style.stroke="none",W(e.states,function(e){e.style&&(e.style.fill=e.style.stroke="none")}))}var QC=function(){return function(){}}(),VC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return A(t,e),t.prototype.getDefaultShape=function(){return new QC},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}(Es);function GC(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 VC({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 VC({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(j({},r)),e.style.fill=null,e.style.stroke=r.fill,e.style.lineWidth=n.getLayout("barWidth")}(d,0,r),tl(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",qC),d.on("mousemove",qC))}var qC=Zg(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];BC[0]=t,BC[1]=n;for(var c=BC[r],u=BC[1-r],h=c-s,d=c+s,f=0,p=a.length/2;f<p;f++){var g=2*f,A=a[g+r],m=a[g+i];if(A>=h&&A<=d&&(l<=m?u>=l&&u<=m:u>=m&&u<=l))return o[f]}return-1}(this,e.offsetX,e.offsetY);tl(this).dataIndex=t>=0?t:null},30,!1);function WC(e,t,n){if(oC(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 $C=PC;var KC=2*Math.PI,YC=Math.PI/180;function XC(e,t){return zd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ZC(e,t){var n=XC(e,t),r=e.get("center"),i=e.get("radius");te(i)||(i=[0,i]),te(r)||(r=[r,r]);var a=wi(n.width,t.getWidth()),o=wi(n.height,t.getHeight()),s=Math.min(a,o);return{cx:wi(r[0],a)+n.x,cy:wi(r[1],o)+n.y,r0:wi(i[0],s/2),r:wi(i[1],s/2)}}function JC(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),r=t.mapDimension("value"),i=XC(e,n),a=ZC(e,n),o=a.cx,s=a.cy,l=a.r,c=a.r0,u=-e.get("startAngle")*YC,h=e.get("minAngle")*YC,d=0;t.each(r,function(e){!isNaN(e)&&d++});var f=t.getSum(r),p=Math.PI/(f||d)*2,g=e.get("clockwise"),A=e.get("roseType"),m=e.get("stillShowZeroSum"),v=t.getDataExtent(r);v[0]=0;var y=KC,b=0,_=u,w=g?1:-1;if(t.setLayout({viewRect:i,r:l}),t.each(r,function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:o,cy:s,r0:c,r:A?NaN:l});else{(r="area"!==A?0===f&&m?p:e*p:KC/d)<h?(r=h,y-=h):b+=e;var i=_+w*r;t.setItemLayout(n,{angle:r,startAngle:_,endAngle:i,clockwise:g,cx:o,cy:s,r0:c,r:A?_i(e,v,[c,l]):l}),_=i}}),y<KC&&d)if(y<=.001){var x=KC/d;t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=x,r.startAngle=u+w*n*x,r.endAngle=u+w*(n+1)*x}})}else p=y/b,_=u,t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===h?h:e*p;r.startAngle=_,r.endAngle=_+w*i,_+=w*i}})})}function eS(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 tS=Math.PI/180;function nS(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}Sw(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 rS(e){return"center"===e.position}function iS(e){var t,n,r=e.getData(),i=[],a=!1,o=(e.get("minShowLabelAngle")||0)*tS,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(),g=r.getItemModel(e),A=g.getModel("label"),m=A.get("position")||g.get(["emphasis","label","position"]),v=A.get("distanceToLabelLine"),y=A.get("alignTo"),b=wi(A.get("edgeDistance"),c),_=A.get("bleedMargin"),w=g.getModel("labelLine"),x=w.get("length");x=wi(x,c);var C=w.get("length2");if(C=wi(C,c),Math.abs(h.endAngle-h.startAngle)<o)return W(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,E,T,B=(h.startAngle+h.endAngle)/2,I=Math.cos(B),M=Math.sin(B);t=h.cx,n=h.cy;var P,D="inside"===m||"inner"===m;if("center"===m)S=h.cx,k=h.cy,T="center";else{var F=(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=F+3*I,k=O+3*M,!D){var L=F+I*(x+l-h.r),R=O+M*(x+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,E=[[F,O],[L,R],[N,R]]}T=D?"center":"edge"===y?I>0?"right":"left":I>0?"left":"right"}var U=A.get("rotate");if("number"==typeof U)P=U*(Math.PI/180);else if("center"===m)P=0;else{var j=I<0?-B+Math.PI:-B;"radial"===U||!0===U?P=j:"tangential"===U&&"outside"!==m&&"outer"!==m?(P=j+Math.PI/2)>Math.PI/2&&(P-=Math.PI):P=0}if(a=!!P,d.x=S,d.y=k,d.rotation=P,d.setStyle({verticalAlign:"middle"}),D){d.setStyle({align:T});var H=d.states.select;H&&(H.x+=d.x,H.y+=d.y)}else{var z=d.getBoundingRect().clone();z.applyTransform(d.getComputedTransform());var Q=(d.style.margin||0)+2.1;z.y-=Q/2,z.height+=Q,i.push({label:d,labelLine:p,position:m,len:x,len2:C,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Mr(I,M),linePoints:E,textAlign:T,labelDistance:v,labelAlignTo:y,edgeDistance:b,bleedMargin:_,rect:z})}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;rS(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(nS(c,t,n,r,1,0,a,0,s,h),nS(l,t,n,r,-1,0,a,0,s,u),d=0;d<e.length;d++){var p=e[d];if(f=p.label,!rS(p)){var g=p.linePoints;if(g){var A="edge"===p.labelAlignTo,m=p.rect.width,v=void 0;(v=A?f.x<t?g[2][0]-p.labelDistance-o-p.edgeDistance:o+i-p.edgeDistance-g[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=g[1][0]-g[2][0];A?f.x<t?g[2][0]=o+p.edgeDistance+m+p.labelDistance:g[2][0]=o+i-p.edgeDistance-m-p.labelDistance:(f.x<t?g[2][0]=f.x+p.labelDistance:g[2][0]=f.x-p.labelDistance,g[1][0]=g[2][0]+y),g[1][1]=g[2][1]=f.y}}}}(i,t,n,l,c,d,u,h);for(var p=0;p<i.length;p++){var g=i[p],A=g.label,m=g.labelLine,v=isNaN(A.x)||isNaN(A.y);if(A){A.setStyle({align:g.textAlign}),v&&(W(A.states,f),A.ignore=!0);var y=A.states.select;y&&(y.x+=A.x,y.y+=A.y)}if(m){var b=g.linePoints;v||!b?(W(m.states,f),m.ignore=!0):(mw(b,g.minTurnAngle),vw(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),A.__hostTarget.textGuideLineConfig={anchor:new Mr(b[0][0],b[0][1])})}}}function aS(e,t,n){var r=e.get("borderRadius");return null==r?n?{innerCornerRadius:0,cornerRadius:0}:null:(te(r)||(r=[r,r]),{innerCornerRadius:Yr(r[0],t.r0),cornerRadius:Yr(r[1],t.r)})}var oS=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new el;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return A(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=j(aS(a.getModel("itemStyle"),s,!0),s);if(isNaN(l.startAngle))this.setShape(l);else{if(r)this.setShape(l),"scale"===i.getShallow("animationType")?(this.shape.r=s.r0,Tu(this,{shape:{r:s.r}},i,t)):null!=n?(this.setShape({startAngle:n,endAngle:n}),Tu(this,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},i,t)):(this.shape.endAngle=s.startAngle,Eu(this,{shape:{endAngle:s.endAngle}},i,t));else Du(this),Eu(this,{shape:l},i,t);this.useStyle(e.getItemVisual(t,"style")),Xl(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)},aS(o.getModel("itemStyle"),s)),j(this.ensureState("select"),{x:h,y:d,shape:aS(a.getModel(["select","itemStyle"]),s)}),j(this.ensureState("blur"),{shape:aS(a.getModel(["blur","itemStyle"]),s)});var p=this.getTextGuideLine(),g=this.getTextContent();p&&j(p.ensureState("select"),{x:h,y:d}),j(g.ensureState("select"),{x:h,y:d}),Wl(this,o.get("focus"),o.get("blurScope"))}},t.prototype._updateLabel=function(e,t,n){var r=t.getItemModel(n),i=r.getModel("labelLine"),a=t.getItemVisual(n,"style"),o=a&&a.fill,s=a&&a.opacity;hh(this,dh(r),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:o,defaultOpacity:s,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var l=this.getTextContent();this.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)this.removeTextGuideLine();else{var u=this.getTextGuideLine();u||(u=new eu,this.setTextGuideLine(u)),_w(this,ww(r),{stroke:o,opacity:Ae(i.get(["lineStyle","opacity"]),s,1)})}},t}(Qc),sS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return A(t,e),t.prototype.init=function(){var e=new li;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)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===a.count()&&e.get("showEmptyCircle")){var u=new Qc({shape:ZC(e,n)});u.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=u,s.add(u)}a.diff(o).add(function(e){var t=new oS(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){Pu(o.getItemGraphicEl(t),e,t)}).execute(),iS(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}($g);function lS(e,t,n){t=te(t)&&{coordDimensions:t}||j({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=pb(r,t).dimensions,a=new db(i,e);return a.initData(r,n),a}var cS=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}(),uS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new cS(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return lS(this,{coordDimensions:["value"],encodeDefaulter:ee(ff,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=Ti(i,t,n.hostModel.get("percentPrecision")),r.$vars.push("percent"),r},t.prototype._defaultLabelLine=function(e){Ki(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,colorBy:"data",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,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Lg);var hS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return A(t,e),t.prototype.getInitialData=function(e,t){return wb(null,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"}},universalTransition:{divideShape:"clone"}},t}(Lg),dS=function(){return function(){}}(),fS=function(e){function t(t){return e.call(this,t)||this}return A(t,e),t.prototype.getDefaultShape=function(){return new dS},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}(Es),pS=function(){function e(){this.group=new li}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e,t){this.group.removeAll();var n=new fS({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 xu({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t,n){var r;this._incremental?(r=new fS,this._incremental.addDisplayable(r,!0)):((r=new fS({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=KA(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=tl(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}(),gS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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=vC("").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 pS:new Qx,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}($g),AS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(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}(Yd),mS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ua).models[0]},t.type="cartesian2dAxis",t}(Yd);G(mS,M_);var vS={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)"]}}},yS=N({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vS),bS=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}}},vS),_S={category:yS,value:bS,time:N({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},bS),log:H({scale:!0,logBase:10},bS)},wS={value:1,category:1,time:1,log:1};function xS(e,t,n,r){W(wS,function(i,a){var o=N(N({},_S[a],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+a,n}return A(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Vd(this),r=n?qd(e):{};N(e,t.getTheme().get(a+"Axis")),N(e,this.getDefaultOption()),e.type=CS(e),n&&Gd(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Eb.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",CS)}function CS(e){return e.type||(e.data?"category":"value")}var SS=["x","y"];function kS(e){return"interval"===e.type||"time"===e.type}var ES=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=SS,t}return A(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(kS(e)&&kS(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=mr([],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,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),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){var n=[];if(this._invTransform)return et(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},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 jr(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 $(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}()),TS=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 A(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}($_);function BS(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 g=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,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 A=t.get(["axisLabel","rotate"]);return a.labelRotate="top"===l?-A:A,a.z2=1,a}function IS(e){return"cartesian2d"===e.get("coordinateSystem")}function MS(e){var t={xAxisModel:null,yAxisModel:null};return W(t,function(n,r){var i=r.replace(/Model$/,""),a=e.getReferringComponents(i,ua).models[0];t[r]=a}),t}function PS(e,t){return e.getCoordSysModel()===t}function DS(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)FS(a[l])&&(i=a[l]);else for(var c in a)if(a.hasOwnProperty(c)&&FS(a[c])&&!r[u(a[c])]){i=a[c];break}i&&(r[u(i)]=!0)}function u(e){return e.dim+"_"+e.index}}function FS(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 OS=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=SS,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),W(n.x,function(e){C_(e.scale,e.model)}),W(n.y,function(e){C_(e.scale,e.model)});var r={};W(n.x,function(e){DS(n,"y",e,r)}),W(n.y,function(e){DS(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=zd(r,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var o=this._axesList;function s(){W(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&&(W(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 Lb?n.count():(r=n.getTicks()).length;var o,s,l,c,u,h,d,f,p=e.getLabelModel(),g=k_(e),A=1;i>40&&(A=Math.ceil(i/40));for(var m=0;m<i;m+=A){var v=g(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 jr(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()),W(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",ua).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",ua).models[0],o=e.gridModel,s=this._coordsList;if(r)Q(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(PS(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 TS(t,S_(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,W(o.x,function(t,n){W(o.y,function(i,a){var o="x"+n+"y"+a,s=new ES(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){W(I_(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}W(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(IS(e)){var r=MS(e),i=r.xAxisModel,a=r.yAxisModel;if(!PS(i,t)||!PS(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 W(this.getCartesians(),function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);Q(t,i)<0&&t.push(i),Q(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(IS(e)){var t=MS(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=SS,e}(),LS=Math.PI,RS=function(){function e(e,t){this.group=new li,this.opt=t,this.axisModel=e,H(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new li({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!NS[e]},e.prototype.add=function(e){NS[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=Mi(t-e);return Pi(a)?(i=n>0?"top":"bottom",r="center"):Pi(a-LS)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=a>0&&a<LS?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}(),NS={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=j({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new iu({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"]);if(null!=h){var d=t.get(["axisLine","symbolSize"]);"string"==typeof h&&(h=[h,h]),"string"!=typeof d&&"number"!=typeof d||(d=[d,d]);var f=XA(t.get(["axisLine","symbolOffset"])||0,d),p=d[0],g=d[1];W([{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=KA(h[r],-p/2,-g/2,p,g,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=zS(i.getTicksCoords(),t.transform,l,H(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),a=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)*LS/180,c=RS.innerTextLayout(r.rotation,l,r.labelDirection),u=n.getCategories&&n.getCategories(!0),h=[],d=RS.isLabelSilent(n),f=n.get("triggerEvent");return W(s,function(s,l){var p="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,A=s.rawLabel,m=a;if(u&&u[p]){var v=u[p];oe(v)&&v.textStyle&&(m=new Oh(v.textStyle,a,n.ecModel))}var y=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(p),_=new el({x:b,y:r.labelOffset+r.labelDirection*o,rotation:c.rotation,silent:d,z2:10+(s.level||0),style:fh(m,{text:g,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?A:"value"===i.type?p+"":p,l):y})});if(_.anid="label_"+p,f){var w=RS.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=A,tl(_).eventData=w}t.add(_),_.updateTransform(),h.push(_),e.add(_),_.decomposeTransform()}),h}(n,r,t,e);((function(e,t,n){if(B_(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?(US(a),US(c)):jS(a,o)&&(r?(US(o),US(u)):(US(a),US(c)));!1===i?(US(s),US(h)):jS(l,s)&&(i?(US(l),US(d)):(US(s),US(h)))})(t,a,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=H(s.getLineStyle(),H(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<o.length;u++)for(var h=zS(o[u],t.transform,l,c,"minorticks_"+u),d=0;d<h.length;d++)e.add(h[d])}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"]))&&kw(xw($(a,function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})))},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,HS(s)?e.labelOffset+l*u:0],p=t.get("nameRotate");null!=p&&(p=p*LS/180),HS(s)?a=RS.innerTextLayout(e.rotation,null!=p?p:e.rotation,l):(a=function(e,t,n,r){var i,a,o=Mi(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;Pi(o-LS/2)?(a=l?"bottom":"top",i="center"):Pi(o-1.5*LS)?(a=l?"top":"bottom",i="center"):(a="middle",i=o<1.5*LS&&o>LS/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 g=c.getFont(),A=t.get("nameTruncate",!0)||{},m=A.ellipsis,v=pe(e.nameTruncateMaxWidth,A.maxWidth,o),y=new el({x:f[0],y:f[1],rotation:a.rotation,silent:RS.isLabelSilent(t),style:fh(c,{text:i,font:g,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(sh({el:y,componentModel:t,itemName:i}),y.__fullText=i,y.anid="name",t.get("triggerEvent")){var b=RS.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,tl(y).eventData=b}r.add(y),y.updateTransform(),n.add(y),y.decomposeTransform()}}};function US(e){e&&(e.ignore=!0)}function jS(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=hr([]);return gr(i,i,-e.rotation),n.applyTransform(fr([],i,e.getLocalTransform())),r.applyTransform(fr([],i,t.getLocalTransform())),n.intersect(r)}}function HS(e){return"middle"===e||"center"===e}function zS(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 iu({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 QS=RS;function VS(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=[];W(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=$S(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var c=n.model,u=c.getModel("tooltip",r);if(W(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)&&W(f.baseAxes,ee(p,!d||"cross",h)),d&&W(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||WS(h))){null==s&&(s=h.get("triggerTooltip"));var f=(h=r?function(e,t,n,r,i,a){var o=t.getModel("axisPointer"),s={};W(["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&&H(l,u.textStyle)}}return e.model.getModel("axisPointer",new Oh(s,n,r))}(c,u,i,t,r,s):h).get("snap"),p=$S(c.model),g=s||f||"category"===c.type,A=e.axesInfo[p]={key:p,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:WS(h),seriesModels:[],linkGroup:null};l[p]=A,e.seriesInvolved=e.seriesInvolved||g;var m=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(GS(a[r+"AxisId"],n.id)||GS(a[r+"AxisIndex"],n.componentIndex)||GS(a[r+"AxisName"],n.name))return i}}(a,c);if(null!=m){var v=o[m]||(o[m]={axesInfo:{}});v.axesInfo[p]=A,v.mapper=a[m].mapper,A.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)&&W(e.coordSysAxesInfo[$S(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 GS(e,t){return"all"===e||te(e)&&Q(e,t)>=0||e===t}function qS(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[$S(e)]}function WS(e){return!!e.get(["handle","show"])}function $S(e){return e.type+"||"+e.id}var KS={},YS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&function(e){var t=qS(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=WS(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=qS(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){KS[e]=t},t.getAxisPointerClass=function(e){return e&&KS[e]},t.type="axis",t}(Ng),XS=oa();function ZS(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=XS(e).splitAreaColors,d=Se(),f=0;if(h)for(var p=0;p<c.length;p++){var g=h.get(c[p].tickValue);if(null!=g){f=(g+(u-1)*p)%u;break}}var A=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,_=void 0,w=void 0;i.isHorizontal()?(y=A,b=l.y,_=v-y,w=l.height,A=y+_):(y=l.x,b=A,_=l.width,A=b+(w=v-b));var x=c[p-1].tickValue;null!=x&&d.set(x,f),t.add(new zs({anid:null!=x?"area_"+x:null,shape:{x:y,y:b,width:_,height:w},style:H({fill:s[f]},m),autoBatch:!0,silent:!0})),f=(f+1)%u}XS(e).splitAreaColors=d}}}function JS(e){XS(e).splitAreaColors=null}var ek=["axisLine","axisTickLabel","axisName"],tk=["splitArea","splitLine","minorSplitLine"],nk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return A(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new li,this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),s=BS(o,t),l=new QS(t,j({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));W(ek,l.add,l),this._axisGroup.add(l.getGroup()),W(tk,function(e){t.get([e,"show"])&&rk[e](this,this._axisGroup,t,o)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||eh(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){JS(this)},t.type="cartesianAxis",t}(YS),rk={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(),g=0;g<h.length;g++){var A=i.toGlobalCoord(h[g].coord);c?(d[0]=A,d[1]=l.y,f[0]=A,f[1]=l.y+l.height):(d[0]=l.x,d[1]=A,f[0]=l.x+l.width,f[1]=A);var m=u++%s.length,v=h[g].tickValue;t.add(new iu({anid:null!=v?"line_"+h[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:H({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 iu({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){ZS(e,t,n,r)}},ik=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.type="xAxis",t}(nk),ak=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=ik.type,t}return A(t,e),t.type="yAxis",t}(nk),ok=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return A(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new zs({shape:e.coordinateSystem.getRect(),style:H({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Ng),sk={offset:0};function lk(e){e.registerComponentView(ok),e.registerComponentModel(AS),e.registerCoordinateSystem("cartesian2d",OS),xS(e,"x",mS,sk),xS(e,"y",mS,sk),e.registerComponentView(ik),e.registerComponentView(ak),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function ck(e){e.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();W(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]=uk(i)?i:hk(r)})}),t.each(function(e){var i=X(n[e],function(e){return uk(e)})||hk(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function uk(e){return!isNaN(e[0])&&!isNaN(e[1])}function hk(e){return[e.cx,e.cy]}function dk(e){var t=e.polar;if(t){te(t)||(t=[t]);var n=[];W(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}W(e.series,function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var fk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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=YA(e.getItemVisual(t,"symbolSize")),i=KA(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 $(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new Xc,i=new eu,o={shape:{points:n}};r.shape.points=u(n),i.shape.points=u(n),Tu(r,o,e,t),Tu(i,o,e,t);var s=new li,l=new li;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),Du(s),Du(i),Eu(i,u,e),Eu(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(H(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),Xl(r,n,"lineStyle"),Xl(o,n,"areaStyle");var u=n.getModel("areaStyle"),h=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=h,W(["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(H(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 Fs){var r=e.style;e.useStyle(j({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else e.useStyle(l),e.setColor(c),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=R(f);var i=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(null==i||isNaN(i))&&(i=""),hh(e,dh(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:c,defaultOpacity:l.opacity})}),Wl(e,d.get("focus"),d.get("blurScope"))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}($g),pk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return A(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new cS(J(this.getData,this),J(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return lS(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=_g(this,e);return pg("section",{header:o,sortBlocks:!0,blocks:$(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return pg("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($(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,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Lg),gk=_S.value;function Ak(e,t){return H({show:t},e)}var mk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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=$(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=H({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 g=new Oh(f,null,this.ecModel);return G(g,M_.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g},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"}},gk.axisLine),axisLabel:Ak(gk.axisLabel,!1),axisTick:Ak(gk.axisTick,!1),splitLine:Ak(gk.splitLine,!0),splitArea:Ak(gk.splitArea,!0),indicator:[]},t}(Yd),vk=["axisLine","axisTickLabel","axisName"],yk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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;W($(t.getIndicatorAxes(),function(e){return new QS(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){W(vk,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=[],g=[];if("circle"===r)for(var A=n[0].getTicksCoords(),m=t.cx,v=t.cy,y=0;y<A.length;y++){if(l)p[E(p,d,y)].push(new Cc({shape:{cx:m,cy:v,r:A[y].coord}}));if(c&&y<A.length-1)g[E(g,f,y)].push(new qc({shape:{cx:m,cy:v,r0:A[y].coord,r:A[y+1].coord}}))}else{var b,_=$(n,function(e,n){var r=e.getTicksCoords();return b=null==b?r.length-1:Math.min(r.length-1,b),$(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[];for(y=0;y<=b;y++){for(var x=[],C=0;C<n.length;C++)x.push(_[C][y]);if(x[0]&&x.push(x[0].slice()),l)p[E(p,d,y)].push(new eu({shape:{points:x}}));if(c&&w)g[E(g,f,y-1)].push(new Xc({shape:{points:x.concat(w)}}));w=x.slice().reverse()}}var S=o.getLineStyle(),k=s.getAreaStyle();W(g,function(e,t){this.group.add(Gu(e,{style:H({stroke:"none",fill:f[t%f.length]},k),silent:!0}))},this),W(p,function(e,t){this.group.add(Gu(e,{style:H({fill:"none",stroke:d[t%d.length]},S),silent:!0}))},this)}function E(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(Ng),bk=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 A(t,e),t}($_),_k=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=$(e.getIndicatorModels(),function(e,t){var n="indicator_"+t,r=new bk(n,new Ub);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=wi(n[0],r),this.cy=wi(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=wi(o[0],a),this.r=wi(o[1],a),W(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;W(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();W(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}W(n,function(e,t){var n=x_(e.scale,e.model).extent;C_(e.scale,e.model);var r=e.model,o=e.scale,s=w_(o,r.get("min",!0)),l=w_(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=xi((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 wk(e){e.registerCoordinateSystem("radar",_k),e.registerComponentModel(mk),e.registerComponentView(yk),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var xk="\0_ec_interaction_mutex";function Ck(e,t){return!!Sk(e)[t]}function Sk(e){return e[xk]||(e[xk]={})}function kk(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(_t(r.event),Ek(e,t,n,r,i))}function Ek(e,t,n,r,i){i.isAvailableBehavior=J(Tk,null,n,r),e.trigger(t,i)}function Tk(e,t,n){var r=n[e];return!e||r&&(!re(r)||t.event[r+"Key"])}Cy({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var Bk=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=J(n._mousedownHandler,n),i=J(n._mousemoveHandler,n),a=J(n._mouseupHandler,n),o=J(n._mousewheelHandler,n),s=J(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=H(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 A(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(!(wt(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&&Tk("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!Ck(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&&_t(e.event),Ek(this,"pan","moveOnMouseMove",e,{dx:a,dy:o,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){wt(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=Tk("zoomOnMouseWheel",e,this._opt),n=Tk("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;kk(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?s:1/s,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r);kk(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){Ck(this._zr,"globalPan")||kk(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(at);function Ik(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function Mk(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 Pk={axisPointer:1,tooltip:1,brush:1};function Dk(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!Pk.hasOwnProperty(r.mainType)&&i&&i.model!==n}var Fk=["rect","circle","line","ellipse","polygon","polyline","path"],Ok=Se(Fk),Lk=Se(Fk.concat(["g"])),Rk=Se(Fk.concat(["g"])),Nk=oa();function Uk(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function jk(e,t,n,r){var i=r.getModel("itemStyle"),a=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=Uk(i),c=Uk(a),u=Uk(s),h=Uk(o),d=e.data;if(d){var f=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=Sm(p,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=c,t.ensureState("select").style=u,t.ensureState("blur").style=h,Pl(t)}function Hk(e,t,n,r,i,a,o){var s=e.data,l=e.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),a)),u=s&&s.getItemLayout(a);if(l||c||u&&u.showLabel){var h=l?n:a,d=void 0;(!s||a>=0)&&(d=i);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;hh(t,dh(r),{labelFetcher:d,labelDataIndex:h,defaultText:n},f);var p=t.getTextContent();if(p&&(Nk(p).ignore=p.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function zk(e,t,n,r,i,a){e.data?e.data.setItemGraphicEl(a,t):tl(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function Qk(e,t,n,r,i){e.data||sh({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function Vk(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=r.getModel("emphasis"),o=a.get("focus");return Wl(t,o,a.get("blurScope")),e.isGeo&&function(e,t,n){var r=tl(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}(t,i,n),o}var Gk=function(){function e(e){var t=new li;this.uid=Rh("ec_map_draw"),this._controller=new Bk(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new li),t.add(this._svgGroup=new li)}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,l=this._regionsGroup,c=this.group,u=s.getTransformInfo(),h=u.raw,d=u.roam;!l.childAt(0)||i?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):Eu(c,d,e);var f=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0,p={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:f,isGeo:a,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(p):"geoSVG"===s.resourceType&&this._buildSVG(p),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Se(),n=Se(),r=this._regionsGroup,i=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,s=function(e){return[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]};r.removeAll(),W(e.geo.regions,function(i){var l=i.name,c=t.get(l),u=n.get(l)||{},h=u.dataIdx,d=u.regionModel;c||(c=t.set(l,new li),r.add(c),h=o?o.indexOfName(l):null,d=e.isGeo?a.getRegionModel(l):o?o.getItemModel(h):null,n.set(l,{dataIdx:h,regionModel:d}));var f=new fu({segmentIgnoreThreshold:1,shape:{paths:[]}});c.add(f),W(i.geometries,function(e){if("polygon"===e.type){for(var t=[],n=0;n<e.exterior.length;++n)t.push(s(e.exterior[n]));f.shape.paths.push(new Xc({segmentIgnoreThreshold:1,shape:{points:t}}));for(n=0;n<(e.interiors?e.interiors.length:0);++n){for(var r=e.interiors[n],i=[],a=0;a<r.length;++a)i.push(s(r[a]));f.shape.paths.push(new Xc({segmentIgnoreThreshold:1,shape:{points:i}}))}}}),jk(e,f,h,d),f instanceof eo&&(f.culling=!0);var p=s(i.getCenter());Hk(e,f,l,d,a,h,p)}),t.each(function(t,r){var i=n.get(r),o=i.dataIdx,s=i.regionModel;zk(e,t,r,s,a,o),Qk(e,t,r,s,a),Vk(e,t,r,s,a)},this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=Se(),i=!1;W(this._svgGraphicRecord.named,function(t){var n=t.name,a=e.mapOrGeoModel,o=e.data,s=t.svgNodeTagLower,l=t.el,c=o?o.indexOfName(n):null,u=a.getRegionModel(n);(null!=Ok.get(s)&&l instanceof eo&&jk(e,l,c,u),l instanceof eo&&(l.culling=!0),l.z2EmphasisLift=0,t.namedFrom)||(null!=Rk.get(s)&&Hk(e,l,n,u,a,c,null),zk(e,l,n,u,a,c),Qk(e,l,n,u,a),null!=Lk.get(s)&&("self"===Vk(e,l,n,u,a)&&(i=!0),(r.get(n)||r.set(n,[])).push(l)))},this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){Pl(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=gv.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=gv.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},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,Ik(a,e.dx,e.dy),n.dispatchAction(j(s(),{dx:e.dx,dy:e.dy}))},this),i.off("zoom").on("zoom",function(e){this._mouseDownFlag=!1,Mk(a,e.scale,e.originX,e.originY),n.dispatchAction(j(s(),{zoom:e.scale,originX:e.originX,originY:e.originY}))},this),i.setPointerChecker(function(t,i,a){return r.containPoint([i,a])&&!Dk(t,n,e)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=Nk(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},e}(),qk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),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 Gk(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 Cc({style:{fill:e.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:hl+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);hh(l,dh(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){Il(l,e)}}i.add(l)}}})},t.type="map",t}($g),Wk=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.getCenter())}},n}return A(t,e),t.prototype.getInitialData=function(e){for(var t=lS(this,{coordDimensions:["value"],encodeDefaulter:ee(ff,this)}),n=Se(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,!0)}return W(gv.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 pg("section",{header:s.join(", "),noHeader:!s.length,blocks:[pg("nameValue",{name:a,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=KA(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,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}(Lg);function $k(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)}),W(t,function(e,t){for(var n,r,i,a=(n=$(e,function(e){return e.getData()}),r=e[0].get("mapValueCalculation"),i={},W(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 Kk(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var i={};W(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.getCenter());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 Yk=et;function Xk(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var Zk=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Ir,n._rawTransformable=new Ir,n.name=t,n}return A(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new jr(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 jr(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._rawTransformable;a.transform=i.calculateTransform(new jr(e,t,n,r));var o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,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(),dr(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],mr(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Ir;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},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?Yk(n,e,r):De(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?Yk([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=Xk(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=Xk(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}(Ir),Jk={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},eE=["lng","lat"],tE=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.dimensions=eE,i.type="geo",i._nameCoordMap=Se(),i.map=n;var a=gv.load(n,r.nameMap,r.nameProperty),o=gv.getGeoResource(n);i.resourceType=o?o.type:null;var s=Jk[o.type];i._regionsMap=a.regionsMap,i._invertLongitute=s.invertLongitute,i.regions=a.regions,i.aspectScale=ge(r.aspectScale,s.aspectScale);var l=a.boundingRect;return i.setBoundingRect(l.x,l.y,l.width,l.height),i}return A(t,e),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 jr(e,t,n,r));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,a&&(o.scaleY=-o.scaleY),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++){var r=t[n];if("geoJSON"===r.type&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if("string"==typeof e&&(e=this.getGeoCoord(e)),e)return Zk.prototype.dataToPoint.call(this,e,t,n)},t.prototype.convertToPixel=function(e,t,n){var r=nE(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=nE(t);return r===this?r.pointToData(n):null},t}(Zk);function nE(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",ua).models[0]||{}).coordinateSystem:null}G(tE,Zk);var rE=tE;function iE(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=[wi(c[0],h),wi(c[1],d)],o=wi(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 g=e.getBoxLayoutParams();g.aspect=f,s=zd(g,{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 aE=new(function(){function e(){this.dimensions=eE}return e.prototype.create=function(e,t){var n=[];e.eachComponent("geo",function(e,r){var i=e.get("map"),a=new rE(i+r,i,{nameMap:e.get("nameMap"),nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale")});a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=iE,a.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)}}),W(r,function(e,r){var i=$(e,function(e){return e.get("nameMap")}),a=new rE(r,r,{nameMap:U(i),nameProperty:e[0].get("nameProperty"),aspectScale:e[0].get("aspectScale")});a.zoomLimit=pe.apply(null,$(e,function(e){return e.get("scaleLimit")})),n.push(a),a.resize=iE,a.resize(e[0],t),W(e,function(e){e.coordinateSystem=a,function(e,t){W(t.get("geoCoord"),function(t,n){e.addGeoCoord(n,t)})}(a,e)})}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=Se(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);return W(gv.load(t,n,r).regions,function(e){var t=e.name;!a.get(t)&&i.push({name:t})}),i},e}()),oE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.init=function(e,t,n){var r=gv.getGeoResource(e.map);if(r&&"geoJSON"===r.type){var i=e.itemStyle=e.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(e,n),Ki(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=aE.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=K(t.regions||[],function(t,r){var i=r.name;return i&&(t.set(i,new Oh(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t},Se()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Oh(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.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"},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}(Yd);function sE(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 lE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return A(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new Gk(n));var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=e.get("silent"),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;RA(e.target,function(e){return null!=(t=tl(e).eventData)},!0),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=tl(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Ng);function cE(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(e,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:e},function(n){n[t](e.name),W(n.coordinateSystem.regions,function(e){r[e.name]=n.isSelected(e.name)||!1});var a=[];W(r,function(e,t){r[t]&&a.push(t)}),i.push({geoIndex:n.componentIndex,name:a})}),{selected:r,allSelected:i,name:e.name}})}e.registerCoordinateSystem("geo",aE),e.registerComponentModel(oE),e.registerComponentView(lE),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=sE(r,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom),"series"===n&&W(t.seriesGroup,function(e){e.setCenter(i.center),e.setZoom(i.zoom)})}})})}function uE(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=pE(s),a=gE(a),s&&a;){i=pE(i),o=gE(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+h-a.hierNode.prelim-c+r(s,a);d>0&&(mE(AE(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&&!pE(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),a&&!gE(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=c-u,n=e)}return n}(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function hE(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function dE(e){return arguments.length?e:vE}function fE(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function pE(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function gE(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function AE(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function mE(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 vE(e,t){return e.parentNode===t.parentNode?1:2}var yE=function(){return function(){this.parentPoint=[],this.childPoints=[]}}(),bE=function(e){function t(t){return e.call(this,t)||this}return A(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new yE},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=wi(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}(Es);function _E(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function wE(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,g=o.getLayout();a?((n=new Ux(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=g.rawX,n.__radialRawY=g.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Eu(n,{x:g.x,y:g.y},i);var A=n.getSymbolPath();if("radial"===i.get("layout")){var m=u.children[0],v=m.getLayout(),y=m.children.length,b=void 0,_=void 0;if(g.x===v.x&&!0===o.isExpand){var w={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(w.y-v.y,w.x-v.x))<0&&(b=2*Math.PI+b),(_=w.x<v.x)&&(b-=Math.PI)}else(b=Math.atan2(g.y-v.y,g.x-v.x))<0&&(b=2*Math.PI+b),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(_=g.x<v.x)&&(b-=Math.PI):(_=g.x>v.x)||(b-=Math.PI);var x=_?"left":"right",C=s.getModel("label"),S=C.get("rotate"),k=S*(Math.PI/180),E=A.getTextContent();E&&(A.setTextConfig({position:C.get("position")||x,rotation:null==S?-b:k,origin:"center"}),E.setStyle("verticalAlign","middle"))}var T=s.get(["emphasis","focus"]),B="ancestor"===T?o.getAncestorsIndices():"descendant"===T?o.getDescendantIndices():null;B&&(tl(n).focus=B),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(),g=r.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new cu({shape:kE(u,h,d,i,i)})),Eu(g,{shape:kE(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 A=t.children,m=[],v=0;v<A.length;v++){var y=A[v].getLayout();m.push([y.x,y.y])}g||(g=r.__edge=new bE({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:f}})),Eu(g,{shape:{parentPoint:[o.x,o.y],childPoints:m}},e)}}else 0;g&&(g.useStyle(H({strokeNoScale:!0,fill:null},p)),Xl(g,l,"lineStyle"),Pl(g),s.add(g))}(i,o,u,n,p,f,g,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===sl||Il(n.__edge,t)}})}function xE(e,t,n,r,i){var a=CE(t.tree.root,e),o=a.source,s=a.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var c=t.getItemGraphicEl(o.dataIndex).__edge,u=l.__edge||(!1===o.isExpand||1===o.children.length?c:void 0),h=r.get("edgeShape"),d=r.get("layout"),f=r.get("orient"),p=r.get(["lineStyle","curveness"]);u&&("curve"===h?Iu(u,{shape:kE(d,f,p,s,s),style:{opacity:0}},r,{cb:function(){n.remove(u)},removeOpt:i}):"polyline"===h&&"orthogonal"===r.get("layout")&&Iu(u,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},r,{cb:function(){n.remove(u)},removeOpt:i}))}}function CE(e,t){for(var n,r=t.parentNode===e?t:t.parentNode||t;null==(n=r.getLayout());)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function SE(e,t,n,r,i){var a=e.tree.getNodeByDataIndex(t),o=CE(e.tree.root,a).sourceLayout,s={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Iu(n,{x:o.x+1,y:o.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,{fadeLabel:!0,animation:s}),a.children.forEach(function(t){xE(t,e,r,i,s)}),xE(a,e,r,i,s)}function kE(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=fE(c,h),p=fE(c,h+(d-h)*n),g=fE(u,d+(h-d)*n),A=fE(u,d);return{x1:f.x||0,y1:f.y||0,x2:A.x||0,y2:A.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.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 EE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new li,n}return A(t,e),t.prototype.init=function(e,t){this._controller=new Bk(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){_E(r,t)&&wE(r,t,null,a,e)}).update(function(t,n){var i=o.getItemGraphicEl(n);_E(r,t)?wE(r,t,i,a,e):i&&SE(o,n,i,a,e)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&SE(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=[];Fo(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 Zk;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)&&!Dk(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){Ik(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){Mk(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}($g),TE=oa();function BE(e,t){if(TE(r=this).mainData===r){var n=j({},TE(this).datas);n[this.dataType]=t,FE(t,n,e)}else OE(t,this.dataType,TE(this).mainData,e);var r;return t}function IE(e,t){return e.struct&&e.struct.update(),t}function ME(e,t){return W(TE(t).datas,function(n,r){n!==t&&OE(n.cloneShallow(),r,t,e)}),t}function PE(e){var t=TE(this).mainData;return null==e||null==t?t:TE(t).datas[e]}function DE(){var e=TE(this).mainData;return null==e?[{data:e}]:$(Z(TE(e).datas),function(t){return{type:t,data:TE(e).datas[t]}})}function FE(e,t,n){TE(e).datas={},W(t,function(t,r){OE(t,r,e,n)})}function OE(e,t,n,r){TE(n).datas[t]=e,TE(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=PE,e.getLinkedDataAll=DE}var LE=function(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,FE(t,n,e),W(n,function(n){W(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,ee(BE,e))})}),t.wrapMethod("cloneShallow",ee(ME,e)),W(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,ee(IE,e))}),ye(n[t.dataType]===t)},RE=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.getStore().get(t.getDimensionIndex(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.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},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 NE=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 RE(na(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=pb(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,l=new db(s,n);return l.initData(a),r&&r(l),LE({mainData:l,struct:i,structAttr:"tree"}),i.update(),i},e}();function UE(e,t,n){if(e&&Q(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 jE(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function HE(e,t){return Q(jE(e),t)>=0}function zE(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 QE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return A(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new Oh(n,this,this.ecModel),i=NE.createTree(t,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=i.getNodeByDataIndex(t);return n&&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 pg("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=zE(r,this),n},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",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Lg);function VE(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 GE(e,t){e.eachSeriesByType("tree",function(e){!function(e,t){var n=function(e,t){return zd(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=dE(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(i=n.width,a=n.height,o=dE());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,uE,o),s.hierNode.modifier=-l.hierNode.prelim,VE(l,hE);var c=l,u=l,h=l;VE(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,g=0,A=0,m=0;if("radial"===r)p=i/(u.getLayout().x+d+f),g=a/(h.depth-1||1),VE(l,function(e){A=(e.getLayout().x+f)*p,m=(e.depth-1)*g;var t=fE(A,m);e.setLayout({x:t.x,y:t.y,rawX:A,rawY:m},!0)});else{var v=e.getOrient();"RL"===v||"LR"===v?(g=a/(u.getLayout().x+d+f),p=i/(h.depth-1||1),VE(l,function(e){m=(e.getLayout().x+f)*g,A="LR"===v?(e.depth-1)*p:i-(e.depth-1)*p,e.setLayout({x:A,y:m},!0)})):"TB"!==v&&"BT"!==v||(p=i/(u.getLayout().x+d+f),g=a/(h.depth-1||1),VE(l,function(e){A=(e.getLayout().x+f)*p,m="TB"===v?(e.depth-1)*g:a-(e.depth-1)*g,e.setLayout({x:A,y:m},!0)}))}}}(e,t)})}function qE(e){e.eachSeriesByType("tree",function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel("itemStyle").getItemStyle();j(t.ensureUniqueItemVisual(e.dataIndex,"style"),n)})})}var WE=function(){},$E=["treemapZoomToNode","treemapRender","treemapMove"];function KE(e){var t={};e.getData().tree.eachNode(function(n){for(var r=n;r&&r.depth>1;)r=r.parentNode;var i=Cf(e.ecModel,r.name||r.dataIndex+"",t);n.setVisual("decal",i)})}var YE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return A(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;W(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 Oh({itemStyle:i},this,t),o=$((r=e.levels=function(e,t){var n,r,i=$i(t.get("color")),a=$i(t.get(["aria","decal","decals"]));if(!i)return;W(e=e||[],function(e){var t=new Oh(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 Oh(e,a,t)},this),s=NE.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=s.getNodeByDataIndex(t),r=n?o[n.depth]:null;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 pg("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.treeAncestors=zE(r,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},j(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(){KE(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}(Lg),XE=5;function ZE(e,t,n,r,i,a){var o=[[i?e:e-XE,t],[e+n,t],[e+n,t+r],[i?e:e-XE,t+r]];return!a&&o.splice(2,0,[e+n+XE,t+r/2]),!i&&o.push([e,t+r/2]),o}function JE(e,t,n){tl(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&zE(n,t)}}var eT=function(){function e(e){this.group=new li,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),Qd(a,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=na(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,g=t.emptyItemWidth,A=e.get(["breadcrumb","height"]),m=(a=t.pos,o=t.box,l=o.width,c=o.height,u=wi(a.left,l),h=wi(a.top,c),d=wi(a.right,l),f=wi(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=Cd(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 _=y[b],w=_.node,x=_.width,C=_.text;v>m.width&&(v-=x-g,x=g,C=null);var S=new Xc({shape:{points:ZE(p,0,x,A,b===y.length-1,0===b)},style:H(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new el({style:{text:C,fill:r.getTextColor(),font:r.getFont()}}),textConfig:{position:"inside"},z2:1e4*hl,onclick:ee(i,w)});S.disableLabelAnimation=!0,this.group.add(S),JE(S,e,w),p+=x+8}},e.prototype.remove=function(){this.group.removeAll()},e}(),tT=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 nT=li,rT=zs,iT="label",aT="upperLabel",oT=10*hl,sT=2*hl,lT=3*hl,cT=ka([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),uT=function(e){var t=cT(e);return t.stroke=t.fill=t.lineWidth=null,t},hT=oa();var dT=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 A(t,e),t.prototype.render=function(e,t,n,r){if(!(Q(t.findComponents({mainType:"series",subType:"treemap",query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=UE(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=e.get("animation"),d=this._doRender(u,e,c);!h||s||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?d.renderFinally():this._doAnimation(u,d,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 nT,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,g=u.borderWidth,A=u.invisible,m=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,_=y&&y.length,w=d.getModel("itemStyle"),x=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),S=d.getModel(["select","itemStyle"]),k=w.get("borderRadius")||0,E=L("nodeGroup",nT);if(!E)return;if(l.add(E),E.x=u.x||0,E.y=u.y||0,E.markRedraw(),hT(E).nodeWidth=f,hT(E).nodeHeight=p,u.isAboveViewRoot)return E;var T=L("background",rT,c,sT);T&&function(t,n,r){var i=tl(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:f,height:p,r:k}),A)D(n);else{n.invisible=!1;var a=o.getVisual("style"),s=a.stroke,l=uT(w);l.fill=s;var c=cT(x);c.fill=x.get("borderColor");var u=cT(C);u.fill=C.get("borderColor");var h=cT(S);if(h.fill=S.get("borderColor"),r){var d=f-2*g;F(n,s,a.opacity,{x:g,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,Pl(n)}t.add(n)}(E,T,_&&u.upperLabelHeight);var B=d.get(["emphasis","focus"]),I=d.get(["emphasis","blurScope"]),M="ancestor"===B?o.getAncestorsIndices():"descendant"===B?o.getDescendantIndices():B;if(_)Jl(E)&&Zl(E,!1),T&&(Zl(T,!0),h.setItemGraphicEl(o.dataIndex,T),$l(T,M,I));else{var P=L("content",rT,c,lT);P&&function(t,n){var r=tl(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(f-2*g,0),a=Math.max(p-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:a,r:k}),A)D(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,c=uT(w);c.fill=l,c.decal=s.decal;var u=cT(x),h=cT(C),d=cT(S);F(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=d,Pl(n)}t.add(n)}(E,P),T.disableMorphing=!0,T&&Jl(T)&&Zl(T,!1),Zl(E,!0),h.setItemGraphicEl(o.dataIndex,E),$l(E,M,I)}return E;function D(e){!e.invisible&&a.push(e)}function F(t,n,r,i){var a=d.getModel(i?aT:iT),s=na(d.get("name"),null),l=a.getShallow("show");hh(t,dh(d,i?aT:iT),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var c=t.getTextContent();if(c){var h=c.style,f=ve(h.padding||0);i&&(t.setTextConfig({layoutRect:i}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-f[1]-f[3],0),n=Math.max((i?i.height:t.shape.height)-f[0]-f[2],0);h.width===e&&h.height===n||c.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",O(h,i,u);var p=c.getState("emphasis");O(p?p.style:null,i,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 nT?(n.oldX=t.x,n.oldY=t.y):n.oldShape=j({},t.shape)}(u,c)):A||((c=new a)instanceof eo&&(c.z2=function(e,t){return e*oT+t}(s,l)),function(e,t){var n=e[m]={},a=o.parentNode,s=t instanceof li;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,W(t,function(e,t){!e.isRemoved()&&s(t,t)})):new zy(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&&W(e,function(e,n){var r=t[n];W(e,function(e){e&&(r.push(e),hT(e).willDelete=!0)})}),t}(s);return this._oldTree=r,this._storage=o,{lastsForAnimation:a,willDeleteEls:u,renderFinally:function(){W(u,function(e){W(e,function(e){e.parent&&e.parent.remove(e)})}),W(l,function(e){e.invisible=!0,e.dirty()})}}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=(ne(i)?0:i)||0,s=(ne(a)?null:a)||"cubicOut",l=new tT;W(t.willDeleteEls,function(e,t){W(e,function(e,n){if(!e.invisible){var i,a=e.parent,c=hT(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)}})}),W(this._storage,function(e,n){W(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof li?null!=i.oldX&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=j({},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(J(function(){this._state="ready",t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||((t=this._controller=new Bk(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",J(this._onPan,this)),t.on("zoom",J(this._onZoom,this)));var n=new jr(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 jr(i.x,i.y,i.width,i.height),o=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];pr(s,s,[-(t-=o.x),-(n-=o.y)]),Ar(s,s,[e.scale,e.scale]),pr(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&&Ld(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 eT(this.group))).render(e,t,n.node,function(t){"animating"!==r._state&&(HE(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}($g),fT=W,pT=oe,gT=-1,AT=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=R(t);this.type=r,this.mappingMethod=n,this._normalizeData=kT[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(mT(i),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,W(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(fT(t,function(e,t){n[e]=t}),!te(r)){var i=[];oe(r)?fT(r,function(e,t){var r=n[t];i[null!=r?r:gT]=e}):i[gT]=r,r=ST(e,i)}for(var a=t.length-1;a>=0;a--)null==r[a]&&(delete n[t[a]],t.pop())}(i):mT(i,!0):(ye("linear"!==n||i.dataExtent),mT(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return J(this._normalizeData,this)},e.listVisualTypes=function(){return Z(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){oe(e)?W(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&&fT(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(!pT(e))return[];var t=[];fT(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(ET(u[1],e,c[1]))return a}else if(c[1]===1/0){if(ET(u[0],c[0],e))return a}else if(ET(u[0],c[0],e)&&ET(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:bT("color"),getColorMapper:function(){var e=this.option;return J("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),_T.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=yn(t,e.parsedVisual,r),i?r:Sn(r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Sn(yn(e,this.option.parsedVisual),"rgba")},category:_T,piecewise:function(e,t){var n=CT.call(this,t);return null==n&&(n=Sn(yn(e,this.option.parsedVisual),"rgba")),n},fixed:wT}},colorHue:vT(function(e,t){return xn(e,t)}),colorSaturation:vT(function(e,t){return xn(e,null,t)}),colorLightness:vT(function(e,t){return xn(e,null,null,t)}),colorAlpha:vT(function(e,t){return Cn(e,t)}),decal:{applyVisual:bT("decal"),_normalizedToVisual:{linear:null,category:_T,piecewise:null,fixed:null}},opacity:{applyVisual:bT("opacity"),_normalizedToVisual:xT([0,1])},liftZ:{applyVisual:bT("liftZ"),_normalizedToVisual:{linear:wT,category:wT,piecewise:wT,fixed:wT}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:yT,category:_T,piecewise:function(e,t){var n=CT.call(this,t);return null==n&&(n=yT.call(this,e)),n},fixed:wT}},symbolSize:{applyVisual:bT("symbolSize"),_normalizedToVisual:xT([0,1])}},e}();function mT(e,t){var n=e.visual,r=[];oe(n)?fT(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]),ST(e,r)}function vT(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:xT([0,1])}}function yT(e){var t=this.option.visual;return t[Math.round(_i(e,[0,1],[0,t.length-1],!0))]||{}}function bT(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function _T(e){var t=this.option.visual;return t[this.option.loop&&e!==gT?e%t.length:e]}function wT(){return this.option.visual[0]}function xT(e){return{linear:function(t){return _i(t,e,this.option.visual,!0)},category:_T,piecewise:function(t,n){var r=CT.call(this,n);return null==r&&(r=_i(t,e,this.option.visual,!0)),r},fixed:wT}}function CT(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[AT.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function ST(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=$(t,function(e){return gn(e)})),t}var kT={linear:function(e){return _i(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=AT.findPieceIndex(e,t,!0);if(null!=n)return _i(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?gT:t},fixed:Be};function ET(e,t,n){return e?t<=n:t<n}var TT=AT,BT="itemStyle",IT=oa(),MT={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(BT);var c=function(e,t,n){var r=j({},t),i=n.designatedVisualItemStyle;return W(["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=PT(c),h=function(e,t){return null!=t?xn(t,null,null,e):null}(d,f));u.stroke=h;var p=t.viewChildren;if(p&&p.length){var g=function(e,t,n,r,i,a){if(!a||!a.length)return;var o=FT(t,"color")||null!=i.color&&"none"!==i.color&&(FT(t,"colorAlpha")||FT(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 TT(h);return IT(d).drColorMappingBy=u,d}(0,a,o,0,c,p);W(p,function(t,n){if(t.depth>=r.length||t===r[t.depth]){var o=function(e,t,n,r,i,a){var o=j({},t);if(i){var s=i.type,l="color"===s&&IT(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,g,i);e(t,o,r,i)}})}else f=PT(c),u.fill=f}(t,{},e.getViewRoot().getAncestors(),e)}};function PT(e){var t=DT(e,"color");if(t){var n=DT(e,"colorAlpha"),r=DT(e,"colorSaturation");return r&&(t=xn(t,null,null,r)),n&&(t=Cn(t,n)),t}}function DT(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function FT(e,t){var n=e.get(t);return te(n)&&n.length?{name:t,range:n}:null}var OT=Math.max,LT=Math.min,RT=pe,NT=W,UT=["itemStyle","borderWidth"],jT=["itemStyle","gapWidth"],HT=["upperLabel","show"],zT=["upperLabel","height"],QT={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),a=n.getHeight(),o=e.option,s=zd(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],c=wi(RT(s.width,l[0]),i),u=wi(RT(s.height,l[1]),a),h=r&&r.type,d=UE(r,["treemapZoomToNode","treemapRootToNode"],e),f="treemapRender"===h||"treemapMove"===h?r.rootRect:null,p=e.getViewRoot(),g=jE(p);if("treemapMove"!==h){var A="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 g=a.getModel(),A=g.get(UT),m=Math.max(A,qT(g));(c+=4*A*A+(3*A+m)*Math.pow(c,.5))>Ii&&(c=Ii),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:A[0],height:A[1],area:A[0]*A[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(UT);var u=l.get(jT)/2;var h=qT(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=OT(a-2*f,0);o=OT(o-f-p,0);var g=a*o;var A=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],NT(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,g,n,r,i);if(!A.length)return;var m={x:f,y:p,width:a,height:o};var v=LT(a,o);var y=1/0;var b=[];b.area=0;for(var _=0,w=A.length;_<w;){var x=A[_];b.push(x),b.area+=x.getLayout().area;var C=VT(b,v,n.squareRatio);C<=y?(_++,y=C):(b.area-=b.pop().getLayout().area,GT(b,v,m,u,!1),v=LT(m.width,m.height),b.length=b.area=0,y=1/0)}b.length&&GT(b,v,m,u,!0);if(!r){var S=l.get("childrenVisibleMin");null!=S&&g<S&&(r=!0)}for(var _=0,w=A.length;_<w;_++)e(A[_],n,r,i+1)}(p,v,!1,0),y=p.getLayout(),NT(g,function(e,t){var n=(g[t+1]||p).getValue();e.setLayout(j({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 jr(n.x-o.x,n.y-o.y,n.width,n.height);NT(t.viewChildren||[],function(t){e(t,c,r,i,a+1)})}(b,new jr(-s.x,-s.y,i,a),g,p,0)}};function VT(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?OT(c*r/l,l/(c*i)):1/0}function GT(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={},g=u?f.getLayout().area/u:0,A=p[l[o]]=OT(u-2*r,0),m=n[s[a]]+n[l[a]]-c,v=h===d-1||m<g?m:g,y=p[l[a]]=OT(v-2*r,0);p[s[o]]=n[s[o]]+LT(r,A/2),p[s[a]]=c+LT(r,y/2),c+=v,f.setLayout(p,!0)}n[s[o]]+=u,n[l[o]]-=u}function qT(e){return e.get(HT)?e.get(zT):0}function WT(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 $T(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");j(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 KT(e){return e instanceof Array||(e=[e,e]),e}function YT(e){e.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),r=KT(e.get("edgeSymbol")),i=KT(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=KT(r.getShallow("symbol",!0)),o=KT(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(j(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 XT=function(e){return e.get("autoCurveness")||null},ZT=function(e,t){var n=XT(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},JT=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join("--\x3e")},eB=function(e){var t=e.split("--\x3e");return[t[0],t[2],t[1]].join("--\x3e")},tB=function(e,t){var n=JT(e.node1,e.node2,t);return t.__edgeMap[n]},nB=function(e,t){return rB(JT(e.node1,e.node2,t),t)+rB(JT(e.node2,e.node1,t),t)},rB=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function iB(e,t,n,r){var i=XT(t),a=te(i);if(!i)return null;var o=tB(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=nB(e,t);ZT(t,c),e.lineStyle=e.lineStyle||{};var u=JT(e.node1,e.node2,t),h=t.__curvenessList,d=a?0:c%2?0:1;if(o.isForward)return h[d+s];var f=eB(u),p=rB(f,t),g=h[s+p+d];return r?a?i&&0===i[0]?(p+d)%2?g:-g:((p%2?0:1)+d)%2?g:-g:(p+d)%2?g:-g:h[s+p+d]}function aB(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")])}),oB(n,e)}}function oB(e,t){e.eachEdge(function(e,n){var r=Ae(e.getModel().get(["lineStyle","curveness"]),-iB(e,t,n,!0),0),i=Fe(e.node1.getLayout()),a=Fe(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 sB(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=[];W(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])}oB(r.graph,e)}else t&&"none"!==t||aB(e)})}function lB(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 cB(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var uB=Math.PI,hB=[];function dB(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&&(fB[t](e,a,i,l,o,s,c),a.eachEdge(function(t,n){var r,i=Ae(t.getModel().get(["lineStyle","curveness"]),iB(t,e,n),0),a=Fe(t.node1.getLayout()),l=Fe(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 fB={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;hB.length=o;var l=lB(e);t.eachNode(function(e){var t=cB(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/r);isNaN(n)&&(n=uB/2),hB[e.dataIndex]=n,s+=2*n});var c=(2*uB-s)/o/2,u=0;t.eachNode(function(e){var t=c+hB[e.dataIndex];u+=t,e.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+a]),u+=t})}};function pB(e){e.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&dB(e,"symbolSize")})}var gB=Re;function AB(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&&dB(e,"value"):aB(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=_i(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}}),g=a.mapArray("value",function(t,n){var i=r.getEdgeByIndex(n),a=_i(t,c,f);isNaN(a)&&(a=(f[0]+f[1])/2);var o=i.getModel(),s=Ae(i.getModel().get(["lineStyle","curveness"]),-iB(i,e,n,!0),0);return{n1:p[i.node1.dataIndex],n2:p[i.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}}),A=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=Pe(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Fe(h.p),h.edges=null}var d,f,p=null==n.friction?.6:n.friction,g=p;return{warmUp:function(){g=.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,(A=o.n2).p,s.p);var u=Ue(t)-o.d,h=A.w/(s.w+A.w);isNaN(h)&&(h=0),We(t,t),!s.fixed&&gB(s.p,s.p,t,h*u*g),!A.fixed&&gB(A.p,A.p,t,-(1-h)*u*g)}}for(a=0;a<n;a++)(y=r[a]).fixed||(Ne(t,l,y.p),gB(y.p,y.p,t,c*g));for(a=0;a<n;a++){s=r[a];for(var p=a+1;p<n;p++){var A;Ne(t,(A=r[p]).p,s.p),0===(u=Ue(t))&&(Oe(t,Math.random()-.5,Math.random()-.5),u=1);var m=(s.rep+A.rep)/u/u;!s.fixed&&gB(s.pp,s.pp,t,m),!A.fixed&&gB(A.pp,A.pp,t,-m)}}var v=[];for(a=0;a<n;a++){var y;(y=r[a]).fixed||(Ne(v,y.p,y.pp),gB(y.p,y.p,v,g),De(y.pp,y.p))}var b=(g*=.992)<.01;f&&f(r,i,b),e&&e(b)}}}(p,g,{rect:A,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 mB(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=[];Fo(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 zd(j(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 Zk;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 vB=iu.prototype,yB=cu.prototype,bB=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}A(t,e)}(bB);function _B(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var wB=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return A(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bB},t.prototype.buildPath=function(e,t){_B(t)?vB.buildPath.call(this,e,t):yB.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return _B(this.shape)?vB.pointAt.call(this,e):yB.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=_B(t)?[t.x2-t.x1,t.y2-t.y1]:yB.tangentAt.call(this,e);return We(n,n)},t}(Es),xB=["fromSymbol","toSymbol"];function CB(e){return"_"+e+"Type"}function SB(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=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=YA(i),c=XA(o||0,l),u=KA(r,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,u.name=e,u}}function kB(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 EB=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return A(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=function(e){var t=new wB({name:"line",subPixelOptimize:!0});return kB(t.shape,e),t}(e.getItemLayout(t));i.shape.percent=0,Tu(i,{shape:{percent:1}},r,t),this.add(i),W(xB,function(n){var r=SB(n,e,t);this.add(r),this[CB(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:{}};kB(o.shape,a),Eu(i,o,r,t),W(xB,function(n){var r=e.getItemVisual(t,n),i=CB(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=SB(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=dh(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,W(xB,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=u.opacity;for(var n=0;n<cl.length;n++){var r=cl[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);hh(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)?xi(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 g=p.get("distance");te(g)||(g=[g,g]),f.__labelDistance=g}this.setTextConfig({position:null,local:!0,inside:!1}),Wl(this)},t.prototype.highlight=function(){Ol(this)},t.prototype.downplay=function(){Ll(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");kB(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(We(c,c),e&&(e.setPosition(s),w(e,0),e.scaleX=e.scaleY=r*o,e.markRedraw()),t&&(t.setPosition(l),w(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,g=o/2,A=a.tangentAt(g),m=[A[1],-A[0]],v=a.pointAt(g);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var y=A[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var b=-Math.atan2(A[1],A[0]);l[0]<s[0]&&(b=Math.PI+b),n.rotation=b}var _=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":_=-p,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":_=p,h="top";break;default:_=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]+_,u=A[0]<0?"right":"left",n.originX=-f*y,n.originY=-_;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=v[0],n.y=v[1]+_,u="center",n.originY=-_;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-f*y+l[0],n.y=l[1]+_,u=A[0]>=0?"right":"left",n.originX=f*y,n.originY=-_}n.scaleX=n.scaleY=r,n.setStyle({verticalAlign:n.__verticalAlign||h,align:n.__align||u})}}}function w(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}(li);function TB(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:dh(t)}}function BB(e){return isNaN(e[0])||isNaN(e[1])}function IB(e){return!BB(e[0])&&!BB(e[1])}var MB=function(){function e(e){this.group=new li,this._LineCtor=e||EB}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=TB(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=TB(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(IB(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(IB(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);IB(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}(),PB=[],DB=[],FB=[],OB=bo,LB=Xe,RB=Math.abs;function NB(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){PB[0]=OB(i[0],a[0],o[0],u),PB[1]=OB(i[1],a[1],o[1],u),(f=RB(LB(PB,t)-l))<s&&(s=f,r=u)}for(var h=0;h<32;h++){var d=r+c;DB[0]=OB(i[0],a[0],o[0],r),DB[1]=OB(i[1],a[1],o[1],r),FB[0]=OB(i[0],a[0],o[0],d),FB[1]=OB(i[1],a[1],o[1],d);var f=LB(DB,t)-l;if(RB(f)<.01)break;var p=LB(FB,t)-l;c/=2,f<0?p>=0?r+=c:r-=c:p>=0?r-=c:r+=c}return r}function UB(e,t){var n=[],r=xo,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=[Fe(l[0]),Fe(l[1])],l[2]&&l.__original.push(Fe(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=cB(e.node1),f=NB(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=cB(e.node2),f=NB(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]),We(o,o),c&&"none"!==c){d=cB(e.node1);Re(a[0],a[0],o,d*t)}if(u&&"none"!==u){d=cB(e.node2);Re(a[1],a[1],o,-d*t)}De(l[0],a[0]),De(l[1],a[1])}})}function jB(e){return"view"===e.type}var HB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.init=function(e,t){var n=new Qx,r=new MB,i=this.group;this._controller=new Bk(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(jB(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):Eu(s,l,e)}UB(e.getGraph(),lB(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"])&&(tl(n).focus=e.getAdjacentDataIndices())}),c.graph.eachEdge(function(e){var t=e.getGraphicEl();"adjacency"===e.getModel().get(["emphasis","focus"])&&(tl(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"),g=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]-g,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");j(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)&&!Dk(t,n,e)}),jB(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){Ik(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){Mk(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(),UB(e.getGraph(),lB(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()})):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=lB(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){UB(e.getGraph(),lB(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}($g);function zB(e){return"_EC_"+e}var QB=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[zB(e)]){var r=new VB(e,t);return r.hostGraph=this,this.nodes.push(r),n[zB(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[zB(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 VB||(e=r[zB(e)]),t instanceof VB||(t=r[zB(t)]),e&&t){var a=e.id+"-"+t.id,o=new GB(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 VB&&(e=e.id),t instanceof VB&&(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 VB||(t=this._nodesMap[zB(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}(),VB=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}(),GB=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 qB(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(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(VB,qB("hostGraph","data")),G(GB,qB("hostGraph","edgeData"));var WB=QB;function $B(e,t,n,r,i){for(var a=new WB(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(na(u.id,null),h+" > "+d)),c++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=wb(e,n);else{var g=Ff.get(p),A=g&&g.dimensions||[];Q(A,"value")<0&&A.concat(["value"]);var m=pb(e,{coordDimensions:A,encodeDefine:n.getEncode()}).dimensions;(f=new db(m,n)).initData(e)}var v=new db(["value"],n);return v.initData(l,s),i&&i(f,v),LE({mainData:f,struct:a,structAttr:"graph",datas:{node:f,edge:v},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var KB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return A(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new cS(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),Ki(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){XT(n=this)&&(n.__curvenessList=[],n.__edgeMap={},ZT(n));var o=$B(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=Oh.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 W(o.edges,function(e){!function(e,t,n,r){if(XT(n)){var i=JT(e,t,n),a=n.__edgeMap,o=a[eB(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),pg("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return Cg({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=$(this.option.categories||[],function(e){return null!=e.value?e:j({value:0},e)}),t=new db(["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}(Lg),YB={type:"graphRoam",event:"graphRoam",update:"none"};var XB=function(){return function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}}(),ZB=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return A(t,e),t.prototype.getDefaultShape=function(){return new XB},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}(Es);function JB(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 eI=2*Math.PI,tI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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:wi(n[0],t.getWidth()),cy:wi(n[1],t.getHeight()),r:wi(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")?kC:Qc,h=c.get("show"),d=c.getModel("lineStyle"),f=d.get("width"),p=(l-s)%eI||l===s?(l-s)%eI:eI,g=s,A=0;h&&A<r.length;A++){var m=new u({shape:{startAngle:g,endAngle:l=s+p*Math.min(Math.max(r[A][0],0),1),cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-f,r:i.r},silent:!0});m.setStyle({fill:r[A][1]}),m.setStyle(d.getLineStyle(["color","width"])),a.add(m),g=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,g=+e.get("min"),A=+e.get("max"),m=e.getModel("splitLine"),v=e.getModel("axisTick"),y=e.getModel("axisLabel"),b=e.get("splitNumber"),_=v.get("splitNumber"),w=wi(m.get("length"),p),x=wi(v.get("length"),p),C=a,S=(o-a)/b,k=S/_,E=m.getModel("lineStyle").getLineStyle(),T=v.getModel("lineStyle").getLineStyle(),B=m.get("distance"),I=0;I<=b;I++){if(c=Math.cos(C),u=Math.sin(C),m.get("show")){var M=new iu({shape:{x1:c*(p-(P=B?B+l:l))+d,y1:u*(p-P)+f,x2:c*(p-w-P)+d,y2:u*(p-w-P)+f},style:E,silent:!0});"auto"===E.stroke&&M.setStyle({stroke:r(I/b)}),h.add(M)}if(y.get("show")){var P=y.get("distance")+B,D=JB(xi(I/b*(A-g)+g),y.get("formatter")),F=r(I/b);h.add(new el({style:fh(y,{text:D,x:c*(p-w-P)+d,y:u*(p-w-P)+f,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:F}),silent:!0}))}if(v.get("show")&&I!==b){P=(P=v.get("distance"))?P+l:l;for(var O=0;O<=_;O++){c=Math.cos(C),u=Math.sin(C);var L=new iu({shape:{x1:c*(p-P)+d,y1:u*(p-P)+f,x2:c*(p-x-P)+d,y2:u*(p-x-P)+f},silent:!0,style:T});"auto"===T.stroke&&L.setStyle({stroke:r((I+O/_)/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"),g=p.get("show"),A=e.getData(),m=A.mapDimension("value"),v=+e.get("min"),y=+e.get("max"),b=[v,y],_=[a,o];function w(t,n){var r,a=A.getItemModel(t).getModel("pointer"),o=wi(a.get("width"),i.r),s=wi(a.get("length"),i.r),l=e.get(["pointer","icon"]),c=a.get("offsetCenter"),u=wi(c[0],i.r),h=wi(c[1],i.r),d=a.get("keepAspect");return(r=l?KA(l,u-o/2,h-s,o,s,null,d):new ZB({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 x(e,t){var n=p.get("roundCap")?kC:Qc,r=p.get("overlap"),o=r?p.get("width"):l/A.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-A.get(m,e)%y),h}(g||f)&&(A.diff(u).add(function(t){if(f){var n=w(t,a);Tu(n,{rotation:-(_i(A.get(m,t),b,_,!0)+Math.PI/2)},e),c.add(n),A.setItemGraphicEl(t,n)}if(g){var r=x(t,a),i=p.get("clip");Tu(r,{shape:{endAngle:_i(A.get(m,t),b,_,i)}},e),c.add(r),nl(e.seriesIndex,A.dataType,t,r),d[t]=r}}).update(function(t,n){if(f){var r=u.getItemGraphicEl(n),i=r?r.rotation:a,o=w(t,i);o.rotation=i,Eu(o,{rotation:-(_i(A.get(m,t),b,_,!0)+Math.PI/2)},e),c.add(o),A.setItemGraphicEl(t,o)}if(g){var s=h[n],l=x(t,s?s.shape.endAngle:a),v=p.get("clip");Eu(l,{shape:{endAngle:_i(A.get(m,t),b,_,v)}},e),c.add(l),nl(e.seriesIndex,A.dataType,t,l),d[t]=l}}).execute(),A.each(function(e){var t=A.getItemModel(e),n=t.getModel("emphasis");if(f){var i=A.getItemGraphicEl(e),a=A.getItemVisual(e,"style"),o=a.fill;if(i instanceof Fs){var s=i.style;i.useStyle(j({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},a))}else i.useStyle(a),"pointer"!==i.type&&i.setColor(o);i.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===i.style.fill&&i.setStyle("fill",r(_i(A.get(m,e),b,[0,1],!0))),i.z2EmphasisLift=0,Xl(i,t),Wl(i,n.get("focus"),n.get("blurScope"))}if(g){var l=d[e];l.useStyle(A.getItemVisual(e,"style")),l.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),l.z2EmphasisLift=0,Xl(l,t),Wl(l,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=KA(i,t.cx-r/2+wi(a[0],t.r),t.cy-r/2+wi(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 li,h=[],d=[],f=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);o.diff(this._data).add(function(e){h[e]=new el({silent:!0}),d[e]=new el({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),g=new li,A=r(_i(a,[l,c],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var v=m.get("offsetCenter"),y=i.cx+wi(v[0],i.r),b=i.cy+wi(v[1],i.r);(T=h[t]).attr({z2:p?0:2,style:fh(m,{x:y,y:b,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:A})}),g.add(T)}var _=n.getModel("detail");if(_.get("show")){var w=_.get("offsetCenter"),x=i.cx+wi(w[0],i.r),C=i.cy+wi(w[1],i.r),S=wi(_.get("width"),i.r),k=wi(_.get("height"),i.r),E=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:A,T=d[t],B=_.get("formatter");T.attr({z2:p?0:2,style:fh(_,{x:x,y:C,text:JB(a,B),width:isNaN(S)?null:S,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:E})}),_h(T,{normal:_},a,function(e){return JB(e,B)}),f&&wh(T,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return JB(o?o.interpolatedValue:a,B)}}),g.add(T)}u.add(g)}),this.group.add(u),this._titleEls=h,this._detailEls=d},t.type="gauge",t}($g),nI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return A(t,e),t.prototype.getInitialData=function(e,t){return lS(this,["value"])},t.type="series.gauge",t.defaultOption={zlevel:0,z:2,colorBy:"data",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,showAbove:!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}(Lg);var rI=["itemStyle","opacity"],iI=function(e){function t(t,n){var r=e.call(this)||this,i=r,a=new eu,o=new el;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return A(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(rI);s=null==s?1:s,n||Du(this),this.useStyle(e.getItemVisual(t,"style")),this.style.lineJoin="round",n?(this.setShape({points:a.points}),this.style.opacity=0,Tu(this,{style:{opacity:s}},r,t)):Eu(this,{style:{opacity:s},shape:{points:a.points}},r,t),Xl(this,i),this._updateLabel(e,t),Wl(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;hh(r,dh(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 Mr(c[0][0],c[0][1]):null},Eu(r,{style:{x:o.x,y:o.y}},i,t),r.attr({rotation:o.rotation,originX:o.x,originY:o.y,z2:10}),_w(this,ww(a),{stroke:l})},t}(Xc),aI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return A(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 iI(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){Pu(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}($g),oI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new cS(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return lS(this,{coordDimensions:["value"],encodeDefaulter:ee(ff,this)})},t.prototype._defaultLabelLine=function(e){Ki(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,colorBy:"data",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}(Lg);function sI(e,t){e.eachSeriesByType("funnel",function(e){var n=e.getData(),r=n.mapDimension("value"),i=e.get("sort"),a=function(e,t){return zd(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?[wi(e.get("minSize"),l),wi(e.get("maxSize"),l)]:[wi(e.get("minSize"),s),wi(e.get("maxSize"),s)],f=n.getDataExtent(r),p=e.get("min"),g=e.get("max");null==p&&(p=Math.min(f[0],0)),null==g&&(g=f[1]);var A=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=_i(n.get(r,e)||0,[p,g],d,!0),a=void 0;switch(A){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=_i(n.get(r,e)||0,[p,g],d,!0);switch(A){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 _=c[b],w=c[b+1],x=n.getItemModel(_);if("horizontal"===o){var C=x.get(["itemStyle","width"]);null==C?C=v:(C=wi(C,s),"ascending"===i&&(C=-C));var S=y(_,u),k=y(w,u+C);u+=C+m,n.setItemLayout(_,{points:S.concat(k.slice().reverse())})}else{var E=x.get(["itemStyle","height"]);null==E?E=v:(E=wi(E,l),"ascending"===i&&(E=-E));S=y(_,h),k=y(w,h+E);h+=E+m,n.setItemLayout(_,{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,g=void 0,A=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=(g=f-m)-5,r="right"):"right"===l?(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,i=(g=f+m)+5,r="left"):"top"===l?(f=(h[3][0]+h[0][0])/2,a=(A=(p=(h[3][1]+h[0][1])/2)-m)-5,r="center"):"bottom"===l?(f=(h[1][0]+h[2][0])/2,a=(A=(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=(A=p-m)-5,r="center"):(i=(g=f+m)+5,r="top")):"rightBottom"===l?(f=h[2][0],p=h[2][1],"horizontal"===t?(a=(A=p+m)+5,r="center"):(i=(g=f+m)+5,r="bottom")):"leftTop"===l?(f=h[0][0],p="horizontal"===t?h[0][1]:h[1][1],"horizontal"===t?(a=(A=p-m)-5,r="center"):(i=(g=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=(A=p+m)+5,r="center"):(i=(g=f-m)-5,r="right")):(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,"horizontal"===t?(a=(A=p+m)+5,r="center"):(i=(g=f+m)+5,r="left")),"horizontal"===t?i=g=f:a=A=p,o=[[f,p],[g,A]]}u.label={linePoints:o,x:i,y:a,verticalAlign:"middle",textAlign:r,inside:d}})}(n)})}var lI=.3;function cI(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 uI(e,t,n,r,i){var a=cI(e,n,r,i),o=new eu({shape:{points:a},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function hI(e){var t=e.get("smooth",!0);return!0===t&&(t=lI),fe(t=ji(t))&&(t=0),{smooth:t}}function dI(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");Xl(e,i,"lineStyle"),Wl(e,a.get("focus"),a.get("blurScope"))}var fI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new li,n._initialized=!1,n}return A(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=hI(e);if(a.diff(o).add(function(e){dI(uI(a,i,e,l,s),a,e,c)}).update(function(t,n){var r=o.getItemGraphicEl(n),i=cI(a,t,l,s);a.setItemGraphicEl(t,r),Eu(r,{shape:{points:i}},e,t),Du(r),dI(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 zs({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),Tu(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=hI(t),s=e.start;s<e.end;s++){var l=uI(r,this._dataGroup,s,a,i);l.incremental=!0,dI(l,r,s,o)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}($g);function pI(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return W(t.dimensions,function(e){var t=+e.replace("dim","");n[e]=t}),n}}var gI=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 A(t,e),t.prototype.getInitialData=function(e,t){return wb(null,this,{useEncodeDefaulter:J(pI,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}(Lg),AI=["lineStyle","opacity"],mI={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(AI,!0);null!=a&&(i=a)}t.ensureUniqueItemVisual(n,"style").opacity=i},e.start,e.end)}}}};function vI(e){!function(e){if(e.parallel)return;var t=!1;W(e.series,function(e){e&&"parallel"===e.type&&(t=!0)}),t&&(e.parallel=[{}])}(e),function(e){W($i(e.parallelAxis),function(t){if(oe(t)){var n=t.parallelIndex||0,r=$i(e.parallel)[n];r&&r.parallelAxisDefault&&N(t,r.parallelAxisDefault,!1)}})}(e)}var yI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},W(bI,function(e,t){n.getZr().on(t,this._handlers[t]=J(e,this))},this)),Jg(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){W(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(j({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Ng),bI={mousedown:function(e){_I(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(_I(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&&_I(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 _I(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var wI=yI,xI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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){W(["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=[];W(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}(Yd),CI=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 A(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}($_);function SI(e,t,n,r,i,a){e=e||0;var o=n[1]-n[0];if(null!=i&&(i=EI(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=EI(s=EI(s,[0,o]),[i,a]),r=0}t[0]=EI(t[0],n),t[1]=EI(t[1],n);var l=kI(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]=EI(t[r],h),c=kI(t,r),null!=i&&(c.sign!==l.sign||c.span<i)&&(t[1-r]=t[r]+l.sign*i),c=kI(t,r),null!=a&&c.span>a&&(t[1-r]=t[r]+c.sign*a),t}function kI(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 EI(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var TI=W,BI=Math.min,II=Math.max,MI=Math.floor,PI=Math.ceil,DI=xi,FI=Math.PI;function OI(e,t){return BI(II(e,t[0]),t[1])}var LI=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;TI(r,function(e,n){var r=i[n],a=t.getComponent("parallelAxis",r),o=this._axesMap.set(e,new CI(e,S_(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();TI(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),C_(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){this._rect=zd(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=OI(t.get("axisExpandWidth"),l),h=OI(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=OI(f[1]-f[0],l),f[1]=f[0]+e):(e=OI(u*(h-1),l),(f=[u*(t.get("axisExpandCenter")||MI(c/2))-e/2])[1]=f[0]+e);var p=(s-e)/(c-h);p<3&&(p=0);var g=[MI(DI(f[0]/u,1))+1,PI(DI(f[1]/u,1))-1],A=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:g,axisExpandWindow0Pos:A}},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])}),TI(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:FI/2,vertical:0},l=[o[i].x+e.x,o[i].y+e.y],c=s[i],u=[1,0,0,1,0,0];gr(u,u,c),pr(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=[];W(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 Xu([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)?SI(o,r,a,"all"):l="none";else{var d=r[1]-r[0];(r=[II(0,a[1]*s/d-d/2)])[1]=BI(a[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:l}},e}();var RI={create:function(e,t){var n=[];return e.eachComponent("parallel",function(r,i){var a=new LI(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",ua).models[0];e.coordinateSystem=t.coordinateSystem}}),n}},NI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return A(t,e),t.prototype.getAreaSelectStyle=function(){return ka([["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--)Ci(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}(Yd);G(NI,M_);var UI=NI,jI=!0,HI=Math.min,zI=Math.max,QI=Math.pow,VI=1e4,GI=6,qI=6,WI={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},$I={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},KI={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},YI=0,XI=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new li,n._uid="brushController_"+YI++,W(CM,function(e,t){this._handlers[t]=J(e,this)},n),n}return A(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){Sk(e)[t]=n}(t,"globalPan",this._uid),W(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=N(R(KI),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var r=Sk(e);r[t]===n&&(r[t]=null)}(e,"globalPan",this._uid),W(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={};W(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=$(e,function(e){return N(R(KI),e,!0)});var t="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new zy(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]):JI(i,ZI(i,s));nM(i,l)}}},t.prototype.unmount=function(){return this.enableBrush(!1),oM(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(at);function ZI(e,t){var n=kM[t.brushType].createCover(e,t);return n.__brushOption=t,tM(n,t),e.group.add(n),n}function JI(e,t){var n=rM(t);return n.endCreating&&(n.endCreating(e,t),tM(t,t.__brushOption)),t}function eM(e,t){var n=t.__brushOption;rM(t).updateCoverShape(e,t,n.range,n)}function tM(e,t){var n=t.z;null==n&&(n=VI),e.traverse(function(e){e.z=n,e.z2=n})}function nM(e,t){rM(t).updateCommon(e,t),eM(e,t)}function rM(e){return kM[e.__brushOption.brushType]}function iM(e,t,n){var r,i=e._panels;if(!i)return jI;var a=e._transform;return W(i,function(e){e.isTargetByCursor(t,n,a)&&(r=e)}),r}function aM(e,t){var n=e._panels;if(!n)return jI;var r=t.__brushOption.panelId;return null!=r?n[r]:jI}function oM(e){var t=e._covers,n=t.length;return W(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function sM(e,t){var n=$(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 lM(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function cM(e,t,n,r){var i=new li;return i.add(new zs({name:"main",style:fM(n),silent:!0,draggable:!0,cursor:"move",drift:ee(AM,e,t,i,["n","s","w","e"]),ondragend:ee(sM,t,{isEnd:!0})})),W(r,function(n){i.add(new zs({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ee(AM,e,t,i,n),ondragend:ee(sM,t,{isEnd:!0})}))}),i}function uM(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=zI(i,qI),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,g=h-s,A=p+i,m=g+i;dM(e,t,"main",o,s,p,g),r.transformable&&(dM(e,t,"w",l,c,a,m),dM(e,t,"e",d,c,a,m),dM(e,t,"n",l,c,A,a),dM(e,t,"s",l,f,A,a),dM(e,t,"nw",l,c,a,a),dM(e,t,"ne",d,c,a,a),dM(e,t,"sw",l,f,a,a),dM(e,t,"se",d,f,a,a))}function hM(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(fM(n)),i.attr({silent:!r,cursor:r?"move":"default"}),W([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var i=t.childOfName(n.join("")),a=1===n.length?gM(e,n[0]):function(e,t){var n=[gM(e,t[0]),gM(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?$I[a]+"-resize":null})})}function dM(e,t,n,r,i,a,o){var s,l,c,u,h,d=t.childOfName(n);d&&d.setShape((s=yM(e,t,[[r,i],[r+a,i+o]]),l=HI(s[0][0],s[1][0]),c=HI(s[0][1],s[1][1]),u=zI(s[0][0],s[1][0]),h=zI(s[0][1],s[1][1]),{x:l,y:c,width:u-l,height:h-c}))}function fM(e){return H({strokeNoScale:!0},e.brushStyle)}function pM(e,t,n,r){var i=[HI(e,n),HI(t,r)],a=[zI(e,n),zI(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function gM(e,t){return{left:"w",right:"e",top:"n",bottom:"s"}[Zu({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return Yu(e.group)}(e))]}function AM(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),l=vM(t,i,a);W(r,function(e){var t=WI[e];s[t[0]][t[1]]+=l[t[0]]}),o.range=e.fromRectRange(pM(s[0][0],s[1][0],s[0][1],s[1][1])),nM(t,n),sM(t,{isEnd:!1})}function mM(e,t,n,r){var i=t.__brushOption.range,a=vM(e,n,r);W(i,function(e){e[0]+=a[0],e[1]+=a[1]}),nM(e,t),sM(e,{isEnd:!1})}function vM(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 yM(e,t,n){var r=aM(e,t);return r&&r!==jI?r.clipPath(n,e._transform):R(n)}function bM(e){var t=e.event;t.preventDefault&&t.preventDefault()}function _M(e,t,n){return e.childOfName("main").contain(t,n)}function wM(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 QI(i*i+a*a,.5)>GI}(e)||a){if(o&&!a){"single"===s.brushMode&&oM(e);var l=R(s);l.brushType=xM(l.brushType,o),l.panelId=o===jI?null:o.panelId,a=e._creatingCover=ZI(e,l),e._covers.push(a)}if(a){var c=kM[xM(e._brushType,o)];a.__brushOption.range=c.getCreatingRange(yM(e,a,e._track)),r&&(JI(e,a),c.updateCommon(e,a)),eM(e,a),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&iM(e,t,n)&&oM(e)&&(i={isEnd:r,removeOnClick:!0});return i}function xM(e,t){return"auto"===e?t.defaultBrushType:e}var CM={mousedown:function(e){if(this._dragging)SM(this,e);else if(!e.target||!e.target.draggable){bM(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=iM(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=iM(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===jI||s.panelId===a.panelId)&&kM[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle("crosshair")}}(this,e,r),this._dragging){bM(e);var i=wM(this,e,r,!1);i&&sM(this,i)}},mouseup:function(e){SM(this,e)}};function SM(e,t){if(e._dragging){bM(t);var n=t.offsetX,r=t.offsetY,i=wM(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&sM(e,i)}}var kM={lineX:EM(0),lineY:EM(1),rect:{createCover:function(e,t){function n(e){return e}return cM({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=lM(e);return pM(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){uM(e,t,n,r)},updateCommon:hM,contain:_M},polygon:{createCover:function(e,t){var n=new li;return n.add(new eu({name:"main",style:fM(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Xc({name:"main",draggable:!0,drift:ee(mM,e,t),ondragend:ee(sM,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:yM(e,t,n)})},updateCommon:hM,contain:_M}};function EM(e){return{createCover:function(t,n){return cM({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=lM(t);return[HI(n[0][e],n[1][e]),zI(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=aM(t,n);if(o!==jI&&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(),uM(t,n,l,i)},updateCommon:hM,contain:_M}}var TM=XI;function BM(e){return e=PM(e),function(t){return th(t,e)}}function IM(e,t){return e=PM(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 MM(e,t,n){var r=PM(e);return function(e,i){return r.contain(i[0],i[1])&&!Dk(e,t,n)}}function PM(e){return jr.create(e)}var DM=["axisLine","axisTickLabel","axisName"];var FM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new TM(n.getZr())).on("brush",J(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 li,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=j({strokeContainThreshold:l},o.getAxisLayout(c)),h=new QS(e,u);W(DM,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(u,s,e,a,l,n),eh(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=jr.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:BM(c),isTargetByCursor:MM(c,a,r),getLinearBrushOtherExtent:IM(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return $(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=$(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}(Ng),OM={type:"axisAreaSelect",event:"axisAreaSelected"};var LM={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function RM(e){e.registerComponentView(wI),e.registerComponentModel(xI),e.registerCoordinateSystem("parallel",RI),e.registerPreprocessor(vI),e.registerComponentModel(UI),e.registerComponentView(FM),xS(e,"parallel",UI,LM),function(e){e.registerAction(OM,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 NM=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}}(),UM=function(e){function t(t){return e.call(this,t)||this}return A(t,e),t.prototype.getDefaultShape=function(){return new NM},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(){Ol(this)},t.prototype.downplay=function(){Ll(this)},t}(Es);var jM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return A(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 UM,r=tl(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,o,c,d,f,p,g,A,m=t.getModel(),v=m.getModel("lineStyle"),y=v.get("curveness"),b=t.node1.getLayout(),_=t.node1.getModel(),w=_.get("localX"),x=_.get("localY"),C=t.node2.getLayout(),S=t.node2.getModel(),k=S.get("localX"),E=S.get("localY"),T=t.getLayout();switch(n.shape.extent=Math.max(1,T.dy),n.shape.orient=h,"vertical"===h?(i=(null!=w?w*s:b.x)+T.sy,o=(null!=x?x*l:b.y)+b.dy,c=(null!=k?k*s:C.x)+T.ty,f=i,p=o*(1-y)+(d=null!=E?E*l:C.y)*y,g=c,A=o*y+d*(1-y)):(i=(null!=w?w*s:b.x)+b.dx,o=(null!=x?x*l:b.y)+T.sy,f=i*(1-y)+(c=null!=k?k*s:C.x)*y,p=o,g=i*y+c*(1-y),A=d=(null!=E?E*l:C.y)+T.ty),n.setShape({x1:i,y1:o,x2:c,y2:d,cpx1:f,cpy1:p,cpx2:g,cpy2:A}),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 B=t.node1.getVisual("color"),I=t.node2.getVisual("color");"string"==typeof B&&"string"==typeof I&&(n.style.fill=new gu(0,0,+("horizontal"===h),+("vertical"===h),[{color:B,offset:0},{color:I,offset:1}]))}var M=m.getModel("emphasis");Xl(n,m,"lineStyle",function(e){return e.getItemStyle()}),a.add(n),u.setItemGraphicEl(t.dataIndex,n);var P=M.get("focus");Wl(n,"adjacency"===P?t.getAdjacentDataIndices():P,M.get("blurScope")),tl(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 zs({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(),z2:10});hh(h,dh(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),Xl(h,r),a.add(h),c.setItemGraphicEl(t.dataIndex,h),tl(h).dataType="node";var d=u.get("focus");Wl(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 zs({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Tu(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}($g),HM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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 Oh(i[o],this,t));if(r&&n)return $B(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||this.option.nodes)[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 pg("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 pg("nameValue",{name:null!=l?l+"":null,value:s,noValue:r(s)})},t.prototype.optionUpdated=function(){},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}(Lg);function zM(e,t){e.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=function(e,t){return zd(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){W(e,function(e){var t=ZM(e.outEdges,XM),n=ZM(e.inEdges,XM),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 g=c[p],A=g.hostGraph.data.getRawDataItem(g.dataIndex),m=null!=A.depth&&A.depth>=0;m&&A.depth>f&&(f=A.depth),g.setLayout({depth:m?A.depth:h},!0),"vertical"===a?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var v=0;v<g.outEdges.length;v++){var y=g.outEdges[v],b=t.indexOf(y);s[b]=0;var _=y.node2,w=e.indexOf(_);0==--l[w]&&u.indexOf(_)<0&&u.push(_)}}++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 x=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}W(e,function(e){QM(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)})}else"justify"===t&&function(e,t){W(e,function(e){QM(e)||e.outEdges.length||e.setLayout({depth:t},!0)})}(e,r)}(e,o,0,x);!function(e,t,n){W(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)/x:(r-n)/x,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=pa(e,function(e){return e.getLayout()[r]});return i.keys.sort(function(e,t){return e-t}),W(i.keys,function(e){n.push(i.buckets.get(e))}),n}(e,o);(function(e,t,n,r,i,a){var o=1/0;W(e,function(e){var t=e.length,s=0;W(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)}),W(e,function(e){W(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))})}),W(t,function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)})})(s,t,n,r,i,o),VM(s,i,n,r,o);for(var l=1;a>0;a--)GM(s,l*=.99,o),VM(s,i,n,r,o),JM(s,l,o),VM(s,i,n,r,o)}(e,t,a,i,r,o,s),function(e,t){var n="vertical"===t?"x":"y";W(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]})}),W(e,function(e){var t=0,n=0;W(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),W(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 QM(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function VM(e,t,n,r,i){var a="vertical"===i?"x":"y";W(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 GM(e,t,n){W(e.slice().reverse(),function(e){W(e,function(e){if(e.outEdges.length){var r=ZM(e.outEdges,qM,n)/ZM(e.outEdges,XM);if(isNaN(r)){var i=e.outEdges.length;r=i?ZM(e.outEdges,WM,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-YM(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-YM(e,n))*t;e.setLayout({y:o},!0)}}})})}function qM(e,t){return YM(e.node2,t)*e.getValue()}function WM(e,t){return YM(e.node2,t)}function $M(e,t){return YM(e.node1,t)*e.getValue()}function KM(e,t){return YM(e.node1,t)}function YM(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function XM(e){return e.getValue()}function ZM(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 JM(e,t,n){W(e,function(e){W(e,function(e){if(e.inEdges.length){var r=ZM(e.inEdges,$M,n)/ZM(e.inEdges,XM);if(isNaN(r)){var i=e.inEdges.length;r=i?ZM(e.inEdges,KM,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-YM(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-YM(e,n))*t;e.setLayout({y:o},!0)}}})})}function eP(e){e.eachSeriesByType("sankey",function(e){var t=e.getGraph().nodes;if(t.length){var n=1/0,r=-1/0;W(t,function(e){var t=e.getLayout().value;t<n&&(n=t),t>r&&(r=t)}),W(t,function(t){var i=new TT({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 tP=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"),g=e.data;if(g&&r){var A=[];W(g,function(e,t){var n;te(e)?(n=e.slice(),e.unshift(t)):te(e.value)?((n=j({},e)).value=n.value.slice(),e.value.unshift(t)):n=e,A.push(n)}),e.data=A}var m=this.defaultValueDimensions,v=[{name:u,type:Gy(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Gy(p),dimsDef:m.slice()}];return lS(this,{coordDimensions:v,dimensionsCount:m.length+1,encodeDefaulter:ee(df,v,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),nP=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 A(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}(Lg);G(nP,tP,!0);var rP=nP,iP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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=sP(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?(Du(n),lP(s,n,r,e)):n=sP(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}($g),aP=function(){return function(){}}(),oP=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return A(t,e),t.prototype.getDefaultShape=function(){return new aP},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}(Es);function sP(e,t,n,r,i){var a=e.ends,o=new oP({shape:{points:i?function(e,t,n){return $(e,function(e){return(e=e.slice())[t]=n.initBaseline,e})}(a,r,e):a}});return lP(e,o,t,n,i),o}function lP(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);Xl(t,o),Wl(t,o.get(["emphasis","focus"]),o.get(["emphasis","blurScope"]))}var cP=iP;function uP(e,t){}var hP=W;function dP(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(e){var r=e.getBaseAxis(),i=Q(n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)}),t}(e);hP(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;hP(i,function(e){c=Math.max(c,e.getData().count())}),t=r.getExtent(),Math.abs(t[1]-t[0])}hP(i,function(e){var t=e.get("boxWidth");te(t)||(t=[t,t]),l.push([wi(t[0],n)||0,wi(t[1],n)||0])});var u=.8*n-2,h=u/a*.3,d=(u-h*(a-1))/a,f=d/2-u/2;hP(i,function(e,t){s.push(f),f+=h+d,o.push(Math.min(Math.max(d,l[t][0]),l[t][1]))})}(e),hP(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),g=y(d,u[1],h),A=y(d,u[3],h),m=y(d,u[4],h),v=[];b(v,g,!1),b(v,A,!0),v.push(p,g,m,A),_(v,p),_(v,m),_(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 _(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 fP={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==nf){var n="";0,Gi(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=Ci(e[o].slice()),l=Ni(s,.25),c=Ni(s,.5),u=Ni(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),g=a?d:Math.min(d,u+f),A=t.itemNameFormatter,m=ne(A)?A({value:o}):re(A)?A.replace("{value}",o+""):o+"";n.push([m,p,l,c,u,g]);for(var v=0;v<s.length;v++){var y=s[v];if(y<p||y>g){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 pP=["color","borderColor"],gP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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&&yP(s,o))return;var l=vP(o,n,!0);Tu(l,{shape:{points:o.ends}},e,n),bP(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&&yP(s,u)?r.remove(c):(c?(Eu(c,{shape:{points:u.ends}},e,o),Du(c)):c=vP(u,o),bP(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(),xP(e,this.group);var t=e.get("clip",!0)?aC(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=vP(r.getItemLayout(n),n);bP(a,r,n,i),a.incremental=!0,this.group.add(a)}},t.prototype._incrementalRenderLarge=function(e,t){xP(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}($g),AP=function(){return function(){}}(),mP=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return A(t,e),t.prototype.getDefaultShape=function(){return new AP},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}(Es);function vP(e,t,n){var r=e.ends;return new mP({shape:{points:n?function(e,t){return $(e,function(e){return(e=e.slice())[1]=t.initBaseline,e})}(r,e):r},z2:100})}function yP(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 bP(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Xl(e,i)}var _P=function(){return function(){}}(),wP=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return A(t,e),t.prototype.getDefaultShape=function(){return new _P},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}(Es);function xP(e,t,n){var r=e.getData(),i=r.getLayout("largePoints"),a=new wP({shape:{points:i},__sign:1});t.add(a);var o=new wP({shape:{points:i},__sign:-1});t.add(o),CP(1,a,e,r),CP(-1,o,e,r),n&&(a.incremental=!0,o.incremental=!0)}function CP(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(pP);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var SP=gP,kP=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 A(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}(Lg);G(kP,tP,!0);var EP=kP;function TP(e){e&&te(e.series)&&W(e.series,function(e){oe(e)&&"k"===e.type&&(e.type="candlestick")})}var BP=["itemStyle","borderColor"],IP=["itemStyle","borderColor0"],MP=["itemStyle","color"],PP=["itemStyle","color0"],DP={seriesType:"candlestick",plan:Ug(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?MP:PP)}function r(e,t){return t.get(e>0?BP:IP)}if(!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,j(t.ensureUniqueItemVisual(i,"style"),s)}}}}},FP="undefined"!=typeof Float32Array?Float32Array:Array;function OP(e,t,n,r,i){return n>r?-1:n<r?1:t>0?e.get(i,t-1)<=r?1:-1:1}var LP={seriesType:"candlestick",plan:Ug(),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=wi(ge(e.get("barMaxWidth"),i),i),o=wi(ge(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?wi(s,i):Math.max(Math.min(i/2,a),o)}(e,n),i=0,a=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[i])),l=$(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),c=l[0],u=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?function(e,n){var r,o,l=new FP(4*e.count),f=0,p=[],g=[],A=n.getStore();for(;null!=(o=e.next());){var m=A.get(s,o),v=A.get(c,o),y=A.get(u,o),b=A.get(h,o),_=A.get(d,o);isNaN(m)||isNaN(b)||isNaN(_)?(l[f++]=NaN,f+=3):(l[f++]=OP(A,o,v,y,u),p[i]=m,p[a]=b,r=t.dataToPoint(p,null,g),l[f++]=r?r[0]:NaN,l[f++]=r?r[1]:NaN,p[a]=_,r=t.dataToPoint(p,null,g),l[f++]=r?r[1]:NaN)}n.setLayout("largePoints",l)}:function(e,n){var o,l=n.getStore();for(;null!=(o=e.next());){var f=l.get(s,o),p=l.get(c,o),g=l.get(u,o),A=l.get(h,o),m=l.get(d,o),v=Math.min(p,g),y=Math.max(p,g),b=S(v,f),_=S(y,f),w=S(A,f),x=S(m,f),C=[];k(C,_,0),k(C,b,1),C.push(T(x),T(_),T(w),T(b)),n.setItemLayout(o,{sign:OP(l,o,p,g,u),initBaseline:p>g?_[a]:b[a],ends:C,brushRect:E(A,m,f)})}function S(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function k(e,t,n){var a=t.slice(),o=t.slice();a[i]=Ku(a[i]+r/2,1,!1),o[i]=Ku(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function E(e,t,n){var o=S(e,n),s=S(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 T(e){return e[i]=Ku(e[i],1),e}}}}};function RP(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 NP=function(e){function t(t,n){var r=e.call(this)||this,i=new Ux(t,n),a=new li;return r.add(i),r.add(a),r.updateData(t,n),r}return A(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a<r;a++){var o=KA(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/r*e.period+e.effectOffset;o.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(o)}RP(i,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}RP(n,e)},t.prototype.highlight=function(){Ol(this)},t.prototype.downplay=function(){Ll(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},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=YA(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=XA(e.getItemVisual(t,"symbolOffset"),s);u&&(i.x=u[0],i.y=u[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"]),d.rippleNumber=a.get(["rippleEffect","number"]),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,Wl(this)},t.prototype.fadeOut=function(e){this.off("mouseover").off("mouseout"),e&&e()},t}(li),UP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.init=function(){this._symbolDraw=new Qx(NP)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=vC("").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=vr(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}($g),jP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return A(t,e),t.prototype.getInitialData=function(e,t){return wb(null,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",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Lg);var HP=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 A(t,e),t.prototype.createLine=function(e,t,n){return new EB(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=KA(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=bo,l=_o;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}(li),zP=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return A(t,e),t.prototype._createPolyline=function(e,t,n){var r=e.getItemLayout(t),i=new eu({shape:{points:r}});this.add(i),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;Eu(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,Wl(this)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(li),QP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return A(t,e),t.prototype.createLine=function(e,t,n){return new zP(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}(HP),VP=function(){return function(){this.polyline=!1,this.curveness=0,this.segs=[]}}(),GP=function(e){function t(t){return e.call(this,t)||this}return A(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new VP},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(ss(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(cs(c,u,(c+d)/2-(u-f)*i,(u+f)/2-(d-c)*i,d,f,a,e,t))return o}else if(ss(c,u,d,f,a,e,t))return o;o++}return-1},t}(Es),qP=function(){function e(){this.group=new li}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e){this.group.removeAll();var t=new GP({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 xu({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t){var n=new GP;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=tl(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}(),WP={seriesType:"lines",plan:Ug(),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 g=a.getItemModel(u),A=(f=e.getLineCoords(u,o),[]);if(n)for(var m=0;m<f;m++)A.push(t.dataToPoint(o[m]));else{A[0]=t.dataToPoint(o[0]),A[1]=t.dataToPoint(o[1]);var v=g.get(["lineStyle","curveness"]);+v&&(A[2]=[(A[0][0]+A[1][0])/2-(A[0][1]-A[1][1])*v,(A[0][1]+A[1][1])/2-(A[1][0]-A[0][0])*v])}a.setItemLayout(u,A)}}}}},$P=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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)&&aC(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=WP.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 qP:new MB(i?r?QP:zP:r?HP:EB),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),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.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}($g),KP="undefined"==typeof Uint32Array?Array:Uint32Array,YP="undefined"==typeof Float64Array?Array:Float64Array;function XP(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=$(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 ZP=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 A(t,e),t.prototype.init=function(t){t.data=t.data||[],XP(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(XP(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 KP(n),i=new YP(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 db(["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),pg("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}(Lg);function JP(e){return e instanceof Array||(e=[e,e]),e}var eD={seriesType:"lines",reset:function(e){var t=JP(e.get("symbol")),n=JP(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=JP(n.getShallow("symbol",!0)),i=JP(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 tD=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=z();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],g=p[0],A=p[1],m=r(p[2]);h.globalAlpha=m,h.drawImage(o,g-c,A-c)}if(!u.width||!u.height)return u;for(var v=h.getImageData(0,0,u.width,u.height),y=v.data,b=0,_=y.length,w=this.minOpacity,x=this.maxOpacity-w;b<_;){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+w),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=z()),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 nD(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var rD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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()):nD(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&&(nD(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(oC(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(),g=e.getModel(["blur","itemStyle"]).getItemStyle(),A=e.getModel(["select","itemStyle"]).getItemStyle(),m=dh(e),v=e.get(["emphasis","focus"]),y=e.get(["emphasis","blurScope"]),b=oC(c,"cartesian2d")?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],_=n;_<r;_++){var w=void 0,x=f.getItemVisual(_,"style");if(oC(c,"cartesian2d")){var C=f.get(b[0],_),S=f.get(b[1],_);if(isNaN(f.get(b[2],_))||C<s[0]||C>s[1]||S<l[0]||S>l[1])continue;var k=c.dataToPoint([C,S]);w=new zs({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:x})}else{if(isNaN(f.get(b[1],_)))continue;w=new zs({z2:1,shape:c.dataToRect([f.get(b[0],_)]).contentShape,style:x})}var E=f.getItemModel(_);if(f.hasItemOption){var T=E.getModel("emphasis");p=T.getModel("itemStyle").getItemStyle(),g=E.getModel(["blur","itemStyle"]).getItemStyle(),A=E.getModel(["select","itemStyle"]).getItemStyle(),v=T.get("focus"),y=T.get("blurScope"),m=dh(E)}var B=e.getRawValue(_),I="-";B&&null!=B[2]&&(I=B[2]+""),hh(w,m,{labelFetcher:e,labelDataIndex:_,defaultOpacity:x.opacity,defaultText:I}),w.ensureState("emphasis").style=p,w.ensureState("blur").style=g,w.ensureState("select").style=A,Wl(w,v,y),w.incremental=i,i&&(w.states.emphasis.hoverLayer=!0),d.add(w),f.setItemGraphicEl(_,w)}},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 tD;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,g=f-h,A=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],m=o.mapArray(A,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=$(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,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new Fs({style:{width:p,height:g,x:u,y:h,image:s.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}($g),iD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.getInitialData=function(e,t){return wb(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Ff.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}(Lg);var aD=["itemStyle","borderWidth"],oD=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],sD=new Cc;function lD(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=[cD(l,s[0])-c,cD(l,s[1])-c];h[1]<h[0]&&h.reverse(),a=h[u]}else a=null!=s?cD(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]=wi(u[d.index],f),u[h.index]=wi(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(aD)||0;a&&(sD.attr({scaleX:t[0],scaleY:t[1],rotation:n}),sD.updateTransform(),a/=sD.getLineScale(),a*=t[r.valueDim.index]);i.valueLineWidth=a}(n,h.symbolScale,l,r,h);var d=h.symbolSize;return function(e,t,n,r,i,a,o,s,l,c,u,h){var d=u.categoryDim,f=u.valueDim,p=h.pxSign,g=Math.max(t[f.index]+s,0),A=g;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=wi(v,t[f.index]),_=Math.max(g+2*b,0),w=y?0:2*b,x=Hi(r),C=x?r:CD((m+w)/_),S=m-C*g;b=S/2/(y?C:Math.max(C-1,1)),_=g+2*b,w=y?0:2*b,x||"fixed"===r||(C=c?CD((Math.abs(c)+w)/_):0),A=C*_-w,h.repeatTimes=C,h.symbolMargin=b}var k=p*(A/2),E=h.pathPosition=[];E[d.index]=n[d.wh]/2,E[f.index]="start"===o?k:"end"===o?l-k:l/2,a&&(E[0]+=a[0],E[1]+=a[1]);var T=h.bundlePosition=[];T[d.index]=n[d.xy],T[f.index]=n[f.xy];var B=h.barRectShape=j({},n);B[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(E[f.index]+k)),B[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,XA(n.get("symbolOffset"),d),s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function cD(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function uD(e){var t=e.symbolPatternSize,n=KA(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function hD(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(_D(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?wD(e,null,p(u),n,r):wD(e,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(e)}),u++});u<c;u++){var d=uD(n);d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=c,i.add(d);var f=p(u);wD(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 dD(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?wD(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=uD(n),i.add(a),wD(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 fD(e,t,n){var r=j({},t.barRectShape),i=e.__pictorialBarRect;i?wD(i,null,{shape:r},t,n):((i=e.__pictorialBarRect=new zs({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(i))}function pD(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=j({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)Eu(i,{shape:a},s,c);else{a[o.wh]=0,i=new zs({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 gD(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=AD,n.isAnimationEnabled=mD,n}function AD(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function mD(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function vD(e,t,n,r){var i=new li,a=new li;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?hD(i,t,n):dD(i,0,n),fD(i,n,r),pD(i,t,n,r),i.__pictorialShapeStr=bD(e,n),i.__pictorialSymbolMeta=n,i}function yD(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];_D(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),W(a,function(e){Iu(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function bD(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function _D(e,t,n){W(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function wD(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 xD(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");_D(e,function(e){if(e instanceof Fs){var t=e.style;e.useStyle(j({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)];hh(e.__pictorialBarRect,dh(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Lx(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Wl(e,u,h)}function CD(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var SD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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:oD[+s],categoryDim:oD[1-+s]};return i.diff(a).add(function(e){if(i.hasValue(e)){var t=gD(i,e),n=lD(i,e,t,c),a=vD(i,c,n);i.setItemGraphicEl(e,a),r.add(a),xD(a,c,n)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(i.hasValue(e)){var o=gD(i,e),s=lD(i,e,o,c),l=bD(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;Eu(e.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?hD(e,t,n,!0):dD(e,t,n,!0);fD(e,n,!0),pD(e,t,n,!0)}(n,c,s):n=vD(i,c,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),xD(n,c,s)}else r.remove(n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&yD(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){yD(r,tl(t).dataIndex,e,t)}):n.removeAll()},t.type="pictorialBar",t}($g),kD=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 A(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=Nh(xC.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}(xC);var ED=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return A(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,g=0;g<p.length;g++){var A=r.getItemLayout(p[g]),m=A.x,v=A.y0,y=A.y;d.push(m,v),f.push(m,v+y),c=r.getItemVisual(p[g],"style")}var b=r.getItemLayout(p[0]),_=e.getModel("label").get("margin"),w=e.getModel("emphasis");if("add"===t){var x=h[n]=new li;u=new nC({shape:{points:d,stackedOnPoints:f,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),x.add(u),a.add(x),e.isAnimationEnabled()&&u.setClipPath(function(e,t,n){var r=new zs({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Tu(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}(u.getBoundingRect(),e,function(){u.removeClipPath()}))}else{x=l[s];u=x.childAt(0),a.add(x),h[n]=x,Eu(u,{shape:{points:d,stackedOnPoints:f}},e),Du(u)}hh(u,dh(e),{labelDataIndex:p[g-1],defaultText:r.getName(p[g-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var C=u.getTextContent();C&&(C.x=b.x-_,C.y=b.y0+b.y/2),u.useStyle(c),r.setItemGraphicEl(n,u),Xl(u,e),Wl(u,w.get("focus"),w.get("blurScope"))}else a.remove(l[n])}new zy(this._layersSeries||[],o,u,u).add(J(d,this,"add")).update(J(d,this,"update")).remove(J(d,this,"remove")).execute(),this._layersSeries=o,this._layers=h},t.type="themeRiver",t}($g),TD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new cS(J(this.getData,this),J(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=[];pa(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",ua).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=pb(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Gy(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new db(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 pa(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 pg("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,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Lg);function BD(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]=wi(a[0],i.height),a[1]=wi(a[1],i.height),ID(t,e,i.height-a[0]-a[1])):(a[0]=wi(a[0],i.width),a[1]=wi(a[1],i.width),ID(t,e,i.width-a[0]-a[1]));t.setLayout("layoutInfo",r)})}function ID(e,t,n){if(e.count())for(var r,i=t.coordinateSystem,a=t.getLayerSeries(),o=e.mapDimension("single"),s=e.mapDimension("value"),l=$(a,function(t){return $(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 g=1;g<d;++g)r+=l[g-1][p][1]*h,e.setItemLayout(a[g].indices[p],{layerIndex:g,x:l[g][p][0],y0:r,y:l[g][p][1]*h})}}var MD=2,PD=4,DD=function(e){function t(t,n,r,i){var a=e.call(this)||this;a.z2=MD,a.textConfig={inside:!0},tl(a).seriesIndex=n.seriesIndex;var o=new el({z2:PD,silent:t.getModel().get(["label","silent"])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return A(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;tl(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel("emphasis"),l=t.getLayout(),c=j({},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=aS(o.getModel("itemStyle"),c,!0);j(c,d),W(cl,function(e){var t=a.ensureState(e),n=o.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=aS(n,c);r&&(t.shape=r)}),e?(a.setShape(c),a.shape.r=l.r0,Eu(a,{shape:{r:l.r}},n,t.dataIndex)):(Eu(a,{shape:c},n),Du(a)),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");Wl(this,"ancestor"===p?t.getAncestorsIndices():"descendant"===p?t.getDescendantIndices():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,W(ul,function(r){var a="normal"===r?n.getModel("label"):n.getModel([r,"label"]),d="normal"===r,f=d?u:u.ensureState(r),g=e.getFormattedLabel(h,r);d&&(g=g||t.node.name),f.style=fh(a,{},null,"normal"!==r,!0),g&&(f.style.text=g);var A=a.get("show");null==A||d||(f.ignore=!A);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 _=p(a,"distance")||0,w=p(a,"align");"outside"===v?(m=i.r+_,w=o>Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(m=i.r0+_,o>Math.PI/2&&(w="right")):"right"===w&&(m=i.r-_,o>Math.PI/2&&(w="left")):(m=(i.r+i.r0)/2,w="center"),f.style.align=w,f.style.verticalAlign=p(a,"verticalAlign")||"middle",f.x=m*s+i.cx,f.y=m*l+i.cy;var x=p(a,"rotate"),C=0;"radial"===x?(C=-o)<-Math.PI/2&&(C+=Math.PI):"tangential"===x?(C=Math.PI/2-o)>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI):"number"==typeof x&&(C=x*Math.PI/180),f.rotation=C}),u.dirtyStyle()},t}(Qc),FD="sunburstRootToNode",OD="sunburstHighlight",LD="sunburstUnhighlight";var RD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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 DD(r,e,t,n);l.add(s),a.setItemGraphicEl(r.dataIndex,s)}}(h,d)}new zy(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 DD(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)Ld(o,a.get("target",!0)||"_blank")}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:FD,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}($g);var ND=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return A(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;W(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=this._levelModels=$(e.levels||[],function(e){return new Oh(e,this,t)},this),i=NE.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=zE(r,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},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(){KE(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:[],sort:"desc"},t}(Lg),UD=Math.PI/180;function jD(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=wi(t[0],i),l=wi(t[1],a),c=wi(r[0],o/2),u=wi(r[1],o/2),h=-e.get("startAngle")*UD,d=e.get("minAngle")*UD,f=e.getData().tree.root,p=e.getViewRoot(),g=p.depth,A=e.get("sort");null!=A&&function e(t,n){var r=t.children||[];t.children=function(e,t){if("function"==typeof t){var n=$(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)}),$(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&&W(t.children,function(t){e(t,n)})}(p,A);var m=0;W(p.children,function(e){!isNaN(e.getValue())&&m++});var v=p.getValue(),y=Math.PI/(v||m)*2,b=p.depth>0,_=p.height-(b?-1:1),w=(u-c)/(_||1),x=e.get("clockwise"),C=e.get("stillShowZeroSum"),S=x?1:-1,k=function(t,n){if(t){var r=n;if(t!==f){var i=t.getValue(),a=0===v&&C?y:i*y;a<d&&(a=d),r=n+S*a;var u=t.depth-g-(b?-1:1),h=c+w*u,p=c+w*(u+1),A=e.getLevelModel(t);if(A){var m=A.get("r0",!0),_=A.get("r",!0),E=A.get("radius",!0);null!=E&&(m=E[0],_=E[1]),null!=m&&(h=wi(m,o/2)),null!=_&&(p=wi(_,o/2))}t.setLayout({angle:a,startAngle:n,endAngle:r,clockwise:x,cx:s,cy:l,r0:h,r:p})}if(t.children&&t.children.length){var T=0;W(t.children,function(e){T+=k(e,n+T)})}return r-n}};if(b){var E=c,T=c+w,B=2*Math.PI;f.setLayout({angle:B,startAngle:h,endAngle:h+B,clockwise:x,cx:s,cy:l,r0:E,r:T})}k(p,h)})}function HD(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=mn(a,(e.depth-1)/(r-1)*.5)),a}(i,e,r.root.height)),j(n.ensureUniqueItemVisual(i.dataIndex,"style"),a)})})}var zD={color:"fill",borderColor:"stroke"},QD={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},VD=oa(),GD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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 wb(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=VD(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}(Lg);function qD(e,t){return t=t||[0,0],$(["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 WD(e,t){return t=t||[0,0],$([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 $D(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 KD(e,t){return t=t||[0,0],$(["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 YD(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||Te(e,"text")))}function XD(e,t,n){var r,i,a,o=e;if("text"===t)a=o;else{a={},Te(o,"text")&&(a.text=o.text),Te(o,"rich")&&(a.rich=o.rich),Te(o,"textFill")&&(a.fill=o.textFill),Te(o,"textStroke")&&(a.stroke=o.textStroke),Te(o,"fontFamily")&&(a.fontFamily=o.fontFamily),Te(o,"fontSize")&&(a.fontSize=o.fontSize),Te(o,"fontStyle")&&(a.fontStyle=o.fontStyle),Te(o,"fontWeight")&&(a.fontWeight=o.fontWeight),i={type:"text",style:a,silent:!0},r={};var s=Te(o,"textPosition");n?r.position=s?o.textPosition:"inside":s&&(r.position=o.textPosition),Te(o,"textPosition")&&(r.position=o.textPosition),Te(o,"textOffset")&&(r.offset=o.textOffset),Te(o,"textRotation")&&(r.rotation=o.textRotation),Te(o,"textDistance")&&(r.distance=o.textDistance)}return ZD(a,e),W(a.rich,function(e){ZD(e,e)}),{textConfig:r,textContent:i}}function ZD(e,t){t&&(t.font=t.textFont||t.font,Te(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Te(t,"textAlign")&&(e.align=t.textAlign),Te(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Te(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Te(t,"textWidth")&&(e.width=t.textWidth),Te(t,"textHeight")&&(e.height=t.textHeight),Te(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Te(t,"textPadding")&&(e.padding=t.textPadding),Te(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Te(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Te(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Te(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Te(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Te(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Te(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function JD(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";eF(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=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,W(t.rich,function(e){eF(e,e)}),r}function eF(e,t){t&&(Te(t,"fill")&&(e.textFill=t.fill),Te(t,"stroke")&&(e.textStroke=t.fill),Te(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Te(t,"font")&&(e.font=t.font),Te(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Te(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Te(t,"fontSize")&&(e.fontSize=t.fontSize),Te(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Te(t,"align")&&(e.textAlign=t.align),Te(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Te(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Te(t,"width")&&(e.textWidth=t.width),Te(t,"height")&&(e.textHeight=t.height),Te(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Te(t,"padding")&&(e.textPadding=t.padding),Te(t,"borderColor")&&(e.textBorderColor=t.borderColor),Te(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Te(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Te(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Te(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Te(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Te(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Te(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Te(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Te(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Te(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var tF={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]};function nF(e,t,n){var r=e[n],i=tF[n];r&&(t[i[0]]=r[0],t[i[1]]=r[1])}function rF(e,t,n){null!=e[n]&&(t[n]=e[n])}function iF(e,t,n){n&&(e[t]=n[t])}function aF(e,t,n,r,i){var a=n[e];if(a){var o,s=t[e],l=a.enterFrom;if(i&&l){!o&&(o=r[e]={});for(var c=Z(l),u=0;u<c.length;u++){o[v=c[u]]=l[v]}}if(!i&&s)if(a.transition){!o&&(o=r[e]={});var h=$i(a.transition);for(u=0;u<h.length;u++){var d=s[v=h[u]];0,o[v]=d}}else if(Q(n.transition,e)>=0){!o&&(o=r[e]={});var f=Z(s);for(u=0;u<f.length;u++){d=s[v=f[u]];sF(a[v],d)&&(o[v]=d)}}var p=a.leaveTo;if(p){var g=lF(t),A=g[e]||(g[e]={}),m=Z(p);for(u=0;u<m.length;u++){var v;A[v=m[u]]=p[v]}}}}function oF(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=Z(r),o=0;o<a.length;o++){var s=a[o];i[s]=Rn(r[s])}}function sF(e,t){return q(e)?e!==t:null!=e&&isFinite(e)}function lF(e){var t=VD(e);return t.leaveToProps||(t.leaveToProps={})}Z({x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1}).join(", ");var cF="emphasis",uF="normal",hF=[uF,cF,"blur","select"],dF={normal:["itemStyle"],emphasis:[cF,"itemStyle"],blur:["blur","itemStyle"],select:["select","itemStyle"]},fF={normal:["label"],emphasis:[cF,"label"],blur:["blur","label"],select:["select","label"]},pF="e\0\0",gF={normal:{},emphasis:{},blur:{},select:{}},AF={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:J(qD,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:J(WD,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:J($D,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:J(KD,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)}}}}};function mF(e){return e instanceof Es}function vF(e){return e instanceof eo}var yF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.render=function(e,t,n,r){var i=this._data,a=e.getData(),o=this.group,s=EF(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){TF(n,null,t,s(t,r),e,o,a)}).remove(function(t){RF(i.getItemGraphicEl(t),e,o)}).update(function(t,l){var c=i.getItemGraphicEl(l);TF(n,c,t,s(t,r),e,o,a)}).execute();var l=e.get("clip",!0)?aC(e.coordinateSystem,!1,e):null;l?o.setClipPath(l):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=EF(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++){var c=TF(null,null,l,o(l,i),t,this.group,a);c&&c.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}($g);function bF(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=NF(r);t=zu(a,null,i,r.layout||"center"),VD(t).customPathData=a}else if("image"===n)t=new Fs({}),VD(t).customImagePath=e.style.image;else if("text"===n)t=new el({});else if("group"===n)t=new li;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var o=Hu(n);if(!o){var s="";0,Gi(s)}t=new o}return VD(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function _F(e,t,n,r,i,a,o,s){var l=i&&i.normal.cfg;l&&t.setTextConfig(l);var c=r&&r.style;if(c){if("text"===t.type){var u=c;Te(u,"textFill")&&(u.fill=u.textFill),Te(u,"textStroke")&&(u.stroke=u.textStroke)}var h=void 0,d=mF(t)?c.decal:null;e&&d&&(d.dirty=!0,h=Sm(d,e)),c.__decalPattern=h}VD(t).userDuring=r.during;var f={},p={};aF("shape",t,r,f,o),oF("shape",r,p),function(e,t,n,r){var i=t.enterFrom;if(r&&i)for(var a=Z(i),o=0;o<a.length;o++)n[d=a[o]]=i[d];if(!r)if(t.transition){var s=$i(t.transition);for(o=0;o<s.length;o++)if("style"!==(d=s[o])&&"shape"!==d&&"extra"!==d){var l=e[d];n[d]=l}}else iF(n,"x",e),iF(n,"y",e);var c=t.leaveTo;if(c){var u=lF(e),h=Z(c);for(o=0;o<h.length;o++){var d;u[d=h[o]]=c[d]}}}(t,r,f,o),function(e,t,n){nF(t,n,"position"),nF(t,n,"scale"),nF(t,n,"origin"),rF(t,n,"x"),rF(t,n,"y"),rF(t,n,"scaleX"),rF(t,n,"scaleY"),rF(t,n,"originX"),rF(t,n,"originY"),rF(t,n,"rotation")}(0,r,p),aF("extra",t,r,f,o),oF("extra",r,p),function(e,t,n,r,i){if(n){var a,o=e.style,s=n.enterFrom;if(i&&s){var l=Z(s);!a&&(a=r.style={});for(var c=0;c<l.length;c++)a[y=l[c]]=s[y]}if(!i&&o)if(n.transition){var u=$i(n.transition);for(!a&&(a=r.style={}),c=0;c<u.length;c++){var h=o[y=u[c]];a[y]=h}}else if(e.getAnimationStyleProps&&Q(t.transition,"style")>=0){var d=e.getAnimationStyleProps(),f=d?d.style:null;if(f){!a&&(a=r.style={});var p=Z(n);for(c=0;c<p.length;c++)f[y=p[c]]&&(h=o[y],a[y]=h)}}var g=n.leaveTo;if(g){var A=Z(g),m=lF(e),v=m.style||(m.style={});for(c=0;c<A.length;c++){var y;v[y=A[c]]=g[y]}}}}(t,r,c,f,o),p.style=c,function(e,t){var n=e.isGroup?null:e,r=t.style;if(n&&r){n.useStyle(r);var i=r.__decalPattern;i&&(n.style.decal=i);for(var a=n.animators,o=0;o<a.length;o++){var s=a[o];"style"===s.targetName&&s.changeTarget(n.style)}}t&&(t.style=null,t&&e.attr(t),t.style=r)}(t,p),function(e,t,n,r,i){if(r){var a=VD(e).userDuring,o=a?J(CF,{el:e,userDuring:a}):null,s={dataIndex:t,isFrom:!0,during:o};i?Tu(e,r,n,s):Eu(e,r,n,s)}}(t,n,a,f,o),function(e,t,n){Te(t,"silent")&&(e.silent=t.silent),Te(t,"ignore")&&(e.ignore=t.ignore),vF(e)&&Te(t,"invisible")&&(e.invisible=t.invisible);mF(e)&&Te(t,"autoBatch")&&(e.autoBatch=t.autoBatch);n||Te(t,"info")&&(VD(e).info=t.info)}(t,r,s),c?t.dirty():t.markRedraw()}var wF={},xF={setTransform:function(e,t){return wF.el[e]=t,this},getTransform:function(e){return wF.el[e]},setShape:function(e,t){return(wF.el.shape||(wF.el.shape={}))[e]=t,wF.isShapeDirty=!0,this},getShape:function(e){var t=wF.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=wF.el.style;return n&&(n[e]=t,wF.isStyleDirty=!0),this},getStyle:function(e){var t=wF.el.style;if(t)return t[e]},setExtra:function(e,t){return(wF.el.extra||(wF.el.extra={}))[e]=t,this},getExtra:function(e){var t=wF.el.extra;if(t)return t[e]}};function CF(){var e=this.el;if(e){var t=VD(e).userDuring,n=this.userDuring;t===n?(wF.el=e,wF.isShapeDirty=!1,wF.isStyleDirty=!1,n(xF),wF.isShapeDirty&&e.dirtyShape&&e.dirtyShape(),wF.isStyleDirty&&e.dirtyStyle&&e.dirtyStyle()):this.el=this.userDuring=null}}function SF(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),Pl(s)}}function kF(e,t,n){var r=n===uF,i=r?t:PF(t,n),a=i?i.z2:null;null!=a&&((r?e:e.ensureState(n)).z2=a||0)}function EF(e,t,n,r){var i=e.get("renderItem"),a=e.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):AF[a.type](a));for(var s,l,c=H({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(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,uF).getItemStyle();null!=a&&(l.fill=a),null!=o&&(l.opacity=o);var c={inheritColor:re(a)?a:"#000"},u=y(r,uF),h=fh(u,null,c,!1,!0);h.text=u.getShallow("show")?ge(e.getFormattedLabel(r,uF),Lx(t,r)):null;var d=ph(u,c,!1);return _(n,l),l=JD(l,h,d),n&&b(l,n),l.legacy=!0,l},ordinalRawValue:function(e,n){null==n&&(n=s),e=e||0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a},styleEmphasis:function(n,r){0;null==r&&(r=s);var i=v(r,cF).getItemStyle(),a=y(r,cF),o=fh(a,null,null,!0,!0);o.text=a.getShallow("show")?Ae(e.getFormattedLabel(r,cF),e.getFormattedLabel(r,uF),Lx(t,r)):null;var l=ph(a,null,!0);return _(n,i),i=JD(i,o,l),n&&b(i,n),i.legacy=!0,i},visual:function(e,n){if(null==n&&(n=s),Te(zD,e)){var r=t.getItemVisual(n,"style");return r?r[zD[e]]:null}if(Te(QD,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(H({bandWidth:r,axisKey:"axis0",stackId:jb+i},e));var a=qb(t),o=[];for(i=0;i<e.count;i++){var s=a.axis0[jb+i];s.offsetCenter=s.offset+s.width/2,o.push(s)}return o}}(H({axis:t},e))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return yh(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 W(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim;(t[i]=t[i]||[])[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}(e.getData())},h={},d={},f={},p={},g=0;g<hF.length;g++){var A=hF[g];f[A]=e.getModel(dF[A]),p[A]=e.getModel(fF[A])}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(dF[n])):m(e).getModel(dF[n]):f[n]}function y(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=m(e).getModel(fF[n])):m(e).getModel(fF[n]):p[n]}return function(e,n){return s=e,l=null,h={},d={},i&&i(H({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},u),c)};function b(e,t){for(var n in t)Te(t,n)&&(e[n]=t[n])}function _(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function TF(e,t,n,r,i,a,o){if(r){var s=BF(e,t,n,r,i,a,!0);return s&&o.setItemGraphicEl(n,s),s&&Wl(s,r.focus,r.blurScope),s}a.remove(t)}function BF(e,t,n,r,i,a,o){var s=-1,l=t;t&&IF(t,r,i)&&(s=Q(a.childrenRef(),t),t=null);var c,u,h=!t,d=t;d?d.clearStates():(d=bF(r),l&&(c=l,(u=d).copyTransform(c),vF(u)&&vF(c)&&(u.setStyle(c.style),u.z=c.z,u.z2=c.z2,u.zlevel=c.zlevel,u.invisible=c.invisible,u.ignore=c.ignore,mF(u)&&mF(c)&&u.setShape(c.shape)))),!1===r.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),gF.normal.cfg=gF.normal.conOpt=gF.emphasis.cfg=gF.emphasis.conOpt=gF.blur.cfg=gF.blur.conOpt=gF.select.cfg=gF.select.conOpt=null,gF.isLegacy=!1,function(e,t,n,r,i,a){if(e.isGroup)return;MF(n,null,a),MF(n,cF,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=bF(o),e.setTextContent(u)),_F(null,u,t,o,null,r,i,!0);for(var h=o&&o.style,d=0;d<hF.length;d++){var f=hF[d];if(f!==uF){var p=a[f].conOpt;SF(f,u,0,DF(o,p,f),null)}}h?u.dirty():u.markRedraw()}}}(d,n,r,i,h,gF),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&&IF(o,a,r)&&(o=null),o||(o=bF(a),e.setClipPath(o)),_F(null,o,t,a,null,r,i,!1)}}(d,n,r,i,h),_F(e,d,n,r,gF,i,h,!1);for(var f=0;f<hF.length;f++){var p=hF[f];if(p!==uF){var g=PF(r,p);SF(p,d,0,DF(r,g,p),gF)}}return function(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;null!=o&&(r.z2=o||0);for(var s=0;s<hF.length;s++)kF(r,t,hF[s])}}(d,r,i),"group"===r.type&&function(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,c=!1===s;if(!o&&!l&&!c)return;if(l)return u={api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t},void new zy(u.oldChildren,u.newChildren,FF,FF,u).add(OF).update(OF).remove(LF).execute();var u;c&&t.removeAll();for(var h=0;h<o;h++)a[h]&&BF(e,t.childAt(h),n,a[h],i,t,!1);for(var d=t.childCount()-1;d>=h;d--)RF(t.childAt(d),i,t)}(e,d,n,r,i),s>=0?a.replaceAt(d,s):a.add(d),d}function IF(e,t,n){var r,i=VD(e),a=t.type,o=t.shape,s=t.style;return n.isUniversalTransitionEnabled()||null!=a&&a!==i.customGraphicType||"path"===a&&((r=o)&&(Te(r,"pathData")||Te(r,"d")))&&NF(o)!==i.customPathData||"image"===a&&Te(s,"image")&&s.image!==i.customImagePath}function MF(e,t,n){var r=t?PF(e,t):e,i=t?DF(e,r,cF):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,l=s?t?PF(s,t):s:null;if(i&&(n.isLegacy||YD(i,a,!!o,!!l))){n.isLegacy=!0;var c=XD(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 PF(e,t){return t?e?e[t]:null:e}function DF(e,t,n){var r=t&&t.style;return null==r&&n===cF&&e&&(r=e.styleEmphasis),r}function FF(e,t){var n=e&&e.name;return null!=n?n:pF+t}function OF(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;BF(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function LF(e){var t=this.context;RF(t.oldChildren[e],t.seriesModel,t.group)}function RF(e,t,n){if(e){var r=VD(e).leaveToProps;r?Eu(e,r,t,{cb:function(){n.remove(e)}}):n.remove(e)}}function NF(e){return e&&(e.pathData||e.d)}var UF=oa(),jF=R,HF=J;function zF(e,t,n,r){(function e(t,n){if(oe(t)&&oe(n)){var r=!0;return W(n,function(n,i){r=r&&e(t[i],n)}),!!r}return t===n})(UF(n).lastProp,r)||(UF(n).lastProp=r,t?Eu(n,r,e):(n.stopAnimation(),n.attr(r)))}function QF(e,t){e[t.get(["label","show"])?"show":"hide"]()}function VF(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function GF(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 qF=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(zF,t,u);this.updatePointerEl(o,l,h),this.updateLabelEl(o,l,h,t)}else o=this._group=new li,this.createPointerEl(o,l,e,t),this.createLabelEl(o,l,e,t),n.getZr().add(o);GF(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=qS(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=UF(e).pointerEl=new l[i.type](jF(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=UF(e).labelEl=new el(jF(t.label));e.add(i),QF(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=UF(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=UF(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),QF(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=rh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){_t(e.event)},onmousedown:HF(this._onHandleDragMove,this,0,0),drift:HF(this._onHandleDragMove,this),ondragend:HF(this._onHandleDragEnd,this)}),r.add(i)),GF(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,Jg(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){zF(this._axisPointerModel,!t&&this._moveAnimation,this._handle,VF(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(VF(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(VF(r)),UF(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 WF(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 $F(e,t,n,r,i){var a=KF(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=Cd(o.get("padding")||0),l=o.getFont(),c=qr(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 g=o.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:u[0],y:u[1],style:fh(o,{text:a,font:l,fill:o.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function KF(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:E_(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};W(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 YF(e,t,n){var r=[1,0,0,1,0,0];return gr(r,r,n.rotation),pr(r,r,n.position),Xu([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function XF(e,t,n,r,i,a){var o=QS.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),$F(t,r,i,a,{position:YF(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ZF(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function JF(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function eO(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:a,clockwise:!0}}var tO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get("type"),l=nO(o,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&"none"!==s){var u=WF(r),h=rO[s](a,c,l);h.style=u,e.graphicKey=h.type,e.pointer=h}XF(t,e,BS(o.model,n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=BS(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=YF(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=nO(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}(qF);function nO(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var rO={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:ZF([t,n[0]],[t,n[1]],iO(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:JF([t-r/2,n[0]],[r,i],iO(e))}}};function iO(e){return"x"===e.dim?0:1}var aO=tO,oO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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}(Yd),sO=oa(),lO=W;function cO(e,t,n){if(!b.node){var r=t.getZr();sO(r).records||(sO(r).records={}),function(e,t){if(sO(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);lO(sO(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)})}sO(e).initialized=!0,n("click",ee(hO,"click")),n("mousemove",ee(hO,"mousemove")),n("globalout",uO)}(r,t),(sO(r).records[e]||(sO(r).records[e]={})).handler=n}}function uO(e,t,n){e.handler("leave",null,n)}function hO(e,t,n,r){t.handler(e,n,r)}function dO(e,t){if(!b.node){var n=t.getZr();(sO(n).records||{})[e]&&(sO(n).records[e]=null)}}var fO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";cO("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){dO("axisPointer",t)},t.prototype.dispose=function(e,t){dO("axisPointer",t)},t.type="axisPointer",t}(Ng);function pO(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=aa(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($(l.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var gO=oa();function AO(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||J(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){_O(i)&&(i=pO({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=_O(i),c=a.axesInfo,u=s.axesInfo,h="leave"===r||_O(i),d={},f={},p={list:[],map:{}},g={showPointer:ee(vO,f),showTooltip:ee(yO,p)};W(s.coordSysMap,function(e,t){var n=l||e.containPoint(i);W(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&&mO(e,o,g,!1,d)}})});var A={};return W(u,function(e,t){var n=e.linkGroup;n&&!f[t]&&W(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,bO(t),bO(e)))),A[e.key]=a}})}),W(A,function(e,t){mO(u[t],e,g,!0,d)}),function(e,t,n){var r=n.axesInfo=[];W(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(_O(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=gO(r).axisPointerLastHighlights||{},a=gO(r).axisPointerLastHighlights={};W(e,function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&W(n.seriesDataIndices,function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e})});var o=[],s=[];W(i,function(e,t){!a[t]&&s.push(e)}),W(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 mO(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 W(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),W(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&&j(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 vO(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function yO(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=$S(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 bO(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 _O(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function wO(e){YS.registerAxisPointerClass("CartesianAxisPointer",aO),e.registerComponentModel(oO),e.registerComponentView(fO),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=VS(e,t)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},AO)}var xO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(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=WF(r),h=CO[c](a,o,l,s);h.style=u,e.graphicKey=h.type,e.pointer=h}$F(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];gr(d,d,s),pr(d,d,[r.cx,r.cy]),l=Xu([o,-i],d);var f=t.getModel("axisLabel").get("rotate")||0,p=QS.innerTextLayout(s,f*Math.PI/180,-1);c=p.textAlign,u=p.textVerticalAlign}else{var g=h[1];l=r.coordToPoint([g+i,o]);var A=r.cx,m=r.cy;c=Math.abs(l[0]-A)/g<.3?"center":l[0]>A?"left":"right",u=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}(t,n,0,o,r.get(["label","margin"])))},t}(qF);var CO={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:ZF(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:eO(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(i/2-n)*a)}:{type:"Sector",shape:eO(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},SO=xO,kO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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}(Yd),EO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ua).models[0]},t.type="polarAxis",t}(Yd);G(EO,M_);var TO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.type="angleAxis",t}(EO),BO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.type="radiusAxis",t}(EO),IO=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return A(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}($_);IO.prototype.dataToRadius=$_.prototype.dataToCoord,IO.prototype.radiusToData=$_.prototype.coordToData;var MO=IO,PO=oa(),DO=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return A(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=qr(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=PO(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}($_);DO.prototype.dataToAngle=$_.prototype.dataToCoord,DO.prototype.angleToData=$_.prototype.coordToData;var FO=DO,OO=["radius","angle"];function LO(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var RO=function(){function e(e){this.dimensions=OO,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new MO,this._angleAxis=new FO,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 NO(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();W(I_(t,"radius"),function(e){i.scale.unionExtentFromData(t,e)}),W(I_(t,"angle"),function(e){r.scale.unionExtentFromData(t,e)})}}),C_(r.scale,r.model),C_(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 UO(e,t){if(e.type=t.get("type"),e.scale=S_(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 jO={dimensions:OO,create:function(e,t){var n=[];return e.eachComponent("polar",function(e,r){var i=new RO(r+"");i.update=NO;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");UO(a,s),UO(o,l),function(e,t,n){var r=t.get("center"),i=n.getWidth(),a=n.getHeight();e.cx=wi(r[0],i),e.cy=wi(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=[wi(l[0],s),wi(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",ua).models[0];0,e.coordinateSystem=t.coordinateSystem}}),n}},HO=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function zO(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 QO(e){return e.getRadiusAxis().inverse?0:1}function VO(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 GO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return A(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=$(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});VO(s),VO(a),W(HO,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||qO[t](this.group,e,r,a,o,i,s)},this)}},t.type="angleAxis",t}(YS),qO={axisLine:function(e,t,n,r,i,a){var o,s=t.getModel(["axisLine","lineStyle"]),l=QO(n),c=l?0:1;(o=0===a[c]?new Cc({shape:{cx:n.cx,cy:n.cy,r:a[l]},style:s.getLineStyle(),z2:1,silent:!0}):new qc({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[QO(n)],c=$(r,function(e){return new iu({shape:zO(n,[l,l+s],e.coord)})});e.add(Gu(c,{style:H(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[QO(n)],u=[],h=0;h<i.length;h++)for(var d=0;d<i[h].length;d++)u.push(new iu({shape:zO(n,[c,c+l],i[h][d].coord)}));e.add(Gu(u,{style:H(s.getModel("lineStyle").getLineStyle(),H(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");W(o,function(r,i){var o=l,h=r.tickValue,d=a[QO(n)],f=n.coordToPoint([d+c,r.coord]),p=n.cx,g=n.cy,A=Math.abs(f[0]-p)/d<.3?"center":f[0]>p?"left":"right",m=Math.abs(f[1]-g)/d<.3?"middle":f[1]>g?"top":"bottom";if(s&&s[h]){var v=s[h];oe(v)&&v.textStyle&&(o=new Oh(v.textStyle,l,l.ecModel))}var y=new el({silent:QS.isLabelSilent(t),style:fh(o,{x:f[0],y:f[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:A,verticalAlign:m})});if(e.add(y),u){var b=QS.makeAxisEventDataBase(t);b.targetType="axisLabel",b.value=r.rawLabel,tl(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 iu({shape:zO(n,a,r[u].coord)}))}for(u=0;u<c.length;u++)e.add(Gu(c[u],{style:H({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 iu({shape:zO(n,a,i[l][c].coord)}));e.add(Gu(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"),g=1,A=r.length;g<=A;g++){var m=g===A?r[0].coord:r[g].coord,v=l++%s.length;c[v]=c[v]||[],c[v].push(new Qc({shape:{cx:n.cx,cy:n.cy,r0:d,r:f,startAngle:h,endAngle:-m*u,clockwise:p},silent:!0})),h=-m*u}for(g=0;g<c.length;g++)e.add(Gu(c[g],{style:H({fill:s[g%s.length]},o.getAreaStyle()),silent:!0}))}}},WO=GO,$O=["axisLine","axisTickLabel","axisName"],KO=["splitLine","splitArea","minorSplitLine"],YO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return A(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new li;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 QS(e,h);W($O,d.add,d),r.add(d.getGroup()),eh(n,r,e),W(KO,function(t){e.get([t,"show"])&&!i.scale.isBlank()&&XO[t](this.group,e,a,c,u,s,l)},this)}},t.type="radiusAxis",t}(YS),XO={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 Cc({shape:{cx:n.cx,cy:n.cy,r:a[u].coord}}))}for(u=0;u<c.length;u++)e.add(Gu(c[u],{style:H({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 Cc({shape:{cx:n.cx,cy:n.cy,r:o[c][u].coord}}));e.add(Gu(l,{style:H({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 Qc({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(Gu(c[h],{style:H({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}};var ZO=YO;function JO(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function eL(e,t){return t.dim+e.model.componentIndex}var tL=function(e,t,n){var r={},i=function(e){var t={};W(e,function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=eL(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=JO(e);u[h]||c.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var d=wi(e.get("barWidth"),l),f=wi(e.get("barMaxWidth"),l),p=e.get("barGap"),g=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!=g&&(c.categoryGap=g)});var n={};return W(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=wi(e.categoryGap,i),o=wi(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,c=(s-a)/(l+(l-1)*o);c=Math.max(c,0),W(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;W(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;W(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=eL(n,a),s=JO(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,g=e.get("barMinAngle")||0;r[s]=r[s]||[];for(var A=t.mapDimension(h.dim),m=t.mapDimension(a.dim),v=bb(t,A),y="radius"!==a.dim||!e.get("roundCap",!0),b=h.dataToCoord(0),_=0,w=t.count();_<w;_++){var x=t.get(A,_),C=t.get(m,_),S=x>=0?"p":"n",k=b;v&&(r[s][C]||(r[s][C]={p:b,n:b}),k=r[s][C][S]);var E=void 0,T=void 0,B=void 0,I=void 0;if("radius"===h.dim){var M=h.dataToCoord(x)-b,P=a.dataToCoord(C);Math.abs(M)<p&&(M=(M<0?-1:1)*p),E=k,T=k+M,I=(B=P-c)-u,v&&(r[s][C][S]=T)}else{var D=h.dataToCoord(x,y)-b,F=a.dataToCoord(C);Math.abs(D)<g&&(D=(D<0?-1:1)*g),T=(E=F+c)+u,B=k,I=k+D,v&&(r[s][C][S]=I)}t.setItemLayout(_,{cx:d,cy:f,r0:E,r:T,startAngle:-B*Math.PI/180,endAngle:-I*Math.PI/180,clockwise:B>=I})}}})},nL={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},rL={splitNumber:5},iL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.type="polar",t}(Ng);function aL(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 oL=["axisLine","axisTickLabel","axisName"],sL=["splitArea","splitLine"],lL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return A(t,e),t.prototype.render=function(t,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new li;var s=aL(t),l=new QS(t,s);W(oL,l.add,l),a.add(this._axisGroup),a.add(l.getGroup()),W(sL,function(e){t.get([e,"show"])&&cL[e](this,this.group,this._axisGroup,t)},this),eh(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){JS(this)},t.type="singleAxis",t}(YS),cL={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=[],g=0;g<d.length;++g){var A=i.toGlobalCoord(d[g].coord);c?(f[0]=A,f[1]=l.y,p[0]=A,p[1]=l.y+l.height):(f[0]=l.x,f[1]=A,p[0]=l.x+l.width,p[1]=A);var m=h++%s.length;u[m]=u[m]||[],u[m].push(new iu({subPixelOptimize:!0,shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},silent:!0}))}var v=o.getLineStyle(["color"]);for(g=0;g<u.length;++g)t.add(Gu(u[g],{style:H({stroke:s[g%s.length]},v),silent:!0}))}},splitArea:function(e,t,n,r){ZS(e,n,r,r)}},uL=lL,hL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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}(Yd);G(hL,M_.prototype);var dL=hL,fL=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 A(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}($_),pL=["single"];function gL(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var AL=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=pL,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 fL(r,S_(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();W(t.mapDimensionsAll(this.dimension),function(e){this._axis.scale.unionExtentFromData(t,e)},this),C_(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(e,t){this._rect=zd({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 gL(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return gL(t)===this?this.pointToData(n):null},e}();var mL={create:function(e,t){var n=[];return e.eachComponent("singleAxis",function(r,i){var a=new AL(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",ua).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n},dimensions:pL},vL=["x","y"],yL=["width","height"],bL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=xL(o,1-wL(a)),l=o.dataToPoint(t)[0],c=r.get("type");if(c&&"none"!==c){var u=WF(r),h=_L[c](a,l,s);h.style=u,e.graphicKey=h.type,e.pointer=h}XF(t,e,aL(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=aL(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=YF(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=wL(i),s=xL(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=xL(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}(qF),_L={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:ZF([t,n[0]],[t,n[1]],wL(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:JF([t-r/2,n[0]],[r,i],wL(e))}}};function wL(e){return e.isHorizontal()?0:1}function xL(e,t){var n=e.getRect();return[n[vL[t]],n[vL[t]]+n[yL[t]]]}var CL=bL,SL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.type="single",t}(Ng);function kL(e,t){var n,r=e.cellSize;1===(n=te(r)?r:e.cellSize=[r,r]).length&&(n[1]=n[0]);var i=$([0,1],function(e){return function(e,t){return null!=e[Ud[t][0]]||null!=e[Ud[t][1]]&&null!=e[Ud[t][2]]}(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]});Gd(e,t,{type:"box",ignoreSize:i})}var EL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.init=function(t,n,r){var i=qd(t);e.prototype.init.apply(this,arguments),kL(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),kL(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%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Yd),TL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,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 zs({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 eu({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,W(t,function(e,t){n=n.replace("{"+t+"}",r?Ed(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},g=this._formatterLabel(f,p),A=new el({z2:30,style:fh(i,{text:g})});A.attr(this._yearTextPositionControl(A,h[o],n,o,a)),r.add(A)}},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,r){var i=e.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),o=i.get("margin"),s=i.get("position"),l=i.get("align"),c=[this._tlpoints,this._blpoints];a&&!re(a)||(a&&(t=qh(a)||t),a=t.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,h="horizontal"===n?0:1;o="start"===s?-o:o;for(var d="center"===l,f=0;f<c[u].length-1;f++){var p=c[u][f].slice(),g=this._firstDayOfMonth[f];if(d){var A=this._firstDayPoints[f];p[h]=(A[h]+c[0][f+1][h])/2}var m=i.get("formatter"),v=a[+g.m-1],y={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:v},b=this._formatterLabel(m,y),_=new el({z2:30,style:j(fh(i,{text:b}),this._monthTextPositionControl(p,d,n,s,o))});r.add(_)}}},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,i){var a=e.getModel("dayLabel");if(a.get("show")){var o=e.coordinateSystem,s=a.get("position"),l=a.get("nameMap"),c=a.get("margin"),u=o.getFirstDayOfWeek();if(!l||re(l))l&&(t=qh(l)||t),l=t.get(["time","dayOfWeekShort"])||$(t.get(["time","dayOfWeekAbbr"]),function(e){return e[0]});var h=o.getNextNDay(n.end.time,7-n.lweek).time,d=[o.getCellWidth(),o.getCellHeight()];c=wi(c,Math.min(d[1],d[0])),"start"===s&&(h=o.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var f=0;f<7;f++){var p,g=o.getNextNDay(h,f),A=o.dataToRect([g.time],!1).center;p=Math.abs((f+u)%7);var m=new el({z2:30,style:j(fh(a,{text:l[p]}),this._weekTextPositionControl(A,r,s,c,d))});i.add(m)}}},t.type="calendar",t}(Ng);function BL(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var IL=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=Fi(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];W([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=zd(a,s);function c(e,t){return null!=e[t]&&"auto"!==e[t]}W([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=BL(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=BL(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 ML=oa(),PL={path:null,compoundPath:null,group:li,image:Fs,text:el},DL=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]}])},FL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return A(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=Ji(i,a,"normalMerge"),s=this._elOptionsToUpdate=[];W(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=j({},n),i=e[t],a=n.$action||"merge";if("merge"===a){if(i)N(i,r,!0),Gd(i,r,{ignoreSize:!0}),Wd(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=[NL(t,["left","right"]),NL(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){W(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}(Yd),OL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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;W(t,function(t){var i=na(t.id,null),a=null!=i?n.get(i):null,o=na(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&&YD(c,l,!!h,!!u)){var d=XD(c,l,!0);!h&&d.textConfig&&(h=t.textConfig=d.textConfig),!u&&d.textContent&&(u=d.textContent)}var f=function(e){return e=j({},e),W(["id","parentId","$action","hv","bounding","textContent"].concat(Nd),function(t){delete e[t]}),e}(t);var p=t.$action||"merge";"merge"===p?a?a.attr(f):LL(i,s,f,n):"replace"===p?(RL(a,n),LL(i,s,f,n)):"remove"===p&&RL(a,n);var g=n.get(i);if(g&&u)if("merge"===p){var A=g.getTextContent();A?A.attr(u):g.setTextContent(new el(u))}else"replace"===p&&g.setTextContent(new el(u));if(g){var m=ML(g);m.__ecGraphicWidthOption=t.width,m.__ecGraphicHeightOption=t.height,function(e,t,n){var r=tl(e).eventData;e.silent||e.ignore||r||(r=tl(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});r&&(r.info=n.info)}(g,e,t),sh({el:g,componentModel:e,itemName:g.name,itemTooltipOption:t.tooltip})}})}},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=na((h=n[s]).id,null))?i.get(d):null)&&f.isGroup){var l=(p=f.parent)===r,c=ML(f),u=ML(p);c.__ecGraphicWidth=wi(c.__ecGraphicWidthOption,l?a:u.__ecGraphicWidth)||0,c.__ecGraphicHeight=wi(c.__ecGraphicHeightOption,l?o:u.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){var h,d,f;if(f=null!=(d=na((h=n[s]).id,null))?i.get(d):null){var p=f.parent;u=ML(p);Qd(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){RL(t,e)}),this._elMap=Se()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ng);function LL(e,t,n,r){var i=n.type;var a=Te(PL,i)?PL[i]:Hu(i);var o=new a(n);t.add(o),r.set(e,o),ML(o).__ecGraphicId=e}function RL(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse(function(e){RL(e,t)}),t.removeKey(ML(e).__ecGraphicId),n.remove(e))}function NL(e,t){var n;return W(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}var UL=["x","y","radius","angle","single"],jL=["cartesian2d","polar","singleAxis"];function HL(e){return e+"Axis"}function zL(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 QL(e){var t=e.ecModel,n={infoList:[],infoMap:Se()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(HL(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 VL=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 GL(e){var t={};return W(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var qL=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 A(t,e),t.prototype.init=function(e,t,n){var r=GL(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=GL(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;W([["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 W(UL,function(n){var r=this.getReferringComponents(HL(n),ha);if(r.specified){t=!0;var i=new VL;W(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 VL;if(a.add(i.componentIndex),e.set(n,a),r=!1,"x"===n||"y"===n){var o=i.getReferringComponents("grid",ua).models[0];o&&W(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents("grid",ua).models[0]&&a.add(e.componentIndex)})}}}r&&W(UL,function(t){if(r){var i=n.findComponents({mainType:HL(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var a=new VL;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");W([["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(HL(t),n))},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){W(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(HL(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;W([["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;W(["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}(Yd),WL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.type="dataZoom.select",t}(qL),$L=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(Ng),KL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.type="dataZoom.select",t}($L),YL=W,XL=Ci;var ZL=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 Q(jL,t)>=0}(t)){var n=HL(this._dimName),r=t.getReferringComponents(n,ua).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=[];YL(["start","end"],function(l,c){var u=e[l],h=e[l+"Value"];"percent"===i[c]?(null==u&&(u=a[c]),h=r.parse(_i(u,a,n))):(t=!0,u=_i(h=null==h?n[c]:r.parse(h),n,a)),s[c]=h,o[c]=u}),XL(s),XL(o);var l=this._minMaxSpan;function c(e,t,n,i,a){var o=a?"Span":"ValueSpan";SI(0,e,n,"all",l["min"+o],l["max"+o]);for(var s=0;s<2;s++)t[s]=_i(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];YL(n,function(e){!function(e,t,n){t&&W(I_(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=__(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&&YL(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var o=t.getStore(),s=$(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,l=0;l<r.length;l++){var c=o.get(s[l],e),u=!isNaN(c),h=c<a[0],d=c>a[1];if(u&&!h&&!d)return!0;u&&(i=!0),h&&(t=!0),d&&(n=!0)}return i&&t&&n})}else YL(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)}});YL(r,function(e){t.setApproximateExtent(a,e)})}})}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;YL(["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=_i(n[0]+a,n,[0,100],!0):null!=i&&(a=_i(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=Ei(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}(),JL={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){var a=e.getComponent(HL(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 ZL(t,r,a,e),n.push(i.__dzAxisProxy))});var r=Se();return W(n,function(e){W(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 eR=!1;function tR(e){eR||(eR=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,JL),function(e){e.registerAction("dataZoom",function(e,t){W(zL(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 nR(e){e.registerComponentModel(WL),e.registerComponentView(KL),tR(e)}var rR=function(){return function(){}}(),iR={};function aR(e,t){iR[e]=t}function oR(e){return iR[e]}var sR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;W(this.option.feature,function(e,n){var r=oR(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,position:"bottom"}},t}(Yd);function lR(e,t){var n=Cd(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new zs({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 cR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(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=[];W(o,function(e,t){l.push(t)}),new zy(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=zd(r,a,i);Hd(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Qd(e,r,a,i)}(i,e,n),i.add(lR(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=qr(t,el.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],g=new Oh(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:g.option.onclick,featureName:d};else{var A=oR(d);if(!A)return;h=new A}s[d]=h}else if(!(h=s[f]))return;h.uid=Rh("toolbox-feature"),h.model=g,h.ecModel=t,h.api=n;var m=h instanceof rR;d||!f?!g.get("show")||m&&h.unusable?m&&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 rR&&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={};W(l,function(s,l){var d=rh(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 g=new el({style:{text:c[l],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});d.setTextContent(g),sh({el:d,componentModel:e,itemName:l,formatterParamsExtra:{title:c[l]}}),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";g.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),d.setTextConfig({position:h.get("textPosition")||n}),g.ignore=!e.get("showTitle"),Ol(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",l])&&Ll(this),g.hide()}),("emphasis"===r.get(["iconStatus",l])?Ol:Ll)(d),i.add(d),d.on("click",J(o.onclick,o,t,n,l)),p[l]=d})}(g,h,d),g.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?Ol:Ll)(r[e])},h instanceof rR&&h.render&&h.render(g,t,n,r)):m&&h.dispose&&h.dispose(t,n)}},t.prototype.updateView=function(e,t,n,r){W(this._features,function(e){e instanceof rR&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){W(this._features,function(n){n instanceof rR&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){W(this._features,function(n){n instanceof rR&&n.dispose&&n.dispose(e,t)})},t.type="toolbox",t}(Ng),uR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(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||!b.browser.newEdge&&(b.browser.ie||b.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=window.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 g=p.contentWindow,A=g.document;A.open("image/svg+xml","replace"),A.write(c),A.close(),g.focus(),A.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 _=document.createElement("a");_.download=r+"."+a,_.target="_blank",_.href=o;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});_.dispatchEvent(w)}},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.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(rR);uR.prototype.unusable=!b.canvasSupported;var hR=uR,dR=[["line","bar"],["stack"]],fR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return W(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.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(pR[n]){var a,o={series:[]};W(dR,function(e){Q(e,n)>=0&&W(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=pR[n](t,i,e,r);a&&(H(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,ua).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}}});var s=n;"stack"===n&&(a=N({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:o,newTitle:a,featureName:"magicType"})}},t}(rR),pR={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)}};Cy({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var gR=fR,AR=new Array(60).join("-"),mR="\t";function vR(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=[],W(n,function(e,t){var n=e.categoryAxis,i=e.valueAxis.dim,a=[" "].concat($(e.series,function(e){return e.name})),o=[n.model.getCategories()];W(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(mR)],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(mR))}r.push(s.join("\n"))}),r.join("\n\n"+AR+"\n\n")),(t=i.other,$(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+mR:"")+r.join(mR))}),n.join("\n")}).join("\n\n"+AR+"\n\n"))],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+AR+"\n\n"),meta:i.meta}}function yR(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var bR=new RegExp("["+mR+"]+","g");function _R(e,t){var n={series:[]};return W(e.split(new RegExp("\n*"+AR+"\n*","g")),function(e,r){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(mR)>=0)return!0}(e)){var i=function(e){for(var t=e.split(/\n+/g),n=[],r=$(yR(t.shift()).split(bR),function(e){return{name:e,data:[]}}),i=0;i<t.length;i++){var a=yR(t[i]).split(bR);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=yR(t.shift()),r=[],i=0;i<t.length;i++){var a=yR(t[i]);if(a){var o=a.split(bR),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 wR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(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=vR(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 g="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",A=document.createElement("div"),m=document.createElement("div");g+=";background-color:"+r.get("buttonColor"),g+=";color:"+r.get("buttonTextColor");var v=this;function y(){n.removeChild(i),v._dom=null}bt(A,"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()):_R(l.value,f)}catch(e){throw y(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),y()}}),A.innerHTML=o[1],m.innerHTML=o[2],m.style.cssText=g,A.style.cssText=g,!r.get("readOnly")&&p.appendChild(m),p.appendChild(A),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.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(rR);Cy({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];W(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 $(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=H(e,r),i&&delete e.name,e}return e})}(e.data,i)})}else n.push(j({type:"scatter"},e))}),t.mergeOption(H({series:n},e.newOption))});var xR=wR,CR=W,SR=oa();function kR(e){var t=SR(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var ER=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype.onclick=function(e,t){!function(e){SR(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.getLocaleModel().get(["toolbox","restore","title"])}},t}(rR);Cy({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var TR=ER,BR=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],IR=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=PR(t,e);W(DR,function(e,t){(!n||!n.include||Q(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=LR[e.brushType](0,n,t);e.__rangeOffset={offset:NR[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){W(e,function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&W(r.coordSyses,function(r){var i=LR[e.brushType](1,r,e.range,!0);n(e,i.values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){W(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=LR[e.brushType](0,s.coordSys,e.coordRange),c=e.__rangeOffset;e.range=c?NR[e.brushType](l.values,c.offset,(n=l.xyMinMax,r=c.xyMinMax,i=jR(n),a=jR(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 $(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:BM(r),isTargetByCursor:MM(r,e,n.coordSysModel),getLinearBrushOtherExtent:IM(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&Q(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=PR(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<FR.length;s++)if(FR[s](r,a))return a}return!0},e}();function MR(e){return e[0]>e[1]&&e.reverse(),e}function PR(e,t){return la(e,t,{includeMainTypes:BR})}var DR={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=Se(),o={},s={};(n||r||i)&&(W(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),W(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),W(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=[];W(e.coordinateSystem.getCartesians(),function(e,t){(Q(n,e.getAxis("x").model)>=0||Q(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:OR.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){W(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:OR.geo})})}},FR=[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}],OR={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Yu(e)),t}},LR={lineX:ee(RR,0),lineY:ee(RR,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[MR([i[0],a[0]]),MR([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:$(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function RR(e,t,n,r){var i=n.getAxis(["x","y"][e]),a=MR($([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var NR={lineX:ee(UR,0),lineY:ee(UR,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 $(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function UR(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function jR(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var HR,zR,QR=IR,VR=W,GR=Wi+"toolbox-dataZoom_",qR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new TM(n.getZr()),this._brushController.on("brush",J(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 QR($R(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 kR(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 QR($R(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=kR(e);CR(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=SI(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.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(rR),WR={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=kR(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return CR(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 $R(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}HR="dataZoom",zR=function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],a=la(e,$R(r));return VR(a.xAxisModels,function(e){return o(e,"xAxis","xAxisIndex")}),VR(a.yAxisModels,function(e){return o(e,"yAxis","yAxisIndex")}),i}function o(e,t,n){var a=e.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:GR+t+a};o[n]=a,i.push(o)}},ye(null==mf.get(HR)&&zR),mf.set(HR,zR);var KR=qR;var YR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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}(Yd);function XR(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function ZR(e){if(b.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var JR=ZR(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function eN(e,t){if(!e)return t;t=xd(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var tN=eN(ZR(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),nN=eN(JR,"transform"),rN="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(b.transform3dSupported?"will-change:transform;":"");function iN(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!b.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=b.transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+nN+":"+o+";":[["top",0],["left",0],[JR,o]]}function aN(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=wg(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=" "+e/2+"s cubic-bezier(0.23,1,0.32,1)",r="opacity"+n+",visibility"+n;return t||(n=" "+e+"s cubic-bezier(0.23,1,0.32,1)",r+=b.transformSupported?","+nN+n:",left"+n+",top"+n),tN+":"+r}(i,n)),a&&(b.canvasSupported?r.push("background-color:"+a):(r.push("background-color:#"+vn(a)),r.push("filter:alpha(opacity=70)"))),W(["width","color","radius"],function(t){var n="border-"+t,i=xd(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),W(["decoration","align"],function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)}),t.join(";")}(u)),null!=h&&r.push("padding:"+Cd(h).join("px ")+"px"),r.join(";")+";"}function oN(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 sN=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,b.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;oN(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,n,r,i=this._container,a=(n="position",(r=(t=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t))?n?r[n]:r:null),o=i.style;"absolute"!==o.position&&"absolute"!==a&&(o.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=n.style,i=this._styleCoord;n.innerHTML?r.cssText=rN+aN(e,!this._firstShow,this._longHide)+iN(i[0],i[1],!0)+"border-color:"+Od(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(null!=e){var o="";if(re(i)&&"item"===n.get("trigger")&&!XR(n)&&(o=function(e,t,n){if(!re(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=Od(t);var a,o,s=a="left"===(a=n)?"right":"right"===a?"left":"top"===a?"bottom":"top",l=Math.max(1.5*Math.round(i),6),c="",u=nN+":";Q(["left","right"],s)>-1?(c+="top:50%",u+="translateY(-50%) rotate("+(o="left"===s?-225:-45)+"deg)"):(c+="left:50%",u+="translateX(-50%) rotate("+(o="top"===s?225:45)+"deg)");var h=o*Math.PI/180,d=l+i,f=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),p=t+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;",(c+=";"+s+":-"+Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2))/100+"px")+";"+u+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),re(e))a.innerHTML=e+o;else if(e){a.innerHTML="",te(e)||(e=[e]);for(var s=0;s<e.length;s++)ce(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var l=document.createElement("div");l.innerHTML=o,a.appendChild(l)}}}else a.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(oN(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;W(iN(n[0],n[1]),function(e){r[e[0]]=e[1]})}},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,t=this.el.style;t.visibility="hidden",t.opacity="0",b.transform3dSupported&&(t.willChange=""),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(J(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();function lN(e){return Math.max(0,e)}function cN(e){var t=lN(e.shadowBlur||0),n=lN(e.shadowOffsetX||0),r=lN(e.shadowOffsetY||0);return{left:lN(t-n),right:lN(t+n),top:lN(t-r),bottom:lN(t+r)}}function uN(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var hN=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),uN(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)&&Gi(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new el({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:wg(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=cN(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;uN(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=lN(i.borderWidth||0),o=cN(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(J(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}(),dN=J,fN=W,pN=wi,gN=new zs({shape:{x:-1,y:-1,width:2,height:2}});function AN(e,t,n){var r,i=t.ecModel;n?(r=new Oh(n,i,i),r=new Oh(t.option,r,i)):r=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Oh&&(o=o.get("tooltip",!0)),re(o)&&(o={formatter:o}),o&&(r=new Oh(o,r,i)))}return r}function mN(e,t){return e.dispatchAction||J(t.dispatchAction,t)}function vN(e){return"center"===e||"middle"===e}var yN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.init=function(e,t){if(!b.node){var n,r=e.getComponent("tooltip"),i=r.get("renderMode");this._renderMode="auto"===(n=i)?b.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===this._renderMode?new hN(t):new sN(t.getDom(),t,{appendToBody:r.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!b.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(),this._updatePosition="html"===this._renderMode?Zg(dN(this._doUpdatePosition,this),50):this._doUpdatePosition}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");cO("itemTooltip",this._api,dN(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&&!b.node){var i=mN(r,n);this._ticket="";var a=r.dataByCoordSys,o=function(e,t,n){var r=ca(e).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var a,o=da(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!o)return;if(n.getViewOfComponentModel(o).group.traverse(function(t){var n=tl(t).tooltipConfig;if(n&&n.name===e.name)return a=t,!0}),a)return{componentMainType:i,componentIndex:o.componentIndex,el:a}}(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=gN;l.x=r.x,l.y=r.y,l.update(),tl(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},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 c=pO(r,t),u=c.point[0],h=c.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:c.el,position:r.position,positionDefault:"bottom"},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(mN(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"===AN([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).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;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var i,a;this._lastDataByCoordSys=null,RA(n,function(e){return null!=tl(e).dataIndex?(i=e,!0):null!=tl(e).tooltipConfig?(a=e,!0):void 0},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=J(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=AN([t.tooltipOption],r),o=this._renderMode,s=[],l=pg("section",{blocks:[],noHeader:!0}),c=[],u=new xg;fN(e,function(e){fN(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var i=KF(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),a=pg("section",{header:i,noHeader:!be(i),sortBlocks:!0,blocks:[]});l.blocks.push(a),W(e.seriesDataIndices,function(l){var h=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=h.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=E_(t.axis,{value:r}),f.axisValueLabel=i,f.marker=u.makeTooltipMarker("item",Od(f.color),o);var p=Mp(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=mg(l,u,o,d,n.get("useUTC"),a.get("textStyle"));f&&c.unshift(f);var p="richText"===o?"\n\n":"<br/>",g=c.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,g,s,Math.random()+"",i[0],i[1],h,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=tl(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,l=i.dataIndex,c=i.dataType,u=s.getData(c),h=this._renderMode,d=e.positionDefault,f=AN([u.getItemModel(l),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,c),A=new xg;g.marker=A.makeTooltipMarker("item",Od(g.color),h);var m=Mp(s.formatTooltip(l,!1,c)),v=f.get("order"),y=m.markupFragment?mg(m.markupFragment,A,h,v,r.get("useUTC"),f.get("textStyle")):m.markupText,b="item_"+s.name+"_"+l;this._showOrMove(f,function(){this._showTooltipContent(f,y,g,b,e.offsetX,e.offsetY,e.position,e.target,A)}),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=tl(t),i=r.tooltipConfig.option||{};if(re(i)){i={content:i,formatter:i}}var a=[i],o=this._ecModel.getComponent(r.componentMainType,r.componentIndex);o&&a.push(o),a.push({formatter:i.content});var s=e.positionDefault,l=AN(a,this._tooltipModel,s?{position:s}:null),c=l.get("content"),u=Math.random()+"",h=new xg;this._showOrMove(l,function(){var n=R(l.get("formatterParams")||{});this._showTooltipContent(l,c,n,u,e.offsetX,e.offsetY,e.position,t,h)}),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")).color;if(u)if(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=id(p.axisValue,h,f)),h=Md(h,n,!0)}else if(ne(u)){var g=dN(function(t,r){t===this._ticket&&(c.setContent(r,l,e,d,o),this._updatePosition(e,o,i,a,c,n,s))},this);this._ticket=r,h=u(n,r,g)}else h=u;c.setContent(h,l,e,d,o),c.show(e,d),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._doUpdatePosition=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=pN(t[0],s),r=pN(t[1],l);else if(oe(t)){var f=t;f.width=c[0],f.height=c[1];var p=zd(f,{width:s,height:l});n=p.x,r=p.y,u=null,h=null}else if(re(t)&&o){var g=function(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-i/2,l=t.y+u/2-a/2;break;case"top":s=t.x+c/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+c/2-i/2,l=t.y+u+o;break;case"left":s=t.x-i-o,l=t.y+u/2-a/2;break;case"right":s=t.x+c+o,l=t.y+u/2-a/2}return[s,l]}(t,d,c,e.get("borderWidth"));n=g[0],r=g[1]}else{g=function(e,t,n,r,i,a,o){var s=n.getSize(),l=s[0],c=s[1];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=g[0],r=g[1]}if(u&&(n-=vN(u)?c[0]/2:"right"===u?c[0]:0),h&&(r-=vN(h)?c[1]/2:"bottom"===h?c[1]:0),XR(e)){g=function(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];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=g[0],r=g[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&fN(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];(i=i&&o.length===s.length)&&fN(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],l=a.seriesDataIndices||[];(i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===l.length)&&fN(o,function(e,t){var n=l[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&W(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){b.node||(this._tooltipContent.dispose(),dO("itemTooltip",t))},t.type="tooltip",t}(Ng);var bN=["rect","polygon","keep","clear"];function _N(e,t){var n=$i(e?e.brush:[]);if(n.length){var r=[];W(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={},W(a=c,function(e){o[e]=1}),a.length=0,W(o,function(e,t){a.push(t)}),t&&!c.length&&c.push.apply(c,bN)}}var wN=W;function xN(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function CN(e,t,n){var r={};return wN(t,function(t){var i,a=r[t]=((i=function(){}).prototype.__hidden=i.prototype,new i);wN(e[t],function(e,r){if(TT.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new TT(i),"opacity"===r&&((i=R(i)).type="colorAlpha",a.__hidden.__alphaForOpacity=new TT(i))}})}),r}function SN(e,t,n){var r;W(n,function(e){t.hasOwnProperty(e)&&xN(t[e])&&(r=!0)}),r&&W(n,function(n){t.hasOwnProperty(n)&&xN(t[n])?e[n]=R(t[n]):delete e[n]})}var kN={lineX:EN(0),lineY:EN(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])&&Ym(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!!(Ym(r,i,a)||Ym(r,i+o,a)||Ym(r,i,a+s)||Ym(r,i+o,a+s)||jr.create(e).contain(l[0],l[1])||ih(i,a,i+o,a,r)||ih(i,a,i,a+s,r)||ih(i+o,a,i+o,a+s,r)||ih(i,a+s,i+o,a+s,r))||void 0}}};function EN(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var i=r.range;return TN(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(),TN(s[0],o)||TN(s[1],o)||TN(o[0],s)||TN(o[1],s)}}}}function TN(e,t){return t[0]<=e&&e<=t[1]}var BN=["inBrush","outOfBrush"],IN="__ecBrushSelect",MN="__ecInBrushSelectEvent";function PN(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new QR(t.option,e)).setInputRanges(t.areas,e)})}function DN(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})}),PN(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=$(t.areas,function(e){var t=LN[e.brushType],n=H({boundingRect:t?t(e):void 0},e);return n.selectors=function(e){var t=e.brushType,n={point:function(r){return kN[t].point(r,n,e)},rect:function(r){return kN[t].rect(r,n,e)}};return n}(n),n}),p=CN(t.option,BN,function(e){e.mappingMethod="fixed"});function g(e){return"all"===l||!!c[e]}function A(e){return!!e.length}te(l)&&W(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(),g(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)?Q(n,t)<0:t!==n)}(t,r))return;if(W(f,function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),d=d||A(i)}),g(r)&&A(i)){var a=n.getData();a.each(function(e){ON(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=g(t)?function(e){return u[e]?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return ON(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?d:A(r))&&function(e,t,n,r,i,a){var o,s={};function l(e){return PA(n,o,e)}function c(e,t){FA(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],g=0,A=p.length;g<A;g++){var m=p[g];f[m]&&f[m].applyVisual(e,l,c)}}W(e,function(e){var n=TT.prepareVisualTypes(t[e]);s[e]=n}),null==a?n.each(u):n.each([a],u)}(BN,p,i,a)})}),function(e,t,n,r,i){if(!i)return;var a=e.getZr();if(a[MN])return;a[IN]||(a[IN]=FN);Jg(a,IN,n,t)(e,r)}(t,r,i,a,n)}function FN(e,t){if(!e.isDisposed()){var n=e.getZr();n[MN]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[MN]=!1}}function ON(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 LN={rect:function(e){return RN(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&&RN(t)}};function RN(e){return new jr(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var NN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new TM(t.getZr())).on("brush",J(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){PN(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}(Ng);function UN(e,t){return N({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Oh(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var jN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return A(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&SN(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=$(e,function(e){return UN(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=UN(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}(Yd),HN=["rect","polygon","lineX","lineY","keep","clear"],zN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(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,W(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 W(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:HN.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.getLocaleModel().get(["toolbox","brush","title"])}},t}(rR);var QN=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 A(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}(Yd),VN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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=ge(e.get("textBaseline"),e.get("textVerticalAlign")),l=new el({style:fh(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=e.get("subtext"),h=new el({style:fh(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(){Ld(d,"_"+e.get("target"))}),f&&h.on("click",function(){Ld(f,"_"+e.get("subtarget"))}),tl(l).eventData=tl(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),u&&r.add(h);var g=r.getBoundingRect(),A=e.getBoxLayoutParams();A.width=g.width,A.height=g.height;var m=zd(A,{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),g=r.getBoundingRect();var y=m.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var _=new zs({shape:{x:g.x-y[3],y:g.y-y[0],width:g.width+y[1]+y[3],height:g.height+y[0]+y[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});r.add(_)}},t.type="title",t}(Ng);var GN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return A(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=[],W(n,function(t,n){var r,a=na(Xi(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 db([{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}(Yd),qN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.type="timeline.slider",t.defaultOption=Nh(GN.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}(GN);G(qN,Ip.prototype);var WN=qN,$N=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.type="timeline",t}(Ng),KN=function(e){function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a}return A(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}($_),YN=Math.PI,XN=oa();function ZN(e,t,n,r,i,a){var o=t.get("color");i?(i.setColor(o),n.add(i),a&&a.onUpdate(i)):((i=KA(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=YA(e.get("symbolSize"));r.scaleX=l[0]/2,r.scaleY=l[1]/2;var c=XA(e.get("symbolOffset"),l);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var u=e.get("symbolRotate");return r.rotation=(u||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function JN(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 eU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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 pg("nameValue",{noName:!0,value:o.scale.getLabel({value:e})})},W(["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 zd(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:YN/2},d="vertical"===s?l.height:l.width,f=e.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,A=p?f.get("itemGap"):0,m=g+A,v=e.get(["label","rotate"])||0;v=v*YN/180;var y=f.get("position",!0),b=p&&f.get("showPlayBtn",!0),_=p&&f.get("showPrevBtn",!0),w=p&&f.get("showNextBtn",!0),x=0,C=d;"left"===y||"bottom"===y?(b&&(r=[0,0],x+=m),_&&(i=[x,0],x+=m),w&&(a=[C-g,0],C-=m)):(b&&(r=[C-g,0],C-=m),_&&(i=[0,0],x+=m),w&&(a=[C-g,0],C-=m));var S=[x,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:g,controlGap:A}},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;pr(a,a,[-o,-s]),gr(a,a,-YN/2),pr(a,a,[o,s]),(i=i.clone()).applyTransform(a)}var l=A(i),c=A(n.getBoundingRect()),u=A(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 g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function A(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,g(n),g(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 Lb({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new o_({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Ub}}(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 KN("value",i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new li;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 iu({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:j({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new iu({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:H({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=[],W(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:J(i._changeTimeline,i,e.value)},d=ZN(s,l,t,h);d.ensureState("emphasis").style=c.getItemStyle(),d.ensureState("progress").style=u.getItemStyle(),Wl(d);var f=tl(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=[],W(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 el({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:J(i._changeTimeline,i,o),silent:!1,style:fh(l,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=fh(c),d.ensureState("progress").style=fh(u),t.add(d),Wl(d),XN(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=Yr(ge(r.get(["controlStyle",n+"BtnSize"]),i),i),h=function(e,t,n,r){var i=r.style,a=rh(e.get(["controlStyle",t]),r||{},new jr(n[0],n[1],n[2],n[3]));i&&a.setStyle(i);return a}(r,n+"Icon",[0,-u/2,u,u],{x:e[0],y:e[1],originX:i/2,originY:0,rotation:c?-a:0,rectHover:!0,style:o,onclick:l});h.ensureState("emphasis").style=s,t.add(h),Wl(h)}}u(e.nextBtnPosition,"next",J(this._changeTimeline,this,c?"-":"+")),u(e.prevBtnPosition,"prev",J(this._changeTimeline,this,c?"+":"-")),u(e.playPosition,l?"stop":"play",J(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=J(s._handlePointerDrag,s),e.ondragend=J(s._handlePointerDragend,s),JN(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){JN(e,s._progressLine,a,n,r)}};this._currentPointer=ZN(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=Ci(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 Xu(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",XN(n[r]).dataIndex<=e)},t.type="timeline.slider",t}($N);function tU(e){var t=e&&e.timeline;te(t)||(t=t?[t]:[]),W(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(nU(e),rU(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});rU(r,"position")||(r.position=e.controlPosition),"none"!==r.position||rU(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}W(e.data||[],function(e){oe(e)&&!te(e)&&(!rU(e,"value")&&rU(e,"name")&&(e.value=e.name),nU(e))})}(e)})}function nU(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};W(r,function(e,t){a[t]||rU(i,t)||(i[t]=e)}),n.label&&!rU(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function rU(e,t){return e.hasOwnProperty(t)}function iU(e,t){if(!e)return!1;for(var n=te(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function aU(e){Ki(e,"label",["show"])}var oU=oa(),sU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return A(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(b.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=oU(e)[i];n&&n.data?(a?a._mergeOption(n,t,!0):(r&&aU(n),W(n.data,function(e){e instanceof Array?(aU(e[0]),aU(e[1])):aU(e)}),j(a=this.createMarkerModelFromSeries(n,this,t),{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),oU(e)[i]=a):oU(e)[i]=null},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return pg("section",{header:this.name,blocks:[pg("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 oU(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Yd);G(sU,Ip.prototype);var lU=sU,cU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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}(lU);function uU(e,t,n,r,i,a){var o=[],s=bb(t,r)?t.getCalculationInfo("stackResultDimension"):r,l=AU(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=Si(t.get(r,c));return(h=Math.min(h,20))>=0&&(o[a]=+o[a].toFixed(h)),[o,u]}var hU={min:ee(uU,"min"),max:ee(uU,"max"),average:ee(uU,"average"),median:ee(uU,"median")};function dU(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=fU(t,n,r,e);if((t=R(t)).type&&hU[t.type]&&a.baseAxis&&a.valueAxis){var o=Q(i,a.baseAxis.dim),s=Q(i,a.valueAxis.dim),l=hU[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++)hU[c[u]]&&(c[u]=AU(n,n.mapDimension(i[u]),c[u]));t.coord=c}}return t}function fU(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().getDimensionInfo(t);return n&&n.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 pU(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 gU(e,t){return e?function(e,n,r,i){return Op(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return Op(e.value,t[i])}}function AU(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 mU=oa(),vU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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){mU(e).keep=!1}),t.eachSeries(function(e){var i=lU.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!mU(e).keep&&r.group.remove(e.group)})},t.prototype.markKeep=function(e){mU(e).keep=!0},t.prototype.blurSeries=function(e){var t=this;W(e,function(e){var n=lU.getMarkerModelFromSeries(e,t.type);n&&n.getData().eachItemGraphicEl(function(e){e&&Rl(e)})})},t.type="marker",t}(Ng);function yU(e,t,n){var r=t.coordinateSystem;e.each(function(i){var a,o=e.getItemModel(i),s=wi(o.get("x"),n.getWidth()),l=wi(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 bU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=lU.getMarkerModelFromSeries(e,"markPoint");t&&(yU(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 Qx),c=function(e,t,n){var r;r=e?$(e&&e.dimensions,function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return j(j({},n),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}];var i=new db(r,n),a=$(n.get("data"),ee(dU,t));e&&(a=Y(a,ee(pU,e)));var o=gU(!!e,r);return i.initData(a,null,o),i}(i,e,t);t.setData(c),yU(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"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(ne(r)||ne(i)||ne(a)||ne(s)){var u=t.getRawValue(e),h=t.getDataParams(e);ne(r)&&(r=r(u,h)),ne(i)&&(i=i(u,h)),ne(a)&&(a=a(u,h)),ne(s)&&(s=s(u,h))}var d=n.getModel("itemStyle").getItemStyle(),f=DA(o,"color");d.fill||(d.fill=f),c.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:l,style:d})}),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl(function(e){e.traverse(function(e){tl(e).dataModel=t})}),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(vU);var _U=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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],symbolOffset:0,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}(lU),wU=oa(),xU=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=fU(r,a,t,e);s=c.valueAxis,l=AU(a,_b(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 g=[dU(e,i[0]),dU(e,i[1]),j({},i[2])];return g[2].type=g[2].type||null,N(g[2],g[0]),N(g[2],g[1]),g};function CU(e){return!isNaN(e)&&!isFinite(e)}function SU(e,t,n,r){var i=1-e,a=r.dimensions[e];return CU(t[i])&&CU(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function kU(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(SU(1,n,r,e)||SU(0,n,r,e)))return!0}return pU(e,t[0])&&pU(e,t[1])}function EU(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),l=wi(s.get("x"),i.getWidth()),c=wi(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(oC(o,"cartesian2d")){var f=o.getAxis("x"),p=o.getAxis("y");u=o.dimensions;CU(e.get(u[0],t))?a[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):CU(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 TU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=lU.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=wU(t).from,a=wU(t).to;i.each(function(t){EU(i,t,!0,e,n),EU(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 MB);this.group.add(l.group);var c=function(e,t,n){var r;r=e?$(e&&e.dimensions,function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return j(j({},n),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}];var i=new db(r,n),a=new db(r,n),o=new db([],n),s=$(n.get("data"),ee(xU,t,e,n));e&&(s=Y(s,ee(kU,e)));var l=gU(!!e,r);return i.initData($(s,function(e){return e[0]}),null,l),a.initData($(s,function(e){return e[1]}),null,l),o.initData($(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;wU(t).from=u,wU(t).to=h,t.setData(d);var f=t.get("symbol"),p=t.get("symbolSize"),g=t.get("symbolRotate"),A=t.get("symbolOffset");function m(t,n,i){var a=t.getItemModel(n);EU(t,n,i,e,r);var s=a.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=DA(o,"color")),t.setItemVisual(n,{symbolKeepAspect:a.get("symbolKeepAspect"),symbolOffset:ge(a.get("symbolOffset",!0),A[i?0:1]),symbolRotate:ge(a.get("symbolRotate",!0),g[i?0:1]),symbolSize:ge(a.get("symbolSize"),p[i?0:1]),symbol:ge(a.get("symbol",!0),f[i?0:1]),style:s})}te(f)||(f=[f,f]),te(p)||(p=[p,p]),te(g)||(g=[g,g]),te(A)||(A=[A,A]),c.from.each(function(e){m(u,e,!0),m(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,{fromSymbolKeepAspect:u.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(e,"symbolOffset"),fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),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){tl(e).dataModel=t})}),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(vU);var BU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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}(lU),IU=oa(),MU=function(e,t,n,r){var i=dU(e,r[0]),a=dU(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 PU(e){return!isNaN(e)&&!isFinite(e)}function DU(e,t,n,r){var i=1-e;return PU(t[i])&&PU(n[i])}function FU(e,t){var n=t.coord[0],r=t.coord[1];return!!(oC(e,"cartesian2d")&&n&&r&&(DU(1,n,r)||DU(0,n,r)))||(pU(e,{coord:n,x:t.x0,y:t.y0})||pU(e,{coord:r,x:t.x1,y:t.y1}))}function OU(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),l=wi(s.get(n[0]),i.getWidth()),c=wi(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(oC(o,"cartesian2d")){var h=o.getAxis("x"),d=o.getAxis("y"),f=e.get(n[0],t),p=e.get(n[1],t);PU(f)?a[0]=h.toGlobalCoord(h.getExtent()["x0"===n[0]?0:1]):PU(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 LU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];var RU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=lU.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each(function(t){var i=$(LU,function(i){return OU(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 li});this.group.add(l.group),this.markKeep(l);var c=function(e,t,n){var r,i;if(e){var a=$(e&&e.dimensions,function(e){var n=t.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return j(j({},r),{name:e,ordinalMeta:null})});i=$(["x0","y0","x1","y1"],function(e,t){return{name:e,type:a[t%2].type}}),r=new db(i,n)}else r=new db(i=[{name:"value",type:"float"}],n);var o=$(n.get("data"),ee(MU,t,e,n));e&&(o=Y(o,ee(FU,e)));var s=e?function(e,t,n,r){var a=e.coord[Math.floor(r/2)][r%2];return Op(a,i[r])}:function(e,t,n,r){return Op(e.value,i[r])};return r.initData(o,null,s),r.hasItemOption=!0,r}(i,e,t);t.setData(c),c.each(function(t){var n=$(LU,function(n){return OU(c,t,n,e,r)}),a=i.getAxis("x").scale,s=i.getAxis("y").scale,l=a.getExtent(),u=s.getExtent(),h=[a.parse(c.get("x0",t)),a.parse(c.get("x1",t))],d=[s.parse(c.get("y0",t)),s.parse(c.get("y1",t))];Ci(h),Ci(d);var f=!!(l[0]>h[1]||l[1]<h[0]||u[0]>d[1]||u[1]<d[0]);c.setItemLayout(t,{points:n,allClipped:f});var p=c.getItemModel(t).getModel("itemStyle").getItemStyle(),g=DA(o,"color");p.fill||(p.fill=g,"string"==typeof p.fill&&(p.fill=Cn(p.fill,.4))),p.stroke||(p.stroke=g),c.setItemVisual(t,"style",p)}),c.diff(IU(l).data).add(function(e){var t=c.getItemLayout(e);if(!t.allClipped){var n=new Xc({shape:{points:t.points}});c.setItemGraphicEl(e,n),l.group.add(n)}}).update(function(e,n){var r=IU(l).data.getItemGraphicEl(n),i=c.getItemLayout(e);i.allClipped?r&&l.group.remove(r):(r?Eu(r,{shape:{points:i.points}},t,e):r=new Xc({shape:{points:i.points}}),c.setItemGraphicEl(e,r),l.group.add(r))}).remove(function(e){var t=IU(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")),hh(e,dh(r),{labelFetcher:t,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:"string"==typeof i.fill?Cn(i.fill,1):"#000"}),Xl(e,r),Wl(e),tl(e).dataModel=t}),IU(l).data=c,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(vU);var NU=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 A(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)&&W(t,function(e,r){re(e)&&(e={type:e}),t[r]=N(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["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&&ra(r)&&t.push(r.name)}),this._availableNames=n;var r=$(this.get("data")||t,function(e){return"string"!=typeof e&&"number"!=typeof e||(e={name:e}),new Oh(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")&&W(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;W(e,function(e){t[e.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;W(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])&&Q(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,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},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}(Yd),UU=ee,jU=W,HU=li;function zU(e,t,n,r){GU(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),VU(e,t,n,r)}function QU(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 VU(e,t,n,r){QU(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function GU(e,t,n,r){QU(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}var qU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return A(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new HU),this.group.add(this._selectorGroup=new HU),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=zd(l,c,u),d=this.layoutInner(e,i,h,r,o,s),f=zd(H({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=lR(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)}),jU(t.getData(),function(i,a){var o=i.get("name");if(!this.newlineDisabled&&(""===o||"\n"===o)){var h=new HU;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("legendLineStyle")||{},g=f.getVisual("legendIcon"),A=f.getVisual("style");this._createItem(d,o,a,i,t,e,p,A,g,c).on("click",UU(zU,o,null,r,u)).on("mouseover",UU(VU,d.name,null,r,u)).on("mouseout",UU(GU,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=s.getItemVisual(h,"legendIcon"),p=gn(d.fill);p&&0===p[3]&&(p[3]=.2,d.fill=Sn(p,"rgba")),this._createItem(n,o,a,i,t,e,{},d,f,c).on("click",UU(zU,null,o,r,u)).on("mouseover",UU(VU,null,o,r,u)).on("mouseout",UU(GU,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();jU(e,function(e){var r=e.type,i=new el({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});a.add(i),hh(i,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),Wl(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,l,c){var u=e.visualDrawType,h=i.get("itemWidth"),d=i.get("itemHeight"),f=i.isSelected(t),p=r.get("symbolRotate"),g=r.get("symbolKeepAspect"),A=r.get("icon"),m=function(e,t,n,r,i,a){function o(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),jU(e,function(n,r){"inherit"===e[r]&&(e[r]=t[r])})}var s=t.getModel("itemStyle").getItemStyle(),l=0===e.lastIndexOf("empty",0)?"fill":"stroke";s.decal=r.decal,"inherit"===s.fill&&(s.fill=r[i]);"inherit"===s.stroke&&(s.stroke=r[l]);"inherit"===s.opacity&&(s.opacity=("fill"===i?r:n).opacity);o(s,r);var c=t.getModel("lineStyle"),u=c.getLineStyle();if(o(u,n),"auto"===s.fill&&(s.fill=r.fill),"auto"===s.stroke&&(s.stroke=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),!a){var h=t.get("inactiveBorderWidth"),d=s[l];s.lineWidth="auto"===h?r.lineWidth>0&&d?2:0:s.lineWidth,s.fill=t.get("inactiveColor"),s.stroke=t.get("inactiveBorderColor"),u.stroke=c.get("inactiveColor"),u.lineWidth=c.get("inactiveWidth")}return{itemStyle:s,lineStyle:u}}(l=A||l||"roundRect",r,o,s,u,f),v=new HU,y=r.getModel("textStyle");if("function"!=typeof e.getLegendIcon||A&&"inherit"!==A){var b="inherit"===A&&e.getData().getVisual("symbol")?"inherit"===p?e.getData().getVisual("symbolRotate"):p:0;v.add(function(e){var t=e.icon||"roundRect",n=KA(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:h,itemHeight:d,icon:l,iconRotate:b,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:g}))}else v.add(e.getLegendIcon({itemWidth:h,itemHeight:d,icon:l,iconRotate:p,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:g}));var _="left"===a?h+5:-5,w=a,x=i.get("formatter"),C=t;"string"==typeof x&&x?C=x.replace("{name}",null!=t?t:""):"function"==typeof x&&(C=x(t));var S=r.get("inactiveColor");v.add(new el({style:fh(y,{text:C,x:_,y:d/2,fill:f?y.getTextColor():S,align:w,verticalAlign:"middle"})}));var k=new zs({shape:v.getBoundingRect(),invisible:!0}),E=r.getModel("tooltip");return E.get("show")&&sh({el:k,componentModel:i,itemName:t,itemTooltipOption:E.option}),v.add(k),v.eachChild(function(e){e.silent=!0}),k.silent=!c,this.getContentGroup().add(v),Wl(v),v.__legendDataIndex=n,v},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Hd(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){Hd("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",g=0===f?"height":"width",A=0===f?"y":"x";"end"===a?h[f]+=l[p]+d:c[f]+=u[p]+d,h[1-f]+=l[g]/2-u[g]/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[g]=Math.max(l[g],u[g]),m[A]=Math.min(0,u[A]+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}(Ng);function WU(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 $U(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)),W(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 KU(e){e.registerComponentModel(NU),e.registerComponentView(qU),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,WU),e.registerSubTypeDefaulter("legend",function(){return"plain"}),function(e){e.registerAction("legendToggleSelect","legendselectchanged",ee($U,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",ee($U,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",ee($U,"inverseSelect")),e.registerAction("legendSelect","legendselected",ee($U,"select")),e.registerAction("legendUnSelect","legendunselected",ee($U,"unSelect"))}(e)}function YU(e,t,n){var r=[1,1];r[e.getOrient().index]=0,Gd(t,n,{type:"box",ignoreSize:!!r})}var XU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=qd(t);e.prototype.init.call(this,t,n,r),YU(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),YU(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Nh(NU.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}(NU),ZU=li,JU=["width","height"],ej=["x","y"],tj=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 A(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new ZU),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ZU)},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=rh(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:J(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 el({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=JU[s],c=ej[s],u=JU[1-s],h=ej[1-s];i&&Hd("horizontal",o,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),f=o.getBoundingRect(),p=[-f.x,-f.y],g=R(n);i&&(g[l]=n[l]-f[l]-d);var A=this._layoutContentAndController(e,r,g,s,l,u,h,c);if(i){if("end"===a)p[s]+=A[l]+d;else{var m=f[l]+d;p[s]-=m,A[c]-=m}A[l]+=f[l]+d,p[1-s]+=A[h]+A[u]/2-f[u]/2,A[u]=Math.max(A[u],f[u]),A[h]=Math.min(A[h],f[h]+p[1-s]),o.x=p[0],o.y=p[1],o.markRedraw()}return A},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var l=this.getContentGroup(),c=this._containerGroup,u=this._controllerGroup;Hd(e.get("orient"),l,e.get("itemGap"),r?n.width:null,r?null:n.height),Hd("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 g=[0,0],A=[-d.x,-d.y],m=ge(e.get("pageButtonGap",!0),e.get("itemGap",!0));f&&("end"===e.get("pageButtonPosition",!0)?A[r]+=n[i]-d[i]:g[r]+=d[i]+m);A[1-r]+=h[a]/2-d[a]/2,l.setPosition(p),c.setPosition(g),u.setPosition(A);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]+A[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 zs({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&&Eu(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;W(["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=JU[i],o=ej[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,g=f,A=f,m=null;p<=u;++p)(!(m=v(l[p]))&&A.e>g.s+r||m&&!y(m,g.s))&&(g=A.i>g.i?A:m)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),A=m;for(p=s-1,g=f,A=f,m=null;p>=-1;--p)(m=v(l[p]))&&y(A,m.s)||!(g.i<A.i)||(A=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=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}(qU);function nj(e){Uy(KU),e.registerComponentModel(XU),e.registerComponentView(tj),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 rj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.type="dataZoom.inside",t.defaultOption=Nh(qL.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(qL),ij=oa();function aj(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function oj(e,t){e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function sj(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function lj(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=ij(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Se());r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(e){W(QL(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(sj,t),dispatchAction:ee(oj,e),dataZoomInfoMap:null,controller:null},r=n.controller=new Bk(e.getZr());return W(["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),Jg(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else aj(r,e)})})}var cj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return A(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){ij(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}(r,t,{pan:J(uj.pan,this),zoom:J(uj.zoom,this),scrollMove:J(uj.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=ij(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||aj(n,o))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}($L),uj={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=dj[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 SI(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}},pan:hj(function(e,t,n,r,i,a){var o=dj[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:hj(function(e,t,n,r,i,a){return dj[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function hj(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s)return SI(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 dj={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}},fj=cj;function pj(e){tR(e),e.registerComponentModel(rj),e.registerComponentView(fj),lj(e)}var gj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Nh(qL.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}(qL),Aj=zs,mj="horizontal",vj=5,yj=["line","bar","candlestick","scatter"],bj={easing:"cubicOut",duration:100,delay:0};function _j(e){return"vertical"===e?"ns-resize":"ew-resize"}var wj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return A(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=J(this._onBrush,this),this._onBrushEnd=J(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),Jg(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[Kg]&&(e[t]=n[Kg]);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 li;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===mj?{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=qd(e.option);W(["right","top","width","height"],function(e){"ph"===o[e]&&(o[e]=a[e])});var s=zd(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!==mj||i?n===mj&&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 Aj({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new Aj({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:J(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:_i(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 g=this.dataZoomModel,A=0;A<3;A++){var m=v(1===A);this._displayables.sliderGroup.add(m),this._displayables.dataShadowSegs.push(m)}}}function v(e){var t=g.getModel(e?"selectedDataBackground":"dataBackground"),n=new li,r=new Xc({shape:{points:u},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new eu({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){W(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!(n||!0!==t&&Q(yj,e.get("type"))<0)){var o,s=r.getComponent(HL(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 Aj({silent:c,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});i.add(u),i.add(new Aj({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)"}})),W([0,1],function(t){var a=o.get("handleIcon");!qA[a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var s=KA(a,-1,0,2,2,null,!0);s.attr({cursor:_j(this._orient),draggable:!0,drift:J(this._onDragMove,this,t),ondragend:J(this._onDragEnd,this),onmouseover:J(this._showDataInfo,this,!0),onmouseout:J(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=o.get("handleSize");this._handleHeight=wi(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(),Wl(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 el({silent:!0,invisible:!0,style:fh(h,{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=wi(o.get("moveHandleSize"),a[1]),f=t.moveHandle=new zs({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:d}}),p=.8*d,g=t.moveHandleIcon=KA(o.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=a[1]+d/2-.5,f.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var A=Math.min(a[1]/2,Math.max(d,10));(h=t.moveZone=new zs({invisible:!0,shape:{y:a[1]-A,height:d+A}})).on("mouseover",function(){s.enterEmphasis(f)}).on("mouseout",function(){s.leaveEmphasis(f)}),i.add(f),i.add(g),i.add(h)}h.attr({draggable:!0,cursor:_j(this._orient),drift:J(this._onDragMove,this,"all"),ondragstart:J(this._showDataInfo,this,!0),ondragend:J(this._onDragEnd,this),onmouseover:J(this._showDataInfo,this,!0),onmouseout:J(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[_i(e[0],[0,100],t,!0),_i(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];SI(t,r,i,n.get("zoomLock")?"all":e,null!=a.minSpan?_i(a.minSpan,o,i,!0):null,null!=a.maxSpan?_i(a.maxSpan,o,i,!0):null);var s=this._range,l=this._range=Ci([_i(r[0],i,o,!0),_i(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=Ci(n.slice()),i=this._size;W([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 zs,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=Ci(this._handleEnds.slice());function h(e){var t=Yu(n.handles[e].parent,this.group),o=Zu(0===e?"right":"left",t),s=this._handleWidth/2+vj,l=Xu([u[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:l[0],y:l[1],verticalAlign:i===mj?"middle":o,align:i===mj?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,_t(r.event);var i=Xu([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 Mr(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=Ci([_i(n.x,r,i,!0),_i(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&&(_t(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 Aj({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?bj:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=QL(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}($L);function xj(e){e.registerComponentModel(gj),e.registerComponentView(wj),tR(e)}var Cj={get:function(e,t,n){var r=R((Sj[e]||{})[t]);return n&&te(r)?r[r.length-1]:r}},Sj={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]}},kj=Cj,Ej=TT.mapVisual,Tj=TT.eachVisual,Bj=te,Ij=W,Mj=Ci,Pj=_i,Dj=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 A(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;b.canvasSupported||(n.realtime=!1),!t&&SN(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=J(e,this),this.controllerVisuals=CN(this.option.controller,t,e),this.targetVisuals=CN(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},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=$i(e),t},t.prototype.eachTargetSeries=function(e,t){W(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=Mj([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},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){Bj(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]={},Ij(r,function(e,t){if(TT.isValidType(t)){var n=kj.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"),i=this.getItemSymbol()||"roundRect";Ij(this.stateList,function(o){var s=this.itemSize,l=e[o];l||(l=e[o]={color:a?r:[r]}),null==l.symbol&&(l.symbol=t&&R(t)||(a?i:[i])),null==l.symbolSize&&(l.symbolSize=n&&R(n)||(a?s[0]:[s[0],s[0]])),l.symbol=Ej(l.symbol,function(e){return"none"===e?i:e});var c=l.symbolSize;if(null!=c){var u=-1/0;Tj(c,function(e){e>u&&(u=e)}),l.symbolSize=Ej(c,function(e){return Pj(e,[0,u],[0,s[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}(Yd),Fj=[20,140];function Oj(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 Lj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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]=Fj[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=Fj[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),W(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=Ci((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.getDataDimensionIndex(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=Oj(this,"outOfRange",this.getExtent()),n=Oj(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=Nh(Dj.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}(Dj),Rj=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 A(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=Cd(t.get("padding")||0),r=e.getBoundingRect();e.add(new zs({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("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 W(TT.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=c.__alphaForOpacity),TT.dependsOn(r,t)&&i&&i.applyVisual(e,s,l)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Qd(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(Ng),Nj=[["left","right","width"],["top","bottom","height"]];function Uj(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=Nj[o],l=[0,null,10],c={},u=0;u<3;u++)c[Nj[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=zd(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 jj(e,t){return W(e||[],function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Hj=_i,zj=W,Qj=Math.min,Vj=Math.max,Gj=12;function qj(e,t,n,r){return new Xc({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){_t(e.event)},ondragend:r})}function Wj(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function $j(e){return"vertical"===e?"ns-resize":"ew-resize"}var Kj=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 A(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 el({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=Uj(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),l=new li;s.add(l),l.add(n.outOfRange=qj()),l.add(n.inRange=qj(null,a?$j(this._orient):null,J(this._dragHandle,this,"all",!1),J(this._dragHandle,this,"all",!0))),l.setClipPath(new zs({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),u=Vj(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=J(this._dragHandle,this,n,!1),s=J(this._dragHandle,this,n,!0),l=Yr(e.get("handleSize"),r[0]),c=KA(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),u=$j(this._orient);c.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){_t(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(),Zl(c,!0),t.add(c);var h=this.visualMapModel.textStyleModel,d=new el({cursor:u,draggable:!0,drift:o,onmousemove:function(e){_t(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=Yr(e.get("indicatorSize"),n[0]),o=KA(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 Fs){var l=o.style;o.useStyle(j({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 el({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():Wj(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=[Hj(t[0],n,r,!0),Hj(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]];SI(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[Hj(r[0],i,a,!0),Hj(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 gu(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 li("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();zj([0,1],function(l){var c=i[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=Hj(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=Xu(n.handleLabelPoints[l],Yu(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=Hj(e,a,s,!0),f=o[0]-h/2,p={x:c.x,y:c.y};c.y=d,c.x=f;var g=Xu(l.indicatorLabelPoint,Yu(c,this.group)),A=l.indicatorLabel;A.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),v="horizontal"===this._orient;A.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:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var _={duration:100,easing:"cubicInOut",additive:!0};c.x=p.x,c.y=p.y,c.animateTo(y,_),A.animateTo(b,_)}else c.attr(y),A.attr(b);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var x=0;x<w.length;x++)this._api.enterBlur(w[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]=Qj(Vj(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=Qj(Vj(i[0],e),i[1]);var o=function(e,t,n){var r=Gj/2,i=e.get("hoverLinkDataSize");i&&(r=Hj(i,t,n,!0)/2);return r}(n,a,i),s=[e-o,e+o],l=Hj(e,i,a,!0),c=[Hj(s[0],i,a,!0),Hj(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||Wj(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=na(e[r].seriesId,null);if(null==a)return;for(var o=$i(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",jj(d[0],n)),this._dispatchHighDown("highlight",jj(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=tl(t).dataIndex){var r=tl(t),i=this.ecModel.getSeriesByIndex(r.seriesIndex);if(n.isTargetSeries(i)){var a=i.getData(r.dataType),o=a.getStore().get(n.getDataDimensionIndex(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",jj(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=Yu(t,r?null:this.group);return te(e)?Xu(e,i,n):Zu(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}(Rj),Yj={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Xj=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})},Zj=[{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=J(t.getValueState,t),o=t.getDataDimensionIndex(e.getData()),s={},W(r,function(e){var t=TT.prepareVisualTypes(i[e]);s[e]=t}),{progress:function(e,t){var n,r;function l(e){return PA(t,r,e)}function c(e,n){FA(t,r,e,n)}null!=o&&(n=t.getDimensionIndex(o));for(var u=t.getStore();null!=(r=e.next());){var h=t.getRawDataItem(r);if(!h||!1!==h.visualMap)for(var d=null!=o?u.get(n,r):r,f=a(d),p=i[f],g=s[f],A=0,m=g.length;A<m;A++){var v=g[A];p[v]&&p[v].applyVisual(d,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(J(Jj,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function Jj(e,t,n,r){for(var i=t.targetVisuals[r],a=TT.prepareVisualTypes(i),o={color:DA(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 eH=W;function tH(e){var t=e&&e.visualMap;te(t)||(t=t?[t]:[]),eH(t,function(e){if(e){nH(e,"splitList")&&!nH(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&te(t)&&eH(t,function(e){oe(e)&&(nH(e,"start")&&!nH(e,"min")&&(e.min=e.start),nH(e,"end")&&!nH(e,"max")&&(e.max=e.end))})}})}function nH(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var rH=!1;function iH(e){rH||(rH=!0,e.registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}),e.registerAction(Yj,Xj),W(Zj,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(tH))}function aH(e){e.registerComponentModel(Lj),e.registerComponentView(Kj),iH(e)}var oH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return A(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],sH[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=$(this._pieceList,function(e){return e=R(e),"inRange"!==t&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=TT.listVisualTypes(),i=this.isCategory();function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}W(t.pieces,function(e){W(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),W(n,function(e,n){var r=!1;W(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&W(this.stateList,function(e){(t[e]||(t[e]={}))[n]=kj.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,W(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),"single"===n.selectedMode){var a=!1;W(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},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=TT.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.getDataDimensionIndex(a),function(t,r){TT.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 W(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=Nh(Dj.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}(Dj),sH={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]}),Ui(e),W(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;W(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),lH(t,e)},pieces:function(e){var t=this.option;W(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=TT.retrieveVisuals(t),e.push(r)},this),lH(t,e),Ui(e),W(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 lH(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var cH=oH,uH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return A(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),W(l.viewPieceList,function(r){var l=r.piece,c=new li;c.onclick=J(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 el({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),Hd(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:jj(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return Uj(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 li,o=this.visualMapModel.textStyleModel;a.add(new el({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=$(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(KA(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,W(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}(Rj);function hH(e){e.registerComponentModel(cH),e.registerComponentView(uH),iH(e)}var dH={label:{enabled:!0},decal:{show:!1}},fH=oa(),pH={};function gH(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=R(dH);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.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),fH(e).scope=n}}),e.eachRawSeries(function(t){if(!e.isSeriesFiltered(t))if("function"!=typeof t.enableAriaDecal){var n=t.getData();if(t.isColorBySeries()){var r=Cf(t.ecModel,t.name,pH,e.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",c(i,r))}else{var a=t.getRawData(),o={},s=fH(t).scope;n.each(function(e){var t=n.getRawIndex(e);o[t]=e});var l=a.count();a.each(function(e){var r=o[e],i=a.getName(e)||e+"",u=Cf(t.ecModel,i,s,l),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",c(h,u))})}}else t.enableAriaDecal();function c(e,t){var n=e?j(j({},t),e):t;return n.dirty=!0,n}})}}(),function(){var r=e.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=H(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=[],g=l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);s+=i(g,{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:(_=t.subType,e.getLocaleModel().get(["series","typeNames"])[_]||"自定义图")});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.get(["data","separator","middle"]),g=a.get(["data","separator","end"]),A=[],m=0;m<u.count();m++)if(m<c){var v=u.getName(m),y=u.getValues(m),b=a.get(["data",v?"withName":"withoutName"]);A.push(i(b,{name:v,value:y.join(f)}))}r+=A.join(f)+g,p.push(r)}var _});var A=a.getModel(["series","multiple","separator"]),m=A.get("middle"),v=A.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 W(t,function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)}),n}}function AH(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},W(["description","general","series","data"],function(e){null!=t[e]&&(t.label[e]=t[e])})}}var mH={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},vH=function(){function e(e){if(null==(this._condVal=re(e)?new RegExp(e):de(e)?e:null)){var t="";0,Gi(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}(),yH=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),bH=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}(),_H=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}(),wH=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),xH=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 CH(e,t){if(!0===e||!1===e){var n=new yH;return n.value=e,n}var r="";return kH(e)||Gi(r),e.and?SH("and",e,t):e.or?SH("or",e,t):e.not?function(e,t){var n=e.not,r="";0;kH(n)||Gi(r);var i=new wH;i.child=CH(n,t),i.child||Gi(r);return i}(e,t):function(e,t){for(var n="",r=t.prepareGetValue(e),i=[],a=Z(e),o=e.parser,s=o?Rp(o):null,l=0;l<a.length;l++){var c=a[l];if("parser"!==c&&!t.valueGetterAttrMap.get(c)){var u=Te(mH,c)?mH[c]:c,h=e[c],d=s?s(h):h,f=zp(u,d)||"reg"===u&&new vH(d);f||Gi(n),i.push(f)}}i.length||Gi(n);var p=new xH;return p.valueGetterParam=r,p.valueParser=s,p.getValue=t.getValue,p.subCondList=i,p}(e,t)}function SH(e,t,n){var r=t[e],i="";te(r)||Gi(i),r.length||Gi(i);var a="and"===e?new bH:new _H;return a.children=$(r,function(e){return CH(e,n)}),a.children.length||Gi(i),a}function kH(e){return oe(e)&&!q(e)}var EH=function(){function e(e,t){this._cond=CH(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();var TH={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;Te(e,"dimension")||Gi(t);var r=i.getDimensionInfo(n);return r||Gi(t),{dimIdx:r.index}},getValue:function(e){return i.retrieveValueFromItem(t,e.dimIdx)}},new EH(n,r)),o=[],s=0,l=i.count();s<l;s++)t=i.getRawDataItem(s),a.evaluate()&&o.push(t);return{data:o}}};var BH={type:"echarts:sort",transform:function(e){var t=e.upstream,n="",r=$i(e.config);r.length||Gi(n);var i=[];W(r,function(e){var r=e.dimension,a=e.order,o=e.parser,s=e.incomparable;if(null==r&&Gi(n),"asc"!==a&&"desc"!==a&&Gi(n),s&&"min"!==s&&"max"!==s){var l="";0,Gi(l)}if("asc"!==a&&"desc"!==a){var c="";0,Gi(c)}var u=t.getDimensionInfo(r);u||Gi(n);var h=o?Rp(o):null;o&&!h&&Gi(n),i.push({dimIdx:u.index,parser:h,comparator:new jp(a,s)})});var a=t.sourceFormat;a!==nf&&a!==rf&&Gi(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 IH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return A(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new og(this),sg(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),sg(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:lf},t}(Yd),MH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return A(t,e),t.type="dataset",t}(Ng);var PH=os.CMD;function DH(e,t){return Math.abs(e-t)<1e-5}function FH(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){DH(e,r)&&DH(n,i)||t.push(e,n,r,i,r,i)}function g(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,g=h*o+i,A=d*a+r,m=f*o+i,v=a*l*c,y=o*l*c;t.push(p-v*h,g+y*u,A+v*f,m-y*d,A,m)}for(var A=0;A<s;){var m=o[A++],v=1===A;switch(v&&(h=c=o[A],d=u=o[A+1],m!==PH.L&&m!==PH.C&&m!==PH.Q||(t=[h,d])),m){case PH.M:c=h=o[A++],u=d=o[A++],f(h,d);break;case PH.L:p(c,u,n=o[A++],r=o[A++]),c=n,u=r;break;case PH.C:t.push(o[A++],o[A++],o[A++],o[A++],c=o[A++],u=o[A++]);break;case PH.Q:n=o[A++],r=o[A++],i=o[A++],a=o[A++],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 PH.A:var y=o[A++],b=o[A++],_=o[A++],w=o[A++],x=o[A++],C=o[A++]+x;A+=1;var S=!o[A++];n=Math.cos(x)*_+y,r=Math.sin(x)*w+b,v?f(h=n,d=r):p(c,u,n,r),c=Math.cos(C)*_+y,u=Math.sin(C)*w+b;for(var k=(S?-1:1)*Math.PI/2,E=x;S?E>C:E<C;E+=k){g(E,S?Math.max(E+k,C):Math.min(E+k,C),y,b,_,w)}break;case PH.R:h=c=o[A++],d=u=o[A++],n=h+o[A++],r=d+o[A++],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 PH.Z:t&&p(c,u,h,d),c=h,u=d}}return t&&t.length>2&&l.push(t),l}function OH(e,t,n,r,i,a,o,s,l,c){if(DH(e,n)&&DH(t,r)&&DH(i,o)&&DH(a,s))l.push(o,s);else{var u=2/c,h=u*u,d=o-e,f=s-t,p=Math.sqrt(d*d+f*f);d/=p,f/=p;var g=n-e,A=r-t,m=i-o,v=a-s,y=g*g+A*A,b=m*m+v*v;if(y<h&&b<h)l.push(o,s);else{var _=d*g+f*A,w=-d*m-f*v;if(y-_*_<h&&_>=0&&b-w*w<h&&w>=0)l.push(o,s);else{var x=[],C=[];mo(e,n,i,o,.5,x),mo(t,r,a,s,.5,C),OH(x[0],C[0],x[1],C[1],x[2],C[2],x[3],C[3],l,c),OH(x[4],C[4],x[5],C[5],x[6],C[6],x[7],C[7],l,c)}}}}function LH(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);0===s&&(s=1,o=n);for(var l=[],c=0;c<o;c++)l.push(s);var u=n-o*s;if(u>0)for(c=0;c<u;c++)l[c%o]+=1;return l}function RH(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,c=i-r,u=l>Math.abs(c),h=LH([l,c],u?0:1,t),d=(u?s:c)/h.length,f=0;f<h.length;f++)for(var p=(u?c:s)/h[f],g=0;g<h[f];g++){var A={};u?(A.startAngle=a+d*f,A.endAngle=a+d*(f+1),A.r0=r+p*g,A.r=r+p*(g+1)):(A.startAngle=a+p*g,A.endAngle=a+p*(g+1),A.r0=r+d*f,A.r=r+d*(f+1)),A.clockwise=e.clockwise,A.cx=e.cx,A.cy=e.cy,n.push(A)}}function NH(e,t,n,r){return e*r-n*t}function UH(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,u=o-i,h=s-a,d=NH(u,h,l,c);if(Math.abs(d)<1e-6)return null;var f=NH(e-i,t-a,u,h)/d;return f<0||f>1?null:new Mr(f*l+e,f*c+t)}function jH(e,t,n){var r=new Mr;Mr.sub(r,n,t),r.normalize();var i=new Mr;return Mr.sub(i,e,t),i.dot(r)}function HH(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function zH(e){var t=e.points,n=[],r=[];Fo(t,n,r);var i=new jr(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,l=i.y,c=new Mr,u=new Mr;return a>o?(c.x=u.x=s+a/2,c.y=l,u.y=l+o):(c.y=u.y=l+o/2,c.x=s,u.x=s+a),function(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],l=UH(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&i.push({projPt:jH(l,t,n),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(e,t){return e.projPt-t.projPt});var c=i[0],u=i[i.length-1];if(u.idx<c.idx){var h=c;c=u,u=h}var d=[c.pt.x,c.pt.y],f=[u.pt.x,u.pt.y],p=[d],g=[f];for(a=c.idx+1;a<=u.idx;a++)HH(p,e[a].slice());for(HH(p,f),HH(p,d),a=u.idx+1;a<=c.idx+r;a++)HH(g,e[a%r].slice());return HH(g,d),HH(g,f),[{points:p},{points:g}]}(t,c,u)}function QH(e,t,n,r){if(1===n)r.push(t);else{var i=Math.floor(n/2),a=e(t);QH(e,a[0],i,r),QH(e,a[1],n-i,r)}return r}function VH(e,t){var n,r=[],i=e.shape;switch(e.type){case"rect":!function(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=LH([r,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",c=a?"x":"y",u=a?"y":"x",h=e[s]/o.length,d=0;d<o.length;d++)for(var f=e[l]/o[d],p=0;p<o[d];p++){var g={};g[c]=d*h,g[u]=p*f,g[s]=h,g[l]=f,g.x+=e.x,g.y+=e.y,n.push(g)}}(i,t,r),n=zs;break;case"sector":RH(i,t,r),n=Qc;break;case"circle":RH({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},t,r),n=Qc;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=$(function(e,t){var n=FH(e),r=[];t=t||1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var c=2;c<a.length;){var u=a[c++],h=a[c++],d=a[c++],f=a[c++],p=a[c++],g=a[c++];OH(s,l,u,h,d,f,p,g,o,t),s=p,l=g}r.push(o)}return r}(e.getUpdatedPathProxy(),o),function(e){return function(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}(e)}),l=s.length;if(0===l)QH(zH,{points:s[0]},t,r);else if(l===t)for(var c=0;c<l;c++)r.push({points:s[c]});else{var u=0,h=$(s,function(e){var t=[],n=[];Fo(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}});h.sort(function(e,t){return t.area-e.area});var d=t;for(c=0;c<l;c++){var f=h[c];if(d<=0)break;var p=c===l-1?d:Math.ceil(f.area/u*t);p<0||(QH(zH,{points:f.poly},p,r),d-=p)}}n=Xc}if(!n)return function(e,t){for(var n=[],r=0;r<t;r++)n.push(_c(e));return n}(e,t);var g,A,m=[];for(c=0;c<r.length;c++){var v=new n;v.setShape(r[c]),g=e,(A=v).setStyle(g.style),A.z=g.z,A.z2=g.z2,A.zlevel=g.zlevel,m.push(v)}return m}function GH(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,h=[o[0],o[1]],d=l,f=2;f<s;){var p=o[f-2],g=o[f-1],A=o[f++],m=o[f++],v=o[f++],y=o[f++],b=o[f++],_=o[f++];if(d<=0)h.push(A,m,v,y,b,_);else{for(var w=Math.min(d,u-1)+1,x=1;x<=w;x++){var C=x/w;mo(p,A,v,b,C,i),mo(g,m,y,_,C,a),p=i[3],g=a[3],h.push(i[1],a[1],i[2],a[2],p,g),A=i[5],m=a[5],v=i[6],y=a[6]}d-=w-1}}return o===e?[h,t]:[e,h]}function qH(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 WH(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 $H(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],g=e[f+1]-n[1],A=t[d]-r[0]-p,m=t[d+1]-r[1]-g;h+=A*A+m*m}h<a&&(a=h,o=c)}return o}function KH(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 YH(e){return e.__isCombineMorphing}var XH="__mOriginal_";function ZH(e,t,n){var r=XH+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=a?a.apply(this,t):i.apply(this,t),o&&o.apply(this,t),e}}function JH(e,t){var n=XH+t;e[n]&&(e[t]=e[n],e[n]=null)}function ez(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function tz(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=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=GH(l,c))[0],i=h=n[1]):(h=qH(i||l,l),u=l):(u=qH(r||c,c),h=c),a.push(u),o.push(h)}return[a,o]}(FH(n),FH(r)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();s&&ez(a,s),l&&ez(o,l),ZH(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var c=function(e,t,n,r){for(var i,a=[],o=0;o<e.length;o++){var s=e[o],l=t[o],c=WH(s),u=WH(l);null==i&&(i=c[2]<0!=u[2]<0);var h=[],d=[],f=0,p=1/0,g=[],A=s.length;i&&(s=KH(s));for(var m=6*$H(s,l,c,u),v=A-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 _=r/n,w=-r/2;w<=r/2;w+=_){var x=Math.sin(w),C=Math.cos(w),S=0;for(y=0;y<s.length;y+=2){var k=h[y],E=h[y+1],T=l[y]-u[0],B=l[y+1]-u[1],I=T*C-B*x,M=T*x+B*C;g[y]=I,g[y+1]=M;var P=I-k,D=M-E;S+=P*P+D*D}if(S<p){p=S,f=w;for(var F=0;F<g.length;F++)d[F]=g[F]}}else for(var O=0;O<A;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,o,10,Math.PI),u=[];ZH(t,"buildPath",{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<c.length;a++){var o=c[a],s=o.from,l=o.to,h=o.rotation*n,d=o.fromCp,f=o.toCp,p=Math.sin(h),g=Math.cos(h);Je(i,d,f,n);for(var A=0;A<s.length;A+=2){var m=s[A],v=s[A+1],y=m*r+(x=l[A])*n,b=v*r+(C=l[A+1])*n;u[A]=y*g-b*p+i[0],u[A+1]=y*p+b*g+i[1]}var _=u[0],w=u[1];e.moveTo(_,w);for(A=2;A<s.length;){var x=u[A++],C=u[A++],S=u[A++],k=u[A++],E=u[A++],T=u[A++];_===x&&w===C&&S===E&&k===T?e.lineTo(E,T):e.bezierCurveTo(x,C,S,k,E,T),_=E,w=T}}}})}function nz(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;return tz(e,t),t.__morphT=0,t.animateTo({__morphT:1},H({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){JH(t,"buildPath"),JH(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),r&&r()}},n)),t}function rz(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return $($(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),l=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]}),function(a,o){return{cp:a,z:function(e,t,n,r,i,a){e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var o,s=0,l=32768;l>0;l/=2){var c=0,u=0;(e&l)>0&&(c=1),(t&l)>0&&(u=1),s+=l*l*(3*c^u),0===u&&(1===c&&(e=l-1-e,t=l-1-t),o=e,e=t,t=o)}return s}(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function iz(e){return VH(e.path,e.count)}function az(e){return te(e[0])}function oz(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}a=l.length;var c=Math.ceil(a/2);n[i].many=l.slice(c,a),n[s].many=l.slice(0,c),s++}return n}var sz={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var i=_c(e.path);i.setStyle("opacity",n),t.push(i)}return t},split:null};function lz(e,t,n,r,i,a){if(e.length&&t.length){var o=Su("update",r,i);if(o&&o.duration>0){var s,l,c=r.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o);az(e)&&(s=e,l=t),az(t)&&(s=t,l=e);for(var h=s?s===e:e.length>t.length,d=s?oz(l,s):oz(h?t:e,[h?e:t]),f=0,p=0;p<d.length;p++)f+=d[p].many.length;var g=0;for(p=0;p<d.length;p++)A(d[p],h,g,f),g+=d[p].many.length}}function A(e,t,r,i,o){var s=e.many,l=e.one;if(1!==s.length||o)for(var h=H({dividePath:sz[n],individualDelay:c&&function(e,t,n,a){return c(e+r,i)}},u),d=t?function(e,t,n){var r=[];!function e(t){for(var n=0;n<t.length;n++){var i=t[n];YH(i)?e(i.childrenRef()):i instanceof Es&&r.push(i)}}(e);var i=r.length;if(!i)return{fromIndividuals:[],toIndividuals:[],count:0};var a=(n.dividePath||iz)({path:t,count:i});if(a.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};r=rz(r),a=rz(a);for(var o=n.done,s=n.during,l=n.individualDelay,c=new Ir,u=0;u<i;u++){var h=r[u],d=a[u];d.parent=t,d.copyTransform(c),l||tz(h,d)}function f(e){for(var t=0;t<a.length;t++)a[t].addSelfToZr(e)}function p(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,JH(t,"addSelfToZr"),JH(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return a},ZH(t,"addSelfToZr",{after:function(e){f(e)}}),ZH(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<a.length;t++)a[t].removeSelfFromZr(e)}});var g=a.length;if(l){var A=g,m=function(){0==--A&&(p(),o&&o())};for(u=0;u<g;u++){var v=l?H({delay:(n.delay||0)+l(u,g,r[u],a[u]),done:m},n):n;nz(r[u],a[u],v)}}else t.__morphT=0,t.animateTo({__morphT:1},H({during:function(e){for(var n=0;n<g;n++){var r=a[n];r.__morphT=t.__morphT,r.dirtyShape()}s&&s(e)},done:function(){p();for(var t=0;t<e.length;t++)JH(e[t],"updateTransform");o&&o()}},n));return t.__zr&&f(t.__zr),{fromIndividuals:r,toIndividuals:a,count:g}}(s,l,h):function(e,t,n){var r=t.length,i=[],a=n.dividePath||iz;if(YH(e)){!function e(t){for(var n=0;n<t.length;n++){var r=t[n];YH(r)?e(r.childrenRef()):r instanceof Es&&i.push(r)}}(e.childrenRef());var o=i.length;if(o<r)for(var s=0,l=o;l<r;l++)i.push(_c(i[s++%o]));i.length=r}else{i=a({path:e,count:r});var c=e.getComputedTransform();for(l=0;l<i.length;l++)i[l].setLocalTransform(c);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}i=rz(i),t=rz(t);var u=n.individualDelay;for(l=0;l<r;l++){var h=u?H({delay:(n.delay||0)+u(l,r,i[l],t[l])},n):n;nz(i[l],t[l],h)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}(l,s,h),f=d.fromIndividuals,p=d.toIndividuals,g=f.length,m=0;m<g;m++){v=c?H({delay:c(m,g)},u):u;a(f[m],p[m],t?s[m]:e.one,t?e.one:s[m],v)}else{var v,y=t?s[0]:l,b=t?l:s[0];if(YH(y))A({many:[y],one:b},!0,r,i,!0);else nz(y,b,v=c?H({delay:c(r,i)},u):u),a(y,b,y,b,v)}}}function cz(e){if(!e)return[];if(te(e)){for(var t=[],n=0;n<e.length;n++)t.push(cz(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof Es&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var uz=1e4,hz=oa();function dz(e){var t=[];return W(e,function(e){var n=e.data;if(!(n.count()>uz))for(var r=n.getIndices(),i=function(e){for(var t=e.dimensions,n=0;n<t.length;n++){var r=e.getDimensionInfo(t[n]);if(r&&0===r.otherDims.itemGroupId)return t[n]}}(n),a=0;a<r.length;a++)t.push({data:n,dim:e.dim||i,divide:e.divide,dataIndex:a})}),t}function fz(e,t,n){e.traverse(function(e){e instanceof Es&&Tu(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function pz(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function gz(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function Az(e,t,n){var r=Su("update",n,t);r&&e.traverse(function(e){if(e instanceof eo){var t=Cu(e).oldStyle;t&&e.animateFrom({style:t},r)}})}function mz(e,t,n){var r=dz(e),i=dz(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:(n||e).style},i)}function o(e){for(var t=0;t<e.length;t++)if(e[t].dim)return e[t].dim}var s=o(r),l=o(i),c=!1;function u(e,t){return function(n){var r=n.data,i=n.dataIndex;if(t)return r.getId(i);var a=r.hostModel&&r.hostModel.get("dataGroupId"),o=e?s||l:l||s,c=o&&r.getDimensionInfo(o),u=c&&c.ordinalMeta;if(c){var h=r.get(c.name,i);return u&&u.categories[h]||h+""}var d=r.getRawDataItem(i);return d&&d.groupId?d.groupId+"":a||r.getId(i)}}var h=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}(r,i),d={};if(!h)for(var f=0;f<i.length;f++){var p=i[f],g=p.data.getItemGraphicEl(p.dataIndex);g&&(d[g.id]=!0)}function A(e,t){var n=r[t],o=i[e],s=o.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=o.data.getItemGraphicEl(o.dataIndex);l!==u?l&&d[l.id]||u&&(gz(u),l?(gz(l),pz(l),c=!0,lz(cz(l),cz(u),o.divide,s,e,a)):fz(u,s,e)):u&&Az(u,o.dataIndex,s)}new zy(r,i,u(!0,h),u(!1,h),null,"multiple").update(A).updateManyToOne(function(e,t){var n=i[e],o=n.data,s=o.hostModel,l=o.getItemGraphicEl(n.dataIndex),u=Y($(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!d[e.id]});l&&(gz(l),u.length?(W(u,function(e){gz(e),pz(e)}),c=!0,lz(cz(u),cz(l),n.divide,s,e,a)):fz(l,s,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],o=n.data.getItemGraphicEl(n.dataIndex);if(!o||!d[o.id]){var s=Y($(e,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==o}),l=i[e[0]].data.hostModel;s.length&&(W(s,function(e){return gz(e)}),o?(gz(o),pz(o),c=!0,lz(cz(o),cz(s),n.divide,l,e[0],a)):W(s,function(t){return fz(t,l,e[0])}))}}).updateManyToMany(function(e,t){new zy(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return i[e].data.getId(i[e].dataIndex)}).update(function(n,r){A(e[n],t[r])}).execute()}).execute(),c&&W(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=Su("update",t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof Es&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function vz(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function yz(e){return te(e)?e.sort().join(","):e}function bz(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function _z(e,t){var n=Se(),r=Se(),i=Se();return W(e.oldSeries,function(t,n){var a=e.oldData[n],o=vz(t),s=yz(o);r.set(s,a),te(o)&&W(o,function(e){i.set(e,{data:a,key:s})})}),W(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),a=vz(e),o=yz(a),s=r.get(o);if(s)n.set(o,{oldSeries:[{divide:bz(s),data:s}],newSeries:[{divide:bz(t),data:t}]});else if(te(a)){0;var l=[];W(a,function(e){var t=r.get(e);t&&l.push({divide:bz(t),data:t})}),l.length&&n.set(o,{oldSeries:l,newSeries:[{data:t,divide:bz(t)}]})}else{var c=i.get(a);if(c){var u=n.get(c.key);u||(u={oldSeries:[{data:c.data,divide:bz(c.data)}],newSeries:[]},n.set(c.key,u)),u.newSeries.push({data:t,divide:bz(t)})}}}}),n}function wz(e,t){for(var n=0;n<e.length;n++){if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}}n.d(t,"version",function(){return"5.2.2"}),n.d(t,"dependencies",function(){return vv}),n.d(t,"PRIORITY",function(){return wv}),n.d(t,"init",function(){return hy}),n.d(t,"connect",function(){return dy}),n.d(t,"disConnect",function(){return fy}),n.d(t,"disconnect",function(){return py}),n.d(t,"dispose",function(){return gy}),n.d(t,"getInstanceByDom",function(){return Ay}),n.d(t,"getInstanceById",function(){return my}),n.d(t,"registerTheme",function(){return vy}),n.d(t,"registerPreprocessor",function(){return yy}),n.d(t,"registerProcessor",function(){return by}),n.d(t,"registerPostInit",function(){return _y}),n.d(t,"registerPostUpdate",function(){return wy}),n.d(t,"registerUpdateLifecycle",function(){return xy}),n.d(t,"registerAction",function(){return Cy}),n.d(t,"registerCoordinateSystem",function(){return Sy}),n.d(t,"getCoordinateSystemDimensions",function(){return ky}),n.d(t,"registerLocale",function(){return Gh}),n.d(t,"registerLayout",function(){return Ey}),n.d(t,"registerVisual",function(){return Ty}),n.d(t,"registerLoading",function(){return My}),n.d(t,"setCanvasCreator",function(){return Py}),n.d(t,"registerMap",function(){return Dy}),n.d(t,"getMap",function(){return Fy}),n.d(t,"registerTransform",function(){return Oy}),n.d(t,"dataTool",function(){return Ly}),n.d(t,"zrender",function(){return s}),n.d(t,"matrix",function(){return o}),n.d(t,"vector",function(){return i}),n.d(t,"zrUtil",function(){return r}),n.d(t,"color",function(){return a}),n.d(t,"throttle",function(){return Zg}),n.d(t,"helper",function(){return c}),n.d(t,"use",function(){return Uy}),n.d(t,"parseGeoJSON",function(){return iv}),n.d(t,"parseGeoJson",function(){return iv}),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 b}),n.d(t,"List",function(){return db}),n.d(t,"Model",function(){return Oh}),n.d(t,"Axis",function(){return $_}),n.d(t,"ComponentModel",function(){return Yd}),n.d(t,"ComponentView",function(){return Ng}),n.d(t,"SeriesModel",function(){return Lg}),n.d(t,"ChartView",function(){return $g}),n.d(t,"innerDrawElementOnCanvas",function(){return ym}),n.d(t,"extendComponentModel",function(){return K_}),n.d(t,"extendComponentView",function(){return Y_}),n.d(t,"extendSeriesModel",function(){return X_}),n.d(t,"extendChartView",function(){return Z_}),Uy([function(e){e.registerPainter("canvas",Fx)}]),Uy([function(e){e.registerPainter("svg",Tx)}]),Uy([function(e){e.registerChartView(mC),e.registerSeriesModel(Ox),e.registerLayout(vC("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,_C("line"))},function(e){e.registerChartView($C),e.registerSeriesModel(CC),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,ee($b,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Kb),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,_C("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(sS),e.registerSeriesModel(uS),OA("pie",e.registerAction),e.registerLayout(ee(JC,"pie")),e.registerProcessor(eS("pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!("number"==typeof r&&!isNaN(r)&&r<0)})}})},function(e){Uy(lk),e.registerSeriesModel(hS),e.registerChartView(gS),e.registerLayout(vC("scatter"))},function(e){Uy(wk),e.registerChartView(fk),e.registerSeriesModel(pk),e.registerLayout(ck),e.registerProcessor(eS("radar")),e.registerPreprocessor(dk)},function(e){Uy(cE),e.registerChartView(qk),e.registerSeriesModel(Wk),e.registerLayout(Kk),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$k),OA("map",e.registerAction)},function(e){e.registerChartView(EE),e.registerSeriesModel(QE),e.registerLayout(GE),e.registerVisual(qE),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=sE(t.coordinateSystem,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)})})}(e)},function(e){e.registerSeriesModel(YE),e.registerChartView(dT),e.registerVisual(MT),e.registerLayout(QT),function(e){for(var t=0;t<$E.length;t++)e.registerAction({type:$E[t],update:"updateView"},WE);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},function(t,n){var r=UE(e,["treemapZoomToNode","treemapRootToNode"],t);if(r){var i=t.getViewRoot();i&&(e.direction=HE(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}})})}(e)},function(e){e.registerChartView(HB),e.registerSeriesModel(KB),e.registerProcessor(WT),e.registerVisual($T),e.registerVisual(YT),e.registerLayout(sB),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,pB),e.registerLayout(AB),e.registerCoordinateSystem("graphView",{dimensions:Zk.dimensions,create:mB}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){}),e.registerAction(YB,function(e,t){t.eachComponent({mainType:"series",query:e},function(t){var n=sE(t.coordinateSystem,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)})})},function(e){e.registerChartView(tI),e.registerSeriesModel(nI)},function(e){e.registerChartView(aI),e.registerSeriesModel(oI),e.registerLayout(sI),e.registerProcessor(eS("funnel"))},function(e){Uy(RM),e.registerChartView(fI),e.registerSeriesModel(gI),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,mI)},function(e){e.registerChartView(jM),e.registerSeriesModel(HM),e.registerLayout(zM),e.registerVisual(eP),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(rP),e.registerChartView(cP),e.registerVisual(uP),e.registerLayout(dP),e.registerTransform(fP)},function(e){e.registerChartView(SP),e.registerSeriesModel(EP),e.registerPreprocessor(TP),e.registerVisual(DP),e.registerLayout(LP)},function(e){e.registerChartView(UP),e.registerSeriesModel(jP),e.registerLayout(vC("effectScatter"))},function(e){e.registerChartView($P),e.registerSeriesModel(ZP),e.registerLayout(WP),e.registerVisual(eD)},function(e){e.registerChartView(rD),e.registerSeriesModel(iD)},function(e){e.registerChartView(SD),e.registerSeriesModel(kD),e.registerLayout(ee($b,"pictorialBar"))},function(e){e.registerChartView(ED),e.registerSeriesModel(TD),e.registerLayout(BD),e.registerProcessor(eS("themeRiver"))},function(e){e.registerChartView(RD),e.registerSeriesModel(ND),e.registerLayout(ee(jD,"sunburst")),e.registerProcessor(ee(eS,"sunburst")),e.registerVisual(HD),function(e){e.registerAction({type:FD,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t,n){var r=UE(e,[FD],t);if(r){var i=t.getViewRoot();i&&(e.direction=HE(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}})}),e.registerAction({type:OD,update:"none"},function(e,t,n){e=j({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){var n=UE(e,[OD],t);n&&(e.dataIndex=n.node.dataIndex)}),n.dispatchAction(j(e,{type:"highlight"}))}),e.registerAction({type:LD,update:"updateView"},function(e,t,n){e=j({},e),n.dispatchAction(j(e,{type:"downplay"}))})}(e)},function(e){e.registerChartView(yF),e.registerSeriesModel(GD)}]),Uy(function(e){Uy(lk),Uy(wO)}),Uy(function(e){Uy(wO),YS.registerAxisPointerClass("PolarAxisPointer",SO),e.registerCoordinateSystem("polar",jO),e.registerComponentModel(kO),e.registerComponentView(iL),xS(e,"angle",TO,nL),xS(e,"radius",BO,rL),e.registerComponentView(WO),e.registerComponentView(ZO),e.registerLayout(ee(tL,"bar"))}),Uy(cE),Uy(function(e){Uy(wO),YS.registerAxisPointerClass("SingleAxisPointer",CL),e.registerComponentView(SL),e.registerComponentView(uL),e.registerComponentModel(dL),xS(e,"single",dL,dL.defaultOption),e.registerCoordinateSystem("single",mL)}),Uy(RM),Uy(function(e){e.registerComponentModel(EL),e.registerComponentView(TL),e.registerCoordinateSystem("calendar",IL)}),Uy(function(e){e.registerComponentModel(FL),e.registerComponentView(OL),e.registerPreprocessor(DL)}),Uy(function(e){e.registerComponentModel(sR),e.registerComponentView(cR),aR("saveAsImage",hR),aR("magicType",gR),aR("dataView",xR),aR("dataZoom",KR),aR("restore",TR),Uy(nR)}),Uy(function(e){Uy(wO),e.registerComponentModel(YR),e.registerComponentView(yN),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}),Uy(wO),Uy(function(e){e.registerComponentView(NN),e.registerComponentModel(jN),e.registerPreprocessor(_N),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,DN),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(){}),aR("brush",zN)}),Uy(function(e){e.registerComponentModel(QN),e.registerComponentView(VN)}),Uy(function(e){e.registerComponentModel(WN),e.registerComponentView(eU),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var r=t.getComponent("timeline");return r&&null!=e.currentIndex&&(r.setCurrentIndex(e.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),H({currentIndex:r.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(tU)}),Uy(function(e){e.registerComponentModel(cU),e.registerComponentView(bU),e.registerPreprocessor(function(e){iU(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}),Uy(function(e){e.registerComponentModel(_U),e.registerComponentView(TU),e.registerPreprocessor(function(e){iU(e.series,"markLine")&&(e.markLine=e.markLine||{})})}),Uy(function(e){e.registerComponentModel(BU),e.registerComponentView(RU),e.registerPreprocessor(function(e){iU(e.series,"markArea")&&(e.markArea=e.markArea||{})})}),Uy(function(e){Uy(KU),Uy(nj)}),Uy(function(e){Uy(pj),Uy(xj)}),Uy(pj),Uy(xj),Uy(function(e){Uy(aH),Uy(hH)}),Uy(aH),Uy(hH),Uy(function(e){e.registerPreprocessor(AH),e.registerVisual(e.PRIORITY.VISUAL.ARIA,gH)}),Uy(function(e){e.registerTransform(TH),e.registerTransform(BH)}),Uy(function(e){e.registerComponentModel(IH),e.registerComponentView(MH)}),Uy(function(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){W($i(n.seriesTransition),function(e){W($i(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(null!=e.seriesIndex&&e.seriesIndex===t[r].seriesIndex||null!=e.seriesId&&e.seriesId===t[r].id)&&(t[r][Eg]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(e,t,n){var r=hz(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)W($i(i),function(e){!function(e,t,n,r){var i=[],a=[];W($i(e.from),function(e){var n=wz(t.oldSeries,e);n>=0&&i.push({data:t.oldData[n],divide:bz(t.oldData[n]),dim:e.dimension})}),W($i(e.to),function(e){var t=wz(n.updatedSeries,e);if(t>=0){var r=n.updatedSeries[t].getData();a.push({data:r,divide:bz(r),dim:e.dimension})}}),i.length>0&&a.length>0&&mz(i,a,r)}(e,r,n,t)});else{var a=_z(r,n);W(a.keys(),function(e){var n=a.get(e);mz(n.oldSeries,n.newSeries,t)})}W(n.updatedSeries,function(e){e[Eg]&&(e[Eg]=!1)})}for(var o=e.getSeries(),s=r.oldSeries=[],l=r.oldData=[],c=0;c<o.length;c++){var u=o[c].getData();u.count()<uz&&(s.push(o[c]),l.push(u))}})}),Uy(Lw)},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")},XgCd:function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},XmWM:function(e,t,n){"use strict";var r=n("cGG2"),i=n("DQCr"),a=n("fuGk"),o=n("xLtR"),s=n("DUeU"),l=n("/506"),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.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=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))});var i,a=[];if(this.interceptors.response.forEach(function(e){a.push(e.fulfilled,e.rejected)}),!r){var u=[o,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(a),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var h=e;n.length;){var d=n.shift(),f=n.shift();try{h=d(h)}catch(e){f(e);break}}try{i=o(h)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},u.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){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}}),e.exports=u},Xxa5:function(e,t,n){e.exports=n("jyFz")},"Y2/2":function(e,t,n){var r=n("To6e"),i=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays);r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int,r.new_int_n,r.assert;function o(){var e=64.82,t=(o.YULE_ORDER,.95),n=(o.MAX_SAMP_FREQ,o.RMS_WINDOW_TIME_NUMERATOR),r=o.RMS_WINDOW_TIME_DENOMINATOR,s=(o.MAX_SAMPLES_PER_WINDOW,[[.038575994352,-3.84664617118067,-.02160367184185,7.81501653005538,-.00123395316851,-11.34170355132042,-9291677959e-14,13.05504219327545,-.01655260341619,-12.28759895145294,.02161526843274,9.4829380631979,-.02074045215285,-5.87257861775999,.00594298065125,2.75465861874613,.00306428023191,-.86984376593551,.00012025322027,.13919314567432,.00288463683916],[.0541865640643,-3.47845948550071,-.02911007808948,6.36317777566148,-.00848709379851,-8.54751527471874,-.00851165645469,9.4769360780128,-.00834990904936,-8.81498681370155,.02245293253339,6.85401540936998,-.02596338512915,-4.39470996079559,.01624864962975,2.19611684890774,-.00240879051584,-.75104302451432,.00674613682247,.13149317958808,-.00187763777362],[.15457299681924,-2.37898834973084,-.09331049056315,2.84868151156327,-.06247880153653,-2.64577170229825,.02163541888798,2.23697657451713,-.05588393329856,-1.67148153367602,.04781476674921,1.00595954808547,.00222312597743,-.45953458054983,.03174092540049,.16378164858596,-.01390589421898,-.05032077717131,.00651420667831,.0234789740702,-.00881362733839],[.30296907319327,-1.61273165137247,-.22613988682123,1.0797749225997,-.08587323730772,-.2565625775407,.03282930172664,-.1627671912044,-.00915702933434,-.22638893773906,-.02364141202522,.39120800788284,-.00584456039913,-.22138138954925,.06276101321749,.04500235387352,-828086748e-14,.02005851806501,.00205861885564,.00302439095741,-.02950134983287],[.33642304856132,-1.49858979367799,-.2557224142557,.87350271418188,-.11828570177555,.12205022308084,.11921148675203,-.80774944671438,-.07834489609479,.47854794562326,-.0046997791438,-.12453458140019,-.0058950022444,-.04067510197014,.05724228140351,.08333755284107,.00832043980773,-.04237348025746,-.0163538138454,.02977207319925,-.0176017656815],[.4491525660845,-.62820619233671,-.14351757464547,.29661783706366,-.22784394429749,-.372563729424,-.01419140100551,.00213767857124,.04078262797139,-.42029820170918,-.12398163381748,.22199650564824,.04097565135648,.00613424350682,.10478503600251,.06747620744683,-.01863887810927,.05784820375801,-.03193428438915,.03222754072173,.00541907748707],[.56619470757641,-1.04800335126349,-.75464456939302,.29156311971249,.1624213774223,-.26806001042947,.16744243493672,.00819999645858,-.18901604199609,.45054734505008,.3093178284183,-.33032403314006,-.27562961986224,.0673936833311,.00647310677246,-.04784254229033,.08647503780351,.01639907836189,-.0378898455484,.01807364323573,-.00588215443421],[.58100494960553,-.51035327095184,-.53174909058578,-.31863563325245,-.14289799034253,-.20256413484477,.17520704835522,.1472815413433,.02377945217615,.38952639978999,.15558449135573,-.23313271880868,-.25344790059353,-.05246019024463,.01628462406333,-.02505961724053,.06920467763959,.02442357316099,-.03721611395801,.01818801111503,-.00749618797172],[.53648789255105,-.2504987195602,-.42163034350696,-.43193942311114,-.00275953611929,-.03424681017675,.04267842219415,-.04678328784242,-.10214864179676,.26408300200955,.14590772289388,.15113130533216,-.02459864859345,-.17556493366449,-.11202315195388,-.18823009262115,-.04060034127,.05477720428674,.0478866554818,.0470440968812,-.02217936801134]]),l=[[.98621192462708,-1.97223372919527,-1.97242384925416,.97261396931306,.98621192462708],[.98500175787242,-1.96977855582618,-1.97000351574484,.9702284756635,.98500175787242],[.97938932735214,-1.95835380975398,-1.95877865470428,.95920349965459,.97938932735214],[.97531843204928,-1.95002759149878,-1.95063686409857,.95124613669835,.97531843204928],[.97316523498161,-1.94561023566527,-1.94633046996323,.94705070426118,.97316523498161],[.96454515552826,-1.92783286977036,-1.92909031105652,.93034775234268,.96454515552826],[.96009142950541,-1.91858953033784,-1.92018285901082,.92177618768381,.96009142950541],[.95856916599601,-1.9154210807478,-1.91713833199203,.91885558323625,.95856916599601],[.94597685600279,-1.88903307939452,-1.89195371200558,.89487434461664,.94597685600279]];function c(e,t,n,r,i,a){for(;0!=i--;)n[r]=1e-10+e[t+0]*a[0]-n[r-1]*a[1]+e[t-1]*a[2]-n[r-2]*a[3]+e[t-2]*a[4]-n[r-3]*a[5]+e[t-3]*a[6]-n[r-4]*a[7]+e[t-4]*a[8]-n[r-5]*a[9]+e[t-5]*a[10]-n[r-6]*a[11]+e[t-6]*a[12]-n[r-7]*a[13]+e[t-7]*a[14]-n[r-8]*a[15]+e[t-8]*a[16]-n[r-9]*a[17]+e[t-9]*a[18]-n[r-10]*a[19]+e[t-10]*a[20],++r,++t}function u(e,t,n,r,i,a){for(;0!=i--;)n[r]=e[t+0]*a[0]-n[r-1]*a[1]+e[t-1]*a[2]-n[r-2]*a[3]+e[t-2]*a[4],++r,++t}function h(e){return e*e}this.InitGainAnalysis=function(e,t){return function(e,t){for(var i=0;i<MAX_ORDER;i++)e.linprebuf[i]=e.lstepbuf[i]=e.loutbuf[i]=e.rinprebuf[i]=e.rstepbuf[i]=e.routbuf[i]=0;switch(0|t){case 48e3:e.reqindex=0;break;case 44100:e.reqindex=1;break;case 32e3:e.reqindex=2;break;case 24e3:e.reqindex=3;break;case 22050:e.reqindex=4;break;case 16e3:e.reqindex=5;break;case 12e3:e.reqindex=6;break;case 11025:e.reqindex=7;break;case 8e3:e.reqindex=8;break;default:return INIT_GAIN_ANALYSIS_ERROR}return e.sampleWindow=0|(t*n+r-1)/r,e.lsum=0,e.rsum=0,e.totsamp=0,a.ill(e.A,0),INIT_GAIN_ANALYSIS_OK}(e,t)!=INIT_GAIN_ANALYSIS_OK?INIT_GAIN_ANALYSIS_ERROR:(e.linpre=MAX_ORDER,e.rinpre=MAX_ORDER,e.lstep=MAX_ORDER,e.rstep=MAX_ORDER,e.lout=MAX_ORDER,e.rout=MAX_ORDER,a.fill(e.B,0),INIT_GAIN_ANALYSIS_OK)},this.AnalyzeSamples=function(e,t,n,r,a,d,f){var p,g,A,m,v,y,b;if(0==d)return GAIN_ANALYSIS_OK;switch(b=0,v=d,f){case 1:r=t,a=n;break;case 2:break;default:return GAIN_ANALYSIS_ERROR}for(d<MAX_ORDER?(i.arraycopy(t,n,e.linprebuf,MAX_ORDER,d),i.arraycopy(r,a,e.rinprebuf,MAX_ORDER,d)):(i.arraycopy(t,n,e.linprebuf,MAX_ORDER,MAX_ORDER),i.arraycopy(r,a,e.rinprebuf,MAX_ORDER,MAX_ORDER));v>0;){y=v>e.sampleWindow-e.totsamp?e.sampleWindow-e.totsamp:v,b<MAX_ORDER?(p=e.linpre+b,g=e.linprebuf,A=e.rinpre+b,m=e.rinprebuf,y>MAX_ORDER-b&&(y=MAX_ORDER-b)):(p=n+b,g=t,A=a+b,m=r),c(g,p,e.lstepbuf,e.lstep+e.totsamp,y,s[e.reqindex]),c(m,A,e.rstepbuf,e.rstep+e.totsamp,y,s[e.reqindex]),u(e.lstepbuf,e.lstep+e.totsamp,e.loutbuf,e.lout+e.totsamp,y,l[e.reqindex]),u(e.rstepbuf,e.rstep+e.totsamp,e.routbuf,e.rout+e.totsamp,y,l[e.reqindex]),p=e.lout+e.totsamp,g=e.loutbuf,A=e.rout+e.totsamp,m=e.routbuf;for(var _=y%8;0!=_--;)e.lsum+=h(g[p++]),e.rsum+=h(m[A++]);for(_=y/8;0!=_--;)e.lsum+=h(g[p+0])+h(g[p+1])+h(g[p+2])+h(g[p+3])+h(g[p+4])+h(g[p+5])+h(g[p+6])+h(g[p+7]),p+=8,e.rsum+=h(m[A+0])+h(m[A+1])+h(m[A+2])+h(m[A+3])+h(m[A+4])+h(m[A+5])+h(m[A+6])+h(m[A+7]),A+=8;if(v-=y,b+=y,e.totsamp+=y,e.totsamp==e.sampleWindow){var w=10*o.STEPS_per_dB*Math.log10((e.lsum+e.rsum)/e.totsamp*.5+1e-37),x=w<=0?0:0|w;x>=e.A.length&&(x=e.A.length-1),e.A[x]++,e.lsum=e.rsum=0,i.arraycopy(e.loutbuf,e.totsamp,e.loutbuf,0,MAX_ORDER),i.arraycopy(e.routbuf,e.totsamp,e.routbuf,0,MAX_ORDER),i.arraycopy(e.lstepbuf,e.totsamp,e.lstepbuf,0,MAX_ORDER),i.arraycopy(e.rstepbuf,e.totsamp,e.rstepbuf,0,MAX_ORDER),e.totsamp=0}if(e.totsamp>e.sampleWindow)return GAIN_ANALYSIS_ERROR}return d<MAX_ORDER?(i.arraycopy(e.linprebuf,d,e.linprebuf,0,MAX_ORDER-d),i.arraycopy(e.rinprebuf,d,e.rinprebuf,0,MAX_ORDER-d),i.arraycopy(t,n,e.linprebuf,MAX_ORDER-d,d),i.arraycopy(r,a,e.rinprebuf,MAX_ORDER-d,d)):(i.arraycopy(t,n+d-MAX_ORDER,e.linprebuf,0,MAX_ORDER),i.arraycopy(r,a+d-MAX_ORDER,e.rinprebuf,0,MAX_ORDER)),GAIN_ANALYSIS_OK},this.GetTitleGain=function(n){for(var r=function(n,r){var i,a=0;for(i=0;i<r;i++)a+=n[i];if(0==a)return GAIN_NOT_ENOUGH_SAMPLES;var s=0|Math.ceil(a*(1-t));for(i=r;i-- >0&&!((s-=n[i])<=0););return e-i/o.STEPS_per_dB}(n.A,n.A.length),i=0;i<n.A.length;i++)n.B[i]+=n.A[i],n.A[i]=0;for(i=0;i<MAX_ORDER;i++)n.linprebuf[i]=n.lstepbuf[i]=n.loutbuf[i]=n.rinprebuf[i]=n.rstepbuf[i]=n.routbuf[i]=0;return n.totsamp=0,n.lsum=n.rsum=0,r}}o.STEPS_per_dB=100,o.MAX_dB=120,o.GAIN_NOT_ENOUGH_SAMPLES=-24601,o.GAIN_ANALYSIS_ERROR=0,o.GAIN_ANALYSIS_OK=1,o.INIT_GAIN_ANALYSIS_ERROR=0,o.INIT_GAIN_ANALYSIS_OK=1,o.YULE_ORDER=10,o.MAX_ORDER=o.YULE_ORDER,o.MAX_SAMP_FREQ=48e3,o.RMS_WINDOW_TIME_NUMERATOR=1,o.RMS_WINDOW_TIME_DENOMINATOR=20,o.MAX_SAMPLES_PER_WINDOW=o.MAX_SAMP_FREQ*o.RMS_WINDOW_TIME_NUMERATOR/o.RMS_WINDOW_TIME_DENOMINATOR+1,e.exports=o},Y5mS:function(e,t,n){"use strict";var r,i=n("lFkc");i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
  85. /**
  86. * Checks if an event is supported in the current execution environment.
  87. *
  88. * NOTE: This will not work correctly for non-generic events such as `change`,
  89. * `reset`, `load`, `error`, and `select`.
  90. *
  91. * Borrows from Modernizr.
  92. *
  93. * @param {string} eventNameSuffix Event name, e.g. "click".
  94. * @param {?boolean} capture Check if the capture phase is supported.
  95. * @return {boolean} True if the event is supported.
  96. * @internal
  97. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  98. */,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},YNYx:function(e,t,n){"use strict";var r=n("+N5+").isSpace;e.exports=function(e,t){var n,i,a,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;if(n=e.pending.length-1,i=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(a=n-1;a>=1&&32===e.pending.charCodeAt(a-1);)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o<i&&r(e.src.charCodeAt(o));)o++;return e.pos=o,!0}},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)}}},ZezE:function(e,t){function n(e){var t=e;this.ordinal=function(){return t}}n.STEREO=new n(0),n.JOINT_STEREO=new n(1),n.DUAL_CHANNEL=new n(2),n.MONO=new n(3),n.NOT_SET=new n(4),e.exports=n},Zo5e:function(e,t,n){var r=n("To6e"),i=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=(r.new_float_n,r.new_int,r.new_int_n,r.assert,n("/00o"));e.exports=function(){this.useAdjust=0,this.aaSensitivityP=0,this.adjust=0,this.adjustLimit=0,this.decay=0,this.floor=0,this.l=i(a.SBMAX_l),this.s=i(a.SBMAX_s),this.psfb21=i(a.PSFB21),this.psfb12=i(a.PSFB12),this.cb_l=i(a.CBANDS),this.cb_s=i(a.CBANDS),this.eql_w=i(a.BLKSIZE/2)}},Zzip:function(e,t,n){e.exports={default:n("/n6Q"),__esModule:!0}},aBKc:function(e,t,n){"use strict";var r=n("+N5+").isSpace;function i(e,t){var n,i,a,o;return i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n?-1:i<a&&(o=e.src.charCodeAt(i),!r(o))?-1:i}function a(e,t){var n,i=e.bMarks[t]+e.tShift[t],a=i,o=e.eMarks[t];if(a+1>=o)return-1;if((n=e.src.charCodeAt(a++))<48||n>57)return-1;for(;;){if(a>=o)return-1;if(!((n=e.src.charCodeAt(a++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(a-i>=10)return-1}return a<o&&(n=e.src.charCodeAt(a),!r(n))?-1:a}e.exports=function(e,t,n,r){var o,s,l,c,u,h,d,f,p,g,A,m,v,y,b,_,w,x,C,S,k,E,T,B,I,M,P,D,F=!1,O=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(F=!0),(T=a(e,t))>=0){if(d=!0,I=e.bMarks[t]+e.tShift[t],v=Number(e.src.slice(I,T-1)),F&&1!==v)return!1}else{if(!((T=i(e,t))>=0))return!1;d=!1}if(F&&e.skipSpaces(T)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(T-1),r)return!0;for(A=e.tokens.length,d?(D=e.push("ordered_list_open","ol",1),1!==v&&(D.attrs=[["start",v]])):D=e.push("bullet_list_open","ul",1),D.map=g=[t,0],D.markup=String.fromCharCode(m),b=t,B=!1,P=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";b<n;){for(E=T,y=e.eMarks[b],h=_=e.sCount[b]+T-(e.bMarks[t]+e.tShift[t]);E<y;){if(9===(o=e.src.charCodeAt(E)))_+=4-(_+e.bsCount[b])%4;else{if(32!==o)break;_++}E++}if((u=(s=E)>=y?1:_-h)>4&&(u=1),c=h+u,(D=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),D.map=f=[t,0],d&&(D.info=e.src.slice(I,T-1)),k=e.tight,S=e.tShift[t],C=e.sCount[t],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=_,s>=y&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!B||(O=!1),B=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[t]=S,e.sCount[t]=C,e.tight=k,(D=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),b=t=e.line,f[1]=b,s=e.bMarks[t],b>=n)break;if(e.sCount[b]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(M=!1,l=0,p=P.length;l<p;l++)if(P[l](e,b,n,!0)){M=!0;break}if(M)break;if(d){if((T=a(e,b))<0)break;I=e.bMarks[b]+e.tShift[b]}else if((T=i(e,b))<0)break;if(m!==e.src.charCodeAt(T-1))break}return(D=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),g[1]=b,e.line=b,e.parentType=x,O&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,A),!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=140)}({140:function(e,t,n){"use strict";n.r(t);var r=n(5),i=n.n(r),a=n(18),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},18: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:{}}}}}},ackW:function(e,t,n){"use strict";
  99. /**
  100. * @fileoverview Task mixin
  101. * @license MIT
  102. * @author Rafal Pospiech <neuronet.io@gmail.com>
  103. * @package GanttElastic
  104. */t.a={computed:{getViewBox(){const e=this.task;return`0 0 ${e.width} ${e.height}`},getGroupTransform(){return`translate(${this.task.x} ${this.task.y})`},displayExpander(){const e=this.root.state.options.chart.expander;return e.display||e.displayIfTaskListHidden&&!this.root.state.options.taskList.display}},methods:{emitEvent(e,t){this.root.state.options.scroll.scrolling||this.root.$emit(`chart-${this.task.type}-${e}`,{event:t,data:this.task})}}}},ai7u:function(e,t,n){"use strict";var r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,i=/\((c|tm|r)\)/i,a=/\((c|tm|r)\)/gi,o={c:"©",r:"®",tm:"™"};function s(e,t){return o[t.toLowerCase()]}function l(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(a,s)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function c(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||r.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(i.test(e.tokens[t].content)&&l(e.tokens[t].children),r.test(e.tokens[t].content)&&c(e.tokens[t].children))}},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,g=null,A="",m=!0,v="auto",y="start",b=50,_="middle",w=50,x="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 g},set:function(e){g=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",o({},c,{get:function(){return A},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.");A=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 _},set:function(e){var t=a(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",o({},c,{get:function(){return w},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",o({},c,{get:function(){return x},set:function(e){var t=a(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");x=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=141)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(142)},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 g}),n.d(t,"__spread",function(){return A}),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 _}),n.d(t,"__asyncValues",function(){return w}),n.d(t,"__makeTemplateObject",function(){return x}),n.d(t,"__importStar",function(){return S}),n.d(t,"__importDefault",function(){return k}),n.d(t,"__classPrivateFieldGet",function(){return E}),n.d(t,"__classPrivateFieldSet",function(){return T});
  105. /*! *****************************************************************************
  106. Copyright (c) Microsoft Corporation.
  107. Permission to use, copy, modify, and/or distribute this software for any
  108. purpose with or without fee is hereby granted.
  109. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  110. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  111. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  112. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  113. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  114. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  115. PERFORMANCE OF THIS SOFTWARE.
  116. ***************************************************************************** */
  117. 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 g(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 A(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(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 _(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 w(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 x(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 E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(89)),o=r(n(4)),s=r(n(26)),l=r(n(17)),c=r(n(121)),u=r(n(27)),h=r(n(91)),d=r(n(70)),f=r(n(28)),p=r(n(57));(0,i.default)(t,"__esModule",{value:!0}),t.DomElement=void 0;var g=n(2),A=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=A.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 A.toArray(n)}(a):function(e){var t=document.querySelectorAll(e);return A.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){var t=n.parentNode;null===t||void 0===t||t.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,g.__spreadArrays([void 0],e)))}t.DomElement=y,t.default=b},function(e,t,n){e.exports=n(180)},function(e,t,n){"use strict";var r=n(8),i=n(71).f,a=n(101),o=n(9),s=n(40),l=n(19),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,g,A,m,v=e.target,y=e.global,b=e.stat,_=e.proto,w=y?r:b?r[v]:(r[v]||{}).prototype,x=y?o:o[v]||(o[v]={}),C=x.prototype;for(d in t)n=!a(y?d:v+(b?".":"#")+d,e.forced)&&w&&c(w,d),p=x[d],n&&(g=e.noTargetGet?(m=i(w,d))&&m.value:w[d]),f=n&&g?g:t[d],n&&typeof p==typeof f||(A=e.bind&&n?s(f,r):e.wrap&&n?u(f):_&&"function"==typeof f?s(Function.call,f):f,(e.sham||f&&f.sham||p&&p.sham)&&l(A,"sham",!0),x[d]=A,_&&(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(92)),a=r(n(1)),o=r(n(256)),s=r(n(45)),l=r(n(46)),c=r(n(89)),u=r(n(26));(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.__spreadArrays([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.__spreadArrays([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;/~+#])?/g,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")()}).call(this,n(145))},function(e,t){e.exports={}},function(e,t,n){var r=n(8),i=n(74),a=n(16),o=n(64),s=n(76),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&&a(u,e)?c[e]=u[e]:c[e]=h("Symbol."+e)),c[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(9),i=n(16),a=n(93),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){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(11);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var r=n(9);e.exports=function(e){return r[e+"Prototype"]}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=n(192)},function(e,t,n){var r=n(14),i=n(100),a=n(25),o=n(60),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){var r=n(14),i=n(18),a=n(48);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){"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:g(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 g(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){var r=n(14),i=n(11),a=n(16),o=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(a(s,e))return s[e];t||(t={});var n=[][e],c=!!a(t,"ACCESSORS")&&t.ACCESSORS,u=a(t,0)?t[0]:l,h=a(t,1)?t[1]:void 0;return s[e]=!!n&&!i(function(){if(c&&!r)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,h)})}},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(95)).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(46));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(3)),c=s.__importDefault(n(95)),u=s.__importDefault(n(134)),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){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){e.exports=n(188)},function(e,t,n){e.exports=n(201)},function(e,t,n){e.exports=n(213)},function(e,t,n){e.exports=n(283)},function(e,t,n){var r=n(72),i=n(49);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(49);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(40),i=n(72),a=n(31),o=n(35),s=n(88),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,h=6==e,d=5==e||h;return function(f,p,g,A){for(var m,v,y=a(f),b=i(y),_=r(p,g,3),w=o(b.length),x=0,C=A||s,S=t?C(f,w):n?C(f,0):void 0;w>x;x++)if((d||x in b)&&(v=_(m=b[x],x,y),e))if(t)S[x]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:l.call(S,m)}else if(u)return!1;return h?-1:c||u?u:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(4)),o=r(n(29)),s=r(n(132));(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;Math.abs(p)>300&&(p=d.left<document.documentElement.clientWidth/2?-d.width/2:-s+d.width/2),i.css("width",s+"px").css("margin-top",f+"px").css("margin-left",p+"px").css("z-index",n.editor.zIndex.get("panel"));var g=c.default('<i class="w-e-icon-close w-e-panel-close"></i>');i.append(g),g.on("click",function(){t.remove()});var A=c.default('<ul class="w-e-panel-tab-title"></ul>'),m=c.default('<div class="w-e-panel-tab-content"></div>');i.append(A).append(m);var v=r.height;v&&m.css("height",v+"px").css("overflow-y","auto");var y=r.tabs||[],b=[],_=[];(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>");A.append(i);var o=c.default(r);m.append(o),b.push(i),_.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)(_).call(_,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),r.setLinkValue&&r.setLinkValue(i,"text"),r.setLinkValue&&r.setLinkValue(i,"link"),(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,i=e.selector,a=e.type,s=e.fn||u.EMPTY_FN,c=_[n],h=null!==(r=e.bindEnter)&&void 0!==r&&r,d=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,s(e)];case 1:return t.sent()&&this.remove(),[2]}})})};(0,o.default)(c).call(c,i).on(a,d),h&&"click"===a&&c.on("keyup",function(e){13==e.keyCode&&d(e)})})}});var w=(0,o.default)(i).call(i,"input[type=text],textarea");w.length&&w.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){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(62),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(9),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(81),i=n(18).f,a=n(19),o=n(16),s=n(170),l=n(10)("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){"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(95)).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(57));(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,n){var r=n(41);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r,i,a,o=n(165),s=n(8),l=n(13),c=n(19),u=n(16),h=n(63),d=n(51),f=s.WeakMap;if(o){var p=new f,g=p.get,A=p.has,m=p.set;r=function(e,t){return m.call(p,e,t),t},i=function(e){return g.call(p,e)||{}},a=function(e){return A.call(p,e)}}else{var v=h("state");d[v]=!0,r=function(e,t){return c(e,v,t),t},i=function(e){return u(e,v)?e[v]:{}},a=function(e){return u(e,v)}}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){e.exports=!0},function(e,t){e.exports={}},function(e,t,n){e.exports=n(261)},function(e,t,n){e.exports=n(265)},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(137),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.appendChild(r),e.remove()}),t}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(164).charAt,i=n(42),a=n(75),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){e.exports={}},function(e,t,n){var r=n(107),i=n(80);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(19);e.exports=function(e,t,n,i){i&&i.enumerable?e[t]=n:r(e,t,n)}},function(e,t,n){n(173);var r=n(174),i=n(8),a=n(65),o=n(19),s=n(44),l=n(10)("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(34);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(11),i=n(10),a=n(86),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(222)},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(373)),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){},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(74),i=n(64),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=n(81),i=n(34),a=n(10)("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,n){var r=n(25),i=n(112),a=n(35),o=n(40),s=n(113),l=n(114),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,u,h){var d,f,p,g,A,m,v,y=o(t,n,u?2:1);if(h)d=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(i(f)){for(p=0,g=a(e.length);g>p;p++)if((A=u?y(r(v=e[p])[0],v[1]):y(e[p]))&&A instanceof c)return A;return new c(!1)}d=f.call(e)}for(m=d.next;!(v=m.call(d)).done;)if("object"==typeof(A=l(d,y,v.value,u))&&A&&A instanceof c)return A;return new c(!1)}).stop=function(e){return new c(!0,e)}},function(e,t,n){"use strict";var r=n(11);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(60),i=n(18),a=n(48);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(209)},function(e,t,n){var r=n(14),i=n(59),a=n(48),o=n(30),s=n(60),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(11),i=n(34),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(43),i=n(103);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";var r=n(5),i=n(167),a=n(105),o=n(171),s=n(37),l=n(19),c=n(53),u=n(10),h=n(43),d=n(44),f=n(104),p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,A=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&&T)return T;if(!g&&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,E=k[A]||k["@@iterator"]||f&&k[f],T=!g&&E||x(f),B="Array"==t&&k.entries||E;if(B&&(b=a(B.call(new e)),p!==Object.prototype&&b.next&&(h||a(b)===p||(o?o(b,p):"function"!=typeof b[A]&&l(b,A,m)),s(b,C,!0,!0),h&&(d[C]=m))),"values"==f&&E&&"values"!==E.name&&(S=!0,T=function(){return E.call(this)}),h&&!y||k[A]===T||l(k,A,T),d[t]=T,f)if(_={values:x("values"),keys:v?T:x("keys"),entries:x("entries")},y)for(w in _)!g&&!S&&w in k||c(k,w,_[w]);else r({target:t,proto:!0,forced:g||S},_);return _}},function(e,t,n){var r=n(11);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},function(e,t,n){var r,i=n(25),a=n(169),o=n(80),s=n(51),l=n(108),c=n(73),u=n(63)("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(30),i=n(35),a=n(79),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(62),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={};r[n(10)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(36);e.exports=r("navigator","userAgent")||""},function(e,t,n){"use strict";var r=n(41);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){var r,i,a=n(8),o=n(84),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){"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(267)),u=o.__importDefault(n(280)),h=o.__importDefault(n(281)),d=o.__importDefault(n(282)),f=o.__importDefault(n(301)),p=o.__importStar(n(416)),g=o.__importDefault(n(417)),A=o.__importDefault(n(418)),m=o.__importDefault(n(419)),v=o.__importStar(n(420)),y=o.__importDefault(n(423)),b=o.__importDefault(n(424)),_=o.__importDefault(n(425)),w=o.__importDefault(n(427)),x=o.__importDefault(n(437)),C=o.__importDefault(n(440)),S=o.__importStar(n(441)),k=o.__importDefault(n(23)),E=o.__importDefault(n(134)),T=o.__importDefault(n(24)),B=o.__importDefault(n(33)),I=o.__importDefault(n(38)),M=o.__importDefault(n(39)),P=1,D=function(){function e(e,t){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+P++,this.toolbarSelector=e,this.textSelector=t,p.selectorValidator(this),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 _.default(this),this.history=new w.default(this),this.onSelectionChange=new C.default(this);var n=x.default(this),r=n.disable,i=n.enable;this.disable=r,this.enable=i,this.isEnable=!0}return e.prototype.initSelection=function(e){g.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),A.default(this),this.change.observe(),this.history.observe(),S.default(this)},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.prototype.registerPlugin=function(e,t){S.registerPlugin(e,t,this.pluginsFunctionList)},e.registerPlugin=function(t,n){S.registerPlugin(t,n,e.globalPluginsFunctionList)},e.$=s.default,e.BtnMenu=k.default,e.DropList=E.default,e.DropListMenu=T.default,e.Panel=B.default,e.PanelMenu=I.default,e.Tooltip=M.default,e.globalCustomMenuConstructorList={},e.globalPluginsFunctionList={},e}();t.default=D},function(e,t,n){var r=n(13),i=n(55),a=n(10)("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(185)},function(e,t,n){var r=n(49),i="["+n(68)+"]",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(205)},function(e,t,n){var r=n(227),i=n(230);function a(t){"@babel/helpers - typeof";return e.exports=a="function"==typeof i&&"symbol"==typeof r?function(e){return typeof e}:function(e){return e&&"function"==typeof i&&e.constructor===i&&e!==i.prototype?"symbol":typeof e},a(t)}e.exports=a},function(e,t,n){var r=n(10);t.f=r},function(e,t,n){e.exports=n(306)},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(33)),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(28));function o(e){for(var n=e.elems[0];n&&(0,a.default)(r=t.EXTRA_TAG).call(r,n.nodeName);){var r;if("A"===(n=n.parentElement).nodeName)return n}}(0,i.default)(t,"__esModule",{value:!0}),t.getParentNodeA=t.EXTRA_TAG=void 0,t.EXTRA_TAG=["B","FONT","I","STRIKE"],t.getParentNodeA=o,t.default=function(e){var t,n=e.selection.getSelectionContainerElem();if(!(null===(t=null===n||void 0===n?void 0:n.elems)||void 0===t?void 0:t.length))return!1;if("A"===n.getNodeName())return!0;var r=o(n);return!(!r||"A"!==r.nodeName)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(57)),o=r(n(4)),s=r(n(27));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),c=n(6),u=l.__importDefault(n(135)),h=l.__importDefault(n(136)),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=e.replace(/</g,"&lt;").replace(/>/g,"&gt;");o=o.replace("'",'"');var s="";n&&(s=n.replace("'",'"'),s="data-href='"+encodeURIComponent(s)+"' ");var l="";t&&(l="alt='"+(l=(l=t.replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace("'",'"'))+"' "),r.cmd.do("insertHTML","<img src='"+o+"' "+l+s+'style="max-width:100%;" contenteditable="false"/>'),i.linkImgCallback(e,t,n);var c=document.createElement("img");c.onload=function(){c=null},c.onerror=function(){i.customAlert(a("插入图片错误"),"error","wangEditor: "+a("插入图片错误")+","+a("图片链接")+' "'+e+'",'+a("下载链接失败")),c=null},c.onabort=function(){return c=null},c.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,g=r.uploadImgMaxLength,A=r.uploadFileName,m=r.uploadImgParams,v=r.uploadImgParamsWithUrl,y=r.uploadImgHeaders,b=r.uploadImgHooks,_=r.uploadImgTimeout,w=r.withCredentials,x=r.customUploadImg;if(x||l||d){var C=[],S=[];if(c.arrForEach(e,function(e){if(e){var t=e.name||e.type.replace("/","."),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>g)r.customAlert(i("一次最多上传")+g+i("张图片"),"warning");else if(x&&"function"==typeof x){var k;x(C,(0,a.default)(k=this.insertImg).call(k,this))}else{var E=new FormData;if((0,o.default)(C).call(C,function(e,t){var n=A||e.name;C.length>1&&(n+=t+1),E.append(n,e)}),l){var T=l.split("#");l=T[0];var B=T[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),E.append(e,t)}),B&&(l+="#"+B);var I=u.default(l,{timeout:_,formData:E,headers:y,withCredentials:!!w,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(45));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(14),i=n(11),a=n(73);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(11),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(103),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(8),i=n(166),a=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=a},function(e,t,n){"use strict";var r,i,a,o=n(105),s=n(19),l=n(16),c=n(10),u=n(43),h=c("iterator"),d=!1;[].keys&&("next"in(a=[].keys())?(i=o(o(a)))!==Object.prototype&&(r=i):d=!0),void 0==r&&(r={}),u||l(r,h)||s(r,h,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var r=n(16),i=n(31),a=n(63),o=n(168),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(76);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(16),i=n(30),a=n(78).indexOf,o=n(51);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(36);e.exports=r("document","documentElement")},function(e,t,n){var r=n(8);e.exports=r.Promise},function(e,t,n){var r=n(53);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(36),i=n(18),a=n(10),o=n(14),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(10),i=n(44),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(65),i=n(44),a=n(10)("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(25);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}}},function(e,t,n){var r=n(10)("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(25),i=n(41),a=n(10)("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(11),l=n(34),c=n(40),u=n(108),h=n(73),d=n(118),f=o.location,p=o.setImmediate,g=o.clearImmediate,A=o.process,m=o.MessageChannel,v=o.Dispatch,y=0,b={},_=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},w=function(e){return function(){_(e)}},x=function(e){_(e.data)},C=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};p&&g||(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},g=function(e){delete b[e]},"process"==l(A)?r=function(e){A.nextTick(w(e))}:v&&v.now?r=function(e){v.now(w(e))}:m&&!d?(a=(i=new m).port2,i.port1.onmessage=x,r=c(a.postMessage,a,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(C)||"file:"===f.protocol?r="onreadystatechange"in h("script")?function(e){u.appendChild(h("script")).onreadystatechange=function(){u.removeChild(this),_(e)}}:function(e){setTimeout(w(e),0)}:(r=C,o.addEventListener("message",x,!1))),e.exports={set:p,clear:g}},function(e,t,n){var r=n(84);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(25),i=n(13),a=n(85);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){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){e.exports=n(197)},function(e,t,n){"use strict";var r=n(5),i=n(8),a=n(123),o=n(11),s=n(19),l=n(66),c=n(83),u=n(13),h=n(37),d=n(18).f,f=n(32).forEach,p=n(14),g=n(42),A=g.set,m=g.getterFor;e.exports=function(e,t,n){var g,v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),b=v?"set":"add",_=i[e],w=_&&_.prototype,x={};if(p&&"function"==typeof _&&(y||w.forEach&&!o(function(){(new _).entries().next()}))){g=t(function(t,n){A(c(t,g,e),{type:e,collection:new _}),void 0!=n&&l(n,t[b],t,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 w&&(!y||"clear"!=e)&&s(g.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(g.prototype,"size",{configurable:!0,get:function(){return C(this).collection.size}})}else g=n.getConstructor(t,e,v,b),a.REQUIRED=!0;return h(g,e,!1,!0),x[e]=g,r({global:!0,forced:!0},x),y||n.setStrong(g,e,v),g}},function(e,t,n){var r=n(51),i=n(13),a=n(16),o=n(18).f,s=n(64),l=n(200),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(77),a=n(110),o=n(40),s=n(83),l=n(66),c=n(75),u=n(111),h=n(14),d=n(123).fastKey,f=n(42),p=f.set,g=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],e,n)}),f=g(t),A=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 A(this,0===e?0:e,t)}}:{add:function(e){return A(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=g(t),a=g(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){n(12)("iterator")},function(e,t,n){var r=n(107),i=n(80).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){e.exports=n(268)},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";(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";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(292));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=(i=i.replace(/<(\d)/gm,function(e,t){return"&lt;"+t})).replace(/<(\/?meta.*?)>/gim,""),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(294)},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(46));(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";var r=n(0),i=r(n(92)),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(46));(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(47),l=i.__importStar(n(371));!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(395)},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(29));(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.$child,t=this.getInputContainer();e&&e.insertAfter(t)},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(146),n(148),n(152),n(154),n(156),n(158),n(160);var i=r.__importDefault(n(87));r.__exportStar(n(442),t);try{document}catch(e){throw new Error("请在浏览器环境下运行")}t.default=i.default},function(e,t,n){var r=n(143);e.exports=r},function(e,t,n){n(144);var r=n(9).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(14);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(20),i=n(147);"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(21)(!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: 32px !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n font-size: 24px !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n font-size: 18.72px !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n font-size: 16px !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n font-size: 13.28px !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n font-size: 16px !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(20),i=n(149);"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(21),i=n(150),a=n(151);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(20),i=n(153);"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(21)(!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(20),i=n(155);"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(21)(!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 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(20),i=n(157);"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(21)(!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(20),i=n(159);"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(21)(!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(161));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(162)},function(e,t,n){var r=n(163);e.exports=r},function(e,t,n){n(61),n(50),n(54),n(175),n(178),n(179);var r=n(9);e.exports=r.Promise},function(e,t,n){var r=n(62),i=n(49),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){var r=n(8),i=n(102),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},function(e,t,n){var r=n(8),i=n(19);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){"use strict";var r=n(104).IteratorPrototype,i=n(77),a=n(48),o=n(37),s=n(44),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){var r=n(11);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var r=n(14),i=n(18),a=n(25),o=n(52);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=n(81),i=n(65);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){var r=n(25),i=n(172);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(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){"use strict";var r=n(30),i=n(82),a=n(44),o=n(42),s=n(75),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){"use strict";var r,i,a,o,s=n(5),l=n(43),c=n(8),u=n(36),h=n(109),d=n(53),f=n(110),p=n(37),g=n(111),A=n(13),m=n(41),v=n(83),y=n(34),b=n(102),_=n(66),w=n(115),x=n(116),C=n(117).set,S=n(176),k=n(119),E=n(177),T=n(85),B=n(120),I=n(42),M=n(101),P=n(10),D=n(86),F=P("species"),O="Promise",L=I.get,R=I.set,N=I.getterFor(O),U=h,j=c.TypeError,H=c.document,z=c.process,Q=u("fetch"),V=T.f,G=V,q="process"==y(z),W=!!(H&&H.createEvent&&c.dispatchEvent),$=M(O,function(){if(!(b(U)!==String(U))){if(66===D)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)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={})[F]=t,!(e.then(function(){})instanceof t)}),K=$||!w(function(e){U.all(e).catch(function(){})}),Y=function(e){var t;return!(!A(e)||"function"!=typeof(t=e.then))&&t},X=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;S(function(){for(var i=t.value,a=1==t.state,o=0;r.length>o;){var s,l,c,u=r[o++],h=a?u.ok:u.fail,d=u.resolve,f=u.reject,p=u.domain;try{h?(a||(2===t.rejection&&te(e,t),t.rejection=1),!0===h?s=i:(p&&p.enter(),s=h(i),p&&(p.exit(),c=!0)),s===u.promise?f(j("Promise-chain cycle")):(l=Y(s))?l.call(s,d,f):d(s)):f(i)}catch(e){p&&!c&&p.exit(),f(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&J(e,t)})}},Z=function(e,t,n){var r,i;W?((r=H.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(i=c["on"+e])?i(r):"unhandledrejection"===e&&E("Unhandled promise rejection",n)},J=function(e,t){C.call(c,function(){var n,r=t.value;if(ee(t)&&(n=B(function(){q?z.emit("unhandledRejection",r,e):Z("unhandledrejection",e,r)}),t.rejection=q||ee(t)?2:1,n.error))throw n.value})},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){C.call(c,function(){q?z.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)})},ne=function(e,t,n,r){return function(i){e(t,n,i,r)}},re=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,X(e,t,!0))},ie=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw j("Promise can't be resolved itself");var i=Y(n);i?S(function(){var r={done:!1};try{i.call(n,ne(ie,e,r,t),ne(re,e,r,t))}catch(n){re(e,r,n,t)}}):(t.value=n,t.state=1,X(e,t,!1))}catch(n){re(e,{done:!1},n,t)}}};$&&(U=function(e){v(this,U,O),m(e),r.call(this);var t=L(this);try{e(ne(ie,this,t),ne(re,this,t))}catch(e){re(this,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=q?z.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&X(this,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,e,t),this.reject=ne(re,e,t)},T.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 Q&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return k(U,Q.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:$},{Promise:U}),p(U,O,!1,!0),g(O),a=u(O),s({target:O,stat:!0,forced:$},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:O,stat:!0,forced:l||$},{resolve:function(e){return k(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=B(function(){var n=m(t.resolve),a=[],o=0,s=1;_(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=B(function(){var i=m(t.resolve);_(e,function(e){i.call(t,e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})},function(e,t,n){var r,i,a,o,s,l,c,u,h=n(8),d=n(71).f,f=n(34),p=n(117).set,g=n(118),A=h.MutationObserver||h.WebKitMutationObserver,m=h.process,v=h.Promise,y="process"==f(m),b=d(h,"queueMicrotask"),_=b&&b.value;_||(r=function(){var e,t;for(y&&(e=m.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()},y?o=function(){m.nextTick(r)}:A&&!g?(s=!0,l=document.createTextNode(""),new A(r).observe(l,{characterData:!0}),o=function(){l.data=s=!s}):v&&v.resolve?(c=v.resolve(void 0),u=c.then,o=function(){u.call(c,r)}):o=function(){p.call(h,r)}),e.exports=_||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(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){"use strict";var r=n(5),i=n(41),a=n(85),o=n(120),s=n(66);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(43),a=n(109),o=n(11),s=n(36),l=n(116),c=n(119),u=n(53);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){n(54);var r=n(181),i=n(65),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(182);e.exports=r},function(e,t,n){n(183);var r=n(15);e.exports=r("Array").forEach},function(e,t,n){"use strict";var r=n(5),i=n(184);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(e,t,n){"use strict";var r=n(32).forEach,i=n(67),a=n(22),o=i("forEach"),s=a("forEach");e.exports=o&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(186);e.exports=r},function(e,t,n){n(187);var r=n(9);e.exports=r.Array.isArray},function(e,t,n){n(5)({target:"Array",stat:!0},{isArray:n(55)})},function(e,t,n){var r=n(189);e.exports=r},function(e,t,n){var r=n(190),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(191);var r=n(15);e.exports=r("Array").map},function(e,t,n){"use strict";var r=n(5),i=n(32).map,a=n(56),o=n(22),s=a("map"),l=o("map");r({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(193);e.exports=r},function(e,t,n){var r=n(194),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(195);var r=n(15);e.exports=r("String").trim},function(e,t,n){"use strict";var r=n(5),i=n(90).trim;r({target:"String",proto:!0,forced:n(196)("trim")},{trim:function(){return i(this)}})},function(e,t,n){var r=n(11),i=n(68);e.exports=function(e){return r(function(){return!!i[e]()||"​…᠎"!="​…᠎"[e]()||i[e].name!==e})}},function(e,t,n){var r=n(198);e.exports=r},function(e,t,n){n(199),n(61),n(50),n(54);var r=n(9);e.exports=r.Map},function(e,t,n){"use strict";var r=n(122),i=n(124);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(11);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var r=n(202);e.exports=r},function(e,t,n){var r=n(203),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(204);var r=n(15);e.exports=r("Array").indexOf},function(e,t,n){"use strict";var r=n(5),i=n(78).indexOf,a=n(67),o=n(22),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=a("indexOf"),u=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(206);e.exports=r},function(e,t,n){var r=n(207),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(208);var r=n(15);e.exports=r("Array").splice},function(e,t,n){"use strict";var r=n(5),i=n(79),a=n(62),o=n(35),s=n(31),l=n(88),c=n(69),u=n(56),h=n(22),d=u("splice"),f=h("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!d||!f},{splice:function(e,t){var n,r,u,h,d,f,A=s(this),m=o(A.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=g(p(a(t),0),m-v)),m+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=l(A,r),h=0;h<r;h++)(d=v+h)in A&&c(u,h,A[d]);if(u.length=r,n<r){for(h=v;h<m-r;h++)f=h+n,(d=h+r)in A?A[f]=A[d]:delete A[f];for(h=m;h>m-r+n;h--)delete A[h-1]}else if(n>r)for(h=m-r;h>v;h--)f=h+n-1,(d=h+r-1)in A?A[f]=A[d]:delete A[f];for(h=0;h<n;h++)A[h+v]=arguments[h+2];return A.length=m-r+n,u}})},function(e,t,n){var r=n(210);e.exports=r},function(e,t,n){var r=n(211),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(212);var r=n(15);e.exports=r("Array").filter},function(e,t,n){"use strict";var r=n(5),i=n(32).filter,a=n(56),o=n(22),s=a("filter"),l=o("filter");r({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(214);e.exports=r},function(e,t,n){var r=n(215),i=n(217),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(216);var r=n(15);e.exports=r("Array").includes},function(e,t,n){"use strict";var r=n(5),i=n(78).includes,a=n(82);r({target:"Array",proto:!0,forced:!n(22)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){n(218);var r=n(15);e.exports=r("String").includes},function(e,t,n){"use strict";var r=n(5),i=n(219),a=n(49);r({target:"String",proto:!0,forced:!n(221)("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(220);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(34),a=n(10)("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(10)("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(223);e.exports=r},function(e,t,n){var r=n(224),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(225);var r=n(15);e.exports=r("Function").bind},function(e,t,n){n(5)({target:"Function",proto:!0},{bind:n(226)})},function(e,t,n){"use strict";var r=n(41),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(228)},function(e,t,n){var r=n(229);e.exports=r},function(e,t,n){n(125),n(50),n(54);var r=n(93);e.exports=r.f("iterator")},function(e,t,n){e.exports=n(231)},function(e,t,n){var r=n(232);n(251),n(252),n(253),n(254),n(255),e.exports=r},function(e,t,n){n(233),n(61),n(234),n(236),n(237),n(238),n(239),n(125),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250);var r=n(9);e.exports=r.Symbol},function(e,t,n){"use strict";var r=n(5),i=n(11),a=n(55),o=n(13),s=n(31),l=n(35),c=n(69),u=n(88),h=n(56),d=n(10),f=n(86),p=d("isConcatSpreadable"),g=f>=51||!i(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),A=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:!g||!A},{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(36),o=n(43),s=n(14),l=n(76),c=n(106),u=n(11),h=n(16),d=n(55),f=n(13),p=n(25),g=n(31),A=n(30),m=n(60),v=n(48),y=n(77),b=n(52),_=n(126),w=n(235),x=n(127),C=n(71),S=n(18),k=n(59),E=n(19),T=n(53),B=n(74),I=n(63),M=n(51),P=n(64),D=n(10),F=n(93),O=n(12),L=n(37),R=n(42),N=n(32).forEach,U=I("hidden"),j=D("toPrimitive"),H=R.set,z=R.getterFor("Symbol"),Q=Object.prototype,V=i.Symbol,G=a("JSON","stringify"),q=C.f,W=S.f,$=w.f,K=k.f,Y=B("symbols"),X=B("op-symbols"),Z=B("string-to-symbol-registry"),J=B("symbol-to-string-registry"),ee=B("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&u(function(){return 7!=y(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=q(Q,t);r&&delete Q[t],W(e,t,n),r&&e!==Q&&W(Q,t,r)}:W,ie=function(e,t){var n=Y[e]=y(V.prototype);return H(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===Q&&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)||W(e,U,v(1,{})),e[U][r]=!0),re(e,r,n)):W(e,r,n)},se=function(e,t){p(e);var n=A(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===Q&&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=A(e),r=m(t,!0);if(n!==Q||!h(Y,r)||h(X,r)){var i=q(n,r);return!i||!h(Y,r)||h(n,U)&&n[U][r]||(i.enumerable=!0),i}},ue=function(e){var t=$(A(e)),n=[];return N(t,function(e){h(Y,e)||h(M,e)||n.push(e)}),n},he=function(e){var t=e===Q,n=$(t?X:A(e)),r=[];return N(n,function(e){!h(Y,e)||t&&!h(Q,e)||r.push(Y[e])}),r};(l||(T((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=P(e),n=function(e){this===Q&&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(Q,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",function(){return z(this).tag}),T(V,"withoutSetter",function(e){return ie(P(e),e)}),k.f=le,S.f=oe,C.f=ce,_.f=w.f=ue,x.f=he,F.f=function(e){return ie(D(e),e)},s&&(W(V.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),o||T(Q,"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(Z,t))return Z[t];var n=V(t);return Z[t]=n,J[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(h(J,e))return J[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(){x.f(1)})},{getOwnPropertySymbols:function(e){return x.f(g(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[j]||E(V.prototype,j,V.prototype.valueOf),L(V,"Symbol"),M[U]=!0},function(e,t,n){var r=n(30),i=n(126).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(12)("asyncIterator")},function(e,t){},function(e,t,n){n(12)("hasInstance")},function(e,t,n){n(12)("isConcatSpreadable")},function(e,t,n){n(12)("match")},function(e,t,n){n(12)("matchAll")},function(e,t,n){n(12)("replace")},function(e,t,n){n(12)("search")},function(e,t,n){n(12)("species")},function(e,t,n){n(12)("split")},function(e,t,n){n(12)("toPrimitive")},function(e,t,n){n(12)("toStringTag")},function(e,t,n){n(12)("unscopables")},function(e,t,n){n(37)(Math,"Math",!0)},function(e,t,n){var r=n(8);n(37)(r.JSON,"JSON",!0)},function(e,t,n){n(12)("asyncDispose")},function(e,t,n){n(12)("dispose")},function(e,t,n){n(12)("observable")},function(e,t,n){n(12)("patternMatch")},function(e,t,n){n(12)("replaceAll")},function(e,t,n){e.exports=n(257)},function(e,t,n){var r=n(258);e.exports=r},function(e,t,n){n(259);var r=n(9);e.exports=r.parseInt},function(e,t,n){var r=n(5),i=n(260);r({global:!0,forced:parseInt!=i},{parseInt:i})},function(e,t,n){var r=n(8),i=n(90).trim,a=n(68),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(262);e.exports=r},function(e,t,n){var r=n(263),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(264);var r=n(15);e.exports=r("Array").slice},function(e,t,n){"use strict";var r=n(5),i=n(13),a=n(55),o=n(79),s=n(35),l=n(30),c=n(69),u=n(10),h=n(56),d=n(22),f=h("slice"),p=d("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),A=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!f||!p},{slice:function(e,t){var n,r,u,h=l(this),d=s(h.length),f=o(e,d),p=o(void 0===t?d:t,d);if(a(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!a(n.prototype)?i(n)&&null===(n=n[g])&&(n=void 0):n=void 0,n===Array||void 0===n))return A.call(h,f,p);for(r=new(void 0===n?Array:n)(m(p-f,0)),u=0;f<p;f++,u++)f in h&&c(r,u,h[f]);return r.length=u,r}})},function(e,t,n){n(266);var r=n(9);e.exports=r.setTimeout},function(e,t,n){var r=n(5),i=n(8),a=n(84),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(128));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(272)),l=o.__importDefault(n(273)),c=o.__importDefault(n(129)),u=o.__importDefault(n(274)),h=o.__importDefault(n(275)),d=o.__importDefault(n(276)),f=o.__importDefault(n(130)),p=o.__importDefault(n(277)),g=o.__importDefault(n(278)),A=o.__importDefault(n(279)),m=(0,a.default)({},s.default,l.default,c.default,h.default,u.default,d.default,f.default,p.default,g.default,A.default,{linkCheck:function(e,t){return!0}});t.default=m},function(e,t,n){var r=n(269);e.exports=r},function(e,t,n){n(270);var r=n(9);e.exports=r.Object.assign},function(e,t,n){var r=n(5),i=n(271);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";var r=n(14),i=n(11),a=n(52),o=n(127),s=n(59),l=n(31),c=n(72),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++]),g=h?a(p).concat(h(p)):a(p),A=g.length,m=0;A>m;)f=g[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={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","恢复":"redo","撤销":"undo","全屏":"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(17));(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){var n=[],r=!0;try{for(var i=e,a=this.editor.$textElem;r;){var s=null===i||void 0===i?void 0:i.getNodeTop(this.editor);"BODY"===s.getNodeName()&&(r=!1),s.length>0&&(n.push(o.default(i)),(null===t||void 0===t?void 0:t.equal(s))||a.equal(s)?r=!1:i=s.getNextSibling())}}catch(e){r=!1}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(29)),o=r(n(4)),s=r(n(17)),l=r(n(27)),c=r(n(46));(0,i.default)(t,"__esModule",{value:!0});var u=n(2),h=u.__importDefault(n(3)),d=u.__importDefault(n(287)),f=n(6),p=u.__importDefault(n(299)),g=u.__importDefault(n(300)),A=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(A.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(A.EMPTY_P_LAST_REGEX,"")).replace(A.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=A.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=g.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||46===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||46===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)})}}),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(284);e.exports=r},function(e,t,n){var r=n(285),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(286);var r=n(15);e.exports=r("Array").find},function(e,t,n){"use strict";var r=n(5),i=n(32).find,a=n(82),o=!0,s=n(22)("find");"find"in[]&&Array(1).find(function(){o=!1}),r({target:"Array",proto:!0,forced:o||!s},{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(288)),a=r.__importStar(n(289)),o=r.__importDefault(n(290)),s=r.__importDefault(n(291)),l=r.__importDefault(n(298));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),a.cutToKeepP(t,n.keyupEvents),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(27));(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){function r(t){var n,r=l.default(s.EMPTY_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()||"FONT"===n.getNodeName()&&""===n.text()&&"monospace"===n.attr("face")?r(i):i.equal(t)&&("P"===n.getNodeName()&&null===n.attr("data-we-empty-p")||n.text()||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(17)),o=r(n(28));(0,i.default)(t,"__esModule",{value:!0}),t.cutToKeepP=void 0;var s=n(2),l=n(7),c=s.__importDefault(n(3));t.cutToKeepP=function(e,t){t.push(function(t){var n;if(88===t.keyCode){var r=e.$textElem,i=(0,a.default)(n=r.html().toLowerCase()).call(n);if(!i||"<br>"===i){var o=c.default(l.EMPTY_P);r.html(" "),r.append(o),e.selection.createRangeByElem(o,!1,!0),e.selection.restoreSelection(),e.selection.moveCursor(o.getNode(),0)}}})},t.default=function(e,t,n){t.push(function(){var t=e.$textElem,n=e.$textElem.html(),r=e.$textElem.text(),i=(0,a.default)(n).call(n),s=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',l.EMPTY_P];if(/^\s*$/.test(r)&&(!i||(0,o.default)(s).call(s,i))){t.html(l.EMPTY_P);var c=t.getNode();e.selection.createRangeByElems(c.childNodes[0],c.childNodes[0]);var u=e.selection.getSelectionContainerElem();e.selection.restoreSelection(),e.selection.moveCursor(u.getNode(),0)}}),n.push(function(t){var n,r=e.$textElem;(0,a.default)(n=r.html().toLowerCase()).call(n)!==l.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(17)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var s=n(131),l=n(6),c=n(7);function u(e){var t,n=(0,a.default)(t=e.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(t),r=document.createElement("div");return r.innerHTML=n,r.innerHTML.replace(/<p><\/p>/gim,"")}t.default=function(e,t){t.push(function(t){var n=e.config,r=n.pasteFilterStyle,i=n.pasteIgnoreImg,a=n.pasteTextHandle,h=s.getPasteHtml(t,r,i),d=s.getPasteText(t);d=d.replace(/\n/gm,"<br>");var f=e.selection.getSelectionContainerElem();if(f){var p,g=null===f||void 0===f?void 0:f.getNodeName(),A=null===f||void 0===f?void 0:f.getNodeTop(e),m="";if(A.elems[0]&&(m=null===A||void 0===A?void 0:A.getNodeName()),"CODE"===g||"PRE"===m)return a&&l.isFunction(a)&&(d=""+(a(d)||"")),void e.cmd.do("insertHTML",(p=d,p.replace(/<br>|<br\/>/gm,"\n").replace(/<[^>]+>/gm,"")));if(c.urlRegex.test(d)&&r){a&&l.isFunction(a)&&(d=""+(a(d)||""));var v=d.replace(c.urlRegex,function(e){return'<a href="'+e+'" target="_blank">'+e+"</a>"}),y=e.selection.getRange(),b=document.createElement("div"),_=document.createDocumentFragment();if(b.innerHTML=v,null==y)return;for(;b.childNodes.length;)_.append(b.childNodes[0]);var w=_.querySelectorAll("a");return(0,o.default)(w).call(w,function(e){e.innerText=e.href}),y.insertNode&&(y.deleteContents(),y.insertNode(_)),void e.selection.clearWindowSelectionRange()}if(h)try{if(a&&l.isFunction(a)&&(h=""+(a(h)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(h)&&r)e.cmd.do("insertHTML",""+u(d));else{var x=u(h);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)}(x)){var C=e.$textElem;if(e.cmd.do("insertHTML",x),C.equal(f))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",x)}}catch(t){a&&l.isFunction(a)&&(d=""+(a(d)||"")),e.cmd.do("insertHTML",""+u(d))}}})}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(17)),o=r(n(4)),s=r(n(28));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),c=n(293),u=l.__importDefault(n(297));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="";function l(e){(e=(0,a.default)(e).call(e))&&(c.EMPTY_TAGS.has(e)||(i=e))}(new u.default).parse(e,{startElement:function(e,i){if(l(e),!h(e,n)){var a=c.NECESSARY_ATTRS.get(e)||[],u=[];(0,o.default)(i).call(i,function(e){var n=e.name;"style"!==n?!1!==(0,s.default)(a).call(a,n)&&u.push(e):t||u.push(e)});var d=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,u);r.push(d)}},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){l(e)}});var d=r.join("");return d=function(e){var t=/<span>(.*?)<\/span>/;return e.replace(/<span>.*?<\/span>/gi,function(e){var n=e.match(t);return null==n?"":n[1]})}(d)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(132)),o=r(n(121));(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(295);e.exports=r},function(e,t,n){n(296),n(61),n(50),n(54);var r=n(9);e.exports=r.Set},function(e,t,n){"use strict";var r=n(122),i=n(124);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(92)),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(89)),o=r(n(70)),s=r(n(28)),l=r(n(302)),c=r(n(4)),u=r(n(94)),h=r(n(133)),d=r(n(46)),f=r(n(57));(0,i.default)(t,"__esModule",{value:!0});var p=n(2),g=p.__importDefault(n(87)),A=p.__importDefault(n(314)),m=p.__importDefault(n(3)),v=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)});var h=(0,l.default)(g.default.globalCustomMenuConstructorList);h=(0,o.default)(h).call(h,function(e){return(0,s.default)(i).call(i,e)}),(0,c.default)(h).call(h,function(e){delete g.default.globalCustomMenuConstructorList[e]}),(0,c.default)(t=r.menus).call(t,function(e){var t=n.constructorList[e];n._initMenuList(e,t)});for(var d=0,f=(0,u.default)(g.default.globalCustomMenuConstructorList);d<f.length;d++){var p=f[d],A=p[0],m=p[1];this._initMenuList(A,m)}this._addToToolbar(),r.showMenuTooltips&&this._bindMenuTooltips()},e.prototype._initMenuList=function(e,t){var n;if(null!=t&&"function"==typeof t)if((0,h.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=m.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,h=m.default(u);if(h.isContain(t))o();else{if(null!=h.parentUntil(".w-e-droplist"))o();else if(h.attr("data-title"))l=h.attr("data-title"),c=h;else{var f=h.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 g=r.getOffsetData(),A=p.left+p.width/2-g.width/2;r.css("left",A+"px"),"up"===n?r.css("top",p.top-g.height-8+"px"):"down"===n&&r.css("top",p.top+p.height+8+"px"),i=(0,d.default)(function(){r.css("visibility","visible")},200)}else o()}}).on("mouseleave",function(){o()})},e.prototype._addToToolbar=function(){var e,t=this.editor.$toolbarElem;(0,c.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,c.default)(e=this.menuList).call(e,function(e){var t;(0,d.default)((0,f.default)(t=e.tryChangeActive).call(t,e),100)})},e}();t.default=v},function(e,t,n){e.exports=n(303)},function(e,t,n){var r=n(304);e.exports=r},function(e,t,n){n(305);var r=n(9);e.exports=r.Object.keys},function(e,t,n){var r=n(5),i=n(31),a=n(52);r({target:"Object",stat:!0,forced:n(11)(function(){a(1)})},{keys:function(e){return a(i(e))}})},function(e,t,n){var r=n(307);e.exports=r},function(e,t,n){n(308);var r=n(9);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(14),i=n(52),a=n(30),o=n(59).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(15);e.exports=r("Array").some},function(e,t,n){"use strict";var r=n(5),i=n(32).some,a=n(67),o=n(22),s=a("some"),l=o("some");r({target:"Array",proto:!0,forced:!s||!l},{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)),g=r.__importDefault(n(338)),A=r.__importDefault(n(339)),m=r.__importDefault(n(350)),v=r.__importDefault(n(365)),y=r.__importDefault(n(369)),b=r.__importDefault(n(137)),_=r.__importDefault(n(378)),w=r.__importDefault(n(380)),x=r.__importDefault(n(381)),C=r.__importDefault(n(382)),S=r.__importDefault(n(401)),k=r.__importDefault(n(406)),E=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:g.default,video:A.default,image:m.default,indent:v.default,emoticon:y.default,list:b.default,lineHeight:_.default,undo:w.default,redo:x.default,table:C.default,code:S.default,splitLine:k.default,todo:E.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(27)),o=r(n(29)),s=r(n(4)),l=r(n(317)),c=r(n(28));(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),g=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=[],g=null===(n=a.getRange())||void 0===n?void 0:n.commonAncestorContainer.childNodes;null===g||void 0===g||(0,s.default)(g).call(g,function(e,t){e===h[0].getNode()&&f.push(t),e===u.getNodeTop(i).getNode()&&f.push(t)});for(var A=0;h[A].getNode()!==u.getNodeTop(i).getNode();){if(!h[A].elems[0])return;var m=d.default(h[A].next().getNode());h.push(m),A++}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=g},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(9);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(36),a=n(11),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";var r=n(0),i=r(n(1)),a=r(n(17));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(38)),l=o.__importDefault(n(3)),c=o.__importDefault(n(322)),u=o.__importStar(n(96)),h=o.__importDefault(n(33)),d=o.__importDefault(n(324)),f=n(7),p=function(e){function t(t){var n,r=l.default('<div class="w-e-menu" data-title="链接"><i class="w-e-icon-link"></i></div>');return n=e.call(this,r,t)||this,d.default(t),n}return o.__extends(t,e),t.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.getSelectionContainerElem(),r=t.$textElem,i=r.html();if((0,a.default)(i).call(i)===f.EMPTY_P){var o=r.children();t.selection.createRangeByElem(o,!0,!0),n=t.selection.getSelectionContainerElem()}if(!n||!t.$textElem.equal(n))if(this.isActive){var s,c;if(!(e=t.selection.getSelectionContainerElem()))return;if("A"!==e.getNodeName()){var h=u.getParentNodeA(e);e=l.default(h)}s=e.elems[0].innerText,c=e.attr("href"),this.createPanel(s,c)}else t.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(t.selection.getSelectionText(),"")},t.prototype.createPanel=function(e,t){var n=c.default(this.editor,e,t);new h.default(this,n).create()},t.prototype.tryChangeActive=function(){var e=this.editor;u.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(28)),o=r(n(17)),s=r(n(29));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),c=n(6),u=l.__importDefault(n(3)),h=l.__importStar(n(96)),d=n(323);t.default=function(e,t,n){var r,i=c.getRandom("input-link"),l=c.getRandom("input-text"),f=c.getRandom("btn-ok"),p=c.getRandom("btn-del"),g=h.default(e)?"inline-block":"none";function A(){if(h.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="'+l+'"\n type="text"\n class="block"\n placeholder="'+e.i18next.t("menus.panelMenus.link.链接文字")+'"/>\n </td>\n <input\n id="'+i+'"\n type="text"\n class="block"\n placeholder="'+e.i18next.t("如")+' https://..."/>\n </td>\n <div class="w-e-button-container">\n <button type="button" id="'+f+'" class="right">\n '+e.i18next.t("插入")+'\n </button>\n <button type="button" id="'+p+'" class="gray right" style="display:'+g+'">\n '+e.i18next.t("menus.panelMenus.link.取消链接")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+f,type:"click",fn:function(){var t,n,r,s,c,f=e.selection.getSelectionContainerElem(),p=null===f||void 0===f?void 0:f.elems[0];e.selection.restoreSelection();var g=e.selection.getSelectionRangeTopNodes()[0].getNode(),m=window.getSelection(),v=u.default("#"+i),y=u.default("#"+l),b=(0,o.default)(t=v.val()).call(t),_=(0,o.default)(n=y.val()).call(n),w="";m&&!(null===m||void 0===m?void 0:m.isCollapsed)&&(w=null===(s=d.insertHtml(m,g))||void 0===s?void 0:(0,o.default)(s).call(s));var x=null===w||void 0===w?void 0:w.replace(/<.*?>/g,""),C=null!==(c=null===x||void 0===x?void 0:x.length)&&void 0!==c?c:0;if(C<=_.length){var S=_.substring(0,C),k=_.substring(C);x===S&&(_=x+k)}if(b&&(_||(_=b),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}(_,b))){if("A"===(null===p||void 0===p?void 0:p.nodeName))return p.setAttribute("href",b),p.innerText=_,!0;if("A"!==(null===p||void 0===p?void 0:p.nodeName)&&(0,a.default)(r=h.EXTRA_TAG).call(r,p.nodeName)){var E=h.getParentNodeA(f);if(E)return E.setAttribute("href",b),p.innerText=_,!0}return function(t,n){var r=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),i=u.default('<a target="_blank">'+r+"</a>"),a=i.elems[0];a.innerText=t,a.href=n,h.default(e)?(A(),e.cmd.do("insertElem",i)):e.cmd.do("insertElem",i)}(_,b),!0}},bindEnter:!0},{selector:"#"+p,type:"click",fn:function(){return function(){if(h.default(e))if(A(),"A"===r.getNodeName()){var t,n=r.elems[0],i=n.parentElement;i&&(0,a.default)(t=h.EXTRA_TAG).call(t,i.nodeName)?i.innerHTML=n.innerHTML:e.cmd.do("insertHTML","<span>"+n.innerHTML+"</span>")}else{var o=h.getParentNodeA(r).innerHTML;e.cmd.do("insertHTML","<span>"+o+"</span>")}}(),!0}}]}],setLinkValue:function(e,r){var a="",o="";"text"===r&&(a="#"+l,o=t),"link"===r&&(a="#"+i,o=n),(0,s.default)(e).call(e,a).elems[0].value=o}}}},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||/^(h|H)[1-6]$/.test(n))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=null===o||void 0===o?void 0:o.parentElement}while(o&&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,g=null!==(n=t.textContent)&&void 0!==n?n:"",A=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&&"TABLE"!==e.nodeName&&r.push(e),e=e.childNodes[0];return r}(t),m="",v="",y="",b=h,_=d,w=h;if(null===h||void 0===h?void 0:h.isEqualNode(null!==d&&void 0!==d?d:null)){var x=l(g,h,f,p);return x=c(A,x)}for(h&&(m=l(g,h,null!==f&&void 0!==f?f:0)),d&&(y=l(g,d,0,p)),h&&(b=o(h,g)),d&&(_=o(d,g)),w=null!==(r=null===b||void 0===b?void 0:b.nextSibling)&&void 0!==r?r:h;!(null===w||void 0===w?void 0:w.isEqualNode(null!==_&&void 0!==_?_:null));){if("#text"===(null===w||void 0===w?void 0:w.nodeName))v+=null===w||void 0===w?void 0:w.textContent;else{var C=null===(a=null===(i=null===w||void 0===w?void 0:w.firstChild)||void 0===i?void 0:i.parentElement)||void 0===a?void 0:a.innerHTML;w&&(v+=s(w,null!==C&&void 0!==C?C:""))}var S=null!==(u=null===w||void 0===w?void 0:w.nextSibling)&&void 0!==u?u:w;if(S===w)break;w=S}return c(A,""+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";var r=n(0),i=r(n(1)),a=r(n(28));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=o.__importDefault(n(3)),l=o.__importDefault(n(39)),c=n(96);t.default=function(e){var t=function(e){var t;return{showLinkTooltip:function(n){var r=[{$elem:s.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:s.default("<span>"+e.i18next.t("menus.panelMenus.link.取消链接")+"</span>"),onClick:function(e,t){var n,r;e.selection.createRangeByElem(t),e.selection.restoreSelection();var i=t.childNodes();if("IMG"===(null===i||void 0===i?void 0:i.getNodeName())){var o=null===(r=null===(n=e.selection.getSelectionContainerElem())||void 0===n?void 0:n.children())||void 0===r?void 0:r.elems[0].children[0];e.cmd.do("insertHTML","<img \n src="+(null===o||void 0===o?void 0:o.getAttribute("src"))+" \n style="+(null===o||void 0===o?void 0:o.getAttribute("style"))+">")}else{var s,l=t.elems[0],u=l.innerHTML,h=l.parentElement;h&&(0,a.default)(s=c.EXTRA_TAG).call(s,h.nodeName)?h.innerHTML=u:e.cmd.do("insertHTML","<span>"+u+"</span>")}return!0}}];(t=new l.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){var n="string"==typeof e?e:e.value,r="string"==typeof e?e:e.name;t.itemList.push({$elem:o.default("<p style=\"font-family:'"+n+"'\">"+r+"</p>"),value:r})})}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();null!=(null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0])&&(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(27));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(24)),c=s.__importDefault(n(3)),u=["LI"],h=["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,n=this.editor,r=n.selection.isSelectionEmpty(),i=n.selection.getSelectionRangeTopNodes(),o=i[i.length-1];if("BLOCKQUOTE"!==this.getTopNodeName()){var l=u.default(i);if(n.$textElem.equal(o)){var c=null===(e=n.selection.getSelectionContainerElem())||void 0===e?void 0:e.elems[0];n.selection.createRangeByElems(c.children[0],c.children[0]),i=n.selection.getSelectionRangeTopNodes(),l=u.default(i),o.append(l)}else l.insertAfter(o);this.delSelectNode(i);var d=null===(t=l.childNodes())||void 0===t?void 0:t.last().getNode();if(null==d)return;return d.textContent?n.selection.moveCursor(d):n.selection.moveCursor(d,0),this.tryChangeActive(),void s.default(h.EMPTY_P).insertAfter(l)}var f=s.default(o.childNodes()),p=f.length,g=o;(0,a.default)(f).call(f,function(e){var t=s.default(e);t.insertAfter(g),g=t}),o.remove(),n.selection.moveCursor(f.elems[p-1]),this.tryChangeActive(),r&&(n.selection.collapseRange(),n.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(26));(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(26));(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=n.selection.getSelectionText();if("A"===i.nodeName&&i.textContent===a){var o=l.default("<span>&#8203;</span>").getNode();i.appendChild(o)}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(33)),o=r.__importDefault(n(38)),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(17));(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},bindEnter:!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(133)),o=r(n(57)),s=r(n(4)),l=r(n(27));(0,i.default)(t,"__esModule",{value:!0});var c=n(2),u=n(6),h=c.__importDefault(n(135)),d=c.__importDefault(n(136)),f=n(7),p=n(6),g=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,g=r.uploadVideoParams,A=r.uploadVideoParamsWithUrl,m=r.uploadVideoHeaders,v=r.uploadVideoHooks,y=r.uploadVideoTimeout,b=r.withVideoCredentials,_=r.customUploadVideo,w=r.uploadVideoAccept,x=[],C=[];if(u.arrForEach(e,function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(w instanceof Array?(0,a.default)(w).call(w,function(e){return e===t.split(".")[t.split(".").length-1]})?f<n?C.push("【"+t+"】"+i("大于")+" "+f+"M"):x.push(e):C.push("【"+t+"】"+i("不是视频")):C.push("【"+w+"】"+i("uploadVideoAccept 不是Array")))}),C.length)r.customAlert(i("视频验证未通过")+": \n"+C.join("\n"),"warning");else if(0!==x.length)if(_&&"function"==typeof _){var S;_(x,(0,o.default)(S=this.insertVideo).call(S,this))}else{var k=new FormData;if((0,s.default)(x).call(x,function(e,t){var n=p||e.name;x.length>1&&(n+=t+1),k.append(n,e)}),c){var E=c.split("#");c=E[0];var T=E[1]||"";(0,s.default)(u).call(u,g,function(e,t){A&&((0,l.default)(c).call(c,"?")>0?c+="&":c+="?",c=c+e+"="+t),k.append(e,t)}),T&&(c+="#"+T);var B=h.default(c,{timeout:y,formData:k,headers:m,withCredentials:!!b,beforeSend:function(e){if(v.before)return v.before(e,n,x)},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 B&&r.customAlert(B,"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=g},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(9);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(39)),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(28));(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(26));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=n(7),l=o.__importDefault(n(3)),c=o.__importDefault(n(33)),u=o.__importDefault(n(38)),h=o.__importDefault(n(351)),d=o.__importDefault(n(364)),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)),l=r.__importDefault(n(363));t.default=function(e){i.default(e),a.default(e),o.default(e),s.default(e),l.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(131),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(29)),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,g=h.top-u.top,A=d/f,m=d,v=f,y=s.default(document);y.on("mousemove",_),y.on("mouseup",w),y.on("mouseleave",b)}function b(){y.off("mousemove",_),y.off("mouseup",w)}function _(t){t.stopPropagation(),t.preventDefault(),m=d+(t.clientX-i),v=f+(t.clientY-l),m/v!=A&&(v=m/A),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,g)}function w(){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(9);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(90).trim,a=n(68),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(20),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(21)(!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(39));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";(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(e){var t=n.getSelectionContainerElem(),r=n.getRange();if(r&&t&&8===e.keyCode&&n.isSelectionEmpty()){var i=r.startContainer,a=r.startOffset,o=null;if(0===a)for(;i!==t.elems[0]&&t.elems[0].contains(i)&&i.parentNode&&!o;){if(i.previousSibling){o=i.previousSibling;break}i=i.parentNode}else 3!==i.nodeType&&(o=i.childNodes[a-1]);if(o){for(var s=o;s.childNodes.length;)s=s.childNodes[s.childNodes.length-1];s instanceof HTMLElement&&"IMG"===s.tagName&&(s.remove(),e.preventDefault())}}})}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(26)),o=r(n(17));(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"),g=function(t,n){return void 0===n&&(n="menus.panelMenus.image."),e.i18next.t(n+t)},A=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" '+A+' 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),e&&(e.value=""),!0}}],b=['<input\n id="'+h+'"\n type="text"\n class="block"\n placeholder="'+g("图片地址")+'"/>'];n.showLinkImgAlt&&b.push('\n <input\n id="'+d+'"\n type="text"\n class="block"\n placeholder="'+g("图片文字说明")+'"/>'),n.showLinkImgHref&&b.push('\n <input\n id="'+f+'"\n type="text"\n class="block"\n placeholder="'+g("跳转链接")+'"/>');var _=[{title:g("上传图片"),tpl:v("w-e-up-img-container","w-e-icon-upload2",""),events:y},{title:g("网络图片"),tpl:"<div>\n "+b.join("")+'\n <div class="w-e-button-container">\n <button type="button" id="'+p+'" class="right">'+g("插入","")+"</button>\n </div>\n </div>",events:[{selector:"#"+p,type:"click",fn:function(){var e,t,i,a,s,c,u,p=l.default("#"+h),g=(0,o.default)(e=p.val()).call(e);if(g&&(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=g,!0===(u=n.linkImgCheck(c))||("string"==typeof u&&n.customAlert(u,"error"),0)))return r.insertImg(g,t,a),!0},bindEnter:!0}]}],w={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)&&w.tabs.push(_[0]),n.showLinkImg&&(w.tabs.push(_[1]),w.onlyUploadConf=void 0),w}},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(366)),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(45)),o=r(n(17));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),l=s.__importDefault(n(367)),c=s.__importDefault(n(368)),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|H[0-9]*)$/.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(45));(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(45));(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(38)),o=r.__importDefault(n(33)),s=r.__importDefault(n(370)),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(26)),o=r(n(70)),s=r(n(17));(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(372)),s=i.__importDefault(n(374)),l=i.__importDefault(n(375)),c=i.__importDefault(n(376)),u=i.__importDefault(n(377));!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(58),c=n(47),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.appendChild(t.elems[0])})),this.selectionRangeElem.set(e),c.insertBefore(i,e,i.elems[0]),i.remove()}else{for(var g=d;g.length;)u.push(g),g=(null===f||void 0===f?void 0:f.equal(g))?s.default(void 0):g.next();var A=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])})),A.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(A.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(58),c=n(47),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,g=h.$startElem,A=h.$endElem,m=d.selection.getSelectionRangeTopNodes(),v=null===g||void 0===g?void 0:g.getNodeName();if(v===(null===A||void 0===A?void 0:A.getNodeName()))if(m.length>2)if(m.shift(),m.pop(),u=c.createElementFragment(c.filterSelectionNodes(m),c.createDocumentFragment()),v===f)null===(e=A.children())||void 0===e||(0,a.default)(e).call(e,function(e){u.append(e)}),A.remove(),this.selectionRangeElem.set(u),g.elems[0].append(u);else{for(var y=document.createDocumentFragment(),b=document.createDocumentFragment(),_=c.getStartPoint(g);_.length;){var w=_.elems[0];_=_.next(),y.append(w)}for(var x=c.getEndPoint(A),C=[];x.length;)C.unshift(x.elems[0]),x=x.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(g),!(null===(t=g.children())||void 0===t?void 0:t.length)&&g.remove(),!(null===(n=A.children())||void 0===n?void 0:n.length)&&A.remove()}else{m.length=0;for(_=c.getStartPoint(g);_.length;)m.push(_),_=_.next();for(x=c.getEndPoint(A),C=[];x.length;)C.unshift(x),x=x.prev();m.push.apply(m,C),v===f?(u=c.createElementFragment(m,c.createDocumentFragment(),"p"),this.selectionRangeElem.set(u),c.insertBefore(g,u,A.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(g)),!(null===(r=g.children())||void 0===r?void 0:r.length)&&A.remove(),!(null===(i=A.children())||void 0===i?void 0:i.length)&&A.remove()}else{var k=[];for(x=c.getEndPoint(A);x.length;)k.unshift(x),x=x.prev();var E=[];for(_=c.getStartPoint(g);_.length;)E.push(_),_=_.next();if(u=c.createDocumentFragment(),m.shift(),m.pop(),(0,a.default)(E).call(E,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)g.elems[0].append(u),!(null===(o=A.children())||void 0===o?void 0:o.length)&&A.remove();else if(null===(l=A.children())||void 0===l?void 0:l.length){var T=A.children();c.insertBefore(T,u,T.elems[0])}else A.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(58),c=n(47),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(58),c=n(47),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 g=u.children();c.insertBefore(g,n,g.elems[0])}else u.elems[0].append(n);else{var A=c.filterSelectionNodes(h);A.push.apply(A,f),n=c.createElementFragment(A,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(58),a=n(47),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(27));(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(379)),h=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=this.editor;t.selection.restoreSelection();var n=c.default(t.selection.getSelectionContainerElem());if(n.elems.length)if(n&&t.$textElem.equal(n)){for(var r=!1,i=c.default(t.selection.getSelectionStartElem()).elems[0],a=c.default(t.selection.getSelectionEndElem()).elems[0],o=this.getDom(i),s=this.getDom(a),l=n.elems[0].children,u=0;u<l.length;u++){var h=l[u];if("P"===c.default(h).getNodeName()&&(h===o&&(r=!0),r&&(c.default(h).css("line-height",e),h===s)))return void(r=!1)}t.selection.createRangeByElems(i,a)}else{var d=n.elems[0],f=this.getDom(d);"P"===c.default(f).getNodeName()&&(c.default(f).css("line-height",e),t.selection.createRangeByElems(f,f))}},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.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=h},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(38)),a=r.__importDefault(n(3)),o=r.__importDefault(n(383)),s=r.__importDefault(n(33)),l=r.__importDefault(n(392)),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(384));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=n(6),l=o.__importDefault(n(3));n(389);var c=o.__importDefault(n(391));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)},bindEnter:!0}]}],d={width:330,height:0,tabs:[]};return d.tabs.push(h[0]),d}},function(e,t,n){e.exports=n(385)},function(e,t,n){var r=n(386);e.exports=r},function(e,t,n){n(387);var r=n(9);e.exports=r.Number.isInteger},function(e,t,n){n(5)({target:"Number",stat:!0},{isInteger:n(388)})},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(20),i=n(390);"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(21)(!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).__importDefault(n(393)),i=n(400);t.default=function(e){r.default(e),i.bindEventKeyboardEvent(e),i.bindClickEvent(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(39)),o=r.__importDefault(n(394)),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),d=h.elems[0].children[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(h.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.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(45)),o=r(n(91)),s=r(n(4)),l=r(n(138));(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),i=d[e];(0,s.default)(t=(0,l.default)(i.childNodes)).call(t,function(e){r.appendChild(e)}),f.appendChild(r)},g=0;g<d.length;g++)p(g);return(0,o.default)(i).call(i,t,1,f),u(r,i),c.default(r.parentNode)}}},function(e,t,n){var r=n(396);e.exports=r},function(e,t,n){n(50),n(397);var r=n(9);e.exports=r.Array.from},function(e,t,n){var r=n(5),i=n(398);r({target:"Array",stat:!0,forced:!n(115)(function(e){Array.from(e)})},{from:i})},function(e,t,n){"use strict";var r=n(40),i=n(31),a=n(114),o=n(112),s=n(35),l=n(69),c=n(113);e.exports=function(e){var t,n,u,h,d,f,p=i(e),g="function"==typeof this?this:Array,A=arguments.length,m=A>1?arguments[1]:void 0,v=void 0!==m,y=c(p),b=0;if(v&&(m=r(m,A>2?arguments[2]:void 0,2)),void 0==y||g==Array&&o(y))for(n=new g(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 g;!(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){"use strict";var r=n(0),i=r(n(1)),a=r(n(4)),o=r(n(138));(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.bindEventKeyboardEvent=t.bindClickEvent=void 0;var r=n(2).__importDefault(n(3));t.bindClickEvent=function(e){e.txt.eventHooks.tableClickEvents.push(function(t,n){if(n.detail>=3){var i=window.getSelection();if(i){var a=i.focusNode,o=i.anchorNode,s=r.default(null===o||void 0===o?void 0:o.parentElement);if(!t.isContain(r.default(a))){var l="TD"===s.elems[0].tagName?s:s.parentUntilEditor("td",e);if(l){var c=e.selection.getRange();null===c||void 0===c||c.setEnd(l.elems[0],l.elems[0].childNodes.length),e.selection.restoreSelection()}}}}})},t.bindEventKeyboardEvent=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(26));(0,i.default)(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0;var o=n(2),s=o.__importDefault(n(38)),l=o.__importDefault(n(3)),c=n(6),u=o.__importDefault(n(402)),h=o.__importDefault(n(139)),d=o.__importDefault(n(33)),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(26));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),s=n(6),l=o.__importDefault(n(3)),c=o.__importDefault(n(139)),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,n){var r;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())}}(),(null===(r=e.selection.getSelectionStartElem())||void 0===r?void 0:r.elems[0].innerHTML)&&e.cmd.do("insertHTML",u.EMPTY_P);var i=n.replace(/</g,"&lt;").replace(/>/g,"&gt;");e.highlight&&(i=e.highlight.highlightAuto(i).value),e.cmd.do("insertHTML",'<pre><code class="'+t+'">'+i+"</code></pre>");var a=e.selection.getSelectionStartElem(),o=null===a||void 0===a?void 0:a.getNodeTop(e);0===(null===o||void 0===o?void 0:o.getNextSibling().elems.length)&&l.default(u.EMPTY_P).insertAfter(o)}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=document.getElementById(i),n=l.default("#"+o).val(),r=t.value;if(r)return!c.default(e)&&(d(n,r),!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(39));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(r){e.selection.saveRange();var o=n.getSelectionContainerElem();if(o){var s=o.getNodeTop(e),l=null===s||void 0===s?void 0:s.prev(),c=null===s||void 0===s?void 0:s.getNextSibling();if(l.length&&"PRE"===(null===l||void 0===l?void 0:l.getNodeName())&&0===c.length&&0===n.getCursorPos()&&8===r.keyCode){var u=a.default(i.EMPTY_P);t.append(u)}}})}},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(39));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(140)),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(15);e.exports=r("Array").every},function(e,t,n){"use strict";var r=n(5),i=n(32).every,a=n(67),o=n(22),s=a("every"),l=o("every");r({target:"Array",proto:!0,forced:!s||!l},{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(140)),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 g=null===p||void 0===p?void 0:p.commonAncestorContainer.childNodes,A=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,_=0,w=[];null===g||void 0===g||(0,a.default)(g).call(g,function(e,t){e.contains(A)&&(b=t),e.contains(m)&&(_=t)}),_-b>1&&(null===g||void 0===g||(0,a.default)(g).call(g,function(e,t){t<=b||t>=_||w.push(e)}),(0,a.default)(w).call(w,function(e){e.remove()})),u.dealTextNode(A,v),u.dealTextNode(m,y,!1),e.selection.moveCursor(m,0)}if(""===o.text()){var x=s.default(h.EMPTY_P);return x.insertAfter(o),i.moveCursor(x.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)),E=k.getInputContainer(),T=E.parent().getNode(),B=k.getTodo(),I=E.getNode().nextSibling;""===(null===d||void 0===d?void 0:d.text())&&(null===d||void 0===d||d.append(s.default("<br>"))),B.insertAfter(o),I&&""!==(null===I||void 0===I?void 0:I.textContent)?i.moveCursor(T):("BR"!==(null===I||void 0===I?void 0:I.nodeName)&&s.default("<br>").insertAfter(E),i.moveCursor(T,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,g=o.getCursorPos(),A=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===A||void 0===A?void 0:A.nodeName)&&"INPUT"===A.childNodes[0].nodeName&&0===g&&(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())}}),e.txt.eventHooks.clickEvents.push(function(e){e&&e.target instanceof HTMLInputElement&&"checkbox"===e.target.type&&(e.target.checked?e.target.setAttribute("checked","true"):e.target.removeAttribute("checked"))})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.selectorValidator=void 0;var r=n(2),i=r.__importDefault(n(3)),a=n(6),o=n(7),s=r.__importDefault(n(130)),l={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};t.default=function(e){var t,n,r,c=e.toolbarSelector,u=i.default(c),h=e.textSelector,d=e.config.height,f=e.i18next,p=i.default("<div></div>"),g=i.default("<div></div>"),A=null;null==h?(n=u.children(),u.append(p).append(g),p.css("background-color",l.toolbarBgColor).css("border",l.border).css("border-bottom",l.toolbarBottomBorder),g.css("border",l.border).css("border-top","none").css("height",d+"px")):(u.append(p),A=i.default(h).children(),i.default(h).append(g),n=g.children()),(t=i.default("<div></div>")).attr("contenteditable","true").css("width","100%").css("height","100%");var m=e.config.placeholder;(r=m!==s.default.placeholder?i.default("<div>"+m+"</div>"):i.default("<div>"+f.t(m)+"</div>")).addClass("placeholder"),n&&n.length?(t.append(n),r.hide()):t.append(i.default(o.EMPTY_P)),A&&A.length&&(t.append(A),r.hide()),g.append(t),g.append(r),p.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),g.addClass("w-e-text-container"),g.css("z-index",e.zIndex.get()),t.addClass("w-e-text");var v=a.getRandom("toolbar-elem");p.attr("id",v);var y=a.getRandom("text-elem");t.attr("id",y);var b=g.getBoundingClientRect().height;b!==t.getBoundingClientRect().height&&t.css("min-height",b+"px"),e.$toolbarElem=p,e.$textContainerElem=g,e.$textElem=t,e.toolbarElemId=v,e.textElemId=y},t.selectorValidator=function(e){var t="data-we-id",n=/^wangEditor-\d+$/,r=e.textSelector,a=e.toolbarSelector,o={bar:i.default("<div></div>"),text:i.default("<div></div>")};if(null==a)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");if(o.bar=i.default(a),!o.bar.elems.length)throw new Error("无效的节点选择器:"+a);if(n.test(o.bar.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器");if(r){if(o.text=i.default(r),!o.text.elems.length)throw new Error("无效的节点选择器:"+r);if(n.test(o.text.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器")}o.bar.attr(t,e.id),o.text.attr(t,e.id),e.beforeDestroy(function(){o.bar.removeAttr(t),o.text.removeAttr(t)})}},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()||"";e.isFocus=!0,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(29));(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(20),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(21)(!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(29));(0,i.default)(t,"__esModule",{value:!0});t.default=function(e,t){var n,r=e.isEnable?e.$textElem:(0,a.default)(n=e.$textContainerElem).call(n,".w-e-content-mantle"),i=(0,a.default)(r).call(r,"[id='"+t+"']").getOffsetData().top;r.scrollTop(i)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(129)),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(70)),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(27));(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],g={type:"node",target:p,attr:"",value:"",oldValue:"",nodes:{add:[n]},position:{type:"parent",target:p}};-1!=(0,o.default)(d).call(d,p.nodeName)?(g.nodes.add=s.toArray(p.childNodes),t.push(g)):3==n.nodeType?(f(p,r)&&(g.nodes.add=s.toArray(p.childNodes)),t.push(g)):-1==(0,o.default)(d).call(d,e.target.nodeName)&&f(p,r)&&(g.nodes.add=s.toArray(p.childNodes),t.push(g))}"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(94));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(91));(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(29));(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,e.isEnable=!1}},enable:function(){r&&(t.remove(),n.remove(),e.$textElem.show(),r=!1,e.isEnable=!0)}}}},function(e,t,n){var r=n(20),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(21)(!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});var r=function(){function e(e){var t=this;this.editor=e;var n=function(){document.activeElement===e.$textElem.elems[0]&&t.emit()};window.document.addEventListener("selectionchange",n),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",n)})}return e.prototype.emit=function(){var e,t=this.editor.config.onSelectionChange;if(t){var n=this.editor.selection;n.saveRange(),n.isSelectionEmpty()||t({text:n.getSelectionText(),html:null===(e=n.getSelectionContainerElem())||void 0===e?void 0:e.elems[0].innerHTML,selection:n})}},e}();t.default=r},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),a=r(n(128)),o=r(n(94)),s=r(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.registerPlugin=void 0;var l=n(2).__importDefault(n(87)),c=n(6);t.registerPlugin=function(e,t,n){if(!e)throw new TypeError("name is not define");if(!t)throw new TypeError("options is not define");if(!t.intention)throw new TypeError("options.intention is not define");if(t.intention&&"function"!=typeof t.intention)throw new TypeError("options.intention is not function");n[e]&&console.warn("plugin "+e+" 已存在,已覆盖。"),n[e]=t},t.default=function(e){var t=(0,a.default)({},c.deepClone(l.default.globalPluginsFunctionList),c.deepClone(e.pluginsFunctionList)),n=(0,o.default)(t);(0,s.default)(n).call(n,function(t){var n=t[0],r=t[1];console.info("plugin "+n+" initializing");var i=r.intention,a=r.config;i(e,a),console.info("plugin "+n+" initialization complete")})}},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 g=[];for(const e in[])g.push(e);if(g.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+g.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 A=e.docId,m=e.docBaseUrl,v=e.docId+"_worker",y=new s.MessageHandler(v,A,t);function b(){if(o)throw new Error("Worker was terminated")}function _(e){d.push(e)}function w(e){e.finish();var t=d.indexOf(e);d.splice(t,1)}async function x(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(A,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(A,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(A,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}`);_(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){w(a),o&&(0,r.info)(`page=${i+1} - getOperatorList: time=`+`${Date.now()-o}ms, len=${e.length}`),t.close()},function(e){w(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);_(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(){w(a),o&&(0,r.info)(`page=${i+1} - getTextContent: time=`+`${Date.now()-o}ms`),t.close()},function(e){w(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}`);_(t),y.sendWithPromise("PasswordRequest",e).then(function({password:e}){w(t),n.updatePassword(e),a()}).catch(function(){w(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(),x(!1).then(t,function(e){b(),e instanceof c.XRefParseException?(n.requestLoadedStream(),n.onLoadedStream().then(function(){b(),x(!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 g=["rgb(",0,",",0,",",0,")"];class A{static makeCssRgb(e,t,n){return g[1]=e,g[3]=t,g[5]=n,g.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=A.applyTransform(e,t),r=A.applyTransform(e.slice(2,4),t),i=A.applyTransform([e[0],e[3]],t),a=A.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=A.normalizeRect(e),t=A.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=A;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,g=[0,0,612,792];function A(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")||g)}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)A(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&&!A(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]),_=1024,w="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",x=/^[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&&x.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]!==w?(0,r.stringToBytes)(t[0]):(0,c.calculateMD5)(this.stream.getByteRange(0,_),0,_)).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"),g=c.get("Count");let A=s;!Array.isArray(p)||3!==p.length||0===p[0]&&0===p[1]&&0===p[2]||(A=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:A,count:Number.isInteger(g)?g: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 g(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 A(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 g={};switch(g.offset=f,g.gen=p,d){case 0:g.free=!0;break;case 1:g.uncompressed=!0;break;case 2:break;default:throw new r.FormatError(`Invalid XRef entry type: ${d}`)}this.entries[u+t]||(this.entries[u+t]=g)}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 g=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var A=this.stream;A.pos=0;for(var m,v,y=A.getBytes(),b=A.start,_=y.length,w=[],x=[];b<_;){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),w.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-A.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 E=l(a,0,g);E<n&&a[E+5]<64&&(x.push(b-A.start),this.xrefstms[b-A.start]=1),b+=n}else k.startsWith("trailer")&&(7===k.length||/\s/.test(k[7]))?(w.push(b),b+=l(y,b,f)):b+=k.length+1}else do{if(++b>=_)break;C=y[b]}while(C!==e&&C!==t);else++b}for(m=0,v=x.length;m<v;++m)this.startXRefQueue.push(x[m]),this.readXRef(!0);let T;for(m=0,v=w.length;m<v;++m){A.pos=w[m];const e=new a.Parser({lexer:new a.Lexer(A),xref:this,allowStreams:!0,recoveryMode:!0});var B=e.getObj();if(!(0,i.isCmd)(B,"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;T=t}}if(T)return T;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 g extends f{constructor(e,t){super(e,t,"Nums")}}var A=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=A;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,g=n.makeSubStream(c,u,r);if(u<h&&o<d){const e=g.getBytes();g.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&&(g=e.createStream(g,u)),(g=this.filter(g,r,u)).dict=r,void 0!==p&&(g.cacheKey=`inline_${u}_${p}`,this.imageCache[p]=g),this.buf2=a.Cmd.get("EI"),this.shift(),g}_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 g=[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 A(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&&!g[e];)if(35===e){if(e=this.nextChar(),g[e]){(0,i.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),n.push("#");break}const r=A(e);if(-1!==r){t=e;const a=A(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)),g[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!==g[r]){if(a){if(-1===(t=A(r))){this._hexStringWarn(r),r=this.nextChar();continue}}else{if(-1===(n=A(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!==g[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&&!g[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,g=this.getBits(4)+4,A=new Uint8Array(e.length);for(d=0;d<g;++d)A[e[d]]=this.getBits(3);var m=this.generateHuffmanTable(A);s=0,d=0;for(var v,y,b,_=f+p,w=new Uint8Array(_);d<_;){var x=this.getCode(m);if(16===x)v=2,y=3,b=s;else if(17===x)v=3,y=3,b=s=0;else{if(18!==x){w[d++]=s=x;continue}v=7,y=11,b=s=0}for(var C=this.getBits(v)+y;C-- >0;)w[d++]=b}u=this.generateHuffmanTable(w.subarray(0,f)),h=this.generateHuffmanTable(w.subarray(f,_))}for(var S=(o=this.buffer)?o.length:0,k=this.bufferLength;;){var E=this.getCode(u);if(E<256)k+1>=S&&(S=(o=this.ensureBuffer(k+1)).length),o[k++]=E;else{if(256===E)return void(this.bufferLength=k);var T=(E=t[E-=257])>>16;T>0&&(T=this.getBits(T)),s=(65535&E)+T,E=this.getCode(h),(T=(E=n[E])>>16)>0&&(T=this.getBits(T));var B=(65535&E)+T;k+s>=S&&(S=(o=this.ensureBuffer(k+s)).length);for(var I=0;I<s;++I,++k)o[k]=o[k-B]}}}else{var M;if(-1===(M=l.getByte()))throw new r.FormatError("Bad block header in flate stream");var P=M;if(-1===(M=l.getByte()))throw new r.FormatError("Bad block header in flate stream");if(P|=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&~P)&&(0!==P||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+P;if(o=this.ensureBuffer(t),this.bufferLength=t,0===P)-1===l.peekByte()&&(this.eof=!0);else{const t=l.getBytes(P);o.set(t,e),t.length<P&&(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 g=new Uint8Array(i+1),A=(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),g[b]=g[b]+(s>>c-r)&A,c-=r,l=l<<r|g[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,g=p-f;g<0&&(g=-g);var A=p-c;A<0&&(A=-A);var m=p-d;m<0&&(m=-m),u=i[l],o[h++]=g<=A&&g<=m?f+u:A<=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 g=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=g;var A=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,g=this.bufferLength,A=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);A=this.ensureBuffer(this.bufferLength+r)}for(t=0;t<f;t++)A[g++]=d[t]}i.nextCode=o,i.codeLength=u,i.prevCode=h,i.currentSequenceLength=f,this.bufferLength=g}},e}();t.LZWStream=A;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 P(new B(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,g=new Int8Array(p),A=new Int8Array(p),m=[],v=0,y=0,b=0,_=0;for(f=0;f<p;f++)g[f]=c[f].x,A[f]=c[f].y,y=Math.min(y,c[f].x),b=Math.max(b,c[f].x),_=Math.min(_,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 w=m.length,x=new Int8Array(w),C=new Int8Array(w),S=new Uint16Array(w);for(h=0;h<w;h++)f=m[h],x[h]=c[f].x,C[h]=c[f].y,S[h]=1<<p-1-f;for(var k,E,T,I,M,D=-y,F=-_,O=t-b,L=d[r],R=new Uint8Array(t),N=[],U=s.decoder,j=s.contextCache.getContexts("GB"),H=0,z=0,Q=0;Q<n;Q++){if(i)if(H^=U.readBit(j,L)){N.push(R);continue}for(R=new Uint8Array(R),N.push(R),k=0;k<t;k++)if(l&&a[Q][k])R[k]=0;else{if(k>=D&&k<O&&Q>=F)for(z=z<<1&v,f=0;f<w;f++)E=Q+C[f],T=k+x[f],(I=N[E][T])&&(z|=I=S[f]);else for(z=0,M=p-1,f=0;f<p;f++,M--)(T=k+g[f])>=0&&T<t&&(E=Q+A[f])>=0&&(I=N[E][T])&&(z|=I<<M);var V=U.readBit(j,z);R[k]=V}}return N}function g(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,g=new Int32Array(p),A=new Int32Array(p);for(d=0;d<p;d++)g[d]=u[d].x,A[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 _=r[0].length,w=r.length,x=f[n],C=[],S=c.decoder,k=c.contextCache.getContexts("GR"),E=0,T=0;T<t;T++){if(o)if(E^=S.readBit(k,x))throw new s("prediction is not supported");var B=new Uint8Array(e);C.push(B);for(var I=0;I<e;I++){var M,P,D=0;for(d=0;d<p;d++)M=T+A[d],P=I+g[d],M<0||P<0||P>=e?D<<=1:D=D<<1|C[M][P];for(d=0;d<v;d++)M=T+b[d]-a,P=I+y[d]-i,M<0||M>=w||P<0||P>=_?D<<=1:D=D<<1|r[M][P];var F=S.readBit(k,D);B[I]=F}}return C}function A(e,t,r,i,a,o,c,u,h,d,f,p,A,m,v,y,b,_,w){if(e&&t)throw new s("refinement with Huffman is not supported");var x,C,S=[];for(x=0;x<i;x++){if(C=new Uint8Array(r),a)for(var k=0;k<r;k++)C[k]=a;S.push(C)}var E=b.decoder,T=b.contextCache,B=e?-m.tableDeltaT.decode(w):-n(T,"IADT",E),I=0;for(x=0;x<o;){B+=e?m.tableDeltaT.decode(w):n(T,"IADT",E);for(var M=I+=e?m.tableFirstS.decode(w):n(T,"IAFS",E);;){let i=0;c>1&&(i=e?w.readBits(_):n(T,"IAIT",E));var P=c*B+i,D=e?m.symbolIDTable.decode(w):l(T,E,h),F=t&&(e?w.readBit():n(T,"IARI",E)),O=u[D],L=O[0].length,R=O.length;if(F){var N=n(T,"IARDW",E),U=n(T,"IARDH",E);O=g(L+=N,R+=U,v,O,(N>>1)+n(T,"IARDX",E),(U>>1)+n(T,"IARDY",E),!1,y,b)}var j,H,z,Q=P-(1&p?0:R-1),V=M-(2&p?L-1:0);if(d){for(j=0;j<R;j++)if(C=S[V+j]){z=O[j];var G=Math.min(r-Q,L);switch(A){case 0:for(H=0;H<G;H++)C[Q+H]|=z[H];break;case 2:for(H=0;H<G;H++)C[Q+H]^=z[H];break;default:throw new s(`operator ${A} is not supported`)}}M+=R-1}else{for(H=0;H<R;H++)if(C=S[Q+H])switch(z=O[H],A){case 0:for(j=0;j<L;j++)C[V+j]|=z[j];break;case 2:for(j=0;j<L;j++)C[V+j]^=z[j];break;default:throw new s(`operator ${A} is not supported`)}M+=L-1}x++;var q=e?m.tableDeltaS.decode(w):n(T,"IADS",E);if(null===q)break;M+=q+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 g,A,m=[];for(g=0;g<u;g++){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),_=!!(1&e[d+b]),w=new Uint8Array(6);for(_||(w[0]=255,w[1]=172),w[2]=v.height>>>24&255,w[3]=v.height>>16&255,w[4]=v.height>>8&255,w[5]=255&v.height,g=d,A=e.length;g<A;g++){for(var x=0;x<6&&w[x]===e[g+x];)x++;if(6===x){n.length=g+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 _(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 g=(0,i.readUint16)(c,u);if(u+=2,p.huffman=!!(1&g),p.refinement=!!(2&g),p.logStripSize=g>>2&3,p.stripSize=1<<p.logStripSize,p.referenceCorner=g>>4&3,p.transposed=!!(64&g),p.combinationOperator=g>>7&3,p.defaultPixelValue=g>>9&1,p.dsOffset=g<<17>>27,p.refinementTemplate=g>>15&1,p.huffman){var A=(0,i.readUint16)(c,u);u+=2,p.huffmanFS=3&A,p.huffmanDS=A>>2&3,p.huffmanDT=A>>4&3,p.huffmanRefinementDW=A>>6&3,p.huffmanRefinementDH=A>>8&3,p.huffmanRefinementDX=A>>10&3,p.huffmanRefinementDY=A>>12&3,p.huffmanRefinementSizeSelector=!!(16384&A)}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 x={};x.info=y(c,u),u+=b;const C=c[u++];x.mmr=!!(1&C),x.template=C>>1&3,x.enableSkip=!!(8&C),x.combinationOperator=C>>4&7,x.defaultPixelValue=C>>7&1,x.gridWidth=(0,i.readUint32)(c,u),u+=4,x.gridHeight=(0,i.readUint32)(c,u),u+=4,x.gridOffsetX=4294967295&(0,i.readUint32)(c,u),u+=4,x.gridOffsetY=4294967295&(0,i.readUint32)(c,u),u+=4,x.gridVectorX=(0,i.readUint16)(c,u),u+=2,x.gridVectorY=(0,i.readUint16)(c,u),u+=2,n=[x,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 _={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===_.height&&delete _.height;var w=c[u+16];(0,i.readUint16)(c,u+17),_.lossless=!!(1&w),_.refinement=!!(2&w),_.defaultPixelValue=w>>2&1,_.combinationOperator=w>>3&3,_.requiresBuffer=!!(32&w),_.combinationOperatorOverride=!!(64&w),n=[_];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 x="on"+l.typeName;x in t&&t[x].apply(t,n)}function w(e,t){for(var n=0,r=e.length;n<r;n++)_(e[n],t)}function x(){}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)}}x.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=T(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=T(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=T(1);o=e.aggregationInstancesSelector?I(l,t,n):T(1);return{tableDeltaHeight:r,tableDeltaWidth:i,tableBitmapSize:a,tableAggregateInstances:o}}(e,a,this.customTables),d=new B(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,_=(0,i.log2)(r.length+a),w=m.decoder,x=m.contextCache;let C,S;for(e&&(C=T(1),S=[],_=Math.max(_,1));y.length<a;){b+=e?c.tableDeltaHeight.decode(v):n(x,"IADH",w);let i=0,a=0;const o=e?S.length:0;for(;;){var k,E=e?c.tableDeltaWidth.decode(v):n(x,"IADW",w);if(null===E)break;if(a+=i+=E,t){var B=n(x,"IAAI",w);if(B>1)k=A(e,t,i,b,0,B,1,r.concat(y),_,0,0,1,0,c,d,f,m,0,v);else{var I=l(x,w,_),D=n(x,"IARDX",w),F=n(x,"IARDY",w);k=g(i,b,d,I<r.length?r[I]:y[I-r.length],D,F,!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=P(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(x,"IAEX",w);U--;)L.push(R);R=!R}for(var j=0,H=r.length;j<H;j++)L[j]&&O.push(r[j]);for(var z=0;z<a;j++,z++)L[j]&&O.push(y[z]);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 g=(0,i.log2)(d.length);e.huffman&&(u=new B(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=T(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=T(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=T(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=A(e.huffman,e.refinement,l.width,l.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,d,g,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,g,A,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,_;for(y=0;y<a;y++){if(_=new Uint8Array(r),o)for(b=0;b<r;b++)_[b]=o;v.push(_)}const w=t.length,x=t[0],C=x[0].length,S=x.length,k=(0,i.log2)(w),E=[];e||(E.push({x:n<=1?3:2,y:-1}),0===n&&(E.push({x:-3,y:-1}),E.push({x:2,y:-2}),E.push({x:-2,y:-2})));const T=[];let I,M,D,F,O,L,R,N,U,j,H;for(e&&(I=new B(m.data,m.start,m.end)),y=k-1;y>=0;y--)M=e?P(I,u,h,!0):p(!1,u,h,n,!1,null,E,m),T[y]=M;for(D=0;D<h;D++)for(F=0;F<u;F++){for(O=0,L=0,b=k-1;b>=0;b--)L|=(O=T[b][D][F]^O)<<b;if(R=t[L],U=f+D*g-F*A>>8,(N=d+D*A+F*g>>8)>=0&&N+C<=r&&U>=0&&U+S<=a)for(y=0;y<S;y++)for(H=v[U+y],j=R[y],b=0;b<C;b++)H[N+b]|=j[b];else{let e,t;for(y=0;y<S;y++)if(!((t=U+y)<0||t>=a))for(H=v[t],j=R[y],b=0;b<C;b++)(e=N+b)>=0&&e<r&&(H[e]|=j[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 B(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 E={};function T(e){let t,n=E[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),E[e]=n,n}function B(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 P(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 B.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 x,n=0,r=e.length;n<r;n++){var i=e[n];w(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;w(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 g(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 A(e,t,n){return 64*((e.blocksPerLine+1)*t+n)}function m(t,n,l,c,u,h,d,f,p,g=!1){var m=l.mcusPerLine,v=l.progressive;const y=n;let _=0,w=0;function x(){if(w>0)return _>>--w&1;if(255===(_=t[n++])){var e=t[n++];if(e){if(220===e&&g){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(g){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 ${(_<<8|e).toString(16)}`)}}return w=7,_>>>7}function C(e){for(var t=e;;){switch(typeof(t=t[x()])){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|x(),e--;return t}function k(e){if(1===e)return 1===x()?1:-1;var t=S(e);return t>=1<<e-1?t:t+(-1<<e)+1}var E=0;var T,B=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,A(e,I,o))}function P(e,t,n){I=n/e.blocksPerLine|0;var r=n%e.blocksPerLine;t(e,A(e,I,r))}var D,F,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]|=x()<<p}:0===f?function(t,n){if(E>0)E--;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){E=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(B){case 0:if(l=(i=C(t.huffmanTableAC))>>4,0==(r=15&i))l<15?(E=S(l)+(1<<l),B=4):(l=16,B=1);else{if(1!==r)throw new a("invalid ACn encoding");T=k(r),B=l?2:3}continue;case 1:case 2:t.blockData[s]?t.blockData[s]+=c*(x()<<p):0==--l&&(B=2===B?3:0);break;case 3:t.blockData[s]?t.blockData[s]+=c*(x()<<p):(t.blockData[s]=T<<p,B=0);break;case 4:t.blockData[s]&&(t.blockData[s]+=c*(x()<<p))}o++}4===B&&0==--E&&(B=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 j,H,z,Q,V=0;for(H=1===U?c[0].blocksPerLine*c[0].blocksPerColumn:m*l.mcusPerColumn;V<=H;){var G=u?Math.min(H-V,u):H;if(G>0){for(F=0;F<U;F++)c[F].pred=0;if(E=0,1===U)for(D=c[0],R=0;R<G;R++)P(D,N,V),V++;else for(R=0;R<G;R++){for(F=0;F<U;F++)for(z=(D=c[F]).h,Q=D.v,O=0;O<Q;O++)for(L=0;L<z;L++)M(D,N,V,O,L);V++}}if(w=0,!(j=b(t,n)))break;if(j.invalid){const e=G>0?"unexpected":"excessive";(0,r.warn)(`decodeScan - ${e} MCU data, current marker is: ${j.invalid}`),n=j.offset}if(!(j.marker>=65488&&j.marker<=65495))break;n+=2}return n-y}function v(e,r,i){var o,s,p,g,A,m,v,y,b,_,w,x,C,S,k,E,T,B=e.quantizationTable,I=e.blockData;if(!B)throw new a("missing required Quantization Table.");for(var M=0;M<64;M+=8)b=I[r+M],_=I[r+M+1],w=I[r+M+2],x=I[r+M+3],C=I[r+M+4],S=I[r+M+5],k=I[r+M+6],E=I[r+M+7],b*=B[M],0!=(_|w|x|C|S|k|E)?(_*=B[M+1],w*=B[M+2],x*=B[M+3],C*=B[M+4],S*=B[M+5],k*=B[M+6],E*=B[M+7],s=(o=(o=d*b+128>>8)+(s=d*C+128>>8)+1>>1)-s,T=(p=w)*h+(g=k)*u+128>>8,p=p*u-g*h+128>>8,v=(A=(A=f*(_-E)+128>>8)+(v=S<<4)+1>>1)-v,m=(y=(y=f*(_+E)+128>>8)+(m=x<<4)+1>>1)-m,g=(o=o+(g=T)+1>>1)-g,p=(s=s+p+1>>1)-p,T=A*c+y*l+2048>>12,A=A*l-y*c+2048>>12,y=T,T=m*n+v*t+2048>>12,m=m*t-v*n+2048>>12,v=T,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]=g+A,i[M+4]=g-A):(T=d*b+512>>10,i[M]=T,i[M+1]=T,i[M+2]=T,i[M+3]=T,i[M+4]=T,i[M+5]=T,i[M+6]=T,i[M+7]=T);for(var P=0;P<8;++P)b=i[P],0!=((_=i[P+8])|(w=i[P+16])|(x=i[P+24])|(C=i[P+32])|(S=i[P+40])|(k=i[P+48])|(E=i[P+56]))?(s=(o=4112+((o=d*b+2048>>12)+(s=d*C+2048>>12)+1>>1))-s,T=(p=w)*h+(g=k)*u+2048>>12,p=p*u-g*h+2048>>12,g=T,v=(A=(A=f*(_-E)+2048>>12)+(v=S)+1>>1)-v,m=(y=(y=f*(_+E)+2048>>12)+(m=x)+1>>1)-m,T=A*c+y*l+2048>>12,A=A*l-y*c+2048>>12,y=T,T=m*n+v*t+2048>>12,m=m*t-v*n+2048>>12,E=(o=o+g+1>>1)-y,_=(s=s+p+1>>1)+(v=T),k=s-v,w=(p=s-p)+m,S=p-m,x=(g=o-g)+A,C=g-A,(b=o+y)<16?b=0:b>=4080?b=255:b>>=4,_<16?_=0:_>=4080?_=255:_>>=4,w<16?w=0:w>=4080?w=255:w>>=4,x<16?x=0:x>=4080?x=255:x>>=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,E<16?E=0:E>=4080?E=255:E>>=4,I[r+P]=b,I[r+P+8]=_,I[r+P+16]=w,I[r+P+24]=x,I[r+P+32]=C,I[r+P+40]=S,I[r+P+48]=k,I[r+P+56]=E):(T=(T=d*b+8192>>14)<-2040?0:T>=2024?255:T+2056>>4,I[r+P]=T,I[r+P+8]=T,I[r+P+16]=T,I[r+P+24]=T,I[r+P+32]=T,I[r+P+40]=T,I[r+P+48]=T,I[r+P+56]=T)}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,A(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++){z=e.components[r];var i=Math.ceil(Math.ceil(e.samplesPerLine/8)*z.h/e.maxH),a=Math.ceil(Math.ceil(e.scanLines/8)*z.v/e.maxV),o=t*z.h,s=64*(n*z.v)*(o+1);z.blockData=new Int16Array(s),z.blocksPerLine=i,z.blocksPerColumn=a}e.mcusPerLine=t,e.mcusPerColumn=n}var u,h,d=0,f=null,p=null;let A=0;var v=[],_=[],w=[];let x=(0,i.readUint16)(t,d);if(d+=2,65496!==x)throw new a("SOI not found");x=(0,i.readUint16)(t,d),d+=2;e:for(;65497!==x;){var C,S,k;switch(x){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 E=l();65504===x&&74===E[0]&&70===E[1]&&73===E[2]&&70===E[3]&&0===E[4]&&(f={version:{major:E[5],minor:E[6]},densityUnits:E[7],xDensity:E[8]<<8|E[9],yDensity:E[10]<<8|E[11],thumbWidth:E[12],thumbHeight:E[13],thumbData:E.subarray(14,14+3*E[12]*E[13])}),65518===x&&65===E[0]&&100===E[1]&&111===E[2]&&98===E[3]&&101===E[4]&&(p={version:E[5]<<8|E[6],flags0:E[7]<<8|E[8],flags1:E[9]<<8|E[10],transformCode:E[11]});break;case 65499:for(var T=(0,i.readUint16)(t,d)+(d+=2)-2;d<T;){var B=t[d++],I=new Uint16Array(64);if(B>>4==0)for(S=0;S<64;S++)I[e[S]]=t[d++];else{if(B>>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&B]=I}break;case 65472:case 65473:case 65474:if(u)throw new a("Only single frame JPEGs supported");d+=2,(u={}).extended=65473===x,u.progressive=65474===x,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,P=t[d++],D=0,F=0;for(C=0;C<P;C++){M=t[d];var O=t[d+1]>>4,L=15&t[d+1];D<O&&(D=O),F<L&&(F=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=F,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),j=0;for(S=0;S<16;S++,d++)j+=U[S]=t[d];var H=new Uint8Array(j);for(S=0;S<j;S++,d++)H[S]=t[d];C+=17+j,(N>>4==0?w:_)[15&N]=g(U,H)}break;case 65501:d+=2,h=(0,i.readUint16)(t,d),d+=2;break;case 65498:const Z=1==++A&&!n;d+=2;var z,Q=t[d++],V=[];for(C=0;C<Q;C++){var G=u.componentIds[t[d++]];z=u.components[G];var q=t[d++];z.huffmanTableDC=w[q>>4],z.huffmanTableAC=_[15&q],V.push(z)}var W=t[d++],$=t[d++],K=t[d++];try{var Y=m(t,d,u,V,h,W,$,K>>4,15&K,Z);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 J=b(t,d-2,d-3);if(J&&J.invalid){(0,r.warn)("JpegImage.parse - unexpected data, current marker is: "+J.invalid),d=J.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: "+x.toString(16))}x=(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[(z=u.components[C]).quantizationId];X&&(z.quantizationTable=X),this.components.push({output:y(0,z),scaleX:z.h/u.maxH,scaleY:z.v/u.maxV,blocksPerLine:z.blocksPerLine,blocksPerColumn:z.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,g=this.height/t,A=0,m=this.components.length,v=e*t*m,y=new Uint8ClampedArray(v),b=new Uint32Array(e);let _;for(c=0;c<m;c++){if(i=(r=this.components[c]).scaleX*p,a=r.scaleY*g,A=c,f=r.output,o=r.blocksPerLine+1<<3,i!==_){for(s=0;s<e;s++)u=0|s*i,b[s]=(4294967288&u)<<3|7&u;_=i}for(l=0;l<t;l++)for(d=o*(4294967288&(u=0|l*a))|(7&u)<<3,s=0;s<e;s++)y[A]=f[d+b[s]],A+=m}let w=this._decodeTransform;if(n||4!==m||w||(w=new Int32Array([-256,255,-256,255,-256,255,-256,255])),w)for(c=0;c<v;)for(u=0,h=0;u<m;u++,c++,h+=2)y[c]=(y[c]*w[h]>>8)+w[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,g=t.resolution.precinctParameters,A=[],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)/g.precinctWidthInSubband)+Math.floor((a.tby0_-t.tby0)/g.precinctHeightInSubband)*g.numprecinctswide,a.precinctNumber=o,a.subbandType=t.type,a.Lblock=3,!(a.tbx1_<=a.tbx0_||a.tby1_<=a.tby0_)){A.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=A,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,g=1,A=c;A>=0;--A){var m=l.resolutions[A],v=g*m.precinctParameters.precinctWidth,y=g*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[A]={width:v,height:y},g<<=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,g=[],A=[],m=0;m<=p;m++){var v,y=l(0,s,m),b={},_=1<<p-m;if(b.trx0=Math.ceil(s.tcx0/_),b.try0=Math.ceil(s.tcy0/_),b.trx1=Math.ceil(s.tcx1/_),b.try1=Math.ceil(s.tcy1/_),b.resLevel=m,c(0,b,y),g.push(b),0===m)(v={}).type="LL",v.tbx0=Math.ceil(s.tcx0/_),v.tby0=Math.ceil(s.tcy0/_),v.tbx1=Math.ceil(s.tcx1/_),v.tby1=Math.ceil(s.tcy1/_),v.resolution=b,u(0,v,y),A.push(v),b.subbands=[v];else{var w=1<<p-m+1,x=[];(v={}).type="HL",v.tbx0=Math.ceil(s.tcx0/w-.5),v.tby0=Math.ceil(s.tcy0/w),v.tbx1=Math.ceil(s.tcx1/w-.5),v.tby1=Math.ceil(s.tcy1/w),v.resolution=b,u(0,v,y),A.push(v),x.push(v),(v={}).type="LH",v.tbx0=Math.ceil(s.tcx0/w),v.tby0=Math.ceil(s.tcy0/w-.5),v.tbx1=Math.ceil(s.tcx1/w),v.tby1=Math.ceil(s.tcy1/w-.5),v.resolution=b,u(0,v,y),A.push(v),x.push(v),(v={}).type="HH",v.tbx0=Math.ceil(s.tcx0/w-.5),v.tby0=Math.ceil(s.tcy0/w-.5),v.tbx1=Math.ceil(s.tcx1/w-.5),v.tby1=Math.ceil(s.tcy1/w-.5),v.resolution=b,u(0,v,y),A.push(v),x.push(v),b.subbands=x}}s.resolutions=g,s.subbands=A}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 g=l.components[r].resolutions;n<g.length&&(p=Math.max(p,g[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,g=0,A=0;this.nextPacket=function(){for(;A<l.maxNumHigh;A++){for(;g<l.maxNumWide;g++){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(g,A,f,l,n);if(null!==m){for(;c<i;){var v=h(n,m,c);return c++,v}c=0}}u=0}p=0}g=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,g=0;this.nextPacket=function(){for(;u<a;++u){for(var e=r.components[u],t=s.components[u],n=e.codingStyleParameters.decompositionLevelsCount;g<t.maxNumHigh;g++){for(;p<t.maxNumWide;p++){for(;c<=n;c++){var f=e.resolutions[c],A=t.resolutions[c],m=d(p,g,A,t,f);if(null!==m){for(;l<i;){var v=h(f,m,l);return l++,v}l=0}}c=0}p=0}g=0}throw new o("Out of packets")}}(e);break;default:throw new o(`Unsupported progression order ${C}`)}}function g(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,g=e.tiles[p],A=e.COD.sopMarkerUsed,m=e.COD.ephMarkerUsed,v=g.packetsIterator;o<r;){d(),A&&u(145)&&h(4);var _=v.nextPacket();if(c(1)){for(var w,x=_.layerNumber,C=[],S=0,k=_.codeblocks.length;S<k;S++){var E=(w=_.codeblocks[S]).precinct,T=w.cbx-E.cbxMin,B=w.cby-E.cbyMin,I=!1,M=!1;if(void 0!==w.included)I=!!c(1);else{var P,D;if(void 0!==(E=w.precinct).inclusionTree)P=E.inclusionTree;else{var F=E.cbxMax-E.cbxMin+1,O=E.cbyMax-E.cbyMin+1;P=new b(F,O,x),D=new y(F,O),E.inclusionTree=P,E.zeroBitPlanesTree=D}if(P.reset(T,B,x))for(;;){if(!c(1)){P.incrementValue(x);break}if(!P.nextLevel()){w.included=!0,I=M=!0;break}}}if(I){if(M){for((D=E.zeroBitPlanesTree).reset(T,B);;)if(c(1)){if(!D.nextLevel())break}else D.incrementValue();w.zeroBitPlanes=D.value}for(var L=f();c(1);)w.Lblock++;var R=(0,i.log2)(L),N=c((L<1<<R?R-1:R)+w.Lblock);C.push({codeblock:w,codingpasses:L,dataLength:N})}}for(d(),m&&u(146);C.length>0;){var U=C.shift();void 0===(w=U.codeblock).data&&(w.data=[]),w.data.push({data:t,start:n+o,end:n+o+U.dataLength,codingpasses:U.codingpasses}),o+=U.dataLength}}}return o}function A(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,g=0,A=d.length;g<A;++g){var m=d[g],v=m.tbx1_-m.tbx0_,y=m.tby1_-m.tby0_;if(0!==v&&0!==y&&void 0!==m.data){var b,w;b=new _(v,y,m.subbandType,m.zeroBitPlanes,o),w=2;var x,C,S,k=m.data,E=0,T=0;for(x=0,C=k.length;x<C;x++)E+=(S=k[x]).end-S.start,T+=S.codingpasses;var B=new Uint8Array(E),I=0;for(x=0,C=k.length;x<C;x++){var M=(S=k[x]).data.subarray(S.start,S.end);B.set(M,I),I+=M.length}var P=new a.ArithmeticDecoder(B,0,E);for(b.setDecoder(P),x=0;x<T;x++){switch(w){case 0:b.runSignificancePropagationPass();break;case 1:b.runMagnitudeRefinementPass();break;case 2:b.runCleanupPass(),l&&b.checkSegmentationSymbol()}w=(w+1)%3}var D,F,O,L=m.tbx0_-c+(m.tby0_-u)*h,R=b.coefficentsSign,N=b.coefficentsMagnitude,U=b.bitsDecoded,j=s?0:.5;I=0;var H="LL"!==r.type;for(x=0;x<y;x++){var z=2*(L/h|0)*(t-h)+f+p;for(D=0;D<v;D++){if(0!==(F=N[I])){F=(F+j)*i,0!==R[I]&&(F=-F),O=U[I];var Q=H?z+(L<<1):L;e[Q]=s&&O>=o?F:F*(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 x,g=[],m=0,v=0;v<=s;v++){for(var y=i.resolutions[v],b=y.trx1-y.trx0,_=y.try1-y.try0,w=new Float32Array(b*_),S=0,k=y.subbands.length;S<k;S++){var E,T;c?(E=l[m].mu,T=l[m].epsilon,m++):(E=l[0].mu,T=l[0].epsilon+(v>0?1-v:0));var B=y.subbands[S],I=e[B.type];A(w,b,0,B,f?1:2**(d+I-T)*(1+E/2048),u+T-1,f,h)}g.push({width:b,height:_,items:w})}var M=p.calculate(g,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,A,y,b,_,w=0;switch(h){case 65359:l.mainHeader=!0;break;case 65497:break;case 65361:w=(0,i.readUint16)(e,u);var x={};x.Xsiz=(0,i.readUint32)(e,u+4),x.Ysiz=(0,i.readUint32)(e,u+8),x.XOsiz=(0,i.readUint32)(e,u+12),x.YOsiz=(0,i.readUint32)(e,u+16),x.XTsiz=(0,i.readUint32)(e,u+20),x.YTsiz=(0,i.readUint32)(e,u+24),x.XTOsiz=(0,i.readUint32)(e,u+28),x.YTOsiz=(0,i.readUint32)(e,u+32);var C=(0,i.readUint16)(e,u+36);x.Csiz=C;var S=[];d=u+38;for(var k=0;k<C;k++){var E={precision:1+(127&e[d]),isSigned:!!(128&e[d]),XRsiz:e[d+1],YRsiz:e[d+2]};d+=3,n(E,x),S.push(E)}l.SIZ=x,l.components=S,s(l,S),l.QCC=[],l.COC=[];break;case 65372:w=(0,i.readUint16)(e,u);var T={};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(T.noQuantization=8===y,T.scalarExpounded=b,T.guardBits=f>>5,A=[];d<w+u;){var B={};8===y?(B.epsilon=e[d++]>>3,B.mu=0):(B.epsilon=e[d]>>3,B.mu=(7&e[d])<<8|e[d+1],d+=2),A.push(B)}T.SPqcds=A,l.mainHeader?l.QCD=T:(l.currentTile.QCD=T,l.currentTile.QCC=[]);break;case 65373:w=(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,A=[];d<w+u;)B={},8===y?(B.epsilon=e[d++]>>3,B.mu=0):(B.epsilon=e[d]>>3,B.mu=(7&e[d])<<8|e[d+1],d+=2),A.push(B);M.SPqcds=A,l.mainHeader?l.QCC[I]=M:l.currentTile.QCC[I]=M;break;case 65362:w=(0,i.readUint16)(e,u);var P={};d=u+2;var D=e[d++];P.entropyCoderWithCustomPrecincts=!!(1&D),P.sopMarkerUsed=!!(2&D),P.ephMarkerUsed=!!(4&D),P.progressionOrder=e[d++],P.layersCount=(0,i.readUint16)(e,d),d+=2,P.multipleComponentTransform=e[d++],P.decompositionLevelsCount=e[d++],P.xcb=2+(15&e[d++]),P.ycb=2+(15&e[d++]);var F=e[d++];if(P.selectiveArithmeticCodingBypass=!!(1&F),P.resetContextProbabilities=!!(2&F),P.terminationOnEachCodingPass=!!(4&F),P.verticallyStripe=!!(8&F),P.predictableTermination=!!(16&F),P.segmentationSymbolUsed=!!(32&F),P.reversibleTransformation=e[d++],P.entropyCoderWithCustomPrecincts){for(var O=[];d<w+u;){var L=e[d++];O.push({PPx:15&L,PPy:L>>4})}P.precinctsSizes=O}var R=[];if(P.selectiveArithmeticCodingBypass&&R.push("selectiveArithmeticCodingBypass"),P.resetContextProbabilities&&R.push("resetContextProbabilities"),P.terminationOnEachCodingPass&&R.push("terminationOnEachCodingPass"),P.verticallyStripe&&R.push("verticallyStripe"),P.predictableTermination&&R.push("predictableTermination"),R.length>0)throw c=!0,new Error("Unsupported COD options ("+R.join(", ")+")");l.mainHeader?l.COD=P:(l.currentTile.COD=P,l.currentTile.COC=[]);break;case 65424:w=(0,i.readUint16)(e,u),(_={}).index=(0,i.readUint16)(e,u+2),_.length=(0,i.readUint32)(e,u+4),_.dataEnd=_.length+u-2,_.partIndex=e[u+8],_.partsCount=e[u+9],l.mainHeader=!1,0===_.partIndex&&(_.COD=l.COD,_.COC=l.COC.slice(0),_.QCD=l.QCD,_.QCC=l.QCC.slice(0)),l.currentTile=_;break;case 65427:0===(_=l.currentTile).partIndex&&(v(l,_.index),p(l)),g(l,e,u,w=_.dataEnd-u);break;case 65365:case 65367:case 65368:case 65380:w=(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+=w}}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,g,A,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},_=0;if(l.codingStyleDefaultParameters.multipleComponentTransform){var w=4===r,x=c[0].items,C=c[1].items,S=c[2].items,k=w?c[3].items:null;u=n[0].precision-8,h=.5+(128<<u);var E=l.components[0],T=r-3;if(f=x.length,E.codingStyleParameters.reversibleTransformation)for(d=0;d<f;d++,_+=T){p=x[d]+h,g=C[d],A=S[d];const e=p-(A+g>>2);y[_++]=e+A>>u,y[_++]=e>>u,y[_++]=e+g>>u}else for(d=0;d<f;d++,_+=T)p=x[d]+h,g=C[d],A=S[d],y[_++]=p+1.402*A>>u,y[_++]=p-.34413*g-.71414*A>>u,y[_++]=p+1.772*g>>u;if(w)for(d=0,_=3;d<f;d++,_+=4)y[_]=k[d]+h>>u}else for(s=0;s<r;s++){var B=c[s].items;for(u=n[s].precision-8,h=.5+(128<<u),_=s,d=0,f=B.length;d<f;d++)y[_]=B[d]+h>>u,_+=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}(),_=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 g=l[a[d]];if(e.readBit(s,g)){var A=this.decodeSignBit(p,h,d);i[d]=A,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 g=t.readBit(o,p);i[f]=i[f]<<1|g,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 g=p*n,A=p+3<r,m=0;m<n;m++){var v,y=g+m,b=0,_=y,w=p;if(A&&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))&&(w=p+b,_+=b*n),v=this.decodeSignBit(w,m,_),o[_]=v,a[_]=1,this.setNeighborsSignificance(w,m,_),u[_]|=2,_=y;for(var x=p;x<=w;x++,_+=n)c[_]++;b++}for(w=p+b;w<e;w++,_+=n)if(!a[_]&&0==(1&u[_])){var C=l[i[_]];1===t.readBit(s,C)&&(v=this.decodeSignBit(w,m,_),o[_]=v,a[_]=1,this.setNeighborsSignificance(w,m,_),u[_]|=2),c[_]++}}}},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}(),w=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,g=t.items;for(o=0,i=0;i<h;i++)for(s=2*i*f,a=0;a<u;a++,o++,s+=2)g[s]=d[o];d=e.items=null;var A=new Float32Array(f+8);if(1===f){if(0!=(1&n))for(c=0,o=0;c<p;c++,o+=f)g[o]*=.5}else for(c=0,o=0;c<p;c++,o+=f)A.set(g.subarray(o,o+f),4),this.extend(A,4,f),this.filter(A,4,f),g.set(A.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++)g[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]=g[o+y];b=m}var _=v[--b];if(this.extend(_,4,p),this.filter(_,4,p),0===b)for(o=l-m+1,s=4;s<e;o+=f,s++)for(y=0;y<m;y++)g[o+y]=v[y][s]}return{width:f,height:p,items:g}},e}(),x=function(){function e(){w.call(this)}return e.prototype=Object.create(w.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(){w.call(this)}return e.prototype=Object.create(w.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 g,A,m=l,v=c,y=u,b=h;for(o=0;o<64;++o){o<16?(g=v&y|~v&b,A=o):o<32?(g=b&v|~b&y,A=5*o+1&15):o<48?(g=v^y^b,A=3*o+5&15):(g=y^(v|~b),A=7*o&15);var _=b,w=m+g+t[o]+p[A]|0,x=e[o];b=y,y=v,v=v+(w<<x|w>>>32-x)|0,m=_}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,g=1013904242,A=2773480762,m=1359893119,v=2600822924,y=528734635,b=1541459225,_=64*Math.ceil((c+9)/64),w=new Uint8Array(_);for(u=0;u<c;++u)w[u]=s[l++];for(w[u++]=128,d=_-8;u<d;)w[u++]=0;w[u++]=0,w[u++]=0,w[u++]=0,w[u++]=c>>>29&255,w[u++]=c>>21&255,w[u++]=c>>13&255,w[u++]=c>>5&255,w[u++]=c<<3&255;var x,C=new Uint32Array(64);for(u=0;u<_;){for(h=0;h<16;++h)C[h]=w[u]<<24|w[u+1]<<16|w[u+2]<<8|w[u+3],u+=4;for(h=16;h<64;++h)C[h]=0|(e(x=C[h-2],17)^e(x,19)^x>>>10)+C[h-7]+a(C[h-15])+C[h-16];var S,k,E=f,T=p,B=g,I=A,M=m,P=v,D=y,F=b;for(h=0;h<64;++h)S=F+i(M)+t(M,P,D)+o[h]+C[h],k=r(E)+n(E,T,B),F=D,D=P,P=M,M=I+S|0,I=B,B=T,T=E,E=S+k|0;f=f+E|0,p=p+T|0,g=g+B|0,A=A+I|0,m=m+M|0,v=v+P|0,y=y+D|0,b=b+F|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,g>>24&255,g>>16&255,g>>8&255,255&g,A>>24&255,A>>16&255,A>>8&255,255&A,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,g,A,m,v,y;(h=!!h)?(d=new l(3418070365,3238371032),f=new l(1654270250,914150663),p=new l(2438529370,812702999),g=new l(355462360,4144912697),A=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),g=new l(2773480762,1595750129),A=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(x);for(b=0;b<u;++b)C[b]=s[c++];for(C[b++]=128,w=x-16;b<w;)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,E,T=new l(0,0),B=new l(0,0),I=new l(0,0),M=new l(0,0),P=new l(0,0),D=new l(0,0),F=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<x;){for(_=0;_<16;++_)S[_].high=C[b]<<24|C[b+1]<<16|C[b+2]<<8|C[b+3],S[_].low=C[b+4]<<24|C[b+5]<<16|C[b+6]<<8|C[b+7],b+=8;for(_=16;_<80;++_)a(k=S[_],S[_-2],U),k.add(S[_-7]),i(N,S[_-15],U),k.add(N),k.add(S[_-16]);for(T.assign(d),B.assign(f),I.assign(p),M.assign(g),P.assign(A),D.assign(m),F.assign(v),O.assign(y),_=0;_<80;++_)L.assign(O),r(N,P,U),L.add(N),e(N,P,D,F,U),L.add(N),L.add(o[_]),L.add(S[_]),n(R,T,U),t(N,T,B,I,U),R.add(N),k=O,O=F,F=D,D=P,M.add(L),P=M,M=I,I=B,B=T,k.assign(L),k.add(R),T=k;d.add(T),f.add(B),p.add(I),g.add(M),A.add(P),m.add(D),v.add(F),y.add(O)}return h?(E=new Uint8Array(48),d.copyTo(E,0),f.copyTo(E,8),p.copyTo(E,16),g.copyTo(E,24),A.copyTo(E,32),m.copyTo(E,40)):(E=new Uint8Array(64),d.copyTo(E,0),f.copyTo(E,8),p.copyTo(E,16),g.copyTo(E,24),A.copyTo(E,32),m.copyTo(E,40),v.copyTo(E,48),y.copyTo(E,56)),E}}();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 g 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=g;var A=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 g(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 g(i).decryptBlock(n,!1,new Uint8Array(16))}},t}();t.PDF17=A;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,g=0;f<64;f++,g+=s)l.set(d,g);a=new p(i.subarray(0,16)).encrypt(l,i.subarray(16,32));for(var A=0,m=0;m<16;m++)A*=1,A%=3,A+=(a[m]>>>0)%3,A%=3;0===A?i=c(a,0,a.length):1===A?i=h(a,0,a.length):2===A&&(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 g(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 g(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),g=0;if(n)for(d=Math.min(32,n.length);g<d;++g)p[g]=n[g];for(h=0;g<32;)p[g++]=e[h++];for(h=0,d=r.length;h<d;++h)p[g++]=r[h];for(p[g++]=255&a,p[g++]=a>>8&255,p[g++]=a>>16&255,p[g++]=a>>>24&255,h=0,d=t.length;h<d;++h)p[g++]=t[h];l>=4&&!u&&(p[g++]=255,p[g++]=255,p[g++]=255,p[g++]=255);var A=s(p,0,g),m=c>>3;if(l>=3)for(h=0;h<50;++h)A=s(A,0,m);var v,y=A.subarray(0,m);if(l>=3){for(g=0;g<32;++g)p[g]=e[g];for(h=0,d=t.length;h<d;++h)p[g++]=t[h];v=new o(y).encryptBlock(s(p,0,g)),d=y.length;var b,_=new Uint8Array(d);for(h=1;h<=19;++h){for(b=0;b<d;++b)_[b]=y[b]^h;v=new o(_).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 g=f.get(p.name);(d=g&&g.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"),_=a.get("R"),w=(4===h||5===h)&&!1!==a.get("EncryptMetadata");this.encryptMetadata=w;var x,C,S=(0,r.stringToBytes)(l);if(c){if(6===_)try{c=(0,r.utf8StringToString)(c)}catch(e){(0,r.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}x=(0,r.stringToBytes)(c)}if(5!==h)C=t(S,x,v,y,b,_,d,w);else{var k=(0,r.stringToBytes)(a.get("O")).subarray(32,40),E=(0,r.stringToBytes)(a.get("O")).subarray(40,48),T=(0,r.stringToBytes)(a.get("U")).subarray(0,48),B=(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")),P=(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 A).checkUserPassword(t,s,o)?f.getUserKey(t,l,u):t.length&&f.checkOwnerPassword(t,r,a,n)?f.getOwnerKey(t,i,a,c):null}(_,x,v,k,E,T,y,B,I,M,P)}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,g=new Uint8Array(f);for(a=19;a>=0;a--){for(p=0;p<f;++p)g[p]=d[p]^a;h=new o(g).encryptBlock(h)}}else h=new o(d.subarray(0,f)).encryptBlock(n);return h}(x,v,_,d),v,y,b,_,d,w)),!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 g(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],g=e[2],A=e[3];return new l(this.fromIR(h),g,A);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 g=this.parseToIR(e[1],t,n,a),A=t.fetchIfRef(e[2])+1;let m=t.fetchIfRef(e[3]);return(0,i.isStream)(m)&&(m=m.getBytes()),["IndexedCS",g,A,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),g=this.numComps,A=new Float32Array(g),m=new Float32Array(u);let v,y;for(v=0;v<n;v++){for(y=0;y<g;y++)A[y]=e[t++]*c;if(s(A,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,g,A){const m=d(0,1,a[c]*A),v=d(0,1,a[c+1]*A),y=d(0,1,a[c+2]*A),b=m**r.GR,_=v**r.GG,w=y**r.GB,x=r.MXA*b+r.MXB*_+r.MXC*w,C=r.MYA*b+r.MYB*_+r.MYC*w,S=r.MZA*b+r.MZB*_+r.MZC*w,k=s;k[0]=x,k[1]=C,k[2]=S;const E=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,E);const T=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,E,T);const B=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,T,B);const I=s;u(n,B,I),p[g]=255*h(I[0]),p[g+1]=255*h(I[1]),p[g+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),g=n.YW*e(h),A=n.ZW*e(f);let m,v,y;n.ZW<1?(m=3.1339*p+-1.617*g+-.4906*A,v=-.9785*p+1.916*g+.0333*A,y=.072*p+-.229*g+1.4057*A):(m=3.2406*p+-1.5372*g+-.4986*A,v=-.9689*p+1.8758*g+.0415*A,y=.0557*p+-.204*g+1.057*A),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 g(u);case"Btn":return new A(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 _(u);case"Line":return new w(u);case"Square":return new x(u);case"Circle":return new C(u);case"PolyLine":return new S(u);case"Polygon":return new k(u);case"Caret":return new E(u);case"Ink":return new T(u);case"Highlight":return new B(u);case"Underline":return new I(u);case"Squiggly":return new M(u);case"StrikeOut":return new P(u);case"Stamp":return new D(u);case"FileAttachment":return new F(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 g 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 A 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 _ extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.FREETEXT}}class w extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.LINE,this.data.lineCoordinates=r.Util.normalizeRect(e.dict.getArray("L"))}}class x 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 E extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.CARET}}class T 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 B 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 P 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 F 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,g=1;for(u=0;u<c;u++){var A=i[s+(u<<2)],m=i[l+(u<<2)][0];p+m.width>1e3&&(h=Math.max(h,p),g+=f+2,p=0,f=0),d.push({transform:A,x:p,y:g,w:m.width,h:m.height}),p+=m.width+2,f=Math.max(f,m.height)}var v=Math.max(h,p)+1,y=g+f+1,b=new Uint8ClampedArray(v*y*4),_=v<<2;for(u=0;u<c;u++){var w=i[l+(u<<2)][0].data,x=d[u].w<<2,C=0,S=d[u].x+d[u].y*v<<2;b.set(w.subarray(0,x),S-_);for(var k=0,E=d[u].h;k<E;k++)b.set(w.subarray(C,C+x),S),C+=x,S+=_;for(b.set(w.subarray(C-x,C),S);S>=0;)w[S-4]=w[S],w[S-3]=w[S+1],w[S-2]=w[S+2],w[S-1]=w[S+3],w[S+x]=w[S+x-4],w[S+x+1]=w[S+x-3],w[S+x+2]=w[S+x-2],w[S+x+3]=w[S+x-1],S-=_}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 g=a[l][0],A=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]!==g||0!==d[1]||0!==d[2]||d[3]!==A){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,g,A,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 g=i[f];d[p<<1]=g[4],d[1+(p<<1)]=g[5]}var A=[l,c,u,d];return n.splice(o,4*h,r.OPS.paintImageXObjectRepeat),i.splice(o,4*h,A),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,g=1;g<d;g++)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),g=n(12),A=n(33),m=n(40),v=n(41),y=n(24),b=n(43),_=n(26),w=n(44),x=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 x=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"),g=null;(0,a.isName)(f,"Transparency")&&(d.isolated=h.get("I")||!1,d.knockout=h.get("K")||!1,h.has("CS")&&(g=await this.parseColorSpace({cs:h.get("CS"),resources:e}))),n&&n.backdrop&&(g=g||p.ColorSpace.singletons.rgb,n.backdrop=g.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"),A=s.get("Height","H"),m=p+7>>3,v=t.getBytes(m*A,!0),y=s.getArray("Decode","D");return(h=w.PDFImage.createMask({imgArray:v,width:p,height:A,imageIsFromDecodeStream:t instanceof g.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,_=s.get("Mask")||!1;if(n&&!b&&!_&&c+u<200){const a=new w.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 x=`img_${this.idFactory.createObjId()}`,C=!1;this.parsingType3Font?x=`${this.idFactory.getDocId()}_type3res_${x}`:l&&(C=this.globalImageCache.shouldCache(l,this.pageIndex))&&(x=`${this.idFactory.getDocId()}_${x}`),i.addDependency(x),d=[x,c,u];const S=w.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",[x,"FontType3Res",h],[h.data.buffer]);C?this.handler.send("commonobj",[x,"Image",h],[h.data.buffer]):this.handler.send("obj",[x,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",[x,"FontType3Res",null]);C?this.handler.send("commonobj",[x,"Image",null]):this.handler.send("obj",[x,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:x,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 _.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 g,A,m=(0,a.isRef)(l);if(m&&(g=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),g=v[p].fontID}m?this.fontCache.put(l,h.promise):(g||(g=this.idFactory.createObjId()),this.fontCache.put(`id_${g}`,h.promise)),(0,r.assert)(g,'The "fontID" must be defined.'),n.loadedName=`${this.idFactory.getDocId()}_f${g}`,n.translated=h.promise;try{A=this.translateFont(d)}catch(e){A=Promise.reject(e)}return A.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 g=d.get("Shading"),A=d.getArray("Matrix");return c=h.Pattern.parseShading(g,A,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 E,!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,g=i.get("Pattern")||a.Dict.empty,A=new S(s),m=new T(e,c,A),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,C,S,k={};!(_=v.check())&&(k.args=null,m.read(k));){var E=k.args,T=k.fn;switch(0|T){case r.OPS.paintXObject:var B=E[0].name;if(B){const e=d.getByName(B);if(e){o.addOp(e.fn,e.args),E=null;continue}}return void y(new Promise(function(e,n){if(!B)throw new r.FormatError("XObject must be referred to by name.");let s=f.getRaw(B);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(T,E),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 A.save(),void l.buildFormXObject(i,s,null,o,t,A.state.clone()).then(function(){A.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:B,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=E[1];return void y(l.handleSetFont(i,E,null,o,t,A.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=E[0].cacheKey;if(M){const e=d.getByName(M);if(e){o.addOp(e.fn,e.args),E=null;continue}}return void y(l.buildPaintImageXObject({resources:i,image:E[0],isInline:!0,operatorList:o,cacheKey:M,localImageCache:d}));case r.OPS.showText:if(!A.state.font){l.ensureStateFont(A.state);continue}E[0]=l.handleText(E[0],A.state);break;case r.OPS.showSpacedText:if(!A.state.font){l.ensureStateFont(A.state);continue}var P=E[0],D=[],F=P.length,O=A.state;for(w=0;w<F;++w){var L=P[w];(0,r.isString)(L)?Array.prototype.push.apply(D,l.handleText(L,O)):(0,r.isNum)(L)&&D.push(L)}E[0]=D,T=r.OPS.showText;break;case r.OPS.nextLineShowText:if(!A.state.font){l.ensureStateFont(A.state);continue}o.addOp(r.OPS.nextLine),E[0]=l.handleText(E[0],A.state),T=r.OPS.showText;break;case r.OPS.nextLineSetSpacingShowText:if(!A.state.font){l.ensureStateFont(A.state);continue}o.addOp(r.OPS.nextLine),o.addOp(r.OPS.setWordSpacing,[E.shift()]),o.addOp(r.OPS.setCharSpacing,[E.shift()]),E[0]=l.handleText(E[0],A.state),T=r.OPS.showText;break;case r.OPS.setTextRenderingMode:A.state.textRenderingMode=E[0];break;case r.OPS.setFillColorSpace:return void y(l.parseColorSpace({cs:E[0],resources:i}).then(function(e){e&&(A.state.fillColorSpace=e)}));case r.OPS.setStrokeColorSpace:return void y(l.parseColorSpace({cs:E[0],resources:i}).then(function(e){e&&(A.state.strokeColorSpace=e)}));case r.OPS.setFillColor:S=A.state.fillColorSpace,E=S.getRgb(E,0),T=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeColor:S=A.state.strokeColorSpace,E=S.getRgb(E,0),T=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillGray:A.state.fillColorSpace=p.ColorSpace.singletons.gray,E=p.ColorSpace.singletons.gray.getRgb(E,0),T=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeGray:A.state.strokeColorSpace=p.ColorSpace.singletons.gray,E=p.ColorSpace.singletons.gray.getRgb(E,0),T=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillCMYKColor:A.state.fillColorSpace=p.ColorSpace.singletons.cmyk,E=p.ColorSpace.singletons.cmyk.getRgb(E,0),T=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeCMYKColor:A.state.strokeColorSpace=p.ColorSpace.singletons.cmyk,E=p.ColorSpace.singletons.cmyk.getRgb(E,0),T=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillRGBColor:A.state.fillColorSpace=p.ColorSpace.singletons.rgb,E=p.ColorSpace.singletons.rgb.getRgb(E,0);break;case r.OPS.setStrokeRGBColor:A.state.strokeColorSpace=p.ColorSpace.singletons.rgb,E=p.ColorSpace.singletons.rgb.getRgb(E,0);break;case r.OPS.setFillColorN:if("Pattern"===(S=A.state.fillColorSpace).name)return void y(l.handleColorN(o,r.OPS.setFillColorN,E,S,g,i,t));E=S.getRgb(E,0),T=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeColorN:if("Pattern"===(S=A.state.strokeColorSpace).name)return void y(l.handleColorN(o,r.OPS.setStrokeColorN,E,S,g,i,t));E=S.getRgb(E,0),T=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(E[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();E=[U],T=r.OPS.shadingFill;break;case r.OPS.setGState:var j=E[0],H=i.get("ExtGState");if(!(0,a.isDict)(H)||!H.has(j.name))break;var z=H.get(j.name);return void y(l.setGState(i,z,o,t,A));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,T,E,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!==E){for(w=0,C=E.length;w<C&&!(E[w]instanceof a.Dict);w++);if(w<C){(0,r.warn)("getOperatorList - ignoring operator: "+T);continue}}}o.addOp(T,E)}_?y(x):(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)},g={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},A=.3,m=1.5,v=4,b=this,_=this.xref,w=null;const C=new y.LocalImageCache;var E,B=new T(e,_,o);function I(){if(g.initialized)return g;var e=E.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}),g.fontName=e.loadedName;var t=[E.fontSize*E.textHScale,0,0,E.fontSize,0,E.textRise];if(e.isType3Font&&E.fontSize<=1&&!(0,r.isArrayEqual)(E.fontMatrix,r.FONT_IDENTITY_MATRIX)){const n=e.bbox[3]-e.bbox[1];n>0&&(t[3]*=n*E.fontMatrix[3])}var n=r.Util.transform(E.ctm,r.Util.transform(E.textMatrix,t));g.transform=n,e.vertical?(g.width=Math.sqrt(n[0]*n[0]+n[1]*n[1]),g.height=0,g.vertical=!0):(g.width=0,g.height=Math.sqrt(n[2]*n[2]+n[3]*n[3]),g.vertical=!1);var i=E.textLineMatrix[0],a=E.textLineMatrix[1],o=Math.sqrt(i*i+a*a);i=E.ctm[0],a=E.ctm[1];var s=Math.sqrt(i*i+a*a);g.textAdvanceScale=s*o,g.lastAdvanceWidth=0,g.lastAdvanceHeight=0;var l=e.spaceWidth/1e3*E.fontSize;return l?(g.spaceWidth=l,g.fakeSpaceMin=l*A,g.fakeMultiSpaceMin=l*m,g.fakeMultiSpaceMax=l*v,g.textRunBreakAllowed=!e.isMonospace):(g.spaceWidth=0,g.fakeSpaceMin=1/0,g.fakeMultiSpaceMin=1/0,g.fakeMultiSpaceMax=0,g.textRunBreakAllowed=!1),g.initialized=!0,g}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 P(e,t){return b.loadFont(e,t,i).then(function(e){E.font=e.font,E.fontMatrix=e.font.fontMatrix||r.FONT_IDENTITY_MATRIX})}function D(e){for(var t=E.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=E.charSpacing;if(s.isSpace){var f=E.wordSpacing;d+=f,f>0&&F(f,n.str)}var p=0,g=0;if(t.vertical)i+=g=l*E.fontMatrix[0]*E.fontSize+d;else r+=p=(l*E.fontMatrix[0]*E.fontSize+d)*E.textHScale;E.translateTextMatrix(p,g),n.str.push(u)}return t.vertical?(n.lastAdvanceHeight=i,n.height+=Math.abs(i)):(n.lastAdvanceWidth=r,n.width+=r),n}function F(e,t){if(!(e<g.fakeSpaceMin))if(e<g.fakeMultiSpaceMin)t.push(" ");else for(var n=Math.round(e/g.spaceWidth);n-- >0;)t.push(" ")}function O(){g.initialized&&(g.vertical?g.height*=g.textAdvanceScale:g.width*=g.textAdvanceScale,p.items.push(M(g)),g.initialized=!1,g.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,A={},m=[];!(f=R.check())&&(m.length=0,A.args=m,B.read(A));){E=o.state;var v,y=A.fn;switch(m=A.args,0|y){case r.OPS.setFont:var k=m[0].name,T=m[1];if(E.font&&k===E.fontName&&T===E.fontSize)break;return O(),E.fontName=k,E.fontSize=T,void d(P(k,null));case r.OPS.setTextRise:O(),E.textRise=m[0];break;case r.OPS.setHScale:O(),E.textHScale=m[0]/100;break;case r.OPS.setLeading:O(),E.leading=m[0];break;case r.OPS.moveText:var M=!!E.font&&0===(E.font.vertical?m[0]:m[1]);if(v=m[0]-m[1],l&&M&&g.initialized&&v>0&&v<=g.fakeMultiSpaceMax){E.translateTextLineMatrix(m[0],m[1]),g.width+=m[0]-g.lastAdvanceWidth,g.height+=m[1]-g.lastAdvanceHeight,F(m[0]-g.lastAdvanceWidth-(m[1]-g.lastAdvanceHeight),g.str);break}O(),E.translateTextLineMatrix(m[0],m[1]),E.textMatrix=E.textLineMatrix.slice();break;case r.OPS.setLeadingMoveText:O(),E.leading=-m[1],E.translateTextLineMatrix(m[0],m[1]),E.textMatrix=E.textLineMatrix.slice();break;case r.OPS.nextLine:O(),E.carriageReturn();break;case r.OPS.setTextMatrix:if(v=E.calcTextLineMatrixAdvance(m[0],m[1],m[2],m[3],m[4],m[5]),l&&null!==v&&g.initialized&&v.value>0&&v.value<=g.fakeMultiSpaceMax){E.translateTextLineMatrix(v.width,v.height),g.width+=v.width-g.lastAdvanceWidth,g.height+=v.height-g.lastAdvanceHeight,F(v.width-g.lastAdvanceWidth-(v.height-g.lastAdvanceHeight),g.str);break}O(),E.setTextMatrix(m[0],m[1],m[2],m[3],m[4],m[5]),E.setTextLineMatrix(m[0],m[1],m[2],m[3],m[4],m[5]);break;case r.OPS.setCharSpacing:E.charSpacing=m[0];break;case r.OPS.setWordSpacing:E.wordSpacing=m[0];break;case r.OPS.beginText:O(),E.textMatrix=r.IDENTITY_MATRIX.slice(),E.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],j=0,H=U.length;j<H;j++)if("string"==typeof U[j])D(U[j]);else if((0,r.isNum)(U[j])){I(),v=U[j]*E.fontSize/1e3;var z=!1;E.font.vertical?(N=v,E.translateTextMatrix(0,N),(z=g.textRunBreakAllowed&&v>g.fakeMultiSpaceMax)||(g.height+=N)):(N=(v=-v)*E.textHScale,E.translateTextMatrix(N,0),(z=g.textRunBreakAllowed&&v>g.fakeMultiSpaceMax)||(g.width+=N)),z?O():v>0&&F(v,g.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(),E.carriageReturn(),D(m[0]);break;case r.OPS.nextLineSetSpacingShowText:if(!o.state.font){b.ensureStateFont(o.state);continue}O(),E.wordSpacing=m[0],E.charSpacing=m[1],E.carriageReturn(),D(m[2]);break;case r.OPS.paintXObject:O(),w||(w=i.get("XObject")||a.Dict.empty);var Q=m[0].name;if(Q&&C.getByName(Q))break;return void d(new Promise(function(e,n){if(!Q)throw new r.FormatError("XObject must be referred to by name.");let c=w.getRaw(Q);if(c instanceof a.Ref){if(C.getByRef(c))return void e();c=_.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(Q,c.dict.objId,!0),void e();const f=o.state.clone(),p=new S(f),g=c.dict.getArray("Matrix");Array.isArray(g)&&6===g.length&&p.transform(g),L();const A={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:A,seenStyles:h}).then(function(){A.enqueueInvoked||C.set(Q,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 q=G.get(V.name);if(!(0,a.isDict)(q))break;var W=q.get("Font");if(W)return E.fontName=null,E.fontSize=W[1],void d(P(null,W[0]))}if(p.items.length>=u.desiredSize){f=!0;break}}f?d(x):(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=[],g=null;if(e.has("Encoding")){if(f=e.get("Encoding"),(0,a.isDict)(f)){if(g=f.get("BaseEncoding"),g=(0,a.isName)(g)?g.name:null,f.has("Differences"))for(var A=f.get("Differences"),m=0,v=0,y=A.length;v<y;v++){var b=i.fetchIfRef(A[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");g=f.name}"MacRomanEncoding"!==g&&"MacExpertEncoding"!==g&&"WinAnsiEncoding"!==g&&(g=null)}if(g)n.defaultEncoding=(0,s.getEncoding)(g).slice();else{var _=!!(n.flags&o.FontFlags.Symbolic),w=!!(n.flags&o.FontFlags.Nonsymbolic);f=s.StandardEncoding,"TrueType"!==n.type||w||(f=s.WinAnsiEncoding),_&&(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=g,n.hasEncoding=!!g||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,A.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=[],g=0,A=[];if(n.composite){if(g=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*g,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++)A[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++)A[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]);g=parseFloat(t.get("MissingWidth"))||0}else{var _=e.get("BaseFont");if((0,a.isName)(_)){var w=this.getBaseFontMetrics(_.name);p=this.buildCharCodeToWidth(w.widths,n),g=w.defaultWidth}}}var x=!0,C=g;for(var S in p){var k=p[S];if(k)if(C){if(C!==k){x=!1;break}}else C=k}x&&(n.flags|=o.FontFlags.FixedPitch),n.defaultWidth=g,n.widths=p,n.defaultVMetrics=r,n.vmetrics=A},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 g=p.length,A=new Array(g),m=0;m<g;m++){var v=p[m];(0,a.isName)(v)?A[m]=v.name:((0,r.isNum)(v)||(0,a.isRef)(v))&&(A[m]=v.toString())}c.update(A.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 _=y.str||y;i=_.buffer?new Uint8Array(_.buffer.buffer,0,_.bufferLength):new Uint8Array(_.bytes.buffer,_.start,_.end-_.start),c.update(i)}else(0,a.isName)(y)&&c.update(y.name);var w=e.get("Widths")||t.get("Widths");w&&(i=new Uint8Array(new Uint32Array(w).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 g=s.get("BaseFont");if(!(0,a.isName)(g))throw new r.FormatError("Base font is not specified");g=g.name.replace(/[,_]/g,"-");var A=this.getBaseFontMetrics(g),m=g.split("-")[0],v=(this.isSerifFont(m)?o.FontFlags.Serif:0)|(A.monospace?o.FontFlags.FixedPitch:0)|((0,u.getSymbolsFonts)()[m]?o.FontFlags.Symbolic:o.FontFlags.Nonsymbolic);t={type:h,name:g,widths:A.widths,defaultWidth:A.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(A.widths,t);return new o.Font(g,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 _=y&&y.name,w=b&&b.name;_!==w&&((0,r.info)(`The FontDescriptor's FontName is "${_}" but `+`should be the same as the Font's BaseFont "${w}".`),_&&w&&w.startsWith(_)&&(y=b))}if(y=y||b,!(0,a.isName)(y))throw new r.FormatError("invalid font name");var x,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"),E=C.dict.get("Length2"),T=C.dict.get("Length3")}if(t={type:h,name:y.name,subtype:S,file:C,length1:k,length2:E,length3:T,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 B=n.get("Encoding");(0,a.isName)(B)&&(t.cidEncoding=B.name),x=i.CMapFactory.create({encoding:B,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){t.cMap=e,t.vertical=t.cMap.vertical})}else x=Promise.resolve(void 0);return x.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=x;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;x.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 _.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 _.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}(),E=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}(),T=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,g=null,A=new Uint8Array(a),m=new Uint8Array(a),v=new Uint8Array(a),y=new Uint8Array(a),b=new Uint8Array(a);(p=h.readByte())>=0;){var _=p>>5;if(7!==_){var w=!!(16&p),x=15&p;if(x+1>a)throw new Error("processBinaryCMap: Invalid dataSize.");var C,S=h.readNumber();switch(_){case 0:for(h.readHex(A,x),h.readHexNumber(m,x),n(m,A,x),o.addCodespaceRange(x+1,e(A,x),e(m,x)),C=1;C<S;C++)i(m,x),h.readHexNumber(A,x),n(A,m,x),h.readHexNumber(m,x),n(m,A,x),o.addCodespaceRange(x+1,e(A,x),e(m,x));break;case 1:for(h.readHex(A,x),h.readHexNumber(m,x),n(m,A,x),h.readNumber(),C=1;C<S;C++)i(m,x),h.readHexNumber(A,x),n(A,m,x),h.readHexNumber(m,x),n(m,A,x),h.readNumber();break;case 2:for(h.readHex(v,x),f=h.readNumber(),o.mapOne(e(v,x),f),C=1;C<S;C++)i(v,x),w||(h.readHexNumber(b,x),n(v,b,x)),f=h.readSigned()+(f+1),o.mapOne(e(v,x),f);break;case 3:for(h.readHex(A,x),h.readHexNumber(m,x),n(m,A,x),f=h.readNumber(),o.mapCidRange(e(A,x),e(m,x),f),C=1;C<S;C++)i(m,x),w?A.set(m):(h.readHexNumber(A,x),n(A,m,x)),h.readHexNumber(m,x),n(m,A,x),f=h.readNumber(),o.mapCidRange(e(A,x),e(m,x),f);break;case 4:for(h.readHex(v,1),h.readHex(y,x),o.mapOne(e(v,1),t(y,x)),C=1;C<S;C++)i(v,1),w||(h.readHexNumber(b,1),n(v,b,1)),i(y,x),h.readHexSigned(b,x),n(y,b,x),o.mapOne(e(v,1),t(y,x));break;case 5:for(h.readHex(A,1),h.readHexNumber(m,1),n(m,A,1),h.readHex(y,x),o.mapBfRange(e(A,1),e(m,1),t(y,x)),C=1;C<S;C++)i(m,1),w?A.set(m):(h.readHexNumber(A,1),n(A,m,1)),h.readHexNumber(m,1),n(m,A,1),h.readHex(y,x),o.mapBfRange(e(A,1),e(m,1),t(y,x));break;default:return void u(new Error("processBinaryCMap: Unknown type: "+_))}}else switch(31&p){case 0:h.readString();break;case 1:g=h.readString()}}c(g?l(g):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 g(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 A(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":A(e,t);break;case"beginbfchar":c(e,t);break;case"begincidchar":p(e,t);break;case"beginbfrange":f(e,t);break;case"begincidrange":g(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 _(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 _(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 _(t.name,n);if((0,i.isStream)(t))return y(new u,new a.Lexer(t),n,r).then(function(e){return e.isIdentityCMap?_(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=w,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 g=1e3,A=!0;t.SEAC_ANALYSIS_ENABLED=A;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 _(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 w(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 x(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 E=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,g=12+16*p,A=[g];for(l=0;l<p;l++){g+=((d=o[s[l]]).length+3&-4)>>>0,A.push(g)}var m=new Uint8Array(g);for(l=0;l<p;l++)d=o[s[l]],n(m,A[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),g=12,l=0;l<p;l++){f=s[l],m[g]=255&f.charCodeAt(0),m[g+1]=255&f.charCodeAt(1),m[g+2]=255&f.charCodeAt(2),m[g+3]=255&f.charCodeAt(3);var y=0;for(u=A[l],h=A[l+1];u<h;u+=4){y=y+(0,c.readUint32)(m,u)>>>0}t(m,g+4,y),t(m,g+8,A[l]),t(m,g+12,o[f].length),g+=16}return m},addTable:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}},i}(),T=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/g,this.descent=n.descent/g,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 P(t,n):new M(e,t,n);_(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&&(_(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=w(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 T(e){return String.fromCharCode(e>>8&255,255&e)}function B(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 F(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"+T(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,g=s[n][1]<65535?1:0,A=u+g,m=E.getSearchParams(A,2),v="",y="",b="",_="",w="",x=0;for(n=0,i=u;n<i;n++){d=(h=s[n])[0],f=h[1],v+=T(d),y+=T(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+=T(p[0]-d&65535),_+=T(0)}else{var S=2*(A-n)+2*x;for(x+=f-d+1,b+=T(0),_+=T(S),a=0,o=p.length;a<o;++a)w+=T(p[a])}}g>0&&(y+="ÿÿ",v+="ÿÿ",b+="\0",_+="\0\0");var k="\0\0"+T(2*A)+T(m.range)+T(m.entry)+T(m.rangeShift)+y+"\0\0"+v+b+_+w,B="",I="";if(l>1){for(c+="\0\0\n"+(0,r.string32)(4+8*l+4+k.length),B="",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,B+=(0,r.string32)(d)+(0,r.string32)(f)+(0,r.string32)(M),d=f+1,M=p[a]);B+=(0,r.string32)(d)+(0,r.string32)(h[1])+(0,r.string32)(M)}I="\0\f\0\0"+(0,r.string32)(B.length+16)+"\0\0\0\0"+(0,r.string32)(B.length/12)}return c+"\0"+T(k.length+4)+k+I+B}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],A=e.ascentScaled?1:p/g,m=n.ascent||Math.round(A*(e.ascent||f[3])),v=n.descent||Math.round(A*(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*"+T(e.italicAngle?1:0)+T(c||e.firstChar)+T(u||e.lastChar)+T(m)+T(v)+"\0d"+T(y)+T(b)+"\0\0\0\0\0\0\0\0"+T(e.xHeight)+T(e.capHeight)+T(0)+T(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(T(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,g="\0\0"+T(p)+T(12*p+6),A=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],g+=h[n]+d[n]+f[n]+T(i)+T(o.length)+T(A),A+=o.length}}return g+=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,A);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=w(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 g(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,g=0;for(d=0;d<h;d++){g=(u[p]<<8|u[p+1])+1,p+=2}var A=p,m=u[p]<<8|u[p+1];o.sizeOfInstructions=m;var v=p+=2+m,y=0;for(d=0;d<g;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 _=u[p++];d+=_,y+=_*n}}if(0===y)return o;var w=p+y;return w>u.length?o:!a&&m>0?(r.set(u.subarray(0,A),i),r.set([0,0],i+A),r.set(u.subarray(v,w),i+A+2),w-=m,u.length-w>3&&(w=w+3&-4),o.length=w,o):u.length-w>3?(w=w+3&-4,r.set(u.subarray(0,w),i),o.length=w,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 g=f.name;if(f.encoding){for(var A="",m=0,v=f.length;m<v;m+=2)A+=String.fromCharCode(t.getUint16());i[1][g]=A}else i[0][g]=(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=[],g=t.tooComplexToFollowFunctions,A=!1,m=0,y=0,b=l.length;c<b;){var _=l[c++];if(64===_)if(i=l[c++],A||y)c+=i;else for(n=0;n<i;n++)d.push(l[c++]);else if(65===_)if(i=l[c++],A||y)c+=2*i;else for(n=0;n<i;n++)a=l[c++],d.push(a<<8|l[c++]);else if(176==(248&_))if(i=_-176+1,A||y)c+=i;else for(n=0;n<i;n++)d.push(l[c++]);else if(184==(248&_))if(i=_-184+1,A||y)c+=2*i;else for(n=0;n<i;n++)a=l[c++],d.push(a<<8|l[c++]);else if(43!==_||g)if(44!==_||g){if(45===_)if(A)A=!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===_)(A||y)&&((0,r.warn)("TT: nested IDEFs not allowed"),g=!0),A=!0,h=c;else if(88===_)++m;else if(27===_)y=m;else if(89===_)y===m&&(y=0),--m;else if(28===_&&!A&&!y){var w=d[d.length-1];w>0&&(c+=w-1)}}else(A||y)&&((0,r.warn)("TT: nested FDEFs not allowed"),g=!0),A=!0,h=c,o=d.pop(),t.functionsDefined[o]={data:l,i:c};else if(!A&&!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(!A&&!y){let e=0;for(_<=142?e=v[_]:_>=192&&_<=223?e=-1:_>=224&&(e=-2),_>=113&&_<=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=g;var x=[l];c>l.length&&x.push(new Uint8Array(c-l.length)),h>u&&((0,r.warn)("TT: complementing a missing function tail"),x.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,x)}let w,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);w=e.header,C=e.tables}else w=p(t),C=c(t,w.numTables);var T=!C["CFF "];if(T){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"===w.version&&!t||!C.head||!C.hhea||!C.maxp||!C.post)return k=new d.Stream(C["CFF "].data),S=new P(k,s),_(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 B=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 j=0,H=0;B>=65536&&C.maxp.length>=22&&(t.pos+=8,t.getUint16()>2&&(C.maxp.data[14]=0,C.maxp.data[15]=2),t.pos+=4,j=t.getUint16(),t.pos+=4,H=t.getUint16());C.maxp.data[4]=D>>8,C.maxp.data[5]=255&D;var z=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 "],j);if(z||(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,T?C.loca.length:0);var Q=Object.create(null);if(T){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,A=t.data,m=A.length,v=new Uint8Array(m),y=l(d,0),b=0,_=Object.create(null);for(c(d,0,b),f=0,p=s;f<n;f++,p+=s){var w=l(d,p);0===w&&(w=y),w>m&&(m+3&-4)===w&&(w=m),w>m&&(y=w);var x=g(A,y,w,v,b,i),C=x.length;0===C&&(_[f]=!0),x.sizeOfInstructions>o&&(o=x.sizeOfInstructions),c(d,p,b+=C),y=w}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:_,maxSizeOfInstructions:o}}(C.loca,C.glyf,M,V,z,U,H);Q=G.missingGlyphs,B>=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 q={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=q.ascent/q.unitsPerEm,this.descent=q.descent/q.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=[],g=[];t.pos<s;){var A=t.getByte();for(g.length=A,c=0;c<A;++c)g[c]=String.fromCharCode(t.getByte());p.push(g.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 W=[];function $(e){return!Q[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&&$(n)&&(W[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 g=t.getUint16();t.skip(4);var A,m,v=!1,y=[];if(0===g){for(A=0;A<256;A++){var b=t.getByte();b&&y.push({charCode:A,glyphId:b})}v=!0}else if(4===g){var _=t.getUint16()>>1;t.skip(6);var w,x=[];for(w=0;w<_;w++)x.push({end:t.getUint16()});for(t.skip(2),w=0;w<_;w++)x[w].start=t.getUint16();for(w=0;w<_;w++)x[w].delta=t.getUint16();var C=0;for(w=0;w<_;w++){a=x[w];var S=t.getUint16();if(S){var k=(S>>1)-(_-w);a.offsetIndex=k,C=Math.max(C,k+a.end-a.start+1)}else a.offsetIndex=-1}var E=[];for(A=0;A<C;A++)E.push(t.getUint16());for(w=0;w<_;w++){o=(a=x[w]).start;var T=a.end,B=a.delta;for(k=a.offsetIndex,A=o;A<=T;A++)65535!==A&&(m=(m=k<0?A:E[k+A-o])+B&65535,y.push({charCode:A,glyphId:m}))}}else{if(6!==g)return(0,r.warn)("cmap table has unsupported format: "+g),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var I=t.getUint16(),M=t.getUint16();for(A=0;A<M;A++){m=t.getUint16();var P=I+A;y.push({charCode:P,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),Z=X.platformId,J=X.encodingId,ee=X.mappings,te=ee.length;if(s.hasEncoding&&(3===Z&&1===J||1===Z&&0===J)||-1===Z&&-1===J&&(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=x(ie,re),3===Z&&1===J?oe=re[ae]:1===Z&&0===J&&(oe=o.MacRomanEncoding.indexOf(ae));var se=!1;for(let t=0;t<te;++t)if(ee[t].charCode===oe){W[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&&$(le)&&(W[e]=le)}}}}else if(0===Z&&0===J)for(let e=0;e<te;++e)W[ee[e].charCode]=ee[e].glyphId;else for(let e=0;e<te;++e){let t=ee[e].charCode;3===Z&&t>=61440&&t<=61695&&(t&=255),W[t]=ee[e].glyphId}}0===W.length&&(W[0]=0);let ce=D-1;U||(ce=0);var ue=F(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,q)}),!T)try{k=new d.Stream(C["CFF "].data),(S=new i.CFFParser(k,s,A).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 E(w.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 P&&(i=t.numGlyphs-1);var s=t.getGlyphMapping(n),c=F(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(A&&f&&f.length){var p=n.fontMatrix||r.FONT_IDENTITY_MATRIX,g=t.getCharset(),m=Object.create(null);for(var v in f){var y=f[v|=0],b=o.StandardEncoding[y[2]],_=o.StandardEncoding[y[3]],w=g.indexOf(b),x=g.indexOf(_);if(!(w<0||x<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,w),U=d(M,x);m[I]={baseFontCharCode:D,accentFontCharCode:U,accentOffset:C}}}}n.seacMap=m}var j=1/(n.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],H=new E("OTTO");return H.addTable("CFF ",t.data),H.addTable("OS/2",L(n,c.charCodeToGlyphId)),H.addTable("cmap",O(c.charCodeToGlyphId,u)),H.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+B(j)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+B(n.descent)+"ÿ"+B(n.ascent)+T(n.italicAngle?2:0)+"\0\0\0\0\0\0\0"),H.addTable("hhea","\0\0\0"+B(n.ascent)+B(n.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+B(n.capHeight)+B(Math.tan(n.italicAngle)*n.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+T(u)),H.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+=T(i)+T(0)}return r}()),H.addTable("maxp","\0\0P\0"+T(u)),H.addTable("name",N(e)),H.addTable("post",R(n)),H.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=T;var B=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=x(d,u);f!==d&&(r=n.indexOf(f))}l[i]=r>=0?r:0}return l}t.ErrorFont=B;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,A).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,A).extractFontProgram(i);for(const e in p.properties)i[e]=p.properties[e];var g=p.charstrings,m=this.getType2Charstrings(g),v=this.getType2Subrs(p.subrs);this.charstrings=g,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 g=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(c=0,u=g.length;c<u;c++){var A=g[c];if(A in a.privateData){var m=a.privateData[A];if(Array.isArray(m))for(var v=m.length-1;v>0;v--)m[v]-=m[v-1];p.setByName(A,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}(),P=function(){function e(e,t){this.properties=t;var n=new i.CFFParser(e,t,A);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,g,A=c.getByName("FontBBox");if(A&&(e.ascent=Math.max(A[3],A[1]),e.descent=Math.min(A[1],A[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),_=this.createDict(f,this.parseDict(b),t.strings);this.parsePrivateDict(_),t.fdArray.push(_)}g=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),g=this.parseEncoding(c.getByName("Encoding"),e,t.strings,p.charset);t.charset=p,t.encoding=g;var w=this.parseCharStrings({charStrings:h,localSubrIndex:c.privateDict.subrsIndex,globalSubrIndex:o.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:c.privateDict});return t.charStrings=w.charStrings,t.seacs=w.seacs,t.widths=w.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 g=32768;p.count<1240?g=107:p.count<33900&&(g=1131);var A=l[--s]+g;if(A<0||A>=p.count||isNaN(A))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(A),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,g=o;if(i&&a.length){var A=i.getFDIndex(u);-1===A&&((0,r.warn)("Glyph index is not in fd select."),f=!1),A>=a.length&&((0,r.warn)("Invalid fd index for glyph index."),f=!1),f&&(p=(g=a[A].privateDict).subrsIndex)}else t&&(p=t);if(f&&(f=this.parseCharString(d,h,p,n)),null!==d.width){const e=g.getByName("nominalWidthX");l[u]=e+d.width}else{const e=g.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 A(!0,g.ISO_ADOBE,i.ISOAdobeCharset);if(1===e)return new A(!0,g.EXPERT,i.ExpertCharset);if(2===e)return new A(!0,g.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 A(!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 g=e;switch(127&(o=u[e++])){case 0:var A=u[e++];for(s=1;s<=A;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++],_=u[e++],w=b;w<=b+_;w++)c[w]=y++;break;default:throw new r.FormatError(`Unknown encoding format: ${o} in CFF`)}var x=e;128&o&&(u[g]&=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(g,x)}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 g={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},A=function(){return function(e,t,n,r){this.predefined=e,this.format=t,this.charset=n,this.raw=r}}();t.CFFCharset=A;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 g=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);h.setEntryLocation("charset",[t.length],t),t.add(g);var A=this.compileCharStrings(e.charStrings);if(h.setEntryLocation("CharStrings",[t.length],t),t.add(A),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,g=s.length;p<g;++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 g=e(n,i+c+12);for(s=i+c+16,o=[],l=0;l<g;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,g,A,m,v=new Uint8Array(i.data),y=t(v,4),b=0,_=12;b<y;b++,_+=16){var w=(0,r.bytesToString)(v.subarray(_,_+4)),x=e(v,_+8),C=e(v,_+12);switch(w){case"cmap":h=l(v,x);break;case"glyf":f=v.subarray(x,x+C);break;case"loca":p=v.subarray(x,x+C);break;case"head":m=t(v,x+18),A=t(v,x+50);break;case"CFF ":g=c(v,x,x+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 g=1,A=1,m=0,v=0;8&s?(g=A=(t[l]<<24|t[l+1]<<16)/1073741824,l+=2):64&s?(g=(t[l]<<24|t[l+1]<<16)/1073741824,A=(t[l+2]<<24|t[l+3]<<16)/1073741824,l+=4):128&s&&(g=(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,A=(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:[g,m,v,A,u,h]}),e(y,n,r),n.push({cmd:"restore"}))}while(32&s);else{var b,_,w=[];for(b=0;b<c;b++)w.push(t[l]<<8|t[l+1]),l+=2;l+=2+(t[l]<<8|t[l+1]);for(var x=w[w.length-1]+1,C=[];C.length<x;){var S=1;for(8&(s=t[l++])&&(S+=t[l++]);S-- >0;)C.push({flags:s})}for(b=0;b<x;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<x;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 E=w[l],T=C.slice(k,E+1);if(1&T[0].flags)T.push(T[0]);else if(1&T[T.length-1].flags)T.unshift(T[T.length-1]);else{var B={flags:1,x:(T[0].x+T[T.length-1].x)/2,y:(T[0].y+T[T.length-1].y)/2};T.unshift(B),T.push(B)}for(i(T[0].x,T[0].y),b=1,_=T.length;b<_;b++)1&T[b].flags?a(T[b].x,T[b].y):1&T[b+1].flags?(o(T[b].x,T[b].y,T[b+1].x,T[b+1].y),b++):o(T[b].x,T[b].y,(T[b].x+T[b+1].x)/2,(T[b].y+T[b+1].y)/2);k=E+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,A),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,g=0;!function t(A){for(var m=0;m<A.length;){var v,y,b,_,w,x,C,S,k=!1,E=A[m++];switch(E){case 1:case 3:g+=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(),_=b+d.shift(),f=y+d.shift(),p=_+d.shift(),h(v,b,y,_,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(E=A[m++]){case 34:y=(v=f+d.shift())+d.shift(),w=p+d.shift(),f=y+d.shift(),h(v,p,y,w,f,w),y=(v=f+d.shift())+d.shift(),f=y+d.shift(),h(v,w,y,p,f,p);break;case 35:v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),_=b+d.shift(),f=y+d.shift(),p=_+d.shift(),h(v,b,y,_,f,p),v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),_=b+d.shift(),f=y+d.shift(),p=_+d.shift(),h(v,b,y,_,f,p),d.pop();break;case 36:h(v=f+d.shift(),w=p+d.shift(),y=v+d.shift(),x=w+d.shift(),f=y+d.shift(),x),h(v=f+d.shift(),x,y=v+d.shift(),x+d.shift(),f=y+d.shift(),p);break;case 37:var T=f,B=p;v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),_=b+d.shift(),f=y+d.shift(),p=_+d.shift(),h(v,b,y,_,f,p),v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),_=b+d.shift(),f=y,p=_,Math.abs(f-T)>Math.abs(p-B)?f+=d.shift():p+=d.shift(),h(v,b,y,_,f,p);break;default:throw new r.FormatError(`unknown operator: 12 ${E}`)}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 P=u(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[I]]));e(a.glyphs[P.glyphId],i,a,P.glyphId),i.push({cmd:"restore"}),P=u(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[M]])),e(a.glyphs[P.glyphId],i,a,P.glyphId)}return;case 18:g+=d.length>>1,k=!0;break;case 19:case 20:m+=(g+=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:g+=d.length>>1,k=!0;break;case 24:for(;d.length>2;)v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),_=b+d.shift(),f=y+d.shift(),p=_+d.shift(),h(v,b,y,_,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(),_=b+d.shift(),f=y+d.shift(),p=_+d.shift(),h(v,b,y,_,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(),_=b+d.shift(),f=y,p=_+d.shift(),h(v,b,y,_,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(),_=b+d.shift(),f=y+d.shift(),p=_);break;case 28:d.push((A[m]<<24|A[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(),_=b+d.shift(),f=y+d.shift(),p=_+(1===d.length?d.shift():0),h(v,b,y,_,f,p),0!==d.length);)v=f+d.shift(),b=p,y=v+d.shift(),_=b+d.shift(),p=_+d.shift(),h(v,b,y,_,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(),_=b+d.shift(),p=_+d.shift(),h(v,b,y,_,f=y+(1===d.length?d.shift():0),p),0!==d.length);)v=f,b=p+d.shift(),y=v+d.shift(),_=b+d.shift(),f=y+d.shift(),p=_+(1===d.length?d.shift():0),h(v,b,y,_,f,p);break;default:if(E<32)throw new r.FormatError(`unknown operator: ${E}`);E<247?d.push(E-139):E<251?d.push(256*(E-247)+A[m++]+108):E<255?d.push(256*-(E-251)-A[m++]-108):(d.push((A[m]<<24|A[m+1]<<16|A[m+2]<<8|A[m+3])/65536),m+=4)}k&&(d.length=0)}}(t)}(e,t,this,i)}}(g,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 g,A,m,v=d.length,y=!1,b=0;b<v;b++){var _=d[b];if(_<32){switch(12===_&&(_=(_<<8)+d[++b]),_){case 1:case 3:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){y=!0;break}var w=this.stack.pop();this.stack.push(0,w);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}g=this.stack.pop(),A=this.stack.pop(),this.lsb=A,this.width=g,this.stack.push(g,A),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(),g=this.stack.pop();var x=this.stack.pop();A=this.stack.pop(),this.lsb=A,this.width=g,this.stack.push(g,A,x),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 E=this.stack.splice(this.stack.length-17,17);this.stack.push(E[2]+E[0],E[3]+E[1],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14]),y=this.executeCommand(13,a,!0),this.flexing=!1,this.stack.push(E[15],E[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 "'+_+'"')}if(y)break}else _<=246?_-=139:_=_<=250?256*(_-247)+d[++b]+108:_<=254?-256*(_-251)-d[++b]-108:(255&d[++b])<<24|(255&d[++b])<<16|(255&d[++b])<<8|(255&d[++b])<<0,this.stack.push(_)}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 g=new s,A=g.convert(u,n,this.seacAnalysisEnabled),m=g.output;A&&(m=[14]);const t={glyphName:d,charstring:m,width:g.width,lsb:g.lsb,seac:g.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]=g.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,g=!1;if(e.has("Extend")){var A=e.getArray("Extend");p=A[0],g=A[1]}if(!(this.shadingType!==s.RADIAL||p&&g)){var m=this.coordsArr[0],v=this.coordsArr[1],y=this.coordsArr[2],b=this.coordsArr[3],_=this.coordsArr[4],w=this.coordsArr[5],x=Math.sqrt((m-b)*(m-b)+(v-_)*(v-_));y<=w+x&&w<=y+x&&(0,r.warn)("Unsupported radial gradient.")}this.extendStart=p,this.extendEnd=g;var C=e.get("Function"),S=o.createFromArray(C);const k=(d-h)/10;var E=this.colorStops=[];if(h>=d||k<=0)(0,r.info)("Bad shading domain.");else{var T,B=new Float32Array(l.numComps),I=new Float32Array(1);for(let e=0;e<=10;e++){I[0]=h+e*k,S(I,0,B,0),T=l.getRgb(B,0);var M=r.Util.makeCssRgb(T[0],T[1],T[2]);E.push([e/10,M])}var P="transparent";e.has("Background")&&(T=l.getRgb(e.get("Background"),0),P=r.Util.makeCssRgb(T[0],T[1],T[2])),p||(E.unshift([0,P]),E[1][0]+=c.SMALL_NUMBER),g||(E[E.length-1][0]-=c.SMALL_NUMBER,E.push([1,P])),this.colorStops=E}}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]),g=Math.max(s[u[0]][1],s[u[3]][1],s[u[12]][1],s[u[15]][1]),A=Math.ceil((p-d)*o/(e.bounds[2]-e.bounds[0]));A=Math.max(t,Math.min(n,A));var m=Math.ceil((g-f)*o/(e.bounds[3]-e.bounds[1]));m=Math.max(t,Math.min(n,m));for(var v=A+1,y=new Int32Array((m+1)*v),b=new Int32Array((m+1)*v),_=0,w=new Uint8Array(3),x=new Uint8Array(3),C=c[h[0]],S=c[h[1]],k=c[h[2]],E=c[h[3]],T=l(m),B=l(A),I=0;I<=m;I++){w[0]=(C[0]*(m-I)+k[0]*I)/m|0,w[1]=(C[1]*(m-I)+k[1]*I)/m|0,w[2]=(C[2]*(m-I)+k[2]*I)/m|0,x[0]=(S[0]*(m-I)+E[0]*I)/m|0,x[1]=(S[1]*(m-I)+E[1]*I)/m|0,x[2]=(S[2]*(m-I)+E[2]*I)/m|0;for(var M=0;M<=A;M++,_++)if(0!==I&&I!==m||0!==M&&M!==A){for(var P=0,D=0,F=0,O=0;O<=3;O++)for(var L=0;L<=3;L++,F++){var R=T[I][O]*B[M][L];P+=s[u[F]][0]*R,D+=s[u[F]][1]*R}y[_]=s.length,s.push([P,D]),b[_]=c.length;var N=new Uint8Array(3);N[0]=(w[0]*(A-M)+x[0]*M)/A|0,N[1]=(w[1]*(A-M)+x[1]*M)/A|0,N[2]=(w[2]*(A-M)+x[2]*M)/A|0,c.push(N)}}y[0]=u[0],b[0]=h[0],y[A]=u[3],b[A]=h[1],y[v*m]=u[12],b[v*m]=h[2],y[v*m+A]=u[15],b[v*m+A]=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 g=d.get("Function"),A=g?h.createFromArray(g):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:A,colorSpace:p,numComps:A?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,g=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]=g+1,o[3]=g+2,o[0]=g,o[1]=g+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]=g,o[0]=h,o[1]=g+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]=g,o[0]=h,o[1]=g+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]=g,o[0]=o[1],o[1]=g+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,g=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]=g+1,o[3]=g+2,o[0]=g,o[1]=g+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]=g,o[0]=h,o[1]=g+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]=g,o[0]=h,o[1]=g+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]=g,o[0]=o[1],o[1]=g+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,_=this.figures.length;b<_;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,g=e.length;if(0===g||n)return h(e,p,n);d.length=g,f.length=g;var A,m,v=0;for(A=0;A<g;++A){d[A]=e.charAt(A);var y=e.charCodeAt(A),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[A]=b}if(0===v)return h(e,p=!0);-1===t&&(v/g<.3?(p=!0,t=0):(p=!1,t=1));var _=[];for(A=0;A<g;++A)_[A]=t;var w,x=o(t)?"R":"L",C=x,S=C,k=C;for(A=0;A<g;++A)"NSM"===f[A]?f[A]=k:k=f[A];for(k=C,A=0;A<g;++A)"EN"===(w=f[A])?f[A]="AL"===k?"AN":"EN":"R"!==w&&"L"!==w&&"AL"!==w||(k=w);for(A=0;A<g;++A)"AL"===(w=f[A])&&(f[A]="R");for(A=1;A<g-1;++A)"ES"===f[A]&&"EN"===f[A-1]&&"EN"===f[A+1]&&(f[A]="EN"),"CS"!==f[A]||"EN"!==f[A-1]&&"AN"!==f[A-1]||f[A+1]!==f[A-1]||(f[A]=f[A-1]);for(A=0;A<g;++A)if("EN"===f[A]){var E;for(E=A-1;E>=0&&"ET"===f[E];--E)f[E]="EN";for(E=A+1;E<g&&"ET"===f[E];++E)f[E]="EN"}for(A=0;A<g;++A)"WS"!==(w=f[A])&&"ES"!==w&&"ET"!==w&&"CS"!==w||(f[A]="ON");for(k=C,A=0;A<g;++A)"EN"===(w=f[A])?f[A]="L"===k?"L":"EN":"R"!==w&&"L"!==w||(k=w);for(A=0;A<g;++A)if("ON"===f[A]){var T=l(f,A+1,"ON"),B=C;A>0&&(B=f[A-1]);var I=S;T+1<g&&(I=f[T+1]),"L"!==B&&(B="R"),"L"!==I&&(I="R"),B===I&&c(f,A,T,B),A=T-1}for(A=0;A<g;++A)"ON"===f[A]&&(f[A]=x);for(A=0;A<g;++A)w=f[A],s(_[A])?"R"===w?_[A]+=1:"AN"!==w&&"EN"!==w||(_[A]+=2):"L"!==w&&"AN"!==w&&"EN"!==w||(_[A]+=1);var M,P=-1,D=99;for(A=0,m=_.length;A<m;++A)M=_[A],P<M&&(P=M),D>M&&o(M)&&(D=M);for(M=P;M>=D;--M){var F=-1;for(A=0,m=_.length;A<m;++A)_[A]<M?F>=0&&(u(d,F,A),F=-1):F<0&&(F=A);F>=0&&u(d,F,_.length)}for(A=0,m=d.length;A<m;++A){var O=d[A];"<"!==O&&">"!==O||(d[A]="")}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 g=0;g<c;++g)p.push([0,h[g]-1])}var A=o(i.getArray("Decode"));return[0,c,s,p,A=A?a(A):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],g=n[9],A=1<<l,m=new Float64Array(A),v=new Uint32Array(A);for(s=0;s<A;s++)m[s]=1;var y=p,b=1;for(o=0;o<l;++o){var _=c[o][0],w=c[o][1],x=r(Math.min(Math.max(e[t+o],_),w),_,w,u[o][0],u[o][1]),C=f[o],S=(x=Math.min(Math.max(x,0),C-1))<C-1?Math.floor(x):x-1,k=S+1-x,E=x-S,T=S*y,B=T+y;for(s=0;s<A;s++)s&b?(m[s]*=E,v[s]+=B):(m[s]*=k,v[s]+=T);y*=C,b<<=1}for(s=0;s<p;++s){var I=0;for(o=0;o<A;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,g[s][0]),g[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],g=a[2*u+1];s[0]=d===f?p:p+(c-d)*(g-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 g=d[c];if(void 0===g){var A=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),A[i]=o}f>0&&(f--,d[c]=A),n.set(A,r)}else n.set(g,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,g,A,m,v,y,b=[],_=[],w=r.length>>1,x=i.length>>1,C=0;for(let e=0;e<w;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;g=b.pop(),p=b.pop(),b.push(c(p,g));break;case"cvr":if(b.length<1)return null;break;case"mul":if(b.length<2)return null;g=b.pop(),p=b.pop(),b.push(u(p,g));break;case"sub":if(b.length<2)return null;g=b.pop(),p=b.pop(),b.push(h(p,g));break;case"exch":if(b.length<2)return null;A=b.pop(),m=b.pop(),b.push(A,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"===(A=b[b.length-a-1]).type||"var"===A.type){b.push(A);break}v=new o(C++,A.min,A.max),b[b.length-a-1]=v,b.push(v),_.push(new s(v,A));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"===(A=b[b.length-1]).type||"var"===A.type){b.push(A);break}v=new o(C++,A.min,A.max),b[b.length-1]=v,b.push(v),_.push(new s(v,A));break;case"roll":if(b.length<2)return null;if(g=b.pop(),p=b.pop(),"literal"!==g.type||"literal"!==p.type)return null;if(f=g.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!==x)return null;var S=[];return _.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,g=f&o,A=p&o;for(let e=0;e<i;e++)1&e?h=5*(h=(h^=c=(c=(c=(c=l[e])*f&a|c*g&o)<<15|c>>>17)*p&a|c*A&o)<<13|h>>>19)+3864292196:d=5*(d=(d^=u=(u=(u=(u=l[e])*f&a|u*g&o)<<15|u>>>17)*p&a|u*A&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*g&o)<<15|c>>>17)*p&a|c*A&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,g=new Uint16Array(i),A=n;for(l=0;l<i;l++)g[l]=Math.floor(l*d);for(l=0;l<a;l++)for(u=Math.floor(l*f)*A,c=0;c<i;c++)h=u+g[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 g=new l.JpxImage;g.parseImageProperties(o.stream),o.stream.reset(),o.width=g.width,o.height=g.height,o.bitsPerComponent=g.bitsPerComponent,o.numComps=g.componentsCount;break;case"JBIG2Decode":o.bitsPerComponent=1,o.numComps=1}let A=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!==A||o.height!==m)&&((0,r.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),A=o.width,m=o.height),A<1||m<1)throw new r.FormatError(`Invalid image width: ${A} or height: ${m}`);this.width=A,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 _=0,w=0;_<this.decode.length;_+=2,++w){var x=this.decode[_],C=this.decode[_+1];this.decodeCoefficients[w]=e?(C-x)/b:C-x,this.decodeAddends[w]=e?x:b*x}}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,g,A=0;A<r;A++){for(p=d+(-8&u),g=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<g)for(c=e[o++],f=128;d<g;)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,g=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(g)if(g instanceof n){for(c=g.width,u=g.height,l=new Uint8ClampedArray(c*u),g.numComps=1,g.fillGrayBuffer(l),h=0,d=c*u;h<d;++h)l[h]=255-l[h];c===i&&u===a||(l=t(l,g.bpc,c,u,i,a))}else{if(!Array.isArray(g))throw new r.FormatError("Unknown mask format.");l=new Uint8ClampedArray(i*a);var A=this.numComps;for(h=0,d=i*a;h<d;++h){var m=0,v=h*A;for(f=0;f<A;++f){var y=s[v+f],b=2*f;if(y<g[b]||y>g[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 g=a.data,A=0,m=g.length;A<m;A++)g[A]^=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,_=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,_)):(a.kind=r.ImageKind.RGB_24BPP,a.data=new Uint8ClampedArray(n*i*3),v=0,y=!1),this.needsDecode&&this.decodeBuffer(_),this.colorSpace.fillRgb(a.data,c,u,n,i,b,h,_,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,g=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*g}},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,g;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,g=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,g=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=g}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 g=["rgb(",0,",",0,",",0,")"];class A{static makeCssRgb(e,t,n){return g[1]=e,g[3]=t,g[5]=n,g.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=A.applyTransform(e,t),r=A.applyTransform(e.slice(2,4),t),i=A.applyTransform([e[0],e[3]],t),a=A.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=A.normalizeRect(e),t=A.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=A;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 g=p.task;return u.displayReadyCapability.promise.then(e=>{this.pendingCleanup?f():(this._stats&&this._stats.time("Rendering"),p.initializeGraphics(e),p.operatorListChanged())}).catch(f),g}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 g=[];for(o=0,s=t.length;o<s;o++)g.push(t[o].loadedName);g.push(h);const A=document.createElement("div");for(A.style.visibility="hidden",A.style.width=A.style.height="10px",A.style.position="absolute",A.style.top=A.style.left="0px",o=0,s=g.length;o<s;++o){const e=document.createElement("span");e.textContent="Hi",e.style.fontFamily=g[o],A.appendChild(e)}document.body.appendChild(A),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(A),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),g=0,A=t.data,m=p.data;if(t.kind===r.ImageKind.GRAYSCALE_1BPP){var v=A.byteLength,y=new Uint32Array(m.buffer,0,m.byteLength>>2),b=y.length,_=u+7>>3,w=4294967295,x=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-g,S=0,k=C>_?u:8*C-7,E=-8&k,T=0,B=0;S<E;S+=8)B=A[g++],y[n++]=128&B?w:x,y[n++]=64&B?w:x,y[n++]=32&B?w:x,y[n++]=16&B?w:x,y[n++]=8&B?w:x,y[n++]=4&B?w:x,y[n++]=2&B?w:x,y[n++]=1&B?w:x;for(;S<k;S++)0===T&&(B=A[g++],T=128),y[n++]=B&T?w:x,T>>=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(A.subarray(g,g+l)),g+=l,e.putImageData(p,0,o),o+=a;i<f&&(l=u*h*4,m.set(A.subarray(g,g+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++]=A[g++],m[n++]=A[g++],m[n++]=A[g++],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,g=0;g<f;g++)for(var A=0,m=0;m<r;m++){if(!A){var v=u[c++];A=128}h[p]=v&A?0:255,p+=4,A>>=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 g=Math.min(r,Math.ceil(1048576/n)),A=0;A<r;A+=g){var m=Math.min(g,r-A),v=e.getImageData(0,A,n,m),y=t.getImageData(0,A,n,m);l&&h(v.data,c,u,p),s(v.data,y.data,o),e.putImageData(y,0,A)}}(a,n,i.width,i.height,t.subtype,o,t.transferMap),e.drawImage(i,0,0)}var g=["butt","round","square"],A=["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=g[e]},setLineJoin:function(e){this.ctx.lineJoin=A[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,g=i*t.fontMatrix[0],A=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=0;for(_=0;_<h;++_){var x=e[_];if((0,r.isNum)(x))w+=f*x*i/1e3;else{var C,S,k,E,T,B,I,M=!1,P=(x.isSpace?l:0)+s,D=x.fontChar,F=x.accent,O=x.width;if(d)T=x.vmetric||p,B=-(B=x.vmetric?T[1]:.5*O)*g,I=T[2]*g,O=T?-T[0]:O,C=B/o,S=(w+I)/o;else C=w/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)}(x.isInFont||n.missingFile)&&(A&&!F?a.fillText(D,C,S):(this.paintChar(D,C,S,m),F&&(k=C+F.offset.x/o,E=S-F.offset.y/o,this.paintChar(F.fontChar,k,E,m)))),w+=d?O*g-P*c:O*g+P*c,M&&a.restore()}}d?t.y-=w:t.x+=w*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,g=s.fontMatrix||r.FONT_IDENTITY_MATRIX,A=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<A;++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,g),this.executeOperatorList(v),this.restore(),i=r.Util.applyTransform([n.width,0],g)[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]),g=Math.max(c[0],u[0],h[0],d[0]),A=Math.max(c[1],u[1],h[1],d[1]);this.ctx.fillRect(f,p,g-f,A-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),g=p.context;g.scale(1/h,1/d),g.translate(-o,-s),g.transform.apply(g,n),e.smask?this.smaskStack.push({canvas:p.canvas,context:g,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,g),this.ctx=g,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,g=h[t];p>0;)d[f++]=g&p?0:255,p>>=1;var A=0;for(0!==d[f=0]&&(l[0]=1,++A),n=1;n<a;n++)d[f]!==d[f+1]&&(l[n]=d[f]?2:1,++A),f++;for(0!==d[f]&&(l[n]=2,++A),t=1;t<o;t++){r=t*s,d[(f=t*u)-u]!==d[f]&&(l[r]=d[f]?1:8,++A);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],++A),f++;if(d[f-u]!==d[f]&&(l[r+n]=d[f]?2:4,++A),A>1e3)return null}for(r=t*s,0!==d[f=u*(o-1)]&&(l[r]=8,++A),n=1;n<a;n++)d[f]!==d[f+1]&&(l[r+n]=d[f]?4:8,++A),f++;if(0!==d[f]&&(l[r+n]=4,++A),A>1e3)return null;var v=new Int32Array([0,s,-1,0,-s,0,0,0,1]),y=[];for(t=0;A&&t<=o;t++){for(var b=t*s,_=b+a;b<_&&!l[b];)b++;if(b!==_){var w,x=[b%s,t],C=l[b],S=b;do{var k=v[C];do{b+=k}while(!l[b]);5!==(w=l[b])&&10!==w?(C=w,l[b]=0):(C=w&51*C>>4,l[b]&=C>>2|C<<2),x.push(b%s),x.push(b/s|0),l[b]||--A}while(S!==b);y.push(x),--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 g=n,A=r,m="prescale1";u>2&&g>1||f>2&&A>1;){var v=g,y=A;u>2&&g>1&&(u/=g/(v=Math.ceil(g/2))),f>2&&A>1&&(f/=A/(y=Math.ceil(A/2))),(p=(o=this.cachedCanvases.getCanvas(m,v,y)).context).clearRect(0,0,v,y),p.drawImage(a,0,0,g,A,0,0,v,y),a=o.canvas,g=v,A=y,m="prescale1"===m?"prescale2":"prescale1"}if(i.drawImage(a,0,0,g,A,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,g=(c[r]+t.offsetX)*t.scaleX,A=(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,E=u[a],T=u[a+1],B=u[a+2],I=u[o],M=u[o+1],P=u[o+2],D=u[s],F=u[s+1],O=u[s+2],L=Math.round(p),R=Math.round(v),N=L;N<=R;N++){if(N<A){let e;y=f-(f-g)*(e=N<p?0:p===A?1:(p-N)/(p-A)),b=E-(E-I)*e,_=T-(T-M)*e,w=B-(B-P)*e}else{let e;y=g-(g-m)*(e=N>v?1:A===v?0:(A-N)/(A-v)),b=I-(I-D)*e,_=M-(M-F)*e,w=P-(P-O)*e}let e;x=f-(f-m)*(e=N<p?0:N>v?1:(p-N)/(p-v)),C=E-(E-D)*e,S=T-(T-F)*e,k=B-(B-O)*e;for(var U=Math.round(Math.min(y,x)),j=Math.round(Math.max(y,x)),H=d*N+4*U,z=U;z<=j;z++)(e=(y-z)/(y-x))<0?e=0:e>1&&(e=1),h[H++]=b-(b-C)*e|0,h[H++]=_-(_-S)*e|0,h[H++]=w-(w-k)*e|0,h[H++]=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]),g=Math.ceil(e[2])-f,A=Math.ceil(e[3])-p,m=Math.min(Math.ceil(Math.abs(g*n[0]*1.1)),3e3),v=Math.min(Math.ceil(Math.abs(A*n[1]*1.1)),3e3),y=g/m,b=A/v,_={coords:r,colors:i,offsetX:-f,offsetY:-p,scaleX:1/y,scaleY:1/b},w=m+4,x=v+4;if(l.isEnabled)c=l.drawFigures({width:m,height:v,backgroundColor:o,figures:a,context:_}),(u=s.getCanvas("mesh",w,x,!1)).context.drawImage(c,2,2),c=u.canvas;else{var C=(u=s.getCanvas("mesh",w,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],_);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 g=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(g.offsetX,g.offsetY),e.scale(g.scaleX,g.scaleY),e.createPattern(g.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),g=r.Util.singularValueDecompose2dScale(this.baseTransform),A=[p[0]*g[0],p[1]*g[1]],m=this.getSizeAndScale(i,this.ctx.canvas.width,A[0]),v=this.getSizeAndScale(a,this.ctx.canvas.height,A[1]),y=e.cachedCanvases.getCanvas("pattern",m.size,v.size,!0),b=y.context,_=c.createCanvasGraphics(b);return _.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(_,o,l),_.transform(m.scale,0,0,v.scale,0,0),_.transform(1,0,0,1,-u,-h),this.clipBbox(_,n,u,h,d,f),_.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"),g=i.getUniformLocation(h,"u_mask"),A=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,A),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(g,1),u=d}();var g=u,A=g.canvas,m=g.gl;A.width=f,A.height=p,m.viewport(0,0,m.drawingBufferWidth,m.drawingBufferHeight),m.uniform2f(g.resolutionLocation,f,p),d.backdrop?m.uniform4f(g.resolutionLocation,d.backdrop[0],d.backdrop[1],d.backdrop[2],1):m.uniform4f(g.resolutionLocation,0,0,0,0),m.uniform1i(g.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(g.positionLocation),m.vertexAttribPointer(g.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),A},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,g=p.canvas,A=p.gl;g.width=e,g.height=i,A.viewport(0,0,A.drawingBufferWidth,A.drawingBufferHeight),A.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 _=new Float32Array(2*b),w=new Uint8Array(3*b),x=u.coords,C=u.colors,S=0,k=0;for(m=0,v=c.length;m<v;m++){var E=c[m],T=E.coords,B=E.colors;switch(E.type){case"lattice":var I=E.verticesPerRow;y=T.length/I|0;for(var M=1;M<y;M++)for(var P=M*I+1,D=1;D<I;D++,P++)_[S]=x[T[P-I-1]],_[S+1]=x[T[P-I-1]+1],_[S+2]=x[T[P-I]],_[S+3]=x[T[P-I]+1],_[S+4]=x[T[P-1]],_[S+5]=x[T[P-1]+1],w[k]=C[B[P-I-1]],w[k+1]=C[B[P-I-1]+1],w[k+2]=C[B[P-I-1]+2],w[k+3]=C[B[P-I]],w[k+4]=C[B[P-I]+1],w[k+5]=C[B[P-I]+2],w[k+6]=C[B[P-1]],w[k+7]=C[B[P-1]+1],w[k+8]=C[B[P-1]+2],_[S+6]=_[S+2],_[S+7]=_[S+3],_[S+8]=_[S+4],_[S+9]=_[S+5],_[S+10]=x[T[P]],_[S+11]=x[T[P]+1],w[k+9]=w[k+3],w[k+10]=w[k+4],w[k+11]=w[k+5],w[k+12]=w[k+6],w[k+13]=w[k+7],w[k+14]=w[k+8],w[k+15]=C[B[P]],w[k+16]=C[B[P]+1],w[k+17]=C[B[P]+2],S+=12,k+=18;break;case"triangles":for(var F=0,O=T.length;F<O;F++)_[S]=x[T[F]],_[S+1]=x[T[F]+1],w[k]=C[B[F]],w[k+1]=C[B[F]+1],w[k+2]=C[B[F]+2],S+=2,k+=3}}l?A.clearColor(l[0]/255,l[1]/255,l[2]/255,1):A.clearColor(0,0,0,0),A.clear(A.COLOR_BUFFER_BIT);var L=A.createBuffer();A.bindBuffer(A.ARRAY_BUFFER,L),A.bufferData(A.ARRAY_BUFFER,_,A.STATIC_DRAW),A.enableVertexAttribArray(p.positionLocation),A.vertexAttribPointer(p.positionLocation,2,A.FLOAT,!1,0,0);var R=A.createBuffer();return A.bindBuffer(A.ARRAY_BUFFER,R),A.bufferData(A.ARRAY_BUFFER,w,A.STATIC_DRAW),A.enableVertexAttribArray(p.colorLocation),A.vertexAttribPointer(p.colorLocation,3,A.UNSIGNED_BYTE,!1,0,0),A.uniform2f(p.scaleLocation,u.scaleX,u.scaleY),A.uniform2f(p.offsetLocation,u.offsetX,u.offsetY),A.drawArrays(A.TRIANGLES,0,b),A.flush(),A.deleteBuffer(L),A.deleteBuffer(R),g},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 g(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 _(e);case i.AnnotationType.CARET:return new x(e);case i.AnnotationType.INK:return new C(e);case i.AnnotationType.POLYGON:return new w(e);case i.AnnotationType.HIGHLIGHT:return new S(e);case i.AnnotationType.UNDERLINE:return new k(e);case i.AnnotationType.SQUIGGLY:return new E(e);case i.AnnotationType.STRIKEOUT:return new T(e);case i.AnnotationType.STAMP:return new B(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 A({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 g 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 A({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 A{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 _ 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 w extends _{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class x 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 E 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 T 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 B 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 g=!1;if(n.str.length>1)g=!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&&(g=!0)}if(g&&(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 A=1,m=0;0!==c&&(A=Math.cos(c),m=Math.sin(c));var v,y,b=(u.vertical?n.height:n.width)*e._viewport.scale,_=h;0!==c?(v=[A,m,-m,A,f,p],y=r.Util.getAxialAlignedBoundingBox([0,0,b,_],v)):y=[f,p,f+b,p+_],e._bounds.push({left:y[0],top:y[1],right:y[2],bottom:y[3],div:o,size:[b,_],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],g=[[0,0],[0,h.size[1]],[h.size[0],0],h.size],A=new Float64Array(64);g.forEach(function(e,t){var n=r.Util.applyTransform(e,d);A[t+0]=f&&(u.left-n[0])/f,A[t+4]=p&&(u.top-n[1])/p,A[t+8]=f&&(u.right-n[0])/f,A[t+12]=p&&(u.bottom-n[1])/p,A[t+16]=p&&(u.left-n[0])/-p,A[t+20]=f&&(u.top-n[1])/f,A[t+24]=p&&(u.right-n[0])/-p,A[t+28]=f&&(u.bottom-n[1])/f,A[t+32]=f&&(u.left-n[0])/-f,A[t+36]=p&&(u.top-n[1])/-p,A[t+40]=f&&(u.right-n[0])/-f,A[t+44]=p&&(u.bottom-n[1])/-p,A[t+48]=p&&(u.left-n[0])/p,A[t+52]=f&&(u.top-n[1])/-f,A[t+56]=p&&(u.right-n[0])/p,A[t+60]=f&&(u.bottom-n[1])/-f});var m=1+Math.min(Math.abs(f),Math.abs(p));c.paddingLeft=a(A,32,16)/m,c.paddingTop=a(A,48,16)/m,c.paddingRight=a(A,0,16)/m,c.paddingBottom=a(A,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 g=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 A=new Uint8Array((1+p)*h);let m=0,v=0;for(let e=0;e<h;++e)A[m++]=0,A.set(g.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++)A[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)}(A),_=e.length+3*t+y.length+b.length,w=new Uint8Array(_);let x=0;return w.set(e,x),i("IHDR",y,w,x+=e.length),i("IDATA",b,w,x+=t+y.length),x+=t+b.length,i("IEND",new Uint8Array(0),w,x),(0,r.createObjectURL)(w,"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,g=0,A=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,g=p?1:-1,A=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+=g*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||A;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${A++}`,[f,p]=r.Util.applyTransform([a,o],i),[g,m]=r.Util.applyTransform([s,l],i),[v,y]=r.Util.singularValueDecompose2dScale(i),b=c*v,_=u*y,w=this.svgFactory.createElement("svg:pattern");w.setAttributeNS(null,"id",d),w.setAttributeNS(null,"patternUnits","userSpaceOnUse"),w.setAttributeNS(null,"width",b),w.setAttributeNS(null,"height",_),w.setAttributeNS(null,"x",`${f}`),w.setAttributeNS(null,"y",`${p}`);const x=this.svg,C=this.transformMatrix,S=this.current.fillColor,k=this.current.strokeColor,E=this.svgFactory.create(g-f,m-p);if(this.svg=E,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=x,this.transformMatrix=C,this.current.fillColor=S,this.current.strokeColor=k,w.appendChild(E.childNodes[0]),this.defs.appendChild(w),`url(#${d})`}_makeShadingPattern(e){switch(e[0]){case"RadialAxial":const t=`shading${A++}`,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${g++}`;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 g(this):new f(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new A(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 g 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 A 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,g=s+d,A=h+p;if(-1===f)A>=a&&(f=A);else if((r?s:h)>f)break;if(A<=i||h>=a||g<=l||s>=c)continue;const m=Math.max(0,i-h)+Math.max(0,A-a),v=Math.max(0,l-s)+Math.max(0,g-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],g=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:g,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,g=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"+g);else{u(d.divIdx,d.offset,l.offset,"highlight begin"+g);for(let e=d.divIdx+1,t=f.divIdx;e<t;e++)i[e].className="highlight middle"+g;c(f,"highlight end"+g)}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],g=!1,A="";!function e(){for(;;){if(!h.length)return void u();var i=h.shift();if(!a.test(i)){if(n){if(A=o.exec(i)){f=A[1].toLowerCase(),g="*"!==f&&f!==t&&f!==p;continue}if(g)continue;if(A=l.exec(i))return void d(s+A[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 g=p.default_locale.toLowerCase();for(var A in p.locales){if((A=A.toLowerCase())===e){r=p.locales[e];break}A===g&&(r=p.locales[g])}}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=g(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 g(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 A(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++)A(n[i]);A(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 g=0;switch(t[1].name){case"XYZ":l=t[2],c=t[3],g=t[4],l=null!==l?l:0,c=null!==c?c:p;break;case"Fit":case"FitB":g="page-fit";break;case"FitH":case"FitBH":g="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,g="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,g=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||(g&&g!==this._currentScale?this.currentScaleValue=g:this._currentScale===r.UNKNOWN_SCALE&&(this.currentScaleValue=r.DEFAULT_SCALE_VALUE)),"page-fit"===g&&!t[4])return void this._scrollIntoView({pageDiv:a.div,pageNumber:e});const A=[a.viewport.convertToViewportPoint(l,c),a.viewport.convertToViewportPoint(l+u,c+h)];let m=Math.min(A[0][0],A[1][0]),v=Math.min(A[0][1],A[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){
  118. /*!
  119. * The buffer module from node.js, for the browser.
  120. *
  121. * @author Feross Aboukhadijeh <http://feross.org>
  122. * @license MIT
  123. */
  124. 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 j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return j(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function A(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 z(j(t,e.length-n),e,n,r)}function b(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return b(e,t,n,r)}function w(e,t,n,r){return z(H(t),e,n,r)}function x(e,t,n,r){return z(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)g(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)g(this,t,t+3),g(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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(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 B(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return T(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 A(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return A(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 _(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(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 E(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 T(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 B(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 P(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 F(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)||P(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)||P(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||P(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||P(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||P(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||P(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):F(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(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):F(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);P(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);P(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||P(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||P(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||P(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||P(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):F(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(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):F(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:j(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 j(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 H(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 z(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}})}},bW9N:function(e,t,n){"use strict";t.a=
  125. /**
  126. * @fileoverview Styles for gantt-elastic
  127. * @license MIT
  128. * @author Rafal Pospiech <neuronet.io@gmail.com>
  129. * @package GanttElastic
  130. */
  131. function(e="12px",t="Arial, sans-serif"){return{fontSize:e,fontFamily:t,"main-view":{background:"#FFFFFF"},"main-container-wrapper":{overflow:"hidden","border-top":"1px solid #eee","border-bottom":"1px solid #eee"},"main-container":{float:"left","max-width":"100%"},"main-view-container":{},container:{display:"flex","max-width":"100%",height:"100%"},"calendar-wrapper":{"user-select":"none"},calendar:{width:"100%",background:"#f3f5f7",display:"block"},"calendar-row":{display:"flex","justify-content":"space-evenly"},"calendar-row--month":{},"calendar-row--day":{},"calendar-row--hour":{"border-bottom":"1px solid #eee"},"calendar-row-rect":{background:"transparent",display:"flex"},"calendar-row-rect--month":{},"calendar-row-rect--day":{},"calendar-row-rect--hour":{},"calendar-row-rect-child":{display:"block","border-right-width":"1px","border-right-color":"#dadada","border-right-style":"solid",position:"relative"},"calendar-row-rect-child--month":{},"calendar-row-rect-child--day":{"text-align":"center"},"calendar-row-rect-child--hour":{"text-align":"center"},"calendar-row-text":{"font-family":t,"font-size":e,color:"#606060",display:"inline-block",position:"relative"},"calendar-row-text--month":{},"calendar-row-text--day":{},"calendar-row-text--hour":{},"task-list-wrapper":{},"task-list":{background:"transparent","border-color":"#eee"},"task-list-header":{display:"flex","user-select":"none","vertical-align":"middle","border-bottom":"1px solid #eee","border-left":"1px solid #eee"},"task-list-header-column":{"border-left":"1px solid #00000050","box-sizing":"border-box",display:"flex",background:"#f3f5f7","border-color":"transparent"},"task-list-expander-wrapper":{display:"inline-flex","flex-shrink":"0","box-sizing":"border-box",margin:"0 0 0 10px"},"task-list-expander-content":{display:"inline-flex",cursor:"pointer",margin:"auto 0px","box-sizing":"border-box","user-select":"none"},"task-list-expander-line":{fill:"transparent",stroke:"#000000","stroke-width":"1","stroke-linecap":"round"},"task-list-expander-border":{fill:"#ffffffa0",stroke:"#000000A0"},"chart-expander-wrapper":{display:"block","line-height":"1","box-sizing":"border-box",margin:"0"},"chart-expander-content":{display:"inline-flex",cursor:"pointer",margin:"auto 0px","box-sizing":"border-box","user-select":"none"},"chart-expander-line":{fill:"transparent",stroke:"#000000","stroke-width":"1","stroke-linecap":"round"},"chart-expander-border":{fill:"#ffffffa0",stroke:"#000000A0"},"task-list-container":{},"task-list-header-label":{overflow:"hidden","text-overflow":"ellipsis","font-family":t,"font-size":e,"box-sizing":"border-box",margin:"auto 6px","flex-grow":"1","vertical-align":"middle"},"task-list-header-resizer-wrapper":{background:"transparent",height:"100%",width:"6px",cursor:"col-resize",display:"inline-flex","vertical-align":"center"},"task-list-header-resizer":{margin:"auto 0px"},"task-list-header-resizer-dot":{width:"3px",height:"3px",background:"#ddd","border-radius":"100%",margin:"4px 0px"},"task-list-items":{overflow:"hidden"},"task-list-item":{"border-top":"1px solid #eee","border-right":"1px solid #eee","box-sizing":"border-box",display:"flex",background:"transparent"},"task-list-item-column":{display:"inline-flex","flex-shrink":"0","border-left":"1px solid #00000050","box-sizing":"border-box","border-color":"#eee"},"task-list-item-value-wrapper":{overflow:"hidden",display:"flex",width:"100%"},"task-list-item-value-container":{margin:"auto 0px",overflow:"hidden"},"task-list-item-value":{display:"block","flex-shrink":"100","font-family":t,"font-size":e,"margin-top":"auto","margin-bottom":"auto","margin-left":"6px","margin-right":"6px",overflow:"hidden","text-overflow":"ellipsis","line-height":"1.5em","word-break":"keep-all","white-space":"nowrap",color:"#606060",background:"#FFFFFF"},"grid-lines":{},"grid-line-horizontal":{stroke:"#00000010","stroke-width":1},"grid-line-vertical":{stroke:"#00000010","stroke-width":1},"grid-line-time":{stroke:"#FF000080","stroke-width":1},chart:{"user-select":"none",overflow:"hidden"},"chart-calendar-container":{"user-select":"none",overflow:"hidden","max-width":"100%","border-right":"1px solid #eee"},"chart-graph-container":{"user-select":"none",overflow:"hidden","max-width":"100%","border-right":"1px solid #eee"},"chart-area":{},"chart-graph":{overflow:"hidden"},"chart-row-text-wrapper":{},"chart-row-text":{background:"#ffffffa0","border-radius":"10px","font-family":t,"font-size":e,"font-weight":"normal",color:"#000000a0",height:"100%",display:"inline-block"},"chart-row-text-content":{padding:"0px 6px"},"chart-row-text-content--text":{},"chart-row-text-content--html":{},"chart-row-wrapper":{},"chart-row-bar-wrapper":{},"chart-row-bar":{},"chart-row-bar-polygon":{stroke:"#E74C3C","stroke-width":1,fill:"#F75C4C"},"chart-row-project-wrapper":{},"chart-row-project":{},"chart-row-project-polygon":{},"chart-row-milestone-wrapper":{},"chart-row-milestone":{},"chart-row-milestone-polygon":{},"chart-row-task-wrapper":{},"chart-row-task":{},"chart-row-task-polygon":{},"chart-row-progress-bar-wrapper":{},"chart-row-progress-bar":{},"chart-row-progress-bar-line":{stroke:"#ffffff25","stroke-width":20},"chart-row-progress-bar-solid":{fill:"#0EAC51",height:"20%"},"chart-row-progress-bar-pattern":{fill:"url(#diagonalHatch)",transform:"translateY(0.1) scaleY(0.8)"},"chart-row-progress-bar-outline":{stroke:"#E74C3C","stroke-width":1},"chart-dependency-lines-wrapper":{},"chart-dependency-lines-path":{fill:"transparent",stroke:"#FFa00090","stroke-width":2},"chart-scroll-container":{},"chart-scroll-container--horizontal":{overflow:"auto","max-width":"100%"},"chart-scroll-container--vertical":{"overflow-y":"auto","overflow-x":"hidden","max-height":"100%",float:"right"},"chart-days-highlight-rect":{fill:"#f3f5f780"},"slot-header-beforeOptions":{display:"inline-block"}}}},"c/Tr":function(e,t,n){e.exports={default:n("5zde"),__esModule:!0}},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.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},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)})}},d4lq:function(e,t,n){var r=n("To6e"),i=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int),o=(r.new_int_n,r.assert,n("/00o"));e.exports=function(e,t,n,r){this.l=a(1+o.SBMAX_l),this.s=a(1+o.SBMAX_s),this.psfb21=a(1+o.PSFB21),this.psfb12=a(1+o.PSFB12);var s=this.l,l=this.s;4==arguments.length&&(this.arrL=arguments[0],this.arrS=arguments[1],this.arr21=arguments[2],this.arr12=arguments[3],i.arraycopy(this.arrL,0,s,0,Math.min(this.arrL.length,this.l.length)),i.arraycopy(this.arrS,0,l,0,Math.min(this.arrS.length,this.s.length)),i.arraycopy(this.arr21,0,this.psfb21,0,Math.min(this.arr21.length,this.psfb21.length)),i.arraycopy(this.arr12,0,this.psfb12,0,Math.min(this.arr12.length,this.psfb12.length)))}},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}}}},dSOO:function(e,t,n){n("X0uZ"),e.exports=9007199254740991},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,g=[];null!==(d=n());)if("<"!==d[0])p.appendChild(e.document.createTextNode(a(d)));else{if("/"===d[1]){g.length&&g[g.length-1]===d.substr(2).replace(">","")&&(g.pop(),p=p.parentNode);continue}var A,m=i(d.substr(1,d.length-2));if(m){A=e.document.createProcessingInstruction("timestamp",m),p.appendChild(A);continue}var v=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(A=s(v[1],v[3])))continue;if(!o(p,A))continue;v[2]&&(A.className=v[2].substr(1).replace("."," ")),g.push(v[1]),p.appendChild(A),p=A}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 g(){}function A(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)"),g.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(){}g.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},g.prototype.formatStyle=function(e,t){return 0===e?0:e+t},A.prototype=n(g.prototype),A.prototype.constructor=A,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 A(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(10);"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")},15:function(e,t){e.exports=n("fEB+")},16:function(e,t){e.exports=n("02w1")},18: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,input:e.debouncedOnInputChange},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.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}],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)}},g=n(0),A=Object(g.a)(p,d,[],!1,null,null,null);A.options.__file="packages/select/src/select-dropdown.vue";var m=A.exports,v=n(33),y=n(37),b=n.n(y),_=n(15),w=n.n(_),x=n(18),C=n.n(x),S=n(12),k=n.n(S),E=n(16),T=n(31),B=n.n(T),I=n(3),M=n(21),P={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:w.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");B()(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?"":String(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=r?Math.round(r.getBoundingClientRect().height):0,a=e.initialInputHeight||40;n.style.height=0===e.selected.length?a+"px":Math.max(r?i+(i>a?6:0):0,a)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}})},resetHoverIndex:function(){var e=this;setTimeout(function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map(function(t){return e.options.indexOf(t)})):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)},300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick(function(){n.scrollToOption(e)})},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];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(E.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(E.removeResizeListener)(this.$el,this.handleResize)}},D=Object(g.a)(P,r,[],!1,null,null,null);D.options.__file="packages/select/src/select.vue";var F=D.exports;F.install=function(e){e.component(F.name,F)};t.default=F}})},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)"})},eHQZ:function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},eMjc:function(e,t,n){
  132. /*!
  133. * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
  134. * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
  135. * Released under MIT License
  136. */var r;r=function(){"use strict";
  137. /*! *****************************************************************************
  138. Copyright (c) Microsoft Corporation.
  139. Permission to use, copy, modify, and/or distribute this software for any
  140. purpose with or without fee is hereby granted.
  141. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  142. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  143. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  144. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  145. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  146. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  147. PERFORMANCE OF THIS SOFTWARE.
  148. ***************************************************************************** */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),g=0;g<f.length;g++)p[f.charCodeAt(g)]=g;for(var A=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 _=10,w=13,x=15,C=17,S=18,k=19,E=20,T=21,B=22,I=24,M=25,P=26,D=27,F=28,O=30,L=32,R=33,N=34,U=35,j=37,H=38,z=39,Q=40,V=42,G=[9001,65288],q="!",W=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=A(s,12,o[4]/2),c=2===o[5]?A(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=="),$=[O,36],K=[1,2,3,5],Y=[_,8],X=[D,P],Z=K.concat(Y),J=[H,z,Q,N,U],ee=[x,w],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!==_)break}if(i===_)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!==_)break}if(o!==_)break}return!1},ne=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==_)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 q;if(-1!==K.indexOf(u))return"×";if(-1!==Y.indexOf(u))return"×";if(8===ne(a,t))return"÷";if(11===W.get(e[a]))return"×";if((l===L||l===R)&&11===W.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,F].indexOf(u))return"×";if(ne(a,t)===B)return"×";if(te(23,B,a,t))return"×";if(te([C,S],T,a,t))return"×";if(te(12,12,a,t))return"×";if(l===_)return"÷";if(23===l||23===u)return"×";if(16===u||16===l)return"÷";if(-1!==[w,x,T].indexOf(u)||14===l)return"×";if(36===c&&-1!==ee.indexOf(l))return"×";if(l===F&&36===u)return"×";if(u===E)return"×";if(-1!==$.indexOf(u)&&l===M||-1!==$.indexOf(l)&&u===M)return"×";if(l===D&&-1!==[j,L,R].indexOf(u)||-1!==[j,L,R].indexOf(l)&&u===P)return"×";if(-1!==$.indexOf(l)&&-1!==X.indexOf(u)||-1!==X.indexOf(l)&&-1!==$.indexOf(u))return"×";if(-1!==[D,P].indexOf(l)&&(u===M||-1!==[B,x].indexOf(u)&&t[s+1]===M)||-1!==[B,x].indexOf(l)&&u===M||l===M&&-1!==[M,F,I].indexOf(u))return"×";if(-1!==[M,F,I,C,S].indexOf(u))for(var h=a;h>=0;){if((d=t[h])===M)return"×";if(-1===[F,I].indexOf(d))break;h--}if(-1!==[D,P].indexOf(u))for(h=-1!==[C,S].indexOf(l)?o:a;h>=0;){var d;if((d=t[h])===M)return"×";if(-1===[F,I].indexOf(d))break;h--}if(H===l&&-1!==[H,z,N,U].indexOf(u)||-1!==[z,N].indexOf(l)&&-1!==[z,Q].indexOf(u)||-1!==[Q,U].indexOf(l)&&u===Q)return"×";if(-1!==J.indexOf(l)&&-1!==[E,P].indexOf(u)||-1!==J.indexOf(u)&&l===D)return"×";if(-1!==$.indexOf(l)&&-1!==$.indexOf(u))return"×";if(l===I&&-1!==$.indexOf(u))return"×";if(-1!==$.concat(M).indexOf(l)&&u===B&&-1===G.indexOf(e[s])||-1!==$.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=W.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===Z.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?T:j):o===V?n.push(O):29===o?n.push(O):43===o?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(j):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)?j: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===q,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)},ge={type:2},Ae={type:3},me={type:4},ve={type:13},ye={type:8},be={type:21},_e={type:9},we={type:10},xe={type:11},Ce={type:12},Se={type:14},ke={type:23},Ee={type:1},Te={type:25},Be={type:24},Ie={type:26},Me={type:27},Pe={type:28},De={type:29},Fe={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 ge;case 41:return Ae;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(),Be;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(),Te;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 Pe;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 xe;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(),_e;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),be;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),we;break;case-1:return Oe}return le(e)?(this.consumeWhiteSpace(),Fe):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),Ee;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||qe(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},je=function(e){return 20===e.type},He=function(e){return 0===e.type},ze=function(e,t){return je(e)&&e.value===t},Qe=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},qe=function(e,t){return 11===t&&12===e.type||(28===t&&29===e.type||2===t&&3===e.type)},We=function(e){return 17===e.type||15===e.type},$e=function(e){return 16===e.type||We(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},Ze={type:16,number:100,flags:4},Je=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(je).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,Ze];case"to right":case"left":return it(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ze,Ze];case"to bottom":case"top":return it(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ze,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=gt[t.value.toUpperCase()];if(void 0!==s)return s}return gt.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=$e(i)?i.number/100:0,c=$e(a)?a.number/100:0,u=void 0!==o&&$e(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),g=ht(d,h,s-1/3);return lt(255*f,255*p,255*g,u)},ft={hsl:dt,hsla:dt,rgb:ut,rgba:ut},pt=function(e,t){return at(e,Re.create(t).parseComponentValue())},gt={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},At={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(je(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&&$e(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=Ze);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]},_t=function(e,t){return Math.sqrt(e*e+t*t)},wt=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=_t(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},xt=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(je(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(Ze),!1}else if($e(t)||We(t))return a.push(t),!1;return e},s):1===o&&(s=t.reduce(function(e,t){if(je(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(We(t)||$e(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=Et[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,Et={"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":xt,"-ms-linear-gradient":xt,"-o-linear-gradient":xt,"-webkit-linear-gradient":xt,"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(je(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(Ze),e}else($e(t)||We(t))&&a.push(t);else if(je(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(We(t)||$e(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(je(a)&&"linear"===a.value)return void(i=1);if(je(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:Ze,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}}},Tt={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&&!Et[e.name])}(e)}).map(function(t){return St(e,t)})}},Bt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(je(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($e)}).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(je).map(function(e){return e.value}).join(" ")}).map(Pt)}},Pt=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,Ft={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 je(e)||$e(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"),jt=Lt("left"),Ht=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Ke(t.filter($e))}}},zt=Ht("top-left"),Qt=Ht("top-right"),Vt=Ht("bottom-right"),Gt=Ht("bottom-left"),qt=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}}},Wt=qt("top"),$t=qt("right"),Kt=qt("bottom"),Yt=qt("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}}},Zt=Xt("top"),Jt=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(je).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 je(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:$e(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}}},gn={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}}},An=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},mn=An("top"),vn=An("right"),yn=An("bottom"),bn=An("left"),_n={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(je).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}})}},wn={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"}}},xn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Cn=xn("top"),Sn=xn("right"),kn=xn("bottom"),En=xn("left"),Tn={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}}},Bn={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&&ze(t[0],"none")?[]:Ge(t).map(function(t){for(var n={color:gt.TRANSPARENT,offsetX:Ye,offsetY:Ye,blur:Ye},r=0,i=0;i<t.length;i++){var a=t[i];We(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}},Pn={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}},Fn={type:16,number:50,flags:4},On=[Fn,Fn],Ln={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter($e);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")}},jn=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")},Hn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Ue(t)?t.number:1}},zn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Qn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(je).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"},qn={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Ue(t))return t.number;if(je(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Wn={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(je).map(function(e){return e.value})}},$n={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(Qe),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}},Zn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],r=t.filter(Qe),i=0;i<r.length;i++){var a=r[i],o=r[i+1];if(je(a)&&"none"!==a.value){var s=o&&Ue(o)?o.number:0;n.push({counter:a.value,reset:s})}}return n}},Jn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Ne).map(function(t){return jn(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(He);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&&ze(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];ze(a,"inset")?n.inset=!0:We(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(je).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,Jn,t.animationDuration),this.backgroundClip=cr(e,At,t.backgroundClip),this.backgroundColor=cr(e,mt,t.backgroundColor),this.backgroundImage=cr(e,Tt,t.backgroundImage),this.backgroundOrigin=cr(e,Bt,t.backgroundOrigin),this.backgroundPosition=cr(e,It,t.backgroundPosition),this.backgroundRepeat=cr(e,Mt,t.backgroundRepeat),this.backgroundSize=cr(e,Ft,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,jt,t.borderLeftColor),this.borderTopLeftRadius=cr(e,zt,t.borderTopLeftRadius),this.borderTopRightRadius=cr(e,Qt,t.borderTopRightRadius),this.borderBottomRightRadius=cr(e,Vt,t.borderBottomRightRadius),this.borderBottomLeftRadius=cr(e,Gt,t.borderBottomLeftRadius),this.borderTopStyle=cr(e,Wt,t.borderTopStyle),this.borderRightStyle=cr(e,$t,t.borderRightStyle),this.borderBottomStyle=cr(e,Kt,t.borderBottomStyle),this.borderLeftStyle=cr(e,Yt,t.borderLeftStyle),this.borderTopWidth=cr(e,Zt,t.borderTopWidth),this.borderRightWidth=cr(e,Jt,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,$n,t.fontStyle),this.fontVariant=cr(e,Wn,t.fontVariant),this.fontWeight=cr(e,qn,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,gn,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,Hn,t.opacity);var i=cr(e,_n,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=cr(e,wn,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,En,t.paddingLeft),this.paintOrder=cr(e,rr,t.paintOrder),this.position=cr(e,Bn,t.position),this.textAlign=cr(e,Tn,t.textAlign),this.textDecorationColor=cr(e,zn,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=cr(e,Qn,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,Pn,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,Zn,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,je(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 We(s)?s:Ye;case"length-percentage":var l=a.parseComponentValue();return $e(l)?l:Ye;case"time":return jn(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)),gi(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 gr=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},Ar=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,_r=8,wr=9,xr=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=gr(s,12,o[4]/2),c=2===o[5]?gr(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 Ar(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)},Er=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===_r&&-1!==[_r,wr,xr,Cr].indexOf(o))return"×";if(!(a!==xr&&a!==wr||o!==wr&&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"÷"},Tr=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=Er(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}}}},Br=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))})},Pr={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(Pr,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Pr.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(Pr,"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(Pr,"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",Br(r)?Mr(Ir(100,100,0,0,a)):Promise.reject(!1)}).then(function(e){return n.drawImage(e,0,0),Br(n.getImageData(0,0,100,100).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Pr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(Pr,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Pr,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Pr,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Pr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Dr=function(){return function(e,t){this.text=e,this.bounds=t}}(),Fr=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(Pr.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 Pr.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(Pr.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=Tr(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(Pr.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 jr(e,t)}(e,t)},Ur=[32,160,4961,65792,65793,4153,4241],jr=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},Hr=function(){return function(e,t,n){this.text=zr(t.data,n.textTransform),this.textBounds=Fr(e,this.text,n,t)}}(),zr=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Qr,Vr);case 2:return e.toUpperCase();default:return e}},Qr=/(^|\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),qr=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),Wr=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),$r=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}],Zr=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},Jr=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=Jr(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=Zr(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):gt.TRANSPARENT,a=n.contentWindow.document.body?pt(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):gt.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 Hr(e,i,n.styles));else if(pi(i))if(Bi(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):Ei(i)||bi(i)||Ti(i)||li(e,i,o,r))}},ci=function(e,t){return Ci(t)?new Gr(e,t):wi(t)?new qr(e,t):bi(t)?new Wr(e,t):mi(t)?new $r(e,t):vi(t)?new Kr(e,t):yi(t)?new ri(e,t):Ti(t)?new ii(e,t):Ei(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()||_i(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},gi=function(e){return pi(e)&&void 0!==e.style&&!Ai(e)},Ai=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},_i=function(e){return"BODY"===e.tagName},wi=function(e){return"CANVAS"===e.tagName},xi=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},Ei=function(e){return"TEXTAREA"===e.tagName},Ti=function(e){return"SELECT"===e.tagName},Bi=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}(),Pi={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Fi={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?Hi(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},ji=function(e,t,n,r,i,a){if(e<-9999||e>9999)return Hi(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},Hi=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,Pi,3,r).toLowerCase();case 7:return Li(e,1,3999,Pi,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 ji(e,"零一二三四五六七八九","十百千萬","負",i,14);case 47:return ji(e,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",i,15);case 42:return ji(e,"零一二三四五六七八九","十百千萬","负",i,14);case 41:return ji(e,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",i,15);case 26:return ji(e,"〇一二三四五六七八九","十百千万","マイナス",i,0);case 25:return ji(e,"零壱弐参四伍六七八九","拾百千万","マイナス",i,7);case 31:return ji(e,"영일이삼사오육칠팔구","십백천만","마이너스",a,7);case 33:return ji(e,"零一二三四五六七八九","十百千萬","마이너스",a,0);case 32:return ji(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,Fi,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)}},zi=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=Wi(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(Zi),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,qi(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),wi(e))return this.createCanvasClone(e);if(xi(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)&&Bi(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)&&(gi(e)||Ai(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&&gi(r)&&(this.clonedReferenceElement=r),_i(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),xi(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||Ai(e))&&!Si(e)||t)&&Ki(i,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Ei(e)||Ti(e))&&(Ei(r)||Ti(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(je);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&&je(c)){var h=i.counters.getCounterValue(c.value),d=u&&je(u)?gn.parse(i.context,u.value):3;l.appendChild(o.createTextNode(Hi(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&&je(c)){var g=i.counters.getCounterValues(c.value),A=u&&je(u)?gn.parse(i.context,u.value):3,m=p&&0===p.type?p.value:"",v=g.map(function(e){return Hi(e,A,!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=Ji+" "+ea;var c=r===br.BEFORE?" "+Ji:" "+ea;return Ai(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 Qi,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()})},qi=function(e){return Promise.all([].slice.call(e.images,0).map(Gi))},Wi=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)}})},$i=["all","d","content"],Ki=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===$i.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)},Zi=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},Ji="___html2canvas___pseudoelement_before",ea="___html2canvas___pseudoelement_after",ta=function(e){na(e,"."+Ji+':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&&Pr.SUPPORT_CORS_IMAGES&&!t,r=!ca(e)&&!t&&!ha(e)&&"string"==typeof this._options.proxy&&Pr.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=Pr.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 Pr.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)},ga=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}(),Aa=function(e){return 1===e.type},ma=function(){return function(e){var t=e.styles,n=e.bounds,r=Je(t.borderTopLeftRadius,n.width,n.height),i=r[0],a=r[1],o=Je(t.borderTopRightRadius,n.width,n.height),s=o[0],l=o[1],c=Je(t.borderBottomRightRadius,n.width,n.height),u=c[0],h=c[1],d=Je(t.borderBottomLeftRadius,n.width,n.height),f=d[0],p=d[1],g=[];g.push((i+s)/n.width),g.push((f+u)/n.width),g.push((a+p)/n.height),g.push((l+h)/n.height);var A=Math.max.apply(Math,g);A>1&&(i/=A,a/=A,s/=A,l/=A,u/=A,h/=A,f/=A,p/=A);var m=n.width-s,v=n.height-h,y=n.width-u,b=n.height-p,_=t.borderTopWidth,w=t.borderRightWidth,x=t.borderBottomWidth,C=t.borderLeftWidth,S=et(t.paddingTop,e.bounds.width),k=et(t.paddingRight,e.bounds.width),E=et(t.paddingBottom,e.bounds.width),T=et(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?va(n.left+C/3,n.top+_/3,i-C/3,a-_/3,Qi.TOP_LEFT):new fa(n.left+C/3,n.top+_/3),this.topRightBorderDoubleOuterBox=i>0||a>0?va(n.left+m,n.top+_/3,s-w/3,l-_/3,Qi.TOP_RIGHT):new fa(n.left+n.width-w/3,n.top+_/3),this.bottomRightBorderDoubleOuterBox=u>0||h>0?va(n.left+y,n.top+v,u-w/3,h-x/3,Qi.BOTTOM_RIGHT):new fa(n.left+n.width-w/3,n.top+n.height-x/3),this.bottomLeftBorderDoubleOuterBox=f>0||p>0?va(n.left+C/3,n.top+b,f-C/3,p-x/3,Qi.BOTTOM_LEFT):new fa(n.left+C/3,n.top+n.height-x/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?va(n.left+2*C/3,n.top+2*_/3,i-2*C/3,a-2*_/3,Qi.TOP_LEFT):new fa(n.left+2*C/3,n.top+2*_/3),this.topRightBorderDoubleInnerBox=i>0||a>0?va(n.left+m,n.top+2*_/3,s-2*w/3,l-2*_/3,Qi.TOP_RIGHT):new fa(n.left+n.width-2*w/3,n.top+2*_/3),this.bottomRightBorderDoubleInnerBox=u>0||h>0?va(n.left+y,n.top+v,u-2*w/3,h-2*x/3,Qi.BOTTOM_RIGHT):new fa(n.left+n.width-2*w/3,n.top+n.height-2*x/3),this.bottomLeftBorderDoubleInnerBox=f>0||p>0?va(n.left+2*C/3,n.top+b,f-2*C/3,p-2*x/3,Qi.BOTTOM_LEFT):new fa(n.left+2*C/3,n.top+n.height-2*x/3),this.topLeftBorderStroke=i>0||a>0?va(n.left+C/2,n.top+_/2,i-C/2,a-_/2,Qi.TOP_LEFT):new fa(n.left+C/2,n.top+_/2),this.topRightBorderStroke=i>0||a>0?va(n.left+m,n.top+_/2,s-w/2,l-_/2,Qi.TOP_RIGHT):new fa(n.left+n.width-w/2,n.top+_/2),this.bottomRightBorderStroke=u>0||h>0?va(n.left+y,n.top+v,u-w/2,h-x/2,Qi.BOTTOM_RIGHT):new fa(n.left+n.width-w/2,n.top+n.height-x/2),this.bottomLeftBorderStroke=f>0||p>0?va(n.left+C/2,n.top+b,f-C/2,p-x/2,Qi.BOTTOM_LEFT):new fa(n.left+C/2,n.top+n.height-x/2),this.topLeftBorderBox=i>0||a>0?va(n.left,n.top,i,a,Qi.TOP_LEFT):new fa(n.left,n.top),this.topRightBorderBox=s>0||l>0?va(n.left+m,n.top,s,l,Qi.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,Qi.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,Qi.BOTTOM_LEFT):new fa(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?va(n.left+C,n.top+_,Math.max(0,i-C),Math.max(0,a-_),Qi.TOP_LEFT):new fa(n.left+C,n.top+_),this.topRightPaddingBox=s>0||l>0?va(n.left+Math.min(m,n.width-w),n.top+_,m>n.width+w?0:Math.max(0,s-w),Math.max(0,l-_),Qi.TOP_RIGHT):new fa(n.left+n.width-w,n.top+_),this.bottomRightPaddingBox=u>0||h>0?va(n.left+Math.min(y,n.width-C),n.top+Math.min(v,n.height-x),Math.max(0,u-w),Math.max(0,h-x),Qi.BOTTOM_RIGHT):new fa(n.left+n.width-w,n.top+n.height-x),this.bottomLeftPaddingBox=f>0||p>0?va(n.left+C,n.top+Math.min(b,n.height-x),Math.max(0,f-C),Math.max(0,p-x),Qi.BOTTOM_LEFT):new fa(n.left+C,n.top+n.height-x),this.topLeftContentBox=i>0||a>0?va(n.left+C+T,n.top+_+S,Math.max(0,i-(C+T)),Math.max(0,a-(_+S)),Qi.TOP_LEFT):new fa(n.left+C+T,n.top+_+S),this.topRightContentBox=s>0||l>0?va(n.left+Math.min(m,n.width+C+T),n.top+_+S,m>n.width+C+T?0:s-C+T,l-(_+S),Qi.TOP_RIGHT):new fa(n.left+n.width-(w+k),n.top+_+S),this.bottomRightContentBox=u>0||h>0?va(n.left+Math.min(y,n.width-(C+T)),n.top+Math.min(v,n.height+_+S),Math.max(0,u-(w+k)),h-(x+E),Qi.BOTTOM_RIGHT):new fa(n.left+n.width-(w+k),n.top+n.height-(x+E)),this.bottomLeftContentBox=f>0||p>0?va(n.left+C+T,n.top+b,Math.max(0,f-(C+T)),p-(x+E),Qi.BOTTOM_LEFT):new fa(n.left+C+T,n.top+n.height-(x+E))}}();!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"}(Qi||(Qi={}));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 Qi.TOP_LEFT:return new ga(new fa(e,c),new fa(e,c-s),new fa(l-o,t),new fa(l,t));case Qi.TOP_RIGHT:return new ga(new fa(e,t),new fa(e+o,t),new fa(l,c-s),new fa(l,c));case Qi.BOTTOM_RIGHT:return new ga(new fa(l,t),new fa(l,t+s),new fa(e+o,c),new fa(e,c));case Qi.BOTTOM_LEFT:default:return new ga(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]},_a=function(){return function(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}}(),wa=function(){return function(e,t){this.path=e,this.target=t,this.type=1}}(),xa=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=[]}}(),Ea=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 xa(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 _a(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 wa(a,6)):(this.effects.push(new wa(a,2)),this.effects.push(new wa(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 wa(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(t){return Kn(t.target,e)})},e}(),Ta=function(e,t,n,r){e.container.elements.forEach(function(i){var a=Kn(i.flags,4),o=Kn(i.flags,2),s=new Ea(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);Ta(s,u,a?u:n,l)}else i.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),Ta(s,t,n,l);Kn(i.flags,8)&&Ba(i,l)})},Ba=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 $r&&"number"==typeof a.container.value&&0!==a.container.value&&(n=a.container.value),a.listValue=Hi(n,a.container.styles.listStyleType,!0),n+=r?-1:1}},Ia=function(e,t){switch(t){case 0:return Pa(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Pa(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Pa(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Pa(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Ma=function(e,t){var n=[];return Aa(e)?n.push(e.subdivide(.5,!1)):n.push(e),Aa(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Pa=function(e,t,n,r){var i=[];return Aa(e)?i.push(e.subdivide(.5,!1)):i.push(e),Aa(n)?i.push(n.subdivide(.5,!0)):i.push(n),Aa(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),Aa(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))},Fa=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?Fa(i):Da(i)),o=function(e,t){return 0===e?t.bounds:2===e?Fa(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=Je(Ua(e.styles.backgroundPosition,t),a.width-l,a.height-c);return[ja(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 je(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($e(o)&&s&&$e(s))return[et(o,n.width),et(s,n.height)];var l=Ra(a);if(je(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 $e(o)?d=et(o,n.width):$e(s)&&(f=et(s,n.height)),La(o)?d=f*a:s&&!La(s)||(f=d/a),[d,f]}var p=null,g=null;if($e(o)?p=et(o,n.width):s&&$e(s)&&(g=et(s,n.height)),null===p||s&&!La(s)||(g=c&&u?p/r*i:n.height),null!==g&&La(o)&&(p=c&&u?g/i*r:n.width),null!==p&&null!==g)return[p,g];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},ja=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))]}},Ha=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}(),za=function(){return function(e,t){this.context=e,this.options=t}}(),Qa=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 Ha(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=$a(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=Fa(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,g,A,m,v,y,b,_;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 qr&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof Wr))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=qa(t.styles.textAlign),_=Fa(t),g=0,t.styles.textAlign){case 1:g+=_.width/2;break;case 2:g+=_.width}A=_.add(g,0,0,-_.height/2+1),this.ctx.save(),this.path([new fa(_.left,_.top),new fa(_.left+_.width,_.top),new fa(_.left+_.width,_.top+_.height),new fa(_.left,_.top+_.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Dr(t.value,A),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",_=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,_),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,g,A;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?(A=n[t],[4,this.renderStack(A)]):[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?(A=a[r],[4,this.renderNode(A)]):[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?(A=s[o],[4,this.renderStack(A)]):[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?(A=c[l],[4,this.renderStack(A)]):[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?(A=h[u],[4,this.renderNode(A)]):[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?(A=f[d],[4,this.renderStack(A)]):[3,26];case 24:i.sent(),i.label=25;case 25:return d++,[3,23];case 26:p=0,g=e.positiveZIndex,i.label=27;case 27:return p<g.length?(A=g[p],[4,this.renderStack(A)]):[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=Aa(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),Aa(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,g,A,m,v,y,b,_,w,x,C,S,k,E,T,B,I,M,P,D,F,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],E=s[2],x=s[3],C=s[4],v=r.ctx.createPattern(r.resizeImage(a,x,C),"repeat"),r.renderRepeat(b,v,k,E)),[3,6];case 5:1===n.type?(l=Oa(e,t,[null,null,null]),b=l[0],k=l[1],E=l[2],x=l[3],C=l[4],c=bt(n.angle,x,C),u=c[0],h=c[1],d=c[2],f=c[3],p=c[4],(g=document.createElement("canvas")).width=x,g.height=C,A=g.getContext("2d"),m=A.createLinearGradient(h,f,d,p),yt(n.stops,u).forEach(function(e){return m.addColorStop(e.stop,st(e.color))}),A.fillStyle=m,A.fillRect(0,0,x,C),x>0&&C>0&&(v=r.ctx.createPattern(g,"repeat"),r.renderRepeat(b,v,k,E))):function(e){return 2===e.type}(n)&&(y=Oa(e,t,[null,null,null]),b=y[0],_=y[1],w=y[2],x=y[3],C=y[4],S=0===n.position.length?[Xe]:n.position,k=et(S[0],x),E=et(S[S.length-1],C),T=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(_t(t,n),_t(t,n-i),_t(t-r,n),_t(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=wt(r,i,t,n,!0),c=l[0],u=l[1];o=s*(a=_t(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(_t(t,n),_t(t,n-i),_t(t-r,n),_t(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=wt(r,i,t,n,!1);c=h[0],u=h[1],o=s*(a=_t(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,E,x,C),B=T[0],I=T[1],B>0&&I>0&&(M=r.ctx.createRadialGradient(_+k,w+E,0,_+k,w+E,B),yt(n.stops,2*B).forEach(function(e){return M.addColorStop(e.stop,st(e.color))}),r.path(b),r.ctx.fillStyle=M,B!==I?(P=e.bounds.left+.5*e.bounds.width,D=e.bounds.top+.5*e.bounds.height,O=1/(F=I/B),r.ctx.save(),r.ctx.translate(P,D),r.ctx.transform(1,0,0,F,0,0),r.ctx.translate(-P,-D),r.ctx.fillRect(_,O*(w-D)+D,x,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 Pa(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Pa(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Pa(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Pa(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 Pa(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Pa(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Pa(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Pa(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,g,A,m,v,y,b,_;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()),Aa(s[0])?(l=s[0].start.x,c=s[0].start.y):(l=s[0].x,c=s[0].y),Aa(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),g=!0,d<=2*f?g=!1:d<=2*f+p?(f*=A=d/(2*f+p),p*=A):(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),g&&(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&&(Aa(s[0])&&(b=s[3],_=s[0],this.ctx.beginPath(),this.formatPath([new fa(b.end.x,b.end.y),new fa(_.start.x,_.start.y)]),this.ctx.stroke()),Aa(s[1])&&(b=s[1],_=s[2],this.ctx.beginPath(),this.formatPath([new fa(b.end.x,b.end.y),new fa(_.start.x,_.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 Ea(e,null),i=new ka(r),Ta(r,i,i,a=[]),Ba(r.container,a),t=i,[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}var r,i,a})})},n}(za),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)}},qa=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Wa=["-apple-system","system-ui"],$a=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return-1===Wa.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}(za),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}(),Za=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 Ja=function(e,t){return r(void 0,void 0,void 0,function(){var r,a,l,c,u,h,d,f,p,g,A,m,v,y,b,_,w,x,C,S,k,E,T,B,I,M,P,D,F,O,L,R,N,U,j,H,z,Q;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!==(E=t.allowTaint)&&void 0!==E&&E,imageTimeout:null!==(T=t.imageTimeout)&&void 0!==T?T:15e3,proxy:t.proxy,useCORS:null!==(B=t.useCORS)&&void 0!==B&&B},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!==(P=t.windowHeight)&&void 0!==P?P:a.innerHeight,scrollX:null!==(D=t.scrollX)&&void 0!==D?D:a.pageXOffset,scrollY:null!==(F=t.scrollY)&&void 0!==F?F:a.pageYOffset},h=new o(u.scrollX,u.scrollY,u.windowWidth,u.windowHeight),d=new Za(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),g=new zi(d,e,p),(A=g.clonedReferenceElement)?[4,g.toIFrame(r,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=i.sent(),v=_i(A)||"HTML"===A.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)}(A.ownerDocument):s(d,A),y=v.width,b=v.height,_=v.left,w=v.top,x=eo(d,A,t.backgroundColor),C={canvas:t.canvas,backgroundColor:x,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)+_,y:(null!==(j=t.y)&&void 0!==j?j:0)+w,width:null!==(H=t.width)&&void 0!==H?H:Math.ceil(y),height:null!==(z=t.height)&&void 0!==z?z:Math.ceil(b)},f?(d.logger.debug("Document cloned, using foreign object rendering"),[4,new Ka(d,C).render(A)]):[3,3];case 2:return S=i.sent(),[3,5];case 3:return d.logger.debug("Document cloned, element located at "+_+","+w+" with size "+y+"x"+b+" using computed rendering"),d.logger.debug("Starting DOM parsing"),k=ui(d,A),x===k.styles.backgroundColor&&(k.styles.backgroundColor=gt.TRANSPARENT),d.logger.debug("Starting renderer for element at "+C.x+","+C.y+" with size "+C.width+"x"+C.height),[4,new Qa(d,C).render(k)];case 4:S=i.sent(),i.label=5;case 5:return(null===(Q=t.removeContainer)||void 0===Q||Q)&&(zi.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):gt.TRANSPARENT,a=r.body?pt(e,getComputedStyle(r.body).backgroundColor):gt.TRANSPARENT,o="string"==typeof n?pt(e,n):null===n?gt.TRANSPARENT:4294967295;return t===r.documentElement?ot(i)?ot(a)?o:a:i:o};return function(e,t){return void 0===t&&(t={}),Ja(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"],g=u(p,3),A=u(f,3);a.i18n={dayNamesShort:A,dayNames:f,monthNamesShort:g,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,g=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||g.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):p=new Date(i.year||g.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)}()},efRz:function(e,t,n){"use strict";var r=n("+N5+").isSpace;function i(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function a(e){var t,n=[],r=0,i=e.length,a=!1,o=0,s="";for(t=e.charCodeAt(r);r<i;)124===t&&(a?(s+=e.substring(o,r-1),o=r):(n.push(s+e.substring(o,r)),s="",o=r+1)),a=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(o)),n}e.exports=function(e,t,n,o){var s,l,c,u,h,d,f,p,g,A,m,v,y,b,_,w,x,C;if(t+2>n)return!1;if(d=t+1,e.sCount[d]<e.blkIndent)return!1;if(e.sCount[d]-e.blkIndent>=4)return!1;if((c=e.bMarks[d]+e.tShift[d])>=e.eMarks[d])return!1;if(124!==(x=e.src.charCodeAt(c++))&&45!==x&&58!==x)return!1;if(c>=e.eMarks[d])return!1;if(124!==(C=e.src.charCodeAt(c++))&&45!==C&&58!==C&&!r(C))return!1;if(45===x&&r(C))return!1;for(;c<e.eMarks[d];){if(124!==(s=e.src.charCodeAt(c))&&45!==s&&58!==s&&!r(s))return!1;c++}for(f=(l=i(e,t+1)).split("|"),A=[],u=0;u<f.length;u++){if(!(m=f[u].trim())){if(0===u||u===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;58===m.charCodeAt(m.length-1)?A.push(58===m.charCodeAt(0)?"center":"right"):58===m.charCodeAt(0)?A.push("left"):A.push("")}if(-1===(l=i(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((f=a(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),0===(p=f.length)||p!==A.length)return!1;if(o)return!0;for(b=e.parentType,e.parentType="table",w=e.md.block.ruler.getRules("blockquote"),(g=e.push("table_open","table",1)).map=v=[t,0],(g=e.push("thead_open","thead",1)).map=[t,t+1],(g=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u<f.length;u++)g=e.push("th_open","th",1),A[u]&&(g.attrs=[["style","text-align:"+A[u]]]),(g=e.push("inline","",0)).content=f[u].trim(),g.children=[],g=e.push("th_close","th",-1);for(g=e.push("tr_close","tr",-1),g=e.push("thead_close","thead",-1),d=t+2;d<n&&!(e.sCount[d]<e.blkIndent);d++){for(_=!1,u=0,h=w.length;u<h;u++)if(w[u](e,d,n,!0)){_=!0;break}if(_)break;if(!(l=i(e,d).trim()))break;if(e.sCount[d]-e.blkIndent>=4)break;for((f=a(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),d===t+2&&((g=e.push("tbody_open","tbody",1)).map=y=[t+2,0]),(g=e.push("tr_open","tr",1)).map=[d,d+1],u=0;u<p;u++)g=e.push("td_open","td",1),A[u]&&(g.attrs=[["style","text-align:"+A[u]]]),(g=e.push("inline","",0)).content=f[u]?f[u].trim():"",g.children=[],g=e.push("td_close","td",-1);g=e.push("tr_close","tr",-1)}return y&&(g=e.push("tbody_close","tbody",-1),y[1]=d),g=e.push("table_close","table",-1),v[1]=d,e.parentType=b,e.line=d,!0}},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")})}}},f64w:function(e,t,n){var r=n("To6e"),i=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int),a=(r.new_int_n,r.assert,n("0mjX"));e.exports=function(){this.tt=[[null,null],[null,null]],this.main_data_begin=0,this.private_bits=0,this.resvDrain_pre=0,this.resvDrain_post=0,this.scfsi=[i(4),i(4)];for(var e=0;e<2;e++)for(var t=0;t<2;t++)this.tt[e][t]=new a}},fBQ2:function(e,t,n){"use strict";var r=n("evD5"),i=n("X8DO");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},"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=132)}({132: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)}}}},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"),g=n("crlp"),A=n("Xc4G"),m=n("7UMu"),v=n("77Pl"),y=n("EqjI"),b=n("sB3e"),_=n("TcQ7"),w=n("MmMw"),x=n("X8DO"),C=n("Yobk"),S=n("Rrel"),k=n("LKZe"),E=n("1kS7"),T=n("evD5"),B=n("lktj"),I=k.f,M=T.f,P=S.f,D=r.Symbol,F=r.JSON,O=F&&F.stringify,L=f("_hidden"),R=f("toPrimitive"),N={}.propertyIsEnumerable,U=u("symbol-registry"),j=u("symbols"),H=u("op-symbols"),z=Object.prototype,Q="function"==typeof D&&!!E.f,V=r.QObject,G=!V||!V.prototype||!V.prototype.findChild,q=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(z,t);r&&delete z[t],M(e,t,n),r&&e!==z&&M(z,t,r)}:M,W=function(e){var t=j[e]=C(D.prototype);return t._k=e,t},$=Q&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},K=function(e,t,n){return e===z&&K(H,t,n),v(e),t=w(t,!0),v(n),i(j,t)?(n.enumerable?(i(e,L)&&e[L][t]&&(e[L][t]=!1),n=C(n,{enumerable:x(0,!1)})):(i(e,L)||M(e,L,x(1,{})),e[L][t]=!0),q(e,t,n)):M(e,t,n)},Y=function(e,t){v(e);for(var n,r=A(t=_(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=w(e,!0));return!(this===z&&i(j,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,L)&&this[L][e])||t)},Z=function(e,t){if(e=_(e),t=w(t,!0),e!==z||!i(j,t)||i(H,t)){var n=I(e,t);return!n||!i(j,t)||i(e,L)&&e[L][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=P(_(e)),r=[],a=0;n.length>a;)i(j,t=n[a++])||t==L||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===z,r=P(n?H:_(e)),a=[],o=0;r.length>o;)!i(j,t=r[o++])||n&&!i(z,t)||a.push(j[t]);return a};Q||(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===z&&t.call(H,n),i(this,L)&&i(this[L],e)&&(this[L][e]=!1),q(this,e,x(1,n))};return a&&G&&q(z,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),k.f=Z,T.f=K,n("n0T6").f=S.f=J,n("NpIQ").f=X,E.f=ee,a&&!n("O4g8")&&s(z,"propertyIsEnumerable",X,!0),p.f=function(e){return W(f(e))}),o(o.G+o.W+o.F*!Q,{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=B(f.store),ie=0;re.length>ie;)g(re[ie++]);o(o.S+o.F*!Q,"Symbol",{for:function(e){return i(U,e+="")?U[e]:U[e]=D(e)},keyFor:function(e){if(!$(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*!Q,"Object",{create:function(e,t){return void 0===t?C(e):Y(C(e),t)},defineProperty:K,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee});var ae=c(function(){E.f(1)});o(o.S+o.F*ae,"Object",{getOwnPropertySymbols:function(e){return E.f(b(e))}}),F&&o(o.S+o.F*(!Q||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)&&!$(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!$(t))return t}),r[1]=t,O.apply(F,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}},fd8M:function(e,t){e.exports=function(){this.sum=0,this.seen=0,this.want=0,this.pos=0,this.size=0,this.bag=null,this.nVbrNumFrames=0,this.nBytesWritten=0,this.TotalFrameSize=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,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},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)}},gEWq:function(e,t,n){"use strict";var r=n("1b2O"),i=n("+N5+").isWhiteSpace,a=n("+N5+").isPunctChar,o=n("+N5+").isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n),a=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(a),i},s.prototype.scanDelims=function(e,t){var n,r,s,l,c,u,h,d,f,p=e,g=!0,A=!0,m=this.posMax,v=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;p<m&&this.src.charCodeAt(p)===v;)p++;return s=p-e,r=p<m?this.src.charCodeAt(p):32,h=o(n)||a(String.fromCharCode(n)),f=o(r)||a(String.fromCharCode(r)),u=i(n),(d=i(r))?g=!1:f&&(u||h||(g=!1)),u?A=!1:h&&(d||f||(A=!1)),t?(l=g,c=A):(l=g&&(!A||h),c=A&&(!g||f)),{can_open:l,can_close:c,length:s}},s.prototype.Token=r,e.exports=s},gRE1:function(e,t,n){e.exports={default:n("TmV0"),__esModule:!0}},gaXx:function(e,t,n){var r;!function(i){"use strict";var a,o=20,s=1,l=-7,c=21,u=!1,h="[big.js] ",d=h+"Invalid ",f=d+"decimal places",p=d+"rounding mode",g={},A=void 0,m=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function v(e,t,n,r){var i=e.c;if(n===A&&(n=e.constructor.RM),0!==n&&1!==n&&2!==n&&3!==n)throw Error(p);if(t<1)r=3===n&&(r||!!i[0])||0===t&&(1===n&&i[0]>=5||2===n&&(i[0]>5||5===i[0]&&(r||i[1]!==A))),i.length=1,r?(e.e=e.e-t+1,i[0]=1):i[0]=e.e=0;else if(t<i.length){if(r=1===n&&i[t]>=5||2===n&&(i[t]>5||5===i[t]&&(r||i[t+1]!==A||1&i[t-1]))||3===n&&(r||!!i[0]),i.length=t,r)for(;++i[--t]>9;)if(i[t]=0,0===t){++e.e,i.unshift(1);break}for(t=i.length;!i[--t];)i.pop()}return e}function y(e,t,n){var r=e.e,i=e.c.join(""),a=i.length;if(t)i=i.charAt(0)+(a>1?"."+i.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)i="0"+i;i="0."+i}else if(r>0)if(++r>a)for(r-=a;r--;)i+="0";else r<a&&(i=i.slice(0,r)+"."+i.slice(r));else a>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&n?"-"+i:i}g.abs=function(){var e=new this.constructor(this);return e.s=1,e},g.cmp=function(e){var t,n=this,r=n.c,i=(e=new n.constructor(e)).c,a=n.s,o=e.s,s=n.e,l=e.e;if(!r[0]||!i[0])return r[0]?a:i[0]?-o:0;if(a!=o)return a;if(t=a<0,s!=l)return s>l^t?1:-1;for(o=(s=r.length)<(l=i.length)?s:l,a=-1;++a<o;)if(r[a]!=i[a])return r[a]>i[a]^t?1:-1;return s==l?0:s>l^t?1:-1},g.div=function(e){var t=this,n=t.constructor,r=t.c,i=(e=new n(e)).c,a=t.s==e.s?1:-1,o=n.DP;if(o!==~~o||o<0||o>1e6)throw Error(f);if(!i[0])throw Error("[big.js] Division by zero");if(!r[0])return e.s=a,e.c=[e.e=0],e;var s,l,c,u,h,d=i.slice(),p=s=i.length,g=r.length,m=r.slice(0,s),y=m.length,b=e,_=b.c=[],w=0,x=o+(b.e=t.e-e.e)+1;for(b.s=a,a=x<0?0:x,d.unshift(0);y++<s;)m.push(0);do{for(c=0;c<10;c++){if(s!=(y=m.length))u=s>y?1:-1;else for(h=-1,u=0;++h<s;)if(i[h]!=m[h]){u=i[h]>m[h]?1:-1;break}if(!(u<0))break;for(l=y==s?i:d;y;){if(m[--y]<l[y]){for(h=y;h&&!m[--h];)m[h]=9;--m[h],m[y]+=10}m[y]-=l[y]}for(;!m[0];)m.shift()}_[w++]=u?c:++c,m[0]&&u?m[y]=r[p]||0:m=[r[p]]}while((p++<g||m[0]!==A)&&a--);return _[0]||1==w||(_.shift(),b.e--,x--),w>x&&v(b,x,n.RM,m[0]!==A),b},g.eq=function(e){return 0===this.cmp(e)},g.gt=function(e){return this.cmp(e)>0},g.gte=function(e){return this.cmp(e)>-1},g.lt=function(e){return this.cmp(e)<0},g.lte=function(e){return this.cmp(e)<1},g.minus=g.sub=function(e){var t,n,r,i,a=this,o=a.constructor,s=a.s,l=(e=new o(e)).s;if(s!=l)return e.s=-l,a.plus(e);var c=a.c.slice(),u=a.e,h=e.c,d=e.e;if(!c[0]||!h[0])return h[0]?e.s=-l:c[0]?e=new o(a):e.s=1,e;if(s=u-d){for((i=s<0)?(s=-s,r=c):(d=u,r=h),r.reverse(),l=s;l--;)r.push(0);r.reverse()}else for(n=((i=c.length<h.length)?c:h).length,s=l=0;l<n;l++)if(c[l]!=h[l]){i=c[l]<h[l];break}if(i&&(r=c,c=h,h=r,e.s=-e.s),(l=(n=h.length)-(t=c.length))>0)for(;l--;)c[t++]=0;for(l=t;n>s;){if(c[--n]<h[n]){for(t=n;t&&!c[--t];)c[t]=9;--c[t],c[n]+=10}c[n]-=h[n]}for(;0===c[--l];)c.pop();for(;0===c[0];)c.shift(),--d;return c[0]||(e.s=1,c=[d=0]),e.c=c,e.e=d,e},g.mod=function(e){var t,n=this,r=n.constructor,i=n.s,a=(e=new r(e)).s;if(!e.c[0])throw Error("[big.js] Division by zero");return n.s=e.s=1,t=1==e.cmp(n),n.s=i,e.s=a,t?new r(n):(i=r.DP,a=r.RM,r.DP=r.RM=0,n=n.div(e),r.DP=i,r.RM=a,this.minus(n.times(e)))},g.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},g.plus=g.add=function(e){var t,n,r,i=this,a=i.constructor;if(e=new a(e),i.s!=e.s)return e.s=-e.s,i.minus(e);var o=i.e,s=i.c,l=e.e,c=e.c;if(!s[0]||!c[0])return c[0]||(s[0]?e=new a(i):e.s=i.s),e;if(s=s.slice(),t=o-l){for(t>0?(l=o,r=c):(t=-t,r=s),r.reverse();t--;)r.push(0);r.reverse()}for(s.length-c.length<0&&(r=c,c=s,s=r),t=c.length,n=0;t;s[t]%=10)n=(s[--t]=s[t]+c[t]+n)/10|0;for(n&&(s.unshift(n),++l),t=s.length;0===s[--t];)s.pop();return e.c=s,e.e=l,e},g.pow=function(e){var t=this,n=new t.constructor("1"),r=n,i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(d+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?n.div(r):r},g.prec=function(e,t){if(e!==~~e||e<1||e>1e6)throw Error(d+"precision");return v(new this.constructor(this),e,t)},g.round=function(e,t){if(e===A)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(f);return v(new this.constructor(this),e+this.e+1,t)},g.sqrt=function(){var e,t,n,r=this,i=r.constructor,a=r.s,o=r.e,s=new i("0.5");if(!r.c[0])return new i(r);if(a<0)throw Error(h+"No square root");0===(a=Math.sqrt(r+""))||a===1/0?((t=r.c.join("")).length+o&1||(t+="0"),a=Math.sqrt(t),o=((o+1)/2|0)-(o<0||1&o),e=new i((a==1/0?"5e":(a=a.toExponential()).slice(0,a.indexOf("e")+1))+o)):e=new i(a+""),o=e.e+(i.DP+=4);do{n=e,e=s.times(n.plus(r.div(n)))}while(n.c.slice(0,o).join("")!==e.c.slice(0,o).join(""));return v(e,(i.DP-=4)+e.e+1,i.RM)},g.times=g.mul=function(e){var t,n=this,r=n.constructor,i=n.c,a=(e=new r(e)).c,o=i.length,s=a.length,l=n.e,c=e.e;if(e.s=n.s==e.s?1:-1,!i[0]||!a[0])return e.c=[e.e=0],e;for(e.e=l+c,o<s&&(t=i,i=a,a=t,c=o,o=s,s=c),t=new Array(c=o+s);c--;)t[c]=0;for(l=s;l--;){for(s=0,c=o+l;c>l;)s=t[c]+a[l]*i[c-l-1]+s,t[c--]=s%10,s=s/10|0;t[c]=s}for(s?++e.e:t.shift(),l=t.length;!t[--l];)t.pop();return e.c=t,e},g.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==A){if(e!==~~e||e<0||e>1e6)throw Error(f);for(n=v(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return y(n,!0,!!r)},g.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==A){if(e!==~~e||e<0||e>1e6)throw Error(f);for(e=e+(n=v(new n.constructor(n),e+n.e+1,t)).e+1;n.c.length<e;)n.c.push(0)}return y(n,!1,!!r)},g.toJSON=g.toString=function(){var e=this,t=e.constructor;return y(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},g.toNumber=function(){var e=Number(y(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(h+"Imprecise conversion");return e},g.toPrecision=function(e,t){var n=this,r=n.constructor,i=n.c[0];if(e!==A){if(e!==~~e||e<1||e>1e6)throw Error(d+"precision");for(n=v(new r(n),e,t);n.c.length<e;)n.c.push(0)}return y(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!i)},g.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(h+"valueOf disallowed");return y(e,e.e<=t.NE||e.e>=t.PE,!0)},(a=function e(){function t(n){var r=this;if(!(r instanceof t))return n===A?e():new t(n);if(n instanceof t)r.s=n.s,r.e=n.e,r.c=n.c.slice();else{if("string"!=typeof n){if(!0===t.strict&&"bigint"!=typeof n)throw TypeError(d+"value");n=0===n&&1/n<0?"-0":String(n)}!function(e,t){var n,r,i;if(!m.test(t))throw Error(d+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),i=t.length,r=0;r<i&&"0"==t.charAt(r);)++r;if(r==i)e.c=[e.e=0];else{for(;i>0&&"0"==t.charAt(--i););for(e.e=n-r-1,e.c=[],n=0;r<=i;)e.c[n++]=+t.charAt(r++)}}(r,n)}r.constructor=t}return t.prototype=g,t.DP=o,t.RM=s,t.NE=l,t.PE=c,t.strict=u,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}()).default=a.Big=a,void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},gxby:function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},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}}},hCci:function(e,t,n){"use strict";var r=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;e.exports=function(e,t){var n,i,a,o,s,l,c;return!!e.md.options.linkify&&(!(e.linkLevel>0)&&(!((n=e.pos)+3>e.posMax)&&(58===e.src.charCodeAt(n)&&(47===e.src.charCodeAt(n+1)&&(47===e.src.charCodeAt(n+2)&&(!!(i=e.pending.match(r))&&(a=i[1],!!(o=e.md.linkify.matchAtStart(e.src.slice(n-a.length)))&&(s=(s=o.url).replace(/\*+$/,""),l=e.md.normalizeLink(s),!!e.md.validateLink(l)&&(t||(e.pending=e.pending.slice(0,-a.length),(c=e.push("link_open","a",1)).attrs=[["href",l]],c.markup="linkify",c.info="auto",(c=e.push("text","",0)).content=e.md.normalizeLinkText(s),(c=e.push("link_close","a",-1)).markup="linkify",c.info="auto"),e.pos+=s.length-a.length,!0)))))))))}},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},hiCB:function(e,t,n){e.exports={default:n("dSOO"),__esModule:!0}},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},"i0+k":function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,a,o,s,l,c,u,h=!1,d=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>f)return!1;if(126!==(i=e.src.charCodeAt(d))&&96!==i)return!1;if(l=d,(a=(d=e.skipChars(d,i))-l)<3)return!1;if(u=e.src.slice(l,d),o=e.src.slice(d,f),96===i&&o.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&!((d=l=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(d)===i&&!(e.sCount[s]-e.blkIndent>=4||(d=e.skipChars(d,i))-l<a||(d=e.skipSpaces(d))<f)){h=!0;break}return a=e.sCount[t],e.line=s+(h?1:0),(c=e.push("fence","code",0)).info=o,c.content=e.getLines(t+1,s,a,!0),c.markup=u,c.map=[t,e.line],!0}},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"))},iwQb:function(e,t,n){"use strict";var r=n("POKh");t.a=function(e){var t=e.createLoadingTask,n=e.PDFJSWrapper;return{createLoadingTask:t,render:function(e){return e("span",{attrs:{style:"position: relative; display: block"}},[e("canvas",{attrs:{style:"display: inline-block; width: 100%; height: 100%; vertical-align: top"},ref:"canvas"}),e("span",{style:"display: inline-block; width: 100%; height: 100%",class:"annotationLayer",ref:"annotationLayer"}),e(r.a,{props:{initial:!0},on:{resize:this.resize}})])},props:{src:{type:[String,Object,Uint8Array],default:""},page:{type:Number,default:1},rotate:{type:Number}},watch:{src:function(){this.pdf.loadDocument(this.src)},page:function(){this.pdf.loadPage(this.page,this.rotate)},rotate:function(){this.pdf.renderPage(this.rotate)}},methods:{resize:function(e){if(null!==this.$el.parentNode&&(0!==e.width||0!==e.height)){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(this.$refs.canvas.height/this.$refs.canvas.width)+"px";var t=this.pdf.getResolutionScale();(t<.85||t>1.15)&&this.pdf.renderPage(this.rotate)}},print:function(e,t){this.pdf.printPage(e,t)}},mounted:function(){this.pdf=new n(this.$refs.canvas,this.$refs.annotationLayer,this.$emit.bind(this)),this.$on("loaded",function(){this.pdf.loadPage(this.page,this.rotate)}),this.$on("page-size",function(e,t){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(t/e)+"px"}),this.pdf.loadDocument(this.src)},destroyed:function(){this.pdf.destroy()}}}},jFbC:function(e,t,n){n("Cdx3"),e.exports=n("FeBl").Object.keys},jKIj:function(e,t,n){var r=n("To6e").assert;e.exports=function(){var e;this.setModules=function(t){e=t},this.ResvFrameBegin=function(t,n){var i,a=t.internal_flags,o=a.l3_side,s=e.getframebits(t);n.bits=(s-8*a.sideinfo_len)/a.mode_gr;var l=2048*a.mode_gr-8;t.brate>320?i=8*int(1e3*t.brate/(t.out_samplerate/1152)/8+.5):(i=11520,t.strict_ISO&&(i=8*int(32e4/(t.out_samplerate/1152)/8+.5))),a.ResvMax=i-s,a.ResvMax>l&&(a.ResvMax=l),(a.ResvMax<0||t.disable_reservoir)&&(a.ResvMax=0);var c=n.bits*a.mode_gr+Math.min(a.ResvSize,a.ResvMax);return c>i&&(c=i),r(0==a.ResvMax%8),r(a.ResvMax>=0),o.resvDrain_pre=0,null!=a.pinfo&&(a.pinfo.mean_bits=n.bits/2,a.pinfo.resvsize=a.ResvSize),c},this.ResvMaxBits=function(e,t,n,r){var i,a=e.internal_flags,o=a.ResvSize,s=a.ResvMax;0!=r&&(o+=t),0!=(1&a.substep_shaping)&&(s*=.9),n.bits=t,10*o>9*s?(i=o-9*s/10,n.bits+=i,a.substep_shaping|=128):(i=0,a.substep_shaping&=127,e.disable_reservoir||0!=(1&a.substep_shaping)||(n.bits-=.1*t));var l=o<6*a.ResvMax/10?o:6*a.ResvMax/10;return(l-=i)<0&&(l=0),l},this.ResvAdjust=function(e,t){e.ResvSize-=t.part2_3_length+t.part2_length},this.ResvFrameEnd=function(e,t){var n,i=e.l3_side;e.ResvSize+=t*e.mode_gr;var a=0;i.resvDrain_post=0,i.resvDrain_pre=0,0!=(n=e.ResvSize%8)&&(a+=n),(n=e.ResvSize-a-e.ResvMax)>0&&(r(0==n%8),r(n>=0),a+=n);var o=Math.min(8*i.main_data_begin,a)/8;i.resvDrain_pre+=8*o,a-=8*o,e.ResvSize-=8*o,i.main_data_begin-=o,i.resvDrain_post+=a,e.ResvSize-=a}}},"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}})},jgMU:function(e,t,n){"use strict";e.exports=n("ukGi")},jhNZ:function(e,t,n){var r=n("/00o"),i={};i.SFBMAX=3*r.SBMAX_s,e.exports=i},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 g=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 A=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:g,whitespace:A,type:function(e,t,n,r,i){if(e.required&&void 0===t)g(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 _="enum";var w=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)},x={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[_](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:w,hex:w,email:w,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 g=void 0,A=void 0,m={};(s.keys||Object.keys(this.rules)).forEach(function(n){g=t.rules[n],A=a[n],g.forEach(function(r){var o=r;"function"==typeof o.transform&&(a===e&&(a=i()({},a)),A=a[n]=o.transform(A)),(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:A,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 g=new k(u);g.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),g.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&&!x.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]?x.required:x[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");x[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,g=e&l.P,A=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]:A&&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):g&&"function"==typeof h?a(Function.call,h):h,g&&((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})},15:function(e,t){e.exports=n("fEB+")},19: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(15),s=n.n(o),l=n(19),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)])}},g=n(0),A=Object(g.a)(p,void 0,void 0,!1,null,null,null);A.options.__file="packages/cascader-panel/src/cascader-node.vue";var m=A.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(g.a)(y,void 0,void 0,!1,null,null,null);b.options.__file="packages/cascader-panel/src/cascader-menu.vue";var _=b.exports,w=n(21),x=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")))},x(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(w.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){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},e}(),E=n(9),T=n.n(E),B=n(40),I=n.n(B),M=n(31),P=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},F=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())},j={name:"ElCascaderPanel",components:{CascaderMenu:_},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 T()(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(){this.isEmptyValue(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)})},isEmptyValue:function(e){var t=this.multiple,n=this.config.emitPath;return!(!t&&!n)&&Object(d.isEmpty)(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(d.isEmpty)(r))if(this.isEmptyValue(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 F.up:var n=R(t,-1);U(n);break;case F.down:var r=R(t,1);U(r);break;case F.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 F.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 F.enter:!function(e){if(e){var t=e.querySelector("input");t?t.click():L(e)&&e.click()}}(t);break;case F.esc:case F.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");P()(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}):this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter(function(e){return!e.isDisabled}).forEach(function(e){return e.doCheck(!1)}),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},H=Object(g.a)(j,r,[],!1,null,null,null);H.options.__file="packages/cascader-panel/src/cascader-panel.vue";var z=H.exports;z.install=function(e){e.component(z.name,z)};t.default=z},6:function(e,t){e.exports=n("y+7x")},9:function(e,t){e.exports=n("jmaC")}})},kheW:function(e,t,n){var r=n("To6e"),i=(r.System,r.VbrMode),a=r.Float,o=r.ShortBlock,s=r.Util,l=r.Arrays,c=(r.new_array_n,r.new_byte,r.new_double,r.new_float),u=r.new_float_n,h=r.new_int,d=(r.new_int_n,r.assert),f=n("Hbx0"),p=n("/00o");e.exports=function(){var e=n("ZezE"),t=new f,r=2.302585092994046,g=2,A=16,m=2,v=16,y=.34,b=1/217621504/(p.BLKSIZE/2),_=.3,w=21,x=.2302585093;function C(e){return e}function S(e,t){for(var n=0,r=0;r<p.BLKSIZE/2;++r)n+=e[r]*t.ATH.eql_w[r];return n*=b}function k(e,n,r,i,a,o,l,c,u,h,d){var f=e.internal_flags;if(u<2)t.fft_long(f,i[a],u,h,d),t.fft_short(f,o[l],u,h,d);else if(2==u){for(var g=p.BLKSIZE-1;g>=0;--g){var A=i[a+0][g],m=i[a+1][g];i[a+0][g]=(A+m)*s.SQRT2*.5,i[a+1][g]=(A-m)*s.SQRT2*.5}for(var v=2;v>=0;--v)for(g=p.BLKSIZE_s-1;g>=0;--g)A=o[l+0][v][g],m=o[l+1][v][g],o[l+0][v][g]=(A+m)*s.SQRT2*.5,o[l+1][v][g]=(A-m)*s.SQRT2*.5}for(n[0]=C(i[a+0][0]),n[0]*=n[0],g=p.BLKSIZE/2-1;g>=0;--g){var y=i[a+0][p.BLKSIZE/2-g],b=i[a+0][p.BLKSIZE/2+g];n[p.BLKSIZE/2-g]=C(.5*(y*y+b*b))}for(v=2;v>=0;--v)for(r[v][0]=o[l+0][v][0],r[v][0]*=r[v][0],g=p.BLKSIZE_s/2-1;g>=0;--g)y=o[l+0][v][p.BLKSIZE_s/2-g],b=o[l+0][v][p.BLKSIZE_s/2+g],r[v][p.BLKSIZE_s/2-g]=C(.5*(y*y+b*b));var _=0;for(g=11;g<p.HBLKSIZE;g++)_+=n[g];if(f.tot_ener[u]=_,e.analysis){for(g=0;g<p.HBLKSIZE;g++)f.pinfo.energy[c][u][g]=f.pinfo.energy_save[u][g],f.pinfo.energy_save[u][g]=n[g];f.pinfo.pe[c][u]=f.pe[u]}2==e.athaa_loudapprox&&u<2&&(f.loudness_sq[c][u]=f.loudness_sq_save[u],f.loudness_sq_save[u]=S(n,f))}var E,T,B,I=8,M=23,P=15,D=[1,.79433,.63096,.63096,.63096,.63096,.63096,.25119,.11749],F=[3.3246*3.3246,3.23837*3.23837,9.9500500969,9.0247369744,8.1854926609,7.0440875649,2.46209*2.46209,2.284*2.284,4.4892710641,1.96552*1.96552,1.82335*1.82335,1.69146*1.69146,2.4621061921,2.1508568964,1.37074*1.37074,1.31036*1.31036,1.5691069696,1.4555939904,1.16203*1.16203,1.2715945225,1.09428*1.09428,1.0659*1.0659,1.0779838276,1.0382591025,1],O=[1.7782755904,1.35879*1.35879,1.38454*1.38454,1.39497*1.39497,1.40548*1.40548,1.3537*1.3537,1.6999465924,1.22321*1.22321,1.3169398564,1],L=[5.5396212496,2.29259*2.29259,4.9868695969,2.12675*2.12675,2.02545*2.02545,1.87894*1.87894,1.74303*1.74303,1.61695*1.61695,2.2499700001,1.39148*1.39148,1.29083*1.29083,1.19746*1.19746,1.2339655056,1.0779838276];function R(e,t,n,r,i,a){var o,l,c;if(t>e){if(!(t<e*T))return e+t;o=t/e}else{if(e>=t*T)return e+t;o=e/t}if(d(e>=0),d(t>=0),e+=t,r+3<=6){if(o>=E)return e;var u=0|s.FAST_LOG10_X(o,16);return e*O[u]}return u=0|s.FAST_LOG10_X(o,16),t=0!=a?i.ATH.cb_s[n]*i.ATH.adjust:i.ATH.cb_l[n]*i.ATH.adjust,d(t>=0),e<B*t?e>t?(l=1,u<=13&&(l=L[u]),c=s.FAST_LOG10_X(e/t,10/15),e*((F[u]-l)*c+l)):u>13?e:e*L[u]:e*F[u]}var N=[1.7782755904,1.35879*1.35879,1.38454*1.38454,1.39497*1.39497,1.40548*1.40548,1.3537*1.3537,1.6999465924,1.22321*1.22321,1.3169398564,1];function U(e,t,n){var r;if(e<0&&(e=0),t<0&&(t=0),e<=0)return t;if(t<=0)return e;if(r=t>e?t/e:e/t,-2<=n&&n<=2){if(r>=E)return e+t;var i=0|s.FAST_LOG10_X(r,16);return(e+t)*N[i]}return r<T?e+t:(e<t&&(e=t),e)}function j(e,t,n,r,i){var a,o,s=0,l=0;for(a=o=0;a<p.SBMAX_s;++o,++a){for(var c=e.bo_s[a],u=e.npart_s,h=c<u?c:u;o<h;)d(t[o]>=0),d(n[o]>=0),s+=t[o],l+=n[o],o++;if(e.en[r].s[a][i]=s,e.thm[r].s[a][i]=l,o>=u){++a;break}d(t[o]>=0),d(n[o]>=0);var f=e.PSY.bo_s_weight[a],g=1-f;s=f*t[o],l=f*n[o],e.en[r].s[a][i]+=s,e.thm[r].s[a][i]+=l,s=g*t[o],l=g*n[o]}for(;a<p.SBMAX_s;++a)e.en[r].s[a][i]=0,e.thm[r].s[a][i]=0}function H(e,t,n,r){var i,a,o=0,s=0;for(i=a=0;i<p.SBMAX_l;++a,++i){for(var l=e.bo_l[i],c=e.npart_l,u=l<c?l:c;a<u;)d(t[a]>=0),d(n[a]>=0),o+=t[a],s+=n[a],a++;if(e.en[r].l[i]=o,e.thm[r].l[i]=s,a>=c){++i;break}d(t[a]>=0),d(n[a]>=0);var h=e.PSY.bo_l_weight[i],f=1-h;o=h*t[a],s=h*n[a],e.en[r].l[i]+=o,e.thm[r].l[i]+=s,o=f*t[a],s=f*n[a]}for(;i<p.SBMAX_l;++i)e.en[r].l[i]=0,e.thm[r].l[i]=0}function z(e,t,n,r,i,a){var o,s,l=e.internal_flags;for(s=o=0;s<l.npart_s;++s){for(var c=0,u=0,h=l.numlines_s[s],f=0;f<h;++f,++o){var g=t[a][o];c+=g,u<g&&(u=g)}n[s]=c}for(d(s==l.npart_s),d(129==o),o=s=0;s<l.npart_s;s++){var A=l.s3ind_s[s][0],y=l.s3_ss[o++]*n[A];for(++A;A<=l.s3ind_s[s][1];)y+=l.s3_ss[o]*n[A],++o,++A;var b=m*l.nb_s1[i][s];if(r[s]=Math.min(y,b),l.blocktype_old[1&i]==p.SHORT_TYPE){b=v*l.nb_s2[i][s];var _=r[s];r[s]=Math.min(b,_)}l.nb_s2[i][s]=l.nb_s1[i][s],l.nb_s1[i][s]=y,d(r[s]>=0)}for(;s<=p.CBANDS;++s)n[s]=0,r[s]=0}function Q(e,t,n){return n>=1?e:n<=0?t:t>0?Math.pow(e/t,n)*t:0}var V=[11.8,13.6,17.2,32,46.5,51.3,57.5,67.1,71.5,84.6,97.6,130];function G(e,t){for(var n=309.07,i=0;i<p.SBMAX_s-1;i++)for(var a=0;a<3;a++){var o=e.thm.s[i][a];if(d(i<V.length),o>0){var l=o*t,c=e.en.s[i][a];c>l&&(c>1e10*l?n+=V[i]*(10*r):(d(l>0),n+=V[i]*s.FAST_LOG10(c/l)))}}return n}var q=[6.8,5.8,5.8,6.4,6.5,9.9,12.1,14.4,15,18.9,21.6,26.9,34.2,40.2,46.8,56.5,60.7,73.9,85.7,93.4,126.1];function W(e,t){for(var n=281.0575,i=0;i<p.SBMAX_l-1;i++){var a=e.thm.l[i];if(d(i<q.length),a>0){var o=a*t,l=e.en.l[i];l>o&&(l>1e10*o?n+=q[i]*(10*r):(d(o>0),n+=q[i]*s.FAST_LOG10(l/o)))}}return n}function $(e,t,n,r,i){var a,o;for(a=o=0;a<e.npart_l;++a){var s,l=0,c=0;for(s=0;s<e.numlines_l[a];++s,++o){var u=t[o];d(u>=0),l+=u,c<u&&(c=u)}n[a]=l,r[a]=c,i[a]=l*e.rnumlines_l[a],d(e.rnumlines_l[a]>=0),d(l>=0),d(n[a]>=0),d(r[a]>=0),d(i[a]>=0)}}function K(e,t,n,r){var i=D.length-1,a=0,o=n[a]+n[a+1];for(d(o>=0),o>0?((s=t[a])<t[a+1]&&(s=t[a+1]),d(e.numlines_l[a]+e.numlines_l[a+1]-1>0),(l=0|(o=20*(2*s-o)/(o*(e.numlines_l[a]+e.numlines_l[a+1]-1))))>i&&(l=i),r[a]=l):r[a]=0,a=1;a<e.npart_l-1;a++){var s,l;o=n[a-1]+n[a]+n[a+1],d(o>=0),o>0?((s=t[a-1])<t[a]&&(s=t[a]),s<t[a+1]&&(s=t[a+1]),d(e.numlines_l[a-1]+e.numlines_l[a]+e.numlines_l[a+1]-1>0),(l=0|(o=20*(3*s-o)/(o*(e.numlines_l[a-1]+e.numlines_l[a]+e.numlines_l[a+1]-1))))>i&&(l=i),r[a]=l):r[a]=0}d(a>0),d(a==e.npart_l-1),o=n[a-1]+n[a],d(o>=0),o>0?((s=t[a-1])<t[a]&&(s=t[a]),d(e.numlines_l[a-1]+e.numlines_l[a]-1>0),(l=0|(o=20*(2*s-o)/(o*(e.numlines_l[a-1]+e.numlines_l[a]-1))))>i&&(l=i),r[a]=l):r[a]=0,d(a==e.npart_l-1)}var Y=[-1.730326e-17,-.01703172,-1.349528e-17,.0418072,-6.73278e-17,-.0876324,-3.0835e-17,.1863476,-1.104424e-16,-.627638];function X(e,n,r,i,a,o,l,c){var u=e.internal_flags;if(i<2)t.fft_long(u,l[c],i,n,r);else if(2==i)for(var h=p.BLKSIZE-1;h>=0;--h){var d=l[c+0][h],f=l[c+1][h];l[c+0][h]=(d+f)*s.SQRT2*.5,l[c+1][h]=(d-f)*s.SQRT2*.5}for(o[0]=C(l[c+0][0]),o[0]*=o[0],h=p.BLKSIZE/2-1;h>=0;--h){var g=l[c+0][p.BLKSIZE/2-h],A=l[c+0][p.BLKSIZE/2+h];o[p.BLKSIZE/2-h]=C(.5*(g*g+A*A))}var m=0;for(h=11;h<p.HBLKSIZE;h++)m+=o[h];if(u.tot_ener[i]=m,e.analysis){for(h=0;h<p.HBLKSIZE;h++)u.pinfo.energy[a][i][h]=u.pinfo.energy_save[i][h],u.pinfo.energy_save[i][h]=o[h];u.pinfo.pe[a][i]=u.pe[i]}}function Z(e,n,r,i,a,o,l,c){var u=e.internal_flags;if(0==a&&i<2&&t.fft_short(u,l[c],i,n,r),2==i)for(var h=p.BLKSIZE_s-1;h>=0;--h){var d=l[c+0][a][h],f=l[c+1][a][h];l[c+0][a][h]=(d+f)*s.SQRT2*.5,l[c+1][a][h]=(d-f)*s.SQRT2*.5}for(o[a][0]=l[c+0][a][0],o[a][0]*=o[a][0],h=p.BLKSIZE_s/2-1;h>=0;--h){var g=l[c+0][a][p.BLKSIZE_s/2-h],A=l[c+0][a][p.BLKSIZE_s/2+h];o[a][p.BLKSIZE_s/2-h]=C(.5*(g*g+A*A))}}function J(e,t,n,r){var i=e.internal_flags;2==e.athaa_loudapprox&&n<2&&(i.loudness_sq[t][n]=i.loudness_sq_save[n],i.loudness_sq_save[n]=S(r,i))}this.L3psycho_anal_ns=function(t,n,r,a,s,f,m,v,y,b){var x,C,S,E,T,B,I,M,P,F,O=t.internal_flags,L=u([2,p.BLKSIZE]),N=u([2,3,p.BLKSIZE_s]),U=c(p.CBANDS+1),V=c(p.CBANDS+1),q=c(p.CBANDS+2),X=h(2),Z=h(2),J=u([2,576]),ee=h(p.CBANDS+2),te=h(p.CBANDS+2);for(l.fill(te,0),x=O.channels_out,t.mode==e.JOINT_STEREO&&(x=4),P=t.VBR==i.vbr_off?0==O.ResvMax?0:O.ResvSize/O.ResvMax*.5:t.VBR==i.vbr_rh||t.VBR==i.vbr_mtrh||t.VBR==i.vbr_mt?.6:1,C=0;C<O.channels_out;C++){var ne=n[C],re=r+576-350-w+192;for(d(Y.length==(w-1)/2),E=0;E<576;E++){var ie,ae;for(ie=ne[re+E+10],ae=0,T=0;T<(w-1)/2-1;T+=2)ie+=Y[T]*(ne[re+E+T]+ne[re+E+w-T]),ae+=Y[T+1]*(ne[re+E+T+1]+ne[re+E+w-T-1]);J[C][E]=ie+ae}s[a][C].en.assign(O.en[C]),s[a][C].thm.assign(O.thm[C]),x>2&&(f[a][C].en.assign(O.en[C+2]),f[a][C].thm.assign(O.thm[C+2]))}for(C=0;C<x;C++){var oe,se=c(12),le=[0,0,0,0],ce=c(12),ue=1,he=c(p.CBANDS),de=c(p.CBANDS),fe=[0,0,0,0],pe=c(p.HBLKSIZE),ge=u([3,p.HBLKSIZE_s]);for(d(O.npart_s<=p.CBANDS),d(O.npart_l<=p.CBANDS),E=0;E<3;E++)se[E]=O.nsPsy.last_en_subshort[C][E+6],d(O.nsPsy.last_en_subshort[C][E+4]>0),ce[E]=se[E]/O.nsPsy.last_en_subshort[C][E+4],le[0]+=se[E];if(2==C)for(E=0;E<576;E++){var Ae,me;Ae=J[0][E],me=J[1][E],J[0][E]=Ae+me,J[1][E]=Ae-me}var ve=J[1&C],ye=0;for(E=0;E<9;E++){for(var be=ye+64,_e=1;ye<be;ye++)_e<Math.abs(ve[ye])&&(_e=Math.abs(ve[ye]));O.nsPsy.last_en_subshort[C][E]=se[E+3]=_e,le[1+E/3]+=_e,_e>se[E+3-2]?(d(se[E+3-2]>0),_e/=se[E+3-2]):se[E+3-2]>10*_e?(d(_e>0),_e=se[E+3-2]/(10*_e)):_e=0,ce[E+3]=_e}if(t.analysis){var we=ce[0];for(E=1;E<12;E++)we<ce[E]&&(we=ce[E]);O.pinfo.ers[a][C]=O.pinfo.ers_save[C],O.pinfo.ers_save[C]=we}for(oe=3==C?O.nsPsy.attackthre_s:O.nsPsy.attackthre,E=0;E<12;E++)0==fe[E/3]&&ce[E]>oe&&(fe[E/3]=E%3+1);for(E=1;E<4;E++){var xe;le[E-1]>le[E]?(d(le[E]>0),xe=le[E-1]/le[E]):(d(le[E-1]>0),xe=le[E]/le[E-1]),xe<1.7&&(fe[E]=0,1==E&&(fe[0]=0))}for(0!=fe[0]&&0!=O.nsPsy.lastAttacks[C]&&(fe[0]=0),3!=O.nsPsy.lastAttacks[C]&&fe[0]+fe[1]+fe[2]+fe[3]==0||(ue=0,0!=fe[1]&&0!=fe[0]&&(fe[1]=0),0!=fe[2]&&0!=fe[1]&&(fe[2]=0),0!=fe[3]&&0!=fe[2]&&(fe[3]=0)),C<2?Z[C]=ue:0==ue&&(Z[0]=Z[1]=0),y[C]=O.tot_ener[C],k(t,pe,ge,L,1&C,N,1&C,a,C,n,r),$(O,pe,U,he,de),K(O,he,de,ee),M=0;M<3;M++){var Ce,Se;for(z(t,ge,V,q,C,M),j(O,V,q,C,M),I=0;I<p.SBMAX_s;I++){if(Se=O.thm[C].s[I][M],Se*=.8,fe[M]>=2||1==fe[M+1]){var ke=0!=M?M-1:2;_e=Q(O.thm[C].s[I][ke],Se,.6*P),Se=Math.min(Se,_e)}1==fe[M]?(ke=0!=M?M-1:2,_e=Q(O.thm[C].s[I][ke],Se,_*P),Se=Math.min(Se,_e)):(0!=M&&3==fe[M-1]||0==M&&3==O.nsPsy.lastAttacks[C])&&(ke=2!=M?M+1:0,_e=Q(O.thm[C].s[I][ke],Se,_*P),Se=Math.min(Se,_e)),Ce=se[3*M+3]+se[3*M+4]+se[3*M+5],6*se[3*M+5]<Ce&&(Se*=.5,6*se[3*M+4]<Ce&&(Se*=.5)),O.thm[C].s[I][M]=Se}}for(O.nsPsy.lastAttacks[C]=fe[2],B=0,S=0;S<O.npart_l;S++){for(var Ee=O.s3ind[S][0],Te=U[Ee]*D[ee[Ee]],Be=O.s3_ll[B++]*Te;++Ee<=O.s3ind[S][1];)Te=U[Ee]*D[ee[Ee]],Be=R(Be,O.s3_ll[B++]*Te,Ee,Ee-S,O,0);Be*=.158489319246111,O.blocktype_old[1&C]==p.SHORT_TYPE?q[S]=Be:q[S]=Q(Math.min(Be,Math.min(g*O.nb_1[C][S],A*O.nb_2[C][S])),Be,P),O.nb_2[C][S]=O.nb_1[C][S],O.nb_1[C][S]=Be}for(;S<=p.CBANDS;++S)U[S]=0,q[S]=0;H(O,U,q,C)}for(t.mode!=e.STEREO&&t.mode!=e.JOINT_STEREO||t.interChRatio>0&&function(e,t){var n=e.internal_flags;if(n.channels_out>1){for(var r=0;r<p.SBMAX_l;r++){var i=n.thm[0].l[r],a=n.thm[1].l[r];n.thm[0].l[r]+=a*t,n.thm[1].l[r]+=i*t}for(r=0;r<p.SBMAX_s;r++)for(var o=0;o<3;o++)i=n.thm[0].s[r][o],a=n.thm[1].s[r][o],n.thm[0].s[r][o]+=a*t,n.thm[1].s[r][o]+=i*t}}(t,t.interChRatio),t.mode==e.JOINT_STEREO&&(function(e){for(var t=0;t<p.SBMAX_l;t++)if(!(e.thm[0].l[t]>1.58*e.thm[1].l[t]||e.thm[1].l[t]>1.58*e.thm[0].l[t])){var n=e.mld_l[t]*e.en[3].l[t],r=Math.max(e.thm[2].l[t],Math.min(e.thm[3].l[t],n));n=e.mld_l[t]*e.en[2].l[t];var i=Math.max(e.thm[3].l[t],Math.min(e.thm[2].l[t],n));e.thm[2].l[t]=r,e.thm[3].l[t]=i}for(t=0;t<p.SBMAX_s;t++)for(var a=0;a<3;a++)e.thm[0].s[t][a]>1.58*e.thm[1].s[t][a]||e.thm[1].s[t][a]>1.58*e.thm[0].s[t][a]||(n=e.mld_s[t]*e.en[3].s[t][a],r=Math.max(e.thm[2].s[t][a],Math.min(e.thm[3].s[t][a],n)),n=e.mld_s[t]*e.en[2].s[t][a],i=Math.max(e.thm[3].s[t][a],Math.min(e.thm[2].s[t][a],n)),e.thm[2].s[t][a]=r,e.thm[3].s[t][a]=i)}(O),F=t.msfix,Math.abs(F)>0&&function(e,t,n){var r=t,i=Math.pow(10,n);t*=2,r*=2;for(var a=0;a<p.SBMAX_l;a++)u=e.ATH.cb_l[e.bm_l[a]]*i,(s=Math.min(Math.max(e.thm[0].l[a],u),Math.max(e.thm[1].l[a],u)))*t<(l=Math.max(e.thm[2].l[a],u))+(c=Math.max(e.thm[3].l[a],u))&&d((l*=h=s*r/(l+c))+(c*=h)>0),e.thm[2].l[a]=Math.min(l,e.thm[2].l[a]),e.thm[3].l[a]=Math.min(c,e.thm[3].l[a]);for(i*=p.BLKSIZE_s/p.BLKSIZE,a=0;a<p.SBMAX_s;a++)for(var o=0;o<3;o++){var s,l,c,u,h;u=e.ATH.cb_s[e.bm_s[a]]*i,(s=Math.min(Math.max(e.thm[0].s[a][o],u),Math.max(e.thm[1].s[a][o],u)))*t<(l=Math.max(e.thm[2].s[a][o],u))+(c=Math.max(e.thm[3].s[a][o],u))&&d((l*=h=s*t/(l+c))+(c*=h)>0),e.thm[2].s[a][o]=Math.min(e.thm[2].s[a][o],l),e.thm[3].s[a][o]=Math.min(e.thm[3].s[a][o],c)}}(O,F,t.ATHlower*O.ATH.adjust)),function(e,t,n,r){var i=e.internal_flags;e.short_blocks!=o.short_block_coupled||0!=t[0]&&0!=t[1]||(t[0]=t[1]=0);for(var a=0;a<i.channels_out;a++)r[a]=p.NORM_TYPE,e.short_blocks==o.short_block_dispensed&&(t[a]=1),e.short_blocks==o.short_block_forced&&(t[a]=0),0!=t[a]?(d(i.blocktype_old[a]!=p.START_TYPE),i.blocktype_old[a]==p.SHORT_TYPE&&(r[a]=p.STOP_TYPE)):(r[a]=p.SHORT_TYPE,i.blocktype_old[a]==p.NORM_TYPE&&(i.blocktype_old[a]=p.START_TYPE),i.blocktype_old[a]==p.STOP_TYPE&&(i.blocktype_old[a]=p.SHORT_TYPE)),n[a]=i.blocktype_old[a],i.blocktype_old[a]=r[a]}(t,Z,b,X),C=0;C<x;C++){var Ie,Me,Pe,De=0;C>1?(Ie=v,De=-2,Me=p.NORM_TYPE,b[0]!=p.SHORT_TYPE&&b[1]!=p.SHORT_TYPE||(Me=p.SHORT_TYPE),Pe=f[a][C-2]):(Ie=m,De=0,Me=b[C],Pe=s[a][C]),Me==p.SHORT_TYPE?Ie[De+C]=G(Pe,O.masking_lower):Ie[De+C]=W(Pe,O.masking_lower),t.analysis&&(O.pinfo.pe[a][C]=Ie[De+C])}return 0};var ee=[-1.730326e-17,-.01703172,-1.349528e-17,.0418072,-6.73278e-17,-.0876324,-3.0835e-17,.1863476,-1.104424e-16,-.627638];function te(e,t,n){if(0==n)for(var r=0;r<e.npart_s;r++)e.nb_s2[t][r]=e.nb_s1[t][r],e.nb_s1[t][r]=0}function ne(e,t){for(var n=0;n<e.npart_l;n++)e.nb_2[t][n]=e.nb_1[t][n],e.nb_1[t][n]=0}function re(e,t,n,r,i,a){var o,s,l,u=e.internal_flags,h=new float[p.CBANDS],f=c(p.CBANDS),g=new int[p.CBANDS];for(l=s=0;l<u.npart_s;++l){var A=0,m=0,v=u.numlines_s[l];for(o=0;o<v;++o,++s){var y=t[a][s];A+=y,m<y&&(m=y)}n[l]=A,d(A>=0),h[l]=m,d(v>0),f[l]=A/v,d(f[l]>=0)}for(d(l==u.npart_s),d(129==s);l<p.CBANDS;++l)h[l]=0,f[l]=0;for(function(e,t,n,r){var i=D.length-1,a=0,o=n[a]+n[a+1];for(d(o>=0),o>0?((s=t[a])<t[a+1]&&(s=t[a+1]),d(e.numlines_s[a]+e.numlines_s[a+1]-1>0),(l=0|(o=20*(2*s-o)/(o*(e.numlines_s[a]+e.numlines_s[a+1]-1))))>i&&(l=i),r[a]=l):r[a]=0,a=1;a<e.npart_s-1;a++){var s,l;o=n[a-1]+n[a]+n[a+1],d(a+1<e.npart_s),d(o>=0),o>0?((s=t[a-1])<t[a]&&(s=t[a]),s<t[a+1]&&(s=t[a+1]),d(e.numlines_s[a-1]+e.numlines_s[a]+e.numlines_s[a+1]-1>0),(l=0|(o=20*(3*s-o)/(o*(e.numlines_s[a-1]+e.numlines_s[a]+e.numlines_s[a+1]-1))))>i&&(l=i),r[a]=l):r[a]=0}d(a>0),d(a==e.npart_s-1),o=n[a-1]+n[a],d(o>=0),o>0?((s=t[a-1])<t[a]&&(s=t[a]),d(e.numlines_s[a-1]+e.numlines_s[a]-1>0),(l=0|(o=20*(2*s-o)/(o*(e.numlines_s[a-1]+e.numlines_s[a]-1))))>i&&(l=i),r[a]=l):r[a]=0,d(a==e.npart_s-1)}(u,h,f,g),s=l=0;l<u.npart_s;l++){var b,_,w,x,C,S=u.s3ind_s[l][0],k=u.s3ind_s[l][1];for(b=g[S],_=1,x=u.s3_ss[s]*n[S]*D[g[S]],++s,++S;S<=k;)b+=g[S],_+=1,x=U(x,w=u.s3_ss[s]*n[S]*D[g[S]],S-l),++s,++S;x*=C=.5*D[b=(1+2*b)/(2*_)],r[l]=x,u.nb_s2[i][l]=u.nb_s1[i][l],u.nb_s1[i][l]=x,w=h[l],w*=u.minval_s[l],w*=C,r[l]>w&&(r[l]=w),u.masking_lower>1&&(r[l]*=u.masking_lower),r[l]>n[l]&&(r[l]=n[l]),u.masking_lower<1&&(r[l]*=u.masking_lower),d(r[l]>=0)}for(;l<p.CBANDS;++l)n[l]=0,r[l]=0}function ie(e,t,n,r,i){var a,o=c(p.CBANDS),s=c(p.CBANDS),l=h(p.CBANDS+2);$(e,t,n,o,s),K(e,o,s,l);var u=0;for(a=0;a<e.npart_l;a++){var f,m,v,y=e.s3ind[a][0],b=e.s3ind[a][1],w=0,x=0;for(w=l[y],x+=1,m=e.s3_ll[u]*n[y]*D[l[y]],++u,++y;y<=b;)w+=l[y],x+=1,m=U(m,f=e.s3_ll[u]*n[y]*D[l[y]],y-a),++u,++y;if(m*=v=.5*D[w=(1+2*w)/(2*x)],e.blocktype_old[1&i]==p.SHORT_TYPE){var C=g*e.nb_1[i][a];r[a]=C>0?Math.min(m,C):Math.min(m,n[a]*_)}else{var S=A*e.nb_2[i][a],k=g*e.nb_1[i][a];S<=0&&(S=m),k<=0&&(k=m),C=e.blocktype_old[1&i]==p.NORM_TYPE?Math.min(k,S):k,r[a]=Math.min(m,C)}e.nb_2[i][a]=e.nb_1[i][a],e.nb_1[i][a]=m,f=o[a],f*=e.minval_l[a],f*=v,r[a]>f&&(r[a]=f),e.masking_lower>1&&(r[a]*=e.masking_lower),r[a]>n[a]&&(r[a]=n[a]),e.masking_lower<1&&(r[a]*=e.masking_lower),d(r[a]>=0)}for(;a<p.CBANDS;++a)n[a]=0,r[a]=0}function ae(e,t,n,r,i,a,o){for(var s,l,c=2*a,u=a>0?Math.pow(10,i):1,h=0;h<o;++h){var f=e[2][h],p=e[3][h],g=t[0][h],A=t[1][h],m=t[2][h],v=t[3][h];if(g<=1.58*A&&A<=1.58*g){var y=n[h]*p,b=n[h]*f;l=Math.max(m,Math.min(v,y)),s=Math.max(v,Math.min(m,b))}else l=m,s=v;if(a>0){var _,w,x=r[h]*u;if(_=Math.min(Math.max(g,x),Math.max(A,x)),(w=(m=Math.max(l,x))+(v=Math.max(s,x)))>0&&_*c<w){var C=_*c/w;m*=C,v*=C,d(w>0)}l=Math.min(m,l),s=Math.min(v,s)}l>f&&(l=f),s>p&&(s=p),t[2][h]=l,t[3][h]=s}}function oe(e,t){var n;return(n=e>=0?27*-e:e*t)<=-72?0:Math.exp(n*x)}function se(e){var t,n,r,i,a=0;for(a=0;oe(a,e)>1e-20;a-=1);for(r=a,i=0;Math.abs(i-r)>1e-12;)oe(a=(i+r)/2,e)>0?i=a:r=a;for(t=r,a=0,a=0;oe(a,e)>1e-20;a+=1);for(r=0,i=a;Math.abs(i-r)>1e-12;)oe(a=(i+r)/2,e)>0?r=a:i=a;n=i;var o,s=0;for(o=0;o<=1e3;++o)s+=oe(a=t+o*(n-t)/1e3,e);return 1001/(s*(n-t))}function le(e){return e<0&&(e=0),e*=.001,13*Math.atan(.76*e)+3.5*Math.atan(e*e/56.25)}function ce(e,t,n,r,i,a,o,s,l,u,f,g){var A,m=c(p.CBANDS+1),v=s/(g>15?1152:384),b=h(p.HBLKSIZE);s/=l;var _=0,w=0;for(A=0;A<p.CBANDS;A++){var x;for(P=le(s*_),m[A]=s*_,x=_;le(s*x)-P<y&&x<=l/2;x++);for(e[A]=x-_,w=A+1;_<x;)d(_<p.HBLKSIZE),b[_++]=A;if(_>l/2){_=l/2,++A;break}}d(A<p.CBANDS),m[A]=s*_;for(var C=0;C<g;C++){var S,k,E,T,B;E=u[C],T=u[C+1],(S=0|Math.floor(.5+f*(E-.5)))<0&&(S=0),(k=0|Math.floor(.5+f*(T-.5)))>l/2&&(k=l/2),n[C]=(b[S]+b[k])/2,t[C]=b[k];var I=v*T;o[C]=(I-m[t[C]])/(m[t[C]+1]-m[t[C]]),o[C]<0?o[C]=0:o[C]>1&&(o[C]=1),B=le(s*u[C]*f),B=Math.min(B,15.5)/15.5,a[C]=Math.pow(10,1.25*(1-Math.cos(Math.PI*B))-2.5)}_=0;for(var M=0;M<w;M++){var P,D,F=e[M];P=le(s*_),D=le(s*(_+F-1)),r[M]=.5*(P+D),P=le(s*(_-.5)),D=le(s*(_+F-.5)),i[M]=D-P,_+=F}return w}function ue(e,t,n,r,i,a){var o,s,l,h,d,f,g=u([p.CBANDS,p.CBANDS]),A=0;if(a)for(var m=0;m<t;m++)for(o=0;o<t;o++){var v=(s=n[m]-n[o],l=void 0,h=void 0,d=void 0,f=void 0,l=s,h=(l*=l>=0?3:1.5)>=.5&&l<=2.5?8*((f=l-.5)*f-2*f):0,((d=15.811389+7.5*(l+=.474)-17.5*Math.sqrt(1+l*l))<=-60?0:(l=Math.exp((h+d)*x),l/=.6609193))*r[o]);g[m][o]=v*i[m]}else for(o=0;o<t;o++){var y=15+Math.min(21/n[o],12),b=se(y);for(m=0;m<t;m++)v=b*oe(n[m]-n[o],y)*r[o],g[m][o]=v*i[m]}for(m=0;m<t;m++){for(o=0;o<t&&!(g[m][o]>0);o++);for(e[m][0]=o,o=t-1;o>0&&!(g[m][o]>0);o--);e[m][1]=o,A+=e[m][1]-e[m][0]+1}var _=c(A),w=0;for(m=0;m<t;m++)for(o=e[m][0];o<=e[m][1];o++)_[w++]=g[m][o];return _}function he(e){var t=le(e);return t=Math.min(t,15.5)/15.5,Math.pow(10,1.25*(1-Math.cos(Math.PI*t))-2.5)}function de(e,t){return e<-.3&&(e=3410),e/=1e3,e=Math.max(.1,e),3.64*Math.pow(e,-.8)-6.8*Math.exp(-.6*Math.pow(e-3.4,2))+6*Math.exp(-.15*Math.pow(e-8.7,2))+.001*(.6+.04*t)*Math.pow(e,4)}this.L3psycho_anal_vbr=function(t,n,r,i,a,s,l,f,g,A){var m=t.internal_flags,v=c(p.HBLKSIZE),y=u([3,p.HBLKSIZE_s]),b=u([2,p.BLKSIZE]),x=u([2,3,p.BLKSIZE_s]),C=u([4,p.CBANDS]),S=u([4,p.CBANDS]),k=u([4,3]),E=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],T=h(2),B=t.mode==e.JOINT_STEREO?4:m.channels_out;!function(t,n,r,i,a,o,s,l,h,f){for(var p=u([2,576]),g=t.internal_flags,A=g.channels_out,m=t.mode==e.JOINT_STEREO?4:A,v=0;v<A;v++){firbuf=n[v];var y=r+576-350-w+192;d(ee.length==(w-1)/2);for(var b=0;b<576;b++){var _,x;_=firbuf[y+b+10],x=0;for(var C=0;C<(w-1)/2-1;C+=2)_+=ee[C]*(firbuf[y+b+C]+firbuf[y+b+w-C]),x+=ee[C+1]*(firbuf[y+b+C+1]+firbuf[y+b+w-C-1]);p[v][b]=_+x}a[i][v].en.assign(g.en[v]),a[i][v].thm.assign(g.thm[v]),m>2&&(o[i][v].en.assign(g.en[v+2]),o[i][v].thm.assign(g.thm[v+2]))}for(v=0;v<m;v++){var S=c(12),k=c(12),E=[0,0,0,0],T=p[1&v],B=0,I=3==v?g.nsPsy.attackthre_s:g.nsPsy.attackthre,M=1;if(2==v)for(b=0,C=576;C>0;++b,--C){var P=p[0][b],D=p[1][b];p[0][b]=P+D,p[1][b]=P-D}for(b=0;b<3;b++)k[b]=g.nsPsy.last_en_subshort[v][b+6],d(g.nsPsy.last_en_subshort[v][b+4]>0),S[b]=k[b]/g.nsPsy.last_en_subshort[v][b+4],E[0]+=k[b];for(b=0;b<9;b++){for(var F=B+64,O=1;B<F;B++)O<Math.abs(T[B])&&(O=Math.abs(T[B]));g.nsPsy.last_en_subshort[v][b]=k[b+3]=O,E[1+b/3]+=O,O>k[b+3-2]?(d(k[b+3-2]>0),O/=k[b+3-2]):k[b+3-2]>10*O?(d(O>0),O=k[b+3-2]/(10*O)):O=0,S[b+3]=O}for(b=0;b<3;++b){var L=k[3*b+3]+k[3*b+4]+k[3*b+5],R=1;6*k[3*b+5]<L&&(R*=.5,6*k[3*b+4]<L&&(R*=.5)),l[v][b]=R}if(t.analysis){var N=S[0];for(b=1;b<12;b++)N<S[b]&&(N=S[b]);g.pinfo.ers[i][v]=g.pinfo.ers_save[v],g.pinfo.ers_save[v]=N}for(b=0;b<12;b++)0==h[v][b/3]&&S[b]>I&&(h[v][b/3]=b%3+1);for(b=1;b<4;b++){var U=E[b-1],j=E[b];Math.max(U,j)<4e4&&U<1.7*j&&j<1.7*U&&(1==b&&h[v][0]<=h[v][b]&&(h[v][0]=0),h[v][b]=0)}h[v][0]<=g.nsPsy.lastAttacks[v]&&(h[v][0]=0),3!=g.nsPsy.lastAttacks[v]&&h[v][0]+h[v][1]+h[v][2]+h[v][3]==0||(M=0,0!=h[v][1]&&0!=h[v][0]&&(h[v][1]=0),0!=h[v][2]&&0!=h[v][1]&&(h[v][2]=0),0!=h[v][3]&&0!=h[v][2]&&(h[v][3]=0)),v<2?f[v]=M:0==M&&(f[0]=f[1]=0),s[v]=g.tot_ener[v]}}(t,n,r,i,a,s,g,k,E,T),function(e,t){var n=e.internal_flags;e.short_blocks!=o.short_block_coupled||0!=t[0]&&0!=t[1]||(t[0]=t[1]=0);for(var r=0;r<n.channels_out;r++)e.short_blocks==o.short_block_dispensed&&(t[r]=1),e.short_blocks==o.short_block_forced&&(t[r]=0)}(t,T);for(var I=0;I<B;I++)X(t,n,r,I,i,v,b,P=1&I),J(t,i,I,v),0!=T[P]?ie(m,v,C[I],S[I],I):ne(m,I);for(T[0]+T[1]==2&&t.mode==e.JOINT_STEREO&&ae(C,S,m.mld_cb_l,m.ATH.cb_l,t.ATHlower*m.ATH.adjust,t.msfix,m.npart_l),I=0;I<B;I++)0!=T[P=1&I]&&H(m,C[I],S[I],I);for(var M=0;M<3;M++){for(I=0;I<B;++I)0!=T[P=1&I]?te(m,I,M):(Z(t,n,r,I,M,y,x,P),re(t,y,C[I],S[I],I,M));for(T[0]+T[1]==0&&t.mode==e.JOINT_STEREO&&ae(C,S,m.mld_cb_s,m.ATH.cb_s,t.ATHlower*m.ATH.adjust,t.msfix,m.npart_s),I=0;I<B;++I)0==T[P=1&I]&&j(m,C[I],S[I],I,M)}for(I=0;I<B;I++){var P;if(0==T[P=1&I])for(var D=0;D<p.SBMAX_s;D++){var F=c(3);for(M=0;M<3;M++){var O=m.thm[I].s[D][M];if(O*=.8,E[I][M]>=2||1==E[I][M+1]){var L=0!=M?M-1:2,R=Q(m.thm[I].s[D][L],O,.36);O=Math.min(O,R)}else 1==E[I][M]?(L=0!=M?M-1:2,R=Q(m.thm[I].s[D][L],O,.6*_),O=Math.min(O,R)):(0!=M&&3==E[I][M-1]||0==M&&3==m.nsPsy.lastAttacks[I])&&(L=2!=M?M+1:0,R=Q(m.thm[I].s[D][L],O,.6*_),O=Math.min(O,R));O*=k[I][M],F[M]=O}for(M=0;M<3;M++)m.thm[I].s[D][M]=F[M]}}for(I=0;I<B;I++)m.nsPsy.lastAttacks[I]=E[I][2];for(function(e,t,n){for(var r=e.internal_flags,i=0;i<r.channels_out;i++){var a=p.NORM_TYPE;0!=t[i]?(d(r.blocktype_old[i]!=p.START_TYPE),r.blocktype_old[i]==p.SHORT_TYPE&&(a=p.STOP_TYPE)):(a=p.SHORT_TYPE,r.blocktype_old[i]==p.NORM_TYPE&&(r.blocktype_old[i]=p.START_TYPE),r.blocktype_old[i]==p.STOP_TYPE&&(r.blocktype_old[i]=p.SHORT_TYPE)),n[i]=r.blocktype_old[i],r.blocktype_old[i]=a}}(t,T,A),I=0;I<B;I++){var N,U,z,V;I>1?(N=f,U=-2,z=p.NORM_TYPE,A[0]!=p.SHORT_TYPE&&A[1]!=p.SHORT_TYPE||(z=p.SHORT_TYPE),V=s[i][I-2]):(N=l,U=0,z=A[I],V=a[i][I]),z==p.SHORT_TYPE?N[U+I]=G(V,m.masking_lower):N[U+I]=W(V,m.masking_lower),t.analysis&&(m.pinfo.pe[i][I]=N[U+I])}return 0},this.psymodel_init=function(e){var n,o,s=e.internal_flags,l=!0,u=13,h=0,f=0,g=-8.25,A=-4.5,m=c(p.CBANDS),v=c(p.CBANDS),y=c(p.CBANDS),b=e.out_samplerate;switch(e.experimentalZ){default:case 0:l=!0;break;case 1:l=e.VBR!=i.vbr_mtrh&&e.VBR!=i.vbr_mt;break;case 2:l=!1;break;case 3:u=8,h=-1.75,f=-.0125,g=-8.25,A=-2.25}for(s.ms_ener_ratio_old=.25,s.blocktype_old[0]=s.blocktype_old[1]=p.NORM_TYPE,n=0;n<4;++n){for(var _=0;_<p.CBANDS;++_)s.nb_1[n][_]=1e20,s.nb_2[n][_]=1e20,s.nb_s1[n][_]=s.nb_s2[n][_]=1;for(var w=0;w<p.SBMAX_l;w++)s.en[n].l[w]=1e20,s.thm[n].l[w]=1e20;for(_=0;_<3;++_){for(w=0;w<p.SBMAX_s;w++)s.en[n].s[w][_]=1e20,s.thm[n].s[w][_]=1e20;s.nsPsy.lastAttacks[n]=0}for(_=0;_<9;_++)s.nsPsy.last_en_subshort[n][_]=10}for(s.loudness_sq_save[0]=s.loudness_sq_save[1]=0,s.npart_l=ce(s.numlines_l,s.bo_l,s.bm_l,m,v,s.mld_l,s.PSY.bo_l_weight,b,p.BLKSIZE,s.scalefac_band.l,p.BLKSIZE/1152,p.SBMAX_l),d(s.npart_l<p.CBANDS),n=0;n<s.npart_l;n++){var x=h;m[n]>=u&&(x=f*(m[n]-u)/(24-u)+h*(24-m[n])/(24-u)),y[n]=Math.pow(10,x/10),s.numlines_l[n]>0?s.rnumlines_l[n]=1/s.numlines_l[n]:s.rnumlines_l[n]=0}for(s.s3_ll=ue(s.s3ind,s.npart_l,m,v,y,l),_=0,n=0;n<s.npart_l;n++){k=a.MAX_VALUE;for(var C=0;C<s.numlines_l[n];C++,_++){var S=b*_/(1e3*p.BLKSIZE);D=this.ATHformula(1e3*S,e)-20,D=Math.pow(10,.1*D),k>(D*=s.numlines_l[n])&&(k=D)}s.ATH.cb_l[n]=k,(k=20*m[n]/10-20)>6&&(k=100),k<-15&&(k=-15),k-=8,s.minval_l[n]=Math.pow(10,k/10)*s.numlines_l[n]}for(s.npart_s=ce(s.numlines_s,s.bo_s,s.bm_s,m,v,s.mld_s,s.PSY.bo_s_weight,b,p.BLKSIZE_s,s.scalefac_band.s,p.BLKSIZE_s/384,p.SBMAX_s),d(s.npart_s<p.CBANDS),_=0,n=0;n<s.npart_s;n++){var k;for(x=g,m[n]>=u&&(x=A*(m[n]-u)/(24-u)+g*(24-m[n])/(24-u)),y[n]=Math.pow(10,x/10),k=a.MAX_VALUE,C=0;C<s.numlines_s[n];C++,_++){var D;S=b*_/(1e3*p.BLKSIZE_s),D=this.ATHformula(1e3*S,e)-20,D=Math.pow(10,.1*D),k>(D*=s.numlines_s[n])&&(k=D)}s.ATH.cb_s[n]=k,k=7*m[n]/12-7,m[n]>12&&(k*=1+3.1*Math.log(1+k)),m[n]<12&&(k*=1+2.3*Math.log(1-k)),k<-15&&(k=-15),k-=8,s.minval_s[n]=Math.pow(10,k/10)*s.numlines_s[n]}s.s3_ss=ue(s.s3ind_s,s.npart_s,m,v,y,l),E=Math.pow(10,(I+1)/16),T=Math.pow(10,(M+1)/16),B=Math.pow(10,P/10),t.init_fft(s),s.decay=Math.exp(-1*r/(.01*b/192)),o=3.5,0!=(2&e.exp_nspsytune)&&(o=1),Math.abs(e.msfix)>0&&(o=e.msfix),e.msfix=o;for(var F=0;F<s.npart_l;F++)s.s3ind[F][1]>s.npart_l-1&&(s.s3ind[F][1]=s.npart_l-1);var O=576*s.mode_gr/b;if(s.ATH.decay=Math.pow(10,-1.2*O),s.ATH.adjust=.01,s.ATH.adjustLimit=1,d(s.bo_l[p.SBMAX_l-1]<=s.npart_l),d(s.bo_s[p.SBMAX_s-1]<=s.npart_s),-1!=e.ATHtype){var L=e.out_samplerate/p.BLKSIZE,R=0;for(S=0,n=0;n<p.BLKSIZE/2;++n)S+=L,s.ATH.eql_w[n]=1/Math.pow(10,this.ATHformula(S,e)/10),R+=s.ATH.eql_w[n];for(R=1/R,n=p.BLKSIZE/2;--n>=0;)s.ATH.eql_w[n]*=R}for(F=_=0;F<s.npart_s;++F)for(n=0;n<s.numlines_s[F];++n)++_;for(d(129==_),F=_=0;F<s.npart_l;++F)for(n=0;n<s.numlines_l[F];++n)++_;for(d(513==_),_=0,n=0;n<s.npart_l;n++)S=b*(_+s.numlines_l[n]/2)/(1*p.BLKSIZE),s.mld_cb_l[n]=he(S),_+=s.numlines_l[n];for(;n<p.CBANDS;++n)s.mld_cb_l[n]=1;for(_=0,n=0;n<s.npart_s;n++)S=b*(_+s.numlines_s[n]/2)/(1*p.BLKSIZE_s),s.mld_cb_s[n]=he(S),_+=s.numlines_s[n];for(;n<p.CBANDS;++n)s.mld_cb_s[n]=1;return 0},this.ATHformula=function(e,t){var n;switch(t.ATHtype){case 0:n=de(e,9);break;case 1:n=de(e,-1);break;case 2:n=de(e,0);break;case 3:n=de(e,1)+6;break;case 4:n=de(e,t.ATHcurve);break;default:n=de(e,0)}return n}}},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},lNQ5: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 g(){}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=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,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}},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}}},mbvs:function(e,t,n){"use strict";(function(n,r){var i;
  149. /**
  150. * {@link https://github.com/muaz-khan/RecordRTC|RecordRTC} is a WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
  151. * @summary Record audio, video or screen inside the browser.
  152. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  153. * @author {@link https://MuazKhan.com|Muaz Khan}
  154. * @typedef RecordRTC
  155. * @class
  156. * @example
  157. * var recorder = RecordRTC(mediaStream or [arrayOfMediaStream], {
  158. * type: 'video', // audio or video or gif or canvas
  159. * recorderType: MediaStreamRecorder || CanvasRecorder || StereoAudioRecorder || Etc
  160. * });
  161. * recorder.startRecording();
  162. * @see For further information:
  163. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  164. * @param {MediaStream} mediaStream - Single media-stream object, array of media-streams, html-canvas-element, etc.
  165. * @param {object} config - {type:"video", recorderType: MediaStreamRecorder, disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, desiredSampRate: 16000, video: HTMLVideoElement, etc.}
  166. */
  167. function a(e,t){if(!e)throw"First parameter is required.";var n=this;function r(n){n&&(t.initCallback=function(){n(),n=t.initCallback=null});var r=new
  168. /**
  169. * {@link GetRecorderType} is an inner/private helper for {@link RecordRTC}.
  170. * @summary It returns best recorder-type available for your browser.
  171. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  172. * @author {@link https://MuazKhan.com|Muaz Khan}
  173. * @typedef GetRecorderType
  174. * @class
  175. * @example
  176. * var RecorderType = GetRecorderType(options);
  177. * var recorder = new RecorderType(options);
  178. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  179. * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
  180. * @param {object} config - {type:"video", disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, etc.}
  181. */
  182. function(e,t){var n;(m||p||g)&&(n=T);"undefined"!=typeof MediaRecorder&&"requestData"in MediaRecorder.prototype&&!m&&(n=E);"video"===t.type&&(m||g)&&(n=I,"undefined"!=typeof ReadableStream&&(n=L));"gif"===t.type&&(n=D);"canvas"===t.type&&(n=B);k()&&n!==B&&n!==D&&"undefined"!=typeof MediaRecorder&&"requestData"in MediaRecorder.prototype&&(x(e,"video").length||x(e,"audio").length)&&("audio"===t.type?"function"==typeof MediaRecorder.isTypeSupported&&MediaRecorder.isTypeSupported("audio/webm")&&(n=E):"function"==typeof MediaRecorder.isTypeSupported&&MediaRecorder.isTypeSupported("video/webm")&&(n=E));e instanceof Array&&e.length&&(n=O);t.recorderType&&(n=t.recorderType);!t.disableLogs&&n&&n.name&&console.log("Using recorderType:",n.name||n.constructor.name);!n&&v&&(n=E);return n}
  183. /**
  184. * MRecordRTC runs on top of {@link RecordRTC} to bring multiple recordings in a single place, by providing simple API.
  185. * @summary MRecordRTC stands for "Multiple-RecordRTC".
  186. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  187. * @author {@link https://MuazKhan.com|Muaz Khan}
  188. * @typedef MRecordRTC
  189. * @class
  190. * @example
  191. * var recorder = new MRecordRTC();
  192. * recorder.addStream(MediaStream);
  193. * recorder.mediaType = {
  194. * audio: true, // or StereoAudioRecorder or MediaStreamRecorder
  195. * video: true, // or WhammyRecorder or MediaStreamRecorder or WebAssemblyRecorder or CanvasRecorder
  196. * gif: true // or GifRecorder
  197. * };
  198. * // mimeType is optional and should be set only in advance cases.
  199. * recorder.mimeType = {
  200. * audio: 'audio/wav',
  201. * video: 'video/webm',
  202. * gif: 'image/gif'
  203. * };
  204. * recorder.startRecording();
  205. * @see For further information:
  206. * @see {@link https://github.com/muaz-khan/RecordRTC/tree/master/MRecordRTC|MRecordRTC Source Code}
  207. * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
  208. * @requires {@link RecordRTC}
  209. */(e,t);(h=new r(e,t)).record(),u("recording"),t.disableLogs||console.log("Initialized recorderType:",h.constructor.name,"for output-type:",t.type)}function i(e){if(e=e||function(){},h){if("paused"===n.state)return n.resumeRecording(),void setTimeout(function(){i(e)},1);"recording"===n.state||t.disableLogs||console.warn('Recording state should be: "recording", however current state is: ',n.state),t.disableLogs||console.log("Stopped recording "+t.type+" stream."),"gif"!==t.type?h.stop(r):(h.stop(),r()),u("stopped")}else A();function r(r){if(h){Object.keys(h).forEach(function(e){"function"!=typeof h[e]&&(n[e]=h[e])});var i=h.blob;if(!i){if(!r)throw"Recording failed.";h.blob=i=r}if(i&&!t.disableLogs&&console.log(i.type,"->",b(i.size)),e){var a;try{a=f.createObjectURL(i)}catch(e){}"function"==typeof e.call?e.call(n,a):e(a)}t.autoWriteToDisk&&l(function(e){var n={};n[t.type+"Blob"]=e,P.Store(n)})}else"function"==typeof e.call?e.call(n,""):e("")}}function s(e){postMessage((new FileReaderSync).readAsDataURL(e))}function l(e,n){if(!e)throw"Pass a callback function over getDataURL.";var r=n?n.blob:(h||{}).blob;if(!r)return t.disableLogs||console.warn("Blob encoder did not finish its job yet."),void setTimeout(function(){l(e,n)},1e3);if("undefined"==typeof Worker||navigator.mozGetUserMedia){var i=new FileReader;i.readAsDataURL(r),i.onload=function(t){e(t.target.result)}}else{var a=function(e){try{var t=f.createObjectURL(new Blob([e.toString(),"this.onmessage = function (eee) {"+e.name+"(eee.data);}"],{type:"application/javascript"})),n=new Worker(t);return f.revokeObjectURL(t),n}catch(e){}}(s);a.onmessage=function(t){e(t.data)},a.postMessage(r)}}function c(e){e=e||0,"paused"!==n.state?"stopped"!==n.state&&(e>=n.recordingDuration?i(n.onRecordingStopped):(e+=1e3,setTimeout(function(){c(e)},1e3))):setTimeout(function(){c(e)},1e3)}function u(e){n&&(n.state=e,"function"==typeof n.onStateChanged.call?n.onStateChanged.call(n,e):n.onStateChanged(e))}var h,d='It seems that recorder is destroyed or "startRecording" is not invoked for '+(t=new o(e,t=t||{type:"video"})).type+" recorder.";function A(){!0!==t.disableLogs&&console.warn(d)}var y={startRecording:function(i){return t.disableLogs||console.log("RecordRTC version: ",n.version),i&&(t=new o(e,i)),t.disableLogs||console.log("started recording "+t.type+" stream."),h?(h.clearRecordedData(),h.record(),u("recording"),n.recordingDuration&&c(),n):(r(function(){n.recordingDuration&&c()}),n)},stopRecording:i,pauseRecording:function(){h?"recording"===n.state?(u("paused"),h.pause(),t.disableLogs||console.log("Paused recording.")):t.disableLogs||console.warn("Unable to pause the recording. Recording state: ",n.state):A()},resumeRecording:function(){h?"paused"===n.state?(u("recording"),h.resume(),t.disableLogs||console.log("Resumed recording.")):t.disableLogs||console.warn("Unable to resume the recording. Recording state: ",n.state):A()},initRecorder:r,setRecordingDuration:function(e,t){if(void 0===e)throw"recordingDuration is required.";if("number"!=typeof e)throw"recordingDuration must be a number.";return n.recordingDuration=e,n.onRecordingStopped=t||function(){},{onRecordingStopped:function(e){n.onRecordingStopped=e}}},clearRecordedData:function(){h?(h.clearRecordedData(),t.disableLogs||console.log("Cleared old recorded data.")):A()},getBlob:function(){if(h)return h.blob;A()},getDataURL:l,toURL:function(){if(h)return f.createObjectURL(h.blob);A()},getInternalRecorder:function(){return h},save:function(e){h?_(h.blob,e):A()},getFromDisk:function(e){h?a.getFromDisk(t.type,e):A()},setAdvertisementArray:function(e){t.advertisement=[];for(var n=e.length,r=0;r<n;r++)t.advertisement.push({duration:r,image:e[r]})},blob:null,bufferSize:0,sampleRate:0,buffer:null,reset:function(){"recording"!==n.state||t.disableLogs||console.warn("Stop an active recorder."),h&&"function"==typeof h.clearRecordedData&&h.clearRecordedData(),h=null,u("inactive"),n.blob=null},onStateChanged:function(e){t.disableLogs||console.log("Recorder state changed:",e)},state:"inactive",getState:function(){return n.state},destroy:function(){var e=t.disableLogs;t={disableLogs:!0},n.reset(),u("destroyed"),y=n=null,S.AudioContextConstructor&&(S.AudioContextConstructor.close(),S.AudioContextConstructor=null),t.disableLogs=e,t.disableLogs||console.log("RecordRTC is destroyed.")},version:"5.6.2"};if(!this)return n=y,y;for(var w in y)this[w]=y[w];return n=this,y}
  210. /**
  211. * {@link RecordRTCConfiguration} is an inner/private helper for {@link RecordRTC}.
  212. * @summary It configures the 2nd parameter passed over {@link RecordRTC} and returns a valid "config" object.
  213. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  214. * @author {@link https://MuazKhan.com|Muaz Khan}
  215. * @typedef RecordRTCConfiguration
  216. * @class
  217. * @example
  218. * var options = RecordRTCConfiguration(mediaStream, options);
  219. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  220. * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
  221. * @param {object} config - {type:"video", disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, getNativeBlob:true, etc.}
  222. */
  223. function o(e,t){return t.recorderType||t.type||(t.audio&&t.video?t.type="video":t.audio&&!t.video&&(t.type="audio")),t.recorderType&&!t.type&&(t.recorderType===I||t.recorderType===B||t.recorderType===L?t.type="video":t.recorderType===D?t.type="gif":t.recorderType===T?t.type="audio":t.recorderType===E&&(x(e,"audio").length&&x(e,"video").length?t.type="video":!x(e,"audio").length&&x(e,"video").length?t.type="video":x(e,"audio").length&&!x(e,"video").length&&(t.type="audio"))),"undefined"!=typeof MediaRecorder&&"requestData"in MediaRecorder.prototype&&(t.mimeType||(t.mimeType="video/webm"),t.type||(t.type=t.mimeType.split("/")[0]),t.bitsPerSecond),t.type||(t.mimeType&&(t.type=t.mimeType.split("/")[0]),t.type||(t.type="audio")),t}function s(e){this.addStream=function(t){t&&(e=t)},this.mediaType={audio:!0,video:!0},this.startRecording=function(){var t,n=this.mediaType,r=this.mimeType||{audio:null,video:null,gif:null};if("function"!=typeof n.audio&&k()&&!x(e,"audio").length&&(n.audio=!1),"function"!=typeof n.video&&k()&&!x(e,"video").length&&(n.video=!1),"function"!=typeof n.gif&&k()&&!x(e,"video").length&&(n.gif=!1),!n.audio&&!n.video&&!n.gif)throw"MediaStream must have either audio or video tracks.";if(n.audio&&(t=null,"function"==typeof n.audio&&(t=n.audio),this.audioRecorder=new a(e,{type:"audio",bufferSize:this.bufferSize,sampleRate:this.sampleRate,numberOfAudioChannels:this.numberOfAudioChannels||2,disableLogs:this.disableLogs,recorderType:t,mimeType:r.audio,timeSlice:this.timeSlice,onTimeStamp:this.onTimeStamp}),n.video||this.audioRecorder.startRecording()),n.video){t=null,"function"==typeof n.video&&(t=n.video);var i=e;if(k()&&n.audio&&"function"==typeof n.audio){var o=x(e,"video")[0];A?((i=new y).addTrack(o),t&&t===I&&(t=E)):(i=new y).addTrack(o)}this.videoRecorder=new a(i,{type:"video",video:this.video,canvas:this.canvas,frameInterval:this.frameInterval||10,disableLogs:this.disableLogs,recorderType:t,mimeType:r.video,timeSlice:this.timeSlice,onTimeStamp:this.onTimeStamp,workerPath:this.workerPath,webAssemblyPath:this.webAssemblyPath,frameRate:this.frameRate,bitrate:this.bitrate}),n.audio||this.videoRecorder.startRecording()}if(n.audio&&n.video){var s=this,l=!0===k();n.audio instanceof T&&n.video?l=!1:!0!==n.audio&&!0!==n.video&&n.audio!==n.video&&(l=!1),!0===l?(s.audioRecorder=null,s.videoRecorder.startRecording()):s.videoRecorder.initRecorder(function(){s.audioRecorder.initRecorder(function(){s.videoRecorder.startRecording(),s.audioRecorder.startRecording()})})}n.gif&&(t=null,"function"==typeof n.gif&&(t=n.gif),this.gifRecorder=new a(e,{type:"gif",frameRate:this.frameRate||200,quality:this.quality||10,disableLogs:this.disableLogs,recorderType:t,mimeType:r.gif}),this.gifRecorder.startRecording())},this.stopRecording=function(e){e=e||function(){},this.audioRecorder&&this.audioRecorder.stopRecording(function(t){e(t,"audio")}),this.videoRecorder&&this.videoRecorder.stopRecording(function(t){e(t,"video")}),this.gifRecorder&&this.gifRecorder.stopRecording(function(t){e(t,"gif")})},this.pauseRecording=function(){this.audioRecorder&&this.audioRecorder.pauseRecording(),this.videoRecorder&&this.videoRecorder.pauseRecording(),this.gifRecorder&&this.gifRecorder.pauseRecording()},this.resumeRecording=function(){this.audioRecorder&&this.audioRecorder.resumeRecording(),this.videoRecorder&&this.videoRecorder.resumeRecording(),this.gifRecorder&&this.gifRecorder.resumeRecording()},this.getBlob=function(e){var t={};return this.audioRecorder&&(t.audio=this.audioRecorder.getBlob()),this.videoRecorder&&(t.video=this.videoRecorder.getBlob()),this.gifRecorder&&(t.gif=this.gifRecorder.getBlob()),e&&e(t),t},this.destroy=function(){this.audioRecorder&&(this.audioRecorder.destroy(),this.audioRecorder=null),this.videoRecorder&&(this.videoRecorder.destroy(),this.videoRecorder=null),this.gifRecorder&&(this.gifRecorder.destroy(),this.gifRecorder=null)},this.getDataURL=function(e){function t(e,t){if("undefined"!=typeof Worker){var n=function(e){var t,n=f.createObjectURL(new Blob([e.toString(),"this.onmessage = function (eee) {"+e.name+"(eee.data);}"],{type:"application/javascript"})),r=new Worker(n);if(void 0!==f)t=f;else{if("undefined"==typeof webkitURL)throw"Neither URL nor webkitURL detected.";t=webkitURL}return t.revokeObjectURL(n),r}(function(e){postMessage((new FileReaderSync).readAsDataURL(e))});n.onmessage=function(e){t(e.data)},n.postMessage(e)}else{var r=new FileReader;r.readAsDataURL(e),r.onload=function(e){t(e.target.result)}}}this.getBlob(function(n){n.audio&&n.video?t(n.audio,function(r){t(n.video,function(t){e({audio:r,video:t})})}):n.audio?t(n.audio,function(t){e({audio:t})}):n.video&&t(n.video,function(t){e({video:t})})})},this.writeToDisk=function(){a.writeToDisk({audio:this.audioRecorder,video:this.videoRecorder,gif:this.gifRecorder})},this.save=function(e){(e=e||{audio:!0,video:!0,gif:!0}).audio&&this.audioRecorder&&this.audioRecorder.save("string"==typeof e.audio?e.audio:""),e.video&&this.videoRecorder&&this.videoRecorder.save("string"==typeof e.video?e.video:""),e.gif&&this.gifRecorder&&this.gifRecorder.save("string"==typeof e.gif?e.gif:"")}}a.version="5.6.2",e.exports=a,void 0===(i=function(){return a}.apply(t,[]))||(e.exports=i),a.getFromDisk=function(e,t){if(!t)throw"callback is mandatory.";console.log("Getting recorded "+("all"===e?"blobs":e+" blob ")+" from disk!"),P.Fetch(function(n,r){"all"!==e&&r===e+"Blob"&&t&&t(n),"all"===e&&t&&t(n,r.replace("Blob",""))})},a.writeToDisk=function(e){console.log("Writing recorded blob(s) to disk!"),(e=e||{}).audio&&e.video&&e.gif?e.audio.getDataURL(function(t){e.video.getDataURL(function(n){e.gif.getDataURL(function(e){P.Store({audioBlob:t,videoBlob:n,gifBlob:e})})})}):e.audio&&e.video?e.audio.getDataURL(function(t){e.video.getDataURL(function(e){P.Store({audioBlob:t,videoBlob:e})})}):e.audio&&e.gif?e.audio.getDataURL(function(t){e.gif.getDataURL(function(e){P.Store({audioBlob:t,gifBlob:e})})}):e.video&&e.gif?e.video.getDataURL(function(t){e.gif.getDataURL(function(e){P.Store({videoBlob:t,gifBlob:e})})}):e.audio?e.audio.getDataURL(function(e){P.Store({audioBlob:e})}):e.video?e.video.getDataURL(function(e){P.Store({videoBlob:e})}):e.gif&&e.gif.getDataURL(function(e){P.Store({gifBlob:e})})},s.getFromDisk=a.getFromDisk,s.writeToDisk=a.writeToDisk,a.MRecordRTC=s;var l;(l=void 0!==n?n:null)&&"undefined"==typeof window&&void 0!==n&&(n.navigator={userAgent:"Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45",getUserMedia:function(){}},n.console||(n.console={}),void 0!==n.console.log&&void 0!==n.console.error||(n.console.error=n.console.log=n.console.log||function(){console.log(arguments)}),"undefined"==typeof document&&(l.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var e={getContext:function(){return e},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return e},l.HTMLVideoElement=function(){}),"undefined"==typeof location&&(l.location={protocol:"file:",href:"",hash:""}),"undefined"==typeof screen&&(l.screen={width:0,height:0}),void 0===f&&(l.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),l.window=n);var c=window.requestAnimationFrame;if(void 0===c)if("undefined"!=typeof webkitRequestAnimationFrame)c=webkitRequestAnimationFrame;else if("undefined"!=typeof mozRequestAnimationFrame)c=mozRequestAnimationFrame;else if("undefined"!=typeof msRequestAnimationFrame)c=msRequestAnimationFrame;else if(void 0===c){var u=0;c=function(e,t){var n=(new Date).getTime(),r=Math.max(0,16-(n-u)),i=setTimeout(function(){e(n+r)},r);return u=n+r,i}}var h=window.cancelAnimationFrame;void 0===h&&("undefined"!=typeof webkitCancelAnimationFrame?h=webkitCancelAnimationFrame:"undefined"!=typeof mozCancelAnimationFrame?h=mozCancelAnimationFrame:"undefined"!=typeof msCancelAnimationFrame?h=msCancelAnimationFrame:void 0===h&&(h=function(e){clearTimeout(e)}));var d=window.AudioContext;void 0===d&&("undefined"!=typeof webkitAudioContext&&(d=webkitAudioContext),"undefined"!=typeof mozAudioContext&&(d=mozAudioContext));var f=window.URL;void 0===f&&"undefined"!=typeof webkitURL&&(f=webkitURL),"undefined"!=typeof navigator&&void 0===navigator.getUserMedia&&(void 0!==navigator.webkitGetUserMedia&&(navigator.getUserMedia=navigator.webkitGetUserMedia),void 0!==navigator.mozGetUserMedia&&(navigator.getUserMedia=navigator.mozGetUserMedia));var p=!(-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveBlob&&!navigator.msSaveOrOpenBlob),g=!!window.opera||-1!==navigator.userAgent.indexOf("OPR/"),A=navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&"netscape"in window&&/ rv:/.test(navigator.userAgent),m=!g&&!p&&!!navigator.webkitGetUserMedia||w()||-1!==navigator.userAgent.toLowerCase().indexOf("chrome/"),v=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);v&&!m&&-1!==navigator.userAgent.indexOf("CriOS")&&(v=!1,m=!0);var y=window.MediaStream;function b(e){if(0===e)return"0 Bytes";var t=parseInt(Math.floor(Math.log(e)/Math.log(1e3)),10);return(e/Math.pow(1e3,t)).toPrecision(3)+" "+["Bytes","KB","MB","GB","TB"][t]}function _(e,t){if(!e)throw"Blob object is required.";if(!e.type)try{e.type="video/webm"}catch(e){}var n=(e.type||"video/webm").split("/")[1];if(-1!==n.indexOf(";")&&(n=n.split(";")[0]),t&&-1!==t.indexOf(".")){var r=t.split(".");t=r[0],n=r[1]}var i=(t||Math.round(9999999999*Math.random())+888888888)+"."+n;if(void 0!==navigator.msSaveOrOpenBlob)return navigator.msSaveOrOpenBlob(e,i);if(void 0!==navigator.msSaveBlob)return navigator.msSaveBlob(e,i);var a=document.createElement("a");a.href=f.createObjectURL(e),a.download=i,a.style="display:none;opacity:0;color:transparent;",(document.body||document.documentElement).appendChild(a),"function"==typeof a.click?a.click():(a.target="_blank",a.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))),f.revokeObjectURL(a.href)}function w(){return"undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type||(!(void 0===r||"object"!=typeof r.versions||!r.versions.electron)||"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0)}function x(e,t){return e&&e.getTracks?e.getTracks().filter(function(e){return e.kind===(t||"audio")}):[]}function C(e,t){"srcObject"in t?t.srcObject=e:"mozSrcObject"in t?t.mozSrcObject=e:t.srcObject=e}void 0===y&&"undefined"!=typeof webkitMediaStream&&(y=webkitMediaStream),void 0!==y&&void 0===y.prototype.stop&&(y.prototype.stop=function(){this.getTracks().forEach(function(e){e.stop()})}),a.invokeSaveAsDialog=_,a.getTracks=x,a.getSeekableBlob=function(e,t){if("undefined"==typeof EBML)throw new Error("Please link: https://www.webrtc-experiment.com/EBML.js");var n=new EBML.Reader,r=new EBML.Decoder,i=EBML.tools,a=new FileReader;a.onload=function(e){r.decode(this.result).forEach(function(e){n.read(e)}),n.stop();var a=i.makeMetadataSeekable(n.metadatas,n.duration,n.cues),o=this.result.slice(n.metadataSize),s=new Blob([a,o],{type:"video/webm"});t(s)},a.readAsArrayBuffer(e)},a.bytesToSize=b,a.isElectron=w;
  224. /**
  225. * Storage is a standalone object used by {@link RecordRTC} to store reusable objects e.g. "new AudioContext".
  226. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  227. * @author {@link https://MuazKhan.com|Muaz Khan}
  228. * @example
  229. * Storage.AudioContext === webkitAudioContext
  230. * @property {webkitAudioContext} AudioContext - Keeps a reference to AudioContext object.
  231. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  232. */
  233. var S={};function k(){if(A||v||p)return!0;navigator.appVersion;var e,t,n=navigator.userAgent,r=""+parseFloat(navigator.appVersion),i=parseInt(navigator.appVersion,10);return(m||g)&&(e=n.indexOf("Chrome"),r=n.substring(e+7)),-1!==(t=r.indexOf(";"))&&(r=r.substring(0,t)),-1!==(t=r.indexOf(" "))&&(r=r.substring(0,t)),i=parseInt(""+r,10),isNaN(i)&&(r=""+parseFloat(navigator.appVersion),i=parseInt(navigator.appVersion,10)),i>=49}
  234. /**
  235. * MediaStreamRecorder is an abstraction layer for {@link https://w3c.github.io/mediacapture-record/MediaRecorder.html|MediaRecorder API}. It is used by {@link RecordRTC} to record MediaStream(s) in both Chrome and Firefox.
  236. * @summary Runs top over {@link https://w3c.github.io/mediacapture-record/MediaRecorder.html|MediaRecorder API}.
  237. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  238. * @author {@link https://github.com/muaz-khan|Muaz Khan}
  239. * @typedef MediaStreamRecorder
  240. * @class
  241. * @example
  242. * var config = {
  243. * mimeType: 'video/webm', // vp8, vp9, h264, mkv, opus/vorbis
  244. * audioBitsPerSecond : 256 * 8 * 1024,
  245. * videoBitsPerSecond : 256 * 8 * 1024,
  246. * bitsPerSecond: 256 * 8 * 1024, // if this is provided, skip above two
  247. * checkForInactiveTracks: true,
  248. * timeSlice: 1000, // concatenate intervals based blobs
  249. * ondataavailable: function() {} // get intervals based blobs
  250. * }
  251. * var recorder = new MediaStreamRecorder(mediaStream, config);
  252. * recorder.record();
  253. * recorder.stop(function(blob) {
  254. * video.src = URL.createObjectURL(blob);
  255. *
  256. * // or
  257. * var blob = recorder.blob;
  258. * });
  259. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  260. * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
  261. * @param {object} config - {disableLogs:true, initCallback: function, mimeType: "video/webm", timeSlice: 1000}
  262. * @throws Will throw an error if first argument "MediaStream" is missing. Also throws error if "MediaRecorder API" are not supported by the browser.
  263. */function E(e,t){var n=this;if(void 0===e)throw'First argument "MediaStream" is required.';if("undefined"==typeof MediaRecorder)throw"Your browser does not support the Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.";if("audio"===(t=t||{mimeType:"video/webm"}).type){var r;if(x(e,"video").length&&x(e,"audio").length)navigator.mozGetUserMedia?(r=new y).addTrack(x(e,"audio")[0]):r=new y(x(e,"audio")),e=r;t.mimeType&&-1!==t.mimeType.toString().toLowerCase().indexOf("audio")||(t.mimeType=m?"audio/webm":"audio/ogg"),t.mimeType&&"audio/ogg"!==t.mimeType.toString().toLowerCase()&&navigator.mozGetUserMedia&&(t.mimeType="audio/ogg")}var i,a=[];function o(){n.timestamps.push((new Date).getTime()),"function"==typeof t.onTimeStamp&&t.onTimeStamp(n.timestamps[n.timestamps.length-1],n.timestamps)}function s(e){return i&&i.mimeType?i.mimeType:e.mimeType||"video/webm"}function l(){a=[],i=null,n.timestamps=[]}this.getArrayOfBlobs=function(){return a},this.record=function(){n.blob=null,n.clearRecordedData(),n.timestamps=[],c=[],a=[];var r=t;t.disableLogs||console.log("Passing following config over MediaRecorder API.",r),i&&(i=null),m&&!k()&&(r="video/vp8"),"function"==typeof MediaRecorder.isTypeSupported&&r.mimeType&&(MediaRecorder.isTypeSupported(r.mimeType)||(t.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",r.mimeType),r.mimeType="audio"===t.type?"audio/webm":"video/webm"));try{i=new MediaRecorder(e,r),t.mimeType=r.mimeType}catch(t){i=new MediaRecorder(e)}r.mimeType&&!MediaRecorder.isTypeSupported&&"canRecordMimeType"in i&&!1===i.canRecordMimeType(r.mimeType)&&(t.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",r.mimeType)),i.ondataavailable=function(e){if(e.data&&c.push("ondataavailable: "+b(e.data.size)),"number"!=typeof t.timeSlice)!e.data||!e.data.size||e.data.size<100||n.blob?n.recordingCallback&&(n.recordingCallback(new Blob([],{type:s(r)})),n.recordingCallback=null):(n.blob=t.getNativeBlob?e.data:new Blob([e.data],{type:s(r)}),n.recordingCallback&&(n.recordingCallback(n.blob),n.recordingCallback=null));else if(e.data&&e.data.size&&(a.push(e.data),o(),"function"==typeof t.ondataavailable)){var i=t.getNativeBlob?e.data:new Blob([e.data],{type:s(r)});t.ondataavailable(i)}},i.onstart=function(){c.push("started")},i.onpause=function(){c.push("paused")},i.onresume=function(){c.push("resumed")},i.onstop=function(){c.push("stopped")},i.onerror=function(e){e&&(e.name||(e.name="UnknownError"),c.push("error: "+e),t.disableLogs||(-1!==e.name.toString().toLowerCase().indexOf("invalidstate")?console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.",e):-1!==e.name.toString().toLowerCase().indexOf("notsupported")?console.error("MIME type (",r.mimeType,") is not supported.",e):-1!==e.name.toString().toLowerCase().indexOf("security")?console.error("MediaRecorder security error",e):"OutOfMemory"===e.name?console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.",e):"IllegalStreamModification"===e.name?console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.",e):"OtherRecordingError"===e.name?console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.",e):"GenericError"===e.name?console.error("The UA cannot provide the codec or recording option that has been requested.",e):console.error("MediaRecorder Error",e)),function(e){if(!n.manuallyStopped&&i&&"inactive"===i.state)return delete t.timeslice,void i.start(6e5);setTimeout(void 0,1e3)}(),"inactive"!==i.state&&"stopped"!==i.state&&i.stop())},"number"==typeof t.timeSlice?(o(),i.start(t.timeSlice)):i.start(36e5),t.initCallback&&t.initCallback()},this.timestamps=[],this.stop=function(e){e=e||function(){},n.manuallyStopped=!0,i&&(this.recordingCallback=e,"recording"===i.state&&i.stop(),"number"==typeof t.timeSlice&&setTimeout(function(){n.blob=new Blob(a,{type:s(t)}),n.recordingCallback(n.blob)},100))},this.pause=function(){i&&"recording"===i.state&&i.pause()},this.resume=function(){i&&"paused"===i.state&&i.resume()},this.clearRecordedData=function(){i&&"recording"===i.state&&n.stop(l),l()},this.getInternalRecorder=function(){return i},this.blob=null,this.getState=function(){return i&&i.state||"inactive"};var c=[];this.getAllStates=function(){return c},void 0===t.checkForInactiveTracks&&(t.checkForInactiveTracks=!1);n=this;!function r(){if(i&&!1!==t.checkForInactiveTracks)return!1===function(){if("active"in e){if(!e.active)return!1}else if("ended"in e&&e.ended)return!1;return!0}()?(t.disableLogs||console.log("MediaStream seems stopped."),void n.stop()):void setTimeout(r,1e3)}(),this.name="MediaStreamRecorder",this.toString=function(){return this.name}}
  264. /**
  265. * StereoAudioRecorder is a standalone class used by {@link RecordRTC} to bring "stereo" audio-recording in chrome.
  266. * @summary JavaScript standalone object for stereo audio recording.
  267. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  268. * @author {@link https://MuazKhan.com|Muaz Khan}
  269. * @typedef StereoAudioRecorder
  270. * @class
  271. * @example
  272. * var recorder = new StereoAudioRecorder(MediaStream, {
  273. * sampleRate: 44100,
  274. * bufferSize: 4096
  275. * });
  276. * recorder.record();
  277. * recorder.stop(function(blob) {
  278. * video.src = URL.createObjectURL(blob);
  279. * });
  280. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  281. * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
  282. * @param {object} config - {sampleRate: 44100, bufferSize: 4096, numberOfAudioChannels: 1, etc.}
  283. */
  284. function T(e,t){if(!x(e,"audio").length)throw"Your stream has no audio tracks.";var n,r=this,i=[],o=[],s=!1,l=0,c=2,u=(t=t||{}).desiredSampRate;function h(){if(!1===t.checkForInactiveTracks)return!0;if("active"in e){if(!e.active)return!1}else if("ended"in e&&e.ended)return!1;return!0}function d(e,t){function n(e,t){var n,r=e.numberOfAudioChannels,i=e.leftBuffers.slice(0),a=e.rightBuffers.slice(0),o=e.sampleRate,s=e.internalInterleavedLength,l=e.desiredSampRate;function c(e,t,n){var r=Math.round(e.length*(t/n)),i=[],a=Number((e.length-1)/(r-1));i[0]=e[0];for(var o=1;o<r-1;o++){var s=o*a,l=Number(Math.floor(s)).toFixed(),c=Number(Math.ceil(s)).toFixed(),h=s-l;i[o]=u(e[l],e[c],h)}return i[r-1]=e[e.length-1],i}function u(e,t,n){return e+(t-e)*n}function h(e,t){for(var n=new Float64Array(t),r=0,i=e.length,a=0;a<i;a++){var o=e[a];n.set(o,r),r+=o.length}return n}function d(e,t,n){for(var r=n.length,i=0;i<r;i++)e.setUint8(t+i,n.charCodeAt(i))}2===r&&(i=h(i,s),a=h(a,s),l&&(i=c(i,l,o),a=c(a,l,o))),1===r&&(i=h(i,s),l&&(i=c(i,l,o))),l&&(o=l),2===r&&(n=function(e,t){for(var n=e.length+t.length,r=new Float64Array(n),i=0,a=0;a<n;)r[a++]=e[i],r[a++]=t[i],i++;return r}(i,a)),1===r&&(n=i);var f=n.length,p=new ArrayBuffer(44+2*f),g=new DataView(p);d(g,0,"RIFF"),g.setUint32(4,36+2*f,!0),d(g,8,"WAVE"),d(g,12,"fmt "),g.setUint32(16,16,!0),g.setUint16(20,1,!0),g.setUint16(22,r,!0),g.setUint32(24,o,!0),g.setUint32(28,o*r*2,!0),g.setUint16(32,2*r,!0),g.setUint16(34,16,!0),d(g,36,"data"),g.setUint32(40,2*f,!0);for(var A=f,m=44,v=0;v<A;v++)g.setInt16(m,32767*n[v],!0),m+=2;if(t)return t({buffer:p,view:g});postMessage({buffer:p,view:g})}if(e.noWorker)n(e,function(e){t(e.buffer,e.view)});else{var r,i,a,o=(r=n,i=f.createObjectURL(new Blob([r.toString(),";this.onmessage = function (eee) {"+r.name+"(eee.data);}"],{type:"application/javascript"})),(a=new Worker(i)).workerURL=i,a);o.onmessage=function(e){t(e.data.buffer,e.data.view),f.revokeObjectURL(o.workerURL),o.terminate()},o.postMessage(e)}}!0===t.leftChannel&&(c=1),1===t.numberOfAudioChannels&&(c=1),(!c||c<1)&&(c=2),t.disableLogs||console.log("StereoAudioRecorder is set to record number of channels: "+c),void 0===t.checkForInactiveTracks&&(t.checkForInactiveTracks=!0),this.record=function(){if(!1===h())throw"Please make sure MediaStream is active.";b(),w=y=!1,s=!0,void 0!==t.timeSlice&&S()},this.stop=function(e){e=e||function(){},s=!1,d({desiredSampRate:u,sampleRate:v,numberOfAudioChannels:c,internalInterleavedLength:l,leftBuffers:i,rightBuffers:1===c?[]:o,noWorker:t.noWorker},function(t,n){r.blob=new Blob([n],{type:"audio/wav"}),r.buffer=new ArrayBuffer(n.buffer.byteLength),r.view=n,r.sampleRate=u||v,r.bufferSize=m,r.length=l,w=!1,e&&e(r.blob)})},void 0===a.Storage&&(a.Storage={AudioContextConstructor:null,AudioContext:window.AudioContext||window.webkitAudioContext}),a.Storage.AudioContextConstructor&&"closed"!==a.Storage.AudioContextConstructor.state||(a.Storage.AudioContextConstructor=new a.Storage.AudioContext);var p=a.Storage.AudioContextConstructor,g=p.createMediaStreamSource(e),A=[0,256,512,1024,2048,4096,8192,16384],m=void 0===t.bufferSize?4096:t.bufferSize;if(-1===A.indexOf(m)&&(t.disableLogs||console.log("Legal values for buffer-size are "+JSON.stringify(A,null,"\t"))),p.createJavaScriptNode)n=p.createJavaScriptNode(m,c,c);else{if(!p.createScriptProcessor)throw"WebAudio API has no support on this browser.";n=p.createScriptProcessor(m,c,c)}g.connect(n),t.bufferSize||(m=n.bufferSize);var v=void 0!==t.sampleRate?t.sampleRate:p.sampleRate||44100;(v<22050||v>96e3)&&(t.disableLogs||console.log("sample-rate must be under range 22050 and 96000.")),t.disableLogs||t.desiredSampRate&&console.log("Desired sample-rate: "+t.desiredSampRate);var y=!1;function b(){i=[],o=[],l=0,w=!1,s=!1,y=!1,p=null,r.leftchannel=i,r.rightchannel=o,r.numberOfAudioChannels=c,r.desiredSampRate=u,r.sampleRate=v,r.recordingLength=l,C={left:[],right:[],recordingLength:0}}function _(){n&&(n.onaudioprocess=null,n.disconnect(),n=null),g&&(g.disconnect(),g=null),b()}this.pause=function(){y=!0},this.resume=function(){if(!1===h())throw"Please make sure MediaStream is active.";if(!s)return t.disableLogs||console.log("Seems recording has been restarted."),void this.record();y=!1},this.clearRecordedData=function(){t.checkForInactiveTracks=!1,s&&this.stop(_),_()},this.name="StereoAudioRecorder",this.toString=function(){return this.name};var w=!1;n.onaudioprocess=function(e){if(!y)if(!1===h()&&(t.disableLogs||console.log("MediaStream seems stopped."),n.disconnect(),s=!1),s){w||(w=!0,t.onAudioProcessStarted&&t.onAudioProcessStarted(),t.initCallback&&t.initCallback());var a=e.inputBuffer.getChannelData(0),u=new Float32Array(a);if(i.push(u),2===c){var d=e.inputBuffer.getChannelData(1),f=new Float32Array(d);o.push(f)}l+=m,r.recordingLength=l,void 0!==t.timeSlice&&(C.recordingLength+=m,C.left.push(u),2===c&&C.right.push(f))}else g&&(g.disconnect(),g=null)},p.createMediaStreamDestination?n.connect(p.createMediaStreamDestination()):n.connect(p.destination),this.leftchannel=i,this.rightchannel=o,this.numberOfAudioChannels=c,this.desiredSampRate=u,this.sampleRate=v,r.recordingLength=l;var C={left:[],right:[],recordingLength:0};function S(){s&&"function"==typeof t.ondataavailable&&void 0!==t.timeSlice&&(C.left.length?(d({desiredSampRate:u,sampleRate:v,numberOfAudioChannels:c,internalInterleavedLength:C.recordingLength,leftBuffers:C.left,rightBuffers:1===c?[]:C.right},function(e,n){var r=new Blob([n],{type:"audio/wav"});t.ondataavailable(r),setTimeout(S,t.timeSlice)}),C={left:[],right:[],recordingLength:0}):setTimeout(S,t.timeSlice))}}
  285. /**
  286. * CanvasRecorder is a standalone class used by {@link RecordRTC} to bring HTML5-Canvas recording into video WebM. It uses HTML2Canvas library and runs top over {@link Whammy}.
  287. * @summary HTML2Canvas recording into video WebM.
  288. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  289. * @author {@link https://MuazKhan.com|Muaz Khan}
  290. * @typedef CanvasRecorder
  291. * @class
  292. * @example
  293. * var recorder = new CanvasRecorder(htmlElement, { disableLogs: true, useWhammyRecorder: true });
  294. * recorder.record();
  295. * recorder.stop(function(blob) {
  296. * video.src = URL.createObjectURL(blob);
  297. * });
  298. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  299. * @param {HTMLElement} htmlElement - querySelector/getElementById/getElementsByTagName[0]/etc.
  300. * @param {object} config - {disableLogs:true, initCallback: function}
  301. */
  302. function B(e,t){if("undefined"==typeof html2canvas)throw"Please link: https://www.webrtc-experiment.com/screenshot.js";(t=t||{}).frameInterval||(t.frameInterval=10);var n=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach(function(e){e in document.createElement("canvas")&&(n=!0)});var r,i,a,o=!(!window.webkitRTCPeerConnection&&!window.webkitGetUserMedia||!window.chrome),s=50,l=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(o&&l&&l[2]&&(s=parseInt(l[2],10)),o&&s<52&&(n=!1),t.useWhammyRecorder&&(n=!1),n)if(t.disableLogs||console.log("Your browser supports both MediRecorder API and canvas.captureStream!"),e instanceof HTMLCanvasElement)r=e;else{if(!(e instanceof CanvasRenderingContext2D))throw"Please pass either HTMLCanvasElement or CanvasRenderingContext2D.";r=e.canvas}else navigator.mozGetUserMedia&&(t.disableLogs||console.error("Canvas recording is NOT supported in Firefox."));this.record=function(){if(a=!0,n&&!t.useWhammyRecorder){var e;"captureStream"in r?e=r.captureStream(25):"mozCaptureStream"in r?e=r.mozCaptureStream(25):"webkitCaptureStream"in r&&(e=r.webkitCaptureStream(25));try{var o=new y;o.addTrack(x(e,"video")[0]),e=o}catch(e){}if(!e)throw"captureStream API are NOT available.";(i=new E(e,{mimeType:t.mimeType||"video/webm"})).record()}else f.frames=[],d=(new Date).getTime(),h();t.initCallback&&t.initCallback()},this.getWebPImages=function(n){if("canvas"===e.nodeName.toLowerCase()){var r=f.frames.length;f.frames.forEach(function(e,n){var i=r-n;t.disableLogs||console.log(i+"/"+r+" frames remaining"),t.onEncodingCallback&&t.onEncodingCallback(i,r);var a=e.image.toDataURL("image/webp",1);f.frames[n].image=a}),t.disableLogs||console.log("Generating WebM"),n()}else n()},this.stop=function(e){a=!1;var r=this;n&&i?i.stop(e):this.getWebPImages(function(){f.compile(function(n){t.disableLogs||console.log("Recording finished!"),r.blob=n,r.blob.forEach&&(r.blob=new Blob([],{type:"video/webm"})),e&&e(r.blob),f.frames=[]})})};var c=!1;function u(){f.frames=[],a=!1,c=!1}function h(){if(c)return d=(new Date).getTime(),setTimeout(h,500);if("canvas"===e.nodeName.toLowerCase()){var n=(new Date).getTime()-d;return d=(new Date).getTime(),f.frames.push({image:(r=document.createElement("canvas"),i=r.getContext("2d"),r.width=e.width,r.height=e.height,i.drawImage(e,0,0),r),duration:n}),void(a&&setTimeout(h,t.frameInterval))}var r,i;html2canvas(e,{grabMouse:void 0===t.showMousePointer||t.showMousePointer,onrendered:function(e){var n=(new Date).getTime()-d;if(!n)return setTimeout(h,t.frameInterval);d=(new Date).getTime(),f.frames.push({image:e.toDataURL("image/webp",1),duration:n}),a&&setTimeout(h,t.frameInterval)}})}this.pause=function(){c=!0,i instanceof E&&i.pause()},this.resume=function(){c=!1,i instanceof E?i.resume():a||this.record()},this.clearRecordedData=function(){a&&this.stop(u),u()},this.name="CanvasRecorder",this.toString=function(){return this.name};var d=(new Date).getTime(),f=new M.Video(100)}
  303. /**
  304. * WhammyRecorder is a standalone class used by {@link RecordRTC} to bring video recording in Chrome. It runs top over {@link Whammy}.
  305. * @summary Video recording feature in Chrome.
  306. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  307. * @author {@link https://MuazKhan.com|Muaz Khan}
  308. * @typedef WhammyRecorder
  309. * @class
  310. * @example
  311. * var recorder = new WhammyRecorder(mediaStream);
  312. * recorder.record();
  313. * recorder.stop(function(blob) {
  314. * video.src = URL.createObjectURL(blob);
  315. * });
  316. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  317. * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
  318. * @param {object} config - {disableLogs: true, initCallback: function, video: HTMLVideoElement, etc.}
  319. */
  320. function I(e,t){function n(e){e=void 0!==e?e:10;var t=(new Date).getTime()-l;return t?a?(l=(new Date).getTime(),setTimeout(n,100)):(l=(new Date).getTime(),s.paused&&s.play(),h.drawImage(s,0,0,u.width,u.height),c.frames.push({duration:t,image:u.toDataURL("image/webp")}),void(i||setTimeout(n,e,e))):setTimeout(n,e,e)}function r(e,t,n,r,i){var a=document.createElement("canvas");a.width=u.width,a.height=u.height;var o,s,l,c=a.getContext("2d"),h=[],d=-1===t,f=t&&t>0&&t<=e.length?t:e.length,p=0,g=0,A=0,m=Math.sqrt(Math.pow(255,2)+Math.pow(255,2)+Math.pow(255,2)),v=n&&n>=0&&n<=1?n:0,y=r&&r>=0&&r<=1?r:0,b=!1;s=-1,l=(o={length:f,functionToLoop:function(t,n){var r,i,a,o=function(){!b&&a-r<=a*y||(d&&(b=!0),h.push(e[n])),t()};if(b)o();else{var s=new Image;s.onload=function(){c.drawImage(s,0,0,u.width,u.height);var e=c.getImageData(0,0,u.width,u.height);r=0,i=e.data.length,a=e.data.length/4;for(var t=0;t<i;t+=4){var n={r:e.data[t],g:e.data[t+1],b:e.data[t+2]};Math.sqrt(Math.pow(n.r-p,2)+Math.pow(n.g-g,2)+Math.pow(n.b-A,2))<=m*v&&r++}o()},s.src=e[n].image}},callback:function(){(h=h.concat(e.slice(f))).length<=0&&h.push(e[e.length-1]),i(h)}}).length,function e(){++s!==l?setTimeout(function(){o.functionToLoop(e,s)},1):o.callback()}()}(t=t||{}).frameInterval||(t.frameInterval=10),t.disableLogs||console.log("Using frames-interval:",t.frameInterval),this.record=function(){t.width||(t.width=320),t.height||(t.height=240),t.video||(t.video={width:t.width,height:t.height}),t.canvas||(t.canvas={width:t.width,height:t.height}),u.width=t.canvas.width||320,u.height=t.canvas.height||240,h=u.getContext("2d"),t.video&&t.video instanceof HTMLVideoElement?(s=t.video.cloneNode(),t.initCallback&&t.initCallback()):(s=document.createElement("video"),C(e,s),s.onloadedmetadata=function(){t.initCallback&&t.initCallback()},s.width=t.video.width,s.height=t.video.height),s.muted=!0,s.play(),l=(new Date).getTime(),c=new M.Video,t.disableLogs||(console.log("canvas resolutions",u.width,"*",u.height),console.log("video width/height",s.width||u.width,"*",s.height||u.height)),n(t.frameInterval)};var i=!1;this.stop=function(e){e=e||function(){},i=!0;var n=this;setTimeout(function(){r(c.frames,-1,null,null,function(r){c.frames=r,t.advertisement&&t.advertisement.length&&(c.frames=t.advertisement.concat(c.frames)),c.compile(function(t){n.blob=t,n.blob.forEach&&(n.blob=new Blob([],{type:"video/webm"})),e&&e(n.blob)})})},10)};var a=!1;function o(){c.frames=[],i=!0,a=!1}this.pause=function(){a=!0},this.resume=function(){a=!1,i&&this.record()},this.clearRecordedData=function(){i||this.stop(o),o()},this.name="WhammyRecorder",this.toString=function(){return this.name};var s,l,c,u=document.createElement("canvas"),h=u.getContext("2d")}void 0!==d?S.AudioContext=d:"undefined"!=typeof webkitAudioContext&&(S.AudioContext=webkitAudioContext),a.Storage=S,a.MediaStreamRecorder=E,a.StereoAudioRecorder=T,a.CanvasRecorder=B,a.WhammyRecorder=I;
  321. /**
  322. * Whammy is a standalone class used by {@link RecordRTC} to bring video recording in Chrome. It is written by {@link https://github.com/antimatter15|antimatter15}
  323. * @summary A real time javascript webm encoder based on a canvas hack.
  324. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  325. * @author {@link https://MuazKhan.com|Muaz Khan}
  326. * @typedef Whammy
  327. * @class
  328. * @example
  329. * var recorder = new Whammy().Video(15);
  330. * recorder.add(context || canvas || dataURL);
  331. * var output = recorder.compile();
  332. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  333. */
  334. var M=function(){function e(e){this.frames=[],this.duration=e||1,this.quality=.8}function t(e){function t(e,t,n){return[{data:e,id:231}].concat(n.map(function(e){var n=function(e){var t=0;e.keyframe&&(t|=128);e.invisible&&(t|=8);e.lacing&&(t|=e.lacing<<1);e.discardable&&(t|=1);if(e.trackNum>127)throw"TrackNumber > 127 not supported";return[128|e.trackNum,e.timecode>>8,255&e.timecode,t].map(function(e){return String.fromCharCode(e)}).join("")+e.frame}({discardable:0,frame:e.data.slice(4),invisible:0,keyframe:1,lacing:0,trackNum:1,timecode:Math.round(t)});return t+=e.duration,{data:n,id:163}}))}function n(e){for(var t=[];e>0;)t.push(255&e),e>>=8;return new Uint8Array(t.reverse())}function r(e){var t=[];e=(e.length%8?new Array(9-e.length%8).join("0"):"")+e;for(var n=0;n<e.length;n+=8)t.push(parseInt(e.substr(n,8),2));return new Uint8Array(t)}function i(e,t){return parseInt(e.substr(t+4,4).split("").map(function(e){var t=e.charCodeAt(0).toString(2);return new Array(8-t.length+1).join("0")+t}).join(""),2)}var a=new function(e){var i=function(e){if(e[0]){for(var t=e[0].width,n=e[0].height,r=e[0].duration,i=1;i<e.length;i++)r+=e[i].duration;return{duration:r,width:t,height:n}}postMessage({error:"Something went wrong. Maybe WebP format is not supported in the current browser."})}(e);if(!i)return[];for(var a,o=[{id:440786851,data:[{data:1,id:17030},{data:1,id:17143},{data:4,id:17138},{data:8,id:17139},{data:"webm",id:17026},{data:2,id:17031},{data:2,id:17029}]},{id:408125543,data:[{id:357149030,data:[{data:1e6,id:2807729},{data:"whammy",id:19840},{data:"whammy",id:22337},{data:(a=i.duration,[].slice.call(new Uint8Array(new Float64Array([a]).buffer),0).map(function(e){return String.fromCharCode(e)}).reverse().join("")),id:17545}]},{id:374648427,data:[{id:174,data:[{data:1,id:215},{data:1,id:29637},{data:0,id:156},{data:"und",id:2274716},{data:"V_VP8",id:134},{data:"VP8",id:2459272},{data:1,id:131},{id:224,data:[{data:i.width,id:176},{data:i.height,id:186}]}]}]}]}],s=0,l=0;s<e.length;){var c=[],u=0;do{c.push(e[s]),u+=e[s].duration,s++}while(s<e.length&&u<3e4);var h={id:524531317,data:t(l,0,c)};o[1].data.push(h),l+=u}return function e(t){for(var i=[],a=0;a<t.length;a++){var o=t[a].data;"object"==typeof o&&(o=e(o)),"number"==typeof o&&(o=r(o.toString(2))),"string"==typeof o&&(o=new Uint8Array(o.split("").map(function(e){return e.charCodeAt(0)})));var s=o.size||o.byteLength||o.length,l=Math.ceil(Math.ceil(Math.log(s)/Math.log(2))/8),c=s.toString(2),u=new Array(7*l+7+1-c.length).join("0")+c,h=new Array(l).join("0")+"1"+u;i.push(n(t[a].id)),i.push(r(h)),i.push(o)}return new Blob(i,{type:"video/webm"})}(o)}(e.map(function(e){var t=function(e){for(var t=e.RIFF[0].WEBP[0],n=t.indexOf("*"),r=0,i=[];r<4;r++)i[r]=t.charCodeAt(n+3+r);return{width:16383&(i[1]<<8|i[0]),height:16383&(i[3]<<8|i[2]),data:t,riff:e}}(function e(t){for(var n=0,r={};n<t.length;){var a=t.substr(n,4),o=i(t,n),s=t.substr(n+4+4,o);n+=8+o,r[a]=r[a]||[],"RIFF"===a||"LIST"===a?r[a].push(e(s)):r[a].push(s)}return r}(atob(e.image.slice(23))));return t.duration=e.duration,t}));postMessage(a)}return e.prototype.add=function(e,t){if("canvas"in e&&(e=e.canvas),"toDataURL"in e&&(e=e.toDataURL("image/webp",this.quality)),!/^data:image\/webp;base64,/gi.test(e))throw"Input must be formatted properly as a base64 encoded DataURI of type image/webp";this.frames.push({image:e,duration:t||this.duration})},e.prototype.compile=function(e){var n,r,i,a=(n=t,r=f.createObjectURL(new Blob([n.toString(),"this.onmessage = function (eee) {"+n.name+"(eee.data);}"],{type:"application/javascript"})),i=new Worker(r),f.revokeObjectURL(r),i);a.onmessage=function(t){t.data.error?console.error(t.data.error):e(t.data)},a.postMessage(this.frames)},{Video:e}}();a.Whammy=M;
  335. /**
  336. * DiskStorage is a standalone object used by {@link RecordRTC} to store recorded blobs in IndexedDB storage.
  337. * @summary Writing blobs into IndexedDB.
  338. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  339. * @author {@link https://MuazKhan.com|Muaz Khan}
  340. * @example
  341. * DiskStorage.Store({
  342. * audioBlob: yourAudioBlob,
  343. * videoBlob: yourVideoBlob,
  344. * gifBlob : yourGifBlob
  345. * });
  346. * DiskStorage.Fetch(function(dataURL, type) {
  347. * if(type === 'audioBlob') { }
  348. * if(type === 'videoBlob') { }
  349. * if(type === 'gifBlob') { }
  350. * });
  351. * // DiskStorage.dataStoreName = 'recordRTC';
  352. * // DiskStorage.onError = function(error) { };
  353. * @property {function} init - This method must be called once to initialize IndexedDB ObjectStore. Though, it is auto-used internally.
  354. * @property {function} Fetch - This method fetches stored blobs from IndexedDB.
  355. * @property {function} Store - This method stores blobs in IndexedDB.
  356. * @property {function} onError - This function is invoked for any known/unknown error.
  357. * @property {string} dataStoreName - Name of the ObjectStore created in IndexedDB storage.
  358. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  359. */
  360. var P={init:function(){var e=this;if("undefined"!=typeof indexedDB&&void 0!==indexedDB.open){var t,n=this.dbName||location.href.replace(/\/|:|#|%|\.|\[|\]/g,""),r=indexedDB.open(n,1);r.onerror=e.onError,r.onsuccess=function(){((t=r.result).onerror=e.onError,t.setVersion)?1!==t.version?t.setVersion(1).onsuccess=function(){i(t),a()}:a():a()},r.onupgradeneeded=function(e){i(e.target.result)}}else console.error("IndexedDB API are not available in this browser.");function i(t){t.createObjectStore(e.dataStoreName)}function a(){var n=t.transaction([e.dataStoreName],"readwrite");function r(t){n.objectStore(e.dataStoreName).get(t).onsuccess=function(n){e.callback&&e.callback(n.target.result,t)}}e.videoBlob&&n.objectStore(e.dataStoreName).put(e.videoBlob,"videoBlob"),e.gifBlob&&n.objectStore(e.dataStoreName).put(e.gifBlob,"gifBlob"),e.audioBlob&&n.objectStore(e.dataStoreName).put(e.audioBlob,"audioBlob"),r("audioBlob"),r("videoBlob"),r("gifBlob")}},Fetch:function(e){return this.callback=e,this.init(),this},Store:function(e){return this.audioBlob=e.audioBlob,this.videoBlob=e.videoBlob,this.gifBlob=e.gifBlob,this.init(),this},onError:function(e){console.error(JSON.stringify(e,null,"\t"))},dataStoreName:"recordRTC",dbName:null};
  361. /**
  362. * GifRecorder is standalone calss used by {@link RecordRTC} to record video or canvas into animated gif.
  363. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  364. * @author {@link https://MuazKhan.com|Muaz Khan}
  365. * @typedef GifRecorder
  366. * @class
  367. * @example
  368. * var recorder = new GifRecorder(mediaStream || canvas || context, { onGifPreview: function, onGifRecordingStarted: function, width: 1280, height: 720, frameRate: 200, quality: 10 });
  369. * recorder.record();
  370. * recorder.stop(function(blob) {
  371. * img.src = URL.createObjectURL(blob);
  372. * });
  373. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  374. * @param {MediaStream} mediaStream - MediaStream object or HTMLCanvasElement or CanvasRenderingContext2D.
  375. * @param {object} config - {disableLogs:true, initCallback: function, width: 320, height: 240, frameRate: 200, quality: 10}
  376. */
  377. function D(e,t){if("undefined"==typeof GIFEncoder){var n=document.createElement("script");n.src="https://www.webrtc-experiment.com/gif-recorder.js",(document.body||document.documentElement).appendChild(n)}t=t||{};var r=e instanceof CanvasRenderingContext2D||e instanceof HTMLCanvasElement;this.record=function(){"undefined"!=typeof GIFEncoder&&s?(r||(t.width||(t.width=l.offsetWidth||320),t.height||(t.height=l.offsetHeight||240),t.video||(t.video={width:t.width,height:t.height}),t.canvas||(t.canvas={width:t.width,height:t.height}),a.width=t.canvas.width||320,a.height=t.canvas.height||240,l.width=t.video.width||320,l.height=t.video.height||240),(d=new GIFEncoder).setRepeat(0),d.setDelay(t.frameRate||200),d.setQuality(t.quality||10),d.start(),"function"==typeof t.onGifRecordingStarted&&t.onGifRecordingStarted(),Date.now(),f=c(function e(n){if(!0!==p.clearedRecordedData){if(i)return setTimeout(function(){e(n)},100);f=c(e),void 0===typeof u&&(u=n),n-u<90||(!r&&l.paused&&l.play(),r||o.drawImage(l,0,0,a.width,a.height),t.onGifPreview&&t.onGifPreview(a.toDataURL("image/png")),d.addFrame(o),u=n)}}),t.initCallback&&t.initCallback()):setTimeout(p.record,1e3)},this.stop=function(e){e=e||function(){},f&&h(f),Date.now(),this.blob=new Blob([new Uint8Array(d.stream().bin)],{type:"image/gif"}),e(this.blob),d.stream().bin=[]};var i=!1;this.pause=function(){i=!0},this.resume=function(){i=!1},this.clearRecordedData=function(){p.clearedRecordedData=!0,d&&(d.stream().bin=[])},this.name="GifRecorder",this.toString=function(){return this.name};var a=document.createElement("canvas"),o=a.getContext("2d");r&&(e instanceof CanvasRenderingContext2D?a=(o=e).canvas:e instanceof HTMLCanvasElement&&(o=e.getContext("2d"),a=e));var s=!0;if(!r){var l=document.createElement("video");l.muted=!0,l.autoplay=!0,l.playsInline=!0,s=!1,l.onloadedmetadata=function(){s=!0},C(e,l),l.play()}var u,d,f=null,p=this}function F(e,t){t=t||"multi-streams-mixer";var n=[],r=!1,i=document.createElement("canvas"),a=i.getContext("2d");i.style.opacity=0,i.style.position="absolute",i.style.zIndex=-1,i.style.top="-1000em",i.style.left="-1000em",i.className=t,(document.body||document.documentElement).appendChild(i),this.disableLogs=!1,this.frameInterval=10,this.width=360,this.height=240,this.useGainNode=!0;var o=this,s=window.AudioContext;void 0===s&&("undefined"!=typeof webkitAudioContext&&(s=webkitAudioContext),"undefined"!=typeof mozAudioContext&&(s=mozAudioContext));var l=window.URL;void 0===l&&"undefined"!=typeof webkitURL&&(l=webkitURL),"undefined"!=typeof navigator&&void 0===navigator.getUserMedia&&(void 0!==navigator.webkitGetUserMedia&&(navigator.getUserMedia=navigator.webkitGetUserMedia),void 0!==navigator.mozGetUserMedia&&(navigator.getUserMedia=navigator.mozGetUserMedia));var c=window.MediaStream;void 0===c&&"undefined"!=typeof webkitMediaStream&&(c=webkitMediaStream),void 0!==c&&void 0===c.prototype.stop&&(c.prototype.stop=function(){this.getTracks().forEach(function(e){e.stop()})});var u={};function h(){if(!r){var e=n.length,t=!1,a=[];if(n.forEach(function(e){e.stream||(e.stream={}),e.stream.fullcanvas?t=e:a.push(e)}),t)i.width=t.stream.width,i.height=t.stream.height;else if(a.length){i.width=e>1?2*a[0].width:a[0].width;var s=1;3!==e&&4!==e||(s=2),5!==e&&6!==e||(s=3),7!==e&&8!==e||(s=4),9!==e&&10!==e||(s=5),i.height=a[0].height*s}else i.width=o.width||360,i.height=o.height||240;t&&t instanceof HTMLVideoElement&&d(t),a.forEach(function(e,t){d(e,t)}),setTimeout(h,o.frameInterval)}}function d(e,t){if(!r){var n=0,i=0,o=e.width,s=e.height;1===t&&(n=e.width),2===t&&(i=e.height),3===t&&(n=e.width,i=e.height),4===t&&(i=2*e.height),5===t&&(n=e.width,i=2*e.height),6===t&&(i=3*e.height),7===t&&(n=e.width,i=3*e.height),void 0!==e.stream.left&&(n=e.stream.left),void 0!==e.stream.top&&(i=e.stream.top),void 0!==e.stream.width&&(o=e.stream.width),void 0!==e.stream.height&&(s=e.stream.height),a.drawImage(e,n,i,o,s),"function"==typeof e.stream.onRender&&e.stream.onRender(a,n,i,o,s,t)}}function f(e){var n=document.createElement("video");return function(e,t){"srcObject"in t?t.srcObject=e:"mozSrcObject"in t?t.mozSrcObject=e:t.srcObject=e}(e,n),n.className=t,n.muted=!0,n.volume=0,n.width=e.width||o.width||360,n.height=e.height||o.height||240,n.play(),n}function p(t){n=[],(t=t||e).forEach(function(e){if(e.getTracks().filter(function(e){return"video"===e.kind}).length){var t=f(e);t.stream=e,n.push(t)}})}void 0!==s?u.AudioContext=s:"undefined"!=typeof webkitAudioContext&&(u.AudioContext=webkitAudioContext),this.startDrawingFrames=function(){h()},this.appendStreams=function(t){if(!t)throw"First parameter is required.";t instanceof Array||(t=[t]),t.forEach(function(t){var r=new c;if(t.getTracks().filter(function(e){return"video"===e.kind}).length){var i=f(t);i.stream=t,n.push(i),r.addTrack(t.getTracks().filter(function(e){return"video"===e.kind})[0])}if(t.getTracks().filter(function(e){return"audio"===e.kind}).length){var a=o.audioContext.createMediaStreamSource(t);o.audioDestination=o.audioContext.createMediaStreamDestination(),a.connect(o.audioDestination),r.addTrack(o.audioDestination.stream.getTracks().filter(function(e){return"audio"===e.kind})[0])}e.push(r)})},this.releaseStreams=function(){n=[],r=!0,o.gainNode&&(o.gainNode.disconnect(),o.gainNode=null),o.audioSources.length&&(o.audioSources.forEach(function(e){e.disconnect()}),o.audioSources=[]),o.audioDestination&&(o.audioDestination.disconnect(),o.audioDestination=null),o.audioContext&&o.audioContext.close(),o.audioContext=null,a.clearRect(0,0,i.width,i.height),i.stream&&(i.stream.stop(),i.stream=null)},this.resetVideoStreams=function(e){!e||e instanceof Array||(e=[e]),p(e)},this.name="MultiStreamsMixer",this.toString=function(){return this.name},this.getMixedStream=function(){r=!1;var t=function(){var e;p(),"captureStream"in i?e=i.captureStream():"mozCaptureStream"in i?e=i.mozCaptureStream():o.disableLogs||console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");var t=new c;return e.getTracks().filter(function(e){return"video"===e.kind}).forEach(function(e){t.addTrack(e)}),i.stream=t,t}(),n=function(){u.AudioContextConstructor||(u.AudioContextConstructor=new u.AudioContext),o.audioContext=u.AudioContextConstructor,o.audioSources=[],!0===o.useGainNode&&(o.gainNode=o.audioContext.createGain(),o.gainNode.connect(o.audioContext.destination),o.gainNode.gain.value=0);var t=0;if(e.forEach(function(e){if(e.getTracks().filter(function(e){return"audio"===e.kind}).length){t++;var n=o.audioContext.createMediaStreamSource(e);!0===o.useGainNode&&n.connect(o.gainNode),o.audioSources.push(n)}}),t)return o.audioDestination=o.audioContext.createMediaStreamDestination(),o.audioSources.forEach(function(e){e.connect(o.audioDestination)}),o.audioDestination.stream}();return n&&n.getTracks().filter(function(e){return"audio"===e.kind}).forEach(function(e){t.addTrack(e)}),e.forEach(function(e){e.fullcanvas}),t}}
  378. /**
  379. * MultiStreamRecorder can record multiple videos in single container.
  380. * @summary Multi-videos recorder.
  381. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  382. * @author {@link https://MuazKhan.com|Muaz Khan}
  383. * @typedef MultiStreamRecorder
  384. * @class
  385. * @example
  386. * var options = {
  387. * mimeType: 'video/webm'
  388. * }
  389. * var recorder = new MultiStreamRecorder(ArrayOfMediaStreams, options);
  390. * recorder.record();
  391. * recorder.stop(function(blob) {
  392. * video.src = URL.createObjectURL(blob);
  393. *
  394. * // or
  395. * var blob = recorder.blob;
  396. * });
  397. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  398. * @param {MediaStreams} mediaStreams - Array of MediaStreams.
  399. * @param {object} config - {disableLogs:true, frameInterval: 1, mimeType: "video/webm"}
  400. */
  401. function O(e,t){e=e||[];var n,r,i=this;(t=t||{elementClass:"multi-streams-mixer",mimeType:"video/webm",video:{width:360,height:240}}).frameInterval||(t.frameInterval=10),t.video||(t.video={}),t.video.width||(t.video.width=360),t.video.height||(t.video.height=240),this.record=function(){var i;n=new F(e,t.elementClass||"multi-streams-mixer"),(i=[],e.forEach(function(e){x(e,"video").forEach(function(e){i.push(e)})}),i).length&&(n.frameInterval=t.frameInterval||10,n.width=t.video.width||360,n.height=t.video.height||240,n.startDrawingFrames()),t.previewStream&&"function"==typeof t.previewStream&&t.previewStream(n.getMixedStream()),(r=new E(n.getMixedStream(),t)).record()},this.stop=function(e){r&&r.stop(function(t){i.blob=t,e(t),i.clearRecordedData()})},this.pause=function(){r&&r.pause()},this.resume=function(){r&&r.resume()},this.clearRecordedData=function(){r&&(r.clearRecordedData(),r=null),n&&(n.releaseStreams(),n=null)},this.addStreams=function(i){if(!i)throw"First parameter is required.";i instanceof Array||(i=[i]),e.concat(i),r&&n&&(n.appendStreams(i),t.previewStream&&"function"==typeof t.previewStream&&t.previewStream(n.getMixedStream()))},this.resetVideoStreams=function(e){n&&(!e||e instanceof Array||(e=[e]),n.resetVideoStreams(e))},this.getMixer=function(){return n},this.name="MultiStreamRecorder",this.toString=function(){return this.name}}
  402. /**
  403. * WebAssemblyRecorder lets you create webm videos in JavaScript via WebAssembly. The library consumes raw RGBA32 buffers (4 bytes per pixel) and turns them into a webm video with the given framerate and quality. This makes it compatible out-of-the-box with ImageData from a CANVAS. With realtime mode you can also use webm-wasm for streaming webm videos.
  404. * @summary Video recording feature in Chrome, Firefox and maybe Edge.
  405. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  406. * @author {@link https://MuazKhan.com|Muaz Khan}
  407. * @typedef WebAssemblyRecorder
  408. * @class
  409. * @example
  410. * var recorder = new WebAssemblyRecorder(mediaStream);
  411. * recorder.record();
  412. * recorder.stop(function(blob) {
  413. * video.src = URL.createObjectURL(blob);
  414. * });
  415. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  416. * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
  417. * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true}
  418. */
  419. function L(e,t){var n,r,i;function a(){return new ReadableStream({start:function(r){var i=document.createElement("canvas"),a=document.createElement("video"),o=!0;a.srcObject=e,a.muted=!0,a.height=t.height,a.width=t.width,a.volume=0,a.onplaying=function(){i.width=t.width,i.height=t.height;var e=i.getContext("2d"),s=1e3/t.frameRate,l=setInterval(function(){if(n&&(clearInterval(l),r.close()),o&&(o=!1,t.onVideoProcessStarted&&t.onVideoProcessStarted()),e.drawImage(a,0,0),"closed"!==r._controlledReadableStream.state)try{r.enqueue(e.getImageData(0,0,t.width,t.height))}catch(e){}},s)},a.play()}})}"undefined"!=typeof ReadableStream&&"undefined"!=typeof WritableStream||console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),(t=t||{}).width=t.width||640,t.height=t.height||480,t.frameRate=t.frameRate||30,t.bitrate=t.bitrate||1200,t.realtime=t.realtime||!0,this.record=function(){o=[],i=!1,this.blob=null,function e(s,l){if(!t.workerPath&&!l)return n=!1,void fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(t){t.arrayBuffer().then(function(t){e(s,t)})});if(!t.workerPath&&l instanceof ArrayBuffer){var c=new Blob([l],{type:"text/javascript"});t.workerPath=f.createObjectURL(c)}t.workerPath||console.error("workerPath parameter is missing."),(r=new Worker(t.workerPath)).postMessage(t.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),r.addEventListener("message",function(e){"READY"===e.data?(r.postMessage({width:t.width,height:t.height,bitrate:t.bitrate||1200,timebaseDen:t.frameRate||30,realtime:t.realtime}),a().pipeTo(new WritableStream({write:function(e){n?console.error("Got image, but recorder is finished!"):r.postMessage(e.data.buffer,[e.data.buffer])}}))):e.data&&(i||o.push(e.data))})}(e),"function"==typeof t.initCallback&&t.initCallback()},this.pause=function(){i=!0},this.resume=function(){i=!1};var o=[];this.stop=function(e){n=!0;var t=this;!function(e){r?(r.addEventListener("message",function(t){null===t.data&&(r.terminate(),r=null,e&&e())}),r.postMessage(null)):e&&e()}(function(){t.blob=new Blob(o,{type:"video/webm"}),e(t.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){o=[],i=!1,this.blob=null},this.blob=null}a.DiskStorage=P,a.GifRecorder=D,a.MultiStreamRecorder=O,a.RecordRTCPromisesHandler=
  420. /**
  421. * RecordRTCPromisesHandler adds promises support in {@link RecordRTC}. Try a {@link https://github.com/muaz-khan/RecordRTC/blob/master/simple-demos/RecordRTCPromisesHandler.html|demo here}
  422. * @summary Promises for {@link RecordRTC}
  423. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
  424. * @author {@link https://MuazKhan.com|Muaz Khan}
  425. * @typedef RecordRTCPromisesHandler
  426. * @class
  427. * @example
  428. * var recorder = new RecordRTCPromisesHandler(mediaStream, options);
  429. * recorder.startRecording()
  430. * .then(successCB)
  431. * .catch(errorCB);
  432. * // Note: You can access all RecordRTC API using "recorder.recordRTC" e.g.
  433. * recorder.recordRTC.onStateChanged = function(state) {};
  434. * recorder.recordRTC.setRecordingDuration(5000);
  435. * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
  436. * @param {MediaStream} mediaStream - Single media-stream object, array of media-streams, html-canvas-element, etc.
  437. * @param {object} config - {type:"video", recorderType: MediaStreamRecorder, disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, etc.}
  438. * @throws Will throw an error if "new" keyword is not used to initiate "RecordRTCPromisesHandler". Also throws error if first argument "MediaStream" is missing.
  439. * @requires {@link RecordRTC}
  440. */
  441. function(e,t){if(!this)throw'Use "new RecordRTCPromisesHandler()"';if(void 0===e)throw'First argument "MediaStream" is required.';var n=this;n.recordRTC=new a(e,t),this.startRecording=function(){return new Promise(function(e,t){try{n.recordRTC.startRecording(),e()}catch(e){t(e)}})},this.stopRecording=function(){return new Promise(function(e,t){try{n.recordRTC.stopRecording(function(r){n.blob=n.recordRTC.getBlob(),n.blob&&n.blob.size?e(r):t("Empty blob.",n.blob)})}catch(e){t(e)}})},this.pauseRecording=function(){return new Promise(function(e,t){try{n.recordRTC.pauseRecording(),e()}catch(e){t(e)}})},this.resumeRecording=function(){return new Promise(function(e,t){try{n.recordRTC.resumeRecording(),e()}catch(e){t(e)}})},this.getDataURL=function(e){return new Promise(function(e,t){try{n.recordRTC.getDataURL(function(t){e(t)})}catch(e){t(e)}})},this.getBlob=function(){return new Promise(function(e,t){try{e(n.recordRTC.getBlob())}catch(e){t(e)}})},this.getInternalRecorder=function(){return new Promise(function(e,t){try{e(n.recordRTC.getInternalRecorder())}catch(e){t(e)}})},this.reset=function(){return new Promise(function(e,t){try{e(n.recordRTC.reset())}catch(e){t(e)}})},this.destroy=function(){return new Promise(function(e,t){try{e(n.recordRTC.destroy())}catch(e){t(e)}})},this.getState=function(){return new Promise(function(e,t){try{e(n.recordRTC.getState())}catch(e){t(e)}})},this.blob=null,this.version="5.6.2"},a.WebAssemblyRecorder=L}).call(t,n("DuR2"),n("lNQ5"))},mgSH:function(e,t,n){var r=n("To6e"),i=r.System,a=r.VbrMode,o=(r.Float,r.ShortBlock),s=(r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),l=(r.new_float_n,r.new_int,r.new_int_n),c=r.new_short_n,u=r.assert,h=n("kheW"),d=n("9Zs0"),f=n("V0p0"),p=n("Zo5e"),g=n("0hxZ"),A=n("mnA4"),m=n("orZQ"),v=n("OSvQ"),y=n("/00o");e.exports=function e(){var t=n("ZezE"),r=this;e.V9=410,e.V8=420,e.V7=430,e.V6=440,e.V5=450,e.V4=460,e.V3=470,e.V2=480,e.V1=490,e.V0=500,e.R3MIX=1e3,e.STANDARD=1001,e.EXTREME=1002,e.INSANE=1003,e.STANDARD_FAST=1004,e.EXTREME_FAST=1005,e.MEDIUM=1006,e.MEDIUM_FAST=1007;var b,_,w,x,C;e.LAME_MAXMP3BUFFER=147456;var S,k,E,T=new h;function B(){this.lowerlimit=0}function I(e,t){this.lowpass=t}this.enc=new y,this.setModules=function(e,t,n,r,i,a,o,s,l){b=e,_=t,w=n,x=r,C=i,S=a,k=s,E=l,this.enc.setModules(_,T,x,S)};var M=4294479419;function P(e){return e>1?0:e<=0?1:Math.cos(Math.PI/2*e)}function D(e,t){switch(e){case 44100:return t.version=1,0;case 48e3:return t.version=1,1;case 32e3:return t.version=1,2;case 22050:return t.version=0,0;case 24e3:return t.version=0,1;case 16e3:return t.version=0,2;case 11025:return t.version=0,0;case 12e3:return t.version=0,1;case 8e3:return t.version=0,2;default:return t.version=0,-1}}function F(e,t,n){n<16e3&&(t=2);for(var r=v.bitrate_table[t][1],i=2;i<=14;i++)v.bitrate_table[t][i]>0&&Math.abs(v.bitrate_table[t][i]-e)<Math.abs(r-e)&&(r=v.bitrate_table[t][i]);return r}function O(e,t,n){n<16e3&&(t=2);for(var r=0;r<=14;r++)if(v.bitrate_table[t][r]>0&&v.bitrate_table[t][r]==e)return r;return-1}function L(e,t){var n=[new I(8,2e3),new I(16,3700),new I(24,3900),new I(32,5500),new I(40,7e3),new I(48,7500),new I(56,1e4),new I(64,11e3),new I(80,13500),new I(96,15100),new I(112,15600),new I(128,17e3),new I(160,17500),new I(192,18600),new I(224,19400),new I(256,19700),new I(320,20500)],i=r.nearestBitrateFullIndex(t);e.lowerlimit=n[i].lowpass}function R(e){var t=y.BLKSIZE+e.framesize-y.FFTOFFSET;return t=Math.max(t,512+e.framesize-32),u(f.MFSIZE>=t),t}function N(e,t,n,i,a,o){var s=r.enc.lame_encode_mp3_frame(e,t,n,i,a,o);return e.frameNum++,s}function U(){this.n_in=0,this.n_out=0}function j(){this.num_used=0}function H(e,t,n){var r=Math.PI*t;(e/=n)<0&&(e=0),e>1&&(e=1);var i=e-.5,a=.42-.5*Math.cos(2*e*Math.PI)+.08*Math.cos(4*e*Math.PI);return Math.abs(i)<1e-9?r/Math.PI:a*Math.sin(n*r*i)/(Math.PI*n*i)}function z(e,t,n,r,i,a,o,l,c){var h,d,p=e.internal_flags,g=0,A=e.out_samplerate/function e(t,n){return 0!=n?e(n,t%n):t}(e.out_samplerate,e.in_samplerate);A>f.BPC&&(A=f.BPC);var m=Math.abs(p.resample_ratio-Math.floor(.5+p.resample_ratio))<1e-4?1:0,v=1/p.resample_ratio;v>1&&(v=1);var y=31;0==y%2&&--y;var b=(y+=m)+1;if(0==p.fill_buffer_resample_init){for(p.inbuf_old[0]=s(b),p.inbuf_old[1]=s(b),h=0;h<=2*A;++h)p.blackfilt[h]=s(b);for(p.itime[0]=0,p.itime[1]=0,g=0;g<=2*A;g++){var _=0,w=(g-A)/(2*A);for(h=0;h<=y;h++)_+=p.blackfilt[g][h]=H(h-w,v,y);for(h=0;h<=y;h++)p.blackfilt[g][h]/=_}p.fill_buffer_resample_init=1}var x=p.inbuf_old[c];for(d=0;d<r;d++){var C,S;if(C=d*p.resample_ratio,y+(g=0|Math.floor(C-p.itime[c]))-y/2>=o)break;w=C-p.itime[c]-(g+y%2*.5),u(Math.abs(w)<=.501),S=0|Math.floor(2*w*A+A+.5);var k=0;for(h=0;h<=y;++h){var E=0|h+g-y/2;u(E<o),u(E+b>=0),k+=(E<0?x[b+E]:i[a+E])*p.blackfilt[S][h]}t[n+d]=k}if(l.num_used=Math.min(o,y+g-y/2),p.itime[c]+=l.num_used-d*p.resample_ratio,l.num_used>=b)for(h=0;h<b;h++)x[h]=i[a+l.num_used+h-b];else{var T=b-l.num_used;for(h=0;h<T;++h)x[h]=x[h+l.num_used];for(g=0;h<b;++h,++g)x[h]=i[a+g];u(g==l.num_used)}return d}function Q(e,t,n,r,i,a){var o=e.internal_flags;if(o.resample_ratio<.9999||o.resample_ratio>1.0001)for(var s=0;s<o.channels_out;s++){var l=new j;a.n_out=z(e,t[s],o.mf_size,e.framesize,n[s],r,i,l,s),a.n_in=l.num_used}else{a.n_out=Math.min(e.framesize,i),a.n_in=a.n_out;for(var c=0;c<a.n_out;++c)t[0][o.mf_size+c]=n[0][r+c],2==o.channels_out&&(t[1][o.mf_size+c]=n[1][r+c])}}this.lame_init=function(){var e=new d;return 0!=function(e){var n;return e.class_id=M,n=e.internal_flags=new f,e.mode=t.NOT_SET,e.original=1,e.in_samplerate=44100,e.num_channels=2,e.num_samples=-1,e.bWriteVbrTag=!0,e.quality=-1,e.short_blocks=null,n.subblock_gain=-1,e.lowpassfreq=0,e.highpassfreq=0,e.lowpasswidth=-1,e.highpasswidth=-1,e.VBR=a.vbr_off,e.VBR_q=4,e.ATHcurve=-1,e.VBR_mean_bitrate_kbps=128,e.VBR_min_bitrate_kbps=0,e.VBR_max_bitrate_kbps=0,e.VBR_hard_min=0,n.VBR_min_bitrate=1,n.VBR_max_bitrate=13,e.quant_comp=-1,e.quant_comp_short=-1,e.msfix=-1,n.resample_ratio=1,n.OldValue[0]=180,n.OldValue[1]=180,n.CurrentStep[0]=4,n.CurrentStep[1]=4,n.masking_lower=1,n.nsPsy.attackthre=-1,n.nsPsy.attackthre_s=-1,e.scale=-1,e.athaa_type=-1,e.ATHtype=-1,e.athaa_loudapprox=-1,e.athaa_sensitivity=0,e.useTemporal=null,e.interChRatio=-1,n.mf_samples_to_encode=y.ENCDELAY+y.POSTDELAY,e.encoder_padding=0,n.mf_size=y.ENCDELAY-y.MDCTDELAY,e.findReplayGain=!1,e.decode_on_the_fly=!1,n.decode_on_the_fly=!1,n.findReplayGain=!1,n.findPeakSample=!1,n.RadioGain=0,n.AudiophileGain=0,n.noclipGainChange=0,n.noclipScale=-1,e.preset=0,e.write_id3tag_automatic=!0,0}(e)?null:(e.lame_allocated_gfp=1,e)},this.nearestBitrateFullIndex=function(e){var t=[8,16,24,32,40,48,56,64,80,96,112,128,160,192,224,256,320],n=0,r=0,i=0,a=0;a=t[16],i=16,r=t[16],n=16;for(var o=0;o<16;o++)if(Math.max(e,t[o+1])!=e){a=t[o+1],i=o+1,r=t[o],n=o;break}return a-e>e-r?n:i},this.lame_init_params=function(e){var n,r,c,d=e.internal_flags;if(d.Class_ID=0,null==d.ATH&&(d.ATH=new p),null==d.PSY&&(d.PSY=new function(){this.mask_adjust=0,this.mask_adjust_short=0,this.bo_l_weight=s(y.SBMAX_l),this.bo_s_weight=s(y.SBMAX_s)}),null==d.rgdata&&(d.rgdata=new g),d.channels_in=e.num_channels,1==d.channels_in&&(e.mode=t.MONO),d.channels_out=e.mode==t.MONO?1:2,d.mode_ext=y.MPG_MD_MS_LR,e.mode==t.MONO&&(e.force_ms=!1),e.VBR==a.vbr_off&&128!=e.VBR_mean_bitrate_kbps&&0==e.brate&&(e.brate=e.VBR_mean_bitrate_kbps),e.VBR==a.vbr_off||e.VBR==a.vbr_mtrh||e.VBR==a.vbr_mt||(e.free_format=!1),e.VBR==a.vbr_off&&0==e.brate&&m.EQ(e.compression_ratio,0)&&(e.compression_ratio=11.025),e.VBR==a.vbr_off&&e.compression_ratio>0&&(0==e.out_samplerate&&(e.out_samplerate=map2MP3Frequency(int(.97*e.in_samplerate))),e.brate=0|16*e.out_samplerate*d.channels_out/(1e3*e.compression_ratio),d.samplerate_index=D(e.out_samplerate,e),e.free_format||(e.brate=F(e.brate,e.version,e.out_samplerate))),0!=e.out_samplerate&&(e.out_samplerate<16e3?(e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,8),e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,64)):e.out_samplerate<32e3?(e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,8),e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,160)):(e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,32),e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,320))),0==e.lowpassfreq){var f=16e3;switch(e.VBR){case a.vbr_off:L(I=new B,e.brate),f=I.lowerlimit;break;case a.vbr_abr:var I;L(I=new B,e.VBR_mean_bitrate_kbps),f=I.lowerlimit;break;case a.vbr_rh:var R=[19500,19e3,18600,18e3,17500,16e3,15600,14900,12500,1e4,3950];if(0<=e.VBR_q&&e.VBR_q<=9){var N=R[e.VBR_q],U=R[e.VBR_q+1],j=e.VBR_q_frac;f=linear_int(N,U,j)}else f=19500;break;default:R=[19500,19e3,18500,18e3,17500,16500,15500,14500,12500,9500,3950],0<=e.VBR_q&&e.VBR_q<=9?(N=R[e.VBR_q],U=R[e.VBR_q+1],j=e.VBR_q_frac,f=linear_int(N,U,j)):f=19500}e.mode!=t.MONO||e.VBR!=a.vbr_off&&e.VBR!=a.vbr_abr||(f*=1.5),e.lowpassfreq=0|f}if(0==e.out_samplerate&&(2*e.lowpassfreq>e.in_samplerate&&(e.lowpassfreq=e.in_samplerate/2),e.out_samplerate=(n=0|e.lowpassfreq,r=e.in_samplerate,c=44100,r>=48e3?c=48e3:r>=44100?c=44100:r>=32e3?c=32e3:r>=24e3?c=24e3:r>=22050?c=22050:r>=16e3?c=16e3:r>=12e3?c=12e3:r>=11025?c=11025:r>=8e3&&(c=8e3),-1==n?c:(n<=15960&&(c=44100),n<=15250&&(c=32e3),n<=11220&&(c=24e3),n<=9970&&(c=22050),n<=7230&&(c=16e3),n<=5420&&(c=12e3),n<=4510&&(c=11025),n<=3970&&(c=8e3),r<c?r>44100?48e3:r>32e3?44100:r>24e3?32e3:r>22050?24e3:r>16e3?22050:r>12e3?16e3:r>11025?12e3:r>8e3?11025:8e3:c))),e.lowpassfreq=Math.min(20500,e.lowpassfreq),e.lowpassfreq=Math.min(e.out_samplerate/2,e.lowpassfreq),e.VBR==a.vbr_off&&(e.compression_ratio=16*e.out_samplerate*d.channels_out/(1e3*e.brate)),e.VBR==a.vbr_abr&&(e.compression_ratio=16*e.out_samplerate*d.channels_out/(1e3*e.VBR_mean_bitrate_kbps)),e.bWriteVbrTag||(e.findReplayGain=!1,e.decode_on_the_fly=!1,d.findPeakSample=!1),d.findReplayGain=e.findReplayGain,d.decode_on_the_fly=e.decode_on_the_fly,d.decode_on_the_fly&&(d.findPeakSample=!0),d.findReplayGain&&b.InitGainAnalysis(d.rgdata,e.out_samplerate)==GainAnalysis.INIT_GAIN_ANALYSIS_ERROR)return e.internal_flags=null,-6;switch(d.decode_on_the_fly&&!e.decode_only&&(null!=d.hip&&E.hip_decode_exit(d.hip),d.hip=E.hip_decode_init()),d.mode_gr=e.out_samplerate<=24e3?1:2,e.framesize=576*d.mode_gr,e.encoder_delay=y.ENCDELAY,d.resample_ratio=e.in_samplerate/e.out_samplerate,e.VBR){case a.vbr_mt:case a.vbr_rh:case a.vbr_mtrh:e.compression_ratio=[5.7,6.5,7.3,8.2,10,11.9,13,14,15,16.5][e.VBR_q];break;case a.vbr_abr:e.compression_ratio=16*e.out_samplerate*d.channels_out/(1e3*e.VBR_mean_bitrate_kbps);break;default:e.compression_ratio=16*e.out_samplerate*d.channels_out/(1e3*e.brate)}if(e.mode==t.NOT_SET&&(e.mode=t.JOINT_STEREO),e.highpassfreq>0?(d.highpass1=2*e.highpassfreq,e.highpasswidth>=0?d.highpass2=2*(e.highpassfreq+e.highpasswidth):d.highpass2=2*e.highpassfreq,d.highpass1/=e.out_samplerate,d.highpass2/=e.out_samplerate):(d.highpass1=0,d.highpass2=0),e.lowpassfreq>0?(d.lowpass2=2*e.lowpassfreq,e.lowpasswidth>=0?(d.lowpass1=2*(e.lowpassfreq-e.lowpasswidth),d.lowpass1<0&&(d.lowpass1=0)):d.lowpass1=2*e.lowpassfreq,d.lowpass1/=e.out_samplerate,d.lowpass2/=e.out_samplerate):(d.lowpass1=0,d.lowpass2=0),function(e){var t=e.internal_flags,n=32,r=-1;if(t.lowpass1>0){for(var a=999,o=0;o<=31;o++)(u=o/31)>=t.lowpass2&&(n=Math.min(n,o)),t.lowpass1<u&&u<t.lowpass2&&(a=Math.min(a,o));t.lowpass1=999==a?(n-.75)/31:(a-.75)/31,t.lowpass2=n/31}if(t.highpass2>0&&t.highpass2<.75/31*.9&&(t.highpass1=0,t.highpass2=0,i.err.println("Warning: highpass filter disabled. highpass frequency too small\n")),t.highpass2>0){var s=-1;for(o=0;o<=31;o++)(u=o/31)<=t.highpass1&&(r=Math.max(r,o)),t.highpass1<u&&u<t.highpass2&&(s=Math.max(s,o));t.highpass1=r/31,t.highpass2=-1==s?(r+.75)/31:(s+.75)/31}for(o=0;o<32;o++){var l,c,u=o/31;l=t.highpass2>t.highpass1?P((t.highpass2-u)/(t.highpass2-t.highpass1+1e-20)):1,c=t.lowpass2>t.lowpass1?P((u-t.lowpass1)/(t.lowpass2-t.lowpass1+1e-20)):1,t.amp_filter[o]=l*c}}(e),d.samplerate_index=D(e.out_samplerate,e),d.samplerate_index<0)return e.internal_flags=null,-1;if(e.VBR==a.vbr_off){if(e.free_format)d.bitrate_index=0;else if(e.brate=F(e.brate,e.version,e.out_samplerate),d.bitrate_index=O(e.brate,e.version,e.out_samplerate),d.bitrate_index<=0)return e.internal_flags=null,-1}else d.bitrate_index=1;e.analysis&&(e.bWriteVbrTag=!1),null!=d.pinfo&&(e.bWriteVbrTag=!1),_.init_bit_stream_w(d);for(var H,z=d.samplerate_index+3*e.version+6*(e.out_samplerate<16e3?1:0),Q=0;Q<y.SBMAX_l+1;Q++)d.scalefac_band.l[Q]=x.sfBandIndex[z].l[Q];for(Q=0;Q<y.PSFB21+1;Q++){var V=(d.scalefac_band.l[22]-d.scalefac_band.l[21])/y.PSFB21,G=d.scalefac_band.l[21]+Q*V;d.scalefac_band.psfb21[Q]=G}for(d.scalefac_band.psfb21[y.PSFB21]=576,Q=0;Q<y.SBMAX_s+1;Q++)d.scalefac_band.s[Q]=x.sfBandIndex[z].s[Q];for(Q=0;Q<y.PSFB12+1;Q++)V=(d.scalefac_band.s[13]-d.scalefac_band.s[12])/y.PSFB12,G=d.scalefac_band.s[12]+Q*V,d.scalefac_band.psfb12[Q]=G;for(d.scalefac_band.psfb12[y.PSFB12]=192,1==e.version?d.sideinfo_len=1==d.channels_out?21:36:d.sideinfo_len=1==d.channels_out?13:21,e.error_protection&&(d.sideinfo_len+=2),function(e){var t=e.internal_flags;e.frameNum=0,e.write_id3tag_automatic&&k.id3tag_write_v2(e),t.bitrate_stereoMode_Hist=l([16,5]),t.bitrate_blockType_Hist=l([16,6]),t.PeakSample=0,e.bWriteVbrTag&&S.InitVbrTag(e)}(e),d.Class_ID=M,H=0;H<19;H++)d.nsPsy.pefirbuf[H]=700*d.mode_gr*d.channels_out;switch(-1==e.ATHtype&&(e.ATHtype=4),u(e.VBR_q<=9),u(e.VBR_q>=0),e.VBR){case a.vbr_mt:e.VBR=a.vbr_mtrh;case a.vbr_mtrh:null==e.useTemporal&&(e.useTemporal=!1),w.apply_preset(e,500-10*e.VBR_q,0),e.quality<0&&(e.quality=LAME_DEFAULT_QUALITY),e.quality<5&&(e.quality=0),e.quality>5&&(e.quality=5),d.PSY.mask_adjust=e.maskingadjust,d.PSY.mask_adjust_short=e.maskingadjust_short,e.experimentalY?d.sfb21_extra=!1:d.sfb21_extra=e.out_samplerate>44e3,d.iteration_loop=new VBRNewIterationLoop(C);break;case a.vbr_rh:w.apply_preset(e,500-10*e.VBR_q,0),d.PSY.mask_adjust=e.maskingadjust,d.PSY.mask_adjust_short=e.maskingadjust_short,e.experimentalY?d.sfb21_extra=!1:d.sfb21_extra=e.out_samplerate>44e3,e.quality>6&&(e.quality=6),e.quality<0&&(e.quality=LAME_DEFAULT_QUALITY),d.iteration_loop=new VBROldIterationLoop(C);break;default:var q;d.sfb21_extra=!1,e.quality<0&&(e.quality=LAME_DEFAULT_QUALITY),(q=e.VBR)==a.vbr_off&&(e.VBR_mean_bitrate_kbps=e.brate),w.apply_preset(e,e.VBR_mean_bitrate_kbps,0),e.VBR=q,d.PSY.mask_adjust=e.maskingadjust,d.PSY.mask_adjust_short=e.maskingadjust_short,q==a.vbr_off?d.iteration_loop=new A(C):d.iteration_loop=new ABRIterationLoop(C)}if(u(e.scale>=0),e.VBR!=a.vbr_off){if(d.VBR_min_bitrate=1,d.VBR_max_bitrate=14,e.out_samplerate<16e3&&(d.VBR_max_bitrate=8),0!=e.VBR_min_bitrate_kbps&&(e.VBR_min_bitrate_kbps=F(e.VBR_min_bitrate_kbps,e.version,e.out_samplerate),d.VBR_min_bitrate=O(e.VBR_min_bitrate_kbps,e.version,e.out_samplerate),d.VBR_min_bitrate<0))return-1;if(0!=e.VBR_max_bitrate_kbps&&(e.VBR_max_bitrate_kbps=F(e.VBR_max_bitrate_kbps,e.version,e.out_samplerate),d.VBR_max_bitrate=O(e.VBR_max_bitrate_kbps,e.version,e.out_samplerate),d.VBR_max_bitrate<0))return-1;e.VBR_min_bitrate_kbps=v.bitrate_table[e.version][d.VBR_min_bitrate],e.VBR_max_bitrate_kbps=v.bitrate_table[e.version][d.VBR_max_bitrate],e.VBR_mean_bitrate_kbps=Math.min(v.bitrate_table[e.version][d.VBR_max_bitrate],e.VBR_mean_bitrate_kbps),e.VBR_mean_bitrate_kbps=Math.max(v.bitrate_table[e.version][d.VBR_min_bitrate],e.VBR_mean_bitrate_kbps)}return e.tune&&(d.PSY.mask_adjust+=e.tune_value_a,d.PSY.mask_adjust_short+=e.tune_value_a),function(e){var t=e.internal_flags;switch(e.quality){default:case 9:t.psymodel=0,t.noise_shaping=0,t.noise_shaping_amp=0,t.noise_shaping_stop=0,t.use_best_huffman=0,t.full_outer_loop=0;break;case 8:e.quality=7;case 7:t.psymodel=1,t.noise_shaping=0,t.noise_shaping_amp=0,t.noise_shaping_stop=0,t.use_best_huffman=0,t.full_outer_loop=0;break;case 6:case 5:t.psymodel=1,0==t.noise_shaping&&(t.noise_shaping=1),t.noise_shaping_amp=0,t.noise_shaping_stop=0,-1==t.subblock_gain&&(t.subblock_gain=1),t.use_best_huffman=0,t.full_outer_loop=0;break;case 4:t.psymodel=1,0==t.noise_shaping&&(t.noise_shaping=1),t.noise_shaping_amp=0,t.noise_shaping_stop=0,-1==t.subblock_gain&&(t.subblock_gain=1),t.use_best_huffman=1,t.full_outer_loop=0;break;case 3:t.psymodel=1,0==t.noise_shaping&&(t.noise_shaping=1),t.noise_shaping_amp=1,t.noise_shaping_stop=1,-1==t.subblock_gain&&(t.subblock_gain=1),t.use_best_huffman=1,t.full_outer_loop=0;break;case 2:t.psymodel=1,0==t.noise_shaping&&(t.noise_shaping=1),0==t.substep_shaping&&(t.substep_shaping=2),t.noise_shaping_amp=1,t.noise_shaping_stop=1,-1==t.subblock_gain&&(t.subblock_gain=1),t.use_best_huffman=1,t.full_outer_loop=0;break;case 1:case 0:t.psymodel=1,0==t.noise_shaping&&(t.noise_shaping=1),0==t.substep_shaping&&(t.substep_shaping=2),t.noise_shaping_amp=2,t.noise_shaping_stop=1,-1==t.subblock_gain&&(t.subblock_gain=1),t.use_best_huffman=1,t.full_outer_loop=0}}(e),u(e.scale>=0),e.athaa_type<0?d.ATH.useAdjust=3:d.ATH.useAdjust=e.athaa_type,d.ATH.aaSensitivityP=Math.pow(10,e.athaa_sensitivity/-10),null==e.short_blocks&&(e.short_blocks=o.short_block_allowed),e.short_blocks!=o.short_block_allowed||e.mode!=t.JOINT_STEREO&&e.mode!=t.STEREO||(e.short_blocks=o.short_block_coupled),e.quant_comp<0&&(e.quant_comp=1),e.quant_comp_short<0&&(e.quant_comp_short=0),e.msfix<0&&(e.msfix=0),e.exp_nspsytune=1|e.exp_nspsytune,e.internal_flags.nsPsy.attackthre<0&&(e.internal_flags.nsPsy.attackthre=h.NSATTACKTHRE),e.internal_flags.nsPsy.attackthre_s<0&&(e.internal_flags.nsPsy.attackthre_s=h.NSATTACKTHRE_S),u(e.scale>=0),e.scale<0&&(e.scale=1),e.ATHtype<0&&(e.ATHtype=4),e.ATHcurve<0&&(e.ATHcurve=4),e.athaa_loudapprox<0&&(e.athaa_loudapprox=2),e.interChRatio<0&&(e.interChRatio=0),null==e.useTemporal&&(e.useTemporal=!0),d.slot_lag=d.frac_SpF=0,e.VBR==a.vbr_off&&(d.slot_lag=d.frac_SpF=72e3*(e.version+1)*e.brate%e.out_samplerate|0),x.iteration_init(e),T.psymodel_init(e),u(e.scale>=0),0},this.lame_encode_flush=function(e,t,n,r){var i,a,o,s,l=e.internal_flags,u=c([2,1152]),h=0,d=l.mf_samples_to_encode-y.POSTDELAY,f=R(e);if(l.mf_samples_to_encode<1)return 0;for(i=0,e.in_samplerate!=e.out_samplerate&&(d+=16*e.out_samplerate/e.in_samplerate),(o=e.framesize-d%e.framesize)<576&&(o+=e.framesize),e.encoder_padding=o,s=(d+o)/e.framesize;s>0&&h>=0;){var p=f-l.mf_size,g=e.frameNum;p*=e.in_samplerate,(p/=e.out_samplerate)>1152&&(p=1152),p<1&&(p=1),a=r-i,0==r&&(a=0),n+=h=this.lame_encode_buffer(e,u[0],u[1],p,t,n,a),i+=h,s-=g!=e.frameNum?1:0}if(l.mf_samples_to_encode=0,h<0)return h;if(a=r-i,0==r&&(a=0),_.flush_bitstream(e),(h=_.copy_buffer(l,t,n,a,1))<0)return h;if(n+=h,a=r-(i+=h),0==r&&(a=0),e.write_id3tag_automatic){if(k.id3tag_write_v1(e),(h=_.copy_buffer(l,t,n,a,0))<0)return h;i+=h}return i},this.lame_encode_buffer=function(e,t,n,r,i,a,o){var l=e.internal_flags,c=[null,null];if(l.Class_ID!=M)return-3;if(0==r)return 0;!function(e,t){(null==e.in_buffer_0||e.in_buffer_nsamples<t)&&(e.in_buffer_0=s(t),e.in_buffer_1=s(t),e.in_buffer_nsamples=t)}(l,r),c[0]=l.in_buffer_0,c[1]=l.in_buffer_1;for(var h=0;h<r;h++)c[0][h]=t[h],l.channels_in>1&&(c[1][h]=n[h]);return function(e,t,n,r,i,a,o){var s,l,c,h,d,p=e.internal_flags,g=0,A=[null,null],v=[null,null];if(p.Class_ID!=M)return-3;if(0==r)return 0;if((d=_.copy_buffer(p,i,a,o,0))<0)return d;if(a+=d,g+=d,v[0]=t,v[1]=n,m.NEQ(e.scale,0)&&m.NEQ(e.scale,1))for(l=0;l<r;++l)v[0][l]*=e.scale,2==p.channels_out&&(v[1][l]*=e.scale);if(m.NEQ(e.scale_left,0)&&m.NEQ(e.scale_left,1))for(l=0;l<r;++l)v[0][l]*=e.scale_left;if(m.NEQ(e.scale_right,0)&&m.NEQ(e.scale_right,1))for(l=0;l<r;++l)v[1][l]*=e.scale_right;if(2==e.num_channels&&1==p.channels_out)for(l=0;l<r;++l)v[0][l]=.5*(v[0][l]+v[1][l]),v[1][l]=0;h=R(e),A[0]=p.mfbuf[0],A[1]=p.mfbuf[1];for(var w=0;r>0;){var x=[null,null],C=0,S=0;x[0]=v[0],x[1]=v[1];var k=new U;if(Q(e,A,x,w,r,k),C=k.n_in,S=k.n_out,p.findReplayGain&&!p.decode_on_the_fly&&b.AnalyzeSamples(p.rgdata,A[0],p.mf_size,A[1],p.mf_size,S,p.channels_out)==GainAnalysis.GAIN_ANALYSIS_ERROR)return-6;if(r-=C,w+=C,p.channels_out,p.mf_size+=S,u(p.mf_size<=f.MFSIZE),p.mf_samples_to_encode<1&&(p.mf_samples_to_encode=y.ENCDELAY+y.POSTDELAY),p.mf_samples_to_encode+=S,p.mf_size>=h){var E=o-g;if(0==o&&(E=0),(s=N(e,A[0],A[1],i,a,E))<0)return s;for(a+=s,g+=s,p.mf_size-=e.framesize,p.mf_samples_to_encode-=e.framesize,c=0;c<p.channels_out;c++)for(l=0;l<p.mf_size;l++)A[c][l]=A[c][l+e.framesize]}}return u(0==r),g}(e,c[0],c[1],r,i,a,o)}}},mlh9:function(e,t,n){var r=n("d4lq"),i=n("To6e"),a=(i.System,i.VbrMode),o=i.Float,s=(i.ShortBlock,i.Util),l=(i.Arrays,i.new_array_n,i.new_byte,i.new_double,i.new_float),c=(i.new_float_n,i.new_int),u=(i.new_int_n,i.assert),h=n("/00o"),d=n("ELaV"),f=n("V0p0");function p(){var e=n("orZQ"),t=null,i=null,g=null;this.setModules=function(e,n,r){t=e,i=n,g=r},this.IPOW20=function(e){return u(0<=e&&e<p.Q_MAX),w[e]};var A=p.IXMAX_VAL+2,m=p.Q_MAX,v=p.Q_MAX2,y=(p.LARGE_BITS,100);this.nr_of_sfb_block=[[[6,5,5,5],[9,9,9,9],[6,9,9,9]],[[6,5,7,3],[9,9,12,6],[6,9,12,6]],[[11,10,0,0],[18,18,0,0],[15,18,0,0]],[[7,7,7,0],[12,12,12,0],[6,15,12,0]],[[6,6,6,3],[12,9,9,6],[6,12,9,6]],[[8,8,5,0],[15,12,9,0],[6,18,9,0]]];var b=[0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,2,2,3,3,3,2,0];this.pretab=b,this.sfBandIndex=[new r([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,24,32,42,56,74,100,132,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,6,12,18,24,30,36,44,54,66,80,96,114,136,162,194,232,278,332,394,464,540,576],[0,4,8,12,18,26,36,48,62,80,104,136,180,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,26,36,48,62,80,104,134,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,4,8,12,16,20,24,30,36,44,52,62,74,90,110,134,162,196,238,288,342,418,576],[0,4,8,12,16,22,30,40,52,66,84,106,136,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,4,8,12,16,20,24,30,36,42,50,60,72,88,106,128,156,190,230,276,330,384,576],[0,4,8,12,16,22,28,38,50,64,80,100,126,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,4,8,12,16,20,24,30,36,44,54,66,82,102,126,156,194,240,296,364,448,550,576],[0,4,8,12,16,22,30,42,58,78,104,138,180,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,26,36,48,62,80,104,134,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,26,36,48,62,80,104,134,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,12,24,36,48,60,72,88,108,132,160,192,232,280,336,400,476,566,568,570,572,574,576],[0,8,16,24,36,52,72,96,124,160,162,164,166,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0])];var _=l(m+v+1),w=l(m),x=l(A),C=l(A);function S(e,t){var n=g.ATHformula(t,e);return n-=y,n=Math.pow(10,n/10+e.ATHlower)}function k(e){this.s=e}this.adj43=C,this.iteration_init=function(e){var n,r=e.internal_flags,i=r.l3_side;if(0==r.iteration_init_init){for(r.iteration_init_init=1,i.main_data_begin=0,function(e){for(var t=e.internal_flags.ATH.l,n=e.internal_flags.ATH.psfb21,r=e.internal_flags.ATH.s,i=e.internal_flags.ATH.psfb12,a=e.internal_flags,s=e.out_samplerate,l=0;l<h.SBMAX_l;l++){var c=a.scalefac_band.l[l],u=a.scalefac_band.l[l+1];t[l]=o.MAX_VALUE;for(var d=c;d<u;d++){var f=S(e,d*s/1152);t[l]=Math.min(t[l],f)}}for(l=0;l<h.PSFB21;l++)for(c=a.scalefac_band.psfb21[l],u=a.scalefac_band.psfb21[l+1],n[l]=o.MAX_VALUE,d=c;d<u;d++)f=S(e,d*s/1152),n[l]=Math.min(n[l],f);for(l=0;l<h.SBMAX_s;l++){for(c=a.scalefac_band.s[l],u=a.scalefac_band.s[l+1],r[l]=o.MAX_VALUE,d=c;d<u;d++)f=S(e,d*s/384),r[l]=Math.min(r[l],f);r[l]*=a.scalefac_band.s[l+1]-a.scalefac_band.s[l]}for(l=0;l<h.PSFB12;l++){for(c=a.scalefac_band.psfb12[l],u=a.scalefac_band.psfb12[l+1],i[l]=o.MAX_VALUE,d=c;d<u;d++)f=S(e,d*s/384),i[l]=Math.min(i[l],f);i[l]*=a.scalefac_band.s[13]-a.scalefac_band.s[12]}if(e.noATH){for(l=0;l<h.SBMAX_l;l++)t[l]=1e-20;for(l=0;l<h.PSFB21;l++)n[l]=1e-20;for(l=0;l<h.SBMAX_s;l++)r[l]=1e-20;for(l=0;l<h.PSFB12;l++)i[l]=1e-20}a.ATH.floor=10*Math.log10(S(e,-1))}(e),x[0]=0,n=1;n<A;n++)x[n]=Math.pow(n,4/3);for(n=0;n<A-1;n++)C[n]=n+1-Math.pow(.5*(x[n]+x[n+1]),.75);for(C[n]=.5,n=0;n<m;n++)w[n]=Math.pow(2,-.1875*(n-210));for(n=0;n<=m+v;n++)_[n]=Math.pow(2,.25*(n-210-v));var a,s,l,c;for(t.huffman_init(r),(n=e.exp_nspsytune>>2&63)>=32&&(n-=64),a=Math.pow(10,n/4/10),(n=e.exp_nspsytune>>8&63)>=32&&(n-=64),s=Math.pow(10,n/4/10),(n=e.exp_nspsytune>>14&63)>=32&&(n-=64),l=Math.pow(10,n/4/10),(n=e.exp_nspsytune>>20&63)>=32&&(n-=64),c=l*Math.pow(10,n/4/10),n=0;n<h.SBMAX_l;n++){u=n<=6?a:n<=13?s:n<=20?l:c,r.nsPsy.longfact[n]=u}for(n=0;n<h.SBMAX_s;n++){var u;u=n<=5?a:n<=10?s:n<=11?l:c,r.nsPsy.shortfact[n]=u}}},this.on_pe=function(e,t,n,r,a,o){var s,l,h=e.internal_flags,p=0,g=c(2),A=new d(p),m=i.ResvMaxBits(e,r,A,o),v=(p=A.bits)+m;for(v>f.MAX_BITS_PER_GRANULE&&(v=f.MAX_BITS_PER_GRANULE),s=0,l=0;l<h.channels_out;++l)n[l]=Math.min(f.MAX_BITS_PER_CHANNEL,p/h.channels_out),g[l]=0|n[l]*t[a][l]/700-n[l],g[l]>3*r/4&&(g[l]=3*r/4),g[l]<0&&(g[l]=0),g[l]+n[l]>f.MAX_BITS_PER_CHANNEL&&(g[l]=Math.max(0,f.MAX_BITS_PER_CHANNEL-n[l])),s+=g[l];if(s>m)for(l=0;l<h.channels_out;++l)g[l]=m*g[l]/s;for(l=0;l<h.channels_out;++l)n[l]+=g[l],m-=g[l];for(s=0,l=0;l<h.channels_out;++l)s+=n[l];if(s>f.MAX_BITS_PER_GRANULE){var y=0;for(l=0;l<h.channels_out;++l)n[l]*=f.MAX_BITS_PER_GRANULE,n[l]/=s,y+=n[l];u(y<=f.MAX_BITS_PER_GRANULE)}return v},this.reduce_side=function(e,t,n,r){u(r<=f.MAX_BITS_PER_GRANULE),u(e[0]+e[1]<=f.MAX_BITS_PER_GRANULE);var i=.33*(.5-t)/.5;i<0&&(i=0),i>.5&&(i=.5);var a=0|.5*i*(e[0]+e[1]);a>f.MAX_BITS_PER_CHANNEL-e[0]&&(a=f.MAX_BITS_PER_CHANNEL-e[0]),a<0&&(a=0),e[1]>=125&&(e[1]-a>125?(e[0]<n&&(e[0]+=a),e[1]-=a):(e[0]+=e[1]-125,e[1]=125)),(a=e[0]+e[1])>r&&(e[0]=r*e[0]/a,e[1]=r*e[1]/a),u(e[0]<=f.MAX_BITS_PER_CHANNEL),u(e[1]<=f.MAX_BITS_PER_CHANNEL),u(e[0]+e[1]<=f.MAX_BITS_PER_GRANULE)},this.athAdjust=function(e,t,n){var r=90.30873362,i=s.FAST_LOG10_X(t,10),a=e*e,o=0;return i-=n,a>1e-20&&(o=1+s.FAST_LOG10_X(a,10/r)),o<0&&(o=0),i*=o,i+=n+r-94.82444863,Math.pow(10,.1*i)},this.calc_xmin=function(t,n,r,i){var o,s=0,l=t.internal_flags,c=0,u=0,d=l.ATH,f=r.xr,p=t.VBR==a.vbr_mtrh?1:0,g=l.masking_lower;for(t.VBR!=a.vbr_mtrh&&t.VBR!=a.vbr_mt||(g=1),o=0;o<r.psy_lmax;o++){x=(w=t.VBR==a.vbr_rh||t.VBR==a.vbr_mtrh?athAdjust(d.adjust,d.l[o],d.floor):d.adjust*d.l[o])/(y=r.width[o]),C=2.220446049250313e-16,T=y>>1,E=0;do{E+=B=f[c]*f[c],C+=B<x?B:x,E+=I=f[++c]*f[c],C+=I<x?I:x,c++}while(--T>0);if(E>w&&u++,o==h.SBPSY_l)C<(k=w*l.nsPsy.longfact[o])&&(C=k);if(0!=p&&(w=C),!t.ATHonly)if((S=n.en.l[o])>0)k=E*n.thm.l[o]*g/S,0!=p&&(k*=l.nsPsy.longfact[o]),w<k&&(w=k);i[s++]=0!=p?w:w*l.nsPsy.longfact[o]}var A=575;if(r.block_type!=h.SHORT_TYPE)for(var m=576;0!=m--&&e.EQ(f[m],0);)A=m;r.max_nonzero_coeff=A;for(var v=r.sfb_smin;o<r.psymax;v++,o+=3){var y,b,_;for(_=t.VBR==a.vbr_rh||t.VBR==a.vbr_mtrh?athAdjust(d.adjust,d.s[v],d.floor):d.adjust*d.s[v],y=r.width[o],b=0;b<3;b++){var w,x,C,S,k,E=0,T=y>>1;x=_/y,C=2.220446049250313e-16;do{var B,I;E+=B=f[c]*f[c],C+=B<x?B:x,E+=I=f[++c]*f[c],C+=I<x?I:x,c++}while(--T>0);if(E>_&&u++,v==h.SBPSY_s)C<(k=_*l.nsPsy.shortfact[v])&&(C=k);if(w=0!=p?C:_,!t.ATHonly&&!t.ATHshort)if((S=n.en.s[v][b])>0)k=E*n.thm.s[v][b]*g/S,0!=p&&(k*=l.nsPsy.shortfact[v]),w<k&&(w=k);i[s++]=0!=p?w:w*l.nsPsy.shortfact[v]}t.useTemporal&&(i[s-3]>i[s-3+1]&&(i[s-3+1]+=(i[s-3]-i[s-3+1])*l.decay),i[s-3+1]>i[s-3+2]&&(i[s-3+2]+=(i[s-3+1]-i[s-3+2])*l.decay))}return u},this.calc_noise_core=function(e,t,n,r){var i=0,a=t.s,o=e.l3_enc;if(a>e.count1)for(;0!=n--;){c=e.xr[a],a++,i+=c*c,c=e.xr[a],a++,i+=c*c}else if(a>e.big_values){var s=l(2);for(s[0]=0,s[1]=r;0!=n--;){c=Math.abs(e.xr[a])-s[o[a]],a++,i+=c*c,c=Math.abs(e.xr[a])-s[o[a]],a++,i+=c*c}}else for(;0!=n--;){var c;c=Math.abs(e.xr[a])-x[o[a]]*r,a++,i+=c*c,c=Math.abs(e.xr[a])-x[o[a]]*r,a++,i+=c*c}return t.s=a,i},this.calc_noise=function(e,t,n,r,i){var a,o,l,c=0,h=0,d=0,f=0,g=0,A=-20,m=0,v=e.scalefac,y=0;for(r.over_SSD=0,a=0;a<e.psymax;a++){var w,x=e.global_gain-(v[y++]+(0!=e.preflag?b[a]:0)<<e.scalefac_scale+1)-8*e.subblock_gain[e.window[a]],C=0;if(null!=i&&i.step[a]==x)C=i.noise[a],m+=e.width[a],n[c++]=C/t[h++],C=i.noise_log[a];else{var S,E=(u(0<=(l=x)+p.Q_MAX2&&l<p.Q_MAX),_[l+p.Q_MAX2]);if(o=e.width[a]>>1,m+e.width[a]>e.max_nonzero_coeff)o=(S=e.max_nonzero_coeff-m+1)>0?S>>1:0;var T=new k(m);C=this.calc_noise_core(e,T,o,E),m=T.s,null!=i&&(i.step[a]=x,i.noise[a]=C),C=n[c++]=C/t[h++],C=s.FAST_LOG10(Math.max(C,1e-20)),null!=i&&(i.noise_log[a]=C)}if(null!=i&&(i.global_gain=e.global_gain),g+=C,C>0)w=Math.max(0|10*C+.5,1),r.over_SSD+=w*w,d++,f+=C;A=Math.max(A,C)}return r.over_count=d,r.tot_noise=g,r.over_noise=f,r.max_noise=A,d},this.set_pinfo=function(e,t,n,r,i){var a,o,s,c,d,f=e.internal_flags,p=0==t.scalefac_scale?.5:1,g=t.scalefac,A=l(L3Side.SFBMAX),m=l(L3Side.SFBMAX),v=new CalcNoiseResult;calc_xmin(e,n,t,A),calc_noise(t,A,m,v,null);var y=0;for(o=t.sfb_lmax,t.block_type!=h.SHORT_TYPE&&0==t.mixed_block_flag&&(o=22),a=0;a<o;a++){var _=f.scalefac_band.l[a],w=(x=f.scalefac_band.l[a+1])-_;for(c=0;y<x;y++)c+=t.xr[y]*t.xr[y];c/=w,d=1e15,f.pinfo.en[r][i][a]=d*c,f.pinfo.xfsf[r][i][a]=d*A[a]*m[a]/w,n.en.l[a]>0&&!e.ATHonly?c/=n.en.l[a]:c=0,f.pinfo.thr[r][i][a]=d*Math.max(c*n.thm.l[a],f.ATH.l[a]),f.pinfo.LAMEsfb[r][i][a]=0,0!=t.preflag&&a>=11&&(f.pinfo.LAMEsfb[r][i][a]=-p*b[a]),a<h.SBPSY_l&&(u(g[a]>=0),f.pinfo.LAMEsfb[r][i][a]-=p*g[a])}if(t.block_type==h.SHORT_TYPE)for(o=a,a=t.sfb_smin;a<h.SBMAX_s;a++){_=f.scalefac_band.s[a],w=(x=f.scalefac_band.s[a+1])-_;for(var x,C=0;C<3;C++){for(c=0,s=_;s<x;s++)c+=t.xr[y]*t.xr[y],y++;c=Math.max(c/w,1e-20),d=1e15,f.pinfo.en_s[r][i][3*a+C]=d*c,f.pinfo.xfsf_s[r][i][3*a+C]=d*A[o]*m[o]/w,n.en.s[a][C]>0?c/=n.en.s[a][C]:c=0,(e.ATHonly||e.ATHshort)&&(c=0),f.pinfo.thr_s[r][i][3*a+C]=d*Math.max(c*n.thm.s[a][C],f.ATH.s[a]),f.pinfo.LAMEsfb_s[r][i][3*a+C]=-2*t.subblock_gain[C],a<h.SBPSY_s&&(f.pinfo.LAMEsfb_s[r][i][3*a+C]-=p*g[o]),o++}}f.pinfo.LAMEqss[r][i]=t.global_gain,f.pinfo.LAMEmainbits[r][i]=t.part2_3_length+t.part2_length,f.pinfo.LAMEsfbits[r][i]=t.part2_length,f.pinfo.over[r][i]=v.over_count,f.pinfo.max_noise[r][i]=10*v.max_noise,f.pinfo.over_noise[r][i]=10*v.over_noise,f.pinfo.tot_noise[r][i]=10*v.tot_noise,f.pinfo.over_SSD[r][i]=v.over_SSD}}p.Q_MAX=257,p.Q_MAX2=116,p.LARGE_BITS=1e5,p.IXMAX_VAL=8206,e.exports=p},mnA4:function(e,t,n){var r=n("To6e"),i=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=(r.new_float_n,r.new_int),o=(r.new_int_n,r.assert),s=n("ELaV"),l=n("/00o"),c=n("jhNZ"),u=n("V0p0");e.exports=function(e){var t=e;this.quantize=t,this.iteration_loop=function(e,t,n,r){var h,d=e.internal_flags,f=i(c.SFBMAX),p=i(576),g=a(2),A=0,m=d.l3_side,v=new s(A);this.quantize.rv.ResvFrameBegin(e,v),A=v.bits;for(var y=0;y<d.mode_gr;y++){h=this.quantize.qupvt.on_pe(e,t,g,A,y,y),d.mode_ext==l.MPG_MD_MS_LR&&(this.quantize.ms_convert(d.l3_side,y),this.quantize.qupvt.reduce_side(g,n[y],A,h));for(var b=0;b<d.channels_out;b++){var _,w,x=m.tt[y][b];x.block_type!=l.SHORT_TYPE?(_=0,w=d.PSY.mask_adjust-_):(_=0,w=d.PSY.mask_adjust_short-_),d.masking_lower=Math.pow(10,.1*w),this.quantize.init_outer_loop(d,x),this.quantize.init_xrpow(d,x,p)&&(this.quantize.qupvt.calc_xmin(e,r[y][b],x,f),this.quantize.outer_loop(e,x,f,p,b,g[b])),this.quantize.iteration_finish_one(d,y,b),o(x.part2_3_length<=u.MAX_BITS_PER_CHANNEL),o(x.part2_3_length<=g[b])}}this.quantize.rv.ResvFrameEnd(d,A)}}},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=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})},86:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("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}},n0CH:function(e,t,n){var r=n("To6e"),i=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte),a=(r.new_double,r.new_float,r.new_float_n,r.new_int,r.new_int_n,r.assert),o=n("mgSH"),s=n("qR53"),l=n("Y2/2"),c=n("mlh9"),u=n("HQRW"),h=n("1gAI"),d=n("jKIj"),f=n("ZezE"),p=n("orZQ"),g=(n("/00o"),n("LyDL")),A=n("E7gl");function m(){this.dataOffset=0,this.dataLen=0,this.channels=0,this.sampleRate=0}function v(e){return e.charCodeAt(0)<<24|e.charCodeAt(1)<<16|e.charCodeAt(2)<<8|e.charCodeAt(3)}m.RIFF=v("RIFF"),m.WAVE=v("WAVE"),m.fmt_=v("fmt "),m.data=v("data"),m.readHeader=function(e){var t=new m,n=e.getUint32(0,!1);if(m.RIFF==n){e.getUint32(4,!0);if(m.WAVE==e.getUint32(8,!1)&&m.fmt_==e.getUint32(12,!1)){var r=e.getUint32(16,!0),i=20;switch(r){case 16:case 18:t.channels=e.getUint16(i+2,!0),t.sampleRate=e.getUint32(i+4,!0);break;default:throw"extended fmt chunk not implemented"}i+=r;for(var a=m.data,o=0;a!=n&&(n=e.getUint32(i,!1),o=e.getUint32(i+4,!0),a!=n);)i+=o+8;return t.dataLen=o,t.dataOffset=i+8,t}}},e.exports.Mp3Encoder=function(e,t,n){3!=arguments.length&&(console.error("WARN: Mp3Encoder(channels, samplerate, kbps) not specified"),e=1,t=44100,n=128);var r=new o,m=new function(){this.setModules=function(e,t){}},v=new l,y=new p,b=new s,_=new c,w=new u,x=new A,C=new g,S=new function(){this.setModules=function(e,t){}},k=new d,E=new h,T=new function(){this.setModules=function(e,t,n){}},B=new function(){};r.setModules(v,y,b,_,w,x,C,S,B),y.setModules(v,B,C,x),S.setModules(y,C),b.setModules(r),w.setModules(y,k,_,E),_.setModules(E,k,r.enc.psy),k.setModules(y),E.setModules(_),x.setModules(r,y,C),m.setModules(T,B),T.setModules(C,S,b);var I=r.lame_init();I.num_channels=e,I.in_samplerate=t,I.brate=n,I.mode=f.STEREO,I.quality=3,I.bWriteVbrTag=!1,I.disable_reservoir=!0,I.write_id3tag_automatic=!1;var M=r.lame_init_params(I);a(0==M);var P=1152,D=0|1.25*P+7200,F=i(D);this.encodeBuffer=function(t,n){1==e&&(n=t),a(t.length==n.length),t.length>P&&(P=t.length,F=i(D=0|1.25*P+7200));var o=r.lame_encode_buffer(I,t,n,t.length,F,0,D);return new Int8Array(F.subarray(0,o))},this.flush=function(){var e=r.lame_encode_flush(I,F,0,D);return new Int8Array(F.subarray(0,e))}},e.exports.WavHeader=m},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,g;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,g=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,g=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=g}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 g=["rgb(",0,",",0,",",0,")"];class A{static makeCssRgb(e,t,n){return g[1]=e,g[3]=t,g[5]=n,g.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=A.applyTransform(e,t),r=A.applyTransform(e.slice(2,4),t),i=A.applyTransform([e[0],e[3]],t),a=A.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=A.normalizeRect(e),t=A.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=A;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 g=p.task;return u.displayReadyCapability.promise.then(e=>{this.pendingCleanup?f():(this._stats&&this._stats.time("Rendering"),p.initializeGraphics(e),p.operatorListChanged())}).catch(f),g}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 g=[];for(o=0,s=t.length;o<s;o++)g.push(t[o].loadedName);g.push(h);const A=document.createElement("div");for(A.style.visibility="hidden",A.style.width=A.style.height="10px",A.style.position="absolute",A.style.top=A.style.left="0px",o=0,s=g.length;o<s;++o){const e=document.createElement("span");e.textContent="Hi",e.style.fontFamily=g[o],A.appendChild(e)}document.body.appendChild(A),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(A),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),g=0,A=t.data,m=p.data;if(t.kind===r.ImageKind.GRAYSCALE_1BPP){var v=A.byteLength,y=new Uint32Array(m.buffer,0,m.byteLength>>2),b=y.length,_=u+7>>3,w=4294967295,x=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-g,S=0,k=C>_?u:8*C-7,E=-8&k,T=0,B=0;S<E;S+=8)B=A[g++],y[n++]=128&B?w:x,y[n++]=64&B?w:x,y[n++]=32&B?w:x,y[n++]=16&B?w:x,y[n++]=8&B?w:x,y[n++]=4&B?w:x,y[n++]=2&B?w:x,y[n++]=1&B?w:x;for(;S<k;S++)0===T&&(B=A[g++],T=128),y[n++]=B&T?w:x,T>>=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(A.subarray(g,g+l)),g+=l,e.putImageData(p,0,o),o+=a;i<f&&(l=u*h*4,m.set(A.subarray(g,g+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++]=A[g++],m[n++]=A[g++],m[n++]=A[g++],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,g=0;g<f;g++)for(var A=0,m=0;m<r;m++){if(!A){var v=u[c++];A=128}h[p]=v&A?0:255,p+=4,A>>=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 g=Math.min(r,Math.ceil(1048576/n)),A=0;A<r;A+=g){var m=Math.min(g,r-A),v=e.getImageData(0,A,n,m),y=t.getImageData(0,A,n,m);l&&h(v.data,c,u,p),s(v.data,y.data,o),e.putImageData(y,0,A)}}(a,n,i.width,i.height,t.subtype,o,t.transferMap),e.drawImage(i,0,0)}var g=["butt","round","square"],A=["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=g[e]},setLineJoin:function(e){this.ctx.lineJoin=A[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,g=i*t.fontMatrix[0],A=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=0;for(_=0;_<h;++_){var x=e[_];if((0,r.isNum)(x))w+=f*x*i/1e3;else{var C,S,k,E,T,B,I,M=!1,P=(x.isSpace?l:0)+s,D=x.fontChar,F=x.accent,O=x.width;if(d)T=x.vmetric||p,B=-(B=x.vmetric?T[1]:.5*O)*g,I=T[2]*g,O=T?-T[0]:O,C=B/o,S=(w+I)/o;else C=w/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)}(x.isInFont||n.missingFile)&&(A&&!F?a.fillText(D,C,S):(this.paintChar(D,C,S,m),F&&(k=C+F.offset.x/o,E=S-F.offset.y/o,this.paintChar(F.fontChar,k,E,m)))),w+=d?O*g-P*c:O*g+P*c,M&&a.restore()}}d?t.y-=w:t.x+=w*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,g=s.fontMatrix||r.FONT_IDENTITY_MATRIX,A=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<A;++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,g),this.executeOperatorList(v),this.restore(),i=r.Util.applyTransform([n.width,0],g)[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]),g=Math.max(c[0],u[0],h[0],d[0]),A=Math.max(c[1],u[1],h[1],d[1]);this.ctx.fillRect(f,p,g-f,A-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),g=p.context;g.scale(1/h,1/d),g.translate(-o,-s),g.transform.apply(g,n),e.smask?this.smaskStack.push({canvas:p.canvas,context:g,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,g),this.ctx=g,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,g=h[t];p>0;)d[f++]=g&p?0:255,p>>=1;var A=0;for(0!==d[f=0]&&(l[0]=1,++A),n=1;n<a;n++)d[f]!==d[f+1]&&(l[n]=d[f]?2:1,++A),f++;for(0!==d[f]&&(l[n]=2,++A),t=1;t<o;t++){r=t*s,d[(f=t*u)-u]!==d[f]&&(l[r]=d[f]?1:8,++A);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],++A),f++;if(d[f-u]!==d[f]&&(l[r+n]=d[f]?2:4,++A),A>1e3)return null}for(r=t*s,0!==d[f=u*(o-1)]&&(l[r]=8,++A),n=1;n<a;n++)d[f]!==d[f+1]&&(l[r+n]=d[f]?4:8,++A),f++;if(0!==d[f]&&(l[r+n]=4,++A),A>1e3)return null;var v=new Int32Array([0,s,-1,0,-s,0,0,0,1]),y=[];for(t=0;A&&t<=o;t++){for(var b=t*s,_=b+a;b<_&&!l[b];)b++;if(b!==_){var w,x=[b%s,t],C=l[b],S=b;do{var k=v[C];do{b+=k}while(!l[b]);5!==(w=l[b])&&10!==w?(C=w,l[b]=0):(C=w&51*C>>4,l[b]&=C>>2|C<<2),x.push(b%s),x.push(b/s|0),l[b]||--A}while(S!==b);y.push(x),--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 g=n,A=r,m="prescale1";u>2&&g>1||f>2&&A>1;){var v=g,y=A;u>2&&g>1&&(u/=g/(v=Math.ceil(g/2))),f>2&&A>1&&(f/=A/(y=Math.ceil(A/2))),(p=(o=this.cachedCanvases.getCanvas(m,v,y)).context).clearRect(0,0,v,y),p.drawImage(a,0,0,g,A,0,0,v,y),a=o.canvas,g=v,A=y,m="prescale1"===m?"prescale2":"prescale1"}if(i.drawImage(a,0,0,g,A,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,g=(c[r]+t.offsetX)*t.scaleX,A=(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,E=u[a],T=u[a+1],B=u[a+2],I=u[o],M=u[o+1],P=u[o+2],D=u[s],F=u[s+1],O=u[s+2],L=Math.round(p),R=Math.round(v),N=L;N<=R;N++){if(N<A){let e;y=f-(f-g)*(e=N<p?0:p===A?1:(p-N)/(p-A)),b=E-(E-I)*e,_=T-(T-M)*e,w=B-(B-P)*e}else{let e;y=g-(g-m)*(e=N>v?1:A===v?0:(A-N)/(A-v)),b=I-(I-D)*e,_=M-(M-F)*e,w=P-(P-O)*e}let e;x=f-(f-m)*(e=N<p?0:N>v?1:(p-N)/(p-v)),C=E-(E-D)*e,S=T-(T-F)*e,k=B-(B-O)*e;for(var U=Math.round(Math.min(y,x)),j=Math.round(Math.max(y,x)),H=d*N+4*U,z=U;z<=j;z++)(e=(y-z)/(y-x))<0?e=0:e>1&&(e=1),h[H++]=b-(b-C)*e|0,h[H++]=_-(_-S)*e|0,h[H++]=w-(w-k)*e|0,h[H++]=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]),g=Math.ceil(e[2])-f,A=Math.ceil(e[3])-p,m=Math.min(Math.ceil(Math.abs(g*n[0]*1.1)),3e3),v=Math.min(Math.ceil(Math.abs(A*n[1]*1.1)),3e3),y=g/m,b=A/v,_={coords:r,colors:i,offsetX:-f,offsetY:-p,scaleX:1/y,scaleY:1/b},w=m+4,x=v+4;if(l.isEnabled)c=l.drawFigures({width:m,height:v,backgroundColor:o,figures:a,context:_}),(u=s.getCanvas("mesh",w,x,!1)).context.drawImage(c,2,2),c=u.canvas;else{var C=(u=s.getCanvas("mesh",w,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],_);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 g=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(g.offsetX,g.offsetY),e.scale(g.scaleX,g.scaleY),e.createPattern(g.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),g=r.Util.singularValueDecompose2dScale(this.baseTransform),A=[p[0]*g[0],p[1]*g[1]],m=this.getSizeAndScale(i,this.ctx.canvas.width,A[0]),v=this.getSizeAndScale(a,this.ctx.canvas.height,A[1]),y=e.cachedCanvases.getCanvas("pattern",m.size,v.size,!0),b=y.context,_=c.createCanvasGraphics(b);return _.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(_,o,l),_.transform(m.scale,0,0,v.scale,0,0),_.transform(1,0,0,1,-u,-h),this.clipBbox(_,n,u,h,d,f),_.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"),g=i.getUniformLocation(h,"u_mask"),A=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,A),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(g,1),u=d}();var g=u,A=g.canvas,m=g.gl;A.width=f,A.height=p,m.viewport(0,0,m.drawingBufferWidth,m.drawingBufferHeight),m.uniform2f(g.resolutionLocation,f,p),d.backdrop?m.uniform4f(g.resolutionLocation,d.backdrop[0],d.backdrop[1],d.backdrop[2],1):m.uniform4f(g.resolutionLocation,0,0,0,0),m.uniform1i(g.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(g.positionLocation),m.vertexAttribPointer(g.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),A},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,g=p.canvas,A=p.gl;g.width=e,g.height=i,A.viewport(0,0,A.drawingBufferWidth,A.drawingBufferHeight),A.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 _=new Float32Array(2*b),w=new Uint8Array(3*b),x=u.coords,C=u.colors,S=0,k=0;for(m=0,v=c.length;m<v;m++){var E=c[m],T=E.coords,B=E.colors;switch(E.type){case"lattice":var I=E.verticesPerRow;y=T.length/I|0;for(var M=1;M<y;M++)for(var P=M*I+1,D=1;D<I;D++,P++)_[S]=x[T[P-I-1]],_[S+1]=x[T[P-I-1]+1],_[S+2]=x[T[P-I]],_[S+3]=x[T[P-I]+1],_[S+4]=x[T[P-1]],_[S+5]=x[T[P-1]+1],w[k]=C[B[P-I-1]],w[k+1]=C[B[P-I-1]+1],w[k+2]=C[B[P-I-1]+2],w[k+3]=C[B[P-I]],w[k+4]=C[B[P-I]+1],w[k+5]=C[B[P-I]+2],w[k+6]=C[B[P-1]],w[k+7]=C[B[P-1]+1],w[k+8]=C[B[P-1]+2],_[S+6]=_[S+2],_[S+7]=_[S+3],_[S+8]=_[S+4],_[S+9]=_[S+5],_[S+10]=x[T[P]],_[S+11]=x[T[P]+1],w[k+9]=w[k+3],w[k+10]=w[k+4],w[k+11]=w[k+5],w[k+12]=w[k+6],w[k+13]=w[k+7],w[k+14]=w[k+8],w[k+15]=C[B[P]],w[k+16]=C[B[P]+1],w[k+17]=C[B[P]+2],S+=12,k+=18;break;case"triangles":for(var F=0,O=T.length;F<O;F++)_[S]=x[T[F]],_[S+1]=x[T[F]+1],w[k]=C[B[F]],w[k+1]=C[B[F]+1],w[k+2]=C[B[F]+2],S+=2,k+=3}}l?A.clearColor(l[0]/255,l[1]/255,l[2]/255,1):A.clearColor(0,0,0,0),A.clear(A.COLOR_BUFFER_BIT);var L=A.createBuffer();A.bindBuffer(A.ARRAY_BUFFER,L),A.bufferData(A.ARRAY_BUFFER,_,A.STATIC_DRAW),A.enableVertexAttribArray(p.positionLocation),A.vertexAttribPointer(p.positionLocation,2,A.FLOAT,!1,0,0);var R=A.createBuffer();return A.bindBuffer(A.ARRAY_BUFFER,R),A.bufferData(A.ARRAY_BUFFER,w,A.STATIC_DRAW),A.enableVertexAttribArray(p.colorLocation),A.vertexAttribPointer(p.colorLocation,3,A.UNSIGNED_BYTE,!1,0,0),A.uniform2f(p.scaleLocation,u.scaleX,u.scaleY),A.uniform2f(p.offsetLocation,u.offsetX,u.offsetY),A.drawArrays(A.TRIANGLES,0,b),A.flush(),A.deleteBuffer(L),A.deleteBuffer(R),g},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 g(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 _(e);case i.AnnotationType.CARET:return new x(e);case i.AnnotationType.INK:return new C(e);case i.AnnotationType.POLYGON:return new w(e);case i.AnnotationType.HIGHLIGHT:return new S(e);case i.AnnotationType.UNDERLINE:return new k(e);case i.AnnotationType.SQUIGGLY:return new E(e);case i.AnnotationType.STRIKEOUT:return new T(e);case i.AnnotationType.STAMP:return new B(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 A({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 g 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 A({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 A{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 _ 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 w extends _{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class x 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 E 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 T 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 B 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 g=!1;if(n.str.length>1)g=!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&&(g=!0)}if(g&&(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 A=1,m=0;0!==c&&(A=Math.cos(c),m=Math.sin(c));var v,y,b=(u.vertical?n.height:n.width)*e._viewport.scale,_=h;0!==c?(v=[A,m,-m,A,f,p],y=r.Util.getAxialAlignedBoundingBox([0,0,b,_],v)):y=[f,p,f+b,p+_],e._bounds.push({left:y[0],top:y[1],right:y[2],bottom:y[3],div:o,size:[b,_],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],g=[[0,0],[0,h.size[1]],[h.size[0],0],h.size],A=new Float64Array(64);g.forEach(function(e,t){var n=r.Util.applyTransform(e,d);A[t+0]=f&&(u.left-n[0])/f,A[t+4]=p&&(u.top-n[1])/p,A[t+8]=f&&(u.right-n[0])/f,A[t+12]=p&&(u.bottom-n[1])/p,A[t+16]=p&&(u.left-n[0])/-p,A[t+20]=f&&(u.top-n[1])/f,A[t+24]=p&&(u.right-n[0])/-p,A[t+28]=f&&(u.bottom-n[1])/f,A[t+32]=f&&(u.left-n[0])/-f,A[t+36]=p&&(u.top-n[1])/-p,A[t+40]=f&&(u.right-n[0])/-f,A[t+44]=p&&(u.bottom-n[1])/-p,A[t+48]=p&&(u.left-n[0])/p,A[t+52]=f&&(u.top-n[1])/-f,A[t+56]=p&&(u.right-n[0])/p,A[t+60]=f&&(u.bottom-n[1])/-f});var m=1+Math.min(Math.abs(f),Math.abs(p));c.paddingLeft=a(A,32,16)/m,c.paddingTop=a(A,48,16)/m,c.paddingRight=a(A,0,16)/m,c.paddingBottom=a(A,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 g=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 A=new Uint8Array((1+p)*h);let m=0,v=0;for(let e=0;e<h;++e)A[m++]=0,A.set(g.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++)A[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__(5).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)}(A),_=e.length+3*t+y.length+b.length,w=new Uint8Array(_);let x=0;return w.set(e,x),i("IHDR",y,w,x+=e.length),i("IDATA",b,w,x+=t+y.length),x+=t+b.length,i("IEND",new Uint8Array(0),w,x),(0,r.createObjectURL)(w,"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,g=0,A=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,g=p?1:-1,A=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+=g*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||A;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${A++}`,[f,p]=r.Util.applyTransform([a,o],i),[g,m]=r.Util.applyTransform([s,l],i),[v,y]=r.Util.singularValueDecompose2dScale(i),b=c*v,_=u*y,w=this.svgFactory.createElement("svg:pattern");w.setAttributeNS(null,"id",d),w.setAttributeNS(null,"patternUnits","userSpaceOnUse"),w.setAttributeNS(null,"width",b),w.setAttributeNS(null,"height",_),w.setAttributeNS(null,"x",`${f}`),w.setAttributeNS(null,"y",`${p}`);const x=this.svg,C=this.transformMatrix,S=this.current.fillColor,k=this.current.strokeColor,E=this.svgFactory.create(g-f,m-p);if(this.svg=E,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=x,this.transformMatrix=C,this.current.fillColor=S,this.current.strokeColor=k,w.appendChild(E.childNodes[0]),this.defs.appendChild(w),`url(#${d})`}_makeShadingPattern(e){switch(e[0]){case"RadialAxial":const t=`shading${A++}`,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${g++}`;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__(6),o=__webpack_require__(7),s=__webpack_require__(8),l=__webpack_require__(9),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 g(this):new f(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new A(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 g 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 A 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__("lNQ5"),__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)}},oQJ3:function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}},oqQY:function(e,t,n){var r;r=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",a="week",o="month",s="quarter",l="year",c="date",u="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},p=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+p(r,2,"0")+":"+p(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,o),a=n-i<0,s=t.clone().add(r+(a?-1:1),o);return+(-(r+(n-i)/(a?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(u){return{M:o,y:l,w:a,d:i,D:c,h:r,m:n,s:t,ms:e,Q:s}[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},A="en",m={};m[A]=f;var v=function(e){return e instanceof w},y=function e(t,n,r){var i;if(!t)return A;if("string"==typeof t){var a=t.toLowerCase();m[a]&&(i=a),n&&(m[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;m[s]=t,i=s}return!r&&i&&(A=i),i||!r&&A},b=function(e,t){if(v(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},_=g;_.l=y,_.i=v,_.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function f(e){this.$L=y(e.locale,null,!0),this.parse(e)}var p=f.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return _},p.isValid=function(){return!(this.$d.toString()===u)},p.isSame=function(e,t){var n=b(e);return this.startOf(t)<=n&&n<=this.endOf(t)},p.isAfter=function(e,t){return b(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<b(e)},p.$g=function(e,t,n){return _.u(e)?this[t]:this.set(n,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,s){var u=this,h=!!_.u(s)||s,d=_.p(e),f=function(e,t){var n=_.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return h?n:n.endOf(i)},p=function(e,t){return _.w(u.toDate()[e].apply(u.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},g=this.$W,A=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case l:return h?f(1,0):f(31,11);case o:return h?f(1,A):f(0,A+1);case a:var y=this.$locale().weekStart||0,b=(g<y?g+7:g)-y;return f(h?m-b:m+(6-b),A);case i:case c:return p(v+"Hours",0);case r:return p(v+"Minutes",1);case n:return p(v+"Seconds",2);case t:return p(v+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(a,s){var u,h=_.p(a),d="set"+(this.$u?"UTC":""),f=(u={},u[i]=d+"Date",u[c]=d+"Date",u[o]=d+"Month",u[l]=d+"FullYear",u[r]=d+"Hours",u[n]=d+"Minutes",u[t]=d+"Seconds",u[e]=d+"Milliseconds",u)[h],p=h===i?this.$D+(s-this.$W):s;if(h===o||h===l){var g=this.clone().set(c,1);g.$d[f](p),g.init(),this.$d=g.set(c,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[_.p(e)]()},p.add=function(e,s){var c,u=this;e=Number(e);var h=_.p(s),d=function(t){var n=b(u);return _.w(n.date(n.date()+Math.round(t*e)),u)};if(h===o)return this.set(o,this.$M+e);if(h===l)return this.set(l,this.$y+e);if(h===i)return d(1);if(h===a)return d(7);var f=(c={},c[n]=6e4,c[r]=36e5,c[t]=1e3,c)[h]||1,p=this.$d.getTime()+e*f;return _.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||u;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),a=this.$H,o=this.$m,s=this.$M,l=n.weekdays,c=n.months,h=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return _.s(a%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},g={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:_.s(s+1,2,"0"),MMM:h(n.monthsShort,s,c,3),MMMM:h(c,s),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,l,2),ddd:h(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(a),HH:_.s(a,2,"0"),h:f(1),hh:f(2),a:p(a,o,!0),A:p(a,o,!1),m:String(o),mm:_.s(o,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:i};return r.replace(d,function(e,t){return t||g[e]||i.replace(":","")})},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(e,c,u){var h,d=_.p(c),f=b(e),p=6e4*(f.utcOffset()-this.utcOffset()),g=this-f,A=_.m(this,f);return A=(h={},h[l]=A/12,h[o]=A,h[s]=A/3,h[a]=(g-p)/6048e5,h[i]=(g-p)/864e5,h[r]=g/36e5,h[n]=g/6e4,h[t]=g/1e3,h)[d]||g,u?A:_.a(A)},p.daysInMonth=function(){return this.endOf(o).$D},p.$locale=function(){return m[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=y(e,t,!0);return r&&(n.$L=r),n},p.clone=function(){return _.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},f}(),x=w.prototype;return b.prototype=x,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W",i],["$M",o],["$y",l],["$D",c]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,w,b),e.$i=!0),b},b.locale=y,b.isDayjs=v,b.unix=function(e){return b(1e3*e)},b.en=m[A],b.Ls=m,b.p={},b},e.exports=r()},orZQ:function(e,t,n){var r=n("To6e"),i=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays),o=(r.new_array_n,r.new_byte),s=(r.new_double,r.new_float,r.new_float_n),l=r.new_int,c=(r.new_int_n,r.assert),u=n("1gAI"),h=n("OSvQ"),d=n("/00o"),f=n("V0p0");function p(){var e=n("mgSH"),t=this,r=32773,p=32,g=null,A=null,m=null,v=null;this.setModules=function(e,t,n,r){g=e,A=t,m=n,v=r};var y=null,b=0,_=0,w=0;function x(e){i.arraycopy(e.header[e.w_ptr].buf,0,y,_,e.sideinfo_len),_+=e.sideinfo_len,b+=8*e.sideinfo_len,e.w_ptr=e.w_ptr+1&f.MAX_HEADER_BUF-1}function C(t,n,r){for(c(r<p-2);r>0;){var i;0==w&&(w=8,c(++_<e.LAME_MAXMP3BUFFER),c(t.header[t.w_ptr].write_timing>=b),t.header[t.w_ptr].write_timing==b&&x(t),y[_]=0),i=Math.min(r,w),w-=i,c((r-=i)<p),c(w<p),y[_]|=n>>r<<w,b+=i}}function S(t,n,r){for(c(r<p-2);r>0;){var i;0==w&&(w=8,c(++_<e.LAME_MAXMP3BUFFER),y[_]=0),i=Math.min(r,w),w-=i,c((r-=i)<p),c(w<p),y[_]|=n>>r<<w,b+=i}}function k(e,t){var n,r=e.internal_flags;if(c(t>=0),t>=8&&(C(r,76,8),t-=8),t>=8&&(C(r,65,8),t-=8),t>=8&&(C(r,77,8),t-=8),t>=8&&(C(r,69,8),t-=8),t>=32){var i=m.getLameShortVersion();if(t>=32)for(n=0;n<i.length&&t>=8;++n)t-=8,C(r,i.charAt(n),8)}for(;t>=1;t-=1)C(r,r.ancillary_flag,1),r.ancillary_flag^=e.disable_reservoir?0:1;c(0==t)}function E(e,t,n){for(var r=e.header[e.h_ptr].ptr;n>0;){var i=Math.min(n,8-(7&r));c((n-=i)<p),e.header[e.h_ptr].buf[r>>3]|=t>>n<<8-(7&r)-i,r+=i}e.header[e.h_ptr].ptr=r}function T(e,t){e<<=8;for(var n=0;n<8;n++)0!=(65536&((t<<=1)^(e<<=1)))&&(t^=r);return t}function B(e,t){var n,r=h.ht[t.count1table_select+32],i=0,a=t.big_values,o=t.big_values;for(c(t.count1table_select<2),n=(t.count1-t.big_values)/4;n>0;--n){var s,l=0,u=0;0!=(s=t.l3_enc[a+0])&&(u+=8,t.xr[o+0]<0&&l++,c(s<=1)),0!=(s=t.l3_enc[a+1])&&(u+=4,l*=2,t.xr[o+1]<0&&l++,c(s<=1)),0!=(s=t.l3_enc[a+2])&&(u+=2,l*=2,t.xr[o+2]<0&&l++,c(s<=1)),0!=(s=t.l3_enc[a+3])&&(u++,l*=2,t.xr[o+3]<0&&l++,c(s<=1)),a+=4,o+=4,C(e,l+r.table[u],r.hlen[u]),i+=r.hlen[u]}return i}function I(e,t,n,r,i){var a=h.ht[t],o=0;if(c(t<32),0==t)return o;for(var s=n;s<r;s+=2){var l=0,u=0,d=a.xlen,f=a.xlen,g=0,A=i.l3_enc[s],m=i.l3_enc[s+1];if(0!=A&&(i.xr[s]<0&&g++,l--),t>15){if(A>14){var v=A-15;c(v<=a.linmax),g|=v<<1,u=d,A=15}if(m>14){var y=m-15;c(y<=a.linmax),g<<=d,g|=y,u+=d,m=15}f=16}0!=m&&(g<<=1,i.xr[s+1]<0&&g++,l--),c((A|m)<16),A=A*f+m,u-=l,l+=a.hlen[A],c(l<=p),c(u<=p),C(e,a.table[A],l),C(e,g,u),o+=l+u}return o}function M(e,t){var n=3*e.scalefac_band.s[3];n>t.big_values&&(n=t.big_values);var r=I(e,t.table_select[0],0,n,t);return r+=I(e,t.table_select[1],n,t.big_values,t)}function P(e,t){var n,r,i,a;n=t.big_values,c(0<=n&&n<=576);var o=t.region0_count+1;return c(0<=o),c(o<e.scalefac_band.l.length),i=e.scalefac_band.l[o],o+=t.region1_count+1,c(0<=o),c(o<e.scalefac_band.l.length),a=e.scalefac_band.l[o],i>n&&(i=n),a>n&&(a=n),r=I(e,t.table_select[0],0,i,t),r+=I(e,t.table_select[1],i,a,t),r+=I(e,t.table_select[2],a,n,t)}function D(){this.total=0}function F(e,n){var r,a,o,s,l,c=e.internal_flags;return l=c.w_ptr,-1==(s=c.h_ptr-1)&&(s=f.MAX_HEADER_BUF-1),r=c.header[s].write_timing-b,n.total=r,r>=0&&(a=1+s-l,s<l&&(a=1+s-l+f.MAX_HEADER_BUF),r-=8*a*c.sideinfo_len),r+=o=t.getframebits(e),n.total+=o,n.total%8!=0?n.total=1+n.total/8:n.total=n.total/8,n.total+=_+1,r<0&&i.err.println("strange error flushing buffer ... \n"),r}this.getframebits=function(e){var t,n=e.internal_flags;return t=0!=n.bitrate_index?h.bitrate_table[e.version][n.bitrate_index]:e.brate,c(8<=t&&t<=640),8*(0|72e3*(e.version+1)*t/e.out_samplerate+n.padding)},this.CRC_writeheader=function(e,t){var n=65535;n=T(255&t[2],n),n=T(255&t[3],n);for(var r=6;r<e.sideinfo_len;r++)n=T(255&t[r],n);t[4]=byte(n>>8),t[5]=byte(255&n)},this.flush_bitstream=function(e){var t,n,r=e.internal_flags,i=r.h_ptr-1;if(-1==i&&(i=f.MAX_HEADER_BUF-1),t=r.l3_side,!((n=F(e,new D))<0)){if(k(e,n),c(r.header[i].write_timing+this.getframebits(e)==b),r.ResvSize=0,t.main_data_begin=0,r.findReplayGain){var a=g.GetTitleGain(r.rgdata);c(NEQ(a,GainAnalysis.GAIN_NOT_ENOUGH_SAMPLES)),r.RadioGain=0|Math.floor(10*a+.5)}r.findPeakSample&&(r.noclipGainChange=0|Math.ceil(20*Math.log10(r.PeakSample/32767)*10),r.noclipGainChange>0&&(EQ(e.scale,1)||EQ(e.scale,0))?r.noclipScale=Math.floor(32767/r.PeakSample*100)/100:r.noclipScale=-1)}},this.add_dummy_byte=function(e,t,n){for(var r,i=e.internal_flags;n-- >0;)for(S(0,t,8),r=0;r<f.MAX_HEADER_BUF;++r)i.header[r].write_timing+=8},this.format_bitstream=function(e){var t,n=e.internal_flags;t=n.l3_side;var r=this.getframebits(e);k(e,t.resvDrain_pre),function(e,t){var n,r,o,s=e.internal_flags;if(n=s.l3_side,s.header[s.h_ptr].ptr=0,a.fill(s.header[s.h_ptr].buf,0,s.sideinfo_len,0),e.out_samplerate<16e3?E(s,4094,12):E(s,4095,12),E(s,e.version,1),E(s,1,2),E(s,e.error_protection?0:1,1),E(s,s.bitrate_index,4),E(s,s.samplerate_index,2),E(s,s.padding,1),E(s,e.extension,1),E(s,e.mode.ordinal(),2),E(s,s.mode_ext,2),E(s,e.copyright,1),E(s,e.original,1),E(s,e.emphasis,2),e.error_protection&&E(s,0,16),1==e.version){for(c(n.main_data_begin>=0),E(s,n.main_data_begin,9),2==s.channels_out?E(s,n.private_bits,3):E(s,n.private_bits,5),o=0;o<s.channels_out;o++){var l;for(l=0;l<4;l++)E(s,n.scfsi[o][l],1)}for(r=0;r<2;r++)for(o=0;o<s.channels_out;o++)E(s,(u=n.tt[r][o]).part2_3_length+u.part2_length,12),E(s,u.big_values/2,9),E(s,u.global_gain,8),E(s,u.scalefac_compress,4),u.block_type!=d.NORM_TYPE?(E(s,1,1),E(s,u.block_type,2),E(s,u.mixed_block_flag,1),14==u.table_select[0]&&(u.table_select[0]=16),E(s,u.table_select[0],5),14==u.table_select[1]&&(u.table_select[1]=16),E(s,u.table_select[1],5),E(s,u.subblock_gain[0],3),E(s,u.subblock_gain[1],3),E(s,u.subblock_gain[2],3)):(E(s,0,1),14==u.table_select[0]&&(u.table_select[0]=16),E(s,u.table_select[0],5),14==u.table_select[1]&&(u.table_select[1]=16),E(s,u.table_select[1],5),14==u.table_select[2]&&(u.table_select[2]=16),E(s,u.table_select[2],5),c(0<=u.region0_count&&u.region0_count<16),c(0<=u.region1_count&&u.region1_count<8),E(s,u.region0_count,4),E(s,u.region1_count,3)),E(s,u.preflag,1),E(s,u.scalefac_scale,1),E(s,u.count1table_select,1)}else for(c(n.main_data_begin>=0),E(s,n.main_data_begin,8),E(s,n.private_bits,s.channels_out),r=0,o=0;o<s.channels_out;o++){var u;E(s,(u=n.tt[r][o]).part2_3_length+u.part2_length,12),E(s,u.big_values/2,9),E(s,u.global_gain,8),E(s,u.scalefac_compress,9),u.block_type!=d.NORM_TYPE?(E(s,1,1),E(s,u.block_type,2),E(s,u.mixed_block_flag,1),14==u.table_select[0]&&(u.table_select[0]=16),E(s,u.table_select[0],5),14==u.table_select[1]&&(u.table_select[1]=16),E(s,u.table_select[1],5),E(s,u.subblock_gain[0],3),E(s,u.subblock_gain[1],3),E(s,u.subblock_gain[2],3)):(E(s,0,1),14==u.table_select[0]&&(u.table_select[0]=16),E(s,u.table_select[0],5),14==u.table_select[1]&&(u.table_select[1]=16),E(s,u.table_select[1],5),14==u.table_select[2]&&(u.table_select[2]=16),E(s,u.table_select[2],5),c(0<=u.region0_count&&u.region0_count<16),c(0<=u.region1_count&&u.region1_count<8),E(s,u.region0_count,4),E(s,u.region1_count,3)),E(s,u.scalefac_scale,1),E(s,u.count1table_select,1)}e.error_protection&&CRC_writeheader(s,s.header[s.h_ptr].buf);var h=s.h_ptr;c(s.header[h].ptr==8*s.sideinfo_len),s.h_ptr=h+1&f.MAX_HEADER_BUF-1,s.header[s.h_ptr].write_timing=s.header[h].write_timing+t,s.h_ptr==s.w_ptr&&i.err.println("Error: MAX_HEADER_BUF too small in bitstream.c \n")}(e,r);var o=8*n.sideinfo_len;if(o+=function(e){var t,n,r,i,a=0,o=e.internal_flags,s=o.l3_side;if(1==e.version)for(t=0;t<2;t++)for(n=0;n<o.channels_out;n++){var l=s.tt[t][n],h=u.slen1_tab[l.scalefac_compress],f=u.slen2_tab[l.scalefac_compress];for(i=0,r=0;r<l.sfbdivide;r++)-1!=l.scalefac[r]&&(C(o,l.scalefac[r],h),i+=h);for(;r<l.sfbmax;r++)-1!=l.scalefac[r]&&(C(o,l.scalefac[r],f),i+=f);c(i==l.part2_length),l.block_type==d.SHORT_TYPE?i+=M(o,l):i+=P(o,l),i+=B(o,l),c(i==l.part2_3_length+l.part2_length),a+=i}else for(t=0,n=0;n<o.channels_out;n++){l=s.tt[t][n];var p,g,A=0;if(c(null!=l.sfb_partition_table),i=0,r=0,g=0,l.block_type==d.SHORT_TYPE){for(;g<4;g++){var m=l.sfb_partition_table[g]/3,v=l.slen[g];for(p=0;p<m;p++,r++)C(o,Math.max(l.scalefac[3*r+0],0),v),C(o,Math.max(l.scalefac[3*r+1],0),v),C(o,Math.max(l.scalefac[3*r+2],0),v),A+=3*v}i+=M(o,l)}else{for(;g<4;g++)for(m=l.sfb_partition_table[g],v=l.slen[g],p=0;p<m;p++,r++)C(o,Math.max(l.scalefac[r],0),v),A+=v;i+=P(o,l)}i+=B(o,l),c(i==l.part2_3_length),c(A==l.part2_length),a+=A+i}return a}(e),k(e,t.resvDrain_post),o+=t.resvDrain_post,t.main_data_begin+=(r-o)/8,F(e,new D)!=n.ResvSize&&i.err.println("Internal buffer inconsistency. flushbits <> ResvSize"),8*t.main_data_begin!=n.ResvSize&&(i.err.printf("bit reservoir error: \nl3_side.main_data_begin: %d \nResvoir size: %d \nresv drain (post) %d \nresv drain (pre) %d \nheader and sideinfo: %d \ndata bits: %d \ntotal bits: %d (remainder: %d) \nbitsperframe: %d \n",8*t.main_data_begin,n.ResvSize,t.resvDrain_post,t.resvDrain_pre,8*n.sideinfo_len,o-t.resvDrain_post-8*n.sideinfo_len,o,o%8,r),i.err.println("This is a fatal error. It has several possible causes:"),i.err.println("90%% LAME compiled with buggy version of gcc using advanced optimizations"),i.err.println(" 9%% Your system is overclocked"),i.err.println(" 1%% bug in LAME encoding library"),n.ResvSize=8*t.main_data_begin),c(b%8==0),b>1e9){var s;for(s=0;s<f.MAX_HEADER_BUF;++s)n.header[s].write_timing-=b;b=0}return 0},this.copy_buffer=function(e,t,n,r,a){var o=_+1;if(o<=0)return 0;if(0!=r&&o>r)return-1;if(i.arraycopy(y,0,t,n,o),_=-1,w=0,0!=a){var u=l(1);if(u[0]=e.nMusicCRC,v.updateMusicCRC(u,t,n,o),e.nMusicCRC=u[0],o>0&&(e.VBR_seek_table.nBytesWritten+=o),e.decode_on_the_fly)for(var h,d=s([2,1152]),f=o,p=-1;0!=p;)if(p=A.hip_decode1_unclipped(e.hip,t,n,f,d[0],d[1]),f=0,-1==p&&(p=0),p>0){if(c(p<=1152),e.findPeakSample){for(h=0;h<p;h++)d[0][h]>e.PeakSample?e.PeakSample=d[0][h]:-d[0][h]>e.PeakSample&&(e.PeakSample=-d[0][h]);if(e.channels_out>1)for(h=0;h<p;h++)d[1][h]>e.PeakSample?e.PeakSample=d[1][h]:-d[1][h]>e.PeakSample&&(e.PeakSample=-d[1][h])}if(e.findReplayGain&&g.AnalyzeSamples(e.rgdata,d[0],0,d[1],0,p,e.channels_out)==GainAnalysis.GAIN_ANALYSIS_ERROR)return-6}}return o},this.init_bit_stream_w=function(t){y=o(e.LAME_MAXMP3BUFFER),t.h_ptr=t.w_ptr=0,t.header[t.h_ptr].write_timing=0,_=-1,w=0,b=0}}p.EQ=function(e,t){return Math.abs(e)>Math.abs(t)?Math.abs(e-t)<=1e-6*Math.abs(e):Math.abs(e-t)<=1e-6*Math.abs(t)},p.NEQ=function(e,t){return!p.EQ(e,t)},e.exports=p},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=130)}({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})},130: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=Object.prototype.hasOwnProperty,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=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:a,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],o=Object.keys(a),s=0;s<o.length;++s){var l=o[s],c=a[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:l}),n.push(c))}return function(e){for(var t;e.length;){var n=e.pop();if(t=n.obj[n.prop],Array.isArray(t)){for(var r=[],i=0;i<t.length;++i)void 0!==t[i]&&r.push(t[i]);n.obj[n.prop]=r}}return t}(t)},decode:function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},encode:function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),n="",r=0;r<t.length;++r){var a=t.charCodeAt(r);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?n+=t.charAt(r):a<128?n+=i[a]:a<2048?n+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?n+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(r+=1,a=65536+((1023&a)<<10|1023&t.charCodeAt(r)),n+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return n},isBuffer:function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(Array.isArray(t))t.push(n);else{if("object"!=typeof t)return[t,n];(i.plainObjects||i.allowPrototypes||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if("object"!=typeof t)return[t].concat(n);var o=t;return Array.isArray(t)&&!Array.isArray(n)&&(o=a(t,i)),Array.isArray(t)&&Array.isArray(n)?(n.forEach(function(n,a){r.call(t,a)?t[a]&&"object"==typeof t[a]?t[a]=e(t[a],n,i):t.push(n):t[a]=n}),t):Object.keys(n).reduce(function(t,a){var o=n[a];return r.call(t,a)?t[a]=e(t[a],o,i):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)}},pgii:function(e,t,n){"use strict";var r=n("+N5+").isSpace;e.exports=function(e,t,n,i){var a,o,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(a=e.src.charCodeAt(c))||c>=u)return!1;for(o=1,a=e.src.charCodeAt(++c);35===a&&c<u&&o<=6;)o++,a=e.src.charCodeAt(++c);return!(o>6||c<u&&!r(a))&&(!!i||(u=e.skipSpacesBack(u,c),(s=e.skipCharsBack(u,35,c))>c&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(l=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(c,u).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o),!0))}},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},"q/Lo":function(e,t,n){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},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)}},qR53:function(e,t,n){var r=n("To6e"),i=(r.System,r.VbrMode);r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int,r.new_int_n,r.assert;e.exports=function(){var e,t=n("mgSH");function r(e,t,n,r,i,a,o,s,l,c,u,h,d,f,p){this.vbr_q=e,this.quant_comp=t,this.quant_comp_s=n,this.expY=r,this.st_lrm=i,this.st_s=a,this.masking_adj=o,this.masking_adj_short=s,this.ath_lower=l,this.ath_curve=c,this.ath_sensitivity=u,this.interch=h,this.safejoint=d,this.sfb21mod=f,this.msfix=p}function a(e,t,n,r,i,a,o,s,l,c,u,h,d,f){this.quant_comp=t,this.quant_comp_s=n,this.safejoint=r,this.nsmsfix=i,this.st_lrm=a,this.st_s=o,this.nsbass=s,this.scale=l,this.masking_adj=c,this.ath_lower=u,this.ath_curve=h,this.interch=d,this.sfscale=f}this.setModules=function(t){e=t};var o=[new r(0,9,9,0,5.2,125,-4.2,-6.3,4.8,1,0,0,2,21,.97),new r(1,9,9,0,5.3,125,-3.6,-5.6,4.5,1.5,0,0,2,21,1.35),new r(2,9,9,0,5.6,125,-2.2,-3.5,2.8,2,0,0,2,21,1.49),new r(3,9,9,1,5.8,130,-1.8,-2.8,2.6,3,-4,0,2,20,1.64),new r(4,9,9,1,6,135,-.7,-1.1,1.1,3.5,-8,0,2,0,1.79),new r(5,9,9,1,6.4,140,.5,.4,-7.5,4,-12,2e-4,0,0,1.95),new r(6,9,9,1,6.6,145,.67,.65,-14.7,6.5,-19,4e-4,0,0,2.3),new r(7,9,9,1,6.6,145,.8,.75,-19.7,8,-22,6e-4,0,0,2.7),new r(8,9,9,1,6.6,145,1.2,1.15,-27.5,10,-23,7e-4,0,0,0),new r(9,9,9,1,6.6,145,1.6,1.6,-36,11,-25,8e-4,0,0,0),new r(10,9,9,1,6.6,145,2,2,-36,12,-25,8e-4,0,0,0)],s=[new r(0,9,9,0,4.2,25,-7,-4,7.5,1,0,0,2,26,.97),new r(1,9,9,0,4.2,25,-5.6,-3.6,4.5,1.5,0,0,2,21,1.35),new r(2,9,9,0,4.2,25,-4.4,-1.8,2,2,0,0,2,18,1.49),new r(3,9,9,1,4.2,25,-3.4,-1.25,1.1,3,-4,0,2,15,1.64),new r(4,9,9,1,4.2,25,-2.2,.1,0,3.5,-8,0,2,0,1.79),new r(5,9,9,1,4.2,25,-1,1.65,-7.7,4,-12,2e-4,0,0,1.95),new r(6,9,9,1,4.2,25,-0,2.47,-7.7,6.5,-19,4e-4,0,0,2),new r(7,9,9,1,4.2,25,.5,2,-14.5,8,-22,6e-4,0,0,2),new r(8,9,9,1,4.2,25,1,2.4,-22,10,-23,7e-4,0,0,2),new r(9,9,9,1,4.2,25,1.5,2.95,-30,11,-25,8e-4,0,0,2),new r(10,9,9,1,4.2,25,2,2.95,-36,12,-30,8e-4,0,0,2)];function l(e,t,n){var r=e.VBR==i.vbr_rh?o:s,a=e.VBR_q_frac,l=r[t],c=r[t+1],u=l;l.st_lrm=l.st_lrm+a*(c.st_lrm-l.st_lrm),l.st_s=l.st_s+a*(c.st_s-l.st_s),l.masking_adj=l.masking_adj+a*(c.masking_adj-l.masking_adj),l.masking_adj_short=l.masking_adj_short+a*(c.masking_adj_short-l.masking_adj_short),l.ath_lower=l.ath_lower+a*(c.ath_lower-l.ath_lower),l.ath_curve=l.ath_curve+a*(c.ath_curve-l.ath_curve),l.ath_sensitivity=l.ath_sensitivity+a*(c.ath_sensitivity-l.ath_sensitivity),l.interch=l.interch+a*(c.interch-l.interch),l.msfix=l.msfix+a*(c.msfix-l.msfix),function(e,t){0>t&&(-1,t=0),9<t&&(-1,t=9),e.VBR_q=t,e.VBR_q_frac=0}(e,u.vbr_q),0!=n?e.quant_comp=u.quant_comp:Math.abs(e.quant_comp- -1)>0||(e.quant_comp=u.quant_comp),0!=n?e.quant_comp_short=u.quant_comp_s:Math.abs(e.quant_comp_short- -1)>0||(e.quant_comp_short=u.quant_comp_s),0!=u.expY&&(e.experimentalY=0!=u.expY),0!=n?e.internal_flags.nsPsy.attackthre=u.st_lrm:Math.abs(e.internal_flags.nsPsy.attackthre- -1)>0||(e.internal_flags.nsPsy.attackthre=u.st_lrm),0!=n?e.internal_flags.nsPsy.attackthre_s=u.st_s:Math.abs(e.internal_flags.nsPsy.attackthre_s- -1)>0||(e.internal_flags.nsPsy.attackthre_s=u.st_s),0!=n?e.maskingadjust=u.masking_adj:Math.abs(e.maskingadjust-0)>0||(e.maskingadjust=u.masking_adj),0!=n?e.maskingadjust_short=u.masking_adj_short:Math.abs(e.maskingadjust_short-0)>0||(e.maskingadjust_short=u.masking_adj_short),0!=n?e.ATHlower=-u.ath_lower/10:Math.abs(10*-e.ATHlower-0)>0||(e.ATHlower=-u.ath_lower/10),0!=n?e.ATHcurve=u.ath_curve:Math.abs(e.ATHcurve- -1)>0||(e.ATHcurve=u.ath_curve),0!=n?e.athaa_sensitivity=u.ath_sensitivity:Math.abs(e.athaa_sensitivity- -1)>0||(e.athaa_sensitivity=u.ath_sensitivity),u.interch>0&&(0!=n?e.interChRatio=u.interch:Math.abs(e.interChRatio- -1)>0||(e.interChRatio=u.interch)),u.safejoint>0&&(e.exp_nspsytune=e.exp_nspsytune|u.safejoint),u.sfb21mod>0&&(e.exp_nspsytune=e.exp_nspsytune|u.sfb21mod<<20),0!=n?e.msfix=u.msfix:Math.abs(e.msfix- -1)>0||(e.msfix=u.msfix),0==n&&(e.VBR_q=t,e.VBR_q_frac=a)}var c=[new a(8,9,9,0,0,6.6,145,0,.95,0,-30,11,.0012,1),new a(16,9,9,0,0,6.6,145,0,.95,0,-25,11,.001,1),new a(24,9,9,0,0,6.6,145,0,.95,0,-20,11,.001,1),new a(32,9,9,0,0,6.6,145,0,.95,0,-15,11,.001,1),new a(40,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new a(48,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new a(56,9,9,0,0,6.6,145,0,.95,0,-6,11,8e-4,1),new a(64,9,9,0,0,6.6,145,0,.95,0,-2,11,8e-4,1),new a(80,9,9,0,0,6.6,145,0,.95,0,0,8,7e-4,1),new a(96,9,9,0,2.5,6.6,145,0,.95,0,1,5.5,6e-4,1),new a(112,9,9,0,2.25,6.6,145,0,.95,0,2,4.5,5e-4,1),new a(128,9,9,0,1.95,6.4,140,0,.95,0,3,4,2e-4,1),new a(160,9,9,1,1.79,6,135,0,.95,-2,5,3.5,0,1),new a(192,9,9,1,1.49,5.6,125,0,.97,-4,7,3,0,0),new a(224,9,9,1,1.25,5.2,125,0,.98,-6,9,2,0,0),new a(256,9,9,1,.97,5.2,125,0,1,-8,10,1,0,0),new a(320,9,9,1,.9,5.2,125,0,1,-10,12,0,0,0)];function u(t,n,r){var a=n,o=e.nearestBitrateFullIndex(n);if(t.VBR=i.vbr_abr,t.VBR_mean_bitrate_kbps=a,t.VBR_mean_bitrate_kbps=Math.min(t.VBR_mean_bitrate_kbps,320),t.VBR_mean_bitrate_kbps=Math.max(t.VBR_mean_bitrate_kbps,8),t.brate=t.VBR_mean_bitrate_kbps,t.VBR_mean_bitrate_kbps>320&&(t.disable_reservoir=!0),c[o].safejoint>0&&(t.exp_nspsytune=2|t.exp_nspsytune),c[o].sfscale>0&&(t.internal_flags.noise_shaping=2),Math.abs(c[o].nsbass)>0){var s=int(4*c[o].nsbass);s<0&&(s+=64),t.exp_nspsytune=t.exp_nspsytune|s<<2}return 0!=r?t.quant_comp=c[o].quant_comp:Math.abs(t.quant_comp- -1)>0||(t.quant_comp=c[o].quant_comp),0!=r?t.quant_comp_short=c[o].quant_comp_s:Math.abs(t.quant_comp_short- -1)>0||(t.quant_comp_short=c[o].quant_comp_s),0!=r?t.msfix=c[o].nsmsfix:Math.abs(t.msfix- -1)>0||(t.msfix=c[o].nsmsfix),0!=r?t.internal_flags.nsPsy.attackthre=c[o].st_lrm:Math.abs(t.internal_flags.nsPsy.attackthre- -1)>0||(t.internal_flags.nsPsy.attackthre=c[o].st_lrm),0!=r?t.internal_flags.nsPsy.attackthre_s=c[o].st_s:Math.abs(t.internal_flags.nsPsy.attackthre_s- -1)>0||(t.internal_flags.nsPsy.attackthre_s=c[o].st_s),0!=r?t.scale=c[o].scale:Math.abs(t.scale- -1)>0||(t.scale=c[o].scale),0!=r?t.maskingadjust=c[o].masking_adj:Math.abs(t.maskingadjust-0)>0||(t.maskingadjust=c[o].masking_adj),c[o].masking_adj>0?0!=r?t.maskingadjust_short=.9*c[o].masking_adj:Math.abs(t.maskingadjust_short-0)>0||(t.maskingadjust_short=.9*c[o].masking_adj):0!=r?t.maskingadjust_short=1.1*c[o].masking_adj:Math.abs(t.maskingadjust_short-0)>0||(t.maskingadjust_short=1.1*c[o].masking_adj),0!=r?t.ATHlower=-c[o].ath_lower/10:Math.abs(10*-t.ATHlower-0)>0||(t.ATHlower=-c[o].ath_lower/10),0!=r?t.ATHcurve=c[o].ath_curve:Math.abs(t.ATHcurve- -1)>0||(t.ATHcurve=c[o].ath_curve),0!=r?t.interChRatio=c[o].interch:Math.abs(t.interChRatio- -1)>0||(t.interChRatio=c[o].interch),n}this.apply_preset=function(e,n,r){switch(n){case t.R3MIX:n=t.V3,e.VBR=i.vbr_mtrh;break;case t.MEDIUM:n=t.V4,e.VBR=i.vbr_rh;break;case t.MEDIUM_FAST:n=t.V4,e.VBR=i.vbr_mtrh;break;case t.STANDARD:n=t.V2,e.VBR=i.vbr_rh;break;case t.STANDARD_FAST:n=t.V2,e.VBR=i.vbr_mtrh;break;case t.EXTREME:n=t.V0,e.VBR=i.vbr_rh;break;case t.EXTREME_FAST:n=t.V0,e.VBR=i.vbr_mtrh;break;case t.INSANE:return n=320,e.preset=n,u(e,n,r),e.VBR=i.vbr_off,n}switch(e.preset=n,n){case t.V9:return l(e,9,r),n;case t.V8:return l(e,8,r),n;case t.V7:return l(e,7,r),n;case t.V6:return l(e,6,r),n;case t.V5:return l(e,5,r),n;case t.V4:return l(e,4,r),n;case t.V3:return l(e,3,r),n;case t.V2:return l(e,2,r),n;case t.V1:return l(e,1,r),n;case t.V0:return l(e,0,r),n}return 8<=n&&n<=320?u(e,n,r):(e.preset=0,n)}}},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)}},qyJz:function(e,t,n){"use strict";var r=n("+ZMJ"),i=n("kM2E"),a=n("sB3e"),o=n("msXi"),s=n("Mhyx"),l=n("QRG4"),c=n("fBQ2"),u=n("3fs2");i(i.S+i.F*!n("dY0y")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,h,d=a(e),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,A=void 0!==g,m=0,v=u(d);if(A&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==v||f==Array&&s(v))for(n=new f(t=l(d.length));t>m;m++)c(n,m,A?g(d[m],m):d[m]);else for(h=v.call(d),n=new f;!(i=h.next()).done;m++)c(n,m,A?o(h,g,[i.value,m],!0):i.value);return n.length=m,n}})},rYzl:function(e,t,n){"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<a&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}},rnHg:function(e,t,n){"use strict";var r=n("+N5+").assign,i=n("+N5+").unescapeAll,a=n("+N5+").escapeHtml,o={};function s(){this.rules=r({},o)}o.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+a(e[t].content)+"</code>"},o.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+a(e[t].content)+"</code></pre>\n"},o.fence=function(e,t,n,r,o){var s,l,c,u,h,d=e[t],f=d.info?i(d.info).trim():"",p="",g="";return f&&(p=(c=f.split(/(\s+)/g))[0],g=c.slice(2).join("")),0===(s=n.highlight&&n.highlight(d.content,p,g)||a(d.content)).indexOf("<pre")?s+"\n":f?(l=d.attrIndex("class"),u=d.attrs?d.attrs.slice():[],l<0?u.push(["class",n.langPrefix+p]):(u[l]=u[l].slice(),u[l][1]+=" "+n.langPrefix+p),h={attrs:u},"<pre><code"+o.renderAttrs(h)+">"+s+"</code></pre>\n"):"<pre><code"+o.renderAttrs(d)+">"+s+"</code></pre>\n"},o.image=function(e,t,n,r,i){var a=e[t];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},o.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},o.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},o.text=function(e,t){return a(e[t].content)},o.html_block=function(e,t){return e[t].content},o.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+a(e.attrs[t][0])+'="'+a(e.attrs[t][1])+'"';return r},s.prototype.renderToken=function(e,t,n){var r,i="",a=!1,o=e[t];return o.hidden?"":(o.block&&-1!==o.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===o.nesting?"</":"<")+o.tag,i+=this.renderAttrs(o),0===o.nesting&&n.xhtmlOut&&(i+=" /"),o.block&&(a=!0,1===o.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden?a=!1:-1===r.nesting&&r.tag===o.tag&&(a=!1))),i+=a?">\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",a=this.rules,o=0,s=e.length;o<s;o++)void 0!==a[r=e[o].type]?i+=a[r](e,o,t,n,this):i+=this.renderToken(e,o,t);return i},s.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,a=e.length;i<a;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},s.prototype.render=function(e,t,n){var r,i,a,o="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(a=e[r].type)?o+=this.renderInline(e[r].children,t,n):void 0!==s[a]?o+=s[e[r].type](e,r,t,n,this):o+=this.renderToken(e,r,t,n);return o},e.exports=s},ryq5:function(e,t,n){"use strict";var r=n("wzKY").HTML_TAG_RE;e.exports=function(e,t){var n,i,a,o,s,l=e.pos;return!!e.md.options.html&&(a=e.posMax,!(60!==e.src.charCodeAt(l)||l+2>=a)&&(!(33!==(n=e.src.charCodeAt(l+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(i=e.src.slice(l).match(r))&&(t||((o=e.push("html_inline","",0)).content=e.src.slice(l,l+i[0].length),s=o.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(o.content)&&e.linkLevel--),e.pos+=i[0].length,!0))))}},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=126)}({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})},126: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},4:function(e,t){e.exports=n("fPll")}})},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")})},sIya:function(e,t,n){"use strict";var r=n("881s"),i=n("+N5+").has,a=n("+N5+").isValidEntityCode,o=n("+N5+").fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,c,u,h=e.pos,d=e.posMax;if(38!==e.src.charCodeAt(h))return!1;if(h+1>=d)return!1;if(35===e.src.charCodeAt(h+1)){if(c=e.src.slice(h).match(s))return t||(n="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),(u=e.push("text_special","",0)).content=a(n)?o(n):o(65533),u.markup=c[0],u.info="entity"),e.pos+=c[0].length,!0}else if((c=e.src.slice(h).match(l))&&i(r,c[1]))return t||((u=e.push("text_special","",0)).content=r[c[1]],u.markup=c[0],u.info="entity"),e.pos+=c[0].length,!0;return!1}},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)}},t4zo:function(e,t,n){(function(n){var r,i,a;i=[],void 0===(a="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,n,o){var s=a.URL||a.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):r(l.href)?t(e,n,o):i(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){i(l)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,a),n);else if(r(e))t(e,n,a);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){i(o)})}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,l=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||o)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var h=a.URL||a.webkitURL,d=h.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});a.saveAs=s.saveAs=s,void 0!==e&&(e.exports=s)})?r.apply(t,i):r)||(e.exports=a)}).call(t,n("DuR2"))},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)}},tBlf:function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,a,o,s=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(93===(a=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===a)if(o===e.pos-1)r++;else if(n)return e.pos=c,-1}return i&&(s=e.pos),e.pos=c,s}},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},tNJR:function(e,t,n){"use strict";var r=n("+N5+").isSpace;e.exports=function(e,t,n,i){var a,o,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(a=e.src.charCodeAt(c++))&&45!==a&&95!==a)return!1;for(o=1;c<u;){if((s=e.src.charCodeAt(c++))!==a&&!r(s))return!1;s===a&&o++}return!(o<3)&&(!!i||(e.line=t+1,(l=e.push("hr","hr",0)).map=[t,e.line],l.markup=Array(o+1).join(String.fromCharCode(a)),!0))}},"u/Zb":function(e,t,n){e.exports=n("Kh4W").f("species")},u8ag:function(e,t,n){"use strict";var r=n("+N5+").normalizeReference,i=n("+N5+").isSpace;e.exports=function(e,t,n,a){var o,s,l,c,u,h,d,f,p,g,A,m,v,y,b,_,w=0,x=e.bMarks[t]+e.tShift[t],C=e.eMarks[t],S=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(x))return!1;for(;++x<C;)if(93===e.src.charCodeAt(x)&&92!==e.src.charCodeAt(x-1)){if(x+1===C)return!1;if(58!==e.src.charCodeAt(x+1))return!1;break}for(c=e.lineMax,b=e.md.block.ruler.getRules("reference"),g=e.parentType,e.parentType="reference";S<c&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3||e.sCount[S]<0)){for(y=!1,h=0,d=b.length;h<d;h++)if(b[h](e,S,c,!0)){y=!0;break}if(y)break}for(C=(v=e.getLines(t,S,e.blkIndent,!1).trim()).length,x=1;x<C;x++){if(91===(o=v.charCodeAt(x)))return!1;if(93===o){p=x;break}10===o?w++:92===o&&++x<C&&10===v.charCodeAt(x)&&w++}if(p<0||58!==v.charCodeAt(p+1))return!1;for(x=p+2;x<C;x++)if(10===(o=v.charCodeAt(x)))w++;else if(!i(o))break;if(!(A=e.md.helpers.parseLinkDestination(v,x,C)).ok)return!1;if(u=e.md.normalizeLink(A.str),!e.md.validateLink(u))return!1;for(s=x=A.pos,l=w+=A.lines,m=x;x<C;x++)if(10===(o=v.charCodeAt(x)))w++;else if(!i(o))break;for(A=e.md.helpers.parseLinkTitle(v,x,C),x<C&&m!==x&&A.ok?(_=A.str,x=A.pos,w+=A.lines):(_="",x=s,w=l);x<C&&(o=v.charCodeAt(x),i(o));)x++;if(x<C&&10!==v.charCodeAt(x)&&_)for(_="",x=s,w=l;x<C&&(o=v.charCodeAt(x),i(o));)x++;return!(x<C&&10!==v.charCodeAt(x))&&(!!(f=r(v.slice(1,p)))&&(!!a||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[f]&&(e.env.references[f]={title:_,href:u}),e.parentType=g,e.line=t+w+1,!0)))}},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))}}},uiO5:function(e,t,n){"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},ujcs:function(e,t){
  442. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  443. 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,g=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*g}},ujtc:function(e,t,n){"use strict";var r=n("+N5+").unescapeAll;e.exports=function(e,t,n){var i,a,o=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(i=e.charCodeAt(t)))return s;if(60===i)return s;if(62===i)return s.pos=t+1,s.str=r(e.slice(o+1,t)),s.ok=!0,s;92===i&&t+1<n?t+=2:t++}return s}for(a=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===i&&++a>32)return s;if(41===i){if(0===a)break;a--}t++}return o===t?s:0!==a?s:(s.str=r(e.slice(o,t)),s.lines=0,s.pos=t,s.ok=!0,s)}},ukGi:function(e,t,n){"use strict";var r=n("+N5+"),i=n("CzOf"),a=n("rnHg"),o=n("MHwQ"),s=n("SFHI"),l=n("9v3E"),c=n("v+HC"),u=n("HxqY"),h=n("xCWu"),d={default:n("eHQZ"),zero:n("oQJ3"),commonmark:n("TMZu")},f=/^(vbscript|javascript|file|data):/,p=/^data:image\/(gif|png|jpeg|webp);/;function g(e){var t=e.trim().toLowerCase();return!f.test(t)||!!p.test(t)}var A=["http:","https:","mailto:"];function m(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||A.indexOf(t.protocol)>=0))try{t.hostname=h.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||A.indexOf(t.protocol)>=0))try{t.hostname=h.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function y(e,t){if(!(this instanceof y))return new y(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new l,this.block=new s,this.core=new o,this.renderer=new a,this.linkify=new c,this.validateLink=g,this.normalizeLink=m,this.normalizeLinkText=v,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}y.prototype.set=function(e){return r.assign(this.options,e),this},y.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=d[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},y.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},y.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},y.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},y.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},y.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},y.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},y.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=y},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}},"v+HC":function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function i(e){return Object.prototype.toString.call(e)}function a(e){return"[object Function]"===i(e)}function o(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function h(e){var t=e.re=n("CoRl")(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r,o={validate:null,link:null};if(e.__compiled__[t]=o,"[object Object]"===i(n))return!function(e){return"[object RegExp]"===i(e)}(n.validate)?a(n.validate)?o.validate=n.validate:u(t,n):o.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}),void(a(n.normalize)?o.normalize=n.normalize:n.normalize?u(t,n):o.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?u(t,n):l.push(t)}}),l.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var h=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(o).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+h+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+h+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function d(e,t){var n=new function(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||s.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},h(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,h(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,a,o,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=o)),this.__index__>=0},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,d(this,0)):null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),h(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,h(this),this)},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},"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,g,A,m){l(n,t,p);var v,y,b,_=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)}},w=t+" Iterator",x="values"==g,C=!1,S=e.prototype,k=S[h]||S["@@iterator"]||g&&S[g],E=k||_(g),T=g?x?_("entries"):E:void 0,B="Array"==t&&S.entries||k;if(B&&(b=u(B.call(new e)))!==Object.prototype&&b.next&&(c(b,w,!0),r||"function"==typeof b[h]||o(b,h,f)),x&&k&&"values"!==k.name&&(C=!0,E=function(){return k.call(this)}),r&&!m||!d&&!C&&S[h]||o(S,h,E),s[t]=E,s[w]=f,g)if(v={values:x?E:_("values"),keys:A?E:_("keys"),entries:T},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}},vbIv:function(e,t,n){var r=n("To6e"),i=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=r.new_float_n,o=r.new_int,s=(r.new_int_n,r.assert,n("/00o"));e.exports=function(){this.last_en_subshort=a([4,9]),this.lastAttacks=o(4),this.pefirbuf=i(19),this.longfact=i(s.SBMAX_l),this.shortfact=i(s.SBMAX_s),this.attackthre=0,this.attackthre_s=0}},vwhL: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=1)}([function(e,t,n){"use strict";function r(e,t,n){for(var r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))}Object.defineProperty(t,"__esModule",{value:!0}),t.compress=function(e,t,n){for(var r=t/n,i=Math.max(r,1),a=e.left,o=e.right,s=Math.floor((a.length+o.length)/r),l=new Float32Array(s),c=0,u=0;c<s;){var h=Math.floor(u);l[c]=a[h],c++,o.length&&(l[c]=o[h],c++),u+=i}return l},t.encodePCM=function(e,t,n){void 0===n&&(n=!0);var r=0,i=e.length*(t/8),a=new ArrayBuffer(i),o=new DataView(a);if(8===t)for(var s=0;s<e.length;s++,r++){var l=(c=Math.max(-1,Math.min(1,e[s])))<0?128*c:127*c;l=+l+128,o.setInt8(r,l)}else for(s=0;s<e.length;s++,r+=2){var c=Math.max(-1,Math.min(1,e[s]));o.setInt16(r,c<0?32768*c:32767*c,n)}return o},t.encodeWAV=function(e,t,n,i,a,o){void 0===o&&(o=!0);var s=n>t?t:n,l=a,c=new ArrayBuffer(44+e.byteLength),u=new DataView(c),h=i,d=0;r(u,d,"RIFF"),d+=4,u.setUint32(d,36+e.byteLength,o),r(u,d+=4,"WAVE"),r(u,d+=4,"fmt "),d+=4,u.setUint32(d,16,o),d+=4,u.setUint16(d,1,o),d+=2,u.setUint16(d,h,o),d+=2,u.setUint32(d,s,o),d+=4,u.setUint32(d,h*s*(l/8),o),d+=4,u.setUint16(d,h*(l/8),o),d+=2,u.setUint16(d,l,o),r(u,d+=2,"data"),d+=4,u.setUint32(d,e.byteLength,o),d+=4;for(var f=0;f<e.byteLength;)u.setUint8(d,e.getUint8(f)),d++,f++;return u}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),o=n(0),s=n(3),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.isrecording=!1,n.ispause=!1,n.isplaying=!1,n}return i(t,e),t.prototype.setOption=function(e){void 0===e&&(e={}),this.setNewOption(e)},t.prototype.start=function(){return this.isrecording?Promise.reject():(this.isrecording=!0,this.startRecord())},t.prototype.pause=function(){this.isrecording&&!this.ispause&&(this.ispause=!0,this.pauseRecord())},t.prototype.resume=function(){this.isrecording&&this.ispause&&(this.ispause=!1,this.resumeRecord())},t.prototype.stop=function(){this.isrecording&&(this.isrecording=!1,this.ispause=!1,this.stopRecord())},t.prototype.play=function(){this.stop(),this.isplaying=!0,this.onplay&&this.onplay(),s.default.addPlayEnd(this.onplayend);var e=this.getWAV();e.byteLength>44&&s.default.play(e.buffer)},t.prototype.getPlayTime=function(){return s.default.getPlayTime()},t.prototype.pausePlay=function(){!this.isrecording&&this.isplaying&&(this.isplaying=!1,this.onpauseplay&&this.onpauseplay(),s.default.pausePlay())},t.prototype.resumePlay=function(){this.isrecording||this.isplaying||(this.isplaying=!0,this.onresumeplay&&this.onresumeplay(),s.default.resumePlay())},t.prototype.stopPlay=function(){this.isrecording||(this.isplaying=!1,this.onstopplay&&this.onstopplay(),s.default.stopPlay())},t.prototype.destroy=function(){return s.default.destroyPlay(),this.destroyRecord()},t.prototype.getRecordAnalyseData=function(){return this.getAnalyseData()},t.prototype.getPlayAnalyseData=function(){return s.default.getAnalyseData()},t.prototype.getPCM=function(){this.stop();var e=this.getData();return e=o.compress(e,this.inputSampleRate,this.outputSampleRate),o.encodePCM(e,this.oututSampleBits,this.littleEdian)},t.prototype.getPCMBlob=function(){return new Blob([this.getPCM()])},t.prototype.downloadPCM=function(e){void 0===e&&(e="recorder");var t=this.getPCMBlob();a.downloadPCM(t,e)},t.prototype.getWAV=function(){var e=this.getPCM();return o.encodeWAV(e,this.inputSampleRate,this.outputSampleRate,this.config.numChannels,this.oututSampleBits,this.littleEdian)},t.prototype.getWAVBlob=function(){return new Blob([this.getWAV()],{type:"audio/wav"})},t.prototype.downloadWAV=function(e){void 0===e&&(e="recorder");var t=this.getWAVBlob();a.downloadWAV(t,e)},t.prototype.download=function(e,t,n){a.download(e,t,n)},t.prototype.getChannelData=function(){var e=this.getPCM(),t=e.byteLength,n=this.littleEdian,r={left:null,right:null};if(2===this.config.numChannels){var i=new DataView(new ArrayBuffer(t/2)),a=new DataView(new ArrayBuffer(t/2));if(16===this.config.sampleBits)for(var o=0;o<t/2;o+=2)i.setInt16(o,e.getInt16(2*o,n),n),a.setInt16(o,e.getInt16(2*o+2,n),n);else for(o=0;o<t/2;o+=2)i.setInt8(o,e.getInt8(2*o)),a.setInt8(o,e.getInt8(2*o+1));r.left=i,r.right=a}else r.left=e;return r},t}(n(5).default);t.default=l},function(e,t,n){"use strict";function r(e,t,n){var r=document.createElement("a");r.href=window.URL.createObjectURL(e),r.download=t+"."+n,r.click()}Object.defineProperty(t,"__esModule",{value:!0}),t.downloadWAV=function(e,t){void 0===t&&(t="recorder"),r(e,t,"wav")},t.downloadPCM=function(e,t){void 0===t&&(t="recorder"),r(e,t,"pcm")},t.download=function(e,t,n){return r(e,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=null,a=0,o=0,s=null,l=null,c=null,u=!1,h=0,d=function(){};function f(){return u=!1,s.decodeAudioData(c.slice(0),function(e){(i=s.createBufferSource()).onended=function(){u||(h=s.currentTime-o+a,d())},i.buffer=e,i.connect(l),l.connect(s.destination),i.start(0,a),o=s.currentTime},function(e){r.throwError(e)})}function p(){i&&(i.stop(),i=null)}var g=function(){function e(){}return e.play=function(e){return s||(s=new(window.AudioContext||window.webkitAudioContext),(l=s.createAnalyser()).fftSize=2048),this.stopPlay(),c=e,h=0,f()},e.pausePlay=function(){p(),a+=s.currentTime-o,u=!0},e.resumePlay=function(){return f()},e.stopPlay=function(){a=0,c=null,p()},e.destroyPlay=function(){this.stopPlay()},e.getAnalyseData=function(){var e=new Uint8Array(l.frequencyBinCount);return l.getByteTimeDomainData(e),e},e.addPlayEnd=function(e){void 0===e&&(e=function(){}),d=e},e.getPlayTime=function(){var e=u?a:s.currentTime-o+a;return h||e},e}();t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=function(e){throw new Error(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(){function e(t){void 0===t&&(t={}),this.size=0,this.lBuffer=[],this.rBuffer=[],this.tempPCM=[],this.inputSampleBits=16,this.fileSize=0,this.duration=0,this.needRecord=!0;var n,r=new(window.AudioContext||window.webkitAudioContext);this.inputSampleRate=r.sampleRate,this.setNewOption(t),this.littleEdian=(n=new ArrayBuffer(2),new DataView(n).setInt16(0,256,!0),256===new Int16Array(n)[0]),e.initUserMedia()}return e.prototype.setNewOption=function(e){void 0===e&&(e={}),this.config={sampleBits:~[8,16].indexOf(e.sampleBits)?e.sampleBits:16,sampleRate:~[8e3,11025,16e3,22050,24e3,44100,48e3].indexOf(e.sampleRate)?e.sampleRate:this.inputSampleRate,numChannels:~[1,2].indexOf(e.numChannels)?e.numChannels:1},this.outputSampleRate=this.config.sampleRate,this.oututSampleBits=this.config.sampleBits},e.prototype.startRecord=function(){var e=this;return this.context&&this.destroyRecord(),this.initRecorder(),navigator.mediaDevices.getUserMedia({audio:!0}).then(function(t){e.audioInput=e.context.createMediaStreamSource(t),e.stream=t}).then(function(){e.audioInput.connect(e.analyser),e.analyser.connect(e.recorder),e.recorder.connect(e.context.destination)})},e.prototype.pauseRecord=function(){this.needRecord=!1},e.prototype.resumeRecord=function(){this.needRecord=!0},e.prototype.stopRecord=function(){this.audioInput&&this.audioInput.disconnect(),this.source&&this.source.stop(),this.recorder.disconnect(),this.analyser.disconnect(),this.needRecord=!0},e.prototype.destroyRecord=function(){return this.clearRecordStatus(),this.stopStream(),this.closeAudioContext()},e.prototype.getAnalyseData=function(){var e=new Uint8Array(this.analyser.frequencyBinCount);return this.analyser.getByteTimeDomainData(e),e},e.prototype.getData=function(){return this.flat()},e.prototype.clearRecordStatus=function(){this.lBuffer.length=0,this.rBuffer.length=0,this.size=0,this.fileSize=0,this.PCM=null,this.audioInput=null,this.duration=0},e.prototype.flat=function(){var e=null,t=new Float32Array(0);1===this.config.numChannels?e=new Float32Array(this.size):(e=new Float32Array(this.size/2),t=new Float32Array(this.size/2));for(var n=0,r=0;r<this.lBuffer.length;r++)e.set(this.lBuffer[r],n),n+=this.lBuffer[r].length;for(n=0,r=0;r<this.rBuffer.length;r++)t.set(this.rBuffer[r],n),n+=this.rBuffer[r].length;return{left:e,right:t}},e.prototype.initRecorder=function(){var e=this;this.clearRecordStatus(),this.context=new(window.AudioContext||window.webkitAudioContext),this.analyser=this.context.createAnalyser(),this.analyser.fftSize=2048;var t=this.context.createScriptProcessor||this.context.createJavaScriptNode;this.recorder=t.apply(this.context,[4096,this.config.numChannels,this.config.numChannels]),this.recorder.onaudioprocess=function(t){if(e.needRecord){var n,r=t.inputBuffer.getChannelData(0),i=null;e.lBuffer.push(new Float32Array(r)),e.size+=r.length,2===e.config.numChannels&&(i=t.inputBuffer.getChannelData(1),e.rBuffer.push(new Float32Array(i)),e.size+=i.length),e.fileSize=Math.floor(e.size/Math.max(e.inputSampleRate/e.outputSampleRate,1))*(e.oututSampleBits/8),n=100*Math.max.apply(Math,r),e.duration+=4096/e.inputSampleRate,e.onprocess&&e.onprocess(e.duration),e.onprogress&&e.onprogress({duration:e.duration,fileSize:e.fileSize,vol:n})}}},e.prototype.stopStream=function(){this.stream&&this.stream.getTracks&&(this.stream.getTracks().forEach(function(e){return e.stop()}),this.stream=null)},e.prototype.closeAudioContext=function(){return this.context&&this.context.close&&"closed"!==this.context.state?this.context.close():new Promise(function(e){e()})},e.initUserMedia=function(){void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return t?new Promise(function(n,r){t.call(navigator,e,n,r)}):Promise.reject(new Error("浏览器不支持 getUserMedia !"))})},e.prototype.transformIntoPCM=function(e,t){var n=new Float32Array(e),i=new Float32Array(t),a=r.compress({left:n,right:i},this.inputSampleRate,this.outputSampleRate);return r.encodePCM(a,this.oututSampleBits,this.littleEdian)},e.getPermission=function(){return this.initUserMedia(),navigator.mediaDevices.getUserMedia({audio:!0}).then(function(e){e&&e.getTracks().forEach(function(e){return e.stop()})})},e}();t.default=i}]).default},e.exports=r()},wdSa:function(e,t,n){var r=n("To6e"),i=r.new_float,a=r.new_int;r.assert;e.exports=function(){this.global_gain=0,this.sfb_count1=0,this.step=a(39),this.noise=i(39),this.noise_log=i(39)}},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 g=[];for(const e in[])g.push(e);if(g.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+g.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 A=e.docId,m=e.docBaseUrl,v=e.docId+"_worker",y=new s.MessageHandler(v,A,t);function b(){if(o)throw new Error("Worker was terminated")}function _(e){d.push(e)}function w(e){e.finish();var t=d.indexOf(e);d.splice(t,1)}async function x(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(A,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(A,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(A,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}`);_(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){w(a),o&&(0,r.info)(`page=${i+1} - getOperatorList: time=`+`${Date.now()-o}ms, len=${e.length}`),t.close()},function(e){w(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);_(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(){w(a),o&&(0,r.info)(`page=${i+1} - getTextContent: time=`+`${Date.now()-o}ms`),t.close()},function(e){w(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}`);_(t),y.sendWithPromise("PasswordRequest",e).then(function({password:e}){w(t),n.updatePassword(e),a()}).catch(function(){w(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(),x(!1).then(t,function(e){b(),e instanceof c.XRefParseException?(n.requestLoadedStream(),n.onLoadedStream().then(function(){b(),x(!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 g=["rgb(",0,",",0,",",0,")"];class A{static makeCssRgb(e,t,n){return g[1]=e,g[3]=t,g[5]=n,g.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=A.applyTransform(e,t),r=A.applyTransform(e.slice(2,4),t),i=A.applyTransform([e[0],e[3]],t),a=A.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=A.normalizeRect(e),t=A.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=A;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,g=[0,0,612,792];function A(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")||g)}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)A(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&&!A(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]),_=1024,w="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",x=/^[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&&x.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]!==w?(0,r.stringToBytes)(t[0]):(0,c.calculateMD5)(this.stream.getByteRange(0,_),0,_)).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"),g=c.get("Count");let A=s;!Array.isArray(p)||3!==p.length||0===p[0]&&0===p[1]&&0===p[2]||(A=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:A,count:Number.isInteger(g)?g: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 g(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 A(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 g={};switch(g.offset=f,g.gen=p,d){case 0:g.free=!0;break;case 1:g.uncompressed=!0;break;case 2:break;default:throw new r.FormatError(`Invalid XRef entry type: ${d}`)}this.entries[u+t]||(this.entries[u+t]=g)}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 g=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var A=this.stream;A.pos=0;for(var m,v,y=A.getBytes(),b=A.start,_=y.length,w=[],x=[];b<_;){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),w.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-A.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 E=l(a,0,g);E<n&&a[E+5]<64&&(x.push(b-A.start),this.xrefstms[b-A.start]=1),b+=n}else k.startsWith("trailer")&&(7===k.length||/\s/.test(k[7]))?(w.push(b),b+=l(y,b,f)):b+=k.length+1}else do{if(++b>=_)break;C=y[b]}while(C!==e&&C!==t);else++b}for(m=0,v=x.length;m<v;++m)this.startXRefQueue.push(x[m]),this.readXRef(!0);let T;for(m=0,v=w.length;m<v;++m){A.pos=w[m];const e=new a.Parser({lexer:new a.Lexer(A),xref:this,allowStreams:!0,recoveryMode:!0});var B=e.getObj();if(!(0,i.isCmd)(B,"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;T=t}}if(T)return T;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 g extends f{constructor(e,t){super(e,t,"Nums")}}var A=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=A;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,g=n.makeSubStream(c,u,r);if(u<h&&o<d){const e=g.getBytes();g.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&&(g=e.createStream(g,u)),(g=this.filter(g,r,u)).dict=r,void 0!==p&&(g.cacheKey=`inline_${u}_${p}`,this.imageCache[p]=g),this.buf2=a.Cmd.get("EI"),this.shift(),g}_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 g=[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 A(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&&!g[e];)if(35===e){if(e=this.nextChar(),g[e]){(0,i.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),n.push("#");break}const r=A(e);if(-1!==r){t=e;const a=A(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)),g[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!==g[r]){if(a){if(-1===(t=A(r))){this._hexStringWarn(r),r=this.nextChar();continue}}else{if(-1===(n=A(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!==g[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&&!g[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,g=this.getBits(4)+4,A=new Uint8Array(e.length);for(d=0;d<g;++d)A[e[d]]=this.getBits(3);var m=this.generateHuffmanTable(A);s=0,d=0;for(var v,y,b,_=f+p,w=new Uint8Array(_);d<_;){var x=this.getCode(m);if(16===x)v=2,y=3,b=s;else if(17===x)v=3,y=3,b=s=0;else{if(18!==x){w[d++]=s=x;continue}v=7,y=11,b=s=0}for(var C=this.getBits(v)+y;C-- >0;)w[d++]=b}u=this.generateHuffmanTable(w.subarray(0,f)),h=this.generateHuffmanTable(w.subarray(f,_))}for(var S=(o=this.buffer)?o.length:0,k=this.bufferLength;;){var E=this.getCode(u);if(E<256)k+1>=S&&(S=(o=this.ensureBuffer(k+1)).length),o[k++]=E;else{if(256===E)return void(this.bufferLength=k);var T=(E=t[E-=257])>>16;T>0&&(T=this.getBits(T)),s=(65535&E)+T,E=this.getCode(h),(T=(E=n[E])>>16)>0&&(T=this.getBits(T));var B=(65535&E)+T;k+s>=S&&(S=(o=this.ensureBuffer(k+s)).length);for(var I=0;I<s;++I,++k)o[k]=o[k-B]}}}else{var M;if(-1===(M=l.getByte()))throw new r.FormatError("Bad block header in flate stream");var P=M;if(-1===(M=l.getByte()))throw new r.FormatError("Bad block header in flate stream");if(P|=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&~P)&&(0!==P||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+P;if(o=this.ensureBuffer(t),this.bufferLength=t,0===P)-1===l.peekByte()&&(this.eof=!0);else{const t=l.getBytes(P);o.set(t,e),t.length<P&&(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 g=new Uint8Array(i+1),A=(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),g[b]=g[b]+(s>>c-r)&A,c-=r,l=l<<r|g[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,g=p-f;g<0&&(g=-g);var A=p-c;A<0&&(A=-A);var m=p-d;m<0&&(m=-m),u=i[l],o[h++]=g<=A&&g<=m?f+u:A<=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 g=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=g;var A=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,g=this.bufferLength,A=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);A=this.ensureBuffer(this.bufferLength+r)}for(t=0;t<f;t++)A[g++]=d[t]}i.nextCode=o,i.codeLength=u,i.prevCode=h,i.currentSequenceLength=f,this.bufferLength=g}},e}();t.LZWStream=A;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 P(new B(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,g=new Int8Array(p),A=new Int8Array(p),m=[],v=0,y=0,b=0,_=0;for(f=0;f<p;f++)g[f]=c[f].x,A[f]=c[f].y,y=Math.min(y,c[f].x),b=Math.max(b,c[f].x),_=Math.min(_,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 w=m.length,x=new Int8Array(w),C=new Int8Array(w),S=new Uint16Array(w);for(h=0;h<w;h++)f=m[h],x[h]=c[f].x,C[h]=c[f].y,S[h]=1<<p-1-f;for(var k,E,T,I,M,D=-y,F=-_,O=t-b,L=d[r],R=new Uint8Array(t),N=[],U=s.decoder,j=s.contextCache.getContexts("GB"),H=0,z=0,Q=0;Q<n;Q++){if(i)if(H^=U.readBit(j,L)){N.push(R);continue}for(R=new Uint8Array(R),N.push(R),k=0;k<t;k++)if(l&&a[Q][k])R[k]=0;else{if(k>=D&&k<O&&Q>=F)for(z=z<<1&v,f=0;f<w;f++)E=Q+C[f],T=k+x[f],(I=N[E][T])&&(z|=I=S[f]);else for(z=0,M=p-1,f=0;f<p;f++,M--)(T=k+g[f])>=0&&T<t&&(E=Q+A[f])>=0&&(I=N[E][T])&&(z|=I<<M);var V=U.readBit(j,z);R[k]=V}}return N}function g(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,g=new Int32Array(p),A=new Int32Array(p);for(d=0;d<p;d++)g[d]=u[d].x,A[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 _=r[0].length,w=r.length,x=f[n],C=[],S=c.decoder,k=c.contextCache.getContexts("GR"),E=0,T=0;T<t;T++){if(o)if(E^=S.readBit(k,x))throw new s("prediction is not supported");var B=new Uint8Array(e);C.push(B);for(var I=0;I<e;I++){var M,P,D=0;for(d=0;d<p;d++)M=T+A[d],P=I+g[d],M<0||P<0||P>=e?D<<=1:D=D<<1|C[M][P];for(d=0;d<v;d++)M=T+b[d]-a,P=I+y[d]-i,M<0||M>=w||P<0||P>=_?D<<=1:D=D<<1|r[M][P];var F=S.readBit(k,D);B[I]=F}}return C}function A(e,t,r,i,a,o,c,u,h,d,f,p,A,m,v,y,b,_,w){if(e&&t)throw new s("refinement with Huffman is not supported");var x,C,S=[];for(x=0;x<i;x++){if(C=new Uint8Array(r),a)for(var k=0;k<r;k++)C[k]=a;S.push(C)}var E=b.decoder,T=b.contextCache,B=e?-m.tableDeltaT.decode(w):-n(T,"IADT",E),I=0;for(x=0;x<o;){B+=e?m.tableDeltaT.decode(w):n(T,"IADT",E);for(var M=I+=e?m.tableFirstS.decode(w):n(T,"IAFS",E);;){let i=0;c>1&&(i=e?w.readBits(_):n(T,"IAIT",E));var P=c*B+i,D=e?m.symbolIDTable.decode(w):l(T,E,h),F=t&&(e?w.readBit():n(T,"IARI",E)),O=u[D],L=O[0].length,R=O.length;if(F){var N=n(T,"IARDW",E),U=n(T,"IARDH",E);O=g(L+=N,R+=U,v,O,(N>>1)+n(T,"IARDX",E),(U>>1)+n(T,"IARDY",E),!1,y,b)}var j,H,z,Q=P-(1&p?0:R-1),V=M-(2&p?L-1:0);if(d){for(j=0;j<R;j++)if(C=S[V+j]){z=O[j];var G=Math.min(r-Q,L);switch(A){case 0:for(H=0;H<G;H++)C[Q+H]|=z[H];break;case 2:for(H=0;H<G;H++)C[Q+H]^=z[H];break;default:throw new s(`operator ${A} is not supported`)}}M+=R-1}else{for(H=0;H<R;H++)if(C=S[Q+H])switch(z=O[H],A){case 0:for(j=0;j<L;j++)C[V+j]|=z[j];break;case 2:for(j=0;j<L;j++)C[V+j]^=z[j];break;default:throw new s(`operator ${A} is not supported`)}M+=L-1}x++;var q=e?m.tableDeltaS.decode(w):n(T,"IADS",E);if(null===q)break;M+=q+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 g,A,m=[];for(g=0;g<u;g++){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),_=!!(1&e[d+b]),w=new Uint8Array(6);for(_||(w[0]=255,w[1]=172),w[2]=v.height>>>24&255,w[3]=v.height>>16&255,w[4]=v.height>>8&255,w[5]=255&v.height,g=d,A=e.length;g<A;g++){for(var x=0;x<6&&w[x]===e[g+x];)x++;if(6===x){n.length=g+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 _(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 g=(0,i.readUint16)(c,u);if(u+=2,p.huffman=!!(1&g),p.refinement=!!(2&g),p.logStripSize=g>>2&3,p.stripSize=1<<p.logStripSize,p.referenceCorner=g>>4&3,p.transposed=!!(64&g),p.combinationOperator=g>>7&3,p.defaultPixelValue=g>>9&1,p.dsOffset=g<<17>>27,p.refinementTemplate=g>>15&1,p.huffman){var A=(0,i.readUint16)(c,u);u+=2,p.huffmanFS=3&A,p.huffmanDS=A>>2&3,p.huffmanDT=A>>4&3,p.huffmanRefinementDW=A>>6&3,p.huffmanRefinementDH=A>>8&3,p.huffmanRefinementDX=A>>10&3,p.huffmanRefinementDY=A>>12&3,p.huffmanRefinementSizeSelector=!!(16384&A)}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 x={};x.info=y(c,u),u+=b;const C=c[u++];x.mmr=!!(1&C),x.template=C>>1&3,x.enableSkip=!!(8&C),x.combinationOperator=C>>4&7,x.defaultPixelValue=C>>7&1,x.gridWidth=(0,i.readUint32)(c,u),u+=4,x.gridHeight=(0,i.readUint32)(c,u),u+=4,x.gridOffsetX=4294967295&(0,i.readUint32)(c,u),u+=4,x.gridOffsetY=4294967295&(0,i.readUint32)(c,u),u+=4,x.gridVectorX=(0,i.readUint16)(c,u),u+=2,x.gridVectorY=(0,i.readUint16)(c,u),u+=2,n=[x,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 _={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===_.height&&delete _.height;var w=c[u+16];(0,i.readUint16)(c,u+17),_.lossless=!!(1&w),_.refinement=!!(2&w),_.defaultPixelValue=w>>2&1,_.combinationOperator=w>>3&3,_.requiresBuffer=!!(32&w),_.combinationOperatorOverride=!!(64&w),n=[_];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 x="on"+l.typeName;x in t&&t[x].apply(t,n)}function w(e,t){for(var n=0,r=e.length;n<r;n++)_(e[n],t)}function x(){}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)}}x.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=T(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=T(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=T(1);o=e.aggregationInstancesSelector?I(l,t,n):T(1);return{tableDeltaHeight:r,tableDeltaWidth:i,tableBitmapSize:a,tableAggregateInstances:o}}(e,a,this.customTables),d=new B(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,_=(0,i.log2)(r.length+a),w=m.decoder,x=m.contextCache;let C,S;for(e&&(C=T(1),S=[],_=Math.max(_,1));y.length<a;){b+=e?c.tableDeltaHeight.decode(v):n(x,"IADH",w);let i=0,a=0;const o=e?S.length:0;for(;;){var k,E=e?c.tableDeltaWidth.decode(v):n(x,"IADW",w);if(null===E)break;if(a+=i+=E,t){var B=n(x,"IAAI",w);if(B>1)k=A(e,t,i,b,0,B,1,r.concat(y),_,0,0,1,0,c,d,f,m,0,v);else{var I=l(x,w,_),D=n(x,"IARDX",w),F=n(x,"IARDY",w);k=g(i,b,d,I<r.length?r[I]:y[I-r.length],D,F,!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=P(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(x,"IAEX",w);U--;)L.push(R);R=!R}for(var j=0,H=r.length;j<H;j++)L[j]&&O.push(r[j]);for(var z=0;z<a;j++,z++)L[j]&&O.push(y[z]);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 g=(0,i.log2)(d.length);e.huffman&&(u=new B(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=T(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=T(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=T(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=A(e.huffman,e.refinement,l.width,l.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,d,g,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,g,A,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,_;for(y=0;y<a;y++){if(_=new Uint8Array(r),o)for(b=0;b<r;b++)_[b]=o;v.push(_)}const w=t.length,x=t[0],C=x[0].length,S=x.length,k=(0,i.log2)(w),E=[];e||(E.push({x:n<=1?3:2,y:-1}),0===n&&(E.push({x:-3,y:-1}),E.push({x:2,y:-2}),E.push({x:-2,y:-2})));const T=[];let I,M,D,F,O,L,R,N,U,j,H;for(e&&(I=new B(m.data,m.start,m.end)),y=k-1;y>=0;y--)M=e?P(I,u,h,!0):p(!1,u,h,n,!1,null,E,m),T[y]=M;for(D=0;D<h;D++)for(F=0;F<u;F++){for(O=0,L=0,b=k-1;b>=0;b--)L|=(O=T[b][D][F]^O)<<b;if(R=t[L],U=f+D*g-F*A>>8,(N=d+D*A+F*g>>8)>=0&&N+C<=r&&U>=0&&U+S<=a)for(y=0;y<S;y++)for(H=v[U+y],j=R[y],b=0;b<C;b++)H[N+b]|=j[b];else{let e,t;for(y=0;y<S;y++)if(!((t=U+y)<0||t>=a))for(H=v[t],j=R[y],b=0;b<C;b++)(e=N+b)>=0&&e<r&&(H[e]|=j[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 B(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 E={};function T(e){let t,n=E[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),E[e]=n,n}function B(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 P(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 B.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 x,n=0,r=e.length;n<r;n++){var i=e[n];w(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;w(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 g(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 A(e,t,n){return 64*((e.blocksPerLine+1)*t+n)}function m(t,n,l,c,u,h,d,f,p,g=!1){var m=l.mcusPerLine,v=l.progressive;const y=n;let _=0,w=0;function x(){if(w>0)return _>>--w&1;if(255===(_=t[n++])){var e=t[n++];if(e){if(220===e&&g){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(g){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 ${(_<<8|e).toString(16)}`)}}return w=7,_>>>7}function C(e){for(var t=e;;){switch(typeof(t=t[x()])){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|x(),e--;return t}function k(e){if(1===e)return 1===x()?1:-1;var t=S(e);return t>=1<<e-1?t:t+(-1<<e)+1}var E=0;var T,B=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,A(e,I,o))}function P(e,t,n){I=n/e.blocksPerLine|0;var r=n%e.blocksPerLine;t(e,A(e,I,r))}var D,F,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]|=x()<<p}:0===f?function(t,n){if(E>0)E--;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){E=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(B){case 0:if(l=(i=C(t.huffmanTableAC))>>4,0==(r=15&i))l<15?(E=S(l)+(1<<l),B=4):(l=16,B=1);else{if(1!==r)throw new a("invalid ACn encoding");T=k(r),B=l?2:3}continue;case 1:case 2:t.blockData[s]?t.blockData[s]+=c*(x()<<p):0==--l&&(B=2===B?3:0);break;case 3:t.blockData[s]?t.blockData[s]+=c*(x()<<p):(t.blockData[s]=T<<p,B=0);break;case 4:t.blockData[s]&&(t.blockData[s]+=c*(x()<<p))}o++}4===B&&0==--E&&(B=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 j,H,z,Q,V=0;for(H=1===U?c[0].blocksPerLine*c[0].blocksPerColumn:m*l.mcusPerColumn;V<=H;){var G=u?Math.min(H-V,u):H;if(G>0){for(F=0;F<U;F++)c[F].pred=0;if(E=0,1===U)for(D=c[0],R=0;R<G;R++)P(D,N,V),V++;else for(R=0;R<G;R++){for(F=0;F<U;F++)for(z=(D=c[F]).h,Q=D.v,O=0;O<Q;O++)for(L=0;L<z;L++)M(D,N,V,O,L);V++}}if(w=0,!(j=b(t,n)))break;if(j.invalid){const e=G>0?"unexpected":"excessive";(0,r.warn)(`decodeScan - ${e} MCU data, current marker is: ${j.invalid}`),n=j.offset}if(!(j.marker>=65488&&j.marker<=65495))break;n+=2}return n-y}function v(e,r,i){var o,s,p,g,A,m,v,y,b,_,w,x,C,S,k,E,T,B=e.quantizationTable,I=e.blockData;if(!B)throw new a("missing required Quantization Table.");for(var M=0;M<64;M+=8)b=I[r+M],_=I[r+M+1],w=I[r+M+2],x=I[r+M+3],C=I[r+M+4],S=I[r+M+5],k=I[r+M+6],E=I[r+M+7],b*=B[M],0!=(_|w|x|C|S|k|E)?(_*=B[M+1],w*=B[M+2],x*=B[M+3],C*=B[M+4],S*=B[M+5],k*=B[M+6],E*=B[M+7],s=(o=(o=d*b+128>>8)+(s=d*C+128>>8)+1>>1)-s,T=(p=w)*h+(g=k)*u+128>>8,p=p*u-g*h+128>>8,v=(A=(A=f*(_-E)+128>>8)+(v=S<<4)+1>>1)-v,m=(y=(y=f*(_+E)+128>>8)+(m=x<<4)+1>>1)-m,g=(o=o+(g=T)+1>>1)-g,p=(s=s+p+1>>1)-p,T=A*c+y*l+2048>>12,A=A*l-y*c+2048>>12,y=T,T=m*n+v*t+2048>>12,m=m*t-v*n+2048>>12,v=T,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]=g+A,i[M+4]=g-A):(T=d*b+512>>10,i[M]=T,i[M+1]=T,i[M+2]=T,i[M+3]=T,i[M+4]=T,i[M+5]=T,i[M+6]=T,i[M+7]=T);for(var P=0;P<8;++P)b=i[P],0!=((_=i[P+8])|(w=i[P+16])|(x=i[P+24])|(C=i[P+32])|(S=i[P+40])|(k=i[P+48])|(E=i[P+56]))?(s=(o=4112+((o=d*b+2048>>12)+(s=d*C+2048>>12)+1>>1))-s,T=(p=w)*h+(g=k)*u+2048>>12,p=p*u-g*h+2048>>12,g=T,v=(A=(A=f*(_-E)+2048>>12)+(v=S)+1>>1)-v,m=(y=(y=f*(_+E)+2048>>12)+(m=x)+1>>1)-m,T=A*c+y*l+2048>>12,A=A*l-y*c+2048>>12,y=T,T=m*n+v*t+2048>>12,m=m*t-v*n+2048>>12,E=(o=o+g+1>>1)-y,_=(s=s+p+1>>1)+(v=T),k=s-v,w=(p=s-p)+m,S=p-m,x=(g=o-g)+A,C=g-A,(b=o+y)<16?b=0:b>=4080?b=255:b>>=4,_<16?_=0:_>=4080?_=255:_>>=4,w<16?w=0:w>=4080?w=255:w>>=4,x<16?x=0:x>=4080?x=255:x>>=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,E<16?E=0:E>=4080?E=255:E>>=4,I[r+P]=b,I[r+P+8]=_,I[r+P+16]=w,I[r+P+24]=x,I[r+P+32]=C,I[r+P+40]=S,I[r+P+48]=k,I[r+P+56]=E):(T=(T=d*b+8192>>14)<-2040?0:T>=2024?255:T+2056>>4,I[r+P]=T,I[r+P+8]=T,I[r+P+16]=T,I[r+P+24]=T,I[r+P+32]=T,I[r+P+40]=T,I[r+P+48]=T,I[r+P+56]=T)}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,A(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++){z=e.components[r];var i=Math.ceil(Math.ceil(e.samplesPerLine/8)*z.h/e.maxH),a=Math.ceil(Math.ceil(e.scanLines/8)*z.v/e.maxV),o=t*z.h,s=64*(n*z.v)*(o+1);z.blockData=new Int16Array(s),z.blocksPerLine=i,z.blocksPerColumn=a}e.mcusPerLine=t,e.mcusPerColumn=n}var u,h,d=0,f=null,p=null;let A=0;var v=[],_=[],w=[];let x=(0,i.readUint16)(t,d);if(d+=2,65496!==x)throw new a("SOI not found");x=(0,i.readUint16)(t,d),d+=2;e:for(;65497!==x;){var C,S,k;switch(x){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 E=l();65504===x&&74===E[0]&&70===E[1]&&73===E[2]&&70===E[3]&&0===E[4]&&(f={version:{major:E[5],minor:E[6]},densityUnits:E[7],xDensity:E[8]<<8|E[9],yDensity:E[10]<<8|E[11],thumbWidth:E[12],thumbHeight:E[13],thumbData:E.subarray(14,14+3*E[12]*E[13])}),65518===x&&65===E[0]&&100===E[1]&&111===E[2]&&98===E[3]&&101===E[4]&&(p={version:E[5]<<8|E[6],flags0:E[7]<<8|E[8],flags1:E[9]<<8|E[10],transformCode:E[11]});break;case 65499:for(var T=(0,i.readUint16)(t,d)+(d+=2)-2;d<T;){var B=t[d++],I=new Uint16Array(64);if(B>>4==0)for(S=0;S<64;S++)I[e[S]]=t[d++];else{if(B>>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&B]=I}break;case 65472:case 65473:case 65474:if(u)throw new a("Only single frame JPEGs supported");d+=2,(u={}).extended=65473===x,u.progressive=65474===x,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,P=t[d++],D=0,F=0;for(C=0;C<P;C++){M=t[d];var O=t[d+1]>>4,L=15&t[d+1];D<O&&(D=O),F<L&&(F=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=F,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),j=0;for(S=0;S<16;S++,d++)j+=U[S]=t[d];var H=new Uint8Array(j);for(S=0;S<j;S++,d++)H[S]=t[d];C+=17+j,(N>>4==0?w:_)[15&N]=g(U,H)}break;case 65501:d+=2,h=(0,i.readUint16)(t,d),d+=2;break;case 65498:const Z=1==++A&&!n;d+=2;var z,Q=t[d++],V=[];for(C=0;C<Q;C++){var G=u.componentIds[t[d++]];z=u.components[G];var q=t[d++];z.huffmanTableDC=w[q>>4],z.huffmanTableAC=_[15&q],V.push(z)}var W=t[d++],$=t[d++],K=t[d++];try{var Y=m(t,d,u,V,h,W,$,K>>4,15&K,Z);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 J=b(t,d-2,d-3);if(J&&J.invalid){(0,r.warn)("JpegImage.parse - unexpected data, current marker is: "+J.invalid),d=J.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: "+x.toString(16))}x=(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[(z=u.components[C]).quantizationId];X&&(z.quantizationTable=X),this.components.push({output:y(0,z),scaleX:z.h/u.maxH,scaleY:z.v/u.maxV,blocksPerLine:z.blocksPerLine,blocksPerColumn:z.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,g=this.height/t,A=0,m=this.components.length,v=e*t*m,y=new Uint8ClampedArray(v),b=new Uint32Array(e);let _;for(c=0;c<m;c++){if(i=(r=this.components[c]).scaleX*p,a=r.scaleY*g,A=c,f=r.output,o=r.blocksPerLine+1<<3,i!==_){for(s=0;s<e;s++)u=0|s*i,b[s]=(4294967288&u)<<3|7&u;_=i}for(l=0;l<t;l++)for(d=o*(4294967288&(u=0|l*a))|(7&u)<<3,s=0;s<e;s++)y[A]=f[d+b[s]],A+=m}let w=this._decodeTransform;if(n||4!==m||w||(w=new Int32Array([-256,255,-256,255,-256,255,-256,255])),w)for(c=0;c<v;)for(u=0,h=0;u<m;u++,c++,h+=2)y[c]=(y[c]*w[h]>>8)+w[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,g=t.resolution.precinctParameters,A=[],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)/g.precinctWidthInSubband)+Math.floor((a.tby0_-t.tby0)/g.precinctHeightInSubband)*g.numprecinctswide,a.precinctNumber=o,a.subbandType=t.type,a.Lblock=3,!(a.tbx1_<=a.tbx0_||a.tby1_<=a.tby0_)){A.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=A,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,g=1,A=c;A>=0;--A){var m=l.resolutions[A],v=g*m.precinctParameters.precinctWidth,y=g*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[A]={width:v,height:y},g<<=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,g=[],A=[],m=0;m<=p;m++){var v,y=l(0,s,m),b={},_=1<<p-m;if(b.trx0=Math.ceil(s.tcx0/_),b.try0=Math.ceil(s.tcy0/_),b.trx1=Math.ceil(s.tcx1/_),b.try1=Math.ceil(s.tcy1/_),b.resLevel=m,c(0,b,y),g.push(b),0===m)(v={}).type="LL",v.tbx0=Math.ceil(s.tcx0/_),v.tby0=Math.ceil(s.tcy0/_),v.tbx1=Math.ceil(s.tcx1/_),v.tby1=Math.ceil(s.tcy1/_),v.resolution=b,u(0,v,y),A.push(v),b.subbands=[v];else{var w=1<<p-m+1,x=[];(v={}).type="HL",v.tbx0=Math.ceil(s.tcx0/w-.5),v.tby0=Math.ceil(s.tcy0/w),v.tbx1=Math.ceil(s.tcx1/w-.5),v.tby1=Math.ceil(s.tcy1/w),v.resolution=b,u(0,v,y),A.push(v),x.push(v),(v={}).type="LH",v.tbx0=Math.ceil(s.tcx0/w),v.tby0=Math.ceil(s.tcy0/w-.5),v.tbx1=Math.ceil(s.tcx1/w),v.tby1=Math.ceil(s.tcy1/w-.5),v.resolution=b,u(0,v,y),A.push(v),x.push(v),(v={}).type="HH",v.tbx0=Math.ceil(s.tcx0/w-.5),v.tby0=Math.ceil(s.tcy0/w-.5),v.tbx1=Math.ceil(s.tcx1/w-.5),v.tby1=Math.ceil(s.tcy1/w-.5),v.resolution=b,u(0,v,y),A.push(v),x.push(v),b.subbands=x}}s.resolutions=g,s.subbands=A}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 g=l.components[r].resolutions;n<g.length&&(p=Math.max(p,g[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,g=0,A=0;this.nextPacket=function(){for(;A<l.maxNumHigh;A++){for(;g<l.maxNumWide;g++){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(g,A,f,l,n);if(null!==m){for(;c<i;){var v=h(n,m,c);return c++,v}c=0}}u=0}p=0}g=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,g=0;this.nextPacket=function(){for(;u<a;++u){for(var e=r.components[u],t=s.components[u],n=e.codingStyleParameters.decompositionLevelsCount;g<t.maxNumHigh;g++){for(;p<t.maxNumWide;p++){for(;c<=n;c++){var f=e.resolutions[c],A=t.resolutions[c],m=d(p,g,A,t,f);if(null!==m){for(;l<i;){var v=h(f,m,l);return l++,v}l=0}}c=0}p=0}g=0}throw new o("Out of packets")}}(e);break;default:throw new o(`Unsupported progression order ${C}`)}}function g(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,g=e.tiles[p],A=e.COD.sopMarkerUsed,m=e.COD.ephMarkerUsed,v=g.packetsIterator;o<r;){d(),A&&u(145)&&h(4);var _=v.nextPacket();if(c(1)){for(var w,x=_.layerNumber,C=[],S=0,k=_.codeblocks.length;S<k;S++){var E=(w=_.codeblocks[S]).precinct,T=w.cbx-E.cbxMin,B=w.cby-E.cbyMin,I=!1,M=!1;if(void 0!==w.included)I=!!c(1);else{var P,D;if(void 0!==(E=w.precinct).inclusionTree)P=E.inclusionTree;else{var F=E.cbxMax-E.cbxMin+1,O=E.cbyMax-E.cbyMin+1;P=new b(F,O,x),D=new y(F,O),E.inclusionTree=P,E.zeroBitPlanesTree=D}if(P.reset(T,B,x))for(;;){if(!c(1)){P.incrementValue(x);break}if(!P.nextLevel()){w.included=!0,I=M=!0;break}}}if(I){if(M){for((D=E.zeroBitPlanesTree).reset(T,B);;)if(c(1)){if(!D.nextLevel())break}else D.incrementValue();w.zeroBitPlanes=D.value}for(var L=f();c(1);)w.Lblock++;var R=(0,i.log2)(L),N=c((L<1<<R?R-1:R)+w.Lblock);C.push({codeblock:w,codingpasses:L,dataLength:N})}}for(d(),m&&u(146);C.length>0;){var U=C.shift();void 0===(w=U.codeblock).data&&(w.data=[]),w.data.push({data:t,start:n+o,end:n+o+U.dataLength,codingpasses:U.codingpasses}),o+=U.dataLength}}}return o}function A(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,g=0,A=d.length;g<A;++g){var m=d[g],v=m.tbx1_-m.tbx0_,y=m.tby1_-m.tby0_;if(0!==v&&0!==y&&void 0!==m.data){var b,w;b=new _(v,y,m.subbandType,m.zeroBitPlanes,o),w=2;var x,C,S,k=m.data,E=0,T=0;for(x=0,C=k.length;x<C;x++)E+=(S=k[x]).end-S.start,T+=S.codingpasses;var B=new Uint8Array(E),I=0;for(x=0,C=k.length;x<C;x++){var M=(S=k[x]).data.subarray(S.start,S.end);B.set(M,I),I+=M.length}var P=new a.ArithmeticDecoder(B,0,E);for(b.setDecoder(P),x=0;x<T;x++){switch(w){case 0:b.runSignificancePropagationPass();break;case 1:b.runMagnitudeRefinementPass();break;case 2:b.runCleanupPass(),l&&b.checkSegmentationSymbol()}w=(w+1)%3}var D,F,O,L=m.tbx0_-c+(m.tby0_-u)*h,R=b.coefficentsSign,N=b.coefficentsMagnitude,U=b.bitsDecoded,j=s?0:.5;I=0;var H="LL"!==r.type;for(x=0;x<y;x++){var z=2*(L/h|0)*(t-h)+f+p;for(D=0;D<v;D++){if(0!==(F=N[I])){F=(F+j)*i,0!==R[I]&&(F=-F),O=U[I];var Q=H?z+(L<<1):L;e[Q]=s&&O>=o?F:F*(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 x,g=[],m=0,v=0;v<=s;v++){for(var y=i.resolutions[v],b=y.trx1-y.trx0,_=y.try1-y.try0,w=new Float32Array(b*_),S=0,k=y.subbands.length;S<k;S++){var E,T;c?(E=l[m].mu,T=l[m].epsilon,m++):(E=l[0].mu,T=l[0].epsilon+(v>0?1-v:0));var B=y.subbands[S],I=e[B.type];A(w,b,0,B,f?1:2**(d+I-T)*(1+E/2048),u+T-1,f,h)}g.push({width:b,height:_,items:w})}var M=p.calculate(g,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,A,y,b,_,w=0;switch(h){case 65359:l.mainHeader=!0;break;case 65497:break;case 65361:w=(0,i.readUint16)(e,u);var x={};x.Xsiz=(0,i.readUint32)(e,u+4),x.Ysiz=(0,i.readUint32)(e,u+8),x.XOsiz=(0,i.readUint32)(e,u+12),x.YOsiz=(0,i.readUint32)(e,u+16),x.XTsiz=(0,i.readUint32)(e,u+20),x.YTsiz=(0,i.readUint32)(e,u+24),x.XTOsiz=(0,i.readUint32)(e,u+28),x.YTOsiz=(0,i.readUint32)(e,u+32);var C=(0,i.readUint16)(e,u+36);x.Csiz=C;var S=[];d=u+38;for(var k=0;k<C;k++){var E={precision:1+(127&e[d]),isSigned:!!(128&e[d]),XRsiz:e[d+1],YRsiz:e[d+2]};d+=3,n(E,x),S.push(E)}l.SIZ=x,l.components=S,s(l,S),l.QCC=[],l.COC=[];break;case 65372:w=(0,i.readUint16)(e,u);var T={};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(T.noQuantization=8===y,T.scalarExpounded=b,T.guardBits=f>>5,A=[];d<w+u;){var B={};8===y?(B.epsilon=e[d++]>>3,B.mu=0):(B.epsilon=e[d]>>3,B.mu=(7&e[d])<<8|e[d+1],d+=2),A.push(B)}T.SPqcds=A,l.mainHeader?l.QCD=T:(l.currentTile.QCD=T,l.currentTile.QCC=[]);break;case 65373:w=(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,A=[];d<w+u;)B={},8===y?(B.epsilon=e[d++]>>3,B.mu=0):(B.epsilon=e[d]>>3,B.mu=(7&e[d])<<8|e[d+1],d+=2),A.push(B);M.SPqcds=A,l.mainHeader?l.QCC[I]=M:l.currentTile.QCC[I]=M;break;case 65362:w=(0,i.readUint16)(e,u);var P={};d=u+2;var D=e[d++];P.entropyCoderWithCustomPrecincts=!!(1&D),P.sopMarkerUsed=!!(2&D),P.ephMarkerUsed=!!(4&D),P.progressionOrder=e[d++],P.layersCount=(0,i.readUint16)(e,d),d+=2,P.multipleComponentTransform=e[d++],P.decompositionLevelsCount=e[d++],P.xcb=2+(15&e[d++]),P.ycb=2+(15&e[d++]);var F=e[d++];if(P.selectiveArithmeticCodingBypass=!!(1&F),P.resetContextProbabilities=!!(2&F),P.terminationOnEachCodingPass=!!(4&F),P.verticallyStripe=!!(8&F),P.predictableTermination=!!(16&F),P.segmentationSymbolUsed=!!(32&F),P.reversibleTransformation=e[d++],P.entropyCoderWithCustomPrecincts){for(var O=[];d<w+u;){var L=e[d++];O.push({PPx:15&L,PPy:L>>4})}P.precinctsSizes=O}var R=[];if(P.selectiveArithmeticCodingBypass&&R.push("selectiveArithmeticCodingBypass"),P.resetContextProbabilities&&R.push("resetContextProbabilities"),P.terminationOnEachCodingPass&&R.push("terminationOnEachCodingPass"),P.verticallyStripe&&R.push("verticallyStripe"),P.predictableTermination&&R.push("predictableTermination"),R.length>0)throw c=!0,new Error("Unsupported COD options ("+R.join(", ")+")");l.mainHeader?l.COD=P:(l.currentTile.COD=P,l.currentTile.COC=[]);break;case 65424:w=(0,i.readUint16)(e,u),(_={}).index=(0,i.readUint16)(e,u+2),_.length=(0,i.readUint32)(e,u+4),_.dataEnd=_.length+u-2,_.partIndex=e[u+8],_.partsCount=e[u+9],l.mainHeader=!1,0===_.partIndex&&(_.COD=l.COD,_.COC=l.COC.slice(0),_.QCD=l.QCD,_.QCC=l.QCC.slice(0)),l.currentTile=_;break;case 65427:0===(_=l.currentTile).partIndex&&(v(l,_.index),p(l)),g(l,e,u,w=_.dataEnd-u);break;case 65365:case 65367:case 65368:case 65380:w=(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+=w}}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,g,A,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},_=0;if(l.codingStyleDefaultParameters.multipleComponentTransform){var w=4===r,x=c[0].items,C=c[1].items,S=c[2].items,k=w?c[3].items:null;u=n[0].precision-8,h=.5+(128<<u);var E=l.components[0],T=r-3;if(f=x.length,E.codingStyleParameters.reversibleTransformation)for(d=0;d<f;d++,_+=T){p=x[d]+h,g=C[d],A=S[d];const e=p-(A+g>>2);y[_++]=e+A>>u,y[_++]=e>>u,y[_++]=e+g>>u}else for(d=0;d<f;d++,_+=T)p=x[d]+h,g=C[d],A=S[d],y[_++]=p+1.402*A>>u,y[_++]=p-.34413*g-.71414*A>>u,y[_++]=p+1.772*g>>u;if(w)for(d=0,_=3;d<f;d++,_+=4)y[_]=k[d]+h>>u}else for(s=0;s<r;s++){var B=c[s].items;for(u=n[s].precision-8,h=.5+(128<<u),_=s,d=0,f=B.length;d<f;d++)y[_]=B[d]+h>>u,_+=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}(),_=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 g=l[a[d]];if(e.readBit(s,g)){var A=this.decodeSignBit(p,h,d);i[d]=A,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 g=t.readBit(o,p);i[f]=i[f]<<1|g,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 g=p*n,A=p+3<r,m=0;m<n;m++){var v,y=g+m,b=0,_=y,w=p;if(A&&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))&&(w=p+b,_+=b*n),v=this.decodeSignBit(w,m,_),o[_]=v,a[_]=1,this.setNeighborsSignificance(w,m,_),u[_]|=2,_=y;for(var x=p;x<=w;x++,_+=n)c[_]++;b++}for(w=p+b;w<e;w++,_+=n)if(!a[_]&&0==(1&u[_])){var C=l[i[_]];1===t.readBit(s,C)&&(v=this.decodeSignBit(w,m,_),o[_]=v,a[_]=1,this.setNeighborsSignificance(w,m,_),u[_]|=2),c[_]++}}}},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}(),w=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,g=t.items;for(o=0,i=0;i<h;i++)for(s=2*i*f,a=0;a<u;a++,o++,s+=2)g[s]=d[o];d=e.items=null;var A=new Float32Array(f+8);if(1===f){if(0!=(1&n))for(c=0,o=0;c<p;c++,o+=f)g[o]*=.5}else for(c=0,o=0;c<p;c++,o+=f)A.set(g.subarray(o,o+f),4),this.extend(A,4,f),this.filter(A,4,f),g.set(A.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++)g[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]=g[o+y];b=m}var _=v[--b];if(this.extend(_,4,p),this.filter(_,4,p),0===b)for(o=l-m+1,s=4;s<e;o+=f,s++)for(y=0;y<m;y++)g[o+y]=v[y][s]}return{width:f,height:p,items:g}},e}(),x=function(){function e(){w.call(this)}return e.prototype=Object.create(w.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(){w.call(this)}return e.prototype=Object.create(w.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 g,A,m=l,v=c,y=u,b=h;for(o=0;o<64;++o){o<16?(g=v&y|~v&b,A=o):o<32?(g=b&v|~b&y,A=5*o+1&15):o<48?(g=v^y^b,A=3*o+5&15):(g=y^(v|~b),A=7*o&15);var _=b,w=m+g+t[o]+p[A]|0,x=e[o];b=y,y=v,v=v+(w<<x|w>>>32-x)|0,m=_}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,g=1013904242,A=2773480762,m=1359893119,v=2600822924,y=528734635,b=1541459225,_=64*Math.ceil((c+9)/64),w=new Uint8Array(_);for(u=0;u<c;++u)w[u]=s[l++];for(w[u++]=128,d=_-8;u<d;)w[u++]=0;w[u++]=0,w[u++]=0,w[u++]=0,w[u++]=c>>>29&255,w[u++]=c>>21&255,w[u++]=c>>13&255,w[u++]=c>>5&255,w[u++]=c<<3&255;var x,C=new Uint32Array(64);for(u=0;u<_;){for(h=0;h<16;++h)C[h]=w[u]<<24|w[u+1]<<16|w[u+2]<<8|w[u+3],u+=4;for(h=16;h<64;++h)C[h]=0|(e(x=C[h-2],17)^e(x,19)^x>>>10)+C[h-7]+a(C[h-15])+C[h-16];var S,k,E=f,T=p,B=g,I=A,M=m,P=v,D=y,F=b;for(h=0;h<64;++h)S=F+i(M)+t(M,P,D)+o[h]+C[h],k=r(E)+n(E,T,B),F=D,D=P,P=M,M=I+S|0,I=B,B=T,T=E,E=S+k|0;f=f+E|0,p=p+T|0,g=g+B|0,A=A+I|0,m=m+M|0,v=v+P|0,y=y+D|0,b=b+F|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,g>>24&255,g>>16&255,g>>8&255,255&g,A>>24&255,A>>16&255,A>>8&255,255&A,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,g,A,m,v,y;(h=!!h)?(d=new l(3418070365,3238371032),f=new l(1654270250,914150663),p=new l(2438529370,812702999),g=new l(355462360,4144912697),A=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),g=new l(2773480762,1595750129),A=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(x);for(b=0;b<u;++b)C[b]=s[c++];for(C[b++]=128,w=x-16;b<w;)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,E,T=new l(0,0),B=new l(0,0),I=new l(0,0),M=new l(0,0),P=new l(0,0),D=new l(0,0),F=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<x;){for(_=0;_<16;++_)S[_].high=C[b]<<24|C[b+1]<<16|C[b+2]<<8|C[b+3],S[_].low=C[b+4]<<24|C[b+5]<<16|C[b+6]<<8|C[b+7],b+=8;for(_=16;_<80;++_)a(k=S[_],S[_-2],U),k.add(S[_-7]),i(N,S[_-15],U),k.add(N),k.add(S[_-16]);for(T.assign(d),B.assign(f),I.assign(p),M.assign(g),P.assign(A),D.assign(m),F.assign(v),O.assign(y),_=0;_<80;++_)L.assign(O),r(N,P,U),L.add(N),e(N,P,D,F,U),L.add(N),L.add(o[_]),L.add(S[_]),n(R,T,U),t(N,T,B,I,U),R.add(N),k=O,O=F,F=D,D=P,M.add(L),P=M,M=I,I=B,B=T,k.assign(L),k.add(R),T=k;d.add(T),f.add(B),p.add(I),g.add(M),A.add(P),m.add(D),v.add(F),y.add(O)}return h?(E=new Uint8Array(48),d.copyTo(E,0),f.copyTo(E,8),p.copyTo(E,16),g.copyTo(E,24),A.copyTo(E,32),m.copyTo(E,40)):(E=new Uint8Array(64),d.copyTo(E,0),f.copyTo(E,8),p.copyTo(E,16),g.copyTo(E,24),A.copyTo(E,32),m.copyTo(E,40),v.copyTo(E,48),y.copyTo(E,56)),E}}();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 g 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=g;var A=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 g(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 g(i).decryptBlock(n,!1,new Uint8Array(16))}},t}();t.PDF17=A;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,g=0;f<64;f++,g+=s)l.set(d,g);a=new p(i.subarray(0,16)).encrypt(l,i.subarray(16,32));for(var A=0,m=0;m<16;m++)A*=1,A%=3,A+=(a[m]>>>0)%3,A%=3;0===A?i=c(a,0,a.length):1===A?i=h(a,0,a.length):2===A&&(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 g(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 g(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),g=0;if(n)for(d=Math.min(32,n.length);g<d;++g)p[g]=n[g];for(h=0;g<32;)p[g++]=e[h++];for(h=0,d=r.length;h<d;++h)p[g++]=r[h];for(p[g++]=255&a,p[g++]=a>>8&255,p[g++]=a>>16&255,p[g++]=a>>>24&255,h=0,d=t.length;h<d;++h)p[g++]=t[h];l>=4&&!u&&(p[g++]=255,p[g++]=255,p[g++]=255,p[g++]=255);var A=s(p,0,g),m=c>>3;if(l>=3)for(h=0;h<50;++h)A=s(A,0,m);var v,y=A.subarray(0,m);if(l>=3){for(g=0;g<32;++g)p[g]=e[g];for(h=0,d=t.length;h<d;++h)p[g++]=t[h];v=new o(y).encryptBlock(s(p,0,g)),d=y.length;var b,_=new Uint8Array(d);for(h=1;h<=19;++h){for(b=0;b<d;++b)_[b]=y[b]^h;v=new o(_).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 g=f.get(p.name);(d=g&&g.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"),_=a.get("R"),w=(4===h||5===h)&&!1!==a.get("EncryptMetadata");this.encryptMetadata=w;var x,C,S=(0,r.stringToBytes)(l);if(c){if(6===_)try{c=(0,r.utf8StringToString)(c)}catch(e){(0,r.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}x=(0,r.stringToBytes)(c)}if(5!==h)C=t(S,x,v,y,b,_,d,w);else{var k=(0,r.stringToBytes)(a.get("O")).subarray(32,40),E=(0,r.stringToBytes)(a.get("O")).subarray(40,48),T=(0,r.stringToBytes)(a.get("U")).subarray(0,48),B=(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")),P=(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 A).checkUserPassword(t,s,o)?f.getUserKey(t,l,u):t.length&&f.checkOwnerPassword(t,r,a,n)?f.getOwnerKey(t,i,a,c):null}(_,x,v,k,E,T,y,B,I,M,P)}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,g=new Uint8Array(f);for(a=19;a>=0;a--){for(p=0;p<f;++p)g[p]=d[p]^a;h=new o(g).encryptBlock(h)}}else h=new o(d.subarray(0,f)).encryptBlock(n);return h}(x,v,_,d),v,y,b,_,d,w)),!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 g(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],g=e[2],A=e[3];return new l(this.fromIR(h),g,A);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 g=this.parseToIR(e[1],t,n,a),A=t.fetchIfRef(e[2])+1;let m=t.fetchIfRef(e[3]);return(0,i.isStream)(m)&&(m=m.getBytes()),["IndexedCS",g,A,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),g=this.numComps,A=new Float32Array(g),m=new Float32Array(u);let v,y;for(v=0;v<n;v++){for(y=0;y<g;y++)A[y]=e[t++]*c;if(s(A,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,g,A){const m=d(0,1,a[c]*A),v=d(0,1,a[c+1]*A),y=d(0,1,a[c+2]*A),b=m**r.GR,_=v**r.GG,w=y**r.GB,x=r.MXA*b+r.MXB*_+r.MXC*w,C=r.MYA*b+r.MYB*_+r.MYC*w,S=r.MZA*b+r.MZB*_+r.MZC*w,k=s;k[0]=x,k[1]=C,k[2]=S;const E=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,E);const T=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,E,T);const B=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,T,B);const I=s;u(n,B,I),p[g]=255*h(I[0]),p[g+1]=255*h(I[1]),p[g+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),g=n.YW*e(h),A=n.ZW*e(f);let m,v,y;n.ZW<1?(m=3.1339*p+-1.617*g+-.4906*A,v=-.9785*p+1.916*g+.0333*A,y=.072*p+-.229*g+1.4057*A):(m=3.2406*p+-1.5372*g+-.4986*A,v=-.9689*p+1.8758*g+.0415*A,y=.0557*p+-.204*g+1.057*A),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 g(u);case"Btn":return new A(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 _(u);case"Line":return new w(u);case"Square":return new x(u);case"Circle":return new C(u);case"PolyLine":return new S(u);case"Polygon":return new k(u);case"Caret":return new E(u);case"Ink":return new T(u);case"Highlight":return new B(u);case"Underline":return new I(u);case"Squiggly":return new M(u);case"StrikeOut":return new P(u);case"Stamp":return new D(u);case"FileAttachment":return new F(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 g 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 A 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 _ extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.FREETEXT}}class w extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.LINE,this.data.lineCoordinates=r.Util.normalizeRect(e.dict.getArray("L"))}}class x 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 E extends f{constructor(e){super(e),this.data.annotationType=r.AnnotationType.CARET}}class T 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 B 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 P 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 F 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,g=1;for(u=0;u<c;u++){var A=i[s+(u<<2)],m=i[l+(u<<2)][0];p+m.width>1e3&&(h=Math.max(h,p),g+=f+2,p=0,f=0),d.push({transform:A,x:p,y:g,w:m.width,h:m.height}),p+=m.width+2,f=Math.max(f,m.height)}var v=Math.max(h,p)+1,y=g+f+1,b=new Uint8ClampedArray(v*y*4),_=v<<2;for(u=0;u<c;u++){var w=i[l+(u<<2)][0].data,x=d[u].w<<2,C=0,S=d[u].x+d[u].y*v<<2;b.set(w.subarray(0,x),S-_);for(var k=0,E=d[u].h;k<E;k++)b.set(w.subarray(C,C+x),S),C+=x,S+=_;for(b.set(w.subarray(C-x,C),S);S>=0;)w[S-4]=w[S],w[S-3]=w[S+1],w[S-2]=w[S+2],w[S-1]=w[S+3],w[S+x]=w[S+x-4],w[S+x+1]=w[S+x-3],w[S+x+2]=w[S+x-2],w[S+x+3]=w[S+x-1],S-=_}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 g=a[l][0],A=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]!==g||0!==d[1]||0!==d[2]||d[3]!==A){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,g,A,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 g=i[f];d[p<<1]=g[4],d[1+(p<<1)]=g[5]}var A=[l,c,u,d];return n.splice(o,4*h,r.OPS.paintImageXObjectRepeat),i.splice(o,4*h,A),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,g=1;g<d;g++)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),g=n(12),A=n(33),m=n(40),v=n(41),y=n(24),b=n(43),_=n(26),w=n(44),x=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 x=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"),g=null;(0,a.isName)(f,"Transparency")&&(d.isolated=h.get("I")||!1,d.knockout=h.get("K")||!1,h.has("CS")&&(g=await this.parseColorSpace({cs:h.get("CS"),resources:e}))),n&&n.backdrop&&(g=g||p.ColorSpace.singletons.rgb,n.backdrop=g.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"),A=s.get("Height","H"),m=p+7>>3,v=t.getBytes(m*A,!0),y=s.getArray("Decode","D");return(h=w.PDFImage.createMask({imgArray:v,width:p,height:A,imageIsFromDecodeStream:t instanceof g.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,_=s.get("Mask")||!1;if(n&&!b&&!_&&c+u<200){const a=new w.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 x=`img_${this.idFactory.createObjId()}`,C=!1;this.parsingType3Font?x=`${this.idFactory.getDocId()}_type3res_${x}`:l&&(C=this.globalImageCache.shouldCache(l,this.pageIndex))&&(x=`${this.idFactory.getDocId()}_${x}`),i.addDependency(x),d=[x,c,u];const S=w.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",[x,"FontType3Res",h],[h.data.buffer]);C?this.handler.send("commonobj",[x,"Image",h],[h.data.buffer]):this.handler.send("obj",[x,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",[x,"FontType3Res",null]);C?this.handler.send("commonobj",[x,"Image",null]):this.handler.send("obj",[x,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:x,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 _.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 g,A,m=(0,a.isRef)(l);if(m&&(g=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),g=v[p].fontID}m?this.fontCache.put(l,h.promise):(g||(g=this.idFactory.createObjId()),this.fontCache.put(`id_${g}`,h.promise)),(0,r.assert)(g,'The "fontID" must be defined.'),n.loadedName=`${this.idFactory.getDocId()}_f${g}`,n.translated=h.promise;try{A=this.translateFont(d)}catch(e){A=Promise.reject(e)}return A.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 g=d.get("Shading"),A=d.getArray("Matrix");return c=h.Pattern.parseShading(g,A,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 E,!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,g=i.get("Pattern")||a.Dict.empty,A=new S(s),m=new T(e,c,A),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,C,S,k={};!(_=v.check())&&(k.args=null,m.read(k));){var E=k.args,T=k.fn;switch(0|T){case r.OPS.paintXObject:var B=E[0].name;if(B){const e=d.getByName(B);if(e){o.addOp(e.fn,e.args),E=null;continue}}return void y(new Promise(function(e,n){if(!B)throw new r.FormatError("XObject must be referred to by name.");let s=f.getRaw(B);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(T,E),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 A.save(),void l.buildFormXObject(i,s,null,o,t,A.state.clone()).then(function(){A.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:B,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=E[1];return void y(l.handleSetFont(i,E,null,o,t,A.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=E[0].cacheKey;if(M){const e=d.getByName(M);if(e){o.addOp(e.fn,e.args),E=null;continue}}return void y(l.buildPaintImageXObject({resources:i,image:E[0],isInline:!0,operatorList:o,cacheKey:M,localImageCache:d}));case r.OPS.showText:if(!A.state.font){l.ensureStateFont(A.state);continue}E[0]=l.handleText(E[0],A.state);break;case r.OPS.showSpacedText:if(!A.state.font){l.ensureStateFont(A.state);continue}var P=E[0],D=[],F=P.length,O=A.state;for(w=0;w<F;++w){var L=P[w];(0,r.isString)(L)?Array.prototype.push.apply(D,l.handleText(L,O)):(0,r.isNum)(L)&&D.push(L)}E[0]=D,T=r.OPS.showText;break;case r.OPS.nextLineShowText:if(!A.state.font){l.ensureStateFont(A.state);continue}o.addOp(r.OPS.nextLine),E[0]=l.handleText(E[0],A.state),T=r.OPS.showText;break;case r.OPS.nextLineSetSpacingShowText:if(!A.state.font){l.ensureStateFont(A.state);continue}o.addOp(r.OPS.nextLine),o.addOp(r.OPS.setWordSpacing,[E.shift()]),o.addOp(r.OPS.setCharSpacing,[E.shift()]),E[0]=l.handleText(E[0],A.state),T=r.OPS.showText;break;case r.OPS.setTextRenderingMode:A.state.textRenderingMode=E[0];break;case r.OPS.setFillColorSpace:return void y(l.parseColorSpace({cs:E[0],resources:i}).then(function(e){e&&(A.state.fillColorSpace=e)}));case r.OPS.setStrokeColorSpace:return void y(l.parseColorSpace({cs:E[0],resources:i}).then(function(e){e&&(A.state.strokeColorSpace=e)}));case r.OPS.setFillColor:S=A.state.fillColorSpace,E=S.getRgb(E,0),T=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeColor:S=A.state.strokeColorSpace,E=S.getRgb(E,0),T=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillGray:A.state.fillColorSpace=p.ColorSpace.singletons.gray,E=p.ColorSpace.singletons.gray.getRgb(E,0),T=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeGray:A.state.strokeColorSpace=p.ColorSpace.singletons.gray,E=p.ColorSpace.singletons.gray.getRgb(E,0),T=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillCMYKColor:A.state.fillColorSpace=p.ColorSpace.singletons.cmyk,E=p.ColorSpace.singletons.cmyk.getRgb(E,0),T=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeCMYKColor:A.state.strokeColorSpace=p.ColorSpace.singletons.cmyk,E=p.ColorSpace.singletons.cmyk.getRgb(E,0),T=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillRGBColor:A.state.fillColorSpace=p.ColorSpace.singletons.rgb,E=p.ColorSpace.singletons.rgb.getRgb(E,0);break;case r.OPS.setStrokeRGBColor:A.state.strokeColorSpace=p.ColorSpace.singletons.rgb,E=p.ColorSpace.singletons.rgb.getRgb(E,0);break;case r.OPS.setFillColorN:if("Pattern"===(S=A.state.fillColorSpace).name)return void y(l.handleColorN(o,r.OPS.setFillColorN,E,S,g,i,t));E=S.getRgb(E,0),T=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeColorN:if("Pattern"===(S=A.state.strokeColorSpace).name)return void y(l.handleColorN(o,r.OPS.setStrokeColorN,E,S,g,i,t));E=S.getRgb(E,0),T=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(E[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();E=[U],T=r.OPS.shadingFill;break;case r.OPS.setGState:var j=E[0],H=i.get("ExtGState");if(!(0,a.isDict)(H)||!H.has(j.name))break;var z=H.get(j.name);return void y(l.setGState(i,z,o,t,A));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,T,E,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!==E){for(w=0,C=E.length;w<C&&!(E[w]instanceof a.Dict);w++);if(w<C){(0,r.warn)("getOperatorList - ignoring operator: "+T);continue}}}o.addOp(T,E)}_?y(x):(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)},g={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},A=.3,m=1.5,v=4,b=this,_=this.xref,w=null;const C=new y.LocalImageCache;var E,B=new T(e,_,o);function I(){if(g.initialized)return g;var e=E.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}),g.fontName=e.loadedName;var t=[E.fontSize*E.textHScale,0,0,E.fontSize,0,E.textRise];if(e.isType3Font&&E.fontSize<=1&&!(0,r.isArrayEqual)(E.fontMatrix,r.FONT_IDENTITY_MATRIX)){const n=e.bbox[3]-e.bbox[1];n>0&&(t[3]*=n*E.fontMatrix[3])}var n=r.Util.transform(E.ctm,r.Util.transform(E.textMatrix,t));g.transform=n,e.vertical?(g.width=Math.sqrt(n[0]*n[0]+n[1]*n[1]),g.height=0,g.vertical=!0):(g.width=0,g.height=Math.sqrt(n[2]*n[2]+n[3]*n[3]),g.vertical=!1);var i=E.textLineMatrix[0],a=E.textLineMatrix[1],o=Math.sqrt(i*i+a*a);i=E.ctm[0],a=E.ctm[1];var s=Math.sqrt(i*i+a*a);g.textAdvanceScale=s*o,g.lastAdvanceWidth=0,g.lastAdvanceHeight=0;var l=e.spaceWidth/1e3*E.fontSize;return l?(g.spaceWidth=l,g.fakeSpaceMin=l*A,g.fakeMultiSpaceMin=l*m,g.fakeMultiSpaceMax=l*v,g.textRunBreakAllowed=!e.isMonospace):(g.spaceWidth=0,g.fakeSpaceMin=1/0,g.fakeMultiSpaceMin=1/0,g.fakeMultiSpaceMax=0,g.textRunBreakAllowed=!1),g.initialized=!0,g}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 P(e,t){return b.loadFont(e,t,i).then(function(e){E.font=e.font,E.fontMatrix=e.font.fontMatrix||r.FONT_IDENTITY_MATRIX})}function D(e){for(var t=E.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=E.charSpacing;if(s.isSpace){var f=E.wordSpacing;d+=f,f>0&&F(f,n.str)}var p=0,g=0;if(t.vertical)i+=g=l*E.fontMatrix[0]*E.fontSize+d;else r+=p=(l*E.fontMatrix[0]*E.fontSize+d)*E.textHScale;E.translateTextMatrix(p,g),n.str.push(u)}return t.vertical?(n.lastAdvanceHeight=i,n.height+=Math.abs(i)):(n.lastAdvanceWidth=r,n.width+=r),n}function F(e,t){if(!(e<g.fakeSpaceMin))if(e<g.fakeMultiSpaceMin)t.push(" ");else for(var n=Math.round(e/g.spaceWidth);n-- >0;)t.push(" ")}function O(){g.initialized&&(g.vertical?g.height*=g.textAdvanceScale:g.width*=g.textAdvanceScale,p.items.push(M(g)),g.initialized=!1,g.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,A={},m=[];!(f=R.check())&&(m.length=0,A.args=m,B.read(A));){E=o.state;var v,y=A.fn;switch(m=A.args,0|y){case r.OPS.setFont:var k=m[0].name,T=m[1];if(E.font&&k===E.fontName&&T===E.fontSize)break;return O(),E.fontName=k,E.fontSize=T,void d(P(k,null));case r.OPS.setTextRise:O(),E.textRise=m[0];break;case r.OPS.setHScale:O(),E.textHScale=m[0]/100;break;case r.OPS.setLeading:O(),E.leading=m[0];break;case r.OPS.moveText:var M=!!E.font&&0===(E.font.vertical?m[0]:m[1]);if(v=m[0]-m[1],l&&M&&g.initialized&&v>0&&v<=g.fakeMultiSpaceMax){E.translateTextLineMatrix(m[0],m[1]),g.width+=m[0]-g.lastAdvanceWidth,g.height+=m[1]-g.lastAdvanceHeight,F(m[0]-g.lastAdvanceWidth-(m[1]-g.lastAdvanceHeight),g.str);break}O(),E.translateTextLineMatrix(m[0],m[1]),E.textMatrix=E.textLineMatrix.slice();break;case r.OPS.setLeadingMoveText:O(),E.leading=-m[1],E.translateTextLineMatrix(m[0],m[1]),E.textMatrix=E.textLineMatrix.slice();break;case r.OPS.nextLine:O(),E.carriageReturn();break;case r.OPS.setTextMatrix:if(v=E.calcTextLineMatrixAdvance(m[0],m[1],m[2],m[3],m[4],m[5]),l&&null!==v&&g.initialized&&v.value>0&&v.value<=g.fakeMultiSpaceMax){E.translateTextLineMatrix(v.width,v.height),g.width+=v.width-g.lastAdvanceWidth,g.height+=v.height-g.lastAdvanceHeight,F(v.width-g.lastAdvanceWidth-(v.height-g.lastAdvanceHeight),g.str);break}O(),E.setTextMatrix(m[0],m[1],m[2],m[3],m[4],m[5]),E.setTextLineMatrix(m[0],m[1],m[2],m[3],m[4],m[5]);break;case r.OPS.setCharSpacing:E.charSpacing=m[0];break;case r.OPS.setWordSpacing:E.wordSpacing=m[0];break;case r.OPS.beginText:O(),E.textMatrix=r.IDENTITY_MATRIX.slice(),E.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],j=0,H=U.length;j<H;j++)if("string"==typeof U[j])D(U[j]);else if((0,r.isNum)(U[j])){I(),v=U[j]*E.fontSize/1e3;var z=!1;E.font.vertical?(N=v,E.translateTextMatrix(0,N),(z=g.textRunBreakAllowed&&v>g.fakeMultiSpaceMax)||(g.height+=N)):(N=(v=-v)*E.textHScale,E.translateTextMatrix(N,0),(z=g.textRunBreakAllowed&&v>g.fakeMultiSpaceMax)||(g.width+=N)),z?O():v>0&&F(v,g.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(),E.carriageReturn(),D(m[0]);break;case r.OPS.nextLineSetSpacingShowText:if(!o.state.font){b.ensureStateFont(o.state);continue}O(),E.wordSpacing=m[0],E.charSpacing=m[1],E.carriageReturn(),D(m[2]);break;case r.OPS.paintXObject:O(),w||(w=i.get("XObject")||a.Dict.empty);var Q=m[0].name;if(Q&&C.getByName(Q))break;return void d(new Promise(function(e,n){if(!Q)throw new r.FormatError("XObject must be referred to by name.");let c=w.getRaw(Q);if(c instanceof a.Ref){if(C.getByRef(c))return void e();c=_.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(Q,c.dict.objId,!0),void e();const f=o.state.clone(),p=new S(f),g=c.dict.getArray("Matrix");Array.isArray(g)&&6===g.length&&p.transform(g),L();const A={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:A,seenStyles:h}).then(function(){A.enqueueInvoked||C.set(Q,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 q=G.get(V.name);if(!(0,a.isDict)(q))break;var W=q.get("Font");if(W)return E.fontName=null,E.fontSize=W[1],void d(P(null,W[0]))}if(p.items.length>=u.desiredSize){f=!0;break}}f?d(x):(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=[],g=null;if(e.has("Encoding")){if(f=e.get("Encoding"),(0,a.isDict)(f)){if(g=f.get("BaseEncoding"),g=(0,a.isName)(g)?g.name:null,f.has("Differences"))for(var A=f.get("Differences"),m=0,v=0,y=A.length;v<y;v++){var b=i.fetchIfRef(A[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");g=f.name}"MacRomanEncoding"!==g&&"MacExpertEncoding"!==g&&"WinAnsiEncoding"!==g&&(g=null)}if(g)n.defaultEncoding=(0,s.getEncoding)(g).slice();else{var _=!!(n.flags&o.FontFlags.Symbolic),w=!!(n.flags&o.FontFlags.Nonsymbolic);f=s.StandardEncoding,"TrueType"!==n.type||w||(f=s.WinAnsiEncoding),_&&(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=g,n.hasEncoding=!!g||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,A.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=[],g=0,A=[];if(n.composite){if(g=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*g,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++)A[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++)A[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]);g=parseFloat(t.get("MissingWidth"))||0}else{var _=e.get("BaseFont");if((0,a.isName)(_)){var w=this.getBaseFontMetrics(_.name);p=this.buildCharCodeToWidth(w.widths,n),g=w.defaultWidth}}}var x=!0,C=g;for(var S in p){var k=p[S];if(k)if(C){if(C!==k){x=!1;break}}else C=k}x&&(n.flags|=o.FontFlags.FixedPitch),n.defaultWidth=g,n.widths=p,n.defaultVMetrics=r,n.vmetrics=A},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 g=p.length,A=new Array(g),m=0;m<g;m++){var v=p[m];(0,a.isName)(v)?A[m]=v.name:((0,r.isNum)(v)||(0,a.isRef)(v))&&(A[m]=v.toString())}c.update(A.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 _=y.str||y;i=_.buffer?new Uint8Array(_.buffer.buffer,0,_.bufferLength):new Uint8Array(_.bytes.buffer,_.start,_.end-_.start),c.update(i)}else(0,a.isName)(y)&&c.update(y.name);var w=e.get("Widths")||t.get("Widths");w&&(i=new Uint8Array(new Uint32Array(w).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 g=s.get("BaseFont");if(!(0,a.isName)(g))throw new r.FormatError("Base font is not specified");g=g.name.replace(/[,_]/g,"-");var A=this.getBaseFontMetrics(g),m=g.split("-")[0],v=(this.isSerifFont(m)?o.FontFlags.Serif:0)|(A.monospace?o.FontFlags.FixedPitch:0)|((0,u.getSymbolsFonts)()[m]?o.FontFlags.Symbolic:o.FontFlags.Nonsymbolic);t={type:h,name:g,widths:A.widths,defaultWidth:A.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(A.widths,t);return new o.Font(g,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 _=y&&y.name,w=b&&b.name;_!==w&&((0,r.info)(`The FontDescriptor's FontName is "${_}" but `+`should be the same as the Font's BaseFont "${w}".`),_&&w&&w.startsWith(_)&&(y=b))}if(y=y||b,!(0,a.isName)(y))throw new r.FormatError("invalid font name");var x,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"),E=C.dict.get("Length2"),T=C.dict.get("Length3")}if(t={type:h,name:y.name,subtype:S,file:C,length1:k,length2:E,length3:T,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 B=n.get("Encoding");(0,a.isName)(B)&&(t.cidEncoding=B.name),x=i.CMapFactory.create({encoding:B,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){t.cMap=e,t.vertical=t.cMap.vertical})}else x=Promise.resolve(void 0);return x.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=x;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;x.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 _.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 _.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}(),E=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}(),T=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,g=null,A=new Uint8Array(a),m=new Uint8Array(a),v=new Uint8Array(a),y=new Uint8Array(a),b=new Uint8Array(a);(p=h.readByte())>=0;){var _=p>>5;if(7!==_){var w=!!(16&p),x=15&p;if(x+1>a)throw new Error("processBinaryCMap: Invalid dataSize.");var C,S=h.readNumber();switch(_){case 0:for(h.readHex(A,x),h.readHexNumber(m,x),n(m,A,x),o.addCodespaceRange(x+1,e(A,x),e(m,x)),C=1;C<S;C++)i(m,x),h.readHexNumber(A,x),n(A,m,x),h.readHexNumber(m,x),n(m,A,x),o.addCodespaceRange(x+1,e(A,x),e(m,x));break;case 1:for(h.readHex(A,x),h.readHexNumber(m,x),n(m,A,x),h.readNumber(),C=1;C<S;C++)i(m,x),h.readHexNumber(A,x),n(A,m,x),h.readHexNumber(m,x),n(m,A,x),h.readNumber();break;case 2:for(h.readHex(v,x),f=h.readNumber(),o.mapOne(e(v,x),f),C=1;C<S;C++)i(v,x),w||(h.readHexNumber(b,x),n(v,b,x)),f=h.readSigned()+(f+1),o.mapOne(e(v,x),f);break;case 3:for(h.readHex(A,x),h.readHexNumber(m,x),n(m,A,x),f=h.readNumber(),o.mapCidRange(e(A,x),e(m,x),f),C=1;C<S;C++)i(m,x),w?A.set(m):(h.readHexNumber(A,x),n(A,m,x)),h.readHexNumber(m,x),n(m,A,x),f=h.readNumber(),o.mapCidRange(e(A,x),e(m,x),f);break;case 4:for(h.readHex(v,1),h.readHex(y,x),o.mapOne(e(v,1),t(y,x)),C=1;C<S;C++)i(v,1),w||(h.readHexNumber(b,1),n(v,b,1)),i(y,x),h.readHexSigned(b,x),n(y,b,x),o.mapOne(e(v,1),t(y,x));break;case 5:for(h.readHex(A,1),h.readHexNumber(m,1),n(m,A,1),h.readHex(y,x),o.mapBfRange(e(A,1),e(m,1),t(y,x)),C=1;C<S;C++)i(m,1),w?A.set(m):(h.readHexNumber(A,1),n(A,m,1)),h.readHexNumber(m,1),n(m,A,1),h.readHex(y,x),o.mapBfRange(e(A,1),e(m,1),t(y,x));break;default:return void u(new Error("processBinaryCMap: Unknown type: "+_))}}else switch(31&p){case 0:h.readString();break;case 1:g=h.readString()}}c(g?l(g):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 g(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 A(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":A(e,t);break;case"beginbfchar":c(e,t);break;case"begincidchar":p(e,t);break;case"beginbfrange":f(e,t);break;case"begincidrange":g(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 _(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 _(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 _(t.name,n);if((0,i.isStream)(t))return y(new u,new a.Lexer(t),n,r).then(function(e){return e.isIdentityCMap?_(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=w,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 g=1e3,A=!0;t.SEAC_ANALYSIS_ENABLED=A;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 _(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 w(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 x(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 E=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,g=12+16*p,A=[g];for(l=0;l<p;l++){g+=((d=o[s[l]]).length+3&-4)>>>0,A.push(g)}var m=new Uint8Array(g);for(l=0;l<p;l++)d=o[s[l]],n(m,A[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),g=12,l=0;l<p;l++){f=s[l],m[g]=255&f.charCodeAt(0),m[g+1]=255&f.charCodeAt(1),m[g+2]=255&f.charCodeAt(2),m[g+3]=255&f.charCodeAt(3);var y=0;for(u=A[l],h=A[l+1];u<h;u+=4){y=y+(0,c.readUint32)(m,u)>>>0}t(m,g+4,y),t(m,g+8,A[l]),t(m,g+12,o[f].length),g+=16}return m},addTable:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}},i}(),T=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/g,this.descent=n.descent/g,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 P(t,n):new M(e,t,n);_(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&&(_(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=w(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 T(e){return String.fromCharCode(e>>8&255,255&e)}function B(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 F(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"+T(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,g=s[n][1]<65535?1:0,A=u+g,m=E.getSearchParams(A,2),v="",y="",b="",_="",w="",x=0;for(n=0,i=u;n<i;n++){d=(h=s[n])[0],f=h[1],v+=T(d),y+=T(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+=T(p[0]-d&65535),_+=T(0)}else{var S=2*(A-n)+2*x;for(x+=f-d+1,b+=T(0),_+=T(S),a=0,o=p.length;a<o;++a)w+=T(p[a])}}g>0&&(y+="ÿÿ",v+="ÿÿ",b+="\0",_+="\0\0");var k="\0\0"+T(2*A)+T(m.range)+T(m.entry)+T(m.rangeShift)+y+"\0\0"+v+b+_+w,B="",I="";if(l>1){for(c+="\0\0\n"+(0,r.string32)(4+8*l+4+k.length),B="",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,B+=(0,r.string32)(d)+(0,r.string32)(f)+(0,r.string32)(M),d=f+1,M=p[a]);B+=(0,r.string32)(d)+(0,r.string32)(h[1])+(0,r.string32)(M)}I="\0\f\0\0"+(0,r.string32)(B.length+16)+"\0\0\0\0"+(0,r.string32)(B.length/12)}return c+"\0"+T(k.length+4)+k+I+B}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],A=e.ascentScaled?1:p/g,m=n.ascent||Math.round(A*(e.ascent||f[3])),v=n.descent||Math.round(A*(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*"+T(e.italicAngle?1:0)+T(c||e.firstChar)+T(u||e.lastChar)+T(m)+T(v)+"\0d"+T(y)+T(b)+"\0\0\0\0\0\0\0\0"+T(e.xHeight)+T(e.capHeight)+T(0)+T(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(T(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,g="\0\0"+T(p)+T(12*p+6),A=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],g+=h[n]+d[n]+f[n]+T(i)+T(o.length)+T(A),A+=o.length}}return g+=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,A);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=w(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 g(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,g=0;for(d=0;d<h;d++){g=(u[p]<<8|u[p+1])+1,p+=2}var A=p,m=u[p]<<8|u[p+1];o.sizeOfInstructions=m;var v=p+=2+m,y=0;for(d=0;d<g;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 _=u[p++];d+=_,y+=_*n}}if(0===y)return o;var w=p+y;return w>u.length?o:!a&&m>0?(r.set(u.subarray(0,A),i),r.set([0,0],i+A),r.set(u.subarray(v,w),i+A+2),w-=m,u.length-w>3&&(w=w+3&-4),o.length=w,o):u.length-w>3?(w=w+3&-4,r.set(u.subarray(0,w),i),o.length=w,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 g=f.name;if(f.encoding){for(var A="",m=0,v=f.length;m<v;m+=2)A+=String.fromCharCode(t.getUint16());i[1][g]=A}else i[0][g]=(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=[],g=t.tooComplexToFollowFunctions,A=!1,m=0,y=0,b=l.length;c<b;){var _=l[c++];if(64===_)if(i=l[c++],A||y)c+=i;else for(n=0;n<i;n++)d.push(l[c++]);else if(65===_)if(i=l[c++],A||y)c+=2*i;else for(n=0;n<i;n++)a=l[c++],d.push(a<<8|l[c++]);else if(176==(248&_))if(i=_-176+1,A||y)c+=i;else for(n=0;n<i;n++)d.push(l[c++]);else if(184==(248&_))if(i=_-184+1,A||y)c+=2*i;else for(n=0;n<i;n++)a=l[c++],d.push(a<<8|l[c++]);else if(43!==_||g)if(44!==_||g){if(45===_)if(A)A=!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===_)(A||y)&&((0,r.warn)("TT: nested IDEFs not allowed"),g=!0),A=!0,h=c;else if(88===_)++m;else if(27===_)y=m;else if(89===_)y===m&&(y=0),--m;else if(28===_&&!A&&!y){var w=d[d.length-1];w>0&&(c+=w-1)}}else(A||y)&&((0,r.warn)("TT: nested FDEFs not allowed"),g=!0),A=!0,h=c,o=d.pop(),t.functionsDefined[o]={data:l,i:c};else if(!A&&!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(!A&&!y){let e=0;for(_<=142?e=v[_]:_>=192&&_<=223?e=-1:_>=224&&(e=-2),_>=113&&_<=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=g;var x=[l];c>l.length&&x.push(new Uint8Array(c-l.length)),h>u&&((0,r.warn)("TT: complementing a missing function tail"),x.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,x)}let w,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);w=e.header,C=e.tables}else w=p(t),C=c(t,w.numTables);var T=!C["CFF "];if(T){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"===w.version&&!t||!C.head||!C.hhea||!C.maxp||!C.post)return k=new d.Stream(C["CFF "].data),S=new P(k,s),_(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 B=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 j=0,H=0;B>=65536&&C.maxp.length>=22&&(t.pos+=8,t.getUint16()>2&&(C.maxp.data[14]=0,C.maxp.data[15]=2),t.pos+=4,j=t.getUint16(),t.pos+=4,H=t.getUint16());C.maxp.data[4]=D>>8,C.maxp.data[5]=255&D;var z=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 "],j);if(z||(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,T?C.loca.length:0);var Q=Object.create(null);if(T){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,A=t.data,m=A.length,v=new Uint8Array(m),y=l(d,0),b=0,_=Object.create(null);for(c(d,0,b),f=0,p=s;f<n;f++,p+=s){var w=l(d,p);0===w&&(w=y),w>m&&(m+3&-4)===w&&(w=m),w>m&&(y=w);var x=g(A,y,w,v,b,i),C=x.length;0===C&&(_[f]=!0),x.sizeOfInstructions>o&&(o=x.sizeOfInstructions),c(d,p,b+=C),y=w}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:_,maxSizeOfInstructions:o}}(C.loca,C.glyf,M,V,z,U,H);Q=G.missingGlyphs,B>=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 q={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=q.ascent/q.unitsPerEm,this.descent=q.descent/q.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=[],g=[];t.pos<s;){var A=t.getByte();for(g.length=A,c=0;c<A;++c)g[c]=String.fromCharCode(t.getByte());p.push(g.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 W=[];function $(e){return!Q[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&&$(n)&&(W[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 g=t.getUint16();t.skip(4);var A,m,v=!1,y=[];if(0===g){for(A=0;A<256;A++){var b=t.getByte();b&&y.push({charCode:A,glyphId:b})}v=!0}else if(4===g){var _=t.getUint16()>>1;t.skip(6);var w,x=[];for(w=0;w<_;w++)x.push({end:t.getUint16()});for(t.skip(2),w=0;w<_;w++)x[w].start=t.getUint16();for(w=0;w<_;w++)x[w].delta=t.getUint16();var C=0;for(w=0;w<_;w++){a=x[w];var S=t.getUint16();if(S){var k=(S>>1)-(_-w);a.offsetIndex=k,C=Math.max(C,k+a.end-a.start+1)}else a.offsetIndex=-1}var E=[];for(A=0;A<C;A++)E.push(t.getUint16());for(w=0;w<_;w++){o=(a=x[w]).start;var T=a.end,B=a.delta;for(k=a.offsetIndex,A=o;A<=T;A++)65535!==A&&(m=(m=k<0?A:E[k+A-o])+B&65535,y.push({charCode:A,glyphId:m}))}}else{if(6!==g)return(0,r.warn)("cmap table has unsupported format: "+g),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var I=t.getUint16(),M=t.getUint16();for(A=0;A<M;A++){m=t.getUint16();var P=I+A;y.push({charCode:P,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),Z=X.platformId,J=X.encodingId,ee=X.mappings,te=ee.length;if(s.hasEncoding&&(3===Z&&1===J||1===Z&&0===J)||-1===Z&&-1===J&&(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=x(ie,re),3===Z&&1===J?oe=re[ae]:1===Z&&0===J&&(oe=o.MacRomanEncoding.indexOf(ae));var se=!1;for(let t=0;t<te;++t)if(ee[t].charCode===oe){W[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&&$(le)&&(W[e]=le)}}}}else if(0===Z&&0===J)for(let e=0;e<te;++e)W[ee[e].charCode]=ee[e].glyphId;else for(let e=0;e<te;++e){let t=ee[e].charCode;3===Z&&t>=61440&&t<=61695&&(t&=255),W[t]=ee[e].glyphId}}0===W.length&&(W[0]=0);let ce=D-1;U||(ce=0);var ue=F(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,q)}),!T)try{k=new d.Stream(C["CFF "].data),(S=new i.CFFParser(k,s,A).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 E(w.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 P&&(i=t.numGlyphs-1);var s=t.getGlyphMapping(n),c=F(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(A&&f&&f.length){var p=n.fontMatrix||r.FONT_IDENTITY_MATRIX,g=t.getCharset(),m=Object.create(null);for(var v in f){var y=f[v|=0],b=o.StandardEncoding[y[2]],_=o.StandardEncoding[y[3]],w=g.indexOf(b),x=g.indexOf(_);if(!(w<0||x<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,w),U=d(M,x);m[I]={baseFontCharCode:D,accentFontCharCode:U,accentOffset:C}}}}n.seacMap=m}var j=1/(n.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],H=new E("OTTO");return H.addTable("CFF ",t.data),H.addTable("OS/2",L(n,c.charCodeToGlyphId)),H.addTable("cmap",O(c.charCodeToGlyphId,u)),H.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+B(j)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+B(n.descent)+"ÿ"+B(n.ascent)+T(n.italicAngle?2:0)+"\0\0\0\0\0\0\0"),H.addTable("hhea","\0\0\0"+B(n.ascent)+B(n.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+B(n.capHeight)+B(Math.tan(n.italicAngle)*n.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+T(u)),H.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+=T(i)+T(0)}return r}()),H.addTable("maxp","\0\0P\0"+T(u)),H.addTable("name",N(e)),H.addTable("post",R(n)),H.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=T;var B=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=x(d,u);f!==d&&(r=n.indexOf(f))}l[i]=r>=0?r:0}return l}t.ErrorFont=B;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,A).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,A).extractFontProgram(i);for(const e in p.properties)i[e]=p.properties[e];var g=p.charstrings,m=this.getType2Charstrings(g),v=this.getType2Subrs(p.subrs);this.charstrings=g,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 g=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(c=0,u=g.length;c<u;c++){var A=g[c];if(A in a.privateData){var m=a.privateData[A];if(Array.isArray(m))for(var v=m.length-1;v>0;v--)m[v]-=m[v-1];p.setByName(A,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}(),P=function(){function e(e,t){this.properties=t;var n=new i.CFFParser(e,t,A);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,g,A=c.getByName("FontBBox");if(A&&(e.ascent=Math.max(A[3],A[1]),e.descent=Math.min(A[1],A[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),_=this.createDict(f,this.parseDict(b),t.strings);this.parsePrivateDict(_),t.fdArray.push(_)}g=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),g=this.parseEncoding(c.getByName("Encoding"),e,t.strings,p.charset);t.charset=p,t.encoding=g;var w=this.parseCharStrings({charStrings:h,localSubrIndex:c.privateDict.subrsIndex,globalSubrIndex:o.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:c.privateDict});return t.charStrings=w.charStrings,t.seacs=w.seacs,t.widths=w.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 g=32768;p.count<1240?g=107:p.count<33900&&(g=1131);var A=l[--s]+g;if(A<0||A>=p.count||isNaN(A))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(A),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,g=o;if(i&&a.length){var A=i.getFDIndex(u);-1===A&&((0,r.warn)("Glyph index is not in fd select."),f=!1),A>=a.length&&((0,r.warn)("Invalid fd index for glyph index."),f=!1),f&&(p=(g=a[A].privateDict).subrsIndex)}else t&&(p=t);if(f&&(f=this.parseCharString(d,h,p,n)),null!==d.width){const e=g.getByName("nominalWidthX");l[u]=e+d.width}else{const e=g.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 A(!0,g.ISO_ADOBE,i.ISOAdobeCharset);if(1===e)return new A(!0,g.EXPERT,i.ExpertCharset);if(2===e)return new A(!0,g.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 A(!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 g=e;switch(127&(o=u[e++])){case 0:var A=u[e++];for(s=1;s<=A;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++],_=u[e++],w=b;w<=b+_;w++)c[w]=y++;break;default:throw new r.FormatError(`Unknown encoding format: ${o} in CFF`)}var x=e;128&o&&(u[g]&=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(g,x)}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 g={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},A=function(){return function(e,t,n,r){this.predefined=e,this.format=t,this.charset=n,this.raw=r}}();t.CFFCharset=A;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 g=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);h.setEntryLocation("charset",[t.length],t),t.add(g);var A=this.compileCharStrings(e.charStrings);if(h.setEntryLocation("CharStrings",[t.length],t),t.add(A),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,g=s.length;p<g;++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 g=e(n,i+c+12);for(s=i+c+16,o=[],l=0;l<g;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,g,A,m,v=new Uint8Array(i.data),y=t(v,4),b=0,_=12;b<y;b++,_+=16){var w=(0,r.bytesToString)(v.subarray(_,_+4)),x=e(v,_+8),C=e(v,_+12);switch(w){case"cmap":h=l(v,x);break;case"glyf":f=v.subarray(x,x+C);break;case"loca":p=v.subarray(x,x+C);break;case"head":m=t(v,x+18),A=t(v,x+50);break;case"CFF ":g=c(v,x,x+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 g=1,A=1,m=0,v=0;8&s?(g=A=(t[l]<<24|t[l+1]<<16)/1073741824,l+=2):64&s?(g=(t[l]<<24|t[l+1]<<16)/1073741824,A=(t[l+2]<<24|t[l+3]<<16)/1073741824,l+=4):128&s&&(g=(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,A=(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:[g,m,v,A,u,h]}),e(y,n,r),n.push({cmd:"restore"}))}while(32&s);else{var b,_,w=[];for(b=0;b<c;b++)w.push(t[l]<<8|t[l+1]),l+=2;l+=2+(t[l]<<8|t[l+1]);for(var x=w[w.length-1]+1,C=[];C.length<x;){var S=1;for(8&(s=t[l++])&&(S+=t[l++]);S-- >0;)C.push({flags:s})}for(b=0;b<x;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<x;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 E=w[l],T=C.slice(k,E+1);if(1&T[0].flags)T.push(T[0]);else if(1&T[T.length-1].flags)T.unshift(T[T.length-1]);else{var B={flags:1,x:(T[0].x+T[T.length-1].x)/2,y:(T[0].y+T[T.length-1].y)/2};T.unshift(B),T.push(B)}for(i(T[0].x,T[0].y),b=1,_=T.length;b<_;b++)1&T[b].flags?a(T[b].x,T[b].y):1&T[b+1].flags?(o(T[b].x,T[b].y,T[b+1].x,T[b+1].y),b++):o(T[b].x,T[b].y,(T[b].x+T[b+1].x)/2,(T[b].y+T[b+1].y)/2);k=E+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,A),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,g=0;!function t(A){for(var m=0;m<A.length;){var v,y,b,_,w,x,C,S,k=!1,E=A[m++];switch(E){case 1:case 3:g+=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(),_=b+d.shift(),f=y+d.shift(),p=_+d.shift(),h(v,b,y,_,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(E=A[m++]){case 34:y=(v=f+d.shift())+d.shift(),w=p+d.shift(),f=y+d.shift(),h(v,p,y,w,f,w),y=(v=f+d.shift())+d.shift(),f=y+d.shift(),h(v,w,y,p,f,p);break;case 35:v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),_=b+d.shift(),f=y+d.shift(),p=_+d.shift(),h(v,b,y,_,f,p),v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),_=b+d.shift(),f=y+d.shift(),p=_+d.shift(),h(v,b,y,_,f,p),d.pop();break;case 36:h(v=f+d.shift(),w=p+d.shift(),y=v+d.shift(),x=w+d.shift(),f=y+d.shift(),x),h(v=f+d.shift(),x,y=v+d.shift(),x+d.shift(),f=y+d.shift(),p);break;case 37:var T=f,B=p;v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),_=b+d.shift(),f=y+d.shift(),p=_+d.shift(),h(v,b,y,_,f,p),v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),_=b+d.shift(),f=y,p=_,Math.abs(f-T)>Math.abs(p-B)?f+=d.shift():p+=d.shift(),h(v,b,y,_,f,p);break;default:throw new r.FormatError(`unknown operator: 12 ${E}`)}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 P=u(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[I]]));e(a.glyphs[P.glyphId],i,a,P.glyphId),i.push({cmd:"restore"}),P=u(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[M]])),e(a.glyphs[P.glyphId],i,a,P.glyphId)}return;case 18:g+=d.length>>1,k=!0;break;case 19:case 20:m+=(g+=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:g+=d.length>>1,k=!0;break;case 24:for(;d.length>2;)v=f+d.shift(),b=p+d.shift(),y=v+d.shift(),_=b+d.shift(),f=y+d.shift(),p=_+d.shift(),h(v,b,y,_,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(),_=b+d.shift(),f=y+d.shift(),p=_+d.shift(),h(v,b,y,_,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(),_=b+d.shift(),f=y,p=_+d.shift(),h(v,b,y,_,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(),_=b+d.shift(),f=y+d.shift(),p=_);break;case 28:d.push((A[m]<<24|A[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(),_=b+d.shift(),f=y+d.shift(),p=_+(1===d.length?d.shift():0),h(v,b,y,_,f,p),0!==d.length);)v=f+d.shift(),b=p,y=v+d.shift(),_=b+d.shift(),p=_+d.shift(),h(v,b,y,_,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(),_=b+d.shift(),p=_+d.shift(),h(v,b,y,_,f=y+(1===d.length?d.shift():0),p),0!==d.length);)v=f,b=p+d.shift(),y=v+d.shift(),_=b+d.shift(),f=y+d.shift(),p=_+(1===d.length?d.shift():0),h(v,b,y,_,f,p);break;default:if(E<32)throw new r.FormatError(`unknown operator: ${E}`);E<247?d.push(E-139):E<251?d.push(256*(E-247)+A[m++]+108):E<255?d.push(256*-(E-251)-A[m++]-108):(d.push((A[m]<<24|A[m+1]<<16|A[m+2]<<8|A[m+3])/65536),m+=4)}k&&(d.length=0)}}(t)}(e,t,this,i)}}(g,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 g,A,m,v=d.length,y=!1,b=0;b<v;b++){var _=d[b];if(_<32){switch(12===_&&(_=(_<<8)+d[++b]),_){case 1:case 3:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){y=!0;break}var w=this.stack.pop();this.stack.push(0,w);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}g=this.stack.pop(),A=this.stack.pop(),this.lsb=A,this.width=g,this.stack.push(g,A),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(),g=this.stack.pop();var x=this.stack.pop();A=this.stack.pop(),this.lsb=A,this.width=g,this.stack.push(g,A,x),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 E=this.stack.splice(this.stack.length-17,17);this.stack.push(E[2]+E[0],E[3]+E[1],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14]),y=this.executeCommand(13,a,!0),this.flexing=!1,this.stack.push(E[15],E[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 "'+_+'"')}if(y)break}else _<=246?_-=139:_=_<=250?256*(_-247)+d[++b]+108:_<=254?-256*(_-251)-d[++b]-108:(255&d[++b])<<24|(255&d[++b])<<16|(255&d[++b])<<8|(255&d[++b])<<0,this.stack.push(_)}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 g=new s,A=g.convert(u,n,this.seacAnalysisEnabled),m=g.output;A&&(m=[14]);const t={glyphName:d,charstring:m,width:g.width,lsb:g.lsb,seac:g.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]=g.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,g=!1;if(e.has("Extend")){var A=e.getArray("Extend");p=A[0],g=A[1]}if(!(this.shadingType!==s.RADIAL||p&&g)){var m=this.coordsArr[0],v=this.coordsArr[1],y=this.coordsArr[2],b=this.coordsArr[3],_=this.coordsArr[4],w=this.coordsArr[5],x=Math.sqrt((m-b)*(m-b)+(v-_)*(v-_));y<=w+x&&w<=y+x&&(0,r.warn)("Unsupported radial gradient.")}this.extendStart=p,this.extendEnd=g;var C=e.get("Function"),S=o.createFromArray(C);const k=(d-h)/10;var E=this.colorStops=[];if(h>=d||k<=0)(0,r.info)("Bad shading domain.");else{var T,B=new Float32Array(l.numComps),I=new Float32Array(1);for(let e=0;e<=10;e++){I[0]=h+e*k,S(I,0,B,0),T=l.getRgb(B,0);var M=r.Util.makeCssRgb(T[0],T[1],T[2]);E.push([e/10,M])}var P="transparent";e.has("Background")&&(T=l.getRgb(e.get("Background"),0),P=r.Util.makeCssRgb(T[0],T[1],T[2])),p||(E.unshift([0,P]),E[1][0]+=c.SMALL_NUMBER),g||(E[E.length-1][0]-=c.SMALL_NUMBER,E.push([1,P])),this.colorStops=E}}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]),g=Math.max(s[u[0]][1],s[u[3]][1],s[u[12]][1],s[u[15]][1]),A=Math.ceil((p-d)*o/(e.bounds[2]-e.bounds[0]));A=Math.max(t,Math.min(n,A));var m=Math.ceil((g-f)*o/(e.bounds[3]-e.bounds[1]));m=Math.max(t,Math.min(n,m));for(var v=A+1,y=new Int32Array((m+1)*v),b=new Int32Array((m+1)*v),_=0,w=new Uint8Array(3),x=new Uint8Array(3),C=c[h[0]],S=c[h[1]],k=c[h[2]],E=c[h[3]],T=l(m),B=l(A),I=0;I<=m;I++){w[0]=(C[0]*(m-I)+k[0]*I)/m|0,w[1]=(C[1]*(m-I)+k[1]*I)/m|0,w[2]=(C[2]*(m-I)+k[2]*I)/m|0,x[0]=(S[0]*(m-I)+E[0]*I)/m|0,x[1]=(S[1]*(m-I)+E[1]*I)/m|0,x[2]=(S[2]*(m-I)+E[2]*I)/m|0;for(var M=0;M<=A;M++,_++)if(0!==I&&I!==m||0!==M&&M!==A){for(var P=0,D=0,F=0,O=0;O<=3;O++)for(var L=0;L<=3;L++,F++){var R=T[I][O]*B[M][L];P+=s[u[F]][0]*R,D+=s[u[F]][1]*R}y[_]=s.length,s.push([P,D]),b[_]=c.length;var N=new Uint8Array(3);N[0]=(w[0]*(A-M)+x[0]*M)/A|0,N[1]=(w[1]*(A-M)+x[1]*M)/A|0,N[2]=(w[2]*(A-M)+x[2]*M)/A|0,c.push(N)}}y[0]=u[0],b[0]=h[0],y[A]=u[3],b[A]=h[1],y[v*m]=u[12],b[v*m]=h[2],y[v*m+A]=u[15],b[v*m+A]=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 g=d.get("Function"),A=g?h.createFromArray(g):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:A,colorSpace:p,numComps:A?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,g=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]=g+1,o[3]=g+2,o[0]=g,o[1]=g+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]=g,o[0]=h,o[1]=g+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]=g,o[0]=h,o[1]=g+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]=g,o[0]=o[1],o[1]=g+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,g=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]=g+1,o[3]=g+2,o[0]=g,o[1]=g+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]=g,o[0]=h,o[1]=g+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]=g,o[0]=h,o[1]=g+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]=g,o[0]=o[1],o[1]=g+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,_=this.figures.length;b<_;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,g=e.length;if(0===g||n)return h(e,p,n);d.length=g,f.length=g;var A,m,v=0;for(A=0;A<g;++A){d[A]=e.charAt(A);var y=e.charCodeAt(A),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[A]=b}if(0===v)return h(e,p=!0);-1===t&&(v/g<.3?(p=!0,t=0):(p=!1,t=1));var _=[];for(A=0;A<g;++A)_[A]=t;var w,x=o(t)?"R":"L",C=x,S=C,k=C;for(A=0;A<g;++A)"NSM"===f[A]?f[A]=k:k=f[A];for(k=C,A=0;A<g;++A)"EN"===(w=f[A])?f[A]="AL"===k?"AN":"EN":"R"!==w&&"L"!==w&&"AL"!==w||(k=w);for(A=0;A<g;++A)"AL"===(w=f[A])&&(f[A]="R");for(A=1;A<g-1;++A)"ES"===f[A]&&"EN"===f[A-1]&&"EN"===f[A+1]&&(f[A]="EN"),"CS"!==f[A]||"EN"!==f[A-1]&&"AN"!==f[A-1]||f[A+1]!==f[A-1]||(f[A]=f[A-1]);for(A=0;A<g;++A)if("EN"===f[A]){var E;for(E=A-1;E>=0&&"ET"===f[E];--E)f[E]="EN";for(E=A+1;E<g&&"ET"===f[E];++E)f[E]="EN"}for(A=0;A<g;++A)"WS"!==(w=f[A])&&"ES"!==w&&"ET"!==w&&"CS"!==w||(f[A]="ON");for(k=C,A=0;A<g;++A)"EN"===(w=f[A])?f[A]="L"===k?"L":"EN":"R"!==w&&"L"!==w||(k=w);for(A=0;A<g;++A)if("ON"===f[A]){var T=l(f,A+1,"ON"),B=C;A>0&&(B=f[A-1]);var I=S;T+1<g&&(I=f[T+1]),"L"!==B&&(B="R"),"L"!==I&&(I="R"),B===I&&c(f,A,T,B),A=T-1}for(A=0;A<g;++A)"ON"===f[A]&&(f[A]=x);for(A=0;A<g;++A)w=f[A],s(_[A])?"R"===w?_[A]+=1:"AN"!==w&&"EN"!==w||(_[A]+=2):"L"!==w&&"AN"!==w&&"EN"!==w||(_[A]+=1);var M,P=-1,D=99;for(A=0,m=_.length;A<m;++A)M=_[A],P<M&&(P=M),D>M&&o(M)&&(D=M);for(M=P;M>=D;--M){var F=-1;for(A=0,m=_.length;A<m;++A)_[A]<M?F>=0&&(u(d,F,A),F=-1):F<0&&(F=A);F>=0&&u(d,F,_.length)}for(A=0,m=d.length;A<m;++A){var O=d[A];"<"!==O&&">"!==O||(d[A]="")}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 g=0;g<c;++g)p.push([0,h[g]-1])}var A=o(i.getArray("Decode"));return[0,c,s,p,A=A?a(A):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],g=n[9],A=1<<l,m=new Float64Array(A),v=new Uint32Array(A);for(s=0;s<A;s++)m[s]=1;var y=p,b=1;for(o=0;o<l;++o){var _=c[o][0],w=c[o][1],x=r(Math.min(Math.max(e[t+o],_),w),_,w,u[o][0],u[o][1]),C=f[o],S=(x=Math.min(Math.max(x,0),C-1))<C-1?Math.floor(x):x-1,k=S+1-x,E=x-S,T=S*y,B=T+y;for(s=0;s<A;s++)s&b?(m[s]*=E,v[s]+=B):(m[s]*=k,v[s]+=T);y*=C,b<<=1}for(s=0;s<p;++s){var I=0;for(o=0;o<A;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,g[s][0]),g[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],g=a[2*u+1];s[0]=d===f?p:p+(c-d)*(g-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 g=d[c];if(void 0===g){var A=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),A[i]=o}f>0&&(f--,d[c]=A),n.set(A,r)}else n.set(g,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,g,A,m,v,y,b=[],_=[],w=r.length>>1,x=i.length>>1,C=0;for(let e=0;e<w;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;g=b.pop(),p=b.pop(),b.push(c(p,g));break;case"cvr":if(b.length<1)return null;break;case"mul":if(b.length<2)return null;g=b.pop(),p=b.pop(),b.push(u(p,g));break;case"sub":if(b.length<2)return null;g=b.pop(),p=b.pop(),b.push(h(p,g));break;case"exch":if(b.length<2)return null;A=b.pop(),m=b.pop(),b.push(A,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"===(A=b[b.length-a-1]).type||"var"===A.type){b.push(A);break}v=new o(C++,A.min,A.max),b[b.length-a-1]=v,b.push(v),_.push(new s(v,A));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"===(A=b[b.length-1]).type||"var"===A.type){b.push(A);break}v=new o(C++,A.min,A.max),b[b.length-1]=v,b.push(v),_.push(new s(v,A));break;case"roll":if(b.length<2)return null;if(g=b.pop(),p=b.pop(),"literal"!==g.type||"literal"!==p.type)return null;if(f=g.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!==x)return null;var S=[];return _.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,g=f&o,A=p&o;for(let e=0;e<i;e++)1&e?h=5*(h=(h^=c=(c=(c=(c=l[e])*f&a|c*g&o)<<15|c>>>17)*p&a|c*A&o)<<13|h>>>19)+3864292196:d=5*(d=(d^=u=(u=(u=(u=l[e])*f&a|u*g&o)<<15|u>>>17)*p&a|u*A&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*g&o)<<15|c>>>17)*p&a|c*A&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,g=new Uint16Array(i),A=n;for(l=0;l<i;l++)g[l]=Math.floor(l*d);for(l=0;l<a;l++)for(u=Math.floor(l*f)*A,c=0;c<i;c++)h=u+g[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 g=new l.JpxImage;g.parseImageProperties(o.stream),o.stream.reset(),o.width=g.width,o.height=g.height,o.bitsPerComponent=g.bitsPerComponent,o.numComps=g.componentsCount;break;case"JBIG2Decode":o.bitsPerComponent=1,o.numComps=1}let A=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!==A||o.height!==m)&&((0,r.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),A=o.width,m=o.height),A<1||m<1)throw new r.FormatError(`Invalid image width: ${A} or height: ${m}`);this.width=A,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 _=0,w=0;_<this.decode.length;_+=2,++w){var x=this.decode[_],C=this.decode[_+1];this.decodeCoefficients[w]=e?(C-x)/b:C-x,this.decodeAddends[w]=e?x:b*x}}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,g,A=0;A<r;A++){for(p=d+(-8&u),g=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<g)for(c=e[o++],f=128;d<g;)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,g=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(g)if(g instanceof n){for(c=g.width,u=g.height,l=new Uint8ClampedArray(c*u),g.numComps=1,g.fillGrayBuffer(l),h=0,d=c*u;h<d;++h)l[h]=255-l[h];c===i&&u===a||(l=t(l,g.bpc,c,u,i,a))}else{if(!Array.isArray(g))throw new r.FormatError("Unknown mask format.");l=new Uint8ClampedArray(i*a);var A=this.numComps;for(h=0,d=i*a;h<d;++h){var m=0,v=h*A;for(f=0;f<A;++f){var y=s[v+f],b=2*f;if(y<g[b]||y>g[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 g=a.data,A=0,m=g.length;A<m;A++)g[A]^=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,_=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,_)):(a.kind=r.ImageKind.RGB_24BPP,a.data=new Uint8ClampedArray(n*i*3),v=0,y=!1),this.needsDecode&&this.decodeBuffer(_),this.colorSpace.fillRgb(a.data,c,u,n,i,b,h,_,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("lNQ5"))},woOf:function(e,t,n){e.exports={default:n("V3tA"),__esModule:!0}},wzKY:function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",a=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),o=new RegExp("^(?:"+r+"|"+i+")");e.exports.HTML_TAG_RE=a,e.exports.HTML_OPEN_CLOSE_TAG_RE=o},xCWu:function(e,t,n){(function(e,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType;var o="object"==typeof r&&r;o.global!==o&&o.window!==o&&o.self;var s,l=2147483647,c=36,u=1,h=26,d=38,f=700,p=72,g=128,A="-",m=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=c-u,w=Math.floor,x=String.fromCharCode;function C(e){throw new RangeError(b[e])}function S(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+S((e=e.replace(y,".")).split("."),t).join(".")}function E(e){for(var t,n,r=[],i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<a?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function T(e){return S(e,function(e){var t="";return e>65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function B(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function I(e,t,n){var r=0;for(e=n?w(e/f):e>>1,e+=w(e/t);e>_*h>>1;r+=c)e=w(e/_);return w(r+(_+1)*e/(e+d))}function M(e){var t,n,r,i,a,o,s,d,f,m,v,y=[],b=e.length,_=0,x=g,S=p;for((n=e.lastIndexOf(A))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&C("not-basic"),y.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<b;){for(a=_,o=1,s=c;i>=b&&C("invalid-input"),((d=(v=e.charCodeAt(i++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:c)>=c||d>w((l-_)/o))&&C("overflow"),_+=d*o,!(d<(f=s<=S?u:s>=S+h?h:s-S));s+=c)o>w(l/(m=c-f))&&C("overflow"),o*=m;S=I(_-a,t=y.length+1,0==a),w(_/t)>l-x&&C("overflow"),x+=w(_/t),_%=t,y.splice(_++,0,x)}return T(y)}function P(e){var t,n,r,i,a,o,s,d,f,m,v,y,b,_,S,k=[];for(y=(e=E(e)).length,t=g,n=0,a=p,o=0;o<y;++o)(v=e[o])<128&&k.push(x(v));for(r=i=k.length,i&&k.push(A);r<y;){for(s=l,o=0;o<y;++o)(v=e[o])>=t&&v<s&&(s=v);for(s-t>w((l-n)/(b=r+1))&&C("overflow"),n+=(s-t)*b,t=s,o=0;o<y;++o)if((v=e[o])<t&&++n>l&&C("overflow"),v==t){for(d=n,f=c;!(d<(m=f<=a?u:f>=a+h?h:f-a));f+=c)S=d-m,_=c-m,k.push(x(B(m+S%_,0))),d=w(S/_);k.push(x(B(d,0))),a=I(n,b,r==i),n=0,++r}++n,++t}return k.join("")}s={version:"1.4.1",ucs2:{decode:E,encode:T},decode:M,encode:P,toASCII:function(e){return k(e,function(e){return v.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return k(e,function(e){return m.test(e)?M(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(t,n("3IRH")(e),n("DuR2"))},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.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return s(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},xPdS:function(e,t,n){e.exports=n("vwhL")},xnc9:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},xyVx:function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,a,o,s,l,c,u,h,d,f=t+1,p=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";f<n&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(l=e.bMarks[f]+e.tShift[f])<(c=e.eMarks[f])&&(45===(h=e.src.charCodeAt(l))||61===h)&&(l=e.skipChars(l,h),(l=e.skipSpaces(l))>=c)){u=61===h?1:2;break}if(!(e.sCount[f]<0)){for(i=!1,a=0,o=p.length;a<o;a++)if(p[a](e,f,n,!0)){i=!0;break}if(i)break}}return!!u&&(r=e.getLines(t,f,e.blkIndent,!1).trim(),e.line=f+1,(s=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(h),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(h),e.parentType=d,!0)}},"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)}}}},yQBj:function(e,t,n){e.exports=function(){return new Worker(n.p+"fca5d65f9edf96ade230.worker.js")}},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})},ytml:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("Kv9K"),i=(n.n(r),Promise.resolve());t.default=function(e){function t(t,n){var r;if("string"==typeof t)r={url:t};else if(t instanceof Uint8Array)r={data:t};else{if("object"!=typeof t||null===t)throw new TypeError("invalid src type");r=Object.assign({},t)}n&&n.withCredentials&&(r.withCredentials=n.withCredentials);var i=e.getDocument(r);return i.__PDFDocumentLoadingTask=!0,n&&n.onPassword&&(i.onPassword=n.onPassword),n&&n.onProgress&&(i.onProgress=n.onProgress),i}return{createLoadingTask:t,PDFJSWrapper:function(n,a,o){var s=null,l=null,c=null,u=!1;function h(){n.getContext("2d").clearRect(0,0,n.width,n.height)}function d(){for(;a.firstChild;)a.removeChild(a.firstChild)}n.getContext("2d").save(),this.destroy=function(){null!==s&&(i=s.destroy(),s=null)},this.getResolutionScale=function(){return n.offsetWidth/n.width},this.printPage=function(e,t){if(null!==l){var n=(void 0===e?150:e)/72,r=document.createElement("iframe");new Promise(function(e,t){r.frameBorder="0",r.scrolling="no",r.width="0px;",r.height="0px;",r.style.cssText="position: absolute; top: 0; left: 0",r.onload=function(){e(this.contentWindow)},window.document.body.appendChild(r)}).then(function(e){return e.document.title="",s.getPage(1).then(function(t){var r=t.getViewport({scale:1});return e.document.head.appendChild(e.document.createElement("style")).textContent="@supports ((size:A4) and (size:1pt 1pt)) {@page { margin: 1pt; size: "+r.width*n/(96/72)+"pt "+r.height*n/(96/72)+"pt; }}@media print {body { margin: 0 }canvas { page-break-before: avoid; page-break-after: always; page-break-inside: avoid }}@media screen {body { margin: 0 }}",e})}).then(function(e){for(var r=[],a=1;a<=s.numPages;++a)void 0!==t&&-1===t.indexOf(a)||r.push(s.getPage(a).then(function(t){var r=t.getViewport({scale:1}),i=e.document.body.appendChild(e.document.createElement("canvas"));return i.width=r.width*n,i.height=r.height*n,t.render({canvasContext:i.getContext("2d"),transform:[n,0,0,n,0,0],viewport:r,intent:"print"}).promise}));Promise.all(r).then(function(){e.focus(),e.document.queryCommandSupported("print")?e.document.execCommand("print",!1,null):e.print(),i()}).catch(function(e){i(),o("error",e)})})}function i(){r.parentNode.removeChild(r)}},this.renderPage=function(t){if(null!==c){if(u)return;return u=!0,void c.cancel()}if(null!==l){var h=(void 0===l.rotate?0:l.rotate)+(void 0===t?0:t),f=n.offsetWidth/l.getViewport({scale:1}).width*(window.devicePixelRatio||1),p=l.getViewport({scale:f,rotation:h});o("page-size",p.width,p.height,f),n.width=p.width,n.height=p.height,c=l.render({canvasContext:n.getContext("2d"),viewport:p}),a.style.visibility="hidden",d();var g={scrollPageIntoView:function(e){o("link-clicked",e.pageNumber)}},A=new r.PDFLinkService;A.setDocument(s),A.setViewer(g),i=i.then(function(){var n=l.getAnnotations({intent:"display"}).then(function(t){e.AnnotationLayer.render({viewport:p.clone({dontFlip:!0}),div:a,annotations:t,page:l,linkService:A,renderInteractiveForms:!1})}),r=c.promise.then(function(){a.style.visibility="",u=!1,c=null}).catch(function(n){if(c=null,n instanceof e.RenderingCancelledException)return u=!1,void this.renderPage(t);o("error",n)}.bind(this));return Promise.all([n,r])}.bind(this))}},this.forEachPage=function(e){var t=s.numPages;!function n(r){s.getPage(r).then(e).then(function(){++r<=t&&n(r)})}(1)},this.loadPage=function(e,t){l=null,null!==s&&(i=i.then(function(){return s.getPage(e)}).then(function(e){l=e,this.renderPage(t),o("page-loaded",e.pageNumber)}.bind(this)).catch(function(e){h(),d(),o("error",e)}))},this.loadDocument=function(r){if(s=null,l=null,o("num-pages",void 0),!r)return n.removeAttribute("width"),n.removeAttribute("height"),void d();i=i.then(function(){var n,i;if("object"==typeof(i=r)&&null!==i&&!0===i.__PDFDocumentLoadingTask){if(r.destroyed)return void o("error",new Error("loadingTask has been destroyed"));n=r}else n=t(r,{onPassword:function(t,n){var r;switch(n){case e.PasswordResponses.NEED_PASSWORD:r="NEED_PASSWORD";break;case e.PasswordResponses.INCORRECT_PASSWORD:r="INCORRECT_PASSWORD"}o("password",t,r)},onProgress:function(e){var t=e.loaded/e.total;o("progress",Math.min(t,1))}});return n.promise}).then(function(e){s=e,o("num-pages",e.numPages),o("loaded")}).catch(function(e){h(),d(),o("error",e)})},a.style.transformOrigin="0 0"}}}},"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 g(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 A(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-=g(r,"left","right")+a),Math.round(l+o)!==n&&(l-=g(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):A(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}(),_=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})}}(),w=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 _(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}(),x="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 w(t,n,this);x.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){C.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});var S=void 0!==i.ResizeObserver?i.ResizeObserver:C;t.default=S}.call(t,n("DuR2"))},z7gM:function(e,t,n){"use strict";for(var r=n("+N5+").isSpace,i=[],a=0;a<256;a++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){i[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,a,o,s,l,c=e.pos,u=e.posMax;if(92!==e.src.charCodeAt(c))return!1;if(++c>=u)return!1;if(10===(n=e.src.charCodeAt(c))){for(t||e.push("hardbreak","br",0),c++;c<u&&(n=e.src.charCodeAt(c),r(n));)c++;return e.pos=c,!0}return s=e.src[c],n>=55296&&n<=56319&&c+1<u&&(a=e.src.charCodeAt(c+1))>=56320&&a<=57343&&(s+=e.src[c+1],c++),o="\\"+s,t||(l=e.push("text_special","",0),n<256&&0!==i[n]?l.content=s:l.content=o,l.markup=o,l.info="escape"),e.pos=c+1,!0}},"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=87)}({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})},87: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}})},zEpL:function(e,t,n){var r=n("To6e"),i=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util),o=r.Arrays,s=(r.new_array_n,r.new_byte,r.new_double,r.new_float),l=(r.new_float_n,r.new_int,r.new_int_n,r.assert,n("/00o"));e.exports=function(){var e=[-.1482523854003001,32.308141959636465,296.40344946382766,883.1344870032432,11113.947376231741,1057.2713659324597,305.7402417275812,30.825928907280012,3.8533188138216365,59.42900443849514,709.5899960123345,5281.91112291017,-5829.66483675846,-817.6293103748613,-76.91656988279972,-4.594269939176596,.9063471690191471,.1960342806591213,-.15466694054279598,34.324387823855965,301.8067566458425,817.599602898885,11573.795901679885,1181.2520595540152,321.59731579894424,31.232021761053772,3.7107095756221318,53.650946155329365,684.167428119626,5224.56624370173,-6366.391851890084,-908.9766368219582,-89.83068876699639,-5.411397422890401,.8206787908286602,.3901806440322567,-.16070888947830023,36.147034243915876,304.11815768187864,732.7429163887613,11989.60988270091,1300.012278487897,335.28490093152146,31.48816102859945,3.373875931311736,47.232241542899175,652.7371796173471,5132.414255594984,-6909.087078780055,-1001.9990371107289,-103.62185754286375,-6.104916304710272,.7416505462720353,.5805693545089249,-.16636367662261495,37.751650073343995,303.01103387567713,627.9747488785183,12358.763425278165,1412.2779918482834,346.7496836825721,31.598286663170416,3.1598635433980946,40.57878626349686,616.1671130880391,5007.833007176154,-7454.040671756168,-1095.7960341867115,-118.24411666465777,-6.818469345853504,.6681786379192989,.7653668647301797,-.1716176790982088,39.11551877123304,298.3413246578966,503.5259106886539,12679.589408408976,1516.5821921214542,355.9850766329023,31.395241710249053,2.9164211881972335,33.79716964664243,574.8943997801362,4853.234992253242,-7997.57021486075,-1189.7624067269965,-133.6444792601766,-7.7202770609839915,.5993769336819237,.9427934736519954,-.17645823955292173,40.21879108166477,289.9982036694474,359.3226160751053,12950.259102786438,1612.1013903507662,362.85067106591504,31.045922092242872,2.822222032597987,26.988862316190684,529.8996541764288,4671.371946949588,-8535.899136645805,-1282.5898586244496,-149.58553632943463,-8.643494270763135,.5345111359507916,1.111140466039205,-.36174739330527045,41.04429910497807,277.5463268268618,195.6386023135583,13169.43812144731,1697.6433561479398,367.40983966190305,30.557037410382826,2.531473372857427,20.070154905927314,481.50208566532336,4464.970341588308,-9065.36882077239,-1373.62841526722,-166.1660487028118,-9.58289321133207,.4729647758913199,1.268786568327291,-.36970682634889585,41.393213350082036,261.2935935556502,12.935476055240873,13336.131683328815,1772.508612059496,369.76534388639965,29.751323653701338,2.4023193045459172,13.304795348228817,430.5615775526625,4237.0568611071185,-9581.931701634761,-1461.6913552409758,-183.12733958476446,-10.718010163869403,.41421356237309503,1.414213562373095,-.37677560326535325,41.619486213528496,241.05423794991074,-187.94665032361226,13450.063605744153,1836.153896465782,369.4908799925761,29.001847876923147,2.0714759319987186,6.779591200894186,377.7767837205709,3990.386575512536,-10081.709459700915,-1545.947424837898,-200.3762958015653,-11.864482073055006,.3578057213145241,1.546020906725474,-.3829366947518991,41.1516456456653,216.47684307105183,-406.1569483347166,13511.136535077321,1887.8076599260432,367.3025214564151,28.136213436723654,1.913880671464418,.3829366947518991,323.85365704338597,3728.1472257487526,-10561.233882199509,-1625.2025997821418,-217.62525175416,-13.015432208941645,.3033466836073424,1.66293922460509,-.5822628872992417,40.35639251440489,188.20071124269245,-640.2706748618148,13519.21490106562,1927.6022433578062,362.8197642637487,26.968821921868447,1.7463817695935329,-5.62650678237171,269.3016715297017,3453.386536448852,-11016.145278780888,-1698.6569643425091,-234.7658734267683,-14.16351421663124,.2504869601913055,1.76384252869671,-.5887180101749253,39.23429103868072,155.76096234403798,-889.2492977967378,13475.470561874661,1955.0535223723712,356.4450994756727,25.894952980042156,1.5695032905781554,-11.181939564328772,214.80884394039484,3169.1640829158237,-11443.321309975563,-1765.1588461316153,-251.68908574481912,-15.49755935939164,.198912367379658,1.847759065022573,-.7912582233652842,37.39369355329111,119.699486012458,-1151.0956593239027,13380.446257078214,1970.3952110853447,348.01959814116185,24.731487364283044,1.3850130831637748,-16.421408865300393,161.05030052864092,2878.3322807850063,-11838.991423510031,-1823.985884688674,-268.2854986386903,-16.81724543849939,.1483359875383474,1.913880671464418,-.7960642926861912,35.2322109610459,80.01928065061526,-1424.0212633405113,13235.794061869668,1973.804052543835,337.9908651258184,23.289159354463873,1.3934255946442087,-21.099669467133474,108.48348407242611,2583.700758091299,-12199.726194855148,-1874.2780658979746,-284.2467154529415,-18.11369784385905,.09849140335716425,1.961570560806461,-.998795456205172,32.56307803611191,36.958364584370486,-1706.075448829146,13043.287458812016,1965.3831106103316,326.43182772364605,22.175018750622293,1.198638339011324,-25.371248002043963,57.53505923036915,2288.41886619975,-12522.674544337233,-1914.8400385312243,-299.26241273417224,-19.37805630698734,.04912684976946725,1.990369453344394,.035780907*a.SQRT2*.5/2384e-9,.017876148*a.SQRT2*.5/2384e-9,.003134727*a.SQRT2*.5/2384e-9,.002457142*a.SQRT2*.5/2384e-9,971317e-9*a.SQRT2*.5/2384e-9,218868e-9*a.SQRT2*.5/2384e-9,101566e-9*a.SQRT2*.5/2384e-9,13828e-9*a.SQRT2*.5/2384e-9,12804.797818791945,1945.5515939597317,313.4244966442953,49591e-9/2384e-9,1995.1556208053692,21458e-9/2384e-9,-69618e-9/2384e-9],t=[[2.382191739347913e-13,6.423305872147834e-13,9.400849094049688e-13,1.122435026096556e-12,1.183840321267481e-12,1.122435026096556e-12,9.40084909404969e-13,6.423305872147839e-13,2.382191739347918e-13,5.456116108943412e-12,4.878985199565852e-12,4.240448995017367e-12,3.559909094758252e-12,2.858043359288075e-12,2.156177623817898e-12,1.475637723558783e-12,8.371015190102974e-13,2.599706096327376e-13,-5.456116108943412e-12,-4.878985199565852e-12,-4.240448995017367e-12,-3.559909094758252e-12,-2.858043359288076e-12,-2.156177623817898e-12,-1.475637723558783e-12,-8.371015190102975e-13,-2.599706096327376e-13,-2.382191739347923e-13,-6.423305872147843e-13,-9.400849094049696e-13,-1.122435026096556e-12,-1.183840321267481e-12,-1.122435026096556e-12,-9.400849094049694e-13,-6.42330587214784e-13,-2.382191739347918e-13],[2.382191739347913e-13,6.423305872147834e-13,9.400849094049688e-13,1.122435026096556e-12,1.183840321267481e-12,1.122435026096556e-12,9.400849094049688e-13,6.423305872147841e-13,2.382191739347918e-13,5.456116108943413e-12,4.878985199565852e-12,4.240448995017367e-12,3.559909094758253e-12,2.858043359288075e-12,2.156177623817898e-12,1.475637723558782e-12,8.371015190102975e-13,2.599706096327376e-13,-5.461314069809755e-12,-4.921085770524055e-12,-4.343405037091838e-12,-3.732668368707687e-12,-3.093523840190885e-12,-2.430835727329465e-12,-1.734679010007751e-12,-9.74825365660928e-13,-2.797435120168326e-13,0,0,0,0,0,0,-2.283748241799531e-13,-4.037858874020686e-13,-2.146547464825323e-13],[.1316524975873958,.414213562373095,.7673269879789602,1.091308501069271,1.303225372841206,1.56968557711749,1.920982126971166,2.414213562373094,3.171594802363212,4.510708503662055,7.595754112725146,22.90376554843115,.984807753012208,.6427876096865394,.3420201433256688,.9396926207859084,-.1736481776669303,-.7660444431189779,.8660254037844387,.5,-.5144957554275265,-.4717319685649723,-.3133774542039019,-.1819131996109812,-.09457419252642064,-.04096558288530405,-.01419856857247115,-.003699974673760037,.8574929257125442,.8817419973177052,.9496286491027329,.9833145924917901,.9955178160675857,.9991605581781475,.999899195244447,.9999931550702802],[0,0,0,0,0,0,2.283748241799531e-13,4.037858874020686e-13,2.146547464825323e-13,5.461314069809755e-12,4.921085770524055e-12,4.343405037091838e-12,3.732668368707687e-12,3.093523840190885e-12,2.430835727329466e-12,1.734679010007751e-12,9.74825365660928e-13,2.797435120168326e-13,-5.456116108943413e-12,-4.878985199565852e-12,-4.240448995017367e-12,-3.559909094758253e-12,-2.858043359288075e-12,-2.156177623817898e-12,-1.475637723558782e-12,-8.371015190102975e-13,-2.599706096327376e-13,-2.382191739347913e-13,-6.423305872147834e-13,-9.400849094049688e-13,-1.122435026096556e-12,-1.183840321267481e-12,-1.122435026096556e-12,-9.400849094049688e-13,-6.423305872147841e-13,-2.382191739347918e-13]],n=t[l.SHORT_TYPE],r=t[l.SHORT_TYPE],c=t[l.SHORT_TYPE],u=t[l.SHORT_TYPE],h=[0,1,16,17,8,9,24,25,4,5,20,21,12,13,28,29,2,3,18,19,10,11,26,27,6,7,22,23,14,15,30,31];function d(t,n,r){for(var i,o,s,l=10,c=n+238-14-286,u=-15;u<0;u++){var h,d,f;h=e[l+-10],d=t[c+-224]*h,f=t[n+224]*h,h=e[l+-9],d+=t[c+-160]*h,f+=t[n+160]*h,h=e[l+-8],d+=t[c+-96]*h,f+=t[n+96]*h,h=e[l+-7],d+=t[c+-32]*h,f+=t[n+32]*h,h=e[l+-6],d+=t[c+32]*h,f+=t[n+-32]*h,h=e[l+-5],d+=t[c+96]*h,f+=t[n+-96]*h,h=e[l+-4],d+=t[c+160]*h,f+=t[n+-160]*h,h=e[l+-3],d+=t[c+224]*h,f+=t[n+-224]*h,h=e[l+-2],d+=t[n+-256]*h,f-=t[c+256]*h,h=e[l+-1],d+=t[n+-192]*h,f-=t[c+192]*h,h=e[l+0],d+=t[n+-128]*h,f-=t[c+128]*h,h=e[l+1],d+=t[n+-64]*h,f-=t[c+64]*h,h=e[l+2],d+=t[n+0]*h,f-=t[c+0]*h,h=e[l+3],d+=t[n+64]*h,f-=t[c+-64]*h,h=e[l+4],d+=t[n+128]*h,f-=t[c+-128]*h,h=e[l+5],d+=t[n+192]*h,h=(f-=t[c+-192]*h)-(d*=e[l+6]),r[30+2*u]=f+d,r[31+2*u]=e[l+7]*h,l+=18,n--,c++}f=t[n+-16]*e[l+-10],d=t[n+-32]*e[l+-2],f+=(t[n+-48]-t[n+16])*e[l+-9],d+=t[n+-96]*e[l+-1],f+=(t[n+-80]+t[n+48])*e[l+-8],d+=t[n+-160]*e[l+0],f+=(t[n+-112]-t[n+80])*e[l+-7],d+=t[n+-224]*e[l+1],f+=(t[n+-144]+t[n+112])*e[l+-6],d-=t[n+32]*e[l+2],f+=(t[n+-176]-t[n+144])*e[l+-5],d-=t[n+96]*e[l+3],f+=(t[n+-208]+t[n+176])*e[l+-4],d-=t[n+160]*e[l+4],f+=(t[n+-240]-t[n+208])*e[l+-3],i=(d-=t[n+224])-f,o=d+f,f=r[14],d=r[15]-f,r[31]=o+f,r[30]=i+d,r[15]=i-d,r[14]=o-f,s=r[28]-r[0],r[0]+=r[28],r[28]=s*e[l+-36+7],s=r[29]-r[1],r[1]+=r[29],r[29]=s*e[l+-36+7],s=r[26]-r[2],r[2]+=r[26],r[26]=s*e[l+-72+7],s=r[27]-r[3],r[3]+=r[27],r[27]=s*e[l+-72+7],s=r[24]-r[4],r[4]+=r[24],r[24]=s*e[l+-108+7],s=r[25]-r[5],r[5]+=r[25],r[25]=s*e[l+-108+7],s=r[22]-r[6],r[6]+=r[22],r[22]=s*a.SQRT2,s=r[23]-r[7],r[7]+=r[23],r[23]=s*a.SQRT2-r[7],r[7]-=r[6],r[22]-=r[7],r[23]-=r[22],s=r[6],r[6]=r[31]-s,r[31]=r[31]+s,s=r[7],r[7]=r[30]-s,r[30]=r[30]+s,s=r[22],r[22]=r[15]-s,r[15]=r[15]+s,s=r[23],r[23]=r[14]-s,r[14]=r[14]+s,s=r[20]-r[8],r[8]+=r[20],r[20]=s*e[l+-180+7],s=r[21]-r[9],r[9]+=r[21],r[21]=s*e[l+-180+7],s=r[18]-r[10],r[10]+=r[18],r[18]=s*e[l+-216+7],s=r[19]-r[11],r[11]+=r[19],r[19]=s*e[l+-216+7],s=r[16]-r[12],r[12]+=r[16],r[16]=s*e[l+-252+7],s=r[17]-r[13],r[13]+=r[17],r[17]=s*e[l+-252+7],s=-r[20]+r[24],r[20]+=r[24],r[24]=s*e[l+-216+7],s=-r[21]+r[25],r[21]+=r[25],r[25]=s*e[l+-216+7],s=r[4]-r[8],r[4]+=r[8],r[8]=s*e[l+-216+7],s=r[5]-r[9],r[5]+=r[9],r[9]=s*e[l+-216+7],s=r[0]-r[12],r[0]+=r[12],r[12]=s*e[l+-72+7],s=r[1]-r[13],r[1]+=r[13],r[13]=s*e[l+-72+7],s=r[16]-r[28],r[16]+=r[28],r[28]=s*e[l+-72+7],s=-r[17]+r[29],r[17]+=r[29],r[29]=s*e[l+-72+7],s=a.SQRT2*(r[2]-r[10]),r[2]+=r[10],r[10]=s,s=a.SQRT2*(r[3]-r[11]),r[3]+=r[11],r[11]=s,s=a.SQRT2*(-r[18]+r[26]),r[18]+=r[26],r[26]=s-r[18],s=a.SQRT2*(-r[19]+r[27]),r[19]+=r[27],r[27]=s-r[19],s=r[2],r[19]-=r[3],r[3]-=s,r[2]=r[31]-s,r[31]+=s,s=r[3],r[11]-=r[19],r[18]-=s,r[3]=r[30]-s,r[30]+=s,s=r[18],r[27]-=r[11],r[19]-=s,r[18]=r[15]-s,r[15]+=s,s=r[19],r[10]-=s,r[19]=r[14]-s,r[14]+=s,s=r[10],r[11]-=s,r[10]=r[23]-s,r[23]+=s,s=r[11],r[26]-=s,r[11]=r[22]-s,r[22]+=s,s=r[26],r[27]-=s,r[26]=r[7]-s,r[7]+=s,s=r[27],r[27]=r[6]-s,r[6]+=s,s=a.SQRT2*(r[0]-r[4]),r[0]+=r[4],r[4]=s,s=a.SQRT2*(r[1]-r[5]),r[1]+=r[5],r[5]=s,s=a.SQRT2*(r[16]-r[20]),r[16]+=r[20],r[20]=s,s=a.SQRT2*(r[17]-r[21]),r[17]+=r[21],r[21]=s,s=-a.SQRT2*(r[8]-r[12]),r[8]+=r[12],r[12]=s-r[8],s=-a.SQRT2*(r[9]-r[13]),r[9]+=r[13],r[13]=s-r[9],s=-a.SQRT2*(r[25]-r[29]),r[25]+=r[29],r[29]=s-r[25],s=-a.SQRT2*(r[24]+r[28]),r[24]-=r[28],r[28]=s-r[24],s=r[24]-r[16],r[24]=s,s=r[20]-s,r[20]=s,s=r[28]-s,r[28]=s,s=r[25]-r[17],r[25]=s,s=r[21]-s,r[21]=s,s=r[29]-s,r[29]=s,s=r[17]-r[1],r[17]=s,s=r[9]-s,r[9]=s,s=r[25]-s,r[25]=s,s=r[5]-s,r[5]=s,s=r[21]-s,r[21]=s,s=r[13]-s,r[13]=s,s=r[29]-s,r[29]=s,s=r[1]-r[0],r[1]=s,s=r[16]-s,r[16]=s,s=r[17]-s,r[17]=s,s=r[8]-s,r[8]=s,s=r[9]-s,r[9]=s,s=r[24]-s,r[24]=s,s=r[25]-s,r[25]=s,s=r[4]-s,r[4]=s,s=r[5]-s,r[5]=s,s=r[20]-s,r[20]=s,s=r[21]-s,r[21]=s,s=r[12]-s,r[12]=s,s=r[13]-s,r[13]=s,s=r[28]-s,r[28]=s,s=r[29]-s,r[29]=s,s=r[0],r[0]+=r[31],r[31]-=s,s=r[1],r[1]+=r[30],r[30]-=s,s=r[16],r[16]+=r[15],r[15]-=s,s=r[17],r[17]+=r[14],r[14]-=s,s=r[8],r[8]+=r[23],r[23]-=s,s=r[9],r[9]+=r[22],r[22]-=s,s=r[24],r[24]+=r[7],r[7]-=s,s=r[25],r[25]+=r[6],r[6]-=s,s=r[4],r[4]+=r[27],r[27]-=s,s=r[5],r[5]+=r[26],r[26]-=s,s=r[20],r[20]+=r[11],r[11]-=s,s=r[21],r[21]+=r[10],r[10]-=s,s=r[12],r[12]+=r[19],r[19]-=s,s=r[13],r[13]+=r[18],r[18]-=s,s=r[28],r[28]+=r[3],r[3]-=s,s=r[29],r[29]+=r[2],r[2]-=s}function f(e,n){for(var r=0;r<3;r++){var i,a,o,s,c,u;a=(s=e[n+6]*t[l.SHORT_TYPE][0]-e[n+15])+(i=e[n+0]*t[l.SHORT_TYPE][2]-e[n+9]),o=s-i,c=(s=e[n+15]*t[l.SHORT_TYPE][0]+e[n+6])+(i=e[n+9]*t[l.SHORT_TYPE][2]+e[n+0]),u=-s+i,i=2.069978111953089e-11*(e[n+3]*t[l.SHORT_TYPE][1]-e[n+12]),s=2.069978111953089e-11*(e[n+12]*t[l.SHORT_TYPE][1]+e[n+3]),e[n+0]=1.90752519173728e-11*a+i,e[n+15]=1.90752519173728e-11*-c+s,o=.8660254037844387*o*1.907525191737281e-11,c=.5*c*1.907525191737281e-11+s,e[n+3]=o-c,e[n+6]=o+c,a=.5*a*1.907525191737281e-11-i,u=.8660254037844387*u*1.907525191737281e-11,e[n+9]=a+u,e[n+12]=a-u,n++}}this.mdct_sub48=function(e,a,p){for(var g,A,m,v,y,b,_,w,x,C,S,k,E,T,B,I,M,P,D,F,O,L=a,R=286,N=0;N<e.channels_out;N++){for(var U=0;U<e.mode_gr;U++){for(var j,H=e.l3_side.tt[U][N],z=H.xr,Q=0,V=e.sb_sample[N][1-U],G=0,q=0;q<9;q++)for(d(L,R,V[G]),d(L,R+32,V[G+1]),G+=2,R+=64,j=1;j<32;j+=2)V[G-1][j]*=-1;for(j=0;j<32;j++,Q+=18){var W=H.block_type,$=e.sb_sample[N][U],K=e.sb_sample[N][1-U];if(0!=H.mixed_block_flag&&j<2&&(W=0),e.amp_filter[j]<1e-12)o.fill(z,Q+0,Q+18,0);else{if(e.amp_filter[j]<1)for(q=0;q<18;q++)K[q][h[j]]*=e.amp_filter[j];if(W==l.SHORT_TYPE){for(q=-3;q<0;q++){var Y=t[l.SHORT_TYPE][q+3];z[Q+3*q+9]=$[9+q][h[j]]*Y-$[8-q][h[j]],z[Q+3*q+18]=$[14-q][h[j]]*Y+$[15+q][h[j]],z[Q+3*q+10]=$[15+q][h[j]]*Y-$[14-q][h[j]],z[Q+3*q+19]=K[2-q][h[j]]*Y+K[3+q][h[j]],z[Q+3*q+11]=K[3+q][h[j]]*Y-K[2-q][h[j]],z[Q+3*q+20]=K[8-q][h[j]]*Y+K[9+q][h[j]]}f(z,Q)}else{var X=s(18);for(q=-9;q<0;q++){var Z,J;Z=t[W][q+27]*K[q+9][h[j]]+t[W][q+36]*K[8-q][h[j]],J=t[W][q+9]*$[q+9][h[j]]-t[W][q+18]*$[8-q][h[j]],X[q+9]=Z-J*n[3+q+9],X[q+18]=Z*n[3+q+9]+J}g=z,A=Q,v=void 0,y=void 0,b=void 0,_=void 0,w=void 0,x=void 0,C=void 0,S=void 0,k=void 0,E=void 0,T=void 0,B=void 0,I=void 0,M=void 0,P=void 0,D=void 0,F=void 0,O=void 0,b=(m=X)[17]-m[9],w=m[15]-m[11],x=m[14]-m[12],C=m[0]+m[8],S=m[1]+m[7],k=m[2]+m[6],E=m[3]+m[5],g[A+17]=C+k-E-(S-m[4]),y=(C+k-E)*r[19]+(S-m[4]),v=(b-w-x)*r[18],g[A+5]=v+y,g[A+6]=v-y,_=(m[16]-m[10])*r[18],S=S*r[19]+m[4],v=b*r[12]+_+w*r[13]+x*r[14],y=-C*r[16]+S-k*r[17]+E*r[15],g[A+1]=v+y,g[A+2]=v-y,v=b*r[13]-_-w*r[14]+x*r[12],y=-C*r[17]+S-k*r[15]+E*r[16],g[A+9]=v+y,g[A+10]=v-y,v=b*r[14]-_+w*r[12]-x*r[13],y=C*r[15]-S+k*r[16]-E*r[17],g[A+13]=v+y,g[A+14]=v-y,T=m[8]-m[0],I=m[6]-m[2],M=m[5]-m[3],P=m[17]+m[9],D=m[16]+m[10],F=m[15]+m[11],O=m[14]+m[12],g[A+0]=P+F+O+(D+m[13]),v=(P+F+O)*r[19]-(D+m[13]),y=(T-I+M)*r[18],g[A+11]=v+y,g[A+12]=v-y,B=(m[7]-m[1])*r[18],D=m[13]-D*r[19],v=P*r[15]-D+F*r[16]+O*r[17],y=T*r[14]+B+I*r[12]+M*r[13],g[A+3]=v+y,g[A+4]=v-y,v=-P*r[17]+D-F*r[15]-O*r[16],y=T*r[13]+B-I*r[14]-M*r[12],g[A+7]=v+y,g[A+8]=v-y,v=-P*r[16]+D-F*r[17]-O*r[15],y=T*r[12]-B+I*r[13]-M*r[14],g[A+15]=v+y,g[A+16]=v-y}}if(W!=l.SHORT_TYPE&&0!=j)for(q=7;q>=0;--q){var ee,te;ee=z[Q+q]*c[20+q]+z[Q+-1-q]*u[28+q],te=z[Q+q]*u[28+q]-z[Q+-1-q]*c[20+q],z[Q+-1-q]=ee,z[Q+q]=te}}}if(L=p,R=286,1==e.mode_gr)for(var ne=0;ne<18;ne++)i.arraycopy(e.sb_sample[N][1][ne],0,e.sb_sample[N][0][ne],0,32)}}}},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("7J9s")},function(e,t){e.exports=n("urW8")},function(e,t){e.exports=n("mtrD")},function(e,t){e.exports=n("02w1")},function(e,t){e.exports=n("835U")},function(e,t){e.exports=n("ON3O")},function(e,t){e.exports=n("EKTV")},function(e,t){e.exports=n("fEB+")},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("fUqW")},function(e,t){e.exports=n("1oZe")},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),g=n(2),A={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(g.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(A.name,A)}},m=A,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(11),b=n.n(y),_=n(9),w=n.n(_),x=n(3),C=n.n(x),S=i({name:"ElDialog",mixins:[b.a,C.a,w.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 E=k,T=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)};T._withStripped=!0;var B=n(16),I=n.n(B),M=n(10),P=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 F=n(5),O=n.n(F),L=n(18),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,j=n(23),H=n.n(j),z=i({name:"ElAutocomplete",mixins:[C.a,H()("input"),w.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:d.a,ElAutocompleteSuggestions:U},directives:{Clickoutside:P.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(g.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()}},T,[],!1,null,null,null);z.options.__file="packages/autocomplete/src/autocomplete.vue";var Q=z.exports;Q.install=function(e){e.component(Q.name,Q)};var V=Q,G=n(13),q=n.n(G),W=n(28),$=n.n(W),K=i({name:"ElDropdown",componentName:"ElDropdown",mixins:[C.a,w.a],directives:{Clickoutside:P.a},components:{ElButton:q.a,ElButtonGroup:$.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(g.generateId)()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(e){this.broadcast("ElDropdownMenu","visible",e),this.$emit("visible-change",e)},focusing:function(e){var t=this.$el.querySelector(".el-dropdown-selfdefine");t&&(e?t.className+=" focusing":t.className=t.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var e=this;this.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.visible=!0},"click"===this.trigger?0:this.showTimeout))},hide:function(){var e=this;this.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.visible=!1},"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;[38,40].indexOf(t)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():[9,27].indexOf(t)>-1&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,n=e.target,r=this.menuItemsArray.indexOf(n),i=this.menuItemsArray.length-1,a=void 0;[38,40].indexOf(t)>-1?(a=38===t?0!==r?r-1:0:r<i?r+1:i,this.removeTabindex(),this.resetTabindex(this.menuItems[a]),this.menuItems[a].focus(),e.preventDefault(),e.stopPropagation()):13===t?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(t)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach(function(e){e.setAttribute("tabindex","-1")})},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,n=this.show,r=this.hide,i=this.handleClick,a=this.splitButton,o=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=a?this.$refs.trigger.$el:this.$slots.default[0].elm;var l=this.dropdownElm;this.triggerElm.addEventListener("keydown",o),l.addEventListener("keydown",s,!0),a||(this.triggerElm.addEventListener("focus",function(){e.focusing=!0}),this.triggerElm.addEventListener("blur",function(){e.focusing=!1}),this.triggerElm.addEventListener("click",function(){e.focusing=!1})),"hover"===t?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",r),l.addEventListener("mouseenter",n),l.addEventListener("mouseleave",r)):"click"===t&&this.triggerElm.addEventListener("click",i)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,n=this.hide,r=this.splitButton,i=this.type,a=this.dropdownSize,o=this.disabled,s=null;if(r)s=e("el-button-group",[e("el-button",{attrs:{type:i,size:a,disabled:o},nativeOn:{click:function(e){t.$emit("click",e),n()}}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:i,size:a,disabled:o},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]);else{var l=(s=this.$slots.default)[0].data||{},c=l.attrs,u=void 0===c?{}:c;o&&!u.disabled&&(u.disabled=!0,l.attrs=u)}var h=o?null:this.$slots.dropdown;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}],attrs:{"aria-disabled":o}},[s,h])}},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,Z=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)])};Z._withStripped=!0;var J=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}}}},Z,[],!1,null,null,null);J.options.__file="packages/dropdown/src/dropdown-menu.vue";var ee=J.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),ge=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,w.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);ge.options.__file="packages/menu/src/menu.vue";var Ae=ge.exports;Ae.install=function(e){e.component(Ae.name,Ae)};var me=Ae,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"}}}},_e={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},we=i({name:"ElSubmenu",componentName:"ElSubmenu",mixins:[be,C.a,_e],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,g=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])])]),A=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?g:A])}},void 0,void 0,!1,null,null,null);we.options.__file="packages/menu/src/submenu.vue";var xe=we.exports;xe.install=function(e){e.component(xe.name,xe)};var Ce=xe,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),Ee=n.n(ke),Te=i({name:"ElMenuItem",componentName:"ElMenuItem",mixins:[be,C.a],components:{ElTooltip:Ee.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);Te.options.__file="packages/menu/src/menu-item.vue";var Be=Te.exports;Be.install=function(e){e.component(Be.name,Be)};var Ie=Be,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 Pe=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);Pe.options.__file="packages/menu/src/menu-item-group.vue";var De=Pe.exports;De.install=function(e){e.component(De.name,De)};var Fe=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 je=n(7),He=n.n(je),ze=n(19),Qe=i({name:"ElInput",componentName:"ElInput",mixins:[C.a,w.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 He()({},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(ze.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(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick(function(){e.focus()})},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},Oe,[],!1,null,null,null);Qe.options.__file="packages/input/src/input.vue";var Ve=Qe.exports;Ve.install=function(e){e.component(Ve.name,Ve)};var Ge=Ve,qe=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)};qe._withStripped=!0;var We={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))})}},$e=i({name:"ElInputNumber",mixins:[H()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:We},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)}},qe,[],!1,null,null,null);$e.options.__file="packages/input-number/src/input-number.vue";var Ke=$e.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",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])};Xe._withStripped=!0;var Ze=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);Ze.options.__file="packages/radio/src/radio.vue";var Je=Ze.exports;Je.install=function(e){e.component(Je.name,Je)};var et=Je,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(){var e=(this.$vnode.data||{}).tag;return e&&"component"!==e||(e="div"),e},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var e=this;this.$on("handleChange",function(t){e.$emit("change",t)})},mounted:function(){var e=this.$el.querySelectorAll("[type=radio]"),t=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(e,function(e){return e.checked})&&t&&(t.tabIndex=0)},methods:{handleKeydown:function(e){var t=e.target,n="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",r=this.$el.querySelectorAll(n),i=r.length,a=[].indexOf.call(r,t),o=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case 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",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.value,e.label)},on:{change:[function(t){e.value=e.label},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:e.value===e.label?e.activeStyle:null,on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])};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 gt=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);gt.options.__file="packages/checkbox/src/checkbox-button.vue";var At=gt.exports;At.install=function(e){e.component(At.name,At)};var mt=At,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 _t=bt,wt=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()])};wt._withStripped=!0;var xt=i({name:"ElSwitch",mixins:[H()("input"),w.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}},wt,[],!1,null,null,null);xt.options.__file="packages/switch/src/component.vue";var Ct=xt.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,input:e.debouncedOnInputChange},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.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}],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 Et=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)};Et._withStripped=!0;var Tt=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)}},Et,[],!1,null,null,null);Tt.options.__file="packages/select/src/select-dropdown.vue";var Bt=Tt.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},Pt=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(g.getValueByPath)(e,n)===Object(g.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(g.getValueByPath)(e,n)===Object(g.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(g.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);Pt.options.__file="packages/select/src/option.vue";var Dt=Pt.exports,Ft=n(29),Ot=n.n(Ft),Lt=n(14),Rt=n(27),Nt=n.n(Rt),Ut=i({mixins:[C.a,p.a,H()("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(g.isIE)()&&!Object(g.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:Bt,ElOption:Dt,ElTag:Ot.a,ElScrollbar:R.a},directives:{Clickoutside:P.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(g.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(ze.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(g.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(g.getValueByPath)(o.value,this.valueKey)===Object(g.getValueByPath)(e,this.valueKey):o.value===e){t=o;break}}if(t)return t;var s={value:e,currentLabel:n||r||i?"":String(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=r?Math.round(r.getBoundingClientRect().height):0,a=e.initialInputHeight||40;n.style.height=0===e.selected.length?a+"px":Math.max(r?i+(i>a?6:0):0,a)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}})},resetHoverIndex:function(){var e=this;setTimeout(function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map(function(t){return e.options.indexOf(t)})):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)},300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick(function(){n.scrollToOption(e)})},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if("[object object]"===Object.prototype.toString.call(t).toLowerCase()){var n=this.valueKey,r=-1;return e.some(function(e,i){return Object(g.getValueByPath)(e,n)===Object(g.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(g.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 jt=Ut.exports;jt.install=function(e){e.component(jt.name,jt)};var Ht=jt;Dt.install=function(e){e.component(Dt.name,Dt)};var zt=Dt,Qt=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)])])};Qt._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)}},Qt,[],!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 qt=Gt,Wt=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()])};Wt._withStripped=!0;var $t=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)}}},Wt,[],!1,null,null,null);$t.options.__file="packages/button/src/button.vue";var Kt=$t.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 Zt=i({name:"ElButtonGroup"},Xt,[],!1,null,null,null);Zt.options.__file="packages/button/src/button-group.vue";var Jt=Zt.exports;Jt.install=function(e){e.component(Jt.name,Jt)};var en=Jt,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(17),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))},gn=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(g.getValueByPath)(n,t):t(n,r,e)})):("$key"!==t&&pn(n)&&"$value"in n&&(n=n.$value),[pn(n)?Object(g.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})},An=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?An(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 _n(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function wn(e){return"number"==typeof e?e:"string"==typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function xn(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){xn(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(g.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())}}},En=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},Tn={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=En({},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.treeData;i&&!a[t].loaded&&(a[t].loading=!0,i(e,n,function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");var i=r.states,a=i.lazyTreeNodeMap,o=i.treeData;o[t].loading=!1,o[t].loaded=!0,o[t].expanded=!0,n.length&&r.$set(a,t,n),r.table.$emit("expand-change",e,!0)}))}}},Bn=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,Tn],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=Bn(n),i=Bn(e.fixedColumns),a=Bn(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(xn(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)&&xn(r,t,i)&&(a=!0):xn(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=An(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?gn(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=He()(o,r.filterPanels)),i&&(o=He()(o,i.filterPanels)),a&&(o=He()(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(g.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 Pn(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),Fn=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=Fn()(),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=wn(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:Ee.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}},Pn({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(g.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.push("el-table__cell"),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 g={store:r.store,_self:r.context||r.table.$vnode.context,column:p,row:e,$index:t};return u===s&&n&&(g.treeNode={indent:n.level*a,level:n.level},"boolean"==typeof n.expanded&&(g.treeNode.expanded=n.expanded,"loading"in n&&(g.treeNode.loading=n.loading),"noLazyChildren"in n&&(g.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,g,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__cell 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),g=l[p],A=null;g&&(A={expanded:g.expanded,level:g.level,display:!0},"boolean"==typeof g.lazy&&("boolean"==typeof g.loaded&&g.loaded&&(A.noLazyChildren=!(g.children&&g.children.length)),A.loading=g.loading));var m=[this.rowRender(e,t,A)];if(g){var v=0;g.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((g=Nn({},l[o]))&&(a.expanded=g.expanded,g.level=g.level||a.level,g.display=!(!g.expanded||!a.display),"boolean"==typeof g.lazy&&("boolean"==typeof g.loaded&&g.loaded&&(a.noLazyChildren=!(g.children&&g.children.length)),a.loading=g.loading)),v++,m.push(n.rowRender(r,t+v,a)),g){var s=c[o]||r[u];e(s,g)}})}(c[p]||e[u],g)}return m}return this.rowRender(e,t)}}},jn=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)])])};jn._withStripped=!0;var Hn=[];!hn.a.prototype.$isServer&&document.addEventListener("click",function(e){Hn.forEach(function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))})});var zn=function(e){e&&Hn.push(e)},Qn=function(e){-1!==Hn.indexOf(e)&&Hn.splice(e,1)},Vn=n(31),Gn=n.n(Vn),qn=i({name:"ElTableFilterPanel",mixins:[O.a,p.a],directives:{Clickoutside:P.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?zn(e):Qn(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())}}},jn,[],!1,null,null,null);qn.options.__file="packages/table/src/filter-panel.vue";var Wn=qn.exports,$n=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:"el-table__cell gutter"}):""])})])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:rn.a},computed:$n({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},Pn({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.push("el-table__cell"),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(Wn),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},Zn={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:[].concat(t.getRowClasses(r,i),["el-table__cell"])},[e("div",{class:["cell",r.labelClassName]},[n[i]])])}),this.hasGutter?e("th",{class:"el-table__cell gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:Xn({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},Pn({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}}},Jn=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,w.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:Zn,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:Jn({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=wn(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=wn(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}}},Pn({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(g.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 _n(this.width)},realMinWidth:function(){return void 0!==(e=this.minWidth)&&(e=_n(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 He()({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"},gr=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates"],Ar=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[Ar(n,t),Ar(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:Ar,parser:mr},datetime:{formatter:Ar,parser:mr},daterange:{formatter:vr,parser:yr},monthrange:{formatter:vr,parser:yr},datetimerange:{formatter:vr,parser:yr},timerange:{formatter:vr,parser:yr},time:{formatter:Ar,parser:mr},month:{formatter:Ar,parser:mr},year:{formatter:Ar,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 Ar(e,t)})},parser:function(e,t){return("string"==typeof e?e.split(", "):e).map(function(e){return e instanceof Date?e:mr(e,t)})}}},_r={left:"bottom-start",center:"bottom",right:"bottom-end"},wr=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},xr=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)},Er=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:P.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!==gr.indexOf(this.type)},displayValue:function(){var e=xr(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?wr(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=_r[this.align]||_r.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&&wr(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?xr(e,this.valueFormat,this.type,this.rangeSeparator):e},parseString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return wr(e,this.format,t)},formatToString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return xr(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=wr(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===gr.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===gr.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);Er.options.__file="packages/date-picker/src/picker.vue";var Tr=Er.exports,Br=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)])])};Br._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 Pr=i({components:{ElScrollbar:R.a},directives:{repeatClick:We},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);Pr.options.__file="packages/date-picker/src/basic/time-spinner.vue";var Dr=Pr.exports,Fr=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);Fr.options.__file="packages/date-picker/src/panel/time.vue";var Or=Fr.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(g.arrayFindIndex)(Object(g.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 jr=function(e){return new Date(e.getFullYear(),e.getMonth())},Hr=function(e){return"number"==typeof e||"string"==typeof e?jr(new Date(e)).getTime():e instanceof Date?jr(e).getTime():NaN},zr=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){Hr(e)!==Hr(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){Hr(e)!==Hr(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(g.arrayFindIndex)(Object(g.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=Hr(e),t=Hr(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=Hr(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>=Hr(e.minDate)&&c<=Hr(e.maxDate),s.start=e.minDate&&c===Hr(e.minDate),s.end=e.maxDate&&c===Hr(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(g.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);zr.options.__file="packages/date-picker/src/basic/month-table.vue";var Qr=zr.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"],qr=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},Wr=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(g.coerceTruthyValueToArray)(this.value):[],d=qr(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 A=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 A=7*f+t,m=Object(dr.nextDate)(l,A-a).getTime();if(o.inRange=m>=qr(e.minDate)&&m<=qr(e.maxDate),o.start=e.minDate&&m===qr(e.minDate),o.end=e.maxDate&&m===qr(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(g.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++)A(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){qr(e)!==qr(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){qr(e)!==qr(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=qr(e),t=qr(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(g.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);Wr.options.__file="packages/date-picker/src/basic/date-table.vue";var $r=Wr.exports,Kr=i({mixins:[p.a],directives:{Clickoutside:P.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:Qr,DateTable:$r,ElInput:d.a,ElButton:q.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"}}},Br,[],!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 Zr=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)]},Jr=i({mixins:[p.a],directives:{Clickoutside:P.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=Zr(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=Zr(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=Zr(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:$r,ElInput:d.a,ElButton:q.a}},Xr,[],!1,null,null,null);Jr.options.__file="packages/date-picker/src/panel/date-range.vue";var ei=Jr.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:P.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:Qr,ElInput:d.a,ElButton:q.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:[Tr],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:[Tr],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=fi},install:function(e){e.component(pi.name,pi)}},gi=pi,Ai=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")))])])])])};Ai._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()))},_i=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()}}}},Ai,[],!1,null,null,null);_i.options.__file="packages/date-picker/src/panel/time-range.vue";var wi=_i.exports,xi={mixins:[Tr],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?wi:Or,this.mountPicker()):(this.type=e?"timerange":"time",this.panel=e?wi:Or)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?wi:Or},install:function(e){e.component(xi.name,xi)}},Ci=xi,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(g.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 Ei=ki.exports,Ti=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)},Bi={bind:function(e,t,n){Ti(e,t,n)},inserted:function(e,t,n){Ti(e,t,n)}};hn.a.directive("popover",Bi),Ei.install=function(e){e.directive("popover",Bi),e.component(Ei.name,Ei)},Ei.directive=Bi;var Ii=Ei,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(g.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)}},Pi=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 Fi=n(12),Oi=n.n(Fi),Li=n(39),Ri=n.n(Li),Ni=void 0,Ui={success:"success",info:"info",warning:"warning",error:"error"},ji=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:q.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(Fi.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(Fi.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);ji.options.__file="packages/message-box/src/main.vue";var Hi=ji.exports,zi=n(22),Qi="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(Hi),qi=void 0,Wi=void 0,$i=[],Ki=function(e){if(qi){var t=qi.callback;"function"==typeof t&&(Wi.showInput?t(Wi.inputValue,e):t(e)),qi.resolve&&("confirm"===e?Wi.showInput?qi.resolve({value:Wi.inputValue,action:e}):qi.resolve(e):!qi.reject||"cancel"!==e&&"close"!==e||qi.reject(e))}},Yi=function e(){if(Wi||((Wi=new Gi({el:document.createElement("div")})).callback=Ki),Wi.action="",(!Wi.visible||Wi.closeTimer)&&$i.length>0){var t=(qi=$i.shift()).options;for(var n in t)t.hasOwnProperty(n)&&(Wi[n]=t[n]);void 0===t.callback&&(Wi.callback=Ki);var r=Wi.callback;Wi.callback=function(t,n){r(t,n),e()},Object(zi.isVNode)(Wi.message)?(Wi.$slots.default=[Wi.message],Wi.message=null):delete Wi.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach(function(e){void 0===Wi[e]&&(Wi[e]=!0)}),document.body.appendChild(Wi.$el),hn.a.nextTick(function(){Wi.visible=!0})}},Xi=function e(t,n){if(!hn.a.prototype.$isServer){if("string"==typeof t||Object(zi.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){$i.push({options:He()({},Vi,e.defaults,t),callback:n,resolve:r,reject:i}),Yi()});$i.push({options:He()({},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":Qi(t))?(n=t,t=""):void 0===t&&(t=""),Xi(He()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Xi.confirm=function(e,t,n){return"object"===(void 0===t?"undefined":Qi(t))?(n=t,t=""):void 0===t&&(t=""),Xi(He()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},Xi.prompt=function(e,t,n){return"object"===(void 0===t?"undefined":Qi(t))?(n=t,t=""):void 0===t&&(t=""),Xi(He()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Xi.close=function(){Wi.doClose(),Wi.visible=!1,$i=[],qi=null};var Zi=Xi,Ji=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[this._t("default")],2)};Ji._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")}},Ji,[],!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=He()({},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 ga=pa.exports,Aa=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:ga},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(g.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]:g.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(g.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(g.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 He()({},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);Aa.options.__file="packages/form/src/form-item.vue";var ma=Aa.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(g.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 _a(){}ba.options.__file="packages/tabs/src/tab-bar.vue";var wa=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,function(e){return e.toUpperCase()})},xa=i({name:"TabNav",components:{TabBar:ba.exports},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:_a},onTabRemove:{type:Function,default:_a},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"+wa(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"+wa(this.sizeName)],t=this.$refs.navScroll["offset"+wa(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"+wa(e)],n=this.$refs.navScroll["offset"+wa(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,g=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,A=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]},[g,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}}),A])])])},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);xa.options.__file="packages/tabs/src/tab-nav.vue";var Ca=i({name:"ElTabs",components:{TabNav:xa.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,Ea=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()};Ea._withStripped=!0;var Ta=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")}},Ea,[],!1,null,null,null);Ta.options.__file="packages/tabs/src/tab-pane.vue";var Ba=Ta.exports;Ba.install=function(e){e.component(Ba.name,Ba)};var Ia=Ba,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 Pa=Ma.exports;Pa.install=function(e){e.component(Pa.name,Pa)};var Da=Pa,Fa=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)};Fa._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}},ja=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))}},Ha=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}},za=0,Qa=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=za++,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=Ha(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:Ha(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))}He()(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||ja(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(He()({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(),ja(i)},{checked:!1!==e});l()}var c=this.parent;c&&0!==c.level&&(n||ja(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(g.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 Ha(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return Ha(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 Qa({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 Qa)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}(),qa=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)};qa._withStripped=!0;var Wa=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()})}},qa,[],!1,null,null,null);Wa.options.__file="packages/tree/src/tree-node.vue";var $a=Wa.exports,Ka=i({name:"ElTree",mixins:[C.a],components:{ElTreeNode:$a},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(Fi.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,g=c?l?.75:s?.55:0:1,A=-9999,m=n.clientY-h.top;f=m<h.height*p?"before":m>h.height*g?"after":l?"inner":"none";var v=i.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),y=e.$refs.dropIndicator;"before"===f?A=v.top-d.top:"after"===f&&(A=v.bottom-d.top),y.style.top=A+"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]")}},Fa,[],!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,Za=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))])])])])};Za._withStripped=!0;var Ja={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 Ja[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":""}}},Za,[],!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=He()({},t)).onClose,r="notification_"+uo++,i=t.position||"top-right";t.onClose=function(){e.close(r,n)},lo=new so({data:t}),Object(zi.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(zi.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 go=n(41),Ao=n.n(go),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:Ee.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])}},_o=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:Ao.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);_o.options.__file="packages/slider/src/main.vue";var wo=_o.exports;wo.install=function(e){e.component(wo.name,wo)};var xo=wo,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,Eo=n(32),To=n.n(Eo),Bo=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)))}):(To()(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 Bo({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,Po=hn.a.extend(ko),Do={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Fo=void 0;Po.prototype.originalPosition="",Po.prototype.originalOverflow="",Po.prototype.close=function(){var e=this;this.fullscreen&&(Fo=void 0),To()(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=He()({},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&&Fo)return Fo;var t=e.body?document.body:e.target,n=new Po({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&&(Fo=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 jo=Uo,Ho={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:String},computed:{style:function(){var e={};return this.gutter&&(e.marginLeft="-"+this.gutter/2+"px",e.marginRight=e.marginLeft),e}},render:function(e){return e(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"",this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(e){e.component(Ho.name,Ho)}},zo=Ho,Qo="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"===Qo(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,qo=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)};qo._withStripped=!0;var Wo=n(33),$o=n.n(Wo),Ko=i({name:"ElUploadList",mixins:[p.a],data:function(){return{focusing:!1}},components:{ElProgress:$o.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)}}},qo,[],!1,null,null,null);Ko.options.__file="packages/upload/src/upload-list.vue";var Yo=Ko.exports,Xo=n(24),Zo=n.n(Xo);var Jo=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)};Jo._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)}}}},Jo,[],!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",Zo()([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:[w.a],components:{ElProgress:$o.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,gs=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)])};gs._withStripped=!0;var As={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-"+As[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)}},gs,[],!1,null,null,null);ms.options.__file="packages/message/src/main.vue";var vs=ms.exports,ys=n(15),bs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_s=hn.a.extend(vs),ws=void 0,xs=[],Cs=1,Ss=function e(t){if(!hn.a.prototype.$isServer){"string"==typeof(t=t||{})&&(t={message:t});var n=t.onClose,r="message_"+Cs++;t.onClose=function(){e.close(r,n)},(ws=new _s({data:t})).id=r,Object(zi.isVNode)(ws.message)&&(ws.$slots.default=[ws.message],ws.message=null),ws.$mount(),document.body.appendChild(ws.$el);var i=t.offset||20;return xs.forEach(function(e){i+=e.$el.offsetHeight+16}),ws.verticalOffset=i,ws.visible=!0,ws.$el.style.zIndex=y.PopupManager.nextZIndex(),xs.push(ws),ws}};["success","warning","info","error"].forEach(function(e){Ss[e]=function(t){return Object(ys.isObject)(t)&&!Object(zi.isVNode)(t)?Ss(bs({},t,{type:e})):Ss({type:e,message:t})}}),Ss.close=function(e,t){for(var n=xs.length,r=-1,i=void 0,a=0;a<n;a++)if(e===xs[a].id){i=xs[a].$el.offsetHeight,r=a,"function"==typeof t&&t(xs[a]),xs.splice(a,1);break}if(!(n<=1||-1===r||r>xs.length-1))for(var o=r;o<n-1;o++){var s=xs[o].$el;s.style.top=parseInt(s.style.top,10)-i-16+"px"}},Ss.closeAll=function(){for(var e=xs.length-1;e>=0;e--)xs[e].close()};var ks=Ss,Es=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)};Es._withStripped=!0;var Ts=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}}}},Es,[],!1,null,null,null);Ts.options.__file="packages/badge/src/main.vue";var Bs=Ts.exports;Bs.install=function(e){e.component(Bs.name,Bs)};var Is=Bs,Ms=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)])};Ms._withStripped=!0;var Ps=i({name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},Ms,[],!1,null,null,null);Ps.options.__file="packages/card/src/main.vue";var Ds=Ps.exports;Ds.install=function(e){e.component(Ds.name,Ds)};var Fs=Ds,Os=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)};Os._withStripped=!0;var Ls=i({name:"ElRate",mixins:[w.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(ys.isObject)(r)&&r.excluded?e<n:e<=n}).sort(function(e,t){return e-t}),r=t[n[0]];return Object(ys.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)}},Os,[],!1,null,null,null);Ls.options.__file="packages/rate/src/main.vue";var Rs=Ls.exports;Rs.install=function(e){e.component(Rs.name,Rs)};var Ns=Rs,Us=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)};Us._withStripped=!0;var js=i({name:"ElSteps",mixins:[w.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})}}},Us,[],!1,null,null,null);js.options.__file="packages/steps/src/steps.vue";var Hs=js.exports;Hs.install=function(e){e.component(Hs.name,Hs)};var zs=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 Vs=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);Vs.options.__file="packages/steps/src/step.vue";var Gs=Vs.exports;Gs.install=function(e){e.component(Gs.name,Gs)};var qs=Gs,Ws=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()])};Ws._withStripped=!0;var $s=n(25),Ks=n.n($s),Ys=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)},interval:function(){this.pauseTimer(),this.startTimer()}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(e,t){var n=this.items.length;return t===n-1&&e.inStage&&this.items[0].active||e.inStage&&this.items[t+1]&&this.items[t+1].active?"left":!!(0===t&&e.inStage&&this.items[n-1].active||e.inStage&&this.items[t-1]&&this.items[t-1].active)&&"right"},handleButtonEnter:function(e){var t=this;"vertical"!==this.direction&&this.items.forEach(function(n,r){e===t.itemInStage(n,r)&&(n.hover=!0)})},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach(function(e){e.hover=!1})},updateItems:function(){this.items=this.$children.filter(function(e){return"ElCarouselItem"===e.$options.name})},resetItemPosition:function(e){var t=this;this.items.forEach(function(n,r){n.translateItem(r,t.activeIndex,e)})},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},resetTimer:function(){this.pauseTimer(),this.startTimer()},setActiveItem:function(e){if("string"==typeof e){var t=this.items.filter(function(t){return t.name===e});t.length>0&&(e=this.items.indexOf(t[0]))}if(e=Number(e),isNaN(e)||e!==Math.floor(e))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,r=this.activeIndex;this.activeIndex=e<0?this.loop?n-1:0:e>=n?this.loop?0:n-1:e,r===this.activeIndex&&this.resetItemPosition(r),this.resetTimer()}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(e){this.activeIndex=e},handleIndicatorHover:function(e){"hover"===this.trigger&&e!==this.activeIndex&&(this.activeIndex=e)}},created:function(){var e=this;this.throttledArrowClick=Ks()(300,!0,function(t){e.setActiveItem(t)}),this.throttledIndicatorHover=Ks()(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()}},Ws,[],!1,null,null,null);Ys.options.__file="packages/carousel/src/main.vue";var Xs=Ys.exports;Xs.install=function(e){e.component(Xs.name,Xs)};var Zs=Xs,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 el={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)}},tl={name:"ElScrollbar",components:{Bar:el},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=Fn()(),n=this.wrapStyle;if(t){var r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(g.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(el,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(el,{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(tl.name,tl)}},nl=tl,rl=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)};rl._withStripped=!0;var il=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.scale=1}this.ready=!0},handleItemClick:function(){var e=this.$parent;if(e&&"card"===e.type){var t=e.items.indexOf(this);e.setActiveItem(t)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var e={transform:("vertical"===this.parentDirection?"translateY":"translateX")+"("+this.translate+"px) scale("+this.scale+")"};return Object(g.autoprefixer)(e)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},rl,[],!1,null,null,null);il.options.__file="packages/carousel/src/item.vue";var al=il.exports;al.install=function(e){e.component(al.name,al)};var ol=al,sl=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[this._t("default")],2)};sl._withStripped=!0;var ll=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)}},sl,[],!1,null,null,null);ll.options.__file="packages/collapse/src/collapse.vue";var cl=ll.exports;cl.install=function(e){e.component(cl.name,cl)};var ul=cl,hl=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)};hl._withStripped=!0;var dl=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(g.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)}}},hl,[],!1,null,null,null);dl.options.__file="packages/collapse/src/collapse-item.vue";var fl=dl.exports;fl.install=function(e){e.component(fl.name,fl)};var pl=fl,gl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return e.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",e.realSize&&"el-cascader--"+e.realSize,{"is-disabled":e.isDisabled}],on:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1},click:function(){return e.toggleDropDownVisible(!e.readonly||void 0)},keydown:e.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":e.dropDownVisible},attrs:{size:e.realSize,placeholder:e.placeholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.handleInput},model:{value:e.multiple?e.presentText:e.inputValue,callback:function(t){e.multiple?e.presentText:e.inputValue=t},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[e.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.handleClear(t)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",e.dropDownVisible&&"is-reverse"],on:{click:function(t){t.stopPropagation(),e.toggleDropDownVisible()}}})])],2),e.multiple?n("div",{staticClass:"el-cascader__tags"},[e._l(e.presentTags,function(t){return n("el-tag",{key:t.key,attrs:{type:"info",size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":""},on:{close:function(n){e.deleteTag(t)}}},[n("span",[e._v(e._s(t.text))])])}),e.filterable&&!e.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:e.presentTags.length?"":e.placeholder},domProps:{value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value.trim())},function(t){return e.handleInput(e.inputValue,t)}],click:function(t){t.stopPropagation(),e.toggleDropDownVisible(!0)},keydown:function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?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)};gl._withStripped=!0;var Al=n(42),ml=n.n(Al),vl=n(34),yl=n.n(vl),bl=yl.a.keys,_l={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},Cl=i({name:"ElCascader",directives:{Clickoutside:P.a},mixins:[wl,C.a,p.a,w.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:d.a,ElTag:Ot.a,ElScrollbar:R.a,ElCascaderPanel:ml.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(Fi.t)("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var e=(this.elFormItem||{}).elFormItemSize;return this.size||e||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var e=this.props||{},t=this.$attrs;return Object.keys(_l).forEach(function(n){var r=_l[n],i=r.newProp,a=r.type,o=t[n]||t[Object(g.kebabCase)(n)];Object(ze.isDef)(n)&&!Object(ze.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(g.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(g.isEqual)(e,t)&&!Object(ys.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),this.isEmptyValue(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(ze.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,this.doDestroy()},handleKeyDown:function(e){switch(e.keyCode){case bl.enter:this.toggleDropDownVisible();break;case bl.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case bl.esc:case bl.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()})},isEmptyValue:function(e){var t=this.multiple,n=this.panel.config.emitPath;return!(!t&&!n)&&Object(g.isEmpty)(e)},computePresentText:function(){var e=this.checkedValue,t=this.config;if(!this.isEmptyValue(e)){var n=this.panel.getNodeByValue(e);if(n&&(t.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var e=this.isDisabled,t=this.leafOnly,n=this.showAllLevels,r=this.separator,i=this.collapseTags,a=this.getCheckedNodes(t),o=[],s=function(t){return{node:t,key:t.uid,text:t.getText(n,r),hitState:!1,closable:!e&&!t.isDisabled}};if(a.length){var l=a[0],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(ys.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(g.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 bl.enter:n.click();break;case bl.up:var r=n.previousElementSibling;r&&r.focus();break;case bl.down:var i=n.nextElementSibling;i&&i.focus();break;case bl.esc:case bl.tab:this.toggleDropDownVisible(!1)}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,r=n[n.length-1];this.pressDeleteCount=e?0:t+1,r&&this.pressDeleteCount&&(r.hitState?this.deleteTag(r):r.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,n=this.suggestions[e];if(t){var r=n.checked;n.doCheck(!r),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(e){var t=this.checkedValue,n=e.node.getValueByOption(),r=t.find(function(e){return Object(g.isEqual)(e,n)});this.checkedValue=t.filter(function(e){return!Object(g.isEqual)(e,n)}),this.$emit("remove-tag",r)},updateStyle:function(){var e=this.$el,t=this.inputInitialHeight;if(!this.$isServer&&e){var n=this.$refs.suggestionPanel,r=e.querySelector(".el-input__inner");if(r){var i=e.querySelector(".el-cascader__tags"),a=null;if(n&&(a=n.$el))a.querySelector(".el-cascader__suggestion-list").style.minWidth=r.offsetWidth+"px";if(i){var o=Math.round(i.getBoundingClientRect().height),s=Math.max(o+6,t)+"px";r.style.height=s,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},gl,[],!1,null,null,null);Cl.options.__file="packages/cascader/src/cascader.vue";var Sl=Cl.exports;Sl.install=function(e){e.component(Sl.name,Sl)};var kl=Sl,El=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)};El._withStripped=!0;var Tl="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 Bl=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Il=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)},Ml={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Pl={A:10,B:11,C:12,D:13,E:14,F:15},Dl=function(e){return 2===e.length?16*(Pl[e[0].toUpperCase()]||+e[0])+(Pl[e[1].toUpperCase()]||+e[1]):Pl[e[1].toUpperCase()]||+e[1]},Fl=function(e,t,n){e=Il(e,255),t=Il(t,255),n=Il(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}},Ol=function(e,t,n){e=6*Il(e,360),t=Il(t,100),n=Il(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)}},Ll=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":Tl(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 Ol(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=Fl(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=Dl(l[0]+l[0]),u=Dl(l[1]+l[1]),h=Dl(l[2]+l[2])):6!==l.length&&8!==l.length||(c=Dl(l.substring(0,2)),u=Dl(l.substring(2,4)),h=Dl(l.substring(4,6))),8===l.length?this._alpha=Math.floor(Dl(l.substring(6))/255*100):3!==l.length&&6!==l.length||(this._alpha=100);var d=Fl(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=Bl(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=Ol(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=Bl(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=Ol(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""+(Ml[t]||t)+(Ml[n]||n)};return isNaN(t)||isNaN(n)||isNaN(r)?"":"#"+i(t)+i(n)+i(r)}(Ol(e,t,n))}},e}(),Rl=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)])};Rl._withStripped=!0;var Nl=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")])])};Nl._withStripped=!0;var Ul=!1,jl=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,Ul=!1,t.end&&t.end(r)};e.addEventListener("mousedown",function(e){Ul||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),Ul=!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;jl(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%)"}}},Nl,[],!1,null,null,null);Hl.options.__file="packages/color-picker/src/components/sv-panel.vue";var zl=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 Vl=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)}};jl(n,i),jl(r,i),this.update()}},Ql,[],!1,null,null,null);Vl.options.__file="packages/color-picker/src/components/hue-slider.vue";var Gl=Vl.exports,ql=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"}})])};ql._withStripped=!0;var Wl=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)}};jl(n,i),jl(r,i),this.update()}},ql,[],!1,null,null,null);Wl.options.__file="packages/color-picker/src/components/alpha-slider.vue";var $l=Wl.exports,Kl=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)])};Kl._withStripped=!0;var Yl=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 Ll;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 Ll;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)}}},Kl,[],!1,null,null,null);Yl.options.__file="packages/color-picker/src/components/predefine.vue";var Xl=Yl.exports,Zl=i({name:"el-color-picker-dropdown",mixins:[O.a,p.a],components:{SvPanel:zl,HueSlider:Gl,AlphaSlider:$l,ElInput:d.a,ElButton:q.a,Predefine:Xl},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}}}},Rl,[],!1,null,null,null);Zl.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var Jl=Zl.exports,ec=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:P.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 Ll({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 Ll))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 Ll({enableAlpha:this.showAlpha,format:this.colorFormat}),showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Jl}},El,[],!1,null,null,null);ec.options.__file="packages/color-picker/src/main.vue";var tc=ec.exports;tc.install=function(e){e.component(tc.name,tc)};var nc=tc,rc=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)};rc._withStripped=!0;var ic=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()])};ic._withStripped=!0;var ac=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="")}}},ic,[],!1,null,null,null);ac.options.__file="packages/transfer/src/transfer-panel.vue";var oc=ac.exports,sc=i({name:"ElTransfer",mixins:[C.a,p.a,w.a],components:{TransferPanel:oc,ElButton:q.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="")}}},rc,[],!1,null,null,null);sc.options.__file="packages/transfer/src/main.vue";var lc=sc.exports;lc.install=function(e){e.component(lc.name,lc)};var cc=lc,uc=function(){var e=this.$createElement;return(this._self._c||e)("section",{staticClass:"el-container",class:{"is-vertical":this.isVertical}},[this._t("default")],2)};uc._withStripped=!0;var hc=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}))}}},uc,[],!1,null,null,null);hc.options.__file="packages/container/src/main.vue";var dc=hc.exports;dc.install=function(e){e.component(dc.name,dc)};var fc=dc,pc=function(){var e=this.$createElement;return(this._self._c||e)("header",{staticClass:"el-header",style:{height:this.height}},[this._t("default")],2)};pc._withStripped=!0;var gc=i({name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},pc,[],!1,null,null,null);gc.options.__file="packages/header/src/main.vue";var Ac=gc.exports;Ac.install=function(e){e.component(Ac.name,Ac)};var mc=Ac,vc=function(){var e=this.$createElement;return(this._self._c||e)("aside",{staticClass:"el-aside",style:{width:this.width}},[this._t("default")],2)};vc._withStripped=!0;var yc=i({name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},vc,[],!1,null,null,null);yc.options.__file="packages/aside/src/main.vue";var bc=yc.exports;bc.install=function(e){e.component(bc.name,bc)};var _c=bc,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 Cc=xc.exports;Cc.install=function(e){e.component(Cc.name,Cc)};var Sc=Cc,kc=function(){var e=this.$createElement;return(this._self._c||e)("footer",{staticClass:"el-footer",style:{height:this.height}},[this._t("default")],2)};kc._withStripped=!0;var Ec=i({name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},kc,[],!1,null,null,null);Ec.options.__file="packages/footer/src/main.vue";var Tc=Ec.exports;Tc.install=function(e){e.component(Tc.name,Tc)};var Bc=Tc,Ic=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);Ic.options.__file="packages/timeline/src/main.vue";var Mc=Ic.exports;Mc.install=function(e){e.component(Mc.name,Mc)};var Pc=Mc,Dc=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 ")])])])};Dc._withStripped=!0;var Fc=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}},Dc,[],!1,null,null,null);Fc.options.__file="packages/timeline/src/item.vue";var Oc=Fc.exports;Oc.install=function(e){e.component(Oc.name,Oc)};var Lc=Oc,Rc=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)};Rc._withStripped=!0;var Nc=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)}}},Rc,[],!1,null,null,null);Nc.options.__file="packages/link/src/main.vue";var Uc=Nc.exports;Uc.install=function(e){e.component(Uc.name,Uc)};var jc=Uc,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 zc=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);zc.options.__file="packages/divider/src/main.vue";var Qc=zc.exports;Qc.install=function(e){e.component(Qc.name,Qc)};var Vc=Qc,Gc=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)};Gc._withStripped=!0;var qc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":e.viewerZIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleMaskClick(t)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.hide}},[n("i",{staticClass:"el-icon-close"})]),e.isSingle?e._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){e.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){e.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:e.mode.icon,on:{click:e.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){e.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){e.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},e._l(e.urlList,function(t,r){return r===e.index?n("img",{key:t,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()}),0)],2)])};qc._withStripped=!0;var Wc=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},$c={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},Kc=Object(g.isFirefox)()?"DOMMouseScroll":"mousewheel",Yc=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:$c.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===$c.CONTAIN&&(a.maxWidth=a.maxHeight="100%"),a},viewerZIndex:function(){var e=y.PopupManager.nextZIndex();return this.zIndex>e?this.zIndex:e}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg:function(e){var t=this;this.$nextTick(function(e){t.$refs.img[0].complete||(t.loading=!0)})}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=function(t){switch(t.stopPropagation(),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(g.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,Kc,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(pe.off)(document,"keydown",this._keyDownHandler),Object(pe.off)(document,Kc,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(g.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($c),t=(Object.values($c).indexOf(this.mode)+1)%e.length;this.mode=$c[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=Wc({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)}},qc,[],!1,null,null,null);Yc.options.__file="packages/image/src/image-viewer.vue";var Xc=Yc.exports,Zc=function(){return void 0!==document.documentElement.style.objectFit},Jc="none",eu="contain",tu="cover",nu="fill",ru="scale-down",iu="",au=i({name:"ElImage",mixins:[p.a],inheritAttrs:!1,components:{ImageViewer:Xc},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?Zc()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!Zc()&&this.fit!==nu},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(ys.isHtmlElement)(e)?e:Object(ys.isString)(e)?document.querySelector(e):Object(pe.getScrollContainer)(this.$el))&&(this._scrollContainer=t,this._lazyLoadHandler=Ks()(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===ru&&(e=t<i&&n<a?Jc:eu);switch(e){case Jc:return{width:"auto",height:"auto"};case eu:return o<s?{width:"auto"}:{height:"auto"};case tu:return o<s?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(iu=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=iu,this.showViewer=!1}}},Gc,[],!1,null,null,null);au.options.__file="packages/image/src/main.vue";var ou=au.exports;ou.install=function(e){e.component(ou.name,ou)};var su=ou,lu=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)])};lu._withStripped=!0;var cu=n(20),uu=n.n(cu),hu=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),uu.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return uu.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return uu.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),c=(7+(l=0===l?7:l)-("number"==typeof this.firstDayOfWeek?this.firstDayOfWeek:1))%7,u=Object(dr.getPrevMonthLastDays)(s,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);hu.options.__file="packages/calendar/src/date-table.vue";var du=hu.exports,fu=["prev-month","today","next-month"],pu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],gu=i({name:"ElCalendar",mixins:[p.a],components:{DateTable:du,ElButton:q.a,ElButtonGroup:$.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===fu.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 "+pu[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),uu.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return uu.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return uu.a.format(e,"yyyy-MM")},formatedDate:function(){return uu.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 uu.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}}},lu,[],!1,null,null,null);gu.options.__file="packages/calendar/src/main.vue";var Au=gu.exports;Au.install=function(e){e.component(Au.name,Au)};var mu=Au,vu=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()])};vu._withStripped=!0;var yu=function(e){return Math.pow(e,3)},bu=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=Ks()(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?yu(2*a)/2:1-yu(2*(1-a))/2)),r(i)):e.scrollTop=0})}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},vu,[],!1,null,null,null);bu.options.__file="packages/backtop/src/main.vue";var _u=bu.exports;_u.install=function(e){e.component(_u.name,_u)};var wu=_u,xu=function(e,t){return e===window||e===document?document.documentElement[t]:e[t]},Cu=function(e){return xu(e,"offsetHeight")},Su="ElInfiniteScroll",ku={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Eu=function(e,t){return Object(ys.isHtmlElement)(e)?(n=ku,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(ys.isUndefined)(t[l])?l:t[l],o){case Number:l=Number(l),l=Number.isNaN(l)?s:l;break;case Boolean:l=Object(ys.isDefined)(l)?"false"!==l&&Boolean(l):s;break;default:l=o(l)}return n[i]=l,n},{}):{};var n},Tu=function(e){return e.getBoundingClientRect().top},Bu=function(e){var t=this[Su],n=t.el,r=t.vm,i=t.container,a=t.observer,o=Eu(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=Cu(n)+Tu(n)-Tu(i)-Cu(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(ys.isFunction)(e)?e.call(r):a&&(a.disconnect(),this[Su].observer=null)}}},Iu={name:"InfiniteScroll",inserted:function(e,t,n){var r=t.value,i=n.context,a=Object(pe.getScrollContainer)(e,!0),o=Eu(e,i),s=o.delay,l=o.immediate,c=I()(s,Bu.bind(e,r));(e[Su]={el:e,vm:i,container:a,onScroll:c},a)&&(a.addEventListener("scroll",c),l&&((e[Su].observer=new MutationObserver(c)).observe(a,{childList:!0,subtree:!0}),c()))},unbind:function(e){var t=e[Su],n=t.container,r=t.onScroll;n&&n.removeEventListener("scroll",r)},install:function(e){e.directive(Iu.name,Iu)}},Mu=Iu,Pu=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)])};Pu._withStripped=!0;var Du=i({name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(Fi.t)("el.pageHeader.title")}},content:String}},Pu,[],!1,null,null,null);Du.options.__file="packages/page-header/src/main.vue";var Fu=Du.exports;Fu.install=function(e){e.component(Fu.name,Fu)};var Ou=Fu,Lu=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)};Lu._withStripped=!0;var Ru=n(43),Nu=n.n(Ru),Uu=function(e){return e.stopPropagation()},ju=i({inject:["panel"],components:{ElCheckbox:rn.a,ElRadio:Nu.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=Uu),e("el-checkbox",Zo()([{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(g.isEqual)(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:Uu}},[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",Zo()([{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);ju.options.__file="packages/cascader-panel/src/cascader-node.vue";var Hu=ju.exports,zu=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(g.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",Zo()([{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",Zo()([{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);zu.options.__file="packages/cascader-panel/src/cascader-menu.vue";var Qu=zu.exports,Vu=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 Gu=0,qu=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=Gu++,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(g.isEqual)(e,t)}):Object(g.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(g.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(g.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")))},Vu(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(ze.isDef)(e[o])?e[o]:!!t&&!r.length;return this.hasChildren=!s,s}return!n}}]),e}();var Wu=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(g.coerceTruthyValueToArray)(e),this.nodes=e.map(function(e){return new qu(e,t.config)}),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new qu(e,this.config,t);(t?t.children:this.nodes).push(n)},e.prototype.appendNodes=function(e,t){var n=this;(e=Object(g.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){var t=this.getFlattedNodes(!1,!this.config.lazy).filter(function(t){return Object(g.valueEquals)(t.path,e)||t.value===e});return t&&t.length?t[0]:null},e}(),$u=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},Ku=yl.a.keys,Yu={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:g.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Xu=function(e){return!e.getAttribute("aria-owns")},Zu=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])}},eh=function(e){e&&(e.focus(),!Xu(e)&&e.click())},th=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 He()($u({},Yu),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(g.isEqual)(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(g.isEmpty)(t)?this.lazyLoad():(this.store=new Wu(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(g.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)})},isEmptyValue:function(e){var t=this.multiple,n=this.config.emitPath;return!(!t&&!n)&&Object(g.isEmpty)(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(g.isEmpty)(r))if(this.isEmptyValue(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(g.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 Ku.up:var n=Zu(t,-1);eh(n);break;case Ku.down:var r=Zu(t,1);eh(r);break;case Ku.left:var i=this.$refs.menu[Ju(t)-1];if(i){var a=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]');eh(a)}break;case Ku.right:var o=this.$refs.menu[Ju(t)+1];if(o){var s=o.$el.querySelector('.el-cascader-node[tabindex="-1"]');eh(s)}break;case Ku.enter:!function(e){if(e){var t=e.querySelector("input");t?t.click():Xu(e)&&e.click()}}(t);break;case Ku.esc:case Ku.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(g.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 Wu([],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}):this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter(function(e){return!e.isDisabled}).forEach(function(e){return e.doCheck(!1)}),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},Lu,[],!1,null,null,null);th.options.__file="packages/cascader-panel/src/cascader-panel.vue";var nh=th.exports;nh.install=function(e){e.component(nh.name,nh)};var rh=nh,ih=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);ih.options.__file="packages/avatar/src/main.vue";var ah=ih.exports;ah.install=function(e){e.component(ah.name,ah)};var oh=ah,sh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("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()])])])])};sh._withStripped=!0;var lh=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"),!0===this.destroyOnClose&&(this.rendered=!1)),this.$nextTick(function(){t.prevActiveElement&&t.prevActiveElement.focus()}))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},sh,[],!1,null,null,null);lh.options.__file="packages/drawer/src/main.vue";var ch=lh.exports;ch.install=function(e){e.component(ch.name,ch)};var uh=ch,hh=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)};hh._withStripped=!0;var dh=n(44),fh=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(dh).a,ElButton:q.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(Fi.t)("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(Fi.t)("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},hh,[],!1,null,null,null);fh.options.__file="packages/popconfirm/src/main.vue";var ph=fh.exports;ph.install=function(e){e.component(ph.name,ph)};var gh=ph,Ah=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.uiLoading?[n("div",e._b({class:["el-skeleton",e.animated?"is-animated":""]},"div",e.$attrs,!1),[e._l(e.count,function(t){return[e.loading?e._t("template",e._l(e.rows,function(r){return n("el-skeleton-item",{key:t+"-"+r,class:{"el-skeleton__paragraph":1!==r,"is-first":1===r,"is-last":r===e.rows&&e.rows>1},attrs:{variant:"p"}})})):e._e()]})],2)]:[e._t("default",null,null,e.$attrs)]],2)};Ah._withStripped=!0;var mh=i({name:"ElSkeleton",props:{animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:4},loading:{type:Boolean,default:!0},throttle:{type:Number,default:0}},watch:{loading:{handler:function(e){var t=this;this.throttle<=0?this.uiLoading=e:e?(clearTimeout(this.timeoutHandle),this.timeoutHandle=setTimeout(function(){t.uiLoading=t.loading},this.throttle)):this.uiLoading=e},immediate:!0}},data:function(){return{uiLoading:this.throttle<=0&&this.loading}}},Ah,[],!1,null,null,null);mh.options.__file="packages/skeleton/src/index.vue";var vh=mh.exports;vh.install=function(e){e.component(vh.name,vh)};var yh=vh,bh=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:["el-skeleton__item","el-skeleton__"+this.variant]},["image"===this.variant?t("img-placeholder"):this._e()],1)};bh._withStripped=!0;var _h=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M64 896V128h896v768H64z m64-128l192-192 116.352 116.352L640 448l256 307.2V192H128v576z m224-480a96 96 0 1 1-0.064 192.064A96 96 0 0 1 352 288z"}})])};_h._withStripped=!0;var wh=i({name:"ImgPlaceholder"},_h,[],!1,null,null,null);wh.options.__file="packages/skeleton/src/img-placeholder.vue";var xh,Ch=wh.exports,Sh=i({name:"ElSkeletonItem",props:{variant:{type:String,default:"text"}},components:(xh={},xh[Ch.name]=Ch,xh)},bh,[],!1,null,null,null);Sh.options.__file="packages/skeleton/src/item.vue";var kh=Sh.exports;kh.install=function(e){e.component(kh.name,kh)};var Eh=kh,Th=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-empty"},[n("div",{staticClass:"el-empty__image",style:e.imageStyle},[e.image?n("img",{attrs:{src:e.image,ondragstart:"return false"}}):e._t("image",[n("img-empty")])],2),n("div",{staticClass:"el-empty__description"},[e.$slots.description?e._t("description"):n("p",[e._v(e._s(e.emptyDescription))])],2),e.$slots.default?n("div",{staticClass:"el-empty__bottom"},[e._t("default")],2):e._e()])};Th._withStripped=!0;var Bh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs",[n("linearGradient",{attrs:{id:"linearGradient-1-"+e.id,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#EEEFF3",offset:"100%"}})],1),n("linearGradient",{attrs:{id:"linearGradient-2-"+e.id,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#E9EBEF",offset:"100%"}})],1),n("rect",{attrs:{id:"path-3-"+e.id,x:"0",y:"0",width:"17",height:"36"}})],1),n("g",{attrs:{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"B-type",transform:"translate(-1268.000000, -535.000000)"}},[n("g",{attrs:{id:"Group-2",transform:"translate(1268.000000, 535.000000)"}},[n("path",{attrs:{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:"#F7F8FC"}}),n("polygon",{attrs:{id:"Rectangle-Copy-14",fill:"#E5E7E9",transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"}}),n("g",{attrs:{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"}},[n("polygon",{attrs:{id:"Rectangle-Copy-10",fill:"#E5E7E9",transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"}}),n("polygon",{attrs:{id:"Rectangle-Copy-11",fill:"#EDEEF2",points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"}}),n("rect",{attrs:{id:"Rectangle-Copy-12",fill:"url(#linearGradient-1-"+e.id+")",transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"}}),n("polygon",{attrs:{id:"Rectangle-Copy-13",fill:"#F8F9FB",transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"}})]),n("rect",{attrs:{id:"Rectangle-Copy-15",fill:"url(#linearGradient-2-"+e.id+")",x:"13",y:"45",width:"40",height:"36"}}),n("g",{attrs:{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"}},[n("mask",{attrs:{id:"mask-4-"+e.id,fill:"white"}},[n("use",{attrs:{"xlink:href":"#path-3-"+e.id}})]),n("use",{attrs:{id:"Mask",fill:"#E0E3E9",transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":"#path-3-"+e.id}}),n("polygon",{attrs:{id:"Rectangle-Copy",fill:"#D5D7DE",mask:"url(#mask-4-"+e.id+")",transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 -1.70530257e-13 16"}})]),n("polygon",{attrs:{id:"Rectangle-Copy-18",fill:"#F8F9FB",transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"}})])])])])};Bh._withStripped=!0;var Ih=0,Mh=i({name:"ImgEmpty",data:function(){return{id:++Ih}}},Bh,[],!1,null,null,null);Mh.options.__file="packages/empty/src/img-empty.vue";var Ph,Dh=Mh.exports,Fh=i({name:"ElEmpty",components:(Ph={},Ph[Dh.name]=Dh,Ph),props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},computed:{emptyDescription:function(){return this.description||Object(Fi.t)("el.empty.description")},imageStyle:function(){return{width:this.imageSize?this.imageSize+"px":""}}}},Th,[],!1,null,null,null);Fh.options.__file="packages/empty/src/index.vue";var Oh=Fh.exports;Oh.install=function(e){e.component(Oh.name,Oh)};var Lh,Rh=Oh,Nh=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},Uh={name:"ElDescriptionsRow",props:{row:{type:Array}},inject:["elDescriptions"],render:function(e){var t=this.elDescriptions,n=(this.row||[]).map(function(e){return Nh({},e,{label:e.slots.label||e.props.label},["labelClassName","contentClassName","labelStyle","contentStyle"].reduce(function(n,r){return n[r]=e.props[r]||t[r],n},{}))});return"vertical"===t.direction?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map(function(n){var r;return e("th",{class:(r={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"has-colon":!t.border&&t.colon,"is-bordered-label":t.border},r[n.labelClassName]=!0,r),style:n.labelStyle,attrs:{colSpan:n.props.span}},[n.label])})]),e("tr",{class:"el-descriptions-row"},[n.map(function(t){return e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",t.contentClassName],style:t.contentStyle,attrs:{colSpan:t.props.span}},[t.slots.default])})])]):t.border?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map(function(n){var r;return[e("th",{class:(r={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"is-bordered-label":t.border},r[n.labelClassName]=!0,r),style:n.labelStyle,attrs:{colSpan:"1"}},[n.label]),e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",n.contentClassName],style:n.contentStyle,attrs:{colSpan:2*n.props.span-1}},[n.slots.default])]})])]):e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map(function(n){var r;return e("td",{class:"el-descriptions-item el-descriptions-item__cell",attrs:{colSpan:n.props.span}},[e("div",{class:"el-descriptions-item__container"},[e("span",{class:(r={"el-descriptions-item__label":!0,"has-colon":t.colon},r[n.labelClassName]=!0,r),style:n.labelStyle},[n.props.label]),e("span",{class:["el-descriptions-item__content",n.contentClassName],style:n.contentStyle},[n.slots.default])])])})])])}},jh=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},Hh={name:"ElDescriptions",components:(Lh={},Lh[Uh.name]=Uh,Lh),props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String},title:{type:String,default:""},extra:{type:String,default:""},labelStyle:{type:Object},contentStyle:{type:Object},labelClassName:{type:String,default:""},contentClassName:{type:String,default:""},colon:{type:Boolean,default:!0}},computed:{descriptionsSize:function(){return this.size||(this.$ELEMENT||{}).size}},provide:function(){return{elDescriptions:this}},methods:{getOptionProps:function(e){if(e.componentOptions){var t=e.componentOptions,n=t.propsData,r=void 0===n?{}:n,i=t.Ctor,a=((void 0===i?{}:i).options||{}).props||{},o={};for(var s in a){var l=a[s].default;void 0!==l&&(o[s]=Object(ys.isFunction)(l)?l.call(e):l)}return jh({},o,r)}return{}},getSlots:function(e){var t=this,n=e.componentOptions||{},r={};return(e.children||n.children||[]).forEach(function(e){if(!t.isEmptyElement(e)){var n=e.data&&e.data.slot||"default";r[n]=r[n]||[],"template"===e.tag?r[n].push(e.children):r[n].push(e)}}),jh({},r)},isEmptyElement:function(e){return!(e.tag||e.text&&""!==e.text.trim())},filledNode:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.props||(e.props={}),t>n&&(e.props.span=n),r&&(e.props.span=n),e},getRows:function(){var e=this,t=(this.$slots.default||[]).filter(function(e){return e.tag&&e.componentOptions&&"ElDescriptionsItem"===e.componentOptions.Ctor.options.name}),n=t.map(function(t){return{props:e.getOptionProps(t),slots:e.getSlots(t),vnode:t}}),r=[],i=[],a=this.column;return n.forEach(function(n,o){var s=n.props.span||1;if(o===t.length-1)return i.push(e.filledNode(n,s,a,!0)),void r.push(i);s<a?(a-=s,i.push(n)):(i.push(e.filledNode(n,s,a)),r.push(i),a=e.column,i=[])}),r}},render:function(){var e=arguments[0],t=this.title,n=this.extra,r=this.border,i=this.descriptionsSize,a=this.$slots,o=this.getRows();return e("div",{class:"el-descriptions"},[t||n||a.title||a.extra?e("div",{class:"el-descriptions__header"},[e("div",{class:"el-descriptions__title"},[a.title?a.title:t]),e("div",{class:"el-descriptions__extra"},[a.extra?a.extra:n])]):null,e("div",{class:"el-descriptions__body"},[e("table",{class:["el-descriptions__table",{"is-bordered":r},i?"el-descriptions--"+i:""]},[o.map(function(t){return e(Uh,{attrs:{row:t}})})])])])},install:function(e){e.component(Hh.name,Hh)}},zh=Hh,Qh={name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},contentClassName:{type:String,default:""},contentStyle:{type:Object},labelClassName:{type:String,default:""},labelStyle:{type:Object}},render:function(){return null},install:function(e){e.component(Qh.name,Qh)}},Vh=Qh,Gh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-result"},[n("div",{staticClass:"el-result__icon"},[e._t("icon",[n(e.iconElement,{tag:"component",class:e.iconElement})])],2),e.title||e.$slots.title?n("div",{staticClass:"el-result__title"},[e._t("title",[n("p",[e._v(e._s(e.title))])])],2):e._e(),e.subTitle||e.$slots.subTitle?n("div",{staticClass:"el-result__subtitle"},[e._t("subTitle",[n("p",[e._v(e._s(e.subTitle))])])],2):e._e(),e.$slots.extra?n("div",{staticClass:"el-result__extra"},[e._t("extra")],2):e._e()])};Gh._withStripped=!0;var qh=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M34.5548098,16.4485711 C33.9612228,15.8504763 32.9988282,15.8504763 32.4052412,16.4485711 L32.4052412,16.4485711 L21.413757,27.5805811 L21.413757,27.5805811 L21.4034642,27.590855 C21.0097542,27.9781674 20.3766105,27.9729811 19.9892981,27.5792711 L19.9892981,27.5792711 L15.5947588,23.1121428 C15.0011718,22.514048 14.0387772,22.514048 13.4451902,23.1121428 C12.8516033,23.7102376 12.8516033,24.6799409 13.4451902,25.2780357 L13.4451902,25.2780357 L19.6260786,31.5514289 C20.2196656,32.1495237 21.1820602,32.1495237 21.7756472,31.5514289 L21.7756472,31.5514289 L34.5548098,18.614464 C35.1483967,18.0163692 35.1483967,17.0466659 34.5548098,16.4485711 Z"}})])};qh._withStripped=!0;var Wh=i({name:"IconSuccess"},qh,[],!1,null,null,null);Wh.options.__file="packages/result/src/icon-success.vue";var $h=Wh.exports,Kh=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.57818,15.42182 C32.0157534,14.8593933 31.1038797,14.8593933 30.541453,15.42182 L30.541453,15.42182 L24.0006789,21.9625941 L17.458547,15.42182 C16.8961203,14.8593933 15.9842466,14.8593933 15.42182,15.42182 C14.8593933,15.9842466 14.8593933,16.8961203 15.42182,17.458547 L15.42182,17.458547 L21.9639519,23.9993211 L15.42182,30.541453 C14.8593933,31.1038797 14.8593933,32.0157534 15.42182,32.57818 C15.9842466,33.1406067 16.8961203,33.1406067 17.458547,32.57818 L17.458547,32.57818 L24.0006789,26.0360481 L30.541453,32.57818 C31.1038797,33.1406067 32.0157534,33.1406067 32.57818,32.57818 C33.1406067,32.0157534 33.1406067,31.1038797 32.57818,30.541453 L32.57818,30.541453 L26.0374059,23.9993211 L32.57818,17.458547 C33.1406067,16.8961203 33.1406067,15.9842466 32.57818,15.42182 Z"}})])};Kh._withStripped=!0;var Yh=i({name:"IconError"},Kh,[],!1,null,null,null);Yh.options.__file="packages/result/src/icon-error.vue";var Xh=Yh.exports,Zh=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,31 C22.8954305,31 22,31.8954305 22,33 C22,34.1045695 22.8954305,35 24,35 C25.1045695,35 26,34.1045695 26,33 C26,31.8954305 25.1045695,31 24,31 Z M24,14 C23.1715729,14 22.5,14.6715729 22.5,15.5 L22.5,15.5 L22.5,27.5 C22.5,28.3284271 23.1715729,29 24,29 C24.8284271,29 25.5,28.3284271 25.5,27.5 L25.5,27.5 L25.5,15.5 C25.5,14.6715729 24.8284271,14 24,14 Z"}})])};Zh._withStripped=!0;var Jh=i({name:"IconWarning"},Zh,[],!1,null,null,null);Jh.options.__file="packages/result/src/icon-warning.vue";var ed=Jh.exports,td=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,19 L21,19 C20.1715729,19 19.5,19.6715729 19.5,20.5 C19.5,21.3284271 20.1715729,22 21,22 L21,22 L22.5,22 L22.5,31 L21,31 C20.1715729,31 19.5,31.6715729 19.5,32.5 C19.5,33.3284271 20.1715729,34 21,34 L21,34 L27,34 C27.8284271,34 28.5,33.3284271 28.5,32.5 C28.5,31.6715729 27.8284271,31 27,31 L27,31 L25.5,31 L25.5,20.5 C25.5,19.6715729 24.8284271,19 24,19 L24,19 Z M24,13 C22.8954305,13 22,13.8954305 22,15 C22,16.1045695 22.8954305,17 24,17 C25.1045695,17 26,16.1045695 26,15 C26,13.8954305 25.1045695,13 24,13 Z"}})])};td._withStripped=!0;var nd=i({name:"IconInfo"},td,[],!1,null,null,null);nd.options.__file="packages/result/src/icon-info.vue";var rd,id=nd.exports,ad={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},od=i({name:"ElResult",components:(rd={},rd[$h.name]=$h,rd[Xh.name]=Xh,rd[ed.name]=ed,rd[id.name]=id,rd),props:{title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,default:"info"}},computed:{iconElement:function(){var e=this.icon;return e&&ad[e]?ad[e]:"icon-info"}}},Gh,[],!1,null,null,null);od.options.__file="packages/result/src/index.vue";var sd=od.exports;sd.install=function(e){e.component(sd.name,sd)};var ld=sd,cd=[m,E,V,X,te,ae,me,Ce,Ie,Fe,Ge,Ye,et,at,ct,ft,mt,_t,St,Ht,zt,qt,Yt,en,rr,ur,si,gi,Ci,Ii,Pi,na,oa,ua,va,ka,Ia,Da,Xa,no,xo,jo,zo,Go,os,us,ps,Is,Fs,Ns,zs,qs,Zs,nl,ol,ul,pl,kl,nc,cc,fc,mc,_c,Sc,Bc,Pc,Lc,jc,Vc,su,mu,wu,Ou,rh,oh,uh,gh,yh,Eh,Rh,zh,Vh,ld,ye.a],ud=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Oi.a.use(t.locale),Oi.a.i18n(t.i18n),cd.forEach(function(t){e.component(t.name,t)}),e.use(Mu),e.use(Lo.directive),e.prototype.$ELEMENT={size:t.size||"",zIndex:t.zIndex||2e3},e.prototype.$loading=Lo.service,e.prototype.$msgbox=Zi,e.prototype.$alert=Zi.alert,e.prototype.$confirm=Zi.confirm,e.prototype.$prompt=Zi.prompt,e.prototype.$notify=fo,e.prototype.$message=ks};"undefined"!=typeof window&&window.Vue&&ud(window.Vue);t.default={version:"2.15.6",locale:Oi.a.use,i18n:Oi.a.i18n,install:ud,CollapseTransition:ye.a,Loading:Lo,Pagination:m,Dialog:E,Autocomplete:V,Dropdown:X,DropdownMenu:te,DropdownItem:ae,Menu:me,Submenu:Ce,MenuItem:Ie,MenuItemGroup:Fe,Input:Ge,InputNumber:Ye,Radio:et,RadioGroup:at,RadioButton:ct,Checkbox:ft,CheckboxButton:mt,CheckboxGroup:_t,Switch:St,Select:Ht,Option:zt,OptionGroup:qt,Button:Yt,ButtonGroup:en,Table:rr,TableColumn:ur,DatePicker:si,TimeSelect:gi,TimePicker:Ci,Popover:Ii,Tooltip:Pi,MessageBox:Zi,Breadcrumb:na,BreadcrumbItem:oa,Form:ua,FormItem:va,Tabs:ka,TabPane:Ia,Tag:Da,Tree:Xa,Alert:no,Notification:fo,Slider:xo,Icon:jo,Row:zo,Col:Go,Upload:os,Progress:us,Spinner:ps,Message:ks,Badge:Is,Card:Fs,Rate:Ns,Steps:zs,Step:qs,Carousel:Zs,Scrollbar:nl,CarouselItem:ol,Collapse:ul,CollapseItem:pl,Cascader:kl,ColorPicker:nc,Transfer:cc,Container:fc,Header:mc,Aside:_c,Main:Sc,Footer:Bc,Timeline:Pc,TimelineItem:Lc,Link:jc,Divider:Vc,Image:su,Calendar:mu,Backtop:wu,InfiniteScroll:Mu,PageHeader:Ou,CascaderPanel:rh,Avatar:oh,Drawer:uh,Popconfirm:gh,Skeleton:yh,SkeletonItem:Eh,Empty:Rh,Descriptions:zh,DescriptionsItem:Vh,Result:ld}}]).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}},zW4X:function(e,t,n){"use strict";var r={};function i(e,t){var n;return"string"!=typeof t&&(t=i.defaultChars),n=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),i.push(n);for(t=0;t<e.length;t++)i[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return i}(t),e.replace(/(%[a-f0-9]{2})+/gi,function(e){var t,r,i,a,o,s,l,c="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?c+=n[i]:192==(224&i)&&t+3<r&&128==(192&(a=parseInt(e.slice(t+4,t+6),16)))?(c+=(l=i<<6&1984|63&a)<128?"��":String.fromCharCode(l),t+=3):224==(240&i)&&t+6<r&&(a=parseInt(e.slice(t+4,t+6),16),o=parseInt(e.slice(t+7,t+9),16),128==(192&a)&&128==(192&o))?(c+=(l=i<<12&61440|a<<6&4032|63&o)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&i)&&t+9<r&&(a=parseInt(e.slice(t+4,t+6),16),o=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&a)&&128==(192&o)&&128==(192&s))?((l=i<<18&1835008|a<<12&258048|o<<6&4032|63&s)<65536||l>1114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="�";return c})}i.defaultChars=";/?:@&=+$,#",i.componentChars="",e.exports=i}});
  444. //# sourceMappingURL=vendor.99a913bcc02dad4e392a.js.map