import{a as ND,r as OD,V as Uoe}from"./index-x3tWs_0_.js";import{z as s2,a8 as GC,ag as q3,y as Jx,g as joe,r as PC,w as HG,d as FG,c as YG,o as OC,h as TG,i as Hoe,l as W3,_ as Yoe,L as Joe,b as LG,W as Woe,D as qoe,H as zoe,E as MQ,e as FQ,q as Koe,S as NG}from"./index-2AiR4orY.js";function Voe(mo){return s2({url:`${GC}/dcLibrary/file/get/url/${mo.id}`,method:"get",params:mo,headers:{dcLibraryId:mo.id,documentId:mo.id,"is-cancel-token":"isCancelToken"}})}function Zoe(mo){return s2({url:`${GC}/dcLibrary/template/get/${mo}`,method:"get"})}function Ise(mo){return s2({url:`${GC}/no/auth/statistics/${mo}`,method:"get"})}function bse(mo){return s2({url:`${GC}/dcLibrary/log/page`,method:"get",params:mo})}const Cse=()=>s2({url:`${GC}/update/folder/get/folder/key`,method:"get"}),wse=mo=>s2({url:`${GC}/update/folder/${mo}`,method:"get"});function Ese(mo,Fg="jvs-public",ua,vi){return s2({url:`/mgr/jvs-auth/upload/${Fg}`,method:"post",headers:{businessId:vi,type:"FormData","Content-Type":"application/x-www-form-urlencoded"},data:mo,decode:!1,onUploadProgress(Bo){let Gs=(Bo.loaded/Bo.total*100).toFixed(0);ua&&typeof ua=="function"&&ua(Gs)}})}const Bse=mo=>s2({url:`${GC}/update/folder/update/file`,method:"post",data:mo,decode:!1});var Ux={exports:{}},Xoe=Ux.exports,OG;function $oe(){return OG||(OG=1,function(mo,Fg){(function(ua,vi){mo.exports=vi(ND(),OD())})(Xoe,function(ua,vi){function Bo(a){return(Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(a)}function Gs(a){var c=function(u,h){if(Bo(u)!="object"||!u)return u;var d=u[Symbol.toPrimitive];if(d!==void 0){var p=d.call(u,h);if(Bo(p)!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(u)}(a,"string");return Bo(c)=="symbol"?c:c+""}function Wr(a,c,u){return(c=Gs(c))in a?Object.defineProperty(a,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[c]=u,a}function Ua(a){if(Array.isArray(a))return a}function Va(a,c){(c==null||c>a.length)&&(c=a.length);for(var u=0,h=Array(c);u1&&arguments[1]!==void 0?arguments[1]:"";Et(this,a),typeof c=="string"?(this.el=document.createElement(c),this.el.className=u):this.el=c,this.data={}}return xt(a,[{key:"data",value:function(c,u){return u!==void 0?(this.data[c]=u,this):this.data[c]}},{key:"on",value:function(c,u){var h=wc(c.split(".")),d=h[0],p=h.slice(1),g=d;return g==="mousewheel"&&/Firefox/i.test(window.navigator.userAgent)&&(g="DOMMouseScroll"),this.el.addEventListener(g,function(A){u(A);for(var m=0;m0&&arguments[0]!==void 0?arguments[0]:"active";return this.toggleClass(c)}},{key:"toggleClass",value:function(c){return this.el.classList.toggle(c)}},{key:"active",value:function(){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"active";return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.addClass(c):this.removeClass(c),this}},{key:"checked",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.active(c,"checked"),this}},{key:"disabled",value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.addClass("disabled"):this.removeClass("disabled"),this}},{key:"attr",value:function(c,u){var h=this;if(u!==void 0)this.el.setAttribute(c,u);else{if(typeof c=="string")return this.el.getAttribute(c);Object.keys(c).forEach(function(d){h.el.setAttribute(d,c[d])})}return this}},{key:"removeAttr",value:function(c){return this.el.removeAttribute(c),this}},{key:"html",value:function(c){return c!==void 0?(this.el.innerHTML=c,this):this.el.innerHTML}},{key:"val",value:function(c){return c!==void 0?(this.el.value=c,this):this.el.value}},{key:"focus",value:function(){this.el.focus()}},{key:"cssRemoveKeys",value:function(){for(var c=this,u=arguments.length,h=new Array(u),d=0;d1&&arguments[1]!==void 0?arguments[1]:"")};function Ni(a){return function(c){if(Array.isArray(c))return Va(c)}(a)||jc(a)||Wn(a)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var wh=["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"];function vl(a){for(var c="",u=a;u>=wh.length;)u/=wh.length,u-=1,c+=wh[parseInt(u,10)%wh.length];return c+=wh[a%wh.length]}function Eh(a){for(var c=0,u=0;u!==a.length;++u)c=26*c+a.charCodeAt(u)-64;return c-1}function Da(a){for(var c="",u="",h=0;h="0"&&a.charAt(h)<="9"?u+=a.charAt(h):c+=a.charAt(h);return[Eh(c),parseInt(u,10)-1]}function Kt(a,c){return"".concat(vl(a)).concat(c+1)}function er(a,c,u){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0};if(c===0&&u===0)return a;var d=En(Da(a),2),p=d[0],g=d[1];return h(p,g)?Kt(p+c,g+u):a}var xr=function(){function a(c,u,h,d){var p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;Et(this,a),this.sri=c,this.sci=u,this.eri=h,this.eci=d,this.w=p,this.h=g}return xt(a,[{key:"set",value:function(c,u,h,d){this.sri=c,this.sci=u,this.eri=h,this.eci=d}},{key:"multiple",value:function(){return this.eri-this.sri>0||this.eci-this.sci>0}},{key:"includes",value:function(){for(var c=0,u=0,h=arguments.length,d=new Array(h),p=0;p1&&arguments[1]!==void 0?arguments[1]:function(){return!0},h=this.sri,d=this.sci,p=this.eri,g=this.eci,A=h;A<=p;A+=1)if(u(A))for(var m=d;m<=g;m+=1)c(A,m)}},{key:"contains",value:function(c){return this.sri<=c.sri&&this.sci<=c.sci&&this.eri>=c.eri&&this.eci>=c.eci}},{key:"within",value:function(c){return this.sri>=c.sri&&this.sci>=c.sci&&this.eri<=c.eri&&this.eci<=c.eci}},{key:"disjoint",value:function(c){return this.sri>c.eri||this.sci>c.eci||c.sri>this.eri||c.sci>this.eci}},{key:"intersects",value:function(c){return this.sri<=c.eri&&this.sci<=c.eci&&c.sri<=this.eri&&c.sci<=this.eci}},{key:"union",value:function(c){var u=this.sri,h=this.sci,d=this.eri,p=this.eci;return new a(c.srid?c.eri:d,c.eci>p?c.eci:p)}},{key:"difference",value:function(c){var u=[],h=function(E,B,S,_){u.push(new a(E,B,S,_))},d=this.sri,p=this.sci,g=this.eri,A=this.eci,m=c.sri-d,y=c.sci-p,b=g-c.eri,I=A-c.eci;return m>0?(h(d,p,c.sri-1,A),b>0?(h(c.eri+1,p,g,A),y>0&&h(c.sri,p,c.eri,c.sci-1),I>0&&h(c.sri,c.eci+1,c.eri,A)):(y>0&&h(c.sri,p,g,c.sci-1),I>0&&h(c.sri,c.eci+1,g,A))):b>0&&(h(c.eri+1,p,g,A),y>0&&h(d,p,c.eri,c.sci-1),I>0&&h(d,c.eci+1,c.eri,A)),y>0?(h(d,p,g,c.sci-1),I>0?(h(d,c.eri+1,g,A),m>0&&h(d,c.sci,c.sri-1,c.eci),b>0&&h(c.sri+1,c.sci,g,c.eci)):(m>0&&h(d,c.sci,c.sri-1,A),b>0&&h(c.sri+1,c.sci,g,A))):I>0&&(h(g,c.eci+1,g,A),m>0&&h(d,p,c.sri-1,c.eci),b>0&&h(c.eri+1,p,g,c.eci)),u}},{key:"size",value:function(){return[this.eri-this.sri+1,this.eci-this.sci+1]}},{key:"toString",value:function(){var c=this.sri,u=this.sci,h=this.eri,d=this.eci,p=Kt(u,c);return this.multiple()&&(p="".concat(p,":").concat(Kt(d,h))),p}},{key:"clone",value:function(){return new a(this.sri,this.sci,this.eri,this.eci,this.w,this.h)}},{key:"equals",value:function(c){return this.eri===c.eri&&this.eci===c.eci&&this.sri===c.sri&&this.sci===c.sci}}],[{key:"valueOf",value:function(c){var u=c.split(":"),h=En(Da(u[0]),2),d=h[0],p=h[1],g=p,A=d;if(u.length>1){var m=En(Da(u[1]),2);A=m[0],g=m[1]}return new a(p,d,g,A)}}])}(),Hn=function(){return xt(function a(){Et(this,a),this.range=new xr(0,0,0,0),this.ri=0,this.ci=0},[{key:"multiple",value:function(){return this.range.multiple()}},{key:"setIndexes",value:function(a,c){this.ri=a,this.ci=c}},{key:"size",value:function(){return this.range.size()}}])}(),kt=xt(function a(){Et(this,a),this.x=0,this.y=0,this.ri=0,this.ci=0}),da=function(){return xt(function a(){Et(this,a),this.undoItems=[],this.redoItems=[]},[{key:"add",value:function(a){this.undoItems.push(JSON.stringify(a)),this.redoItems=[]}},{key:"canUndo",value:function(){return this.undoItems.length>0}},{key:"canRedo",value:function(){return this.redoItems.length>0}},{key:"undo",value:function(a,c){var u=this.undoItems,h=this.redoItems;this.canUndo()&&(h.push(JSON.stringify(a)),c(JSON.parse(u.pop())))}},{key:"redo",value:function(a,c){var u=this.undoItems,h=this.redoItems;this.canRedo()&&(u.push(JSON.stringify(a)),c(JSON.parse(h.pop())))}}])}(),cs=function(){return xt(function a(){Et(this,a),this.range=null,this.state="clear"},[{key:"copy",value:function(a){return this.range=a,this.state="copy",this}},{key:"cut",value:function(a){return this.range=a,this.state="cut",this}},{key:"isCopy",value:function(){return this.state==="copy"}},{key:"isCut",value:function(){return this.state==="cut"}},{key:"isClear",value:function(){return this.state==="clear"}},{key:"clear",value:function(){this.range=null,this.state="clear"}}])}(),Yn=function(){return xt(function a(c,u,h){Et(this,a),this.ci=c,this.operator=u,this.value=h},[{key:"set",value:function(a,c){this.operator=a,this.value=c}},{key:"includes",value:function(a){var c=this.operator,u=this.value;return c==="all"||c==="in"&&u.includes(a)}},{key:"vlength",value:function(){var a=this.operator,c=this.value;return a==="in"?c.length:0}},{key:"getData",value:function(){return{ci:this.ci,operator:this.operator,value:this.value}}}])}(),Xu=function(){return xt(function a(c,u){Et(this,a),this.ci=c,this.order=u},[{key:"asc",value:function(){return this.order==="asc"}},{key:"desc",value:function(){return this.order==="desc"}}])}(),ca=function(){return xt(function a(){Et(this,a),this.ref=null,this.filters=[],this.sort=null},[{key:"setData",value:function(a){var c=a.ref,u=a.filters,h=a.sort;c!=null&&(this.ref=c,this.filters=u.map(function(d){return new Yn(d.ci,d.operator,d.value)}),h&&(this.sort=new Xu(h.ci,h.order)))}},{key:"getData",value:function(){if(this.active()){var a=this.ref,c=this.filters,u=this.sort;return{ref:a,filters:c.map(function(h){return h.getData()}),sort:u}}return{}}},{key:"addFilter",value:function(a,c,u){var h=this.getFilter(a);h==null?this.filters.push(new Yn(a,c,u)):h.set(c,u)}},{key:"setSort",value:function(a,c){this.sort=c?new Xu(a,c):null}},{key:"includes",value:function(a,c){return!!this.active()&&this.hrange().includes(a,c)}},{key:"getSort",value:function(a){var c=this.sort;return c&&c.ci===a?c:null}},{key:"getFilter",value:function(a){for(var c=this.filters,u=0;u0&&arguments[0]!==void 0?arguments[0]:[];Et(this,a),this._=c}return xt(a,[{key:"forEach",value:function(c){this._.forEach(c)}},{key:"deleteWithin",value:function(c){this._=this._.filter(function(u){return!u.within(c)})}},{key:"getFirstIncludes",value:function(c,u){for(var h=0;h=u?(b.sri+=h,b.eri+=h):g=u?(b.sci+=h,b.eci+=h):A0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length,u=new Array(c>1?c-1:0),h=1;h5?A.toFixed(2):A;return A.toFixed(Math.max(h,d))}const Bi={cloneDeep:function(a){return JSON.parse(JSON.stringify(a))},merge:function(){for(var a=arguments.length,c=new Array(a),u=0;u1&&arguments[1]!==void 0?arguments[1]:function(d){return d},u=0,h=0;return Object.keys(a).forEach(function(d){u+=c(a[d],d),h+=1}),[u,h]},rangeEach:function(a,c,u){for(var h=a;hd);m+=1)g+=A=p(m);return[m,g-A,A]},deleteProperty:function(a,c){var u=a["".concat(c)];return delete a["".concat(c)],u},numberCalc:Ri};var si=function(){return xt(function a(c){var u=c.len,h=c.height;Et(this,a),this._={},this.len=u,this.height=h},[{key:"getHeight",value:function(a){if(this.isHide(a))return 0;var c=this.get(a);return c&&c.height?c.height:this.height}},{key:"setHeight",value:function(a,c){this.getOrNew(a).height=c}},{key:"unhide",value:function(a){for(var c=a;c>0&&(c-=1,this.isHide(c));)this.setHide(c,!1)}},{key:"isHide",value:function(a){var c=this.get(a);return c&&c.hide}},{key:"setHide",value:function(a,c){var u=this.getOrNew(a);c===!0?u.hide=!0:delete u.hide}},{key:"setStyle",value:function(a,c){this.getOrNew(a).style=c}},{key:"sumHeight",value:function(a,c,u){var h=this;return Bi.rangeSum(a,c,function(d){return u&&u.has(d)?0:h.getHeight(d)})}},{key:"totalHeight",value:function(){return this.sumHeight(0,this.len)}},{key:"get",value:function(a){return this._[a]}},{key:"getOrNew",value:function(a){return this._[a]=this._[a]||{cells:{}},this._[a]}},{key:"getCell",value:function(a,c){var u=this.get(a);return u!==void 0&&u.cells!==void 0&&u.cells[c]!==void 0?u.cells[c]:null}},{key:"getCellMerge",value:function(a,c){var u=this.getCell(a,c);return u&&u.merge?u.merge:[0,0]}},{key:"getCellOrNew",value:function(a,c){var u=this.getOrNew(a);return u.cells[c]=u.cells[c]||{},u.cells[c]}},{key:"setCell",value:function(a,c,u){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"all",d=this.getOrNew(a);h==="all"?d.cells[c]=u:h==="text"?(d.cells[c]=d.cells[c]||{},d.cells[c].text=u.text):h==="format"&&(d.cells[c]=d.cells[c]||{},d.cells[c].style=u.style,u.merge&&(d.cells[c].merge=u.merge))}},{key:"setCellText",value:function(a,c,u){var h=this.getCellOrNew(a,c);h.editable!==!1&&(h.text=u)}},{key:"copyPaste",value:function(a,c,u){var h=this,d=arguments.length>3&&arguments[3]!==void 0&&arguments[3],p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},g=a.sri,A=a.sci,m=a.eri,y=a.eci,b=c.sri,I=c.sci,E=c.eri,B=c.eci,S=En(a.size(),2),_=S[0],D=S[1],T=En(c.size(),2),F=T[0],N=T[1],H=!0,W=0;(E0){var ne=Z.text,j=de-I+(ue-b)+2;if(H||(j-=W+1),ne[0]==="=")Z.text=ne.replace(/[a-zA-Z]{1,3}\d+/g,function(z){var X=0,se=0;return g===b?X=j-1:se=j-1,/^\d+$/.test(z)?z:er(z,X,se)});else if(_<=1&&D>1&&(b>m||E1&&(I>y||B1&&arguments[1]!==void 0?arguments[1]:1,h={};this.each(function(d,p){var g=parseInt(d,10);g>=a&&(g+=u,c.eachCells(d,function(A,m){m.text&&m.text[0]==="="&&(m.text=m.text.replace(/[a-zA-Z]{1,3}\d+/g,function(y){return er(y,0,u,function(b,I){return I>=a})}))})),h[g]=p}),this._=h,this.len+=u}},{key:"delete",value:function(a,c){var u=this,h=c-a+1,d={};this.each(function(p,g){var A=parseInt(p,10);Ac&&(d[A-h]=g,u.eachCells(p,function(m,y){y.text&&y.text[0]==="="&&(y.text=y.text.replace(/[a-zA-Z]{1,3}\d+/g,function(b){return er(b,0,-h,function(I,E){return E>c})}))}))}),this._=d,this.len-=h}},{key:"insertColumn",value:function(a){var c=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.each(function(h,d){var p={};c.eachCells(h,function(g,A){var m=parseInt(g,10);m>=a&&(m+=u,A.text&&A.text[0]==="="&&(A.text=A.text.replace(/[a-zA-Z]{1,3}\d+/g,function(y){return er(y,u,0,function(b){return b>=a})}))),p[m]=A}),d.cells=p})}},{key:"deleteColumn",value:function(a,c){var u=this,h=c-a+1;this.each(function(d,p){var g={};u.eachCells(d,function(A,m){var y=parseInt(A,10);yc&&(g[y-h]=m,m.text&&m.text[0]==="="&&(m.text=m.text.replace(/[a-zA-Z]{1,3}\d+/g,function(b){return er(b,-h,0,function(I){return I>c})})))}),p.cells=g})}},{key:"deleteCells",value:function(a){var c=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";a.each(function(h,d){c.deleteCell(h,d,u)})}},{key:"deleteCell",value:function(a,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"all",h=this.get(a);if(h!==null){var d=this.getCell(a,c);d!==null&&d.editable!==!1&&(u==="all"?delete h.cells[c]:u==="text"?(d.text&&delete d.text,d.value&&delete d.value):u==="format"?(d.style!==void 0&&delete d.style,d.merge&&delete d.merge):u==="merge"&&d.merge&&delete d.merge)}}},{key:"maxCell",value:function(){var a=Object.keys(this._),c=a[a.length-1],u=this._[c];if(u){var h=u.cells,d=Object.keys(h),p=d[d.length-1];return[parseInt(c,10),parseInt(p,10)]}return[0,0]}},{key:"each",value:function(a){Object.entries(this._).forEach(function(c){var u=En(c,2),h=u[0],d=u[1];a(h,d)})}},{key:"eachCells",value:function(a,c){this._[a]&&this._[a].cells&&Object.entries(this._[a].cells).forEach(function(u){var h=En(u,2),d=h[0],p=h[1];c(d,p)})}},{key:"setData",value:function(a){a.len&&(this.len=a.len,delete a.len),this._=a}},{key:"getData",value:function(){var a=this.len;return Object.assign({len:a},this._)}}])}(),ls=function(){return xt(function a(c){var u=c.len,h=c.width,d=c.indexWidth,p=c.minWidth;Et(this,a),this._={},this.len=u,this.width=h,this.indexWidth=d,this.minWidth=p},[{key:"setData",value:function(a){a.len&&(this.len=a.len,delete a.len),this._=a}},{key:"getData",value:function(){var a=this.len;return Object.assign({len:a},this._)}},{key:"getWidth",value:function(a){if(this.isHide(a))return 0;var c=this._[a];return c&&c.width?c.width:this.width}},{key:"getOrNew",value:function(a){return this._[a]=this._[a]||{},this._[a]}},{key:"setWidth",value:function(a,c){this.getOrNew(a).width=c}},{key:"unhide",value:function(a){for(var c=a;c>0&&(c-=1,this.isHide(c));)this.setHide(c,!1)}},{key:"isHide",value:function(a){var c=this._[a];return c&&c.hide}},{key:"setHide",value:function(a,c){var u=this.getOrNew(a);c===!0?u.hide=!0:delete u.hide}},{key:"setStyle",value:function(a,c){this.getOrNew(a).style=c}},{key:"sumWidth",value:function(a,c){var u=this;return Bi.rangeSum(a,c,function(h){return u.getWidth(h)})}},{key:"totalWidth",value:function(){return this.sumWidth(0,this.len)}}])}();function oo(a,c){var u=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=function(m,y){if(m){if(typeof m=="string")return hs(m,y);var b={}.toString.call(m).slice(8,-1);return b==="Object"&&m.constructor&&(b=m.constructor.name),b==="Map"||b==="Set"?Array.from(m):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?hs(m,y):void 0}}(a))||c){u&&(a=u);var h=0,d=function(){};return{s:d,n:function(){return h>=a.length?{done:!0}:{done:!1,value:a[h++]}},e:function(m){throw m},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,g=!0,A=!1;return{s:function(){u=u.call(a)},n:function(){var m=u.next();return g=m.done,m},e:function(m){A=!0,p=m},f:function(){try{g||u.return==null||u.return()}finally{if(A)throw p}}}}function hs(a,c){(c==null||c>a.length)&&(c=a.length);for(var u=0,h=Array(c);u A",asc:"Sort A -> Z"},filter:{empty:"empty"},dataValidation:{mode:"Mode",range:"Cell Range",criteria:"Criteria",modeType:{cell:"Cell",column:"Colun",row:"Row"},type:{list:"List",number:"Number",date:"Date",phone:"Phone",email:"Email"},operator:{be:"between",nbe:"not betwwen",lt:"less than",lte:"less than or equal to",gt:"greater than",gte:"greater than or equal to",eq:"equal to",neq:"not equal to"}}}};function Ca(a,c){if(c){var u,h=oo(bu);try{for(h.s();!(u=h.n()).done;){var d=u.value;if(!c[d])break;for(var p=c[d],g=a.match(/(?:\\.|[^.])+/g),A=0;A2&&arguments[2]!==void 0&&arguments[2]?bu=[a]:bu.unshift(a),c&&(Ji[a]=c)}var Xo={phone:/^[1-9]\d{10}$/,email:/w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/};function la(a,c){var u="";if(!a){for(var h=arguments.length,d=new Array(h>2?h-2:0),p=2;p=this.parseValue(A)&&p<=this.parseValue(m),"between",A,m)}if(u==="nbe"){var y=En(h,2),b=y[0],I=y[1];return la(pthis.parseValue(I),"notBetween",b,I)}if(u==="eq")return la(p===this.parseValue(h),"equal",h);if(u==="neq")return la(p!==this.parseValue(h),"notEqual",h);if(u==="lt")return la(pthis.parseValue(h),"greaterThan",h);if(u==="gte")return la(p>=this.parseValue(h),"greaterThanEqual",h)}return[!0]}}])}(),qi=function(){function a(c,u,h){Et(this,a),this.refs=u,this.mode=c,this.validator=h}return xt(a,[{key:"includes",value:function(c,u){for(var h=this.refs,d=0;d0}).map(function(a){return a.getData()})}},{key:"setData",value:function(a){this._=a.map(function(c){return qi.valueOf(c)})}}])}(),zi={mode:"edit",view:{height:function(){return document.documentElement.clientHeight},width:function(){return document.documentElement.clientWidth}},showGrid:!0,showToolbar:!0,showContextmenu:!0,showBottomBar:!0,row:{len:100,height:25},col:{len:26,width:100,indexWidth:60,minWidth:60},style:{bgcolor:"#ffffff",align:"left",valign:"middle",textwrap:!1,strike:!1,underline:!1,color:"#0a0a0a",font:{name:"Arial",size:10,bold:!1,italic:!1},format:"normal"}};function Ao(a,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},h=this.merges,d=c.clone(),p=En(a.size(),2),g=p[0],A=p[1],m=En(c.size(),2),y=m[0],b=m[1];return g>y&&(d.eri=c.sri+g-1),A>b&&(d.eci=c.sci+A-1),!h.intersects(d)||(u(Wi("error.pasteForMergedCell")),!1)}function Bn(a,c,u){var h=arguments.length>3&&arguments[3]!==void 0&&arguments[3],d=this.rows,p=this.merges;u!=="all"&&u!=="format"||(d.deleteCells(c,u),p.deleteWithin(c)),d.copyPaste(a,c,u,h,function(g,A,m){if(m&&m.merge){var y=En(m.merge,2),b=y[0],I=y[1];if(b<=0&&I<=0)return;p.add(new xr(g,A,g+b,A+I))}})}function Kn(a,c){var u=this.clipboard,h=this.rows,d=this.merges;h.cutPaste(a,c),d.move(a,c.sri-a.sri,c.sci-a.sci),u.clear()}function Us(a,c,u){var h=this.styles,d=this.rows.getCellOrNew(a,c),p={};d.style!==void 0&&(p=Bi.cloneDeep(h[d.style])),p=Bi.merge(p,{border:u}),d.style=this.addStyle(p)}function ar(a){var c=this,u=a.mode,h=a.style,d=a.color,p=this.styles,g=this.selector,A=this.rows,m=g.range,y=m.sri,b=m.sci,I=m.eri,E=m.eci,B=!this.isSingleSelected();if(B||u!=="inside"&&u!=="horizontal"&&u!=="vertical")if(u!=="outside"||B){if(u==="none")g.range.each(function(q,z){var X=A.getCell(q,z);if(X&&X.style!==void 0){var se=Bi.cloneDeep(p[X.style]);delete se.border,X.style=c.addStyle(se)}});else if(u==="all"||u==="inside"||u==="outside"||u==="horizontal"||u==="vertical")for(var S=[],_=y;_<=I;_+=1)for(var D=b;D<=E;D+=1){for(var T=[],F=0;FE)break;var ue=A.getCell(_,D),fe=0,de=0;if(ue&&ue.merge){var Ae=En(ue.merge,2);fe=Ae[0],de=Ae[1],S.push([_,D,fe,de])}var we=fe>0&&_+fe===I,Z=de>0&&D+de===E,ne={};u==="all"?ne={bottom:[h,d],top:[h,d],left:[h,d],right:[h,d]}:u==="inside"?(!Z&&D0&&Us.call(this,_,D,ne),D+=de}else if(u==="top"||u==="bottom")for(var j=b;j<=E;j+=1)u==="top"&&(Us.call(this,y,j,{top:[h,d]}),j+=A.getCellMerge(y,j)[1]),u==="bottom"&&(Us.call(this,I,j,{bottom:[h,d]}),j+=A.getCellMerge(I,j)[1]);else if(u==="left"||u==="right")for(var J=y;J<=I;J+=1)u==="left"&&(Us.call(this,J,b,{left:[h,d]}),J+=A.getCellMerge(J,b)[0]),u==="right"&&(Us.call(this,J,E,{right:[h,d]}),J+=A.getCellMerge(J,E)[0])}else Us.call(this,y,b,{top:[h,d],bottom:[h,d],left:[h,d],right:[h,d]})}function pn(a,c){var u=this.rows,h=this.freezeTotalHeight(),d=u.height;h+u.heighta);g+=1)p.has(g)||(A+=m=u.getHeight(g));return(A-=m)<=0?{ri:-1,top:0,height:m}:{ri:g-1,top:A,height:m}}function Vn(a,c){var u=this.cols,h=this.freezeTotalWidth(),d=u.indexWidth;h+u.indexWidth0&&arguments[0]!==void 0?arguments[0]:"all",u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},h=this.clipboard,d=this.selector;return!h.isClear()&&!!Ao.call(this,h.range,d.range,u)&&(this.changeData(function(){h.isCopy()?Bn.call(a,h.range,d.range,c):h.isCut()&&Kn.call(a,h.range,d.range)}),!0)}},{key:"pasteFromSystemClipboard",value:function(a,c){var u=this,h=this.selector;navigator.clipboard.readText().then(function(d){var p=u.parseClipboardContent(d),g=h.ri;p.forEach(function(A){var m=h.ci;A.forEach(function(y){u.setCellText(g,m,y,"input"),m+=1}),g+=1}),a(),c(u.rows.getData())})}},{key:"parseClipboardContent",value:function(a){var c=[],u=a.split(` `),h=0;return u.forEach(function(d){c[h]=d.split(" "),h+=1}),c}},{key:"pasteFromText",value:function(a){var c=[];if((c=/\r\n/.test(a)?a.split(`\r `).map(function(d){return d.replace(/"/g,"").split(" ")}):a.split(` `).map(function(d){return d.replace(/"/g,"").split(" ")})).length){var u=this.rows,h=this.selector;this.changeData(function(){u.paste(c,h.range)})}}},{key:"autofill",value:function(a,c){var u=this,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},d=this.selector.range;return!!Ao.call(this,d,a,h)&&(this.changeData(function(){Bn.call(u,d,a,c,!0)}),!0)}},{key:"clearClipboard",value:function(){this.clipboard.clear()}},{key:"calSelectedRangeByEnd",value:function(a,c){var u=this.selector,h=this.rows,d=this.cols,p=this.merges,g=u.range,A=g.sri,m=g.sci,y=g.eri,b=g.eci,I=u.ri,E=u.ci,B=a,S=c;return a<0&&(B=h.len-1),c<0&&(S=d.len-1),B>I?(A=I,y=B):(A=B,y=I),S>E?(m=E,b=S):(m=S,b=E),u.range=p.union(new xr(A,m,y,b)),u.range=p.union(u.range),u.range}},{key:"calSelectedRangeByStart",value:function(a,c){var u=this.selector,h=this.rows,d=this.cols,p=this.merges.getFirstIncludes(a,c);return p===null&&(p=new xr(a,c,a,c),a===-1&&(p.sri=0,p.eri=h.len-1),c===-1&&(p.sci=0,p.eci=d.len-1)),u.range=p,p}},{key:"setSelectedCellAttr",value:function(a,c){var u=this;this.changeData(function(){var h=u.selector,d=u.styles,p=u.rows;if(a==="merge")c?u.merge():u.unmerge();else if(a==="border")ar.call(u,c);else if(a==="formula"){var g=h.ri,A=h.ci,m=h.range;if(h.multiple()){var y=En(h.size(),2),b=y[0],I=y[1],E=m.sri,B=m.sci,S=m.eri,_=m.eci;if(b>1)for(var D=B;D<=_;D+=1)p.getCellOrNew(S+1,D).text="=".concat(c,"(").concat(Kt(D,E),":").concat(Kt(D,S),")");else I>1&&(p.getCellOrNew(g,_+1).text="=".concat(c,"(").concat(Kt(B,g),":").concat(Kt(_,g),")"))}else p.getCellOrNew(g,A).text="=".concat(c,"()")}else h.range.each(function(T,F){var N=p.getCellOrNew(T,F),H={};if(N.style!==void 0&&(H=Bi.cloneDeep(d[N.style])),a==="format")H.format=c,N.style=u.addStyle(H);else if(a==="font-bold"||a==="font-italic"||a==="font-name"||a==="font-size"){var W={};W[a.split("-")[1]]=c,H.font=Object.assign(H.font||{},W),N.style=u.addStyle(H)}else a==="strike"||a==="textwrap"||a==="underline"||a==="align"||a==="valign"||a==="color"||a==="bgcolor"?(H[a]=c,N.style=u.addStyle(H)):N[a]=c})})}},{key:"setSelectedCellText",value:function(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"input",u=this.autoFilter,h=this.selector,d=this.rows,p=h.ri,g=h.ci,A=p;this.unsortedRowMap.has(p)&&(A=this.unsortedRowMap.get(p));var m=d.getCell(A,g),y=m?m.text:"";if(this.setCellText(A,g,a,c),u.active()){var b=u.getFilter(g);if(b){var I=b.value.findIndex(function(E){return E===y});I>=0&&b.value.splice(I,1,a)}}}},{key:"getSelectedCell",value:function(){var a=this.selector,c=a.ri,u=a.ci,h=c;return this.unsortedRowMap.has(c)&&(h=this.unsortedRowMap.get(c)),this.rows.getCell(h,u)}},{key:"xyInSelectedRect",value:function(a,c){var u=this.getSelectedRect(),h=u.left,d=u.top,p=u.width,g=u.height,A=a-this.cols.indexWidth,m=c-this.rows.height;return A>h&&Ad&&m0&&D>y&&(B=y),_>0&&_>b&&(S=b),{l:y,t:b,left:B,top:S,height:I,width:E,scroll:c}}},{key:"getCellRectByXY",value:function(a,c){var u=this.scroll,h=this.merges,d=this.rows,p=this.cols,g=pn.call(this,c,u.y),A=g.ri,m=g.top,y=g.height,b=Vn.call(this,a,u.x),I=b.ci,E=b.left,B=b.width;if(I===-1&&(B=p.totalWidth()),A===-1&&(y=d.totalHeight()),A>=0||I>=0){var S=h.getFirstIncludes(A,I);if(S){A=S.sri,I=S.sci;var _=this.cellRect(A,I);E=_.left,m=_.top,B=_.width,y=_.height}}return{ri:A,ci:I,left:E,top:m,width:B,height:y}}},{key:"isSingleSelected",value:function(){var a=this.selector.range,c=a.sri,u=a.sci,h=a.eri,d=a.eci,p=this.getCell(c,u);if(p&&p.merge){var g=En(p.merge,2),A=g[0],m=g[1];if(c+A===h&&u+m===d)return!0}return!this.selector.multiple()}},{key:"canUnmerge",value:function(){var a=this.selector.range,c=a.sri,u=a.sci,h=a.eri,d=a.eci,p=this.getCell(c,u);if(p&&p.merge){var g=En(p.merge,2),A=g[0],m=g[1];if(c+A===h&&u+m===d)return!0}return!1}},{key:"merge",value:function(){var a=this,c=this.selector,u=this.rows;if(!this.isSingleSelected()){var h=En(c.size(),2),d=h[0],p=h[1];if(d>1||p>1){var g=c.range,A=g.sri,m=g.sci;this.changeData(function(){var y=u.getCellOrNew(A,m);y.merge=[d-1,p-1],a.merges.add(c.range),a.rows.deleteCells(c.range),a.rows.setCell(A,m,y)})}}}},{key:"unmerge",value:function(){var a=this,c=this.selector;if(this.isSingleSelected()){var u=c.range,h=u.sri,d=u.sci;this.changeData(function(){a.rows.deleteCell(h,d,"merge"),a.merges.deleteWithin(c.range)})}}},{key:"canAutofilter",value:function(){return!this.autoFilter.active()}},{key:"autofilter",value:function(){var a=this,c=this.autoFilter,u=this.selector;this.changeData(function(){c.active()?(c.clear(),a.exceptRowSet=new Set,a.sortedRowMap=new Map,a.unsortedRowMap=new Map):c.ref=u.range.toString()})}},{key:"setAutoFilter",value:function(a,c,u,h){var d=this.autoFilter;d.addFilter(a,u,h),d.setSort(a,c),this.resetAutoFilter()}},{key:"resetAutoFilter",value:function(){var a=this,c=this.autoFilter,u=this.rows;if(c.active()){var h=c.sort,d=c.filteredRows(function(y,b){return u.getCell(y,b)}),p=d.rset,g=d.fset,A=Array.from(g),m=Array.from(g);h&&A.sort(function(y,b){return h.order==="asc"?y-b:h.order==="desc"?b-y:0}),this.exceptRowSet=p,this.sortedRowMap=new Map,this.unsortedRowMap=new Map,A.forEach(function(y,b){a.sortedRowMap.set(m[b],y),a.unsortedRowMap.set(y,m[b])})}}},{key:"deleteCell",value:function(){var a=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"all",u=this.selector;this.changeData(function(){a.rows.deleteCells(u.range,c),c!=="all"&&c!=="format"||a.merges.deleteWithin(u.range)})}},{key:"insert",value:function(a){var c=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.changeData(function(){var h=c.selector.range,d=h.sri,p=h.sci,g=c.rows,A=c.merges,m=c.cols,y=d;a==="row"?g.insert(d,u):a==="column"&&(g.insertColumn(p,u),y=p,m.len+=u,Object.keys(m._).reverse().forEach(function(b){var I=parseInt(b,10);I>=p&&(m._[I+u]=m._[I],delete m._[I])})),A.shift(a,y,u,function(b,I,E,B){var S=g.getCell(b,I);S.merge[0]+=E,S.merge[1]+=B})})}},{key:"delete",value:function(a){var c=this;this.changeData(function(){var u=c.rows,h=c.merges,d=c.selector,p=c.cols,g=d.range,A=d.range,m=A.sri,y=A.sci,b=A.eri,I=A.eci,E=En(d.range.size(),2),B=E[0],S=E[1],_=m,D=B;a==="row"?u.delete(m,b):a==="column"&&(u.deleteColumn(y,I),_=g.sci,D=S,p.len-=I-y+1,Object.keys(p._).forEach(function(T){var F=parseInt(T,10);F>=y&&(F>I&&(p._[F-(I-y+1)]=p._[F]),delete p._[F])})),h.shift(a,_,-D,function(T,F,N,H){var W=u.getCell(T,F);W.merge[0]+=N,W.merge[1]+=H,W.merge[0]===0&&W.merge[1]===0&&delete W.merge})})}},{key:"scrollx",value:function(a,c){var u=this.scroll,h=this.freeze,d=this.cols,p=En(h,2)[1],g=En(Bi.rangeReduceIf(p,d.len,0,0,a,function(I){return d.getWidth(I)}),3),A=g[0],m=g[1],y=g[2],b=m;a>0&&(b+=y),u.x!==b&&(u.ci=a>0?A:0,u.x=b,c())}},{key:"scrolly",value:function(a,c){var u=this.scroll,h=this.freeze,d=this.rows,p=En(h,1)[0],g=En(Bi.rangeReduceIf(p,d.len,0,0,a,function(I){return d.getHeight(I)}),3),A=g[0],m=g[1],y=g[2],b=m;a>0&&(b+=y),u.y!==b&&(u.ri=a>0?A:0,u.y=b,c())}},{key:"cellRect",value:function(a,c){var u=this.rows,h=this.cols,d=h.sumWidth(0,c),p=u.sumHeight(0,a),g=u.getCell(a,c),A=h.getWidth(c),m=u.getHeight(a);if(g!==null&&g.merge){var y=En(g.merge,2),b=y[0],I=y[1];if(b>0)for(var E=1;E<=b;E+=1)m+=u.getHeight(a+E);if(I>0)for(var B=1;B<=I;B+=1)A+=h.getWidth(c+B)}return{left:d,top:p,width:A,height:m,cell:g}}},{key:"getCell",value:function(a,c){return this.rows.getCell(a,c)}},{key:"getCellTextOrDefault",value:function(a,c){var u=this.getCell(a,c);return u&&u.text?u.text:""}},{key:"getCellStyle",value:function(a,c){var u=this.getCell(a,c);return u&&u.style!==void 0?this.styles[u.style]:null}},{key:"getCellStyleOrDefault",value:function(a,c){var u=this.styles,h=this.rows.getCell(a,c),d=h&&h.style!==void 0?u[h.style]:{};return Bi.merge(this.defaultStyle(),d)}},{key:"getSelectedCellStyle",value:function(){var a=this.selector,c=a.ri,u=a.ci;return this.getCellStyleOrDefault(c,u)}},{key:"setCellText",value:function(a,c,u,h){var d=this.rows,p=this.history,g=this.validations;h==="finished"?(d.setCellText(a,c,""),p.add(this.getData()),d.setCellText(a,c,u)):(d.setCellText(a,c,u),this.change(this.getData())),g.validate(a,c,u)}},{key:"freezeIsActive",value:function(){var a=En(this.freeze,2),c=a[0],u=a[1];return c>0||u>0}},{key:"setFreeze",value:function(a,c){var u=this;this.changeData(function(){u.freeze=[a,c]})}},{key:"freezeTotalWidth",value:function(){return this.cols.sumWidth(0,this.freeze[1])}},{key:"freezeTotalHeight",value:function(){return this.rows.sumHeight(0,this.freeze[0])}},{key:"setRowHeight",value:function(a,c){var u=this;this.changeData(function(){u.rows.setHeight(a,c)})}},{key:"setColWidth",value:function(a,c){var u=this;this.changeData(function(){u.cols.setWidth(a,c)})}},{key:"viewHeight",value:function(){var a=this.settings,c=a.view,u=a.showToolbar,h=a.showBottomBar,d=c.height();return h&&(d-=41),u&&(d-=41),d}},{key:"viewWidth",value:function(){return this.settings.view.width()}},{key:"freezeViewRange",value:function(){var a=En(this.freeze,2),c=a[0],u=a[1];return new xr(0,0,c-1,u-1,this.freezeTotalWidth(),this.freezeTotalHeight())}},{key:"contentRange",value:function(){var a=this.rows,c=this.cols,u=En(a.maxCell(),2),h=u[0],d=u[1],p=a.sumHeight(0,h+1),g=c.sumWidth(0,d+1);return new xr(0,0,h,d,g,p)}},{key:"exceptRowTotalHeight",value:function(a,c){var u=this.exceptRowSet,h=this.rows,d=Array.from(u),p=0;return d.forEach(function(g){if(gc){var A=h.getHeight(g);p+=A}}),p}},{key:"viewRange",value:function(){var a=this.scroll,c=this.rows,u=this.cols,h=this.freeze,d=this.exceptRowSet,p=a.ri,g=a.ci;p<=0&&(p=En(h,1)[0]),g<=0&&(g=En(h,2)[1]);for(var A=0,m=0,y=[c.len,u.len],b=y[0],I=y[1],E=p;Ethis.viewHeight()));E+=1);for(var B=g;Bthis.viewWidth()));B+=1);return new xr(p,g,b,I,A,m)}},{key:"eachMergesInView",value:function(a,c){this.merges.filterIntersects(a).forEach(function(u){return c(u)})}},{key:"hideRowsOrCols",value:function(){var a=this.rows,c=this.cols,u=this.selector,h=En(u.size(),2),d=h[0],p=h[1],g=u.range,A=g.sri,m=g.sci,y=g.eri,b=g.eci;if(d===a.len)for(var I=m;I<=b;I+=1)c.setHide(I,!0);else if(p===c.len)for(var E=A;E<=y;E+=1)a.setHide(E,!0)}},{key:"unhideRowsOrCols",value:function(a,c){this["".concat(a,"s")].unhide(c)}},{key:"rowEach",value:function(a,c,u){for(var h=0,d=this.rows,p=this.exceptRowSet,g=Ni(p),A=0,m=0;m0&&(u(y,h,b),(h+=b)>this.viewHeight()))break}}},{key:"colEach",value:function(a,c,u){for(var h=0,d=this.cols,p=a;p<=c;p+=1){var g=d.getWidth(p);if(g>0&&(u(p,h,g),(h+=g)>this.viewWidth()))break}}},{key:"defaultStyle",value:function(){return this.settings.style}},{key:"addStyle",value:function(a){for(var c=this.styles,u=0;u=a.length?{done:!0}:{done:!1,value:a[h++]}},e:function(m){throw m},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,g=!0,A=!1;return{s:function(){u=u.call(a)},n:function(){var m=u.next();return g=m.done,m},e:function(m){A=!0,p=m},f:function(){try{g||u.return==null||u.return()}finally{if(A)throw p}}}}function bo(a,c){(c==null||c>a.length)&&(c=a.length);for(var u=0,h=Array(c);uMath.abs(c)?h(a>0?"right":"left",a,u):h(c>0?"down":"up",c,u)}var $r="x-spreadsheet",an=function(){return xt(function a(){var c=this,u=arguments.length>0&&arguments[0]!==void 0&&arguments[0],h=arguments.length>1?arguments[1]:void 0;Et(this,a),this.moving=!1,this.vertical=u,this.el=Vt("div","".concat($r,"-resizer ").concat(u?"vertical":"horizontal")).children(this.unhideHoverEl=Vt("div","".concat($r,"-resizer-hover")).on("dblclick.stop",function(d){return c.mousedblclickHandler(d)}).css("position","absolute").hide(),this.hoverEl=Vt("div","".concat($r,"-resizer-hover")).on("mousedown.stop",function(d){return c.mousedownHandler(d)}),this.lineEl=Vt("div","".concat($r,"-resizer-line")).hide()).hide(),this.cRect=null,this.finishedFn=null,this.minDistance=h,this.unhideFn=function(){}},[{key:"showUnhide",value:function(a){this.unhideIndex=a,this.unhideHoverEl.show()}},{key:"hideUnhide",value:function(){this.unhideHoverEl.hide()}},{key:"show",value:function(a,c){var u=this.moving,h=this.vertical,d=this.hoverEl,p=this.lineEl,g=this.el,A=this.unhideHoverEl;if(!u){this.cRect=a;var m=a.left,y=a.top,b=a.width,I=a.height;g.offset({left:h?m+b-5:m,top:h?y:y+I-5}).show(),d.offset({width:h?5:b,height:h?I:5}),p.offset({width:h?0:c.width,height:h?c.height:0}),A.offset({left:h?5-b:m,top:h?y:5-I,width:h?5:b,height:h?I:5})}}},{key:"hide",value:function(){this.el.offset({left:0,top:0}).hide(),this.hideUnhide()}},{key:"mousedblclickHandler",value:function(){this.unhideIndex&&this.unhideFn(this.unhideIndex)}},{key:"mousedownHandler",value:function(a){var c=this,u=a,h=this.el,d=this.lineEl,p=this.cRect,g=this.vertical,A=this.minDistance,m=g?p.width:p.height;d.show(),Vf(window,function(y){c.moving=!0,u!==null&&y.buttons===1&&(g?(m+=y.movementX)>A&&h.css("left","".concat(p.left+m,"px")):(m+=y.movementY)>A&&h.css("top","".concat(p.top+m,"px")),u=y)},function(){u=null,d.hide(),c.moving=!1,c.hide(),c.finishedFn&&(mu){var h=this.vertical?"height":"width";this.el.css(h,"".concat(u-15,"px")).show(),this.contentEl.css(this.vertical?"width":"height","1px").css(h,"".concat(c,"px"))}else this.el.hide();return this}}])}(),yr=10,bn=function(){return xt(function a(){var c=this,u=arguments.length>0&&arguments[0]!==void 0&&arguments[0],h=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];Et(this,a),this.useHideInput=u,this.autoFocus=h,this.inputChange=function(){},this.cornerEl=Vt("div","".concat($r,"-selector-corner")),this.areaEl=Vt("div","".concat($r,"-selector-area")).child(this.cornerEl).hide(),this.clipboardEl=Vt("div","".concat($r,"-selector-clipboard")).hide(),this.autofillEl=Vt("div","".concat($r,"-selector-autofill")).hide(),this.el=Vt("div","".concat($r,"-selector")).css("z-index","".concat(yr)).children(this.areaEl,this.clipboardEl,this.autofillEl).hide(),u&&(this.hideInput=Vt("input","").on("compositionend",function(d){c.inputChange(d.target.value)}),this.el.child(this.hideInputDiv=Vt("div","hide-input").child(this.hideInput)),this.el.child(this.hideInputDiv=Vt("div","hide-input").child(this.hideInput))),yr+=1},[{key:"setOffset",value:function(a){return this.el.offset(a).show(),this}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"setAreaOffset",value:function(a){var c=a.left,u=a.top,h={width:a.width-3+.8,height:a.height-3+.8,left:c-.8,top:u-.8};this.areaEl.offset(h).show(),this.useHideInput&&(this.hideInputDiv.offset(h),this.autoFocus?this.hideInput.val("").focus():this.hideInput.val(""))}},{key:"setClipboardOffset",value:function(a){var c=a.left,u=a.top,h=a.width,d=a.height;this.clipboardEl.offset({left:c,top:u,width:h-5,height:d-5})}},{key:"showAutofill",value:function(a){var c=a.left,u=a.top,h=a.width,d=a.height;this.autofillEl.offset({width:h-3,height:d-3,left:c,top:u}).show()}},{key:"hideAutofill",value:function(){this.autofillEl.hide()}},{key:"showClipboard",value:function(){this.clipboardEl.show()}},{key:"hideClipboard",value:function(){this.clipboardEl.hide()}}])}();function en(a){var c=this.data,u=a.left,h=a.top,d=a.width,p=a.height,g=a.scroll,A=a.l,m=a.t,y=c.freezeTotalWidth(),b=c.freezeTotalHeight(),I=u-y;y>A&&(I-=g.x);var E=h-b;return b>m&&(E-=g.y),{left:I,top:E,width:d,height:p}}function k0(a){var c=this.data,u=a.left,h=a.width,d=a.height,p=a.l,g=a.t,A=a.scroll,m=c.freezeTotalWidth(),y=u-m;return m>p&&(y-=A.x),{left:y,top:g,width:h,height:d}}function $i(a){var c=this.data,u=a.top,h=a.width,d=a.height,p=a.l,g=a.t,A=a.scroll,m=c.freezeTotalHeight(),y=u-m;return m>g&&(y-=A.y),{left:p,top:y,width:h,height:d}}function Ln(a){this.br.setAreaOffset(en.call(this,a))}function UC(a){this.tl.setAreaOffset(a)}function $u(a){this.t.setAreaOffset(k0.call(this,a))}function Zf(a){this.l.setAreaOffset($i.call(this,a))}function Q0(a){this.l.setClipboardOffset($i.call(this,a))}function u2(a){this.br.setClipboardOffset(en.call(this,a))}function z3(a){this.tl.setClipboardOffset(a)}function Tg(a){this.t.setClipboardOffset(k0.call(this,a))}function Bs(a){Ln.call(this,a),UC.call(this,a),$u.call(this,a),Zf.call(this,a)}function $n(a){u2.call(this,a),z3.call(this,a),Tg.call(this,a),Q0.call(this,a)}var ec=function(){return xt(function a(c){var u=this;Et(this,a);var h=c.settings.autoFocus;this.inputChange=function(){},this.data=c,this.br=new bn(!0,h),this.t=new bn,this.l=new bn,this.tl=new bn,this.br.inputChange=function(d){u.inputChange(d)},this.br.el.show(),this.offset=null,this.areaOffset=null,this.indexes=null,this.range=null,this.arange=null,this.el=Vt("div","".concat($r,"-selectors")).children(this.tl.el,this.t.el,this.l.el,this.br.el).hide(),this.lastri=-1,this.lastci=-1,yr+=1},[{key:"resetData",value:function(a){this.data=a,this.range=a.selector.range,this.resetAreaOffset()}},{key:"hide",value:function(){this.el.hide()}},{key:"resetOffset",value:function(){var a=this.data,c=this.tl,u=this.t,h=this.l,d=this.br,p=a.freezeTotalHeight(),g=a.freezeTotalWidth();p>0||g>0?(c.setOffset({width:g,height:p}),u.setOffset({left:g,height:p}),h.setOffset({top:p,width:g}),d.setOffset({left:g,top:p})):(c.hide(),u.hide(),h.hide(),d.setOffset({left:0,top:0}))}},{key:"resetAreaOffset",value:function(){var a=this.data.getSelectedRect(),c=this.data.getClipboardRect();Bs.call(this,a),$n.call(this,c),this.resetOffset()}},{key:"resetBRTAreaOffset",value:function(){var a=this.data.getSelectedRect(),c=this.data.getClipboardRect();Ln.call(this,a),$u.call(this,a),u2.call(this,c),Tg.call(this,c),this.resetOffset()}},{key:"resetBRLAreaOffset",value:function(){var a=this.data.getSelectedRect(),c=this.data.getClipboardRect();Ln.call(this,a),Zf.call(this,a),u2.call(this,c),Q0.call(this,c),this.resetOffset()}},{key:"set",value:function(a,c){var u=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],h=this.data,d=h.calSelectedRangeByStart(a,c),p=d.sri,g=d.sci;if(u){var A=a,m=c;a<0&&(A=0),c<0&&(m=0),h.selector.setIndexes(A,m),this.indexes=[A,m]}this.moveIndexes=[p,g],this.range=d,this.resetAreaOffset(),this.el.show()}},{key:"setEnd",value:function(a,c){var u=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],h=this.data,d=this.lastri,p=this.lastci;if(u){if(a===d&&c===p)return;this.lastri=a,this.lastci=c}this.range=h.calSelectedRangeByEnd(a,c),Bs.call(this,this.data.getSelectedRect())}},{key:"reset",value:function(){var a=this.data.selector.range,c=a.eri,u=a.eci;this.setEnd(c,u)}},{key:"showAutofill",value:function(a,c){if(a!==-1||c!==-1){var u=this.range,h=u.sri,d=u.sci,p=u.eri,g=u.eci,A=a,m=c,y=h-a,b=p-a,I=g-c;if(d-c>0)this.arange=new xr(h,m,p,d-1);else if(y>0)this.arange=new xr(A,d,h-1,g);else if(I<0)this.arange=new xr(h,g+1,p,m);else{if(!(b<0))return void(this.arange=null);this.arange=new xr(p+1,d,A,g)}if(this.arange!==null){var E=this.data.getRect(this.arange);E.width+=2,E.height+=2;var B=this.br,S=this.l,_=this.t,D=this.tl;B.showAutofill(en.call(this,E)),S.showAutofill($i.call(this,E)),_.showAutofill(k0.call(this,E)),D.showAutofill(E)}}}},{key:"hideAutofill",value:function(){var a=this;["br","l","t","tl"].forEach(function(c){a[c].hideAutofill()})}},{key:"showClipboard",value:function(){var a=this,c=this.data.getClipboardRect();$n.call(this,c),["br","l","t","tl"].forEach(function(u){a[u].showClipboard()})}},{key:"hideClipboard",value:function(){var a=this;["br","l","t","tl"].forEach(function(c){a[c].hideClipboard()})}}])}();function c2(a){a.preventDefault(),a.stopPropagation();var c=this.filterItems;c.length<=0||(this.itemIndex>=0&&c[this.itemIndex].toggle(),this.itemIndex-=1,this.itemIndex<0&&(this.itemIndex=c.length-1),c[this.itemIndex].toggle())}function yl(a){a.stopPropagation();var c=this.filterItems;c.length<=0||(this.itemIndex>=0&&c[this.itemIndex].toggle(),this.itemIndex+=1,this.itemIndex>c.length-1&&(this.itemIndex=0),c[this.itemIndex].toggle())}function tc(a){a.preventDefault();var c=this.filterItems;c.length<=0||(a.stopPropagation(),this.itemIndex<0&&(this.itemIndex=0),c[this.itemIndex].el.click(),this.hide())}function Wl(a){var c=a.keyCode;switch(a.ctrlKey&&a.stopPropagation(),c){case 37:case 39:default:a.stopPropagation();break;case 38:c2.call(this,a);break;case 40:yl.call(this,a);break;case 13:case 9:tc.call(this,a)}}var l2=function(){return xt(function a(c,u){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"200px";Et(this,a),this.filterItems=[],this.items=c,this.el=Vt("div","".concat($r,"-suggest")).css("width",h).hide(),this.itemClick=u,this.itemIndex=-1},[{key:"setOffset",value:function(a){this.el.cssRemoveKeys("top","bottom").offset(a)}},{key:"hide",value:function(){var a=this.el;this.filterItems=[],this.itemIndex=-1,a.hide(),xa(this.el.parent())}},{key:"setItems",value:function(a){this.items=a}},{key:"search",value:function(a){var c,u=this,h=this.items;if(/^\s*$/.test(a)||(h=h.filter(function(p){return(p.key||p).startsWith(a.toUpperCase())})),h=h.map(function(p){var g=p.title;g?typeof g=="function"&&(g=g()):g=p;var A=Vt("div","".concat($r,"-item")).child(g).on("click.stop",function(){u.itemClick(p),u.hide()});return p.label&&A.child(Vt("div","label").html(p.label)),A}),this.filterItems=h,!(h.length<=0)){var d=this.el;(c=d.html("")).children.apply(c,Ni(h)).show(),Ii(d.parent(),function(){u.hide()})}}},{key:"bindInputEvents",value:function(a){var c=this;a.on("keydown",function(u){return Wl.call(c,u)})}}])}();function Ki(a,c){if(c&&(Bo(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(a)}function sn(a){return(sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)})(a)}function jC(a,c){return(jC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,h){return u.__proto__=h,u})(a,c)}function nr(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),c&&jC(a,c)}function h2(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h2=function(){return!!a})()}var Tu=function(a){function c(u){var h,d,p,g;return Et(this,c),d=this,p=c,g=["div","".concat($r,"-icon")],p=sn(p),(h=Ki(d,h2()?Reflect.construct(p,g||[],sn(d).constructor):p.apply(d,g))).iconNameEl=Vt("div","".concat($r,"-icon-img ").concat(u)),h.child(h.iconNameEl),h}return nr(c,a),xt(c,[{key:"setName",value:function(u){this.iconNameEl.className("".concat($r,"-icon-img ").concat(u))}}])}(It);function mn(a,c){a.setMonth(a.getMonth()+c)}function x0(a,c){var u=new Date(a);return u.setDate(c-a.getDay()+1),u}var Lg=function(){return xt(function a(c){var u,h=this;Et(this,a),this.value=c,this.cvalue=new Date(c),this.headerLeftEl=Vt("div","calendar-header-left"),this.bodyEl=Vt("tbody",""),this.buildAll(),this.el=Vt("div","x-spreadsheet-calendar").children(Vt("div","calendar-header").children(this.headerLeftEl,Vt("div","calendar-header-right").children(Vt("a","calendar-prev").on("click.stop",function(){return h.prev()}).child(new Tu("chevron-left")),Vt("a","calendar-next").on("click.stop",function(){return h.next()}).child(new Tu("chevron-right")))),Vt("table","calendar-body").children(Vt("thead","").child((u=Vt("tr","")).children.apply(u,Ni(Wi("calendar.weeks").map(function(d){return Vt("th","cell").child(d)})))),this.bodyEl)),this.selectChange=function(){}},[{key:"setValue",value:function(a){this.value=a,this.cvalue=new Date(a),this.buildAll()}},{key:"prev",value:function(){mn(this.value,-1),this.buildAll()}},{key:"next",value:function(){mn(this.value,1),this.buildAll()}},{key:"buildAll",value:function(){this.buildHeaderLeft(),this.buildBody()}},{key:"buildHeaderLeft",value:function(){var a=this.value;this.headerLeftEl.html("".concat(Wi("calendar.months")[a.getMonth()]," ").concat(a.getFullYear()))}},{key:"buildBody",value:function(){var a,c=this,u=this.value,h=this.cvalue,d=this.bodyEl,p=function(g,A,m){for(var y=new Date(g,A,1,23,59,59),b=[[],[],[],[],[],[]],I=0;I<6;I+=1)for(var E=0;E<7;E+=1){var B=x0(y,7*I+E),S=B.getMonth()!==A,_=B.getMonth()===m.getMonth()&&B.getDate()===m.getDate();b[I][E]={d:B,disabled:S,active:_}}return b}(u.getFullYear(),u.getMonth(),h).map(function(g){var A,m=g.map(function(y){var b="cell";return y.disabled&&(b+=" disabled"),y.active&&(b+=" active"),Vt("td","").child(Vt("div",b).on("click.stop",function(){c.selectChange(y.d)}).child(y.d.getDate().toString()))});return(A=Vt("tr","")).children.apply(A,Ni(m))});(a=d.html("")).children.apply(a,Ni(p))}}])}(),f2=function(){return xt(function a(){Et(this,a),this.calendar=new Lg(new Date),this.el=Vt("div","".concat($r,"-datepicker")).child(this.calendar.el).hide()},[{key:"setValue",value:function(a){var c=this.calendar;return typeof a=="string"?/^\d{4}-\d{1,2}-\d{1,2}$/.test(a)&&c.setValue(new Date(a.replace(new RegExp("-","g"),"/"))):a instanceof Date&&c.setValue(a),this}},{key:"change",value:function(a){var c=this;this.calendar.selectChange=function(u){a(u),c.hide()}}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide()}}])}();function ln(){var a=this.inputText;if(!/^\s*$/.test(a)){var c=this.textlineEl,u=this.textEl,h=this.areaOffset,d=a.split(` `),p=Math.max.apply(Math,Ni(d.map(function(I){return I.length}))),g=c.offset().width/a.length,A=(p+1)*g+5,m=this.viewFn().width-h.left-g,y=d.length;if(A>h.width){var b=A;A>m&&(b=m,y+=parseInt(A/m,10),y+=A%m>0?1:0),u.css("width","".concat(b,"px"))}(y*=this.rowHeight)>h.height&&u.css("height","".concat(y,"px"))}}function $o(a,c){var u=a.target,h=u.value,d=u.selectionEnd,p="".concat(h.slice(0,d)).concat(c).concat(h.slice(d));u.value=p,u.setSelectionRange(d+1,d+1),this.inputText=p,this.textlineEl.html(p),ln.call(this)}function Qv(a){var c=a.keyCode,u=a.altKey;c!==13&&c!==9&&a.stopPropagation(),c===13&&u&&($o.call(this,a,` `),a.stopPropagation()),c!==13||u||a.preventDefault()}function vd(a){var c=a.target.value,u=this.suggest,h=this.textlineEl,d=this.validator,p=this.cell;if(p!==null)if("editable"in p&&p.editable===!0||p.editable===void 0){if(this.inputText=c,d)d.type==="list"?u.search(c):u.hide();else{var g=c.lastIndexOf("=");g!==-1?u.search(c.substring(g+1)):u.hide()}h.html(c),ln.call(this),this.change("input",c)}else a.target.value=p.text||"";else{if(this.inputText=c,d)d.type==="list"?u.search(c):u.hide();else{var A=c.lastIndexOf("=");A!==-1?u.search(c.substring(A+1)):u.hide()}h.html(c),ln.call(this),this.change("input",c)}}function rc(a){var c=this.textEl.el;setTimeout(function(){c.focus(),c.setSelectionRange(a,a)},0)}function ql(a,c){var u=this.textEl,h=this.textlineEl;u.el.blur(),u.val(a),h.html(a),rc.call(this,c)}function K3(a){var c=this.inputText,u=this.validator,h=0;if(u&&u.type==="list")this.inputText=a,h=this.inputText.length;else{var d=c.lastIndexOf("="),p=c.substring(0,d+1),g=c.substring(d+1);g=g.indexOf(")")!==-1?g.substring(g.indexOf(")")):"",this.inputText="".concat(p+a.key,"("),h=this.inputText.length,this.inputText+=")".concat(g)}ql.call(this,this.inputText,h)}function HC(){this.suggest.setItems(this.formulas)}var A2=function(){return xt(function a(c,u,h){var d=this;Et(this,a),this.viewFn=u,this.rowHeight=h,this.formulas=c,this.suggest=new l2(c,function(p){K3.call(d,p)}),this.datepicker=new f2,this.datepicker.change(function(p){d.setText(function(g){var A=g.getMonth()+1,m=g.getDate();return A<10&&(A="0".concat(A)),m<10&&(m="0".concat(m)),"".concat(g.getFullYear(),"-").concat(A,"-").concat(m)}(p)),d.clear()}),this.areaEl=Vt("div","".concat($r,"-editor-area")).children(this.textEl=Vt("textarea","").on("input",function(p){return vd.call(d,p)}).on("paste.stop",function(){}).on("keydown",function(p){return Qv.call(d,p)}),this.textlineEl=Vt("div","textline"),this.suggest.el,this.datepicker.el).on("mousemove.stop",function(){}).on("mousedown.stop",function(){}),this.el=Vt("div","".concat($r,"-editor")).child(this.areaEl).hide(),this.suggest.bindInputEvents(this.textEl),this.areaOffset=null,this.freeze={w:0,h:0},this.cell=null,this.inputText="",this.change=function(){}},[{key:"setFreezeLengths",value:function(a,c){this.freeze.w=a,this.freeze.h=c}},{key:"clear",value:function(){this.inputText!==""&&this.change("finished",this.inputText),this.cell=null,this.areaOffset=null,this.inputText="",this.el.hide(),this.textEl.val(""),this.textlineEl.html(""),HC.call(this),this.datepicker.hide()}},{key:"setOffset",value:function(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",u=this.textEl,h=this.areaEl,d=this.suggest,p=this.freeze,g=this.el;if(a){this.areaOffset=a;var A=a.left,m=a.top,y=a.width,b=a.height,I=a.l,E=a.t,B={left:0,top:0};p.w>I&&p.h>E||(p.wI?B.top=p.h:p.h>E&&(B.left=p.w)),g.offset(B),h.offset({left:A-B.left-.8,top:m-B.top-.8}),u.offset({width:y-9+.8,height:b-3+.8});var S={left:0};S[c]=b,d.setOffset(S),d.hide()}}},{key:"setCell",value:function(a,c){if(!a||a.editable!==!1){var u=this.el,h=this.datepicker,d=this.suggest;u.show(),this.cell=a;var p=a&&a.text||"";if(this.setText(p),this.validator=c,c){var g=c.type;g==="date"&&(h.show(),/^\s*$/.test(p)||h.setValue(p)),g==="list"&&(d.setItems(c.values()),d.search(""))}}}},{key:"setText",value:function(a){this.inputText=a,ql.call(this,a,a.length),ln.call(this)}}])}();function Xf(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xf=function(){return!!a})()}var ef=function(a){function c(u){var h,d,p,g,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Et(this,c),d=this,p=c,g=["div","".concat($r,"-button ").concat(A)],p=sn(p),(h=Ki(d,Xf()?Reflect.construct(p,g||[],sn(d).constructor):p.apply(d,g))).child(Wi("button.".concat(u))),h}return nr(c,a),xt(c)}(It);function xv(){return window.devicePixelRatio||1}function Ng(){return xv()-.5}function Ti(a){return parseInt(a*xv(),10)}function $f(a){var c=Ti(a);return c>0?c-.5:.5}var eA=function(){return xt(function a(c,u,h,d){var p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;Et(this,a),this.x=c,this.y=u,this.width=h,this.height=d,this.padding=p,this.bgcolor="#ffffff",this.borderTop=null,this.borderRight=null,this.borderBottom=null,this.borderLeft=null},[{key:"setBorders",value:function(a){var c=a.top,u=a.bottom,h=a.left,d=a.right;c&&(this.borderTop=c),d&&(this.borderRight=d),u&&(this.borderBottom=u),h&&(this.borderLeft=h)}},{key:"innerWidth",value:function(){return this.width-2*this.padding-2}},{key:"innerHeight",value:function(){return this.height-2*this.padding-2}},{key:"textx",value:function(a){var c=this.width,u=this.padding,h=this.x;return a==="left"?h+=u:a==="center"?h+=c/2:a==="right"&&(h+=c-u),h}},{key:"texty",value:function(a,c){var u=this.height,h=this.padding,d=this.y;return a==="top"?d+=h:a==="middle"?d+=u/2-c/2:a==="bottom"&&(d+=u-h-c),d}},{key:"topxys",value:function(){var a=this.x,c=this.y;return[[a,c],[a+this.width,c]]}},{key:"rightxys",value:function(){var a=this.x,c=this.y,u=this.width;return[[a+u,c],[a+u,c+this.height]]}},{key:"bottomxys",value:function(){var a=this.x,c=this.y,u=this.width,h=this.height;return[[a,c+h],[a+u,c+h]]}},{key:"leftxys",value:function(){var a=this.x,c=this.y;return[[a,c],[a,c+this.height]]}}])}();function YC(a,c,u,h,d,p,g){var A={x:0,y:0};a==="underline"?A.y=d==="bottom"?0:d==="top"?-(p+2):-p/2:a==="strike"&&(d==="bottom"?A.y=p/2:d==="top"&&(A.y=-(p/2+2))),h==="center"?A.x=g/2:h==="right"&&(A.x=g),this.line([c-A.x,u-A.y],[c-A.x+g,u-A.y])}var tA=function(){return xt(function a(c,u,h){Et(this,a),this.el=c,this.ctx=c.getContext("2d"),this.resize(u,h),this.ctx.scale(xv(),xv())},[{key:"resize",value:function(a,c){this.el.style.width="".concat(a,"px"),this.el.style.height="".concat(c,"px"),this.el.width=Ti(a),this.el.height=Ti(c)}},{key:"clear",value:function(){var a=this.el,c=a.width,u=a.height;return this.ctx.clearRect(0,0,c,u),this}},{key:"attr",value:function(a){return Object.assign(this.ctx,a),this}},{key:"save",value:function(){return this.ctx.save(),this.ctx.beginPath(),this}},{key:"restore",value:function(){return this.ctx.restore(),this}},{key:"beginPath",value:function(){return this.ctx.beginPath(),this}},{key:"translate",value:function(a,c){return this.ctx.translate(Ti(a),Ti(c)),this}},{key:"scale",value:function(a,c){return this.ctx.scale(a,c),this}},{key:"clearRect",value:function(a,c,u,h){return this.ctx.clearRect(a,c,u,h),this}},{key:"fillRect",value:function(a,c,u,h){return this.ctx.fillRect(Ti(a)-.5,Ti(c)-.5,Ti(u),Ti(h)),this}},{key:"fillText",value:function(a,c,u){return this.ctx.fillText(a,Ti(c),Ti(u)),this}},{key:"text",value:function(a,c){var u=this,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],p=this.ctx,g=h.align,A=h.valign,m=h.font,y=h.color,b=h.strike,I=h.underline,E=c.textx(g);p.save(),p.beginPath(),this.attr({textAlign:g,textBaseline:A,font:"".concat(m.italic?"italic":""," ").concat(m.bold?"bold":""," ").concat(Ti(m.size),"px ").concat(m.name),fillStyle:y,strokeStyle:y});var B="".concat(a).split(` `),S=c.innerWidth(),_=[];B.forEach(function(F){var N=p.measureText(F).width;if(d&&N>Ti(S)){for(var H={w:0,len:0,start:0},W=0;W=Ti(S)&&(_.push(F.substr(H.start,H.len)),H={w:0,len:0,start:W}),H.len+=1,H.w+=p.measureText(F[W]).width+1;H.len>0&&_.push(F.substr(H.start,H.len))}else _.push(F)});var D=(_.length-1)*(m.size+2),T=c.texty(A,D);return _.forEach(function(F){var N=p.measureText(F).width;u.fillText(F,E,T),b&&YC.call(u,"strike",E,T,g,A,m.size,N),I&&YC.call(u,"underline",E,T,g,A,m.size,N),T+=m.size+2}),p.restore(),this}},{key:"border",value:function(a,c){var u=this.ctx;return u.lineWidth=Ng,u.strokeStyle=c,a==="medium"?u.lineWidth=Ti(2)-.5:a==="thick"?u.lineWidth=Ti(3):a==="dashed"?u.setLineDash([Ti(3),Ti(2)]):a==="dotted"?u.setLineDash([Ti(1),Ti(1)]):a==="double"&&u.setLineDash([Ti(2),0]),this}},{key:"line",value:function(){var a=this.ctx;if(arguments.length>1){a.beginPath();var c=En(arguments.length<=0?void 0:arguments[0],2),u=c[0],h=c[1];a.moveTo($f(u),$f(h));for(var d=1;d="0"&&h[0]<="9")return d*Number(h);var p=En(Da(h),2);return d*c(p[0],p[1])},tf=function(a,c,u){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];if(a[0]==="="){var d=function(p){for(var g=[],A=[],m=[],y=0,b="",I=1,E="",B=0;B="a"&&S<="z")m.push(S.toUpperCase());else if(S>="0"&&S<="9"||S>="A"&&S<="Z"||S===".")m.push(S);else if(S==='"'){for(B+=1;p.charAt(B)!=='"';)m.push(p.charAt(B)),B+=1;A.push('"'.concat(m.join(""))),m=[]}else if(S==="-"&&/[+\-*/,(]/.test(E))m.push(S);else{if(S!=="("&&m.length>0&&A.push(m.join("")),S===")"){var _=g.pop();if(y===2)try{for(var D=En(Da(A.pop()),2),T=D[0],F=D[1],N=En(Da(A.pop()),2),H=N[0],W=N[1],V=0,te=H;te<=T;te+=1)for(var ue=W;ue<=F;ue+=1)A.push(Kt(te,ue)),V+=1;A.push([_,V])}catch{}else if(y===1||y===3)y===3&&A.push(b),A.push([_,I]),I=1;else for(;_!=="("&&(A.push(_),!(g.length<=0));)_=g.pop();y=0}else if(S==="="||S===">"||S==="<"){var fe=p.charAt(B+1);b=S,fe!=="="&&fe!=="-"||(b+=fe,B+=1),y=3}else if(S===":")y=2;else if(S===",")y===3&&A.push(b),y=1,I+=1;else if(S==="("&&m.length>0)g.push(m.join(""));else{if(g.length>0&&(S==="+"||S==="-")){var de=g[g.length-1];if(de!=="("&&A.push(g.pop()),de==="*"||de==="/")for(;g.length>0&&(de=g[g.length-1])!=="(";)A.push(g.pop())}else if(g.length>0){var Ae=g[g.length-1];Ae!=="*"&&Ae!=="/"||A.push(g.pop())}g.push(S)}m=[]}E=S}}for(m.length>0&&A.push(m.join(""));g.length>0;)A.push(g.pop());return A}(a.substring(1));return d.length<=0?a:function(p,g,A,m){for(var y=[],b=0;b"||E==="<"){var T=y.pop();Number.isNaN(T)||(T=Number(T));var F=y.pop();Number.isNaN(F)||(F=Number(F));var N=!1;E==="="?N=F===T:I===">"?N=F>T:I===">="?N=F>=T:I==="<"?N=F="a"&&E<="z"||E>="A"&&E<="Z")&&m.push(I),y.push(rA(I,A)),m.pop()}}return y[0]}(d,c,function(p,g){return tf(u(p,g),c,u,h)},h)}return a};const Og={render:tf};var d2=[{key:"SUM",title:In("formula.sum"),render:function(a){return a.reduce(function(c,u){return Ri("+",c,u)},0)}},{key:"AVERAGE",title:In("formula.average"),render:function(a){return a.reduce(function(c,u){return Number(c)+Number(u)},0)/a.length}},{key:"MAX",title:In("formula.max"),render:function(a){return Math.max.apply(Math,Ni(a.map(function(c){return Number(c)})))}},{key:"MIN",title:In("formula.min"),render:function(a){return Math.min.apply(Math,Ni(a.map(function(c){return Number(c)})))}},{key:"IF",title:In("formula._if"),render:function(a){var c=En(a,3),u=c[0],h=c[1],d=c[2];return u?h:d}},{key:"AND",title:In("formula.and"),render:function(a){return a.every(function(c){return c})}},{key:"OR",title:In("formula.or"),render:function(a){return a.some(function(c){return c})}},{key:"CONCAT",title:In("formula.concat"),render:function(a){return a.join("")}}],au=d2,JC={};d2.forEach(function(a){JC[a.key]=a});var nA=function(a){return a},_0=function(a){if(/^(-?\d*.?\d*)$/.test(a)){var c=wc(Number(a).toFixed(2).toString().split("\\.")),u=c[0],h=c.slice(1);return[u.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")].concat(Ni(h))}return a},iA=[{key:"normal",title:In("format.normal"),type:"string",render:nA},{key:"text",title:In("format.text"),type:"string",render:nA},{key:"number",title:In("format.number"),type:"number",label:"1,000.12",render:_0},{key:"percent",title:In("format.percent"),type:"number",label:"10.12%",render:function(a){return"".concat(a,"%")}},{key:"rmb",title:In("format.rmb"),type:"number",label:"¥10.00",render:function(a){return"¥".concat(_0(a))}},{key:"usd",title:In("format.usd"),type:"number",label:"$10.00",render:function(a){return"$".concat(_0(a))}},{key:"eur",title:In("format.eur"),type:"number",label:"€10.00",render:function(a){return"€".concat(_0(a))}},{key:"date",title:In("format.date"),type:"date",label:"26/09/2008",render:nA},{key:"time",title:In("format.time"),type:"date",label:"15:59:00",render:nA},{key:"datetime",title:In("format.datetime"),type:"date",label:"26/09/2008 15:59:00",render:nA},{key:"duration",title:In("format.duration"),type:"date",label:"24:01:00",render:nA}],Sv={};iA.forEach(function(a){Sv[a.key]=a});var V3={fillStyle:"#f4f5f8"},Pg={fillStyle:"#fff",lineWidth:Ng,strokeStyle:"#e6e6e6"};function g2(a,c,u){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=a.cellRect(c,u),p=d.left,g=d.top,A=d.width,m=d.height;return new eA(p,g+h,A,m,5)}function _v(a,c,u,h){var d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,p=c.sortedRowMap,g=c.rows,A=c.cols;if(!g.isHide(u)&&!A.isHide(h)){var m=u;p.has(u)&&(m=p.get(u));var y=c.getCell(m,h);if(y!==null){var b=!1;"editable"in y&&y.editable===!1&&(b=!0);var I=c.getCellStyleOrDefault(m,h),E=g2(c,u,h,d);E.bgcolor=I.bgcolor,I.border!==void 0&&(E.setBorders(I.border),a.strokeBorders(E)),a.rect(E,function(){var B="";B=c.settings.evalPaused?y.text||"":Og.render(y.text||"",JC,function(_,D){return c.getCellTextOrDefault(D,_)}),I.format&&(B=Sv[I.format].render(B));var S=Object.assign({},I.font);S.size=function(_){for(var D=0;D0&&m.rows.isHide(F-1)&&(A.save(),A.attr({strokeStyle:"#c6c6c6"}),A.line([5,W+5],[u-5,W+5]),A.restore())}),A.line([0,y+I],[u,y+I]),A.line([u,I],[u,y+I])),a!=="all"&&a!=="top"||(m.colEach(c.sci,c.eci,function(F,N,H){var W=E+N,V=F;A.line([W,0],[W,h]),_<=V&&V0&&m.cols.isHide(F-1)&&(A.save(),A.attr({strokeStyle:"#c6c6c6"}),A.line([W+5,5],[W+5,h-5]),A.restore())}),A.line([b+E,0],[b+E,h]),A.line([0,h],[b+E,h])),A.restore()}function Z3(a,c){var u=this.draw;u.save(),u.attr({fillStyle:"#f4f5f8"}).fillRect(0,0,a,c),u.restore()}function Gg(a,c,u,h,d){var p=a.sri,g=a.sci,A=a.eri,m=a.eci,y=a.w,b=a.h,I=this.draw,E=this.data,B=E.settings;I.save(),I.attr(Pg).translate(c+h,u+d),B.showGrid&&(E.rowEach(p,A,function(S,_,D){S!==p&&I.line([0,_],[y,_]),S===A&&I.line([0,_+D],[y,_+D])}),E.colEach(g,m,function(S,_,D){S!==g&&I.line([_,0],[_,b]),S===m&&I.line([_+D,0],[_+D,b])})),I.restore()}function X3(a,c,u,h){var d=this.draw,p=this.data,g=p.viewWidth()-a,A=p.viewHeight()-c;d.save().translate(a,c).attr({strokeStyle:"rgba(75, 137, 255, .6)"}),d.line([0,h],[g,h]),d.line([u,0],[u,A]),d.restore()}var p2=function(){return xt(function a(c,u){Et(this,a),this.el=c,this.draw=new tA(c,u.viewWidth(),u.viewHeight()),this.data=u},[{key:"resetData",value:function(a){this.data=a,this.render()}},{key:"render",value:function(){var a=this.data,c=a.rows,u=a.cols.indexWidth,h=c.height;this.draw.resize(a.viewWidth(),a.viewHeight()),this.clear();var d=a.viewRange(),p=a.freezeTotalWidth(),g=a.freezeTotalHeight(),A=a.scroll,m=A.x,y=A.y;Gg.call(this,d,u,h,p,g),Dv.call(this,d,u,h,-m,-y),ou.call(this,"all",d,u,h,p,g),Z3.call(this,u,h);var b=En(a.freeze,2),I=b[0],E=b[1];if(I>0||E>0){if(I>0){var B=d.clone();B.sri=0,B.eri=I-1,B.h=g,Gg.call(this,B,u,h,p,0),Dv.call(this,B,u,h,-m,0),ou.call(this,"top",B,u,h,p,0)}if(E>0){var S=d.clone();S.sci=0,S.eci=E-1,S.w=p,Gg.call(this,S,u,h,0,g),ou.call(this,"left",S,u,h,0,g),Dv.call(this,S,u,h,0,-y)}var _=a.freezeViewRange();Gg.call(this,_,u,h,0,0),ou.call(this,"all",_,u,h,0,0),Dv.call(this,_,u,h,0,0),X3.call(this,u,h,p,g)}}},{key:"clear",value:function(){this.draw.clear()}}])}(),D0=[["A3",11.69,16.54],["A4",8.27,11.69],["A5",5.83,8.27],["B4",9.84,13.9],["B5",6.93,9.84]],R0=["landscape","portrait"];function nc(a){return parseInt(96*a,10)}function zC(a){a==="cancel"?this.el.hide():this.toPrint()}function v2(a){var c=this.paper,u=a.target.value,h=D0[u];c.w=nc(h[1]),c.h=nc(h[2]),this.preview()}function $3(a){var c=this.paper,u=a.target.value,h=R0[u];c.orientation=h,this.preview()}var rf=function(){return xt(function a(c){var u,h;Et(this,a),this.paper={w:nc(D0[0][1]),h:nc(D0[0][2]),padding:50,orientation:R0[0],get width(){return this.orientation==="landscape"?this.h:this.w},get height(){return this.orientation==="landscape"?this.w:this.h}},this.data=c,this.el=Vt("div","".concat($r,"-print")).children(Vt("div","".concat($r,"-print-bar")).children(Vt("div","-title").child("Print settings"),Vt("div","-right").children(Vt("div","".concat($r,"-buttons")).children(new ef("cancel").on("click",zC.bind(this,"cancel")),new ef("next","primary").on("click",zC.bind(this,"next"))))),Vt("div","".concat($r,"-print-content")).children(this.contentEl=Vt("div","-content"),Vt("div","-sider").child(Vt("form","").children(Vt("fieldset","").children(Vt("label","").child("".concat(Wi("print.size"))),(u=Vt("select","")).children.apply(u,Ni(D0.map(function(d,p){return Vt("option","").attr("value",p).child("".concat(d[0]," ( ").concat(d[1],"''x").concat(d[2],"'' )"))}))).on("change",v2.bind(this))),Vt("fieldset","").children(Vt("label","").child("".concat(Wi("print.orientation"))),(h=Vt("select","")).children.apply(h,Ni(R0.map(function(d,p){return Vt("option","").attr("value",p).child("".concat(Wi("print.orientations")[p]))}))).on("change",$3.bind(this))))))).hide()},[{key:"resetData",value:function(a){this.data=a}},{key:"preview",value:function(){var a=this,c=this.data,u=this.paper,h=u.width,d=u.height,p=u.padding,g=h-2*p,A=d-2*p,m=c.contentRange(),y=parseInt(m.h/A,10)+1,b=g/m.w,I=p,E=p;b>1&&(I+=(g-m.w)/2);var B=0,S=0;this.contentEl.html(""),this.canvases=[];for(var _={sri:0,sci:0,eri:0,eci:0},D=function(){var F=0,N=0,H=Vt("div","".concat($r,"-canvas-card")),W=Vt("canvas","".concat($r,"-canvas"));a.canvases.push(W.el);var V=new tA(W.el,h,d);for(V.save(),V.translate(I,E),b<1&&V.scale(b,b);B<=m.eri;B+=1){var te=c.rows.getHeight(B);if(!((F+=te)1&&arguments[1]!==void 0&&arguments[1];Et(this,a),this.menuItems=VC.call(this),this.el=(u=Vt("div","".concat($r,"-contextmenu"))).children.apply(u,Ni(this.menuItems)).hide(),this.viewFn=c,this.itemClick=function(){},this.isHide=h,this.setMode("range")},[{key:"setMode",value:function(a){var c=this.menuItems[12];a==="row-col"?c.show():c.hide()}},{key:"hide",value:function(){var a=this.el;a.hide(),xa(a)}},{key:"setPosition",value:function(a,c){if(!this.isHide){var u=this.el,h=u.show().offset().width,d=this.viewFn(),p=d.height/2,g=a;d.width-a<=h&&(g-=h),u.css("left","".concat(g,"px")),c>p?u.css("bottom","".concat(d.height-c,"px")).css("max-height","".concat(c,"px")).css("top","auto"):u.css("top","".concat(c,"px")).css("max-height","".concat(d.height-c,"px")).css("bottom","auto"),Ii(u)}}}])}();function aA(){return aA=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(a,c,u){var h=function(p,g){for(;!{}.hasOwnProperty.call(p,g)&&(p=sn(p))!==null;);return p}(a,c);if(h){var d=Object.getOwnPropertyDescriptor(h,c);return d.get?d.get.call(arguments.length<3?a:u):d.value}},aA.apply(null,arguments)}var Lu=function(){return xt(function a(c,u,h){Et(this,a),this.tip="",c&&(this.tip=Wi("toolbar.".concat(c.replace(/-[a-z]/g,function(d){return d[1].toUpperCase()})))),u&&(this.tip+=" (".concat(u,")")),this.tag=c,this.shortcut=u,this.value=h,this.el=this.element(),this.change=function(){}},[{key:"element",value:function(){var a=this,c=this.tip;return Vt("div","".concat($r,"-toolbar-btn")).on("mouseenter",function(u){a.tip&&function(h,d){if(!d.classList.contains("active")){var p=d.getBoundingClientRect(),g=p.left,A=p.top,m=p.width,y=p.height,b=Vt("div","".concat($r,"-tooltip")).html(h).show();document.body.appendChild(b.el);var I=b.box();b.css("left","".concat(g+m/2-I.width/2,"px")).css("top","".concat(A+y+2,"px")),Ne(d,"mouseleave",function(){document.body.contains(b.el)&&document.body.removeChild(b.el)}),Ne(d,"click",function(){document.body.contains(b.el)&&document.body.removeChild(b.el)})}}(a.tip,u.target)}).attr("data-tooltip",c)}},{key:"setState",value:function(){}}])}();function M0(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M0=function(){return!!a})()}var ml=function(a){function c(){return Et(this,c),u=this,d=arguments,h=sn(h=c),Ki(u,M0()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c,[{key:"dropdown",value:function(){}},{key:"getValue",value:function(u){return u}},{key:"element",value:function(){var u,h,d,p,g,A=this,m=this.tag;return this.dd=this.dropdown(),this.dd.change=function(y){return A.change(m,A.getValue(y))},(u=c,h="element",d=this,p=3,g=aA(sn(1&p?u.prototype:u),h,d),2&p&&typeof g=="function"?function(y){return g.apply(d,y)}:g)([]).child(this.dd)}},{key:"setState",value:function(u){u&&(this.value=u,this.dd.setTitle(u))}}])}(Lu);function ic(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ic=function(){return!!a})()}var Hs=function(a){function c(u,h,d,p){var g,A,m,y,b;Et(this,c),m=this,y=c,b=["div","".concat($r,"-dropdown ").concat(p)],y=sn(y),(A=Ki(m,ic()?Reflect.construct(y,b||[],sn(m).constructor):y.apply(m,b))).title=u,A.change=function(){},A.headerClick=function(){},typeof u=="string"?A.title=Vt("div","".concat($r,"-dropdown-title")).child(u):d&&A.title.addClass("arrow-left"),A.contentEl=Vt("div","".concat($r,"-dropdown-content")).css("width",h).hide();for(var I=arguments.length,E=new Array(I>4?I-4:0),B=4;B0&&(u=this.contentEl).children.apply(u,arguments)}},{key:"setTitle",value:function(u){this.title.html(u),this.hide()}},{key:"show",value:function(){var u=this;this.contentEl.show(),this.parent().active(),Ii(this.parent(),function(){u.hide()})}},{key:"hide",value:function(){this.parent().active(!1),this.contentEl.hide(),xa(this.parent())}}])}(It);function nf(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nf=function(){return!!a})()}var Rv=function(a){function c(u,h){var d;Et(this,c);var p,g,A,m=new Tu("align-".concat(h)),y=u.map(function(b){return(I="align-".concat(b),Vt("div","".concat($r,"-item")).child(new Tu(I))).on("click",function(){d.setTitle(b),d.change(b)});var I});return p=this,g=c,A=[m,"auto",!0,"bottom-left"].concat(Ni(y)),g=sn(g),d=Ki(p,nf()?Reflect.construct(g,A||[],sn(p).constructor):g.apply(p,A))}return nr(c,a),xt(c,[{key:"setTitle",value:function(u){this.title.setName("align-".concat(u)),this.hide()}}])}(Hs);function yd(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yd=function(){return!!a})()}var r5=function(a){function c(u){return Et(this,c),h=this,p=["align","",u],d=sn(d=c),Ki(h,yd()?Reflect.construct(d,p||[],sn(h).constructor):d.apply(h,p));var h,d,p}return nr(c,a),xt(c,[{key:"dropdown",value:function(){var u=this.value;return new Rv(["left","center","right"],u)}}])}(ml);function ci(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ci=function(){return!!a})()}var Mv=function(a){function c(u){return Et(this,c),h=this,p=["valign","",u],d=sn(d=c),Ki(h,ci()?Reflect.construct(d,p||[],sn(h).constructor):d.apply(h,p));var h,d,p}return nr(c,a),xt(c,[{key:"dropdown",value:function(){var u=this.value;return new Rv(["top","middle","bottom"],u)}}])}(ml);function F0(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F0=function(){return!!a})()}var ac=function(a){function c(){return Et(this,c),u=this,d=arguments,h=sn(h=c),Ki(u,F0()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c,[{key:"element",value:function(){var u,h,d,p,g,A=this,m=this.tag;return(u=c,h="element",d=this,p=3,g=aA(sn(1&p?u.prototype:u),h,d),2&p&&typeof g=="function"?function(y){return g.apply(d,y)}:g)([]).child(new Tu(m)).on("click",function(){return A.click()})}},{key:"click",value:function(){this.change(this.tag,this.toggle())}},{key:"setState",value:function(u){this.el.active(u)}},{key:"toggle",value:function(){return this.el.toggle()}},{key:"active",value:function(){return this.el.hasClass("active")}}])}(Lu);function oA(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oA=function(){return!!a})()}var Bh=function(a){function c(){return Et(this,c),u=this,d=["autofilter"],h=sn(h=c),Ki(u,oA()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c,[{key:"setState",value:function(){}}])}(ac);function sA(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sA=function(){return!!a})()}var T0=function(a){function c(){return Et(this,c),u=this,d=["font-bold","Ctrl+B"],h=sn(h=c),Ki(u,sA()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c)}(ac);function Ug(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ug=function(){return!!a})()}var gi=function(a){function c(){return Et(this,c),u=this,d=["font-italic","Ctrl+I"],h=sn(h=c),Ki(u,Ug()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c)}(ac);function y2(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y2=function(){return!!a})()}var n5=function(a){function c(){return Et(this,c),u=this,d=["strike","Ctrl+U"],h=sn(h=c),Ki(u,y2()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c)}(ac);function ZC(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZC=function(){return!!a})()}var i5=function(a){function c(){return Et(this,c),u=this,d=["underline","Ctrl+U"],h=sn(h=c),Ki(u,ZC()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c)}(ac),L0=["#ffffff","#000100","#e7e5e6","#445569","#5b9cd6","#ed7d31","#a5a5a5","#ffc001","#4371c6","#71ae47"],a5=[["#f2f2f2","#7f7f7f","#d0cecf","#d5dce4","#deeaf6","#fce5d5","#ededed","#fff2cd","#d9e2f3","#e3efd9"],["#d8d8d8","#595959","#afabac","#adb8ca","#bdd7ee","#f7ccac","#dbdbdb","#ffe59a","#b3c6e7","#c5e0b3"],["#bfbfbf","#3f3f3f","#756f6f","#8596b0","#9cc2e6","#f4b184","#c9c9c9","#fed964","#8eaada","#a7d08c"],["#a5a5a5","#262626","#3a3839","#333f4f","#2e75b5","#c45a10","#7b7b7b","#bf8e01","#2f5596","#538136"],["#7f7f7f","#0c0c0c","#171516","#222a35","#1f4e7a","#843c0a","#525252","#7e6000","#203864","#365624"]],m2=["#c00000","#fe0000","#fdc101","#ffff01","#93d051","#00b04e","#01b0f1","#0170c1","#012060","#7030a0"];function Fv(a){var c=this;return Vt("td","").child(Vt("div","".concat($r,"-color-palette-cell")).on("click.stop",function(){return c.change(a)}).css("background-color",a))}var o5=xt(function a(){var c,u,h,d=this;Et(this,a),this.el=Vt("div","".concat($r,"-color-palette")),this.change=function(){};var p=Vt("table","").children((c=Vt("tbody","")).children.apply(c,[(u=Vt("tr","".concat($r,"-theme-color-placeholders"))).children.apply(u,Ni(L0.map(function(g){return Fv.call(d,g)})))].concat(Ni(a5.map(function(g){var A;return(A=Vt("tr","".concat($r,"-theme-colors"))).children.apply(A,Ni(g.map(function(m){return Fv.call(d,m)})))})),[(h=Vt("tr","".concat($r,"-standard-colors"))).children.apply(h,Ni(m2.map(function(g){return Fv.call(d,g)})))])));this.el.child(p)});function I2(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I2=function(){return!!a})()}var Tv=function(a){function c(u,h){var d;Et(this,c);var p,g,A,m=new Tu(u).css("height","16px").css("border-bottom","3px solid ".concat(h)),y=new o5;return y.change=function(b){d.setTitle(b),d.change(b)},p=this,g=c,A=[m,"auto",!1,"bottom-left",y.el],g=sn(g),d=Ki(p,I2()?Reflect.construct(g,A||[],sn(p).constructor):g.apply(p,A))}return nr(c,a),xt(c,[{key:"setTitle",value:function(u){this.title.css("border-color",u),this.hide()}}])}(Hs);function b2(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b2=function(){return!!a})()}var N0=[["thin",''],["medium",''],["thick",''],["dashed",''],["dotted",'']],jg=function(a){function c(u){var h;Et(this,c);var d,p,g,A=new Tu("line-type"),m=0,y=N0.map(function(b,I){return Vt("div","".concat($r,"-item state ").concat(u===b[0]?"checked":"")).on("click",function(){y[m].toggle("checked"),y[I].toggle("checked"),m=I,h.hide(),h.change(b)}).child(Vt("div","".concat($r,"-line-type")).html(b[1]))});return d=this,p=c,g=[A,"auto",!1,"bottom-left"].concat(Ni(y)),p=sn(p),h=Ki(d,b2()?Reflect.construct(p,g||[],sn(d).constructor):p.apply(d,g))}return nr(c,a),xt(c)}(Hs);function O0(){var a;return Vt("table","").child((a=Vt("tbody","")).children.apply(a,arguments))}function XC(a){var c=this;return Vt("td","").child(Vt("div","".concat($r,"-border-palette-cell")).child(new Tu("border-".concat(a))).on("click",function(){c.mode=a;var u=c.mode,h=c.style,d=c.color;c.change({mode:u,style:h,color:d})}))}var $C=xt(function a(){var c,u,h=this;Et(this,a),this.color="#000",this.style="thin",this.mode="all",this.change=function(){},this.ddColor=new Tv("line-color",this.color),this.ddColor.change=function(p){h.color=p},this.ddType=new jg(this.style),this.ddType.change=function(p){var g=En(p,1)[0];h.style=g},this.el=Vt("div","".concat($r,"-border-palette"));var d=O0(Vt("tr","").children(Vt("td","".concat($r,"-border-palette-left")).child(O0((c=Vt("tr","")).children.apply(c,Ni(["all","inside","horizontal","vertical","outside"].map(function(p){return XC.call(h,p)}))),(u=Vt("tr","")).children.apply(u,Ni(["left","top","right","bottom","none"].map(function(p){return XC.call(h,p)}))))),Vt("td","".concat($r,"-border-palette-right")).children(Vt("div","".concat($r,"-toolbar-btn")).child(this.ddColor.el),Vt("div","".concat($r,"-toolbar-btn")).child(this.ddType.el))));this.el.child(d)});function Lv(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lv=function(){return!!a})()}var C2=function(a){function c(){var u;Et(this,c);var h,d,p,g=new Tu("border-all"),A=new $C;return A.change=function(m){u.change(m),u.hide()},h=this,d=c,p=[g,"auto",!1,"bottom-left",A.el],d=sn(d),u=Ki(h,Lv()?Reflect.construct(d,p||[],sn(h).constructor):d.apply(h,p))}return nr(c,a),xt(c)}(Hs);function ew(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ew=function(){return!!a})()}var Nv=function(a){function c(){return Et(this,c),u=this,d=["border"],h=sn(h=c),Ki(u,ew()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c,[{key:"dropdown",value:function(){return new C2}}])}(ml);function zl(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zl=function(){return!!a})()}var md=function(a){function c(){return Et(this,c),u=this,d=arguments,h=sn(h=c),Ki(u,zl()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c,[{key:"element",value:function(){var u,h,d,p,g,A=this;return(u=c,h="element",d=this,p=3,g=aA(sn(1&p?u.prototype:u),h,d),2&p&&typeof g=="function"?function(m){return g.apply(d,m)}:g)([]).child(new Tu(this.tag)).on("click",function(){return A.change(A.tag)})}},{key:"setState",value:function(u){this.el.disabled(u)}}])}(Lu);function Hg(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hg=function(){return!!a})()}var tw=function(a){function c(){return Et(this,c),u=this,d=["clearformat"],h=sn(h=c),Ki(u,Hg()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c)}(md);function Ov(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ov=function(){return!!a})()}var rw=function(a){function c(){return Et(this,c),u=this,d=["paintformat"],h=sn(h=c),Ki(u,Ov()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c,[{key:"setState",value:function(){}}])}(ac);function Id(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Id=function(){return!!a})()}var Yg=function(a){function c(u){return Et(this,c),h=this,p=["color",void 0,u],d=sn(d=c),Ki(h,Id()?Reflect.construct(d,p||[],sn(h).constructor):d.apply(h,p));var h,d,p}return nr(c,a),xt(c,[{key:"dropdown",value:function(){var u=this.tag,h=this.value;return new Tv(u,h)}}])}(ml);function Jg(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jg=function(){return!!a})()}var P0=function(a){function c(u){return Et(this,c),h=this,p=["bgcolor",void 0,u],d=sn(d=c),Ki(h,Jg()?Reflect.construct(d,p||[],sn(h).constructor):d.apply(h,p));var h,d,p}return nr(c,a),xt(c,[{key:"dropdown",value:function(){var u=this.tag,h=this.value;return new Tv(u,h)}}])}(ml);function af(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(af=function(){return!!a})()}var nw=function(a){function c(){var u;Et(this,c);var h,d,p,g=js.map(function(A){return Vt("div","".concat($r,"-item")).on("click",function(){u.setTitle("".concat(A.pt)),u.change(A)}).child("".concat(A.pt))});return h=this,d=c,p=["10","60px",!0,"bottom-left"].concat(Ni(g)),d=sn(d),u=Ki(h,af()?Reflect.construct(d,p||[],sn(h).constructor):d.apply(h,p))}return nr(c,a),xt(c)}(Hs);function Pv(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pv=function(){return!!a})()}var w2=function(a){function c(){return Et(this,c),u=this,d=["font-size"],h=sn(h=c),Ki(u,Pv()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c,[{key:"getValue",value:function(u){return u.pt}},{key:"dropdown",value:function(){return new nw}}])}(ml);function G0(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G0=function(){return!!a})()}var Kl=function(a){function c(){var u;Et(this,c);var h,d,p,g=S0.map(function(A){return Vt("div","".concat($r,"-item")).on("click",function(){u.setTitle(A.title),u.change(A)}).child(A.title)});return h=this,d=c,p=[S0[0].title,"160px",!0,"bottom-left"].concat(Ni(g)),d=sn(d),u=Ki(h,G0()?Reflect.construct(d,p||[],sn(h).constructor):d.apply(h,p))}return nr(c,a),xt(c)}(Hs);function Yc(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yc=function(){return!!a})()}var Wg=function(a){function c(){return Et(this,c),u=this,d=["font-name"],h=sn(h=c),Ki(u,Yc()?Reflect.construct(h,d||[],sn(u).constructor):h.apply(u,d));var u,h,d}return nr(c,a),xt(c,[{key:"getValue",value:function(u){return u.key}},{key:"dropdown",value:function(){return new Kl}}])}(ml);function of(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(of=function(){return!!a})()}var iw=function(a){function c(){var u;Et(this,c);var h,d,p,g=iA.slice(0);return g.splice(2,0,{key:"divider"}),g.splice(8,0,{key:"divider"}),g=g.map(function(A){var m=Vt("div","".concat($r,"-item"));return A.key==="divider"?m.addClass("divider"):(m.child(A.title()).on("click",function(){u.setTitle(A.title()),u.change(A)}),A.label&&m.child(Vt("div","label").html(A.label))),m}),h=this,d=c,p=["Normal","220px",!0,"bottom-left"].concat(Ni(g)),d=sn(d),u=Ki(h,of()?Reflect.construct(d,p||[],sn(h).constructor):d.apply(h,p))}return nr(c,a),xt(c,[{key:"setTitle",value:function(u){for(var h=0;h0?d.show():d.hide()}function cA(a){var c=this,u=new Lu;u.el.on("click",function(){a.onClick&&a.onClick(c.data.getData(),c.data)}),u.tip=a.tip||"";var h=a.el;if(a.icon&&(h=Vt("img").attr("src",a.icon)),h){var d=Vt("div","".concat($r,"-icon"));d.child(h),u.el.child(d)}return u}var x2=function(){return xt(function a(c,u){var h=this,d=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Et(this,a),this.data=c,this.change=function(){},this.widthFn=u,this.isHide=d;var p=c.defaultStyle();this.items=[[this.undoEl=new s5,this.redoEl=new j0,new Uv,this.paintformatEl=new rw,this.clearformatEl=new tw],uA(),[this.formatEl=new E2],uA(),[this.fontEl=new Wg,this.fontSizeEl=new w2],uA(),[this.boldEl=new T0,this.italicEl=new gi,this.underlineEl=new i5,this.strikeEl=new n5,this.textColorEl=new Yg(p.color)],uA(),[this.fillColorEl=new P0(p.bgcolor),this.borderEl=new Nv,this.mergeEl=new uf],uA(),[this.alignEl=new r5(p.align),this.valignEl=new Mv(p.valign),this.textwrapEl=new Q2],uA(),[this.freezeEl=new su,this.autofilterEl=new Bh,this.formulaEl=new qg]];var g=c.settings.extendToolbar,A=g===void 0?{}:g;if(A.left&&A.left.length>0){this.items.unshift(uA());var m=A.left.map(cA.bind(this));this.items.unshift(m)}if(A.right&&A.right.length>0){this.items.push(uA());var y=A.right.map(cA.bind(this));this.items.push(y)}this.items.push([this.moreEl=new Jc]),this.el=Vt("div","".concat($r,"-toolbar")),this.btns=Vt("div","".concat($r,"-toolbar-btns")),this.items.forEach(function(b){Array.isArray(b)?b.forEach(function(I){h.btns.child(I.el),I.change=function(){h.change.apply(h,arguments)}}):h.btns.child(b.el)}),this.el.child(this.btns),d?this.el.hide():(this.reset(),setTimeout(function(){Nu.call(h),bd.call(h)},0),Ne(window,"resize",function(){bd.call(h)}))},[{key:"paintformatActive",value:function(){return this.paintformatEl.active()}},{key:"paintformatToggle",value:function(){this.paintformatEl.toggle()}},{key:"trigger",value:function(a){this["".concat(a,"El")].click()}},{key:"resetData",value:function(a){this.data=a,this.reset()}},{key:"reset",value:function(){if(!this.isHide){var a=this.data,c=a.getSelectedCellStyle();this.undoEl.setState(!a.canUndo()),this.redoEl.setState(!a.canRedo()),this.mergeEl.setState(a.canUnmerge(),!a.selector.multiple()),this.autofilterEl.setState(!a.canAutofilter());var u=c.font,h=c.format;this.formatEl.setState(h),this.fontEl.setState(u.name),this.fontSizeEl.setState(u.size),this.boldEl.setState(u.bold),this.italicEl.setState(u.italic),this.underlineEl.setState(c.underline),this.strikeEl.setState(c.strike),this.textColorEl.setState(c.color),this.fillColorEl.setState(c.bgcolor),this.alignEl.setState(c.align),this.valignEl.setState(c.valign),this.textwrapEl.setState(c.textwrap),this.freezeEl.setState(a.freezeIsActive())}}}])}(),kh=function(){return xt(function a(c,u){var h,d=this,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"600px";Et(this,a),this.title=c,this.el=Vt("div","".concat($r,"-modal")).css("width",p).children(Vt("div","".concat($r,"-modal-header")).children(new Tu("close").on("click.stop",function(){return d.hide()}),this.title),(h=Vt("div","".concat($r,"-modal-content"))).children.apply(h,Ni(u))).hide()},[{key:"show",value:function(){var a=this;this.dimmer=Vt("div","".concat($r,"-dimmer active")),document.body.appendChild(this.dimmer.el);var c=this.el.show().box(),u=c.width,h=c.height,d=document.documentElement,p=d.clientHeight,g=d.clientWidth;this.el.offset({left:(g-u)/2,top:(p-h)/3}),window.xkeydownEsc=function(A){A.keyCode===27&&a.hide()},Ne(window,"keydown",window.xkeydownEsc)}},{key:"hide",value:function(){this.el.hide(),document.body.removeChild(this.dimmer.el),pr(window,"keydown",window.xkeydownEsc),delete window.xkeydownEsc}}])}(),Cu=function(){return xt(function a(c,u){var h=this;Et(this,a),this.vchange=function(){},this.el=Vt("div","".concat($r,"-form-input")),this.input=Vt("input","").css("width",c).on("input",function(d){return h.vchange(d)}).attr("placeholder",u),this.el.child(this.input)},[{key:"focus",value:function(){var a=this;setTimeout(function(){a.input.el.focus()},10)}},{key:"hint",value:function(a){this.input.attr("placeholder",a)}},{key:"val",value:function(a){return this.input.val(a)}}])}(),H0=function(){return xt(function a(c,u,h){var d=this,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(A){return A},g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){};Et(this,a),this.key=c,this.getTitle=p,this.vchange=function(){},this.el=Vt("div","".concat($r,"-form-select")),this.suggest=new l2(u.map(function(A){return{key:A,title:d.getTitle(A)}}),function(A){d.itemClick(A.key),g(A.key),d.vchange(A.key)},h,this.el),this.el.children(this.itemEl=Vt("div","input-text").html(this.getTitle(c)),this.suggest.el).on("click",function(){return d.show()})},[{key:"show",value:function(){this.suggest.search("")}},{key:"itemClick",value:function(a){this.key=a,this.itemEl.html(this.getTitle(a))}},{key:"val",value:function(a){return a!==void 0?(this.key=a,this.itemEl.html(this.getTitle(a)),this):this.key}}])}(),hw={number:/(^\d+$)|(^\d+(\.\d{0,4})?$)/,date:/^\d{4}-\d{1,2}-\d{1,2}$/},Wc=function(){return xt(function a(c,u,h,d){var p=this;Et(this,a),this.label="",this.rule=u,h&&(this.label=Vt("label","label").css("width","".concat(d,"px")).html(h)),this.tip=Vt("div","tip").child("tip").hide(),this.input=c,this.input.vchange=function(){return p.validate()},this.el=Vt("div","".concat($r,"-form-field")).children(this.label,c.el,this.tip)},[{key:"isShow",value:function(){return this.el.css("display")!=="none"}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"val",value:function(a){return this.input.val(a)}},{key:"hint",value:function(a){this.input.hint(a)}},{key:"validate",value:function(){var a=this.input,c=this.rule,u=this.tip,h=this.el,d=a.val();return c.required&&/^\s*$/.test(d)?(u.html(Wi("validation.required")),h.addClass("error"),!1):(c.type||c.pattern)&&!(c.pattern||hw[c.type]).test(d)?(u.html(Wi("validation.notMatch")),h.addClass("error"),!1):(h.removeClass("error"),!0)}}])}();function Cd(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cd=function(){return!!a})()}var qc=function(a){function c(){var u;Et(this,c);var h,d,p,g=new Wc(new H0("cell",["cell"],"100%",function(S){return Wi("dataValidation.modeType.".concat(S))}),{required:!0},"".concat(Wi("dataValidation.range"),":"),100),A=new Wc(new Cu("120px","E3 or E3:F12"),{required:!0,pattern:/^([A-Z]{1,2}[1-9]\d*)(:[A-Z]{1,2}[1-9]\d*)?$/}),m=new Wc(new H0("list",["list","number","date","phone","email"],"100%",function(S){return Wi("dataValidation.type.".concat(S))},function(S){return u.criteriaSelected(S)}),{required:!0},"".concat(Wi("dataValidation.criteria"),":"),100),y=new Wc(new H0("be",["be","nbe","eq","neq","lt","lte","gt","gte"],"160px",function(S){return Wi("dataValidation.operator.".concat(S))},function(S){return u.criteriaOperatorSelected(S)}),{required:!0}).hide(),b=new Wc(new Cu("70px","10"),{required:!0}).hide(),I=new Wc(new Cu("70px","100"),{required:!0,type:"number"}).hide(),E=new Wc(new Cu("120px","a,b,c"),{required:!0}),B=new Wc(new Cu("70px","10"),{required:!0,type:"number"}).hide();return h=this,d=c,p=[Wi("contextmenu.validation"),[Vt("div","".concat($r,"-form-fields")).children(g.el,A.el),Vt("div","".concat($r,"-form-fields")).children(m.el,y.el,b.el,I.el,B.el,E.el),Vt("div","".concat($r,"-buttons")).children(new ef("cancel").on("click",function(){return u.btnClick("cancel")}),new ef("remove").on("click",function(){return u.btnClick("remove")}),new ef("save","primary").on("click",function(){return u.btnClick("save")}))]],d=sn(d),(u=Ki(h,Cd()?Reflect.construct(d,p||[],sn(h).constructor):d.apply(h,p))).mf=g,u.rf=A,u.cf=m,u.of=y,u.minvf=b,u.maxvf=I,u.vf=B,u.svf=E,u.change=function(){},u}return nr(c,a),xt(c,[{key:"showVf",value:function(u){var h=u==="date"?"2018-11-12":"10",d=this.vf;d.input.hint(h),d.show()}},{key:"criteriaSelected",value:function(u){var h=this.of,d=this.minvf,p=this.maxvf,g=this.vf,A=this.svf;u==="date"||u==="number"?(h.show(),d.rule.type=u,p.rule.type=u,u==="date"?(d.hint("2018-11-12"),p.hint("2019-11-12")):(d.hint("10"),p.hint("100")),d.show(),p.show(),g.hide(),A.hide()):(u==="list"?A.show():A.hide(),g.hide(),h.hide(),d.hide(),p.hide())}},{key:"criteriaOperatorSelected",value:function(u){if(u){var h=this.minvf,d=this.maxvf,p=this.vf;if(u==="be"||u==="nbe")h.show(),d.show(),p.hide();else{var g=this.cf.val();p.rule.type=g,g==="date"?p.hint("2018-11-12"):p.hint("10"),p.show(),h.hide(),d.hide()}}}},{key:"btnClick",value:function(u){if(u==="cancel")this.hide();else if(u==="remove")this.change("remove"),this.hide();else if(u==="save"){for(var h=["mf","rf","cf","of","svf","vf","minvf","maxvf"],d=0;db.width)u.move({left:d+m-b.width});else{var I=a.freezeTotalWidth();gb.height)c.move({top:p+y-b.height-1});else{var E=a.freezeTotalHeight();A3&&arguments[3]!==void 0)||arguments[3],d=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(c!==-1||u!==-1){this.table;var p=this.selector;this.toolbar;var g=this.data,A=this.contextMenu,m=g.getCell(c,u);a?(p.setEnd(c,u,d),this.trigger("cells-selected",m,p.range)):(p.set(c,u,h),this.trigger("cell-selected",m,c,u)),A.setMode(c===-1||u===-1?"row-col":"range")}}function Vl(a,c){var u=this.selector,h=this.data,d=h.rows,p=h.cols,g=En(u.indexes,2),A=g[0],m=g[1],y=u.range,b=y.eri,I=y.eci;if(a){var E=En(u.moveIndexes,2);A=E[0],m=E[1]}c==="left"?m>0&&(m-=1):c==="right"?(I!==m&&(m=I),m0&&(A-=1):c==="down"?(b!==A&&(A=b),Am.indexWidth&&u>A.height)return h.hide(),void d.hide();var y=p.box(),b=g.getCellRectByXY(a.offsetX,a.offsetY);b.ri>=0&&b.ci===-1?(b.width=m.indexWidth,h.show(b,{width:y.width}),A.isHide(b.ri-1)?h.showUnhide(b.ri):h.hideUnhide()):h.hide(),b.ri===-1&&b.ci>=0?(b.height=A.height,d.show(b,{height:y.height}),m.isHide(b.ci-1)?d.showUnhide(b.ci):d.hideUnhide()):d.hide()}}function Hv(a){var c=this.verticalScrollbar,u=this.horizontalScrollbar,h=this.data,d=c.scroll().top,p=u.scroll().left,g=h.rows,A=h.cols,m=a.deltaY,y=a.deltaX,b=function(_,D){var T=_,F=0;do F=D(T),T+=1;while(F<=0);return F},I=function(_){if(_>0){var D=h.scroll.ri+1;if(D=0){var N=b(F,function(H){return g.getHeight(H)});c.move({top:F===0?0:d-N})}}},E=Math.abs(m),B=Math.abs(y),S=Math.max(E,B);/Firefox/i.test(window.navigator.userAgent)&&Zg(I(a.detail),50),S===B&&Zg(function(_){if(_>0){var D=h.scroll.ci+1;if(D=0){var N=b(F,function(H){return A.getWidth(H)});u.move({left:F===0?0:p-N})}}}(y),50),S===E&&Zg(I(m),50)}function Y0(a,c){var u=this.verticalScrollbar,h=this.horizontalScrollbar,d=u.scroll().top,p=h.scroll().left;a==="left"||a==="right"?h.move({left:p-c}):a!=="up"&&a!=="down"||u.move({top:d-c})}function D2(){var a=this.data,c=this.verticalScrollbar,u=this.getTableOffset().height,h=a.exceptRowTotalHeight(0,-1);c.set(u,a.rows.totalHeight()-h)}function Qh(){var a=this.data,c=this.horizontalScrollbar,u=this.getTableOffset().width;a&&c.set(u,a.cols.totalWidth())}function Yv(){var a=this.selector,c=this.data,u=this.editor,h=En(c.freeze,2),d=h[0],p=h[1];if(d>0||p>0){var g=c.freezeTotalWidth(),A=c.freezeTotalHeight();u.setFreezeLengths(g,A)}a.resetAreaOffset()}function wu(){var a=this.tableEl,c=this.overlayerEl,u=this.overlayerCEl,h=this.table,d=this.toolbar,p=this.selector,g=this.el,A=this.getTableOffset(),m=this.getRect();a.attr(m),c.offset(m),u.offset(A),g.css("width","".concat(m.width,"px")),D2.call(this),Qh.call(this),Yv.call(this),h.render(),d.reset(),p.reset()}function J0(){var a=this.data,c=this.selector;a.clearClipboard(),c.hideClipboard()}function R2(a){var c=this.data,u=this.selector;c.settings.mode!=="read"&&(c.copy(),c.copyToSystemClipboard(a),u.showClipboard())}function Aw(){var a=this.data,c=this.selector;a.settings.mode!=="read"&&(a.cut(),c.showClipboard())}function W0(a,c){var u=this,h=this.data;if(h.settings.mode!=="read"){if(h.clipboard.isClear())h.pasteFromSystemClipboard(function(){return wu.call(u)},function(p){u.trigger("pasted-clipboard",p)});else if(h.paste(a,function(p){return Vg("Tip",p)}))wu.call(this);else if(c){var d=c.clipboardData.getData("text/plain");this.data.pasteFromText(d),wu.call(this)}}}function c5(){this.data.hideRowsOrCols(),wu.call(this)}function M2(a,c){this.data.unhideRowsOrCols(a,c),wu.call(this)}function l5(){this.data.autofilter(),wu.call(this)}function F2(){var a=this.toolbar;a.paintformatActive()&&(W0.call(this,"format"),J0.call(this),a.paintformatToggle())}function T2(a){var c=this,u=this.selector,h=this.data,d=this.table,p=this.sortFilter,g=a.offsetX,A=a.offsetY,m=a.target.className==="".concat($r,"-selector-corner"),y=h.getCellRectByXY(g,A),b=y.left,I=y.top,E=y.width,B=y.height,S=y.ri,_=y.ci,D=h.autoFilter;if(D.includes(S,_)&&b+E-20u.height/2&&(h="bottom"),a.setOffset(c,h)}function $g(){var a=this.editor,c=this.data;c.settings.mode!=="read"&&(Xg.call(this),a.setCell(c.getSelectedCell(),c.getSelectedValidator()),J0.call(this))}function go(a){var c=this,u=this.data,h=this.table,d=this.selector;u.scrolly(a,function(){d.resetBRLAreaOffset(),Xg.call(c),h.render()})}function dw(a){var c=this,u=this.data,h=this.table,d=this.selector;u.scrollx(a,function(){d.resetBRTAreaOffset(),Xg.call(c),h.render()})}function gw(a,c){var u=a.ri,h=this.table,d=this.selector,p=this.data,g=d.range,A=g.sri,m=g.eri;if(u>=A&&u<=m)for(var y=A;y<=m;y+=1)p.rows.setHeight(y,c);else p.rows.setHeight(u,c);h.render(),d.resetAreaOffset(),D2.call(this),Xg.call(this)}function h5(a,c){var u=a.ci,h=this.table,d=this.selector,p=this.data,g=d.range,A=g.sci,m=g.eci;if(u>=A&&u<=m)for(var y=A;y<=m;y+=1)p.cols.setWidth(y,c);else p.cols.setWidth(u,c);h.render(),d.resetAreaOffset(),Qh.call(this),Xg.call(this)}function lA(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"finished",u=this.data,h=this.table;if(u.settings.mode!=="read"){u.setSelectedCellText(a,c);var d=u.selector,p=d.ri,g=d.ci;c==="finished"?h.render():this.trigger("cell-edited",a,p,g)}}function oc(a){var c=this.data;c.settings.mode!=="read"&&(a==="insert-row"?c.insert("row"):a==="delete-row"?c.delete("row"):a==="insert-column"?c.insert("column"):a==="delete-column"?c.delete("column"):a==="delete-cell"?c.deleteCell():a==="delete-cell-format"?c.deleteCell("format"):a==="delete-cell-text"?c.deleteCell("text"):a==="cell-printable"?c.setSelectedCellAttr("printable",!0):a==="cell-non-printable"?c.setSelectedCellAttr("printable",!1):a==="cell-editable"?c.setSelectedCellAttr("editable",!0):a==="cell-non-editable"&&c.setSelectedCellAttr("editable",!1),J0.call(this),wu.call(this))}function q0(a,c){var u=this.data;if(a==="undo")this.undo();else if(a==="redo")this.redo();else if(a==="print")this.print.preview();else if(a==="paintformat")c===!0?R2.call(this):J0.call(this);else if(a==="clearformat")oc.call(this,"delete-cell-format");else if(a!=="link"){if(a!=="chart")if(a==="autofilter")l5.call(this);else if(a==="freeze")if(c){var h=u.selector,d=h.ri,p=h.ci;this.freeze(d,p)}else this.freeze(0,0);else u.setSelectedCellAttr(a,c),a!=="formula"||u.selector.multiple()||$g.call(this),wu.call(this)}}function f5(a,c,u,h){this.data.setAutoFilter(a,c,u,h),wu.call(this)}function Jv(){var a,c,u,h,d,p,g=this,A=this.selector,m=this.overlayerEl,y=this.rowResizer,b=this.colResizer,I=this.verticalScrollbar,E=this.horizontalScrollbar,B=this.editor,S=this.contextMenu,_=this.toolbar,D=this.modalValidation,T=this.sortFilter;m.on("mousemove",function(F){_2.call(g,F)}).on("mousedown",function(F){S.hide(),F.buttons===2?(g.data.xyInSelectedRect(F.offsetX,F.offsetY)||T2.call(g,F),S.setPosition(F.offsetX,F.offsetY),F.stopPropagation()):F.detail===2?$g.call(g):T2.call(g,F)}).on("mousewheel.stop",function(F){Hv.call(g,F)}).on("mouseout",function(F){var N=F.offsetX;F.offsetY<=0&&b.hide(),N<=0&&y.hide()}),A.inputChange=function(F){lA.call(g,F,"input"),$g.call(g)},a=m.el,u=(c={move:function(F,N){Y0.call(g,F,N)}}).move,h=c.end,d=0,p=0,Ne(a,"touchstart",function(F){var N=F.touches[0],H=N.pageX,W=N.pageY;d=H,p=W}),Ne(a,"touchmove",function(F){if(u){var N=F.changedTouches[0],H=N.pageX,W=N.pageY,V=H-d,te=W-p;(Math.abs(V)>10||Math.abs(te)>10)&&(fi(V,te,F,u),d=H,p=W),F.preventDefault()}}),Ne(a,"touchend",function(F){if(h){var N=F.changedTouches[0],H=N.pageX,W=N.pageY;fi(H-d,W-p,F,h)}}),_.change=function(F,N){return q0.call(g,F,N)},T.ok=function(F,N,H,W){return f5.call(g,F,N,H,W)},y.finishedFn=function(F,N){gw.call(g,F,N)},b.finishedFn=function(F,N){h5.call(g,F,N)},y.unhideFn=function(F){M2.call(g,"row",F)},b.unhideFn=function(F){M2.call(g,"col",F)},I.moveFn=function(F,N){go.call(g,F,N)},E.moveFn=function(F,N){dw.call(g,F,N)},B.change=function(F,N){lA.call(g,N,F)},D.change=function(F){if(F==="save"){for(var N,H=arguments.length,W=new Array(H>1?H-1:0),V=1;V=65&&N<=90||N>=48&&N<=57||N>=96&&N<=105||F.key==="="?(lA.call(g,F.key,"input"),$g.call(g)):N===113&&$g.call(g)}}})}var L2=function(){return xt(function a(c,u){var h=this;Et(this,a),this.eventMap=function(){var m=new Map;function y(I,E){var B;return m.has(I)&&(B=m.get(I),Array.isArray(B)&&B.push(E)||!1)||m.set(I,[].concat(E))}function b(I,E){var B,S;return m.has(I)&&(S=(B=m.get(I)).indexOf(E))>=0&&B.splice(S,1)&&m.get(I).length===0&&m.delete(I)}return{get current(){return m},on:y,once:function(I,E){var B=function(){for(var S=arguments.length,_=new Array(S),D=0;D1?u-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:function(){},h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){};Et(this,a),this.swapFunc=h,this.updateFunc=p,this.dataNames=[],this.activeEl=null,this.deleteEl=null,this.items=[],this.moreEl=new A5(function(g){c.clickSwap2(c.items[g])}),this.contextMenu=new qv,this.contextMenu.itemClick=d,this.el=Vt("div","".concat($r,"-bottombar")).children(this.contextMenu.el,this.menuEl=Vt("ul","".concat($r,"-menu")).child(Vt("li","").children(new Tu("add").on("click",function(){u()}),Vt("span","").child(this.moreEl))))},[{key:"addItem",value:function(a,c,u){var h=this;this.dataNames.push(a);var d=Vt("li",c?"active":"").child(a);d.on("click",function(){h.clickSwap2(d)}).on("contextmenu",function(p){if(u.mode!=="read"){var g=p.target,A=g.offsetLeft,m=g.offsetHeight;h.contextMenu.setOffset({left:A,bottom:m+1}),h.deleteEl=d}}).on("dblclick",function(){if(u.mode!=="read"){var p=d.html(),g=new Cu("auto","");g.val(p),g.input.on("blur",function(A){var m=A.target.value,y=h.dataNames.findIndex(function(b){return b===p});h.renameItem(y,m)}),d.html("").child(g.el),g.focus()}}),c&&this.clickSwap(d),this.items.push(d),this.menuEl.child(d),this.moreEl.reset(this.dataNames)}},{key:"renameItem",value:function(a,c){this.dataNames.splice(a,1,c),this.moreEl.reset(this.dataNames),this.items[a].html("").child(c),this.updateFunc(a,c)}},{key:"clear",value:function(){var a=this;this.items.forEach(function(c){a.menuEl.removeChild(c.el)}),this.items=[],this.dataNames=[],this.moreEl.reset(this.dataNames)}},{key:"deleteItem",value:function(){var a=this.activeEl,c=this.deleteEl;if(this.items.length>1){var u=this.items.findIndex(function(d){return d===c});if(this.items.splice(u,1),this.dataNames.splice(u,1),this.menuEl.removeChild(c.el),this.moreEl.reset(this.dataNames),a===c){var h=En(this.items,1)[0];return this.activeEl=h,this.activeEl.toggle(),[u,0]}return[u,-1]}return[-1]}},{key:"clickSwap2",value:function(a){var c=this.items.findIndex(function(u){return u===a});this.clickSwap(a),this.activeEl.toggle(),this.swapFunc(c)}},{key:"clickSwap",value:function(a){this.activeEl!==null&&this.activeEl.toggle(),this.activeEl=a}}])}();function O2(a,c){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(a);c&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),u.push.apply(u,h)}return u}var tp=function(){return xt(function a(c){var u=this,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Et(this,a);var d=c;this.options=function(g){for(var A=1;A1&&arguments[1]!==void 0)||arguments[1],h=a||"sheet".concat(this.sheetIndex),d=new Es(h,this.options);return d.change=function(){for(var p,g=arguments.length,A=new Array(g),m=0;m=0&&(this.datas.splice(c,1),u>=0&&this.sheet.resetData(this.datas[u]),this.sheet.trigger("change"))}}},{key:"loadData",value:function(a){var c=Array.isArray(a)?a:[a];if(this.bottombar!==null&&this.bottombar.clear(),this.datas=[],c.length>0)for(var u=0;u3&&arguments[3]!==void 0?arguments[3]:0;return this.datas[h].setCellText(a,c,u,"finished"),this}},{key:"cell",value:function(a,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.datas[u].getCell(a,c)}},{key:"cellStyle",value:function(a,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.datas[u].getCellStyle(a,c)}},{key:"reRender",value:function(){return this.sheet.table.render(),this}},{key:"on",value:function(a,c){return this.sheet.on(a,c),this}},{key:"validate",value:function(){return this.data.validations.errors.size<=0}},{key:"change",value:function(a){return this.sheet.on("change",a),this}}],[{key:"locale",value:function(a,c){Io(a,c)}}])}();function Kv(a,c,u,h,d,p,g){try{var A=a[p](g),m=A.value}catch(y){return void u(y)}A.done?c(m):Promise.resolve(m).then(h,d)}function Sa(a){return function(){var c=this,u=arguments;return new Promise(function(h,d){var p=a.apply(c,u);function g(m){Kv(p,h,d,g,A,"next",m)}function A(m){Kv(p,h,d,g,A,"throw",m)}g(void 0)})}}function P2(a,c){this.v=a,this.k=c}function Vv(a){return new P2(a,0)}function hA(a){var c,u;function h(p,g){try{var A=a[p](g),m=A.value,y=m instanceof P2;Promise.resolve(y?m.v:m).then(function(b){if(y){var I=p==="return"?"return":"next";if(!m.k||b.done)return h(I,b);b=a[I](b).value}d(A.done?"return":"normal",b)},function(b){h("throw",b)})}catch(b){d("throw",b)}}function d(p,g){switch(p){case"return":c.resolve({value:g,done:!0});break;case"throw":c.reject(g);break;default:c.resolve({value:g,done:!1})}(c=c.next)?h(c.key,c.arg):u=null}this._invoke=function(p,g){return new Promise(function(A,m){var y={key:p,arg:g,resolve:A,reject:m,next:null};u?u=u.next=y:(c=u=y,h(p,g))})},typeof a.return!="function"&&(this.return=void 0)}window&&(window.x_spreadsheet=function(a){return new tp(a,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})},window.x_spreadsheet.locale=function(a,c){return Io(a,c)}),hA.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},hA.prototype.next=function(a){return this._invoke("next",a)},hA.prototype.throw=function(a){return this._invoke("throw",a)},hA.prototype.return=function(a){return this._invoke("return",a)};var Ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof q3<"u"?q3:typeof self<"u"?self:{};function Zv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Xv={exports:{}},fA={exports:{}};(function(a){function c(u){return a.exports=c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},a.exports.__esModule=!0,a.exports.default=a.exports,c(u)}a.exports=c,a.exports.__esModule=!0,a.exports.default=a.exports})(fA);var g5=fA.exports;(function(a){var c=g5.default;function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a.exports=u=function(){return d},a.exports.__esModule=!0,a.exports.default=a.exports;var h,d={},p=Object.prototype,g=p.hasOwnProperty,A=Object.defineProperty||function(X,se,oe){X[se]=oe.value},m=typeof Symbol=="function"?Symbol:{},y=m.iterator||"@@iterator",b=m.asyncIterator||"@@asyncIterator",I=m.toStringTag||"@@toStringTag";function E(X,se,oe){return Object.defineProperty(X,se,{value:oe,enumerable:!0,configurable:!0,writable:!0}),X[se]}try{E({},"")}catch{E=function(se,oe,ye){return se[oe]=ye}}function B(X,se,oe,ye){var ae=se&&se.prototype instanceof H?se:H,me=Object.create(ae.prototype),Fe=new q(ye||[]);return A(me,"_invoke",{value:Z(X,oe,Fe)}),me}function S(X,se,oe){try{return{type:"normal",arg:X.call(se,oe)}}catch(ye){return{type:"throw",arg:ye}}}d.wrap=B;var _="suspendedStart",D="suspendedYield",T="executing",F="completed",N={};function H(){}function W(){}function V(){}var te={};E(te,y,function(){return this});var ue=Object.getPrototypeOf,fe=ue&&ue(ue(z([])));fe&&fe!==p&&g.call(fe,y)&&(te=fe);var de=V.prototype=H.prototype=Object.create(te);function Ae(X){["next","throw","return"].forEach(function(se){E(X,se,function(oe){return this._invoke(se,oe)})})}function we(X,se){function oe(ae,me,Fe,_e){var rt=S(X[ae],X,me);if(rt.type!=="throw"){var et=rt.arg,st=et.value;return st&&c(st)=="object"&&g.call(st,"__await")?se.resolve(st.__await).then(function(Ge){oe("next",Ge,Fe,_e)},function(Ge){oe("throw",Ge,Fe,_e)}):se.resolve(st).then(function(Ge){et.value=Ge,Fe(et)},function(Ge){return oe("throw",Ge,Fe,_e)})}_e(rt.arg)}var ye;A(this,"_invoke",{value:function(ae,me){function Fe(){return new se(function(_e,rt){oe(ae,me,_e,rt)})}return ye=ye?ye.then(Fe,Fe):Fe()}})}function Z(X,se,oe){var ye=_;return function(ae,me){if(ye===T)throw Error("Generator is already running");if(ye===F){if(ae==="throw")throw me;return{value:h,done:!0}}for(oe.method=ae,oe.arg=me;;){var Fe=oe.delegate;if(Fe){var _e=ne(Fe,oe);if(_e){if(_e===N)continue;return _e}}if(oe.method==="next")oe.sent=oe._sent=oe.arg;else if(oe.method==="throw"){if(ye===_)throw ye=F,oe.arg;oe.dispatchException(oe.arg)}else oe.method==="return"&&oe.abrupt("return",oe.arg);ye=T;var rt=S(X,se,oe);if(rt.type==="normal"){if(ye=oe.done?F:D,rt.arg===N)continue;return{value:rt.arg,done:oe.done}}rt.type==="throw"&&(ye=F,oe.method="throw",oe.arg=rt.arg)}}}function ne(X,se){var oe=se.method,ye=X.iterator[oe];if(ye===h)return se.delegate=null,oe==="throw"&&X.iterator.return&&(se.method="return",se.arg=h,ne(X,se),se.method==="throw")||oe!=="return"&&(se.method="throw",se.arg=new TypeError("The iterator does not provide a '"+oe+"' method")),N;var ae=S(ye,X.iterator,se.arg);if(ae.type==="throw")return se.method="throw",se.arg=ae.arg,se.delegate=null,N;var me=ae.arg;return me?me.done?(se[X.resultName]=me.value,se.next=X.nextLoc,se.method!=="return"&&(se.method="next",se.arg=h),se.delegate=null,N):me:(se.method="throw",se.arg=new TypeError("iterator result is not an object"),se.delegate=null,N)}function j(X){var se={tryLoc:X[0]};1 in X&&(se.catchLoc=X[1]),2 in X&&(se.finallyLoc=X[2],se.afterLoc=X[3]),this.tryEntries.push(se)}function J(X){var se=X.completion||{};se.type="normal",delete se.arg,X.completion=se}function q(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(j,this),this.reset(!0)}function z(X){if(X||X===""){var se=X[y];if(se)return se.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var oe=-1,ye=function ae(){for(;++oe=0;--ye){var ae=this.tryEntries[ye],me=ae.completion;if(ae.tryLoc==="root")return oe("end");if(ae.tryLoc<=this.prev){var Fe=g.call(ae,"catchLoc"),_e=g.call(ae,"finallyLoc");if(Fe&&_e){if(this.prev=0;--oe){var ye=this.tryEntries[oe];if(ye.tryLoc<=this.prev&&g.call(ye,"finallyLoc")&&this.prev=0;--se){var oe=this.tryEntries[se];if(oe.finallyLoc===X)return this.complete(oe.completion,oe.afterLoc),J(oe),N}},catch:function(X){for(var se=this.tryEntries.length-1;se>=0;--se){var oe=this.tryEntries[se];if(oe.tryLoc===X){var ye=oe.completion;if(ye.type==="throw"){var ae=ye.arg;J(oe)}return ae}}throw Error("illegal catch attempt")},delegateYield:function(X,se,oe){return this.delegate={iterator:z(X),resultName:se,nextLoc:oe},this.method==="next"&&(this.arg=h),N}},d}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports})(Xv);var $v=(0,Xv.exports)(),G2=$v;try{regeneratorRuntime=$v}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=$v:Function("r","regeneratorRuntime = r")($v)}const _n=Zv(G2);function ey(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var U2={exports:{}};function ty(a,c,u,h){var d=aA(sn(a.prototype),c,u);return 2&h&&typeof d=="function"?function(p){return d.apply(u,p)}:d}function Er(a,c,u){return c=sn(c),Ki(a,ry()?Reflect.construct(c,u||[],sn(a).constructor):c.apply(a,u))}function ry(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ry=function(){return!!a})()}function ny(a,c){var u=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=function(m,y){if(m){if(typeof m=="string")return j2(m,y);var b={}.toString.call(m).slice(8,-1);return b==="Object"&&m.constructor&&(b=m.constructor.name),b==="Map"||b==="Set"?Array.from(m):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?j2(m,y):void 0}}(a))||c){u&&(a=u);var h=0,d=function(){};return{s:d,n:function(){return h>=a.length?{done:!0}:{done:!1,value:a[h++]}},e:function(m){throw m},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,g=!0,A=!1;return{s:function(){u=u.call(a)},n:function(){var m=u.next();return g=m.done,m},e:function(m){A=!0,p=m},f:function(){try{g||u.return==null||u.return()}finally{if(A)throw p}}}}function j2(a,c){(c==null||c>a.length)&&(c=a.length);for(var u=0,h=Array(c);u2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=g,A)if(typeof A=="string"){var y=h.decodeAddress(A);this.nativeCol=y.col+m,this.nativeColOff=0,this.nativeRow=y.row+m,this.nativeRowOff=0}else A.nativeCol!==void 0?(this.nativeCol=A.nativeCol||0,this.nativeColOff=A.nativeColOff||0,this.nativeRow=A.nativeRow||0,this.nativeRowOff=A.nativeRowOff||0):A.col!==void 0?(this.col=A.col+m,this.row=A.row+m):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}return xt(p,[{key:"col",get:function(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth},set:function(g){this.nativeCol=Math.floor(g),this.nativeColOff=Math.floor((g-this.nativeCol)*this.colWidth)}},{key:"row",get:function(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight},set:function(g){this.nativeRow=Math.floor(g),this.nativeRowOff=Math.floor((g-this.nativeRow)*this.rowHeight)}},{key:"colWidth",get:function(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}},{key:"rowHeight",get:function(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}},{key:"model",get:function(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}},set:function(g){this.nativeCol=g.nativeCol,this.nativeColOff=g.nativeColOff,this.nativeRow=g.nativeRow,this.nativeRowOff=g.nativeRowOff}}],[{key:"asInstance",value:function(g){return g instanceof p||g==null?g:new p(g)}}])}();c.exports=d},{"../utils/col-cache":19}],3:[function(a,c,u){var h=a("../utils/col-cache"),d=a("../utils/under-dash"),p=a("./enums"),g=a("../utils/shared-formula").slideFormula,A=a("./note"),m=function(){function V(te,ue,fe){if(Et(this,V),!te||!ue)throw new Error("A Cell needs a Row");this._row=te,this._column=ue,h.validateAddress(fe),this._address=fe,this._value=W.create(V.Types.Null,this),this.style=this._mergeStyle(te.style,ue.style,{}),this._mergeCount=0}return xt(V,[{key:"worksheet",get:function(){return this._row.worksheet}},{key:"workbook",get:function(){return this._row.worksheet.workbook}},{key:"destroy",value:function(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(te){this.style.numFmt=te}},{key:"font",get:function(){return this.style.font},set:function(te){this.style.font=te}},{key:"alignment",get:function(){return this.style.alignment},set:function(te){this.style.alignment=te}},{key:"border",get:function(){return this.style.border},set:function(te){this.style.border=te}},{key:"fill",get:function(){return this.style.fill},set:function(te){this.style.fill=te}},{key:"protection",get:function(){return this.style.protection},set:function(te){this.style.protection=te}},{key:"_mergeStyle",value:function(te,ue,fe){var de=te&&te.numFmt||ue&&ue.numFmt;de&&(fe.numFmt=de);var Ae=te&&te.font||ue&&ue.font;Ae&&(fe.font=Ae);var we=te&&te.alignment||ue&&ue.alignment;we&&(fe.alignment=we);var Z=te&&te.border||ue&&ue.border;Z&&(fe.border=Z);var ne=te&&te.fill||ue&&ue.fill;ne&&(fe.fill=ne);var j=te&&te.protection||ue&&ue.protection;return j&&(fe.protection=j),fe}},{key:"address",get:function(){return this._address}},{key:"row",get:function(){return this._row.number}},{key:"col",get:function(){return this._column.number}},{key:"$col$row",get:function(){return"$".concat(this._column.letter,"$").concat(this.row)}},{key:"type",get:function(){return this._value.type}},{key:"effectiveType",get:function(){return this._value.effectiveType}},{key:"toCsvString",value:function(){return this._value.toCsvString()}},{key:"addMergeRef",value:function(){this._mergeCount++}},{key:"releaseMergeRef",value:function(){this._mergeCount--}},{key:"isMerged",get:function(){return this._mergeCount>0||this.type===V.Types.Merge}},{key:"merge",value:function(te,ue){this._value.release(),this._value=W.create(V.Types.Merge,this,te),ue||(this.style=te.style)}},{key:"unmerge",value:function(){this.type===V.Types.Merge&&(this._value.release(),this._value=W.create(V.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}},{key:"isMergedTo",value:function(te){return this._value.type===V.Types.Merge&&this._value.isMergedTo(te)}},{key:"master",get:function(){return this.type===V.Types.Merge?this._value.master:this}},{key:"isHyperlink",get:function(){return this._value.type===V.Types.Hyperlink}},{key:"hyperlink",get:function(){return this._value.hyperlink}},{key:"value",get:function(){return this._value.value},set:function(te){this.type!==V.Types.Merge?(this._value.release(),this._value=W.create(W.getType(te),this,te)):this._value.master.value=te}},{key:"note",get:function(){return this._comment&&this._comment.note},set:function(te){this._comment=new A(te)}},{key:"text",get:function(){return this._value.toString()}},{key:"html",get:function(){return d.escapeHtml(this.text)}},{key:"toString",value:function(){return this.text}},{key:"_upgradeToHyperlink",value:function(te){this.type===V.Types.String&&(this._value=W.create(V.Types.Hyperlink,this,{text:this._value.value,hyperlink:te}))}},{key:"formula",get:function(){return this._value.formula}},{key:"result",get:function(){return this._value.result}},{key:"formulaType",get:function(){return this._value.formulaType}},{key:"fullAddress",get:function(){return{sheetName:this._row.worksheet.name,address:this.address,row:this.row,col:this.col}}},{key:"name",get:function(){return this.names[0]},set:function(te){this.names=[te]}},{key:"names",get:function(){return this.workbook.definedNames.getNamesEx(this.fullAddress)},set:function(te){var ue=this,fe=this.workbook.definedNames;fe.removeAllNames(this.fullAddress),te.forEach(function(de){fe.addEx(ue.fullAddress,de)})}},{key:"addName",value:function(te){this.workbook.definedNames.addEx(this.fullAddress,te)}},{key:"removeName",value:function(te){this.workbook.definedNames.removeEx(this.fullAddress,te)}},{key:"removeAllNames",value:function(){this.workbook.definedNames.removeAllNames(this.fullAddress)}},{key:"_dataValidations",get:function(){return this.worksheet.dataValidations}},{key:"dataValidation",get:function(){return this._dataValidations.find(this.address)},set:function(te){this._dataValidations.add(this.address,te)}},{key:"model",get:function(){var te=this._value.model;return te.style=this.style,this._comment&&(te.comment=this._comment.model),te},set:function(te){this._value.release(),this._value=W.create(te.type,this),this._value.model=te,te.comment&&te.comment.type==="note"&&(this._comment=A.fromModel(te.comment)),te.style?this.style=te.style:this.style={}}}])}();m.Types=p.ValueType;var y=function(){function V(te){Et(this,V),this.model={address:te.address,type:m.Types.Null}}return xt(V,[{key:"value",get:function(){return null},set:function(te){}},{key:"type",get:function(){return m.Types.Null}},{key:"effectiveType",get:function(){return m.Types.Null}},{key:"address",get:function(){return this.model.address},set:function(te){this.model.address=te}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){}},{key:"toString",value:function(){return""}}])}(),b=function(){function V(te,ue){Et(this,V),this.model={address:te.address,type:m.Types.Number,value:ue}}return xt(V,[{key:"value",get:function(){return this.model.value},set:function(te){this.model.value=te}},{key:"type",get:function(){return m.Types.Number}},{key:"effectiveType",get:function(){return m.Types.Number}},{key:"address",get:function(){return this.model.address},set:function(te){this.model.address=te}},{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),I=function(){function V(te,ue){Et(this,V),this.model={address:te.address,type:m.Types.String,value:ue}}return xt(V,[{key:"value",get:function(){return this.model.value},set:function(te){this.model.value=te}},{key:"type",get:function(){return m.Types.String}},{key:"effectiveType",get:function(){return m.Types.String}},{key:"address",get:function(){return this.model.address},set:function(te){this.model.address=te}},{key:"toCsvString",value:function(){return'"'.concat(this.model.value.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}}])}(),E=function(){function V(te,ue){Et(this,V),this.model={address:te.address,type:m.Types.String,value:ue}}return xt(V,[{key:"value",get:function(){return this.model.value},set:function(te){this.model.value=te}},{key:"toString",value:function(){return this.model.value.richText.map(function(te){return te.text}).join("")}},{key:"type",get:function(){return m.Types.RichText}},{key:"effectiveType",get:function(){return m.Types.RichText}},{key:"address",get:function(){return this.model.address},set:function(te){this.model.address=te}},{key:"toCsvString",value:function(){return'"'.concat(this.text.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}}])}(),B=function(){function V(te,ue){Et(this,V),this.model={address:te.address,type:m.Types.Date,value:ue}}return xt(V,[{key:"value",get:function(){return this.model.value},set:function(te){this.model.value=te}},{key:"type",get:function(){return m.Types.Date}},{key:"effectiveType",get:function(){return m.Types.Date}},{key:"address",get:function(){return this.model.address},set:function(te){this.model.address=te}},{key:"toCsvString",value:function(){return this.model.value.toISOString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),S=function(){function V(te,ue){Et(this,V),this.model={address:te.address,type:m.Types.Hyperlink,text:ue?ue.text:void 0,hyperlink:ue?ue.hyperlink:void 0},ue&&ue.tooltip&&(this.model.tooltip=ue.tooltip)}return xt(V,[{key:"value",get:function(){var te={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(te.tooltip=this.model.tooltip),te},set:function(te){this.model={text:te.text,hyperlink:te.hyperlink},te.tooltip&&(this.model.tooltip=te.tooltip)}},{key:"text",get:function(){return this.model.text},set:function(te){this.model.text=te}},{key:"hyperlink",get:function(){return this.model.hyperlink},set:function(te){this.model.hyperlink=te}},{key:"type",get:function(){return m.Types.Hyperlink}},{key:"effectiveType",get:function(){return m.Types.Hyperlink}},{key:"address",get:function(){return this.model.address},set:function(te){this.model.address=te}},{key:"toCsvString",value:function(){return this.model.hyperlink}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.text}}])}(),_=function(){function V(te,ue){Et(this,V),this.model={address:te.address,type:m.Types.Merge,master:ue?ue.address:void 0},this._master=ue,ue&&ue.addMergeRef()}return xt(V,[{key:"value",get:function(){return this._master.value},set:function(te){te instanceof m?(this._master&&this._master.releaseMergeRef(),te.addMergeRef(),this._master=te):this._master.value=te}},{key:"isMergedTo",value:function(te){return te===this._master}},{key:"master",get:function(){return this._master}},{key:"type",get:function(){return m.Types.Merge}},{key:"effectiveType",get:function(){return this._master.effectiveType}},{key:"address",get:function(){return this.model.address},set:function(te){this.model.address=te}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){this._master.releaseMergeRef()}},{key:"toString",value:function(){return this.value.toString()}}])}(),D=function(){function V(te,ue){Et(this,V),this.cell=te,this.model={address:te.address,type:m.Types.Formula,shareType:ue?ue.shareType:void 0,ref:ue?ue.ref:void 0,formula:ue?ue.formula:void 0,sharedFormula:ue?ue.sharedFormula:void 0,result:ue?ue.result:void 0}}return xt(V,[{key:"_copyModel",value:function(te){var ue={},fe=function(de){var Ae=te[de];Ae&&(ue[de]=Ae)};return fe("formula"),fe("result"),fe("ref"),fe("shareType"),fe("sharedFormula"),ue}},{key:"value",get:function(){return this._copyModel(this.model)},set:function(te){this.model=this._copyModel(te)}},{key:"validate",value:function(te){switch(W.getType(te)){case m.Types.Null:case m.Types.String:case m.Types.Number:case m.Types.Date:break;case m.Types.Hyperlink:case m.Types.Formula:default:throw new Error("Cannot process that type of result value")}}},{key:"dependencies",get:function(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}},{key:"formula",get:function(){return this.model.formula||this._getTranslatedFormula()},set:function(te){this.model.formula=te}},{key:"formulaType",get:function(){return this.model.formula?p.FormulaType.Master:this.model.sharedFormula?p.FormulaType.Shared:p.FormulaType.None}},{key:"result",get:function(){return this.model.result},set:function(te){this.model.result=te}},{key:"type",get:function(){return m.Types.Formula}},{key:"effectiveType",get:function(){var te=this.model.result;return te==null?p.ValueType.Null:te instanceof String||typeof te=="string"?p.ValueType.String:typeof te=="number"?p.ValueType.Number:te instanceof Date?p.ValueType.Date:te.text&&te.hyperlink?p.ValueType.Hyperlink:te.formula?p.ValueType.Formula:p.ValueType.Null}},{key:"address",get:function(){return this.model.address},set:function(te){this.model.address=te}},{key:"_getTranslatedFormula",value:function(){if(!this._translatedFormula&&this.model.sharedFormula){var te=this.cell.worksheet.findCell(this.model.sharedFormula);this._translatedFormula=te&&g(te.formula,te.address,this.model.address)}return this._translatedFormula}},{key:"toCsvString",value:function(){return"".concat(this.model.result||"")}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.result?this.model.result.toString():""}}])}(),T=function(){function V(te,ue){Et(this,V),this.model={address:te.address,type:m.Types.SharedString,value:ue}}return xt(V,[{key:"value",get:function(){return this.model.value},set:function(te){this.model.value=te}},{key:"type",get:function(){return m.Types.SharedString}},{key:"effectiveType",get:function(){return m.Types.SharedString}},{key:"address",get:function(){return this.model.address},set:function(te){this.model.address=te}},{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),F=function(){function V(te,ue){Et(this,V),this.model={address:te.address,type:m.Types.Boolean,value:ue}}return xt(V,[{key:"value",get:function(){return this.model.value},set:function(te){this.model.value=te}},{key:"type",get:function(){return m.Types.Boolean}},{key:"effectiveType",get:function(){return m.Types.Boolean}},{key:"address",get:function(){return this.model.address},set:function(te){this.model.address=te}},{key:"toCsvString",value:function(){return this.model.value?1:0}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),N=function(){function V(te,ue){Et(this,V),this.model={address:te.address,type:m.Types.Error,value:ue}}return xt(V,[{key:"value",get:function(){return this.model.value},set:function(te){this.model.value=te}},{key:"type",get:function(){return m.Types.Error}},{key:"effectiveType",get:function(){return m.Types.Error}},{key:"address",get:function(){return this.model.address},set:function(te){this.model.address=te}},{key:"toCsvString",value:function(){return this.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.error.toString()}}])}(),H=function(){function V(te,ue){Et(this,V),this.model={address:te.address,type:m.Types.String,value:JSON.stringify(ue),rawValue:ue}}return xt(V,[{key:"value",get:function(){return this.model.rawValue},set:function(te){this.model.rawValue=te,this.model.value=JSON.stringify(te)}},{key:"type",get:function(){return m.Types.String}},{key:"effectiveType",get:function(){return m.Types.String}},{key:"address",get:function(){return this.model.address},set:function(te){this.model.address=te}},{key:"toCsvString",value:function(){return this.model.value}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}}])}(),W={getType:function(V){return V==null?m.Types.Null:V instanceof String||typeof V=="string"?m.Types.String:typeof V=="number"?m.Types.Number:typeof V=="boolean"?m.Types.Boolean:V instanceof Date?m.Types.Date:V.text&&V.hyperlink?m.Types.Hyperlink:V.formula||V.sharedFormula?m.Types.Formula:V.richText?m.Types.RichText:V.sharedString?m.Types.SharedString:V.error?m.Types.Error:m.Types.JSON},types:[{t:m.Types.Null,f:y},{t:m.Types.Number,f:b},{t:m.Types.String,f:I},{t:m.Types.Date,f:B},{t:m.Types.Hyperlink,f:S},{t:m.Types.Formula,f:D},{t:m.Types.Merge,f:_},{t:m.Types.JSON,f:H},{t:m.Types.SharedString,f:T},{t:m.Types.RichText,f:E},{t:m.Types.Boolean,f:F},{t:m.Types.Error,f:N}].reduce(function(V,te){return V[te.t]=te.f,V},[]),create:function(V,te,ue){var fe=this.types[V];if(!fe)throw new Error("Could not create Value of type ".concat(V));return new fe(te,ue)}};c.exports=m},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(a,c,u){var h=a("../utils/under-dash"),d=a("./enums"),p=a("../utils/col-cache"),g=9,A=function(){function m(y,b,I){Et(this,m),this._worksheet=y,this._number=b,I!==!1&&(this.defn=I)}return xt(m,[{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"letter",get:function(){return p.n2l(this._number)}},{key:"isCustomWidth",get:function(){return this.width!==void 0&&this.width!==g}},{key:"defn",get:function(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}},set:function(y){y?(this.key=y.key,this.width=y.width!==void 0?y.width:g,this.outlineLevel=y.outlineLevel,y.style?this.style=y.style:this.style={},this.header=y.header,this._hidden=!!y.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}},{key:"headers",get:function(){return this._header&&this._header instanceof Array?this._header:[this._header]}},{key:"header",get:function(){return this._header},set:function(y){var b=this;y!==void 0?(this._header=y,this.headers.forEach(function(I,E){b._worksheet.getCell(E+1,b.number).value=I})):this._header=void 0}},{key:"key",get:function(){return this._key},set:function(y){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=y,y&&this._worksheet.setColumnKey(this._key,this)}},{key:"hidden",get:function(){return!!this._hidden},set:function(y){this._hidden=y}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(y){this._outlineLevel=y}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}},{key:"toString",value:function(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}},{key:"equivalentTo",value:function(y){return this.width===y.width&&this.hidden===y.hidden&&this.outlineLevel===y.outlineLevel&&h.isEqual(this.style,y.style)}},{key:"isDefault",get:function(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;var y=this.style;return!y||!(y.font||y.numFmt||y.alignment||y.border||y.fill||y.protection)}},{key:"headerCount",get:function(){return this.headers.length}},{key:"eachCell",value:function(y,b){var I=this.number;b||(b=y,y=null),this._worksheet.eachRow(y,function(E,B){b(E.getCell(I),B)})}},{key:"values",get:function(){var y=[];return this.eachCell(function(b,I){b&&b.type!==d.ValueType.Null&&(y[I]=b.value)}),y},set:function(y){var b=this;if(y){var I=this.number,E=0;y.hasOwnProperty("0")&&(E=1),y.forEach(function(B,S){b._worksheet.getCell(S+E,I).value=B})}}},{key:"_applyStyle",value:function(y,b){return this.style[y]=b,this.eachCell(function(I){I[y]=b}),b}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(y){this._applyStyle("numFmt",y)}},{key:"font",get:function(){return this.style.font},set:function(y){this._applyStyle("font",y)}},{key:"alignment",get:function(){return this.style.alignment},set:function(y){this._applyStyle("alignment",y)}},{key:"protection",get:function(){return this.style.protection},set:function(y){this._applyStyle("protection",y)}},{key:"border",get:function(){return this.style.border},set:function(y){this._applyStyle("border",y)}},{key:"fill",get:function(){return this.style.fill},set:function(y){this._applyStyle("fill",y)}}],[{key:"toModel",value:function(y){var b=[],I=null;return y&&y.forEach(function(E,B){E.isDefault?I&&(I=null):I&&E.equivalentTo(I)?I.max=B+1:(I={min:B+1,max:B+1,width:E.width!==void 0?E.width:g,style:E.style,isCustomWidth:E.isCustomWidth,hidden:E.hidden,outlineLevel:E.outlineLevel,collapsed:E.collapsed},b.push(I))}),b.length?b:void 0}},{key:"fromModel",value:function(y,b){var I=[],E=1,B=0;for(b=(b=b||[]).sort(function(_,D){return _.min-D.min});Bthis.bottom)&&(this.bottom=m),(!this.model.right||y>this.right)&&(this.right=y)}},{key:"expandRow",value:function(g){if(g){var A=g.dimensions,m=g.number;A&&this.expand(m,A.min,m,A.max)}}},{key:"expandToAddress",value:function(g){var A=h.decodeEx(g);this.expand(A.row,A.col,A.row,A.col)}},{key:"tl",get:function(){return h.n2l(this.left)+this.top}},{key:"$t$l",get:function(){return"$".concat(h.n2l(this.left),"$").concat(this.top)}},{key:"br",get:function(){return h.n2l(this.right)+this.bottom}},{key:"$b$r",get:function(){return"$".concat(h.n2l(this.right),"$").concat(this.bottom)}},{key:"range",get:function(){return"".concat(this._serialisedSheetName+this.tl,":").concat(this.br)}},{key:"$range",get:function(){return"".concat(this._serialisedSheetName+this.$t$l,":").concat(this.$b$r)}},{key:"shortRange",get:function(){return this.count>1?this.range:this._serialisedSheetName+this.tl}},{key:"$shortRange",get:function(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}},{key:"count",get:function(){return(1+this.bottom-this.top)*(1+this.right-this.left)}},{key:"toString",value:function(){return this.range}},{key:"intersects",value:function(g){return!(g.sheetName&&this.sheetName&&g.sheetName!==this.sheetName||g.bottomthis.bottom||g.rightthis.right)}},{key:"contains",value:function(g){var A=h.decodeEx(g);return this.containsEx(A)}},{key:"containsEx",value:function(g){return(!g.sheetName||!this.sheetName||g.sheetName===this.sheetName)&&g.row>=this.top&&g.row<=this.bottom&&g.col>=this.left&&g.col<=this.right}},{key:"forEachAddress",value:function(g){for(var A=this.left;A<=this.right;A++)for(var m=this.top;m<=this.bottom;m++)g(h.encodeAddress(m,A),m,A)}}])}();c.exports=d},{"../utils/col-cache":19}],11:[function(a,c,u){var h=a("../utils/under-dash"),d=a("./enums"),p=a("../utils/col-cache"),g=a("./cell"),A=function(){function m(y,b){Et(this,m),this._worksheet=y,this._number=b,this._cells=[],this.style={},this.outlineLevel=0}return xt(m,[{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"commit",value:function(){this._worksheet._commitRow(this)}},{key:"destroy",value:function(){delete this._worksheet,delete this._cells,delete this.style}},{key:"findCell",value:function(y){return this._cells[y-1]}},{key:"getCellEx",value:function(y){var b=this._cells[y.col-1];if(!b){var I=this._worksheet.getColumn(y.col);b=new g(this,I,y.address),this._cells[y.col-1]=b}return b}},{key:"getCell",value:function(y){if(typeof y=="string"){var b=this._worksheet.getColumnKey(y);y=b?b.number:p.l2n(y)}return this._cells[y-1]||this.getCellEx({address:p.encodeAddress(this._number,y),row:this._number,col:y})}},{key:"splice",value:function(y,b){for(var I=y+b,E=arguments.length,B=new Array(E>2?E-2:0),S=2;S0)for(_=N;_>=I;_--)(D=this._cells[_-1])?((T=this.getCell(_+F)).value=D.value,T.style=D.style,T._comment=D._comment):this._cells[_+F-1]=void 0;for(_=0;_I.col)&&(y=I.col),b0?{min:y,max:b}:null}},{key:"_applyStyle",value:function(y,b){return this.style[y]=b,this._cells.forEach(function(I){I&&(I[y]=b)}),b}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(y){this._applyStyle("numFmt",y)}},{key:"font",get:function(){return this.style.font},set:function(y){this._applyStyle("font",y)}},{key:"alignment",get:function(){return this.style.alignment},set:function(y){this._applyStyle("alignment",y)}},{key:"protection",get:function(){return this.style.protection},set:function(y){this._applyStyle("protection",y)}},{key:"border",get:function(){return this.style.border},set:function(y){this._applyStyle("border",y)}},{key:"fill",get:function(){return this.style.fill},set:function(y){this._applyStyle("fill",y)}},{key:"hidden",get:function(){return!!this._hidden},set:function(y){this._hidden=y}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(y){this._outlineLevel=y}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}},{key:"model",get:function(){var y=[],b=0,I=0;return this._cells.forEach(function(E){if(E){var B=E.model;B&&((!b||b>E.col)&&(b=E.col),I0,"Table must be on valid row"),b(B>0,"Table must be on valid col");var S=this.width,_=this.filterHeight,D=this.tableHeight;m.autoFilterRef=h.encode(E,B,E+_-1,B+S-1),m.tableRef=h.encode(E,B,E+D-1,B+S-1),m.columns.forEach(function(T,F){b(T.name,"Column ".concat(F," must have a name")),F===0?y(T,"totalsRowLabel","Total"):(y(T,"totalsRowFunction","none"),T.totalsRowFormula=A.getFormula(T))})}},{key:"store",value:function(){var A=this,m=function(T,F){F&&Object.keys(F).forEach(function(N){T[N]=F[N]})},y=this.worksheet,b=this.table,I=b.tl,E=I.row,B=I.col,S=0;if(b.headerRow){var _=y.getRow(E+S++);b.columns.forEach(function(T,F){var N=T.style,H=T.name,W=_.getCell(B+F);W.value=H,m(W,N)})}if(b.rows.forEach(function(T){var F=y.getRow(E+S++);T.forEach(function(N,H){var W=F.getCell(B+H);W.value=N,m(W,b.columns[H].style)})}),b.totalsRow){var D=y.getRow(E+S++);b.columns.forEach(function(T,F){var N=D.getCell(B+F);if(F===0)N.value=T.totalsRowLabel;else{var H=A.getFormula(T);N.value=H?{formula:T.totalsRowFormula,result:T.totalsRowResult}:null}m(N,T.style)})}}},{key:"load",value:function(A){var m=this,y=this.table,b=y.tl,I=b.row,E=b.col,B=0;if(y.headerRow){var S=A.getRow(I+B++);y.columns.forEach(function(D,T){S.getCell(E+T).value=D.name})}if(y.rows.forEach(function(D){var T=A.getRow(I+B++);D.forEach(function(F,N){T.getCell(E+N).value=F})}),y.totalsRow){var _=A.getRow(I+B++);y.columns.forEach(function(D,T){var F=_.getCell(E+T);T===0?F.value=D.totalsRowLabel:m.getFormula(D)&&(F.value={formula:D.totalsRowFormula,result:D.totalsRowResult})})}}},{key:"model",get:function(){return this.table},set:function(A){this.table=A}},{key:"cacheState",value:function(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}},{key:"commit",value:function(){if(this._cache){this.validate();var A=h.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(var m=0;m1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(A,m)}},{key:"getColumn",value:function(A){var m=this.table.columns[A];return new d(this,m,A)}},{key:"addColumn",value:function(A,m,y){this.cacheState(),y===void 0?(this.table.columns.push(A),this.table.rows.forEach(function(b,I){b.push(m[I])})):(this.table.columns.splice(y,0,A),this.table.rows.forEach(function(b,I){b.splice(y,0,m[I])}))}},{key:"removeColumns",value:function(A){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(A,m),this.table.rows.forEach(function(y){y.splice(A,m)})}},{key:"_assign",value:function(A,m,y){this.cacheState(),A[m]=y}},{key:"ref",get:function(){return this.table.ref},set:function(A){this._assign(this.table,"ref",A)}},{key:"name",get:function(){return this.table.name},set:function(A){this.table.name=A}},{key:"displayName",get:function(){return this.table.displyName||this.table.name}},{key:"displayNamename",set:function(A){this.table.displayName=A}},{key:"headerRow",get:function(){return this.table.headerRow},set:function(A){this._assign(this.table,"headerRow",A)}},{key:"totalsRow",get:function(){return this.table.totalsRow},set:function(A){this._assign(this.table,"totalsRow",A)}},{key:"theme",get:function(){return this.table.style.name},set:function(A){this.table.style.name=A}},{key:"showFirstColumn",get:function(){return this.table.style.showFirstColumn},set:function(A){this.table.style.showFirstColumn=A}},{key:"showLastColumn",get:function(){return this.table.style.showLastColumn},set:function(A){this.table.style.showLastColumn=A}},{key:"showRowStripes",get:function(){return this.table.style.showRowStripes},set:function(A){this.table.style.showRowStripes=A}},{key:"showColumnStripes",get:function(){return this.table.style.showColumnStripes},set:function(A){this.table.style.showColumnStripes=A}}])}();c.exports=p},{"../utils/col-cache":19}],13:[function(a,c,u){var h=a("./worksheet"),d=a("./defined-names"),p=a("../xlsx/xlsx"),g=a("../csv/csv"),A=function(){function m(){Et(this,m),this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new d}return xt(m,[{key:"xlsx",get:function(){return this._xlsx||(this._xlsx=new p(this)),this._xlsx}},{key:"csv",get:function(){return this._csv||(this._csv=new g(this)),this._csv}},{key:"nextId",get:function(){for(var y=1;y_?D.orderNo:_},0),B=Object.assign({},b,{id:I,name:y,orderNo:E+1,workbook:this}),S=new h(B);return this._worksheets[I]=S,S}},{key:"removeWorksheetEx",value:function(y){delete this._worksheets[y.id]}},{key:"removeWorksheet",value:function(y){var b=this.getWorksheet(y);b&&b.destroy()}},{key:"getWorksheet",value:function(y){return y===void 0?this._worksheets.find(Boolean):typeof y=="number"?this._worksheets[y]:typeof y=="string"?this._worksheets.find(function(b){return b&&b.name===y}):void 0}},{key:"worksheets",get:function(){return this._worksheets.slice(1).sort(function(y,b){return y.orderNo-b.orderNo}).filter(Boolean)}},{key:"eachSheet",value:function(y){this.worksheets.forEach(function(b){y(b,b.id)})}},{key:"definedNames",get:function(){return this._definedNames}},{key:"clearThemes",value:function(){this._themes=void 0}},{key:"addImage",value:function(y){var b=this.media.length;return this.media.push(Object.assign({},y,{type:"image"})),b}},{key:"getImage",value:function(y){return this.media[y]}},{key:"model",get:function(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(function(y){return y.model}),sheets:this.worksheets.map(function(y){return y.model}).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}},set:function(y){var b=this;this.creator=y.creator,this.lastModifiedBy=y.lastModifiedBy,this.lastPrinted=y.lastPrinted,this.created=y.created,this.modified=y.modified,this.company=y.company,this.manager=y.manager,this.title=y.title,this.subject=y.subject,this.keywords=y.keywords,this.category=y.category,this.description=y.description,this.language=y.language,this.revision=y.revision,this.contentStatus=y.contentStatus,this.properties=y.properties,this.calcProperties=y.calcProperties,this._worksheets=[],y.worksheets.forEach(function(I){var E=I.id,B=I.name,S=I.state,_=y.sheets&&y.sheets.findIndex(function(D){return D.id===E});(b._worksheets[E]=new h({id:E,name:B,orderNo:_,state:S,workbook:b})).model=I}),this._definedNames.model=y.definedNames,this.views=y.views,this._themes=y.themes,this.media=y.media||[]}}])}();c.exports=A},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(a,c,u){var h=a("../utils/under-dash"),d=a("../utils/col-cache"),p=a("./range"),g=a("./row"),A=a("./column"),m=a("./enums"),y=a("./image"),b=a("./table"),I=a("./data-validations"),E=a("../utils/encryptor"),B=a("../utils/copy-style").copyStyle,S=function(){function _(D){Et(this,_),D=D||{},this._workbook=D.workbook,this.id=D.id,this.orderNo=D.orderNo,this.name=D.name,this.state=D.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},D.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!D.pageSetup||!D.pageSetup.fitToWidth&&!D.pageSetup.fitToHeight||D.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},D.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},D.headerFooter),this.dataValidations=new I,this.views=D.views||[],this.autoFilter=D.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}return xt(_,[{key:"name",get:function(){return this._name},set:function(D){if(D===void 0&&(D="sheet".concat(this.id)),this._name!==D){if(typeof D!="string")throw new Error("The name has to be a string.");if(D==="")throw new Error("The name can't be empty.");if(D==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(D))throw new Error("Worksheet name ".concat(D," cannot include any of the following characters: * ? : \\ / [ ]"));if(/(^')|('$)/.test(D))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: ".concat(D));if(D&&D.length>31&&(console.warn("Worksheet name ".concat(D," exceeds 31 chars. This will be truncated")),D=D.substring(0,31)),this._workbook._worksheets.find(function(T){return T&&T.name.toLowerCase()===D.toLowerCase()}))throw new Error("Worksheet name already exists: ".concat(D));this._name=D}}},{key:"workbook",get:function(){return this._workbook}},{key:"destroy",value:function(){this._workbook.removeWorksheetEx(this)}},{key:"dimensions",get:function(){var D=new p;return this._rows.forEach(function(T){if(T){var F=T.dimensions;F&&D.expand(T.number,F.min,T.number,F.max)}}),D}},{key:"columns",get:function(){return this._columns},set:function(D){var T=this;this._headerRowCount=D.reduce(function(H,W){var V=(W.header?1:W.headers&&W.headers.length)||0;return Math.max(H,V)},0);var F=1,N=this._columns=[];D.forEach(function(H){var W=new A(T,F++,!1);N.push(W),W.defn=H})}},{key:"getColumnKey",value:function(D){return this._keys[D]}},{key:"setColumnKey",value:function(D,T){this._keys[D]=T}},{key:"deleteColumnKey",value:function(D){delete this._keys[D]}},{key:"eachColumnKey",value:function(D){h.each(this._keys,D)}},{key:"getColumn",value:function(D){if(typeof D=="string"){var T=this._keys[D];if(T)return T;D=d.l2n(D)}if(this._columns||(this._columns=[]),D>this._columns.length)for(var F=this._columns.length+1;F<=D;)this._columns.push(new A(this,F++));return this._columns[D-1]}},{key:"spliceColumns",value:function(D,T){for(var F=this,N=this._rows.length,H=arguments.length,W=new Array(H>2?H-2:0),V=2;V0)for(var te=function(j){var J=[D,T];W.forEach(function(z){J.push(z[j]||null)});var q=F.getRow(j+1);q.splice.apply(q,J)},ue=0;ue0)for(var Z=Ae;Z>=de;Z--)this.getColumn(Z+fe).defn=this.getColumn(Z).defn;for(var ne=D;ne0&&D[T-1]===void 0;)T--;return T}},{key:"_nextRow",get:function(){return this._lastRowNumber+1}},{key:"lastRow",get:function(){if(this._rows.length)return this._rows[this._rows.length-1]}},{key:"findRow",value:function(D){return this._rows[D-1]}},{key:"findRows",value:function(D,T){return this._rows.slice(D-1,D-1+T)}},{key:"rowCount",get:function(){return this._lastRowNumber}},{key:"actualRowCount",get:function(){var D=0;return this.eachRow(function(){D++}),D}},{key:"getRow",value:function(D){var T=this._rows[D-1];return T||(T=this._rows[D-1]=new g(this,D)),T}},{key:"getRows",value:function(D,T){if(!(T<1)){for(var F=[],N=D;N1&&arguments[1]!==void 0?arguments[1]:"n",F=this._nextRow,N=this.getRow(F);return N.values=D,this._setStyleOption(F,T[0]==="i"?T:"n"),N}},{key:"addRows",value:function(D){var T=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",N=[];return D.forEach(function(H){N.push(T.addRow(H,F))}),N}},{key:"insertRow",value:function(D,T){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(D,0,T),this._setStyleOption(D,F),this.getRow(D)}},{key:"insertRows",value:function(D,T){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows.apply(this,[D,0].concat(Ni(T))),F!=="n")for(var N=0;N1&&arguments[1]!==void 0?arguments[1]:"n";T[0]==="o"&&this.findRow(D+1)!==void 0?this._copyStyle(D+1,D,T[1]==="+"):T[0]==="i"&&this.findRow(D-1)!==void 0&&this._copyStyle(D-1,D,T[1]==="+")}},{key:"_copyStyle",value:function(D,T){var F=arguments.length>2&&arguments[2]!==void 0&&arguments[2],N=this.getRow(D),H=this.getRow(T);H.style=B(N.style),N.eachCell({includeEmpty:F},function(W,V){H.getCell(V).style=B(W.style)}),H.height=N.height}},{key:"duplicateRow",value:function(D,T){var F=this,N=arguments.length>2&&arguments[2]!==void 0&&arguments[2],H=this._rows[D-1],W=new Array(T).fill(H.values);this.spliceRows.apply(this,[D+1,N?0:T].concat(Ni(W)));for(var V=function(){var ue=F._rows[D+te];ue.style=H.style,ue.height=H.height,H.eachCell({includeEmpty:!0},function(fe,de){ue.getCell(de).style=fe.style})},te=0;te2?H-2:0),V=2;V0){var Z=function(){if(ue=F._rows[te-1]){var j=F.getRow(te+de);j.values=ue.values,j.style=ue.style,j.height=ue.height,ue.eachCell({includeEmpty:!0},function(J,q){if(j.getCell(q).style=J.style,J._value.constructor.name==="MergeValue"){var z=F.getRow(J._row._number+fe).getCell(q),X=J._value._master,se=F.getRow(X._row._number+fe).getCell(X._column._number);z.merge(se)}})}else F._rows[te+de-1]=void 0};for(te=Ae;te>=N;te--)Z()}for(te=0;teD.top||H>D.left)&&this.getCell(N,H).merge(F,T);this._merges[F.address]=D}},{key:"_unMergeMaster",value:function(D){var T=this._merges[D.address];if(T){for(var F=T.top;F<=T.bottom;F++)for(var N=T.left;N<=T.right;N++)this.getCell(F,N).unmerge();delete this._merges[D.address]}}},{key:"hasMerges",get:function(){return h.some(this._merges,Boolean)}},{key:"unMergeCells",value:function(){for(var D=arguments.length,T=new Array(D),F=0;F3&&arguments[3]!==void 0?arguments[3]:"shared",W=d.decode(D),V=W.top,te=W.left,ue=W.bottom,fe=W.right,de=fe-te+1,Ae=d.encodeAddress(V,te),we=H==="shared";N=typeof F=="function"?F:Array.isArray(F)?Array.isArray(F[0])?function(J,q){return F[J-V][q-te]}:function(J,q){return F[(J-V)*de+(q-te)]}:function(){};for(var Z=!0,ne=V;ne<=ue;ne++)for(var j=te;j<=fe;j++)Z?(this.getCell(ne,j).value={shareType:H,formula:T,ref:D,result:N(ne,j)},Z=!1):this.getCell(ne,j).value=we?{sharedFormula:Ae,result:N(ne,j)}:N(ne,j)}},{key:"addImage",value:function(D,T){var F={type:"image",imageId:D,range:T};this._media.push(new y(this,F))}},{key:"getImages",value:function(){return this._media.filter(function(D){return D.type==="image"})}},{key:"addBackgroundImage",value:function(D){var T={type:"background",imageId:D};this._media.push(new y(this,T))}},{key:"getBackgroundImageId",value:function(){var D=this._media.find(function(T){return T.type==="background"});return D&&D.imageId}},{key:"protect",value:function(D,T){var F=this;return new Promise(function(N){F.sheetProtection={sheet:!0},T&&"spinCount"in T&&(T.spinCount=Number.isFinite(T.spinCount)?Math.round(Math.max(0,T.spinCount)):1e5),D&&(F.sheetProtection.algorithmName="SHA-512",F.sheetProtection.saltValue=E.randomBytes(16).toString("base64"),F.sheetProtection.spinCount=T&&"spinCount"in T?T.spinCount:1e5,F.sheetProtection.hashValue=E.convertPasswordToHash(D,"SHA512",F.sheetProtection.saltValue,F.sheetProtection.spinCount)),T&&(F.sheetProtection=Object.assign(F.sheetProtection,T),!D&&"spinCount"in T&&delete F.sheetProtection.spinCount),N()})}},{key:"unprotect",value:function(){this.sheetProtection=null}},{key:"addTable",value:function(D){var T=new b(this,D);return this.tables[D.name]=T,T}},{key:"getTable",value:function(D){return this.tables[D]}},{key:"removeTable",value:function(D){delete this.tables[D]}},{key:"getTables",value:function(){return Object.values(this.tables)}},{key:"addConditionalFormatting",value:function(D){this.conditionalFormattings.push(D)}},{key:"removeConditionalFormatting",value:function(D){typeof D=="number"?this.conditionalFormattings.splice(D,1):this.conditionalFormattings=D instanceof Function?this.conditionalFormattings.filter(D):[]}},{key:"tabColor",get:function(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor},set:function(D){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=D}},{key:"model",get:function(){var D={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(function(N){return N.model}),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(function(N){return N.model}),conditionalFormattings:this.conditionalFormattings};D.cols=A.toModel(this.columns);var T=D.rows=[],F=D.dimensions=new p;return this._rows.forEach(function(N){var H=N&&N.model;H&&(F.expand(H.number,H.min,H.number,H.max),T.push(H))}),D.merges=[],h.each(this._merges,function(N){D.merges.push(N.range)}),D},set:function(D){var T=this;this.name=D.name,this._columns=A.fromModel(this,D.cols),this._parseRows(D),this._parseMergeCells(D),this.dataValidations=new I(D.dataValidations),this.properties=D.properties,this.pageSetup=D.pageSetup,this.headerFooter=D.headerFooter,this.views=D.views,this.autoFilter=D.autoFilter,this._media=D.media.map(function(F){return new y(T,F)}),this.sheetProtection=D.sheetProtection,this.tables=D.tables.reduce(function(F,N){var H=new b;return H.model=N,F[N.name]=H,F},{}),this.conditionalFormattings=D.conditionalFormattings}},{key:"_parseRows",value:function(D){var T=this;this._rows=[],D.rows.forEach(function(F){var N=new g(T,F.number);T._rows[N.number-1]=N,N.model=F})}},{key:"_parseMergeCells",value:function(D){var T=this;h.each(D.mergeCells,function(F){T.mergeCellsWithoutStyle(F)})}}])}();c.exports=S},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(a,c,u){a("core-js/modules/es.promise"),a("core-js/modules/es.promise.finally"),a("core-js/modules/es.object.assign"),a("core-js/modules/es.object.keys"),a("core-js/modules/es.object.values"),a("core-js/modules/es.symbol"),a("core-js/modules/es.symbol.async-iterator"),a("core-js/modules/es.array.iterator"),a("core-js/modules/es.array.includes"),a("core-js/modules/es.array.find-index"),a("core-js/modules/es.array.find"),a("core-js/modules/es.string.from-code-point"),a("core-js/modules/es.string.includes"),a("core-js/modules/es.number.is-nan"),a("regenerator-runtime/runtime");var h={Workbook:a("./doc/workbook")},d=a("./doc/enums");Object.keys(d).forEach(function(p){h[p]=d[p]}),c.exports=h},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(a,c,u){var h=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");function d(p){return typeof p=="string"?p:h?h.decode(p):p.toString()}u.bufferToString=d},{}],17:[function(a,c,u){var h=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),d=a("buffer").Buffer;function p(g){return typeof g!="string"?g:h?d.from(h.encode(g).buffer):d.from(g)}u.stringToBuffer=p},{buffer:220}],18:[function(a,c,u){var h=a("./under-dash"),d=a("./col-cache"),p=function(){function g(A){Et(this,g),this.template=A,this.sheets={}}return xt(g,[{key:"addCell",value:function(A){this.addCellEx(d.decodeEx(A))}},{key:"getCell",value:function(A){return this.findCellEx(d.decodeEx(A),!0)}},{key:"findCell",value:function(A){return this.findCellEx(d.decodeEx(A),!1)}},{key:"findCellAt",value:function(A,m,y){var b=this.sheets[A],I=b&&b[m];return I&&I[y]}},{key:"addCellEx",value:function(A){if(A.top)for(var m=A.top;m<=A.bottom;m++)for(var y=A.left;y<=A.right;y++)this.getCellAt(A.sheetName,m,y);else this.findCellEx(A,!0)}},{key:"getCellEx",value:function(A){return this.findCellEx(A,!0)}},{key:"findCellEx",value:function(A,m){var y=this.findSheet(A,m),b=this.findSheetRow(y,A,m);return this.findRowCell(b,A,m)}},{key:"getCellAt",value:function(A,m,y){var b=this.sheets[A]||(this.sheets[A]=[]),I=b[m]||(b[m]=[]);return I[y]||(I[y]={sheetName:A,address:d.n2l(y)+m,row:m,col:y})}},{key:"removeCellEx",value:function(A){var m=this.findSheet(A);if(m){var y=this.findSheetRow(m,A);y&&delete y[A.col]}}},{key:"forEachInSheet",value:function(A,m){var y=this.sheets[A];y&&y.forEach(function(b,I){b&&b.forEach(function(E,B){E&&m(E,I,B)})})}},{key:"forEach",value:function(A){var m=this;h.each(this.sheets,function(y,b){m.forEachInSheet(b,A)})}},{key:"map",value:function(A){var m=[];return this.forEach(function(y){m.push(A(y))}),m}},{key:"findSheet",value:function(A,m){var y=A.sheetName;return this.sheets[y]?this.sheets[y]:m?this.sheets[y]=[]:void 0}},{key:"findSheetRow",value:function(A,m,y){var b=m.row;return A&&A[b]?A[b]:y?A[b]=[]:void 0}},{key:"findRowCell",value:function(A,m,y){var b=m.col;return A&&A[b]?A[b]:y?A[b]=this.template?Object.assign(m,JSON.parse(JSON.stringify(this.template))):m:void 0}},{key:"spliceRows",value:function(A,m,y,b){var I=this.sheets[A];if(I){for(var E=[],B=0;B=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&p>=1){for(;I<=26;)g=this._dictionary[I-1],this._n2l[I]=g,this._l2n[g]=I,I++;this._l2nFill=1}if(this._l2nFill<2&&p>=2){for(I=27;I<=702;)m=(A=I-27)%26,y=Math.floor(A/26),g=this._dictionary[y]+this._dictionary[m],this._n2l[I]=g,this._l2n[g]=I,I++;this._l2nFill=2}if(this._l2nFill<3&&p>=3){for(I=703;I<=16384;)m=(A=I-703)%26,y=Math.floor(A/26)%26,b=Math.floor(A/676),g=this._dictionary[b]+this._dictionary[y]+this._dictionary[m],this._n2l[I]=g,this._l2n[g]=I,I++;this._l2nFill=3}},l2n:function(p){if(this._l2n[p]||this._fill(p.length),!this._l2n[p])throw new Error("Out of bounds. Invalid column letter: ".concat(p));return this._l2n[p]},n2l:function(p){if(p<1||p>16384)throw new Error("".concat(p," is out of bounds. Excel supports columns from 1 to 16384"));return this._n2l[p]||this._fill(this._level(p)),this._n2l[p]},_hash:{},validateAddress:function(p){if(!h.test(p))throw new Error("Invalid Address: ".concat(p));return!0},decodeAddress:function(p){var g=p.length<5&&this._hash[p];if(g)return g;for(var A,m=!1,y="",b=0,I=!1,E="",B=0,S=0;S=65&&A<=90)m=!0,y+=p[S],b=26*b+A-64;else if(A>=48&&A<=57)I=!0,E+=p[S],B=10*B+A-48;else if(I&&m&&A!==36)break;if(m){if(b>16384)throw new Error("Out of bounds. Invalid column letter: ".concat(y))}else b=void 0;I||(B=void 0);var _={address:p=y+E,col:b,row:B,$col$row:"$".concat(y,"$").concat(E)};return b<=100&&B<=100&&(this._hash[p]=_,this._hash[_.$col$row]=_),_},getAddress:function(p,g){if(g){var A=this.n2l(g)+p;return this.decodeAddress(A)}return this.decodeAddress(p)},decode:function(p){var g=p.split(":");if(g.length===2){var A=this.decodeAddress(g[0]),m=this.decodeAddress(g[1]),y={top:Math.min(A.row,m.row),left:Math.min(A.col,m.col),bottom:Math.max(A.row,m.row),right:Math.max(A.col,m.col)};return y.tl=this.n2l(y.left)+y.top,y.br=this.n2l(y.right)+y.bottom,y.dimensions="".concat(y.tl,":").concat(y.br),y}return this.decodeAddress(p)},decodeEx:function(p){var g=p.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),A=g[1]||g[2],m=g[3],y=m.split(":");if(y.length>1){var b=this.decodeAddress(y[0]),I=this.decodeAddress(y[1]),E=Math.min(b.row,I.row),B=Math.min(b.col,I.col),S=Math.max(b.row,I.row),_=Math.max(b.col,I.col);return b=this.n2l(B)+E,I=this.n2l(_)+S,{top:E,left:B,bottom:S,right:_,sheetName:A,tl:{address:b,col:B,row:E,$col$row:"$".concat(this.n2l(B),"$").concat(E),sheetName:A},br:{address:I,col:_,row:S,$col$row:"$".concat(this.n2l(_),"$").concat(S),sheetName:A},dimensions:"".concat(b,":").concat(I)}}if(m.startsWith("#"))return A?{sheetName:A,error:m}:{error:m};var D=this.decodeAddress(m);return A?Za({sheetName:A},D):D},encodeAddress:function(p,g){return d.n2l(g)+p},encode:function(){switch(arguments.length){case 2:return d.encodeAddress(arguments[0],arguments[1]);case 4:return"".concat(d.encodeAddress(arguments[0],arguments[1]),":").concat(d.encodeAddress(arguments[2],arguments[3]));default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange:function(p,g){var A=En(p,5),m=A[0],y=A[1],b=A[3],I=A[4],E=En(g,2),B=E[0],S=E[1];return B>=m&&B<=b&&S>=y&&S<=I}};c.exports=d},{}],20:[function(a,c,u){var h=function(A,m){return Za(Za({},A),m.reduce(function(y,b){return A[b]&&(y[b]=Za({},A[b])),y},{}))},d=function(A,m,y){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];A[y]&&(m[y]=h(A[y],b))},p=function(A){return Object.keys(A).length===0},g=function(A){if(!A)return A;if(p(A))return{};var m=Za({},A);return d(A,m,"font",["color"]),d(A,m,"alignment"),d(A,m,"protection"),A.border&&(d(A,m,"border"),d(A.border,m.border,"top",["color"]),d(A.border,m.border,"left",["color"]),d(A.border,m.border,"bottom",["color"]),d(A.border,m.border,"right",["color"]),d(A.border,m.border,"diagonal",["color"])),A.fill&&(d(A,m,"fill",["fgColor","bgColor","center"]),A.fill.stops&&(m.fill.stops=A.fill.stops.map(function(y){return h(y,["color"])}))),m};u.copyStyle=g},{}],21:[function(a,c,u){(function(h){(function(){var d=a("crypto"),p={hash:function(g){for(var A=d.createHash(g),m=arguments.length,y=new Array(m>1?m-1:0),b=1;b3||N.length===3&&N>"XFD")return E;var V=h.l2n(N),te=parseInt(W,10);return F||(V+=I.col-b.col),H||(te+=I.row-b.row),(B||"")+(F||"")+h.n2l(V)+(H||"")+te}return E})}c.exports={slideFormula:g}},{"./col-cache":19}],24:[function(a,c,u){(function(h,d){(function(){var p=a("readable-stream"),g=a("./utils"),A=a("./string-buf"),m=function(){function B(S,_){Et(this,B),this._data=S,this._encoding=_}return xt(B,[{key:"length",get:function(){return this.toBuffer().length}},{key:"copy",value:function(S,_,D,T){return this.toBuffer().copy(S,_,D,T)}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=d.from(this._data,this._encoding)),this._buffer}}])}(),y=function(){function B(S){Et(this,B),this._data=S}return xt(B,[{key:"length",get:function(){return this._data.length}},{key:"copy",value:function(S,_,D,T){return this._data._buf.copy(S,_,D,T)}},{key:"toBuffer",value:function(){return this._data.toBuffer()}}])}(),b=function(){function B(S){Et(this,B),this._data=S}return xt(B,[{key:"length",get:function(){return this._data.length}},{key:"copy",value:function(S,_,D,T){this._data.copy(S,_,D,T)}},{key:"toBuffer",value:function(){return this._data}}])}(),I=function(){function B(S){Et(this,B),this.size=S,this.buffer=d.alloc(S),this.iRead=0,this.iWrite=0}return xt(B,[{key:"toBuffer",value:function(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;var S=d.alloc(this.iWrite-this.iRead);return this.buffer.copy(S,0,this.iRead,this.iWrite),S}},{key:"length",get:function(){return this.iWrite-this.iRead}},{key:"eod",get:function(){return this.iRead===this.iWrite}},{key:"full",get:function(){return this.iWrite===this.size}},{key:"read",value:function(S){var _;return S===0?null:S===void 0||S>=this.length?(_=this.toBuffer(),this.iRead=this.iWrite,_):(_=d.alloc(S),this.buffer.copy(_,0,this.iRead,S),this.iRead+=S,_)}},{key:"write",value:function(S,_,D){var T=Math.min(D,this.size-this.iWrite);return S.copy(this.buffer,this.iWrite,_,_+T),this.iWrite+=T,T}}])}(),E=function(B){B=B||{},this.bufSize=B.bufSize||1048576,this.buffers=[],this.batch=B.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};g.inherits(E,p.Duplex,{toBuffer:function(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return d.concat(this.buffers.map(function(B){return B.toBuffer()}))}},_getWritableBuffer:function(){if(this.buffers.length){var B=this.buffers[this.buffers.length-1];if(!B.full)return B}var S=new I(this.bufSize);return this.buffers.push(S),S},_pipe:function(B){var S=this;return Sa(_n.mark(function _(){var D;return _n.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return D=function(F){return new Promise(function(N){F.write(B.toBuffer(),function(){N()})})},T.next=3,Promise.all(S.pipes.map(D));case 3:case"end":return T.stop()}},_)}))()},_writeToBuffers:function(B){for(var S=0,_=B.length;S<_;)S+=this._getWritableBuffer().write(B,S,_-S)},write:function(B,S,_){var D=this;return Sa(_n.mark(function T(){var F;return _n.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(S instanceof Function&&(_=S,S="utf8"),_=_||g.nop,!(B instanceof A)){N.next=6;break}F=new y(B),N.next=15;break;case 6:if(!(B instanceof d)){N.next=10;break}F=new b(B),N.next=15;break;case 10:if(!(typeof B=="string"||B instanceof String||B instanceof ArrayBuffer)){N.next=14;break}F=new m(B,S),N.next=15;break;case 14:throw new Error("Chunk must be one of type String, Buffer or StringBuf.");case 15:if(!D.pipes.length){N.next=31;break}if(!D.batch){N.next=21;break}for(D._writeToBuffers(F);!D.corked&&D.buffers.length>1;)D._pipe(D.buffers.shift());N.next=29;break;case 21:if(D.corked){N.next=27;break}return N.next=24,D._pipe(F);case 24:_(),N.next=29;break;case 27:D._writeToBuffers(F),h.nextTick(_);case 29:N.next=34;break;case 31:D.paused||D.emit("data",F.toBuffer()),D._writeToBuffers(F),D.emit("readable");case 34:return N.abrupt("return",!0);case 35:case"end":return N.stop()}},T)}))()},cork:function(){this.corked=!0},_flush:function(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork:function(){this.corked=!1,this._flush()},end:function(B,S,_){var D=this,T=function(F){F?_(F):(D._flush(),D.pipes.forEach(function(N){N.end()}),D.emit("finish"))};B?this.write(B,S,T):T()},read:function(B){var S;if(B){for(S=[];B&&this.buffers.length&&!this.buffers[0].eod;){var _=this.buffers[0],D=_.read(B);B-=D.length,S.push(D),_.eod&&_.full&&this.buffers.shift()}return d.concat(S)}return S=this.buffers.map(function(T){return T.toBuffer()}).filter(Boolean),this.buffers=[],d.concat(S)},setEncoding:function(B){this.encoding=B},pause:function(){this.paused=!0},resume:function(){this.paused=!1},isPaused:function(){return!!this.paused},pipe:function(B){this.pipes.push(B),!this.paused&&this.buffers.length&&this.end()},unpipe:function(B){this.pipes=this.pipes.filter(function(S){return S!==B})},unshift:function(){throw new Error("Not Implemented")},wrap:function(){throw new Error("Not Implemented")}}),c.exports=E}).call(this)}).call(this,a("_process"),a("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(a,c,u){(function(h){(function(){var d=function(){function p(g){Et(this,p),this._buf=h.alloc(g&&g.size||16384),this._encoding=g&&g.encoding||"utf8",this._inPos=0,this._buffer=void 0}return xt(p,[{key:"length",get:function(){return this._inPos}},{key:"capacity",get:function(){return this._buf.length}},{key:"buffer",get:function(){return this._buf}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=h.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}},{key:"reset",value:function(g){g=g||0,this._buffer=void 0,this._inPos=g}},{key:"_grow",value:function(g){for(var A=2*this._buf.length;A=this._buf.length-4;)this._grow(this._inPos+g.length),A=this._inPos+this._buf.write(g,this._inPos,this._encoding);this._inPos=A}},{key:"addStringBuf",value:function(g){g.length&&(this._buffer=void 0,this.length+g.length>this.capacity&&this._grow(this.length+g.length),g._buf.copy(this._buf,this._inPos,0,g.length),this._inPos+=g.length)}}])}();c.exports=d}).call(this)}).call(this,a("buffer").Buffer)},{buffer:220}],26:[function(a,c,u){var h=Object.prototype.toString,d=/["&<>]/,p={each:function(g,A){g&&(Array.isArray(g)?g.forEach(A):Object.keys(g).forEach(function(m){A(g[m],m)}))},some:function(g,A){return!!g&&(Array.isArray(g)?g.some(A):Object.keys(g).some(function(m){return A(g[m],m)}))},every:function(g,A){return!g||(Array.isArray(g)?g.every(A):Object.keys(g).every(function(m){return A(g[m],m)}))},map:function(g,A){return g?Array.isArray(g)?g.map(A):Object.keys(g).map(function(m){return A(g[m],m)}):[]},keyBy:function(g,A){return g.reduce(function(m,y){return m[y[A]]=y,m},{})},isEqual:function(g,A){var m,y=typeof g,b=typeof A,I=Array.isArray(g),E=Array.isArray(A);if(y!==b)return!1;if(typeof g=="object"){if(I||E)return!(!I||!E)&&g.length===A.length&&g.every(function(D,T){var F=A[T];return p.isEqual(D,F)});if(g===null||A===null)return g===A;if(m=Object.keys(g),Object.keys(A).length!==m.length)return!1;var B,S=ny(m);try{for(S.s();!(B=S.n()).done;){var _=B.value;if(!A.hasOwnProperty(_))return!1}}catch(D){S.e(D)}finally{S.f()}return p.every(g,function(D,T){var F=A[T];return p.isEqual(D,F)})}return g===A},escapeHtml:function(g){var A=d.exec(g);if(!A)return g;for(var m="",y="",b=0,I=A.index;I":y=">";break;default:continue}b!==I&&(m+=g.substring(b,I)),b=I+1,m+=y}return b!==I?m+g.substring(b,I):m},strcmp:function(g,A){return gA?1:0},isUndefined:function(g){return h.call(g)==="[object Undefined]"},isObject:function(g){return h.call(g)==="[object Object]"},deepMerge:function(){var g,A,m,y=arguments[0]||{},b=arguments.length;function I(B,S){g=y[S],m=Array.isArray(B),p.isObject(B)||m?(m?(m=!1,A=g&&Array.isArray(g)?g:[]):A=g&&p.isObject(g)?g:{},y[S]=p.deepMerge(A,B)):p.isUndefined(B)||(y[S]=B)}for(var E=0;E&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,A={nop:function(){},promiseImmediate:function(m){return new Promise(function(y){h.setImmediate?d(function(){y(m)}):setTimeout(function(){y(m)},1)})},inherits:function(m,y,b,I){m.super_=y,I||(I=b,b=null),b&&Object.keys(b).forEach(function(B){Object.defineProperty(m,B,Object.getOwnPropertyDescriptor(b,B))});var E={constructor:{value:m,enumerable:!1,writable:!1,configurable:!0}};I&&Object.keys(I).forEach(function(B){E[B]=Object.getOwnPropertyDescriptor(I,B)}),m.prototype=Object.create(y.prototype,E)},dateToExcel:function(m,y){return 25569+m.getTime()/864e5-(y?1462:0)},excelToDate:function(m,y){var b=Math.round(24*(m-25569+(y?1462:0))*3600*1e3);return new Date(b)},parsePath:function(m){var y=m.lastIndexOf("/");return{path:m.substring(0,y),name:m.substring(y+1)}},getRelsPath:function(m){var y=A.parsePath(m);return"".concat(y.path,"/_rels/").concat(y.name,".rels")},xmlEncode:function(m){var y=g.exec(m);if(!y)return m;for(var b="",I="",E=0,B=y.index;B=11&&S!==13)){I="";break}continue}E!==B&&(b+=m.substring(E,B)),E=B+1,I&&(b+=I)}return E!==B?b+m.substring(E,B):b},xmlDecode:function(m){return m.replace(/&([a-z]*);/g,function(y){switch(y){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return y}})},validInt:function(m){var y=parseInt(m,10);return Number.isNaN(y)?0:y},isDateFmt:function(m){return!!m&&(m=(m=m.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null},fs:{exists:function(m){return new Promise(function(y){p.access(m,p.constants.F_OK,function(b){y(!b)})})}},toIsoDateString:function(m){return m.toIsoString().subsstr(0,10)},parseBoolean:function(m){return m===!0||m==="true"||m===1||m==="1"}};c.exports=A}).call(this)}).call(this,Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{},a("timers").setImmediate)},{fs:216,timers:523}],28:[function(a,c,u){var h=a("./under-dash"),d=a("./utils"),p="<",g=">",A="";function y(E,B,S){E.push(" ".concat(B,'="').concat(d.xmlEncode(S.toString()),'"'))}function b(E,B){if(B){var S=[];h.each(B,function(_,D){_!==void 0&&y(S,D,_)}),E.push(S.join(""))}}var I=function(){function E(){Et(this,E),this._xml=[],this._stack=[],this._rollbacks=[]}return xt(E,[{key:"tos",get:function(){return this._stack.length?this._stack[this._stack.length-1]:void 0}},{key:"cursor",get:function(){return this._xml.length}},{key:"openXml",value:function(B){var S=this._xml;S.push(" `)}},{key:"openNode",value:function(B,S){var _=this.tos,D=this._xml;_&&this.open&&D.push(g),this._stack.push(B),D.push(p),D.push(B),b(D,S),this.leaf=!0,this.open=!0}},{key:"addAttribute",value:function(B,S){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");S!==void 0&&y(this._xml,B,S)}},{key:"addAttributes",value:function(B){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");b(this._xml,B)}},{key:"writeText",value:function(B){var S=this._xml;this.open&&(S.push(g),this.open=!1),this.leaf=!1,S.push(d.xmlEncode(B.toString()))}},{key:"writeXml",value:function(B){this.open&&(this._xml.push(g),this.open=!1),this.leaf=!1,this._xml.push(B)}},{key:"closeNode",value:function(){var B=this._stack.pop(),S=this._xml;this.leaf?S.push(m):(S.push(A),S.push(B),S.push(g)),this.open=!1,this.leaf=!1}},{key:"leafNode",value:function(B,S,_){this.openNode(B,S),_!==void 0&&this.writeText(_),this.closeNode()}},{key:"closeAll",value:function(){for(;this._stack.length;)this.closeNode()}},{key:"addRollback",value:function(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}},{key:"commit",value:function(){this._rollbacks.pop()}},{key:"rollback",value:function(){var B=this._rollbacks.pop();this._xml.length>B.xml&&this._xml.splice(B.xml,this._xml.length-B.xml),this._stack.length>B.stack&&this._stack.splice(B.stack,this._stack.length-B.stack),this.leaf=B.leaf,this.open=B.open}},{key:"xml",get:function(){return this.closeAll(),this._xml.join("")}}])}();I.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},c.exports=I},{"./under-dash":26,"./utils":27}],29:[function(a,c,u){(function(h){(function(){var d=a("events"),p=a("jszip"),g=a("./stream-buf"),A=a("./browser-buffer-encode").stringToBuffer,m=function(y){function b(I){var E;return Et(this,b),(E=Er(this,b)).options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},I),E.zip=new p,E.stream=new g,E}return nr(b,y),xt(b,[{key:"append",value:function(I,E){E.hasOwnProperty("base64")&&E.base64?this.zip.file(E.name,I,{base64:!0}):(h.browser&&typeof I=="string"&&(I=A(I)),this.zip.file(E.name,I))}},{key:"finalize",value:function(){var I=Sa(_n.mark(function B(){var S;return _n.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,this.zip.generateAsync(this.options);case 2:S=_.sent,this.stream.end(S),this.emit("finish");case 5:case"end":return _.stop()}},B,this)}));function E(){return I.apply(this,arguments)}return E}()},{key:"read",value:function(I){return this.stream.read(I)}},{key:"setEncoding",value:function(I){return this.stream.setEncoding(I)}},{key:"pause",value:function(){return this.stream.pause()}},{key:"resume",value:function(){return this.stream.resume()}},{key:"isPaused",value:function(){return this.stream.isPaused()}},{key:"pipe",value:function(I,E){return this.stream.pipe(I,E)}},{key:"unpipe",value:function(I){return this.stream.unpipe(I)}},{key:"unshift",value:function(I){return this.stream.unshift(I)}},{key:"wrap",value:function(I){return this.stream.wrap(I)}}])}(d.EventEmitter);c.exports={ZipWriter:m}}).call(this)}).call(this,a("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(a,c,u){c.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(a,c,u){c.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(a,c,u){var h=a("../../utils/parse-sax"),d=a("../../utils/xml-stream"),p=function(){function g(){Et(this,g)}return xt(g,[{key:"prepare",value:function(){}},{key:"render",value:function(){}},{key:"parseOpen",value:function(A){}},{key:"parseText",value:function(A){}},{key:"parseClose",value:function(A){}},{key:"reconcile",value:function(A,m){}},{key:"reset",value:function(){this.model=null,this.map&&Object.values(this.map).forEach(function(A){A instanceof g?A.reset():A.xform&&A.xform.reset()})}},{key:"mergeModel",value:function(A){this.model=Object.assign(this.model||{},A)}},{key:"parse",value:function(){var A=Sa(_n.mark(function y(b){var I,E,B,S,_,D,T,F,N,H,W;return _n.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:I=!1,E=!1,V.prev=2,S=z0(b);case 4:return V.next=6,S.next();case 6:if(!(I=!(_=V.sent).done)){V.next=37;break}D=_.value,T=ny(D),V.prev=9,T.s();case 11:if((F=T.n()).done){V.next=26;break}if(N=F.value,H=N.eventType,W=N.value,H!=="opentag"){V.next=17;break}this.parseOpen(W),V.next=24;break;case 17:if(H!=="text"){V.next=21;break}this.parseText(W),V.next=24;break;case 21:if(H!=="closetag"){V.next=24;break}if(this.parseClose(W.name)){V.next=24;break}return V.abrupt("return",this.model);case 24:V.next=11;break;case 26:V.next=31;break;case 28:V.prev=28,V.t0=V.catch(9),T.e(V.t0);case 31:return V.prev=31,T.f(),V.finish(31);case 34:I=!1,V.next=4;break;case 37:V.next=43;break;case 39:V.prev=39,V.t1=V.catch(2),E=!0,B=V.t1;case 43:if(V.prev=43,V.prev=44,!I||S.return==null){V.next=48;break}return V.next=48,S.return();case 48:if(V.prev=48,!E){V.next=51;break}throw B;case 51:return V.finish(48);case 52:return V.finish(43);case 53:return V.abrupt("return",this.model);case 54:case"end":return V.stop()}},y,this,[[2,39,43,53],[9,28,31,34],[44,,48,52]])}));function m(y){return A.apply(this,arguments)}return m}()},{key:"parseStream",value:function(){var A=Sa(_n.mark(function y(b){return _n.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.abrupt("return",this.parse(h(b)));case 1:case"end":return I.stop()}},y,this)}));function m(y){return A.apply(this,arguments)}return m}()},{key:"xml",get:function(){return this.toXml(this.model)}},{key:"toXml",value:function(A){var m=new d;return this.render(m,A),m.xml}}],[{key:"toAttribute",value:function(A,m){var y=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(A===void 0){if(y)return m}else if(y||A!==m)return A.toString()}},{key:"toStringAttribute",value:function(A,m){var y=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return g.toAttribute(A,m,y)}},{key:"toStringValue",value:function(A,m){return A===void 0?m:A}},{key:"toBoolAttribute",value:function(A,m){var y=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(A===void 0){if(y)return m}else if(y||A!==m)return A?"1":"0"}},{key:"toBoolValue",value:function(A,m){return A===void 0?m:A==="1"}},{key:"toIntAttribute",value:function(A,m){var y=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return g.toAttribute(A,m,y)}},{key:"toIntValue",value:function(A,m){return A===void 0?m:parseInt(A,10)}},{key:"toFloatAttribute",value:function(A,m){var y=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return g.toAttribute(A,m,y)}},{key:"toFloatValue",value:function(A,m){return A===void 0?m:parseFloat(A)}}])}();c.exports=p},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(a,c,u){var h=a("../base-xform"),d=a("../../../utils/col-cache"),p=function(m){function y(){return Et(this,y),Er(this,y,arguments)}return nr(y,m),xt(y,[{key:"render",value:function(b,I){b.openNode("definedName",{name:I.name,localSheetId:I.localSheetId}),b.writeText(I.ranges.join(",")),b.closeNode()}},{key:"parseOpen",value:function(b){return b.name==="definedName"&&(this._parsedName=b.attributes.name,this._parsedLocalSheetId=b.attributes.localSheetId,this._parsedText=[],!0)}},{key:"parseText",value:function(b){this._parsedText.push(b)}},{key:"parseClose",value:function(){return this.model={name:this._parsedName,ranges:A(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}])}(h);function g(m){try{return d.decodeEx(m),!0}catch{return!1}}function A(m){var y=[],b=!1,I="";return m.split(",").forEach(function(E){if(E){var B=(E.match(/'/g)||[]).length;if(B){var S=B%2==0;!b&&S&&g(E)?y.push(E):b&&!S?(b=!1,g(I+E)&&y.push(I+E),I=""):(b=!0,I+="".concat(E,","))}else b?I+="".concat(E,","):g(E)&&y.push(E)}}),y}c.exports=p},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(a,c,u){var h=a("../../../utils/utils"),d=function(p){function g(){return Et(this,g),Er(this,g,arguments)}return nr(g,p),xt(g,[{key:"render",value:function(A,m){A.leafNode("sheet",{sheetId:m.id,name:m.name,state:m.state,"r:id":m.rId})}},{key:"parseOpen",value:function(A){return A.name==="sheet"&&(this.model={name:h.xmlDecode(A.attributes.name),id:parseInt(A.attributes.sheetId,10),state:A.attributes.state,rId:A.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=d},{"../../../utils/utils":27,"../base-xform":32}],35:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"render",value:function(g,A){g.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:A.fullCalcOnLoad?1:void 0})}},{key:"parseOpen",value:function(g){return g.name==="calcPr"&&(this.model={},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],36:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"render",value:function(g,A){g.leafNode("workbookPr",{date1904:A.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}},{key:"parseOpen",value:function(g){return g.name==="workbookPr"&&(this.model={date1904:g.attributes.date1904==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],37:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"render",value:function(g,A){var m={xWindow:A.x||0,yWindow:A.y||0,windowWidth:A.width||12e3,windowHeight:A.height||24e3,firstSheet:A.firstSheet,activeTab:A.activeTab};A.visibility&&A.visibility!=="visible"&&(m.visibility=A.visibility),g.leafNode("workbookView",m)}},{key:"parseOpen",value:function(g){if(g.name==="workbookView"){var A=this.model={},m=function(b,I,E){var B=I!==void 0?A[b]=I:E;B!==void 0&&(A[b]=B)},y=function(b,I,E){var B=I!==void 0?A[b]=parseInt(I,10):E;B!==void 0&&(A[b]=B)};return y("x",g.attributes.xWindow,0),y("y",g.attributes.yWindow,0),y("width",g.attributes.windowWidth,25e3),y("height",g.attributes.windowHeight,1e4),m("visibility",g.attributes.visibility,"visible"),y("activeTab",g.attributes.activeTab,void 0),y("firstSheet",g.attributes.firstSheet,void 0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],38:[function(a,c,u){var h=a("../../../utils/under-dash"),d=a("../../../utils/col-cache"),p=a("../../../utils/xml-stream"),g=a("../base-xform"),A=a("../static-xform"),m=a("../list-xform"),y=a("./defined-name-xform"),b=a("./sheet-xform"),I=a("./workbook-view-xform"),E=a("./workbook-properties-xform"),B=a("./workbook-calc-properties-xform"),S=function(_){function D(){var T;return Et(this,D),(T=Er(this,D)).map={fileVersion:D.STATIC_XFORMS.fileVersion,workbookPr:new E,bookViews:new m({tag:"bookViews",count:!1,childXform:new I}),sheets:new m({tag:"sheets",count:!1,childXform:new b}),definedNames:new m({tag:"definedNames",count:!1,childXform:new y}),calcPr:new B},T}return nr(D,_),xt(D,[{key:"prepare",value:function(T){T.sheets=T.worksheets;var F=[],N=0;T.sheets.forEach(function(H){if(H.pageSetup&&H.pageSetup.printArea&&H.pageSetup.printArea.split("&&").forEach(function(fe){var de=fe.split(":"),Ae={name:"_xlnm.Print_Area",ranges:["'".concat(H.name,"'!$").concat(de[0],":$").concat(de[1])],localSheetId:N};F.push(Ae)}),H.pageSetup&&(H.pageSetup.printTitlesRow||H.pageSetup.printTitlesColumn)){var W=[];if(H.pageSetup.printTitlesColumn){var V=H.pageSetup.printTitlesColumn.split(":");W.push("'".concat(H.name,"'!$").concat(V[0],":$").concat(V[1]))}if(H.pageSetup.printTitlesRow){var te=H.pageSetup.printTitlesRow.split(":");W.push("'".concat(H.name,"'!$").concat(te[0],":$").concat(te[1]))}var ue={name:"_xlnm.Print_Titles",ranges:W,localSheetId:N};F.push(ue)}N++}),F.length&&(T.definedNames=T.definedNames.concat(F)),(T.media||[]).forEach(function(H,W){H.name=H.type+(W+1)})}},{key:"render",value:function(T,F){T.openXml(p.StdDocAttributes),T.openNode("workbook",D.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(T),this.map.workbookPr.render(T,F.properties),this.map.bookViews.render(T,F.views),this.map.sheets.render(T,F.sheets),this.map.definedNames.render(T,F.definedNames),this.map.calcPr.render(T,F.calcProperties),T.closeNode()}},{key:"parseOpen",value:function(T){return this.parser?(this.parser.parseOpen(T),!0):(T.name==="workbook"||(this.parser=this.map[T.name],this.parser&&this.parser.parseOpen(T)),!0)}},{key:"parseText",value:function(T){this.parser&&this.parser.parseText(T)}},{key:"parseClose",value:function(T){return this.parser?(this.parser.parseClose(T)||(this.parser=void 0),!0):T!=="workbook"||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}},{key:"reconcile",value:function(T){var F,N=(T.workbookRels||[]).reduce(function(te,ue){return te[ue.Id]=ue,te},{}),H=[],W=0;(T.sheets||[]).forEach(function(te){var ue=N[te.rId];ue&&(F=T.worksheetHash["xl/".concat(ue.Target.replace(/^(\s|\/xl\/)+/,""))])&&(F.name=te.name,F.id=te.id,F.state=te.state,H[W++]=F)});var V=[];h.each(T.definedNames,function(te){if(te.name==="_xlnm.Print_Area"){if(F=H[te.localSheetId]){F.pageSetup||(F.pageSetup={});var ue=d.decodeEx(te.ranges[0]);F.pageSetup.printArea=F.pageSetup.printArea?"".concat(F.pageSetup.printArea,"&&").concat(ue.dimensions):ue.dimensions}}else if(te.name==="_xlnm.Print_Titles"){if(F=H[te.localSheetId]){F.pageSetup||(F.pageSetup={});var fe=te.ranges.join(","),de=/\$/g,Ae=/\$\d+:\$\d+/,we=fe.match(Ae);if(we&&we.length){var Z=we[0];F.pageSetup.printTitlesRow=Z.replace(de,"")}var ne=/\$[A-Z]+:\$[A-Z]+/,j=fe.match(ne);if(j&&j.length){var J=j[0];F.pageSetup.printTitlesColumn=J.replace(de,"")}}}else V.push(te)}),T.definedNames=V,T.media.forEach(function(te,ue){te.index=ue})}}])}(g);S.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},S.STATIC_XFORMS={fileVersion:new A({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},c.exports=S},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(a,c,u){var h=a("../strings/rich-text-xform"),d=a("../../../utils/utils"),p=a("../base-xform"),g=c.exports=function(A){this.model=A};d.inherits(g,p,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new h),this._richTextXform},render:function(A,m){var y=this;m=m||this.model,A.openNode("comment",{ref:m.ref,authorId:0}),A.openNode("text"),m&&m.note&&m.note.texts&&m.note.texts.forEach(function(b){y.richTextXform.render(A,b)}),A.closeNode(),A.closeNode()},parseOpen:function(A){if(this.parser)return this.parser.parseOpen(A),!0;switch(A.name){case"comment":return this.model=Za({type:"note",note:{texts:[]}},A.attributes),!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(A),!0;default:return!1}},parseText:function(A){this.parser&&this.parser.parseText(A)},parseClose:function(A){switch(A){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(A),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(a,c,u){var h=a("../../../utils/xml-stream"),d=a("../../../utils/utils"),p=a("../base-xform"),g=a("./comment-xform"),A=c.exports=function(){this.map={comment:new g}};d.inherits(A,p,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render:function(m,y){var b=this;y=y||this.model,m.openXml(h.StdDocAttributes),m.openNode("comments",A.COMMENTS_ATTRIBUTES),m.openNode("authors"),m.leafNode("author",null,"Author"),m.closeNode(),m.openNode("commentList"),y.comments.forEach(function(I){b.map.comment.render(m,I)}),m.closeNode(),m.closeNode()},parseOpen:function(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(m),!0;default:return!1}},parseText:function(m){this.parser&&this.parser.parseText(m)},parseClose:function(m){switch(m){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(m),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(a,c,u){var h=function(d){function p(g){var A;return Et(this,p),(A=Er(this,p))._model=g,A}return nr(p,d),xt(p,[{key:"tag",get:function(){return this._model&&this._model.tag}},{key:"render",value:function(g,A,m){(A===m[2]||this.tag==="x:SizeWithCells"&&A===m[1])&&g.leafNode(this.tag)}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../../base-xform"));c.exports=h},{"../../base-xform":32}],42:[function(a,c,u){var h=function(d){function p(g){var A;return Et(this,p),(A=Er(this,p))._model=g,A}return nr(p,d),xt(p,[{key:"tag",get:function(){return this._model&&this._model.tag}},{key:"render",value:function(g,A){g.leafNode(this.tag,null,A)}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(g){this.text=g}},{key:"parseClose",value:function(){return!1}}])}(a("../../base-xform"));c.exports=h},{"../../base-xform":32}],43:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"x:Anchor"}},{key:"getAnchorRect",value:function(g){var A=Math.floor(g.left),m=Math.floor(68*(g.left-A)),y=Math.floor(g.top),b=Math.floor(18*(g.top-y)),I=Math.floor(g.right),E=Math.floor(68*(g.right-I)),B=Math.floor(g.bottom);return[A,m,y,b,I,E,B,Math.floor(18*(g.bottom-B))]}},{key:"getDefaultRect",value:function(g){var A=g.col,m=6,y=Math.max(g.row-2,0);return[A,m,y,14,A+2,2,y+4,16]}},{key:"render",value:function(g,A){var m=A.anchor?this.getAnchorRect(A.anchor):this.getDefaultRect(A.refAddress);g.leafNode("x:Anchor",null,m.join(", "))}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(g){this.text=g}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],44:[function(a,c,u){var h=a("../base-xform"),d=a("./vml-anchor-xform"),p=a("./style/vml-protection-xform"),g=a("./style/vml-position-xform"),A=["twoCells","oneCells","absolute"],m=function(y){function b(){var I;return Et(this,b),(I=Er(this,b)).map={"x:Anchor":new d,"x:Locked":new p({tag:"x:Locked"}),"x:LockText":new p({tag:"x:LockText"}),"x:SizeWithCells":new g({tag:"x:SizeWithCells"}),"x:MoveWithCells":new g({tag:"x:MoveWithCells"})},I}return nr(b,y),xt(b,[{key:"tag",get:function(){return"x:ClientData"}},{key:"render",value:function(I,E){var B=E.note,S=B.protection,_=B.editAs;I.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(I,_,A),this.map["x:SizeWithCells"].render(I,_,A),this.map["x:Anchor"].render(I,E),this.map["x:Locked"].render(I,S.locked),I.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(I,S.lockText),I.leafNode("x:Row",null,E.refAddress.row-1),I.leafNode("x:Column",null,E.refAddress.col-1),I.closeNode()}},{key:"parseOpen",value:function(I){return I.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[I.name],this.parser&&this.parser.parseOpen(I)),!0}},{key:"parseText",value:function(I){this.parser&&this.parser.parseText(I)}},{key:"parseClose",value:function(I){return this.parser?(this.parser.parseClose(I)||(this.parser=void 0),!0):I!==this.tag||(this.normalizeModel(),!1)}},{key:"normalizeModel",value:function(){var I=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),E=Object.keys(I).length;this.model.editAs=A[E],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}])}(h);c.exports=m},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(a,c,u){var h=a("../../../utils/xml-stream"),d=a("../base-xform"),p=a("./vml-shape-xform"),g=function(A){function m(){var y;return Et(this,m),(y=Er(this,m)).map={"v:shape":new p},y}return nr(m,A),xt(m,[{key:"tag",get:function(){return"xml"}},{key:"render",value:function(y,b){var I=this;y.openXml(h.StdDocAttributes),y.openNode(this.tag,m.DRAWING_ATTRIBUTES),y.openNode("o:shapelayout",{"v:ext":"edit"}),y.leafNode("o:idmap",{"v:ext":"edit",data:1}),y.closeNode(),y.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),y.leafNode("v:stroke",{joinstyle:"miter"}),y.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),y.closeNode(),b.comments.forEach(function(E,B){I.map["v:shape"].render(y,E,B)}),y.closeNode()}},{key:"parseOpen",value:function(y){return this.parser?(this.parser.parseOpen(y),!0):(y.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[y.name],this.parser&&this.parser.parseOpen(y)),!0)}},{key:"parseText",value:function(y){this.parser&&this.parser.parseText(y)}},{key:"parseClose",value:function(y){return this.parser?(this.parser.parseClose(y)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):y!==this.tag}},{key:"reconcile",value:function(y,b){var I=this;y.anchors.forEach(function(E){E.br?I.map["xdr:twoCellAnchor"].reconcile(E,b):I.map["xdr:oneCellAnchor"].reconcile(E,b)})}}])}(d);g.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},c.exports=g},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(a,c,u){var h=a("../base-xform"),d=a("./vml-textbox-xform"),p=a("./vml-client-data-xform"),g=function(A){function m(){var y;return Et(this,m),(y=Er(this,m)).map={"v:textbox":new d,"x:ClientData":new p},y}return nr(m,A),xt(m,[{key:"tag",get:function(){return"v:shape"}},{key:"render",value:function(y,b,I){y.openNode("v:shape",m.V_SHAPE_ATTRIBUTES(b,I)),y.leafNode("v:fill",{color2:"infoBackground [80]"}),y.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),y.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(y,b),this.map["x:ClientData"].render(y,b),y.closeNode()}},{key:"parseOpen",value:function(y){return this.parser?(this.parser.parseOpen(y),!0):(y.name===this.tag?(this.reset(),this.model={margins:{insetmode:y.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[y.name],this.parser&&this.parser.parseOpen(y)),!0)}},{key:"parseText",value:function(y){this.parser&&this.parser.parseText(y)}},{key:"parseClose",value:function(y){return this.parser?(this.parser.parseClose(y)||(this.parser=void 0),!0):y!==this.tag||(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1)}}])}(h);g.V_SHAPE_ATTRIBUTES=function(A,m){return{id:"_x0000_s".concat(1025+m),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":A.note.margins&&A.note.margins.insetmode}},c.exports=g},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"v:textbox"}},{key:"conversionUnit",value:function(g,A,m){return"".concat(parseFloat(g)*A.toFixed(2)).concat(m)}},{key:"reverseConversionUnit",value:function(g){var A=this;return(g||"").split(",").map(function(m){return Number(parseFloat(A.conversionUnit(parseFloat(m),.1,"")).toFixed(2))})}},{key:"render",value:function(g,A){var m=this,y={style:"mso-direction-alt:auto"};if(A&&A.note){var b=(A.note&&A.note.margins).inset;Array.isArray(b)&&(b=b.map(function(I){return m.conversionUnit(I,10,"mm")}).join(",")),b&&(y.inset=b)}g.openNode("v:textbox",y),g.leafNode("div",{style:"text-align:left"}),g.closeNode()}},{key:"parseOpen",value:function(g){return g.name!==this.tag||(this.model={inset:this.reverseConversionUnit(g.attributes.inset)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(g){return g!==this.tag}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],48:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"createNewModel",value:function(g){return{}}},{key:"parseOpen",value:function(g){return this.parser=this.parser||this.map[g.name],this.parser?(this.parser.parseOpen(g),!0):g.name===this.tag&&(this.model=this.createNewModel(g),!0)}},{key:"parseText",value:function(g){this.parser&&this.parser.parseText(g)}},{key:"onParserClose",value:function(g,A){this.model[g]=A.model}},{key:"parseClose",value:function(g){return this.parser?(this.parser.parseClose(g)||(this.onParserClose(g,this.parser),this.parser=void 0),!0):g!==this.tag}}])}(a("./base-xform"));c.exports=h},{"./base-xform":32}],49:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"render",value:function(g,A){g.openNode("HeadingPairs"),g.openNode("vt:vector",{size:2,baseType:"variant"}),g.openNode("vt:variant"),g.leafNode("vt:lpstr",void 0,"Worksheets"),g.closeNode(),g.openNode("vt:variant"),g.leafNode("vt:i4",void 0,A.length),g.closeNode(),g.closeNode(),g.closeNode()}},{key:"parseOpen",value:function(g){return g.name==="HeadingPairs"}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(g){return g!=="HeadingPairs"}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],50:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"render",value:function(g,A){g.openNode("TitlesOfParts"),g.openNode("vt:vector",{size:A.length,baseType:"lpstr"}),A.forEach(function(m){g.leafNode("vt:lpstr",void 0,m.name)}),g.closeNode(),g.closeNode()}},{key:"parseOpen",value:function(g){return g.name==="TitlesOfParts"}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(g){return g!=="TitlesOfParts"}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],51:[function(a,c,u){var h=a("../../../utils/xml-stream"),d=a("../base-xform"),p=a("../simple/string-xform"),g=a("./app-heading-pairs-xform"),A=a("./app-titles-of-parts-xform"),m=function(y){function b(){var I;return Et(this,b),(I=Er(this,b)).map={Company:new p({tag:"Company"}),Manager:new p({tag:"Manager"}),HeadingPairs:new g,TitleOfParts:new A},I}return nr(b,y),xt(b,[{key:"render",value:function(I,E){I.openXml(h.StdDocAttributes),I.openNode("Properties",b.PROPERTY_ATTRIBUTES),I.leafNode("Application",void 0,"Microsoft Excel"),I.leafNode("DocSecurity",void 0,"0"),I.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(I,E.worksheets),this.map.TitleOfParts.render(I,E.worksheets),this.map.Company.render(I,E.company||""),this.map.Manager.render(I,E.manager),I.leafNode("LinksUpToDate",void 0,"false"),I.leafNode("SharedDoc",void 0,"false"),I.leafNode("HyperlinksChanged",void 0,"false"),I.leafNode("AppVersion",void 0,"16.0300"),I.closeNode()}},{key:"parseOpen",value:function(I){return this.parser?(this.parser.parseOpen(I),!0):I.name==="Properties"||(this.parser=this.map[I.name],!!this.parser&&(this.parser.parseOpen(I),!0))}},{key:"parseText",value:function(I){this.parser&&this.parser.parseText(I)}},{key:"parseClose",value:function(I){return this.parser?(this.parser.parseClose(I)||(this.parser=void 0),!0):I!=="Properties"||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}])}(d);m.DateFormat=function(y){return y.toISOString().replace(/[.]\d{3,6}/,"")},m.DateAttrs={"xsi:type":"dcterms:W3CDTF"},m.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},c.exports=m},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(a,c,u){var h=a("../../../utils/xml-stream"),d=function(p){function g(){return Et(this,g),Er(this,g,arguments)}return nr(g,p),xt(g,[{key:"render",value:function(A,m){A.openXml(h.StdDocAttributes),A.openNode("Types",g.PROPERTY_ATTRIBUTES);var y={};(m.media||[]).forEach(function(b){if(b.type==="image"){var I=b.extension;y[I]||(y[I]=!0,A.leafNode("Default",{Extension:I,ContentType:"image/".concat(I)}))}}),A.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),A.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),A.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),m.worksheets.forEach(function(b){var I="/xl/worksheets/sheet".concat(b.id,".xml");A.leafNode("Override",{PartName:I,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),A.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),A.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),m.sharedStrings&&m.sharedStrings.count&&A.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),m.tables&&m.tables.forEach(function(b){A.leafNode("Override",{PartName:"/xl/tables/".concat(b.target),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),m.drawings&&m.drawings.forEach(function(b){A.leafNode("Override",{PartName:"/xl/drawings/".concat(b.name,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),m.commentRefs&&(A.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),m.commentRefs.forEach(function(b){var I=b.commentName;A.leafNode("Override",{PartName:"/xl/".concat(I,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),A.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),A.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),A.closeNode()}},{key:"parseOpen",value:function(){return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));d.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},c.exports=d},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(a,c,u){var h=a("../../../utils/xml-stream"),d=a("../base-xform"),p=a("../simple/date-xform"),g=a("../simple/string-xform"),A=a("../simple/integer-xform"),m=function(y){function b(){var I;return Et(this,b),(I=Er(this,b)).map={"dc:creator":new g({tag:"dc:creator"}),"dc:title":new g({tag:"dc:title"}),"dc:subject":new g({tag:"dc:subject"}),"dc:description":new g({tag:"dc:description"}),"dc:identifier":new g({tag:"dc:identifier"}),"dc:language":new g({tag:"dc:language"}),"cp:keywords":new g({tag:"cp:keywords"}),"cp:category":new g({tag:"cp:category"}),"cp:lastModifiedBy":new g({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new p({tag:"cp:lastPrinted",format:b.DateFormat}),"cp:revision":new A({tag:"cp:revision"}),"cp:version":new g({tag:"cp:version"}),"cp:contentStatus":new g({tag:"cp:contentStatus"}),"cp:contentType":new g({tag:"cp:contentType"}),"dcterms:created":new p({tag:"dcterms:created",attrs:b.DateAttrs,format:b.DateFormat}),"dcterms:modified":new p({tag:"dcterms:modified",attrs:b.DateAttrs,format:b.DateFormat})},I}return nr(b,y),xt(b,[{key:"render",value:function(I,E){I.openXml(h.StdDocAttributes),I.openNode("cp:coreProperties",b.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(I,E.creator),this.map["dc:title"].render(I,E.title),this.map["dc:subject"].render(I,E.subject),this.map["dc:description"].render(I,E.description),this.map["dc:identifier"].render(I,E.identifier),this.map["dc:language"].render(I,E.language),this.map["cp:keywords"].render(I,E.keywords),this.map["cp:category"].render(I,E.category),this.map["cp:lastModifiedBy"].render(I,E.lastModifiedBy),this.map["cp:lastPrinted"].render(I,E.lastPrinted),this.map["cp:revision"].render(I,E.revision),this.map["cp:version"].render(I,E.version),this.map["cp:contentStatus"].render(I,E.contentStatus),this.map["cp:contentType"].render(I,E.contentType),this.map["dcterms:created"].render(I,E.created),this.map["dcterms:modified"].render(I,E.modified),I.closeNode()}},{key:"parseOpen",value:function(I){if(this.parser)return this.parser.parseOpen(I),!0;switch(I.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[I.name],this.parser)return this.parser.parseOpen(I),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(I)))}}},{key:"parseText",value:function(I){this.parser&&this.parser.parseText(I)}},{key:"parseClose",value:function(I){if(this.parser)return this.parser.parseClose(I)||(this.parser=void 0),!0;switch(I){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(I))}}}])}(d);m.DateFormat=function(y){return y.toISOString().replace(/[.]\d{3}/,"")},m.DateAttrs={"xsi:type":"dcterms:W3CDTF"},m.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},c.exports=m},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"render",value:function(g,A){g.leafNode("Relationship",A)}},{key:"parseOpen",value:function(g){return g.name==="Relationship"&&(this.model=g.attributes,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],55:[function(a,c,u){var h=a("../../../utils/xml-stream"),d=a("../base-xform"),p=a("./relationship-xform"),g=function(A){function m(){var y;return Et(this,m),(y=Er(this,m)).map={Relationship:new p},y}return nr(m,A),xt(m,[{key:"render",value:function(y,b){var I=this;b=b||this._values,y.openXml(h.StdDocAttributes),y.openNode("Relationships",m.RELATIONSHIPS_ATTRIBUTES),b.forEach(function(E){I.map.Relationship.render(y,E)}),y.closeNode()}},{key:"parseOpen",value:function(y){if(this.parser)return this.parser.parseOpen(y),!0;if(y.name==="Relationships")return this.model=[],!0;if(this.parser=this.map[y.name],this.parser)return this.parser.parseOpen(y),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(y)))}},{key:"parseText",value:function(y){this.parser&&this.parser.parseText(y)}},{key:"parseClose",value:function(y){if(this.parser)return this.parser.parseClose(y)||(this.model.push(this.parser.model),this.parser=void 0),!0;if(y==="Relationships")return!1;throw new Error("Unexpected xml node in parseClose: ".concat(y))}}])}(d);g.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},c.exports=g},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"parseOpen",value:function(g){return this.parser?(this.parser.parseOpen(g),!0):(g.name===this.tag?(this.reset(),this.model={range:{editAs:g.attributes.editAs||"oneCell"}}):(this.parser=this.map[g.name],this.parser&&this.parser.parseOpen(g)),!0)}},{key:"parseText",value:function(g){this.parser&&this.parser.parseText(g)}},{key:"reconcilePicture",value:function(g,A){if(g&&g.rId){var m=A.rels[g.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(m){var y=m[1],b=A.mediaIndex[y];return A.media[b]}}}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],57:[function(a,c,u){var h=a("../base-xform"),d=a("./blip-xform"),p=function(g){function A(){var m;return Et(this,A),(m=Er(this,A)).map={"a:blip":new d},m}return nr(A,g),xt(A,[{key:"tag",get:function(){return"xdr:blipFill"}},{key:"render",value:function(m,y){m.openNode(this.tag),this.map["a:blip"].render(m,y),m.openNode("a:stretch"),m.leafNode("a:fillRect"),m.closeNode(),m.closeNode()}},{key:"parseOpen",value:function(m){return this.parser?(this.parser.parseOpen(m),!0):(m.name===this.tag?this.reset():(this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(m){return this.parser?(this.parser.parseClose(m)||(this.parser=void 0),!0):m!==this.tag||(this.model=this.map["a:blip"].model,!1)}}])}(h);c.exports=p},{"../base-xform":32,"./blip-xform":58}],58:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"a:blip"}},{key:"render",value:function(g,A){g.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":A.rId,cstate:"print"})}},{key:"parseOpen",value:function(g){return g.name!==this.tag||(this.model={rId:g.attributes["r:embed"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(g){return g!==this.tag}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],59:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"xdr:cNvPicPr"}},{key:"render",value:function(g){g.openNode(this.tag),g.leafNode("a:picLocks",{noChangeAspect:"1"}),g.closeNode()}},{key:"parseOpen",value:function(g){return g.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(g){return g!==this.tag}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],60:[function(a,c,u){var h=a("../base-xform"),d=a("./hlink-click-xform"),p=a("./ext-lst-xform"),g=function(A){function m(){var y;return Et(this,m),(y=Er(this,m)).map={"a:hlinkClick":new d,"a:extLst":new p},y}return nr(m,A),xt(m,[{key:"tag",get:function(){return"xdr:cNvPr"}},{key:"render",value:function(y,b){y.openNode(this.tag,{id:b.index,name:"Picture ".concat(b.index)}),this.map["a:hlinkClick"].render(y,b),this.map["a:extLst"].render(y,b),y.closeNode()}},{key:"parseOpen",value:function(y){return this.parser?(this.parser.parseOpen(y),!0):(y.name===this.tag?this.reset():(this.parser=this.map[y.name],this.parser&&this.parser.parseOpen(y)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(y){return this.parser?(this.parser.parseClose(y)||(this.parser=void 0),!0):y!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}])}(h);c.exports=g},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(a,c,u){var h=a("../base-xform"),d=a("../simple/integer-xform"),p=function(g){function A(m){var y;return Et(this,A),(y=Er(this,A)).tag=m.tag,y.map={"xdr:col":new d({tag:"xdr:col",zero:!0}),"xdr:colOff":new d({tag:"xdr:colOff",zero:!0}),"xdr:row":new d({tag:"xdr:row",zero:!0}),"xdr:rowOff":new d({tag:"xdr:rowOff",zero:!0})},y}return nr(A,g),xt(A,[{key:"render",value:function(m,y){m.openNode(this.tag),this.map["xdr:col"].render(m,y.nativeCol),this.map["xdr:colOff"].render(m,y.nativeColOff),this.map["xdr:row"].render(m,y.nativeRow),this.map["xdr:rowOff"].render(m,y.nativeRowOff),m.closeNode()}},{key:"parseOpen",value:function(m){return this.parser?(this.parser.parseOpen(m),!0):(m.name===this.tag?this.reset():(this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m)),!0)}},{key:"parseText",value:function(m){this.parser&&this.parser.parseText(m)}},{key:"parseClose",value:function(m){return this.parser?(this.parser.parseClose(m)||(this.parser=void 0),!0):m!==this.tag||(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1)}}])}(h);c.exports=p},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(a,c,u){var h=a("../../../utils/col-cache"),d=a("../../../utils/xml-stream"),p=a("../base-xform"),g=a("./two-cell-anchor-xform"),A=a("./one-cell-anchor-xform");function m(b){return(typeof b.range=="string"?h.decode(b.range):b.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}var y=function(b){function I(){var E;return Et(this,I),(E=Er(this,I)).map={"xdr:twoCellAnchor":new g,"xdr:oneCellAnchor":new A},E}return nr(I,b),xt(I,[{key:"prepare",value:function(E){var B=this;E.anchors.forEach(function(S,_){S.anchorType=m(S),B.map[S.anchorType].prepare(S,{index:_})})}},{key:"tag",get:function(){return"xdr:wsDr"}},{key:"render",value:function(E,B){var S=this;E.openXml(d.StdDocAttributes),E.openNode(this.tag,I.DRAWING_ATTRIBUTES),B.anchors.forEach(function(_){S.map[_.anchorType].render(E,_)}),E.closeNode()}},{key:"parseOpen",value:function(E){return this.parser?(this.parser.parseOpen(E),!0):(E.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[E.name],this.parser&&this.parser.parseOpen(E)),!0)}},{key:"parseText",value:function(E){this.parser&&this.parser.parseText(E)}},{key:"parseClose",value:function(E){return this.parser?(this.parser.parseClose(E)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):E!==this.tag}},{key:"reconcile",value:function(E,B){var S=this;E.anchors.forEach(function(_){_.br?S.map["xdr:twoCellAnchor"].reconcile(_,B):S.map["xdr:oneCellAnchor"].reconcile(_,B)})}}])}(p);y.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},c.exports=y},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"a:extLst"}},{key:"render",value:function(g){g.openNode(this.tag),g.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),g.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),g.closeNode(),g.closeNode()}},{key:"parseOpen",value:function(g){return g.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(g){return g!==this.tag}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],64:[function(a,c,u){var h=a("../base-xform"),d=9525,p=function(g){function A(m){var y;return Et(this,A),(y=Er(this,A)).tag=m.tag,y.map={},y}return nr(A,g),xt(A,[{key:"render",value:function(m,y){m.openNode(this.tag);var b=Math.floor(y.width*d),I=Math.floor(y.height*d);m.addAttribute("cx",b),m.addAttribute("cy",I),m.closeNode()}},{key:"parseOpen",value:function(m){return m.name===this.tag&&(this.model={width:parseInt(m.attributes.cx||"0",10)/d,height:parseInt(m.attributes.cy||"0",10)/d},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(h);c.exports=p},{"../base-xform":32}],65:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"a:hlinkClick"}},{key:"render",value:function(g,A){A.hyperlinks&&A.hyperlinks.rId&&g.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":A.hyperlinks.rId,tooltip:A.hyperlinks.tooltip})}},{key:"parseOpen",value:function(g){return g.name!==this.tag||(this.model={hyperlinks:{rId:g.attributes["r:id"],tooltip:g.attributes.tooltip}},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],66:[function(a,c,u){var h=a("../base-xform"),d=a("./c-nv-pr-xform"),p=a("./c-nv-pic-pr-xform"),g=function(A){function m(){var y;return Et(this,m),(y=Er(this,m)).map={"xdr:cNvPr":new d,"xdr:cNvPicPr":new p},y}return nr(m,A),xt(m,[{key:"tag",get:function(){return"xdr:nvPicPr"}},{key:"render",value:function(y,b){y.openNode(this.tag),this.map["xdr:cNvPr"].render(y,b),this.map["xdr:cNvPicPr"].render(y,b),y.closeNode()}},{key:"parseOpen",value:function(y){return this.parser?(this.parser.parseOpen(y),!0):(y.name===this.tag?this.reset():(this.parser=this.map[y.name],this.parser&&this.parser.parseOpen(y)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(y){return this.parser?(this.parser.parseClose(y)||(this.parser=void 0),!0):y!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}])}(h);c.exports=g},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(a,c,u){var h=a("./base-cell-anchor-xform"),d=a("../static-xform"),p=a("./cell-position-xform"),g=a("./ext-xform"),A=a("./pic-xform"),m=function(y){function b(){var I;return Et(this,b),(I=Er(this,b)).map={"xdr:from":new p({tag:"xdr:from"}),"xdr:ext":new g({tag:"xdr:ext"}),"xdr:pic":new A,"xdr:clientData":new d({tag:"xdr:clientData"})},I}return nr(b,y),xt(b,[{key:"tag",get:function(){return"xdr:oneCellAnchor"}},{key:"prepare",value:function(I,E){this.map["xdr:pic"].prepare(I.picture,E)}},{key:"render",value:function(I,E){I.openNode(this.tag,{editAs:E.range.editAs||"oneCell"}),this.map["xdr:from"].render(I,E.range.tl),this.map["xdr:ext"].render(I,E.range.ext),this.map["xdr:pic"].render(I,E.picture),this.map["xdr:clientData"].render(I,{}),I.closeNode()}},{key:"parseClose",value:function(I){return this.parser?(this.parser.parseClose(I)||(this.parser=void 0),!0):I!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1)}},{key:"reconcile",value:function(I,E){I.medium=this.reconcilePicture(I.picture,E)}}])}(h);c.exports=m},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(a,c,u){var h=a("../base-xform"),d=a("../static-xform"),p=a("./blip-fill-xform"),g=a("./nv-pic-pr-xform"),A=a("./sp-pr"),m=function(y){function b(){var I;return Et(this,b),(I=Er(this,b)).map={"xdr:nvPicPr":new g,"xdr:blipFill":new p,"xdr:spPr":new d(A)},I}return nr(b,y),xt(b,[{key:"tag",get:function(){return"xdr:pic"}},{key:"prepare",value:function(I,E){I.index=E.index+1}},{key:"render",value:function(I,E){I.openNode(this.tag),this.map["xdr:nvPicPr"].render(I,E),this.map["xdr:blipFill"].render(I,E),this.map["xdr:spPr"].render(I,E),I.closeNode()}},{key:"parseOpen",value:function(I){return this.parser?(this.parser.parseOpen(I),!0):(I.name===this.tag?this.reset():(this.parser=this.map[I.name],this.parser&&this.parser.parseOpen(I)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(I){return this.parser?(this.parser.parseClose(I)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):I!==this.tag}}])}(h);c.exports=m},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(a,c,u){c.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(a,c,u){var h=a("./base-cell-anchor-xform"),d=a("../static-xform"),p=a("./cell-position-xform"),g=a("./pic-xform"),A=function(m){function y(){var b;return Et(this,y),(b=Er(this,y)).map={"xdr:from":new p({tag:"xdr:from"}),"xdr:to":new p({tag:"xdr:to"}),"xdr:pic":new g,"xdr:clientData":new d({tag:"xdr:clientData"})},b}return nr(y,m),xt(y,[{key:"tag",get:function(){return"xdr:twoCellAnchor"}},{key:"prepare",value:function(b,I){this.map["xdr:pic"].prepare(b.picture,I)}},{key:"render",value:function(b,I){b.openNode(this.tag,{editAs:I.range.editAs||"oneCell"}),this.map["xdr:from"].render(b,I.range.tl),this.map["xdr:to"].render(b,I.range.br),this.map["xdr:pic"].render(b,I.picture),this.map["xdr:clientData"].render(b,{}),b.closeNode()}},{key:"parseClose",value:function(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):b!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1)}},{key:"reconcile",value:function(b,I){b.medium=this.reconcilePicture(b.picture,I)}}])}(h);c.exports=A},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(a,c,u){var h=function(d){function p(g){var A;return Et(this,p),(A=Er(this,p)).tag=g.tag,A.always=!!g.always,A.count=g.count,A.empty=g.empty,A.$count=g.$count||"count",A.$=g.$,A.childXform=g.childXform,A.maxItems=g.maxItems,A}return nr(p,d),xt(p,[{key:"prepare",value:function(g,A){var m=this.childXform;g&&g.forEach(function(y,b){A.index=b,m.prepare(y,A)})}},{key:"render",value:function(g,A){if(this.always||A&&A.length){g.openNode(this.tag,this.$),this.count&&g.addAttribute(this.$count,A&&A.length||0);var m=this.childXform;(A||[]).forEach(function(y,b){m.render(g,y,b)}),g.closeNode()}else this.empty&&g.leafNode(this.tag)}},{key:"parseOpen",value:function(g){return this.parser?(this.parser.parseOpen(g),!0):g.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(g)&&(this.parser=this.childXform,!0)}},{key:"parseText",value:function(g){this.parser&&this.parser.parseText(g)}},{key:"parseClose",value:function(g){if(this.parser){if(!this.parser.parseClose(g)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error("Max ".concat(this.childXform.tag," count (").concat(this.maxItems,") exceeded"));return!0}return!1}},{key:"reconcile",value:function(g,A){if(g){var m=this.childXform;g.forEach(function(y){m.reconcile(y,A)})}}}])}(a("./base-xform"));c.exports=h},{"./base-xform":32}],72:[function(a,c,u){var h=a("../../../utils/col-cache"),d=function(p){function g(){return Et(this,g),Er(this,g,arguments)}return nr(g,p),xt(g,[{key:"tag",get:function(){return"autoFilter"}},{key:"render",value:function(A,m){if(m)if(typeof m=="string")A.leafNode("autoFilter",{ref:m});else{var y=function(E){return typeof E=="string"?E:h.getAddress(E.row,E.column).address},b=y(m.from),I=y(m.to);b&&I&&A.leafNode("autoFilter",{ref:"".concat(b,":").concat(I)})}}},{key:"parseOpen",value:function(A){A.name==="autoFilter"&&(this.model=A.attributes.ref)}}])}(a("../base-xform"));c.exports=d},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(a,c,u){var h=a("../../../utils/utils"),d=a("../base-xform"),p=a("../../../doc/range"),g=a("../../../doc/enums"),A=a("../strings/rich-text-xform");function m(I){if(I==null)return g.ValueType.Null;if(I instanceof String||typeof I=="string")return g.ValueType.String;if(typeof I=="number")return g.ValueType.Number;if(typeof I=="boolean")return g.ValueType.Boolean;if(I instanceof Date)return g.ValueType.Date;if(I.text&&I.hyperlink)return g.ValueType.Hyperlink;if(I.formula)return g.ValueType.Formula;if(I.error)return g.ValueType.Error;throw new Error("I could not understand type of value")}function y(I){return I.type===g.ValueType.Formula?m(I.result):I.type}var b=function(I){function E(){var B;return Et(this,E),(B=Er(this,E)).richTextXForm=new A,B}return nr(E,I),xt(E,[{key:"tag",get:function(){return"c"}},{key:"prepare",value:function(B,S){var _=S.styles.addStyleModel(B.style||{},y(B));switch(_&&(B.styleId=_),B.comment&&S.comments.push(Za(Za({},B.comment),{},{ref:B.address})),B.type){case g.ValueType.String:case g.ValueType.RichText:S.sharedStrings&&(B.ssId=S.sharedStrings.add(B.value));break;case g.ValueType.Date:S.date1904&&(B.date1904=!0);break;case g.ValueType.Hyperlink:S.sharedStrings&&B.text!==void 0&&B.text!==null&&(B.ssId=S.sharedStrings.add(B.text)),S.hyperlinks.push({address:B.address,target:B.hyperlink,tooltip:B.tooltip});break;case g.ValueType.Merge:S.merges.add(B);break;case g.ValueType.Formula:if(S.date1904&&(B.date1904=!0),B.shareType==="shared"&&(B.si=S.siFormulae++),B.formula)S.formulae[B.address]=B;else if(B.sharedFormula){var D=S.formulae[B.sharedFormula];if(!D)throw new Error("Shared Formula master must exist above and or left of clone for cell ".concat(B.address));D.si===void 0?(D.shareType="shared",D.si=S.siFormulae++,D.range=new p(D.address,B.address)):D.range&&D.range.expandToAddress(B.address),B.si=D.si}}}},{key:"renderFormula",value:function(B,S){var _=null;switch(S.shareType){case"shared":_={t:"shared",ref:S.ref||S.range.range,si:S.si};break;case"array":_={t:"array",ref:S.ref};break;default:S.si!==void 0&&(_={t:"shared",si:S.si})}switch(m(S.result)){case g.ValueType.Null:B.leafNode("f",_,S.formula);break;case g.ValueType.String:B.addAttribute("t","str"),B.leafNode("f",_,S.formula),B.leafNode("v",null,S.result);break;case g.ValueType.Number:B.leafNode("f",_,S.formula),B.leafNode("v",null,S.result);break;case g.ValueType.Boolean:B.addAttribute("t","b"),B.leafNode("f",_,S.formula),B.leafNode("v",null,S.result?1:0);break;case g.ValueType.Error:B.addAttribute("t","e"),B.leafNode("f",_,S.formula),B.leafNode("v",null,S.result.error);break;case g.ValueType.Date:B.leafNode("f",_,S.formula),B.leafNode("v",null,h.dateToExcel(S.result,S.date1904));break;default:throw new Error("I could not understand type of value")}}},{key:"render",value:function(B,S){var _=this;if(S.type!==g.ValueType.Null||S.styleId){switch(B.openNode("c"),B.addAttribute("r",S.address),S.styleId&&B.addAttribute("s",S.styleId),S.type){case g.ValueType.Null:break;case g.ValueType.Number:B.leafNode("v",null,S.value);break;case g.ValueType.Boolean:B.addAttribute("t","b"),B.leafNode("v",null,S.value?"1":"0");break;case g.ValueType.Error:B.addAttribute("t","e"),B.leafNode("v",null,S.value.error);break;case g.ValueType.String:case g.ValueType.RichText:S.ssId!==void 0?(B.addAttribute("t","s"),B.leafNode("v",null,S.ssId)):S.value&&S.value.richText?(B.addAttribute("t","inlineStr"),B.openNode("is"),S.value.richText.forEach(function(D){_.richTextXForm.render(B,D)}),B.closeNode("is")):(B.addAttribute("t","str"),B.leafNode("v",null,S.value));break;case g.ValueType.Date:B.leafNode("v",null,h.dateToExcel(S.value,S.date1904));break;case g.ValueType.Hyperlink:S.ssId!==void 0?(B.addAttribute("t","s"),B.leafNode("v",null,S.ssId)):(B.addAttribute("t","str"),B.leafNode("v",null,S.text));break;case g.ValueType.Formula:this.renderFormula(B,S);case g.ValueType.Merge:}B.closeNode()}}},{key:"parseOpen",value:function(B){if(this.parser)return this.parser.parseOpen(B),!0;switch(B.name){case"c":return this.model={address:B.attributes.r},this.t=B.attributes.t,B.attributes.s&&(this.model.styleId=parseInt(B.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=B.attributes.si,this.model.shareType=B.attributes.t,this.model.ref=B.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(B),!0;default:return!1}}},{key:"parseText",value:function(B){if(this.parser)this.parser.parseText(B);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+B:B;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+B:B:this.model.value=this.model.value?this.model.value+B:B}}},{key:"parseClose",value:function(B){switch(B){case"c":var S=this.model;if(S.formula||S.shareType)S.type=g.ValueType.Formula,S.value&&(this.t==="str"?S.result=h.xmlDecode(S.value):this.t==="b"?S.result=parseInt(S.value,10)!==0:this.t==="e"?S.result={error:S.value}:S.result=parseFloat(S.value),S.value=void 0);else if(S.value!==void 0)switch(this.t){case"s":S.type=g.ValueType.String,S.value=parseInt(S.value,10);break;case"str":S.type=g.ValueType.String,S.value=h.xmlDecode(S.value);break;case"inlineStr":S.type=g.ValueType.String;break;case"b":S.type=g.ValueType.Boolean,S.value=parseInt(S.value,10)!==0;break;case"e":S.type=g.ValueType.Error,S.value={error:S.value};break;default:S.type=g.ValueType.Number,S.value=parseFloat(S.value)}else S.styleId?S.type=g.ValueType.Null:S.type=g.ValueType.Merge;return!1;case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(B),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(B),!0)}}},{key:"reconcile",value:function(B,S){var _=B.styleId&&S.styles&&S.styles.getStyleModel(B.styleId);switch(_&&(B.style=_),B.styleId!==void 0&&(B.styleId=void 0),B.type){case g.ValueType.String:typeof B.value=="number"&&S.sharedStrings&&(B.value=S.sharedStrings.getString(B.value)),B.value.richText&&(B.type=g.ValueType.RichText);break;case g.ValueType.Number:_&&h.isDateFmt(_.numFmt)&&(B.type=g.ValueType.Date,B.value=h.excelToDate(B.value,S.date1904));break;case g.ValueType.Formula:B.result!==void 0&&_&&h.isDateFmt(_.numFmt)&&(B.result=h.excelToDate(B.result,S.date1904)),B.shareType==="shared"&&(B.ref?S.formulae[B.si]=B.address:(B.sharedFormula=S.formulae[B.si],delete B.shareType),delete B.si)}var D=S.hyperlinkMap[B.address];D&&(B.type===g.ValueType.Formula?(B.text=B.result,B.result=void 0):(B.text=B.value,B.value=void 0),B.type=g.ValueType.Hyperlink,B.hyperlink=D);var T=S.commentsMap&&S.commentsMap[B.address];T&&(B.comment=T)}}])}(d);c.exports=b},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(a,c,u){var h=a("../../base-xform"),d=function(p){function g(){return Et(this,g),Er(this,g,arguments)}return nr(g,p),xt(g,[{key:"tag",get:function(){return"x14:cfIcon"}},{key:"render",value:function(A,m){A.leafNode(this.tag,{iconSet:m.iconSet,iconId:m.iconId})}},{key:"parseOpen",value:function(A){var m=A.attributes;this.model={iconSet:m.iconSet,iconId:h.toIntValue(m.iconId)}}},{key:"parseClose",value:function(A){return A!==this.tag}}])}(h);c.exports=d},{"../../base-xform":32}],75:[function(a,c,u){var h=a("uuid").v4,d=a("../../base-xform"),p=a("../../composite-xform"),g=a("./databar-ext-xform"),A=a("./icon-set-ext-xform"),m={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},y=function(b){function I(){var E;return Et(this,I),(E=Er(this,I)).map={"x14:dataBar":E.databarXform=new g,"x14:iconSet":E.iconSetXform=new A},E}return nr(I,b),xt(I,[{key:"tag",get:function(){return"x14:cfRule"}},{key:"prepare",value:function(E){I.isExt(E)&&(E.x14Id="{".concat(h(),"}").toUpperCase())}},{key:"render",value:function(E,B){if(I.isExt(B))switch(B.type){case"dataBar":this.renderDataBar(E,B);break;case"iconSet":this.renderIconSet(E,B)}}},{key:"renderDataBar",value:function(E,B){E.openNode(this.tag,{type:"dataBar",id:B.x14Id}),this.databarXform.render(E,B),E.closeNode()}},{key:"renderIconSet",value:function(E,B){E.openNode(this.tag,{type:"iconSet",priority:B.priority,id:B.x14Id||"{".concat(h(),"}")}),this.iconSetXform.render(E,B),E.closeNode()}},{key:"createNewModel",value:function(E){var B=E.attributes;return{type:B.type,x14Id:B.id,priority:d.toIntValue(B.priority)}}},{key:"onParserClose",value:function(E,B){Object.assign(this.model,B.model)}}],[{key:"isExt",value:function(E){return E.type==="dataBar"?g.isExt(E):!(E.type!=="iconSet"||!E.custom&&!m[E.iconSet])}}])}(p);c.exports=y},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(a,c,u){var h=a("../../composite-xform"),d=a("./f-ext-xform"),p=function(g){function A(){var m;return Et(this,A),(m=Er(this,A)).map={"xm:f":m.fExtXform=new d},m}return nr(A,g),xt(A,[{key:"tag",get:function(){return"x14:cfvo"}},{key:"render",value:function(m,y){m.openNode(this.tag,{type:y.type}),y.value!==void 0&&this.fExtXform.render(m,y.value),m.closeNode()}},{key:"createNewModel",value:function(m){return{type:m.attributes.type}}},{key:"onParserClose",value:function(m,y){m==="xm:f"&&(this.model.value=y.model?parseFloat(y.model):0)}}])}(h);c.exports=p},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(a,c,u){var h=a("../../composite-xform"),d=a("./sqref-ext-xform"),p=a("./cf-rule-ext-xform"),g=function(A){function m(){var y;return Et(this,m),(y=Er(this,m)).map={"xm:sqref":y.sqRef=new d,"x14:cfRule":y.cfRule=new p},y}return nr(m,A),xt(m,[{key:"tag",get:function(){return"x14:conditionalFormatting"}},{key:"prepare",value:function(y,b){var I=this;y.rules.forEach(function(E){I.cfRule.prepare(E,b)})}},{key:"render",value:function(y,b){var I=this;b.rules.some(p.isExt)&&(y.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),b.rules.filter(p.isExt).forEach(function(E){return I.cfRule.render(y,E)}),this.sqRef.render(y,b.ref),y.closeNode())}},{key:"createNewModel",value:function(){return{rules:[]}}},{key:"onParserClose",value:function(y,b){switch(y){case"xm:sqref":this.model.ref=b.model;break;case"x14:cfRule":this.model.rules.push(b.model)}}}])}(h);c.exports=g},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(a,c,u){var h=a("../../composite-xform"),d=a("./cf-rule-ext-xform"),p=a("./conditional-formatting-ext-xform"),g=function(A){function m(){var y;return Et(this,m),(y=Er(this,m)).map={"x14:conditionalFormatting":y.cfXform=new p},y}return nr(m,A),xt(m,[{key:"tag",get:function(){return"x14:conditionalFormattings"}},{key:"hasContent",value:function(y){return y.hasExtContent===void 0&&(y.hasExtContent=y.some(function(b){return b.rules.some(d.isExt)})),y.hasExtContent}},{key:"prepare",value:function(y,b){var I=this;y.forEach(function(E){I.cfXform.prepare(E,b)})}},{key:"render",value:function(y,b){var I=this;this.hasContent(b)&&(y.openNode(this.tag),b.forEach(function(E){return I.cfXform.render(y,E)}),y.closeNode())}},{key:"createNewModel",value:function(){return[]}},{key:"onParserClose",value:function(y,b){this.model.push(b.model)}}])}(h);c.exports=g},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(a,c,u){var h=a("../../base-xform"),d=a("../../composite-xform"),p=a("../../style/color-xform"),g=a("./cfvo-ext-xform"),A=function(m){function y(){var b;return Et(this,y),(b=Er(this,y)).map={"x14:cfvo":b.cfvoXform=new g,"x14:borderColor":b.borderColorXform=new p("x14:borderColor"),"x14:negativeBorderColor":b.negativeBorderColorXform=new p("x14:negativeBorderColor"),"x14:negativeFillColor":b.negativeFillColorXform=new p("x14:negativeFillColor"),"x14:axisColor":b.axisColorXform=new p("x14:axisColor")},b}return nr(y,m),xt(y,[{key:"tag",get:function(){return"x14:dataBar"}},{key:"render",value:function(b,I){var E=this;b.openNode(this.tag,{minLength:h.toIntAttribute(I.minLength,0,!0),maxLength:h.toIntAttribute(I.maxLength,100,!0),border:h.toBoolAttribute(I.border,!1),gradient:h.toBoolAttribute(I.gradient,!0),negativeBarColorSameAsPositive:h.toBoolAttribute(I.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:h.toBoolAttribute(I.negativeBarBorderColorSameAsPositive,!0),axisPosition:h.toAttribute(I.axisPosition,"auto"),direction:h.toAttribute(I.direction,"leftToRight")}),I.cfvo.forEach(function(B){E.cfvoXform.render(b,B)}),this.borderColorXform.render(b,I.borderColor),this.negativeBorderColorXform.render(b,I.negativeBorderColor),this.negativeFillColorXform.render(b,I.negativeFillColor),this.axisColorXform.render(b,I.axisColor),b.closeNode()}},{key:"createNewModel",value:function(b){var I=b.attributes;return{cfvo:[],minLength:h.toIntValue(I.minLength,0),maxLength:h.toIntValue(I.maxLength,100),border:h.toBoolValue(I.border,!1),gradient:h.toBoolValue(I.gradient,!0),negativeBarColorSameAsPositive:h.toBoolValue(I.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:h.toBoolValue(I.negativeBarBorderColorSameAsPositive,!0),axisPosition:h.toStringValue(I.axisPosition,"auto"),direction:h.toStringValue(I.direction,"leftToRight")}}},{key:"onParserClose",value:function(b,I){var E=En(b.split(":"),2)[1];E==="cfvo"?this.model.cfvo.push(I.model):this.model[E]=I.model}}],[{key:"isExt",value:function(b){return!b.gradient}}])}(d);c.exports=A},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"xm:f"}},{key:"render",value:function(g,A){g.leafNode(this.tag,null,A)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(g){this.model+=g}},{key:"parseClose",value:function(g){return g!==this.tag}}])}(a("../../base-xform"));c.exports=h},{"../../base-xform":32}],81:[function(a,c,u){var h=a("../../base-xform"),d=a("../../composite-xform"),p=a("./cfvo-ext-xform"),g=a("./cf-icon-ext-xform"),A=function(m){function y(){var b;return Et(this,y),(b=Er(this,y)).map={"x14:cfvo":b.cfvoXform=new p,"x14:cfIcon":b.cfIconXform=new g},b}return nr(y,m),xt(y,[{key:"tag",get:function(){return"x14:iconSet"}},{key:"render",value:function(b,I){var E=this;b.openNode(this.tag,{iconSet:h.toStringAttribute(I.iconSet),reverse:h.toBoolAttribute(I.reverse,!1),showValue:h.toBoolAttribute(I.showValue,!0),custom:h.toBoolAttribute(I.icons,!1)}),I.cfvo.forEach(function(B){E.cfvoXform.render(b,B)}),I.icons&&I.icons.forEach(function(B,S){B.iconId=S,E.cfIconXform.render(b,B)}),b.closeNode()}},{key:"createNewModel",value:function(b){var I=b.attributes;return{cfvo:[],iconSet:h.toStringValue(I.iconSet,"3TrafficLights"),reverse:h.toBoolValue(I.reverse,!1),showValue:h.toBoolValue(I.showValue,!0)}}},{key:"onParserClose",value:function(b,I){var E=En(b.split(":"),2)[1];switch(E){case"cfvo":this.model.cfvo.push(I.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(I.model);break;default:this.model[E]=I.model}}}])}(d);c.exports=A},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"xm:sqref"}},{key:"render",value:function(g,A){g.leafNode(this.tag,null,A)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(g){this.model+=g}},{key:"parseClose",value:function(g){return g!==this.tag}}])}(a("../../base-xform"));c.exports=h},{"../../base-xform":32}],83:[function(a,c,u){var h=a("../../base-xform"),d=a("../../composite-xform"),p=a("../../../../doc/range"),g=a("./databar-xform"),A=a("./ext-lst-ref-xform"),m=a("./formula-xform"),y=a("./color-scale-xform"),b=a("./icon-set-xform"),I={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},E=function(D){if(D.formulae&&D.formulae[0])return D.formulae[0];var T=new p(D.ref).tl;switch(D.operator){case"containsText":return'NOT(ISERROR(SEARCH("'.concat(D.text,'",').concat(T,")))");case"containsBlanks":return"LEN(TRIM(".concat(T,"))=0");case"notContainsBlanks":return"LEN(TRIM(".concat(T,"))>0");case"containsErrors":return"ISERROR(".concat(T,")");case"notContainsErrors":return"NOT(ISERROR(".concat(T,"))");default:return}},B=function(D){if(D.formulae&&D.formulae[0])return D.formulae[0];var T=new p(D.ref).tl;switch(D.timePeriod){case"thisWeek":return"AND(TODAY()-ROUNDDOWN(".concat(T,",0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(").concat(T,",0)-TODAY()<=7-WEEKDAY(TODAY()))");case"lastWeek":return"AND(TODAY()-ROUNDDOWN(".concat(T,",0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(").concat(T,",0)<(WEEKDAY(TODAY())+7))");case"nextWeek":return"AND(ROUNDDOWN(".concat(T,",0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(").concat(T,",0)-TODAY()<(15-WEEKDAY(TODAY())))");case"yesterday":return"FLOOR(".concat(T,",1)=TODAY()-1");case"today":return"FLOOR(".concat(T,",1)=TODAY()");case"tomorrow":return"FLOOR(".concat(T,",1)=TODAY()+1");case"last7Days":return"AND(TODAY()-FLOOR(".concat(T,",1)<=6,FLOOR(").concat(T,",1)<=TODAY())");case"lastMonth":return"AND(MONTH(".concat(T,")=MONTH(EDATE(TODAY(),0-1)),YEAR(").concat(T,")=YEAR(EDATE(TODAY(),0-1)))");case"thisMonth":return"AND(MONTH(".concat(T,")=MONTH(TODAY()),YEAR(").concat(T,")=YEAR(TODAY()))");case"nextMonth":return"AND(MONTH(".concat(T,")=MONTH(EDATE(TODAY(),0+1)),YEAR(").concat(T,")=YEAR(EDATE(TODAY(),0+1)))");default:return}},S=function(D){var T=D.type,F=D.operator;switch(T){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:T};default:return{type:T,operator:F}}},_=function(D){function T(){var F;return Et(this,T),(F=Er(this,T)).map={dataBar:F.databarXform=new g,extLst:F.extLstRefXform=new A,formula:F.formulaXform=new m,colorScale:F.colorScaleXform=new y,iconSet:F.iconSetXform=new b},F}return nr(T,D),xt(T,[{key:"tag",get:function(){return"cfRule"}},{key:"render",value:function(F,N){switch(N.type){case"expression":this.renderExpression(F,N);break;case"cellIs":this.renderCellIs(F,N);break;case"top10":this.renderTop10(F,N);break;case"aboveAverage":this.renderAboveAverage(F,N);break;case"dataBar":this.renderDataBar(F,N);break;case"colorScale":this.renderColorScale(F,N);break;case"iconSet":this.renderIconSet(F,N);break;case"containsText":this.renderText(F,N);break;case"timePeriod":this.renderTimePeriod(F,N)}}},{key:"renderExpression",value:function(F,N){F.openNode(this.tag,{type:"expression",dxfId:N.dxfId,priority:N.priority}),this.formulaXform.render(F,N.formulae[0]),F.closeNode()}},{key:"renderCellIs",value:function(F,N){var H=this;F.openNode(this.tag,{type:"cellIs",dxfId:N.dxfId,priority:N.priority,operator:N.operator}),N.formulae.forEach(function(W){H.formulaXform.render(F,W)}),F.closeNode()}},{key:"renderTop10",value:function(F,N){F.leafNode(this.tag,{type:"top10",dxfId:N.dxfId,priority:N.priority,percent:h.toBoolAttribute(N.percent,!1),bottom:h.toBoolAttribute(N.bottom,!1),rank:h.toIntValue(N.rank,10,!0)})}},{key:"renderAboveAverage",value:function(F,N){F.leafNode(this.tag,{type:"aboveAverage",dxfId:N.dxfId,priority:N.priority,aboveAverage:h.toBoolAttribute(N.aboveAverage,!0)})}},{key:"renderDataBar",value:function(F,N){F.openNode(this.tag,{type:"dataBar",priority:N.priority}),this.databarXform.render(F,N),this.extLstRefXform.render(F,N),F.closeNode()}},{key:"renderColorScale",value:function(F,N){F.openNode(this.tag,{type:"colorScale",priority:N.priority}),this.colorScaleXform.render(F,N),F.closeNode()}},{key:"renderIconSet",value:function(F,N){T.isPrimitive(N)&&(F.openNode(this.tag,{type:"iconSet",priority:N.priority}),this.iconSetXform.render(F,N),F.closeNode())}},{key:"renderText",value:function(F,N){F.openNode(this.tag,{type:N.operator,dxfId:N.dxfId,priority:N.priority,operator:h.toStringAttribute(N.operator,"containsText")});var H=E(N);H&&this.formulaXform.render(F,H),F.closeNode()}},{key:"renderTimePeriod",value:function(F,N){F.openNode(this.tag,{type:"timePeriod",dxfId:N.dxfId,priority:N.priority,timePeriod:N.timePeriod});var H=B(N);H&&this.formulaXform.render(F,H),F.closeNode()}},{key:"createNewModel",value:function(F){var N=F.attributes;return Za(Za({},S(N)),{},{dxfId:h.toIntValue(N.dxfId),priority:h.toIntValue(N.priority),timePeriod:N.timePeriod,percent:h.toBoolValue(N.percent),bottom:h.toBoolValue(N.bottom),rank:h.toIntValue(N.rank),aboveAverage:h.toBoolValue(N.aboveAverage)})}},{key:"onParserClose",value:function(F,N){switch(F){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,N.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(N.model)}}}],[{key:"isPrimitive",value:function(F){return F.type!=="iconSet"||!F.custom&&!I[F.iconSet]}}])}(d);c.exports=_},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(a,c,u){var h=a("../../base-xform"),d=function(p){function g(){return Et(this,g),Er(this,g,arguments)}return nr(g,p),xt(g,[{key:"tag",get:function(){return"cfvo"}},{key:"render",value:function(A,m){A.leafNode(this.tag,{type:m.type,val:m.value})}},{key:"parseOpen",value:function(A){this.model={type:A.attributes.type,value:h.toFloatValue(A.attributes.val)}}},{key:"parseClose",value:function(A){return A!==this.tag}}])}(h);c.exports=d},{"../../base-xform":32}],85:[function(a,c,u){var h=a("../../composite-xform"),d=a("../../style/color-xform"),p=a("./cfvo-xform"),g=function(A){function m(){var y;return Et(this,m),(y=Er(this,m)).map={cfvo:y.cfvoXform=new p,color:y.colorXform=new d},y}return nr(m,A),xt(m,[{key:"tag",get:function(){return"colorScale"}},{key:"render",value:function(y,b){var I=this;y.openNode(this.tag),b.cfvo.forEach(function(E){I.cfvoXform.render(y,E)}),b.color.forEach(function(E){I.colorXform.render(y,E)}),y.closeNode()}},{key:"createNewModel",value:function(y){return{cfvo:[],color:[]}}},{key:"onParserClose",value:function(y,b){this.model[y].push(b.model)}}])}(h);c.exports=g},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(a,c,u){var h=a("../../composite-xform"),d=a("./cf-rule-xform"),p=function(g){function A(){var m;return Et(this,A),(m=Er(this,A)).map={cfRule:new d},m}return nr(A,g),xt(A,[{key:"tag",get:function(){return"conditionalFormatting"}},{key:"render",value:function(m,y){var b=this;y.rules.some(d.isPrimitive)&&(m.openNode(this.tag,{sqref:y.ref}),y.rules.forEach(function(I){d.isPrimitive(I)&&(I.ref=y.ref,b.map.cfRule.render(m,I))}),m.closeNode())}},{key:"createNewModel",value:function(m){return{ref:m.attributes.sqref,rules:[]}}},{key:"onParserClose",value:function(m,y){this.model.rules.push(y.model)}}])}(h);c.exports=p},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(a,c,u){var h=a("../../base-xform"),d=a("./conditional-formatting-xform"),p=function(g){function A(){var m;return Et(this,A),(m=Er(this,A)).cfXform=new d,m}return nr(A,g),xt(A,[{key:"tag",get:function(){return"conditionalFormatting"}},{key:"reset",value:function(){this.model=[]}},{key:"prepare",value:function(m,y){var b=m.reduce(function(I,E){return Math.max.apply(Math,[I].concat(Ni(E.rules.map(function(B){return B.priority||0}))))},1);m.forEach(function(I){I.rules.forEach(function(E){E.priority||(E.priority=b++),E.style&&(E.dxfId=y.styles.addDxfStyle(E.style))})})}},{key:"render",value:function(m,y){var b=this;y.forEach(function(I){b.cfXform.render(m,I)})}},{key:"parseOpen",value:function(m){return this.parser?(this.parser.parseOpen(m),!0):m.name==="conditionalFormatting"&&(this.parser=this.cfXform,this.parser.parseOpen(m),!0)}},{key:"parseText",value:function(m){this.parser&&this.parser.parseText(m)}},{key:"parseClose",value:function(m){return!(!this.parser||!this.parser.parseClose(m)&&(this.model.push(this.parser.model),this.parser=void 0,1))}},{key:"reconcile",value:function(m,y){m.forEach(function(b){b.rules.forEach(function(I){I.dxfId!==void 0&&(I.style=y.styles.getDxfStyle(I.dxfId),delete I.dxfId)})})}}])}(h);c.exports=p},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(a,c,u){var h=a("../../composite-xform"),d=a("../../style/color-xform"),p=a("./cfvo-xform"),g=function(A){function m(){var y;return Et(this,m),(y=Er(this,m)).map={cfvo:y.cfvoXform=new p,color:y.colorXform=new d},y}return nr(m,A),xt(m,[{key:"tag",get:function(){return"dataBar"}},{key:"render",value:function(y,b){var I=this;y.openNode(this.tag),b.cfvo.forEach(function(E){I.cfvoXform.render(y,E)}),this.colorXform.render(y,b.color),y.closeNode()}},{key:"createNewModel",value:function(){return{cfvo:[]}}},{key:"onParserClose",value:function(y,b){switch(y){case"cfvo":this.model.cfvo.push(b.model);break;case"color":this.model.color=b.model}}}])}(h);c.exports=g},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(a,c,u){var h=a("../../base-xform"),d=a("../../composite-xform"),p=function(m){function y(){return Et(this,y),Er(this,y,arguments)}return nr(y,m),xt(y,[{key:"tag",get:function(){return"x14:id"}},{key:"render",value:function(b,I){b.leafNode(this.tag,null,I)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(b){this.model+=b}},{key:"parseClose",value:function(b){return b!==this.tag}}])}(h),g=function(m){function y(){var b;return Et(this,y),(b=Er(this,y)).map={"x14:id":b.idXform=new p},b}return nr(y,m),xt(y,[{key:"tag",get:function(){return"ext"}},{key:"render",value:function(b,I){b.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(b,I.x14Id),b.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(b,I){this.model.x14Id=I.model}}])}(d),A=function(m){function y(){var b;return Et(this,y),(b=Er(this,y)).map={ext:new g},b}return nr(y,m),xt(y,[{key:"tag",get:function(){return"extLst"}},{key:"render",value:function(b,I){b.openNode(this.tag),this.map.ext.render(b,I),b.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(b,I){Object.assign(this.model,I.model)}}])}(d);c.exports=A},{"../../base-xform":32,"../../composite-xform":48}],90:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"formula"}},{key:"render",value:function(g,A){g.leafNode(this.tag,null,A)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(g){this.model+=g}},{key:"parseClose",value:function(g){return g!==this.tag}}])}(a("../../base-xform"));c.exports=h},{"../../base-xform":32}],91:[function(a,c,u){var h=a("../../base-xform"),d=a("../../composite-xform"),p=a("./cfvo-xform"),g=function(A){function m(){var y;return Et(this,m),(y=Er(this,m)).map={cfvo:y.cfvoXform=new p},y}return nr(m,A),xt(m,[{key:"tag",get:function(){return"iconSet"}},{key:"render",value:function(y,b){var I=this;y.openNode(this.tag,{iconSet:h.toStringAttribute(b.iconSet,"3TrafficLights"),reverse:h.toBoolAttribute(b.reverse,!1),showValue:h.toBoolAttribute(b.showValue,!0)}),b.cfvo.forEach(function(E){I.cfvoXform.render(y,E)}),y.closeNode()}},{key:"createNewModel",value:function(y){var b=y.attributes;return{iconSet:h.toStringValue(b.iconSet,"3TrafficLights"),reverse:h.toBoolValue(b.reverse),showValue:h.toBoolValue(b.showValue),cfvo:[]}}},{key:"onParserClose",value:function(y,b){this.model[y].push(b.model)}}])}(d);c.exports=g},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(a,c,u){var h=a("../../../utils/utils"),d=function(p){function g(){return Et(this,g),Er(this,g,arguments)}return nr(g,p),xt(g,[{key:"tag",get:function(){return"col"}},{key:"prepare",value:function(A,m){var y=m.styles.addStyleModel(A.style||{});y&&(A.styleId=y)}},{key:"render",value:function(A,m){A.openNode("col"),A.addAttribute("min",m.min),A.addAttribute("max",m.max),m.width&&A.addAttribute("width",m.width),m.styleId&&A.addAttribute("style",m.styleId),m.hidden&&A.addAttribute("hidden","1"),m.bestFit&&A.addAttribute("bestFit","1"),m.outlineLevel&&A.addAttribute("outlineLevel",m.outlineLevel),m.collapsed&&A.addAttribute("collapsed","1"),A.addAttribute("customWidth","1"),A.closeNode()}},{key:"parseOpen",value:function(A){if(A.name==="col"){var m=this.model={min:parseInt(A.attributes.min||"0",10),max:parseInt(A.attributes.max||"0",10),width:A.attributes.width===void 0?void 0:parseFloat(A.attributes.width||"0")};return A.attributes.style&&(m.styleId=parseInt(A.attributes.style,10)),h.parseBoolean(A.attributes.hidden)&&(m.hidden=!0),h.parseBoolean(A.attributes.bestFit)&&(m.bestFit=!0),A.attributes.outlineLevel&&(m.outlineLevel=parseInt(A.attributes.outlineLevel,10)),h.parseBoolean(A.attributes.collapsed)&&(m.collapsed=!0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"reconcile",value:function(A,m){A.styleId&&(A.style=m.styles.getStyleModel(A.styleId))}}])}(a("../base-xform"));c.exports=d},{"../../../utils/utils":27,"../base-xform":32}],93:[function(a,c,u){var h=a("../../../utils/under-dash"),d=a("../../../utils/utils"),p=a("../../../utils/col-cache"),g=a("../base-xform"),A=a("../../../doc/range");function m(E,B,S,_){var D=B[S];D!==void 0?E[S]=D:_!==void 0&&(E[S]=_)}function y(E,B,S,_){var D=B[S];D!==void 0&&(E[S]=d.parseBoolean(D))}function b(E){var B=h.map(E,function(D,T){return{address:T,dataValidation:D,marked:!1}}).sort(function(D,T){return h.strcmp(D.address,T.address)}),S=h.keyBy(B,"address"),_=function(D,T,F){for(var N=0;N1||H>1){var te=T.row+(F-1),ue=T.col+(H-1);return Za(Za({},D.dataValidation),{},{sqref:"".concat(D.address,":").concat(p.encodeAddress(te,ue))})}return Za(Za({},D.dataValidation),{},{sqref:D.address})}return null}).filter(Boolean)}var I=function(E){function B(){return Et(this,B),Er(this,B,arguments)}return nr(B,E),xt(B,[{key:"tag",get:function(){return"dataValidations"}},{key:"render",value:function(S,_){var D=b(_);D.length&&(S.openNode("dataValidations",{count:D.length}),D.forEach(function(T){S.openNode("dataValidation"),T.type!=="any"&&(S.addAttribute("type",T.type),T.operator&&T.type!=="list"&&T.operator!=="between"&&S.addAttribute("operator",T.operator),T.allowBlank&&S.addAttribute("allowBlank","1")),T.showInputMessage&&S.addAttribute("showInputMessage","1"),T.promptTitle&&S.addAttribute("promptTitle",T.promptTitle),T.prompt&&S.addAttribute("prompt",T.prompt),T.showErrorMessage&&S.addAttribute("showErrorMessage","1"),T.errorStyle&&S.addAttribute("errorStyle",T.errorStyle),T.errorTitle&&S.addAttribute("errorTitle",T.errorTitle),T.error&&S.addAttribute("error",T.error),S.addAttribute("sqref",T.sqref),(T.formulae||[]).forEach(function(F,N){S.openNode("formula".concat(N+1)),T.type==="date"?S.writeText(d.dateToExcel(new Date(F))):S.writeText(F),S.closeNode()}),S.closeNode()}),S.closeNode())}},{key:"parseOpen",value:function(S){switch(S.name){case"dataValidations":return this.model={},!0;case"dataValidation":this._address=S.attributes.sqref;var _={type:S.attributes.type||"any",formulae:[]};switch(S.attributes.type&&y(_,S.attributes,"allowBlank"),y(_,S.attributes,"showInputMessage"),y(_,S.attributes,"showErrorMessage"),_.type){case"any":case"list":case"custom":break;default:m(_,S.attributes,"operator","between")}return m(_,S.attributes,"promptTitle"),m(_,S.attributes,"prompt"),m(_,S.attributes,"errorStyle"),m(_,S.attributes,"errorTitle"),m(_,S.attributes,"error"),this._dataValidation=_,!0;case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}},{key:"parseText",value:function(S){this._formula&&this._formula.push(S)}},{key:"parseClose",value:function(S){var _=this;switch(S){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(function(T){T.includes(":")?new A(T).forEachAddress(function(F){_.model[F]=_._dataValidation}):_.model[T]=_._dataValidation}),!0;case"formula1":case"formula2":var D=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":D=parseInt(D,10);break;case"decimal":D=parseFloat(D);break;case"date":D=d.excelToDate(parseFloat(D))}return this._dataValidation.formulae.push(D),this._formula=void 0,!0;default:return!0}}}])}(g);c.exports=I},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"dimension"}},{key:"render",value:function(g,A){A&&g.leafNode("dimension",{ref:A})}},{key:"parseOpen",value:function(g){return g.name==="dimension"&&(this.model=g.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],95:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"drawing"}},{key:"render",value:function(g,A){A&&g.leafNode(this.tag,{"r:id":A.rId})}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.model={rId:g.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],96:[function(a,c,u){var h=a("../composite-xform"),d=a("./cf-ext/conditional-formattings-ext-xform"),p=function(A){function m(){var y;return Et(this,m),(y=Er(this,m)).map={"x14:conditionalFormattings":y.conditionalFormattings=new d},y}return nr(m,A),xt(m,[{key:"tag",get:function(){return"ext"}},{key:"hasContent",value:function(y){return this.conditionalFormattings.hasContent(y.conditionalFormattings)}},{key:"prepare",value:function(y,b){this.conditionalFormattings.prepare(y.conditionalFormattings,b)}},{key:"render",value:function(y,b){y.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(y,b.conditionalFormattings),y.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(y,b){this.model[y]=b.model}}])}(h),g=function(A){function m(){var y;return Et(this,m),(y=Er(this,m)).map={ext:y.ext=new p},y}return nr(m,A),xt(m,[{key:"tag",get:function(){return"extLst"}},{key:"prepare",value:function(y,b){this.ext.prepare(y,b)}},{key:"hasContent",value:function(y){return this.ext.hasContent(y)}},{key:"render",value:function(y,b){this.hasContent(b)&&(y.openNode("extLst"),this.ext.render(y,b),y.closeNode())}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(y,b){Object.assign(this.model,b.model)}}])}(h);c.exports=g},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"headerFooter"}},{key:"render",value:function(g,A){if(A){g.addRollback();var m=!1;g.openNode("headerFooter"),A.differentFirst&&(g.addAttribute("differentFirst","1"),m=!0),A.differentOddEven&&(g.addAttribute("differentOddEven","1"),m=!0),A.oddHeader&&typeof A.oddHeader=="string"&&(g.leafNode("oddHeader",null,A.oddHeader),m=!0),A.oddFooter&&typeof A.oddFooter=="string"&&(g.leafNode("oddFooter",null,A.oddFooter),m=!0),A.evenHeader&&typeof A.evenHeader=="string"&&(g.leafNode("evenHeader",null,A.evenHeader),m=!0),A.evenFooter&&typeof A.evenFooter=="string"&&(g.leafNode("evenFooter",null,A.evenFooter),m=!0),A.firstHeader&&typeof A.firstHeader=="string"&&(g.leafNode("firstHeader",null,A.firstHeader),m=!0),A.firstFooter&&typeof A.firstFooter=="string"&&(g.leafNode("firstFooter",null,A.firstFooter),m=!0),m?(g.closeNode(),g.commit()):g.rollback()}}},{key:"parseOpen",value:function(g){switch(g.name){case"headerFooter":return this.model={},g.attributes.differentFirst&&(this.model.differentFirst=parseInt(g.attributes.differentFirst,0)===1),g.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(g.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}},{key:"parseText",value:function(g){switch(this.currentNode){case"oddHeader":this.model.oddHeader=g;break;case"oddFooter":this.model.oddFooter=g;break;case"evenHeader":this.model.evenHeader=g;break;case"evenFooter":this.model.evenFooter=g;break;case"firstHeader":this.model.firstHeader=g;break;case"firstFooter":this.model.firstFooter=g}}},{key:"parseClose",value:function(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],98:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"hyperlink"}},{key:"render",value:function(g,A){this.isInternalLink(A)?g.leafNode("hyperlink",{ref:A.address,"r:id":A.rId,tooltip:A.tooltip,location:A.target}):g.leafNode("hyperlink",{ref:A.address,"r:id":A.rId,tooltip:A.tooltip})}},{key:"parseOpen",value:function(g){return g.name==="hyperlink"&&(this.model={address:g.attributes.ref,rId:g.attributes["r:id"],tooltip:g.attributes.tooltip},g.attributes.location&&(this.model.target=g.attributes.location),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"isInternalLink",value:function(g){return g.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(g.target)}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],99:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"mergeCell"}},{key:"render",value:function(g,A){g.leafNode("mergeCell",{ref:A})}},{key:"parseOpen",value:function(g){return g.name==="mergeCell"&&(this.model=g.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],100:[function(a,c,u){var h=a("../../../utils/under-dash"),d=a("../../../doc/range"),p=a("../../../utils/col-cache"),g=a("../../../doc/enums"),A=function(){function m(){Et(this,m),this.merges={}}return xt(m,[{key:"add",value:function(y){if(this.merges[y.master])this.merges[y.master].expandToAddress(y.address);else{var b="".concat(y.master,":").concat(y.address);this.merges[y.master]=new d(b)}}},{key:"mergeCells",get:function(){return h.map(this.merges,function(y){return y.range})}},{key:"reconcile",value:function(y,b){h.each(y,function(I){for(var E=p.decode(I),B=E.top;B<=E.bottom;B++)for(var S=b[B-1],_=E.left;_<=E.right;_++){var D=S.cells[_-1];D?D.type===g.ValueType.Merge&&(D.master=E.tl):S.cells[_]={type:g.ValueType.Null,address:p.encodeAddress(B,_)}}})}},{key:"getMasterAddress",value:function(y){var b=this.hash[y];return b&&b.tl}}])}();c.exports=A},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(a,c,u){var h=a("../base-xform"),d=function(g){return g!==void 0},p=function(g){function A(){return Et(this,A),Er(this,A,arguments)}return nr(A,g),xt(A,[{key:"tag",get:function(){return"outlinePr"}},{key:"render",value:function(m,y){return!(!y||!d(y.summaryBelow)&&!d(y.summaryRight)||(m.leafNode(this.tag,{summaryBelow:d(y.summaryBelow)?Number(y.summaryBelow):void 0,summaryRight:d(y.summaryRight)?Number(y.summaryRight):void 0}),0))}},{key:"parseOpen",value:function(m){return m.name===this.tag&&(this.model={summaryBelow:d(m.attributes.summaryBelow)?!!Number(m.attributes.summaryBelow):void 0,summaryRight:d(m.attributes.summaryRight)?!!Number(m.attributes.summaryRight):void 0},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(h);c.exports=p},{"../base-xform":32}],102:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"brk"}},{key:"render",value:function(g,A){g.leafNode("brk",A)}},{key:"parseOpen",value:function(g){return g.name==="brk"&&(this.model=g.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],103:[function(a,c,u){var h=a("../../../utils/under-dash"),d=function(p){function g(){return Et(this,g),Er(this,g,arguments)}return nr(g,p),xt(g,[{key:"tag",get:function(){return"pageMargins"}},{key:"render",value:function(A,m){if(m){var y={left:m.left,right:m.right,top:m.top,bottom:m.bottom,header:m.header,footer:m.footer};h.some(y,function(b){return b!==void 0})&&A.leafNode(this.tag,y)}}},{key:"parseOpen",value:function(A){return A.name===this.tag&&(this.model={left:parseFloat(A.attributes.left||.7),right:parseFloat(A.attributes.right||.7),top:parseFloat(A.attributes.top||.75),bottom:parseFloat(A.attributes.bottom||.75),header:parseFloat(A.attributes.header||.3),footer:parseFloat(A.attributes.footer||.3)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=d},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"pageSetUpPr"}},{key:"render",value:function(g,A){return!(!A||!A.fitToPage||(g.leafNode(this.tag,{fitToPage:A.fitToPage?"1":void 0}),0))}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.model={fitToPage:g.attributes.fitToPage==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],105:[function(a,c,u){var h=a("../../../utils/under-dash");function d(b){return b?"1":void 0}function p(b){if(b==="overThenDown")return b}function g(b){switch(b){case"atEnd":case"asDisplyed":return b;default:return}}function A(b){switch(b){case"dash":case"blank":case"NA":return b;default:return}}function m(b){return b!==void 0?parseInt(b,10):void 0}var y=function(b){function I(){return Et(this,I),Er(this,I,arguments)}return nr(I,b),xt(I,[{key:"tag",get:function(){return"pageSetup"}},{key:"render",value:function(E,B){if(B){var S={paperSize:B.paperSize,orientation:B.orientation,horizontalDpi:B.horizontalDpi,verticalDpi:B.verticalDpi,pageOrder:p(B.pageOrder),blackAndWhite:d(B.blackAndWhite),draft:d(B.draft),cellComments:g(B.cellComments),errors:A(B.errors),scale:B.scale,fitToWidth:B.fitToWidth,fitToHeight:B.fitToHeight,firstPageNumber:B.firstPageNumber,useFirstPageNumber:d(B.firstPageNumber),usePrinterDefaults:d(B.usePrinterDefaults),copies:B.copies};h.some(S,function(_){return _!==void 0})&&E.leafNode(this.tag,S)}}},{key:"parseOpen",value:function(E){return E.name===this.tag&&(this.model={paperSize:m(E.attributes.paperSize),orientation:E.attributes.orientation||"portrait",horizontalDpi:parseInt(E.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(E.attributes.verticalDpi||"4294967295",10),pageOrder:E.attributes.pageOrder||"downThenOver",blackAndWhite:E.attributes.blackAndWhite==="1",draft:E.attributes.draft==="1",cellComments:E.attributes.cellComments||"None",errors:E.attributes.errors||"displayed",scale:parseInt(E.attributes.scale||"100",10),fitToWidth:parseInt(E.attributes.fitToWidth||"1",10),fitToHeight:parseInt(E.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(E.attributes.firstPageNumber||"1",10),useFirstPageNumber:E.attributes.useFirstPageNumber==="1",usePrinterDefaults:E.attributes.usePrinterDefaults==="1",copies:parseInt(E.attributes.copies||"1",10)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=y},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"picture"}},{key:"render",value:function(g,A){A&&g.leafNode(this.tag,{"r:id":A.rId})}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.model={rId:g.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],107:[function(a,c,u){var h=a("../../../utils/under-dash");function d(g){return g?"1":void 0}var p=function(g){function A(){return Et(this,A),Er(this,A,arguments)}return nr(A,g),xt(A,[{key:"tag",get:function(){return"printOptions"}},{key:"render",value:function(m,y){if(y){var b={headings:d(y.showRowColHeaders),gridLines:d(y.showGridLines),horizontalCentered:d(y.horizontalCentered),verticalCentered:d(y.verticalCentered)};h.some(b,function(I){return I!==void 0})&&m.leafNode(this.tag,b)}}},{key:"parseOpen",value:function(m){return m.name===this.tag&&(this.model={showRowColHeaders:m.attributes.headings==="1",showGridLines:m.attributes.gridLines==="1",horizontalCentered:m.attributes.horizontalCentered==="1",verticalCentered:m.attributes.verticalCentered==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=p},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(a,c,u){var h=a("./page-breaks-xform"),d=function(p){function g(){return Et(this,g),Er(this,g,[{tag:"rowBreaks",count:!0,childXform:new h}])}return nr(g,p),xt(g,[{key:"render",value:function(A,m){if(m&&m.length){A.openNode(this.tag,this.$),this.count&&(A.addAttribute(this.$count,m.length),A.addAttribute("manualBreakCount",m.length));var y=this.childXform;m.forEach(function(b){y.render(A,b)}),A.closeNode()}else this.empty&&A.leafNode(this.tag)}}])}(a("../list-xform"));c.exports=d},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(a,c,u){var h=a("../base-xform"),d=a("../../../utils/utils"),p=a("./cell-xform"),g=function(A){function m(y){var b;return Et(this,m),(b=Er(this,m)).maxItems=y&&y.maxItems,b.map={c:new p},b}return nr(m,A),xt(m,[{key:"tag",get:function(){return"row"}},{key:"prepare",value:function(y,b){var I=b.styles.addStyleModel(y.style);I&&(y.styleId=I);var E=this.map.c;y.cells.forEach(function(B){E.prepare(B,b)})}},{key:"render",value:function(y,b,I){y.openNode("row"),y.addAttribute("r",b.number),b.height&&(y.addAttribute("ht",b.height),y.addAttribute("customHeight","1")),b.hidden&&y.addAttribute("hidden","1"),b.min>0&&b.max>0&&b.min<=b.max&&y.addAttribute("spans","".concat(b.min,":").concat(b.max)),b.styleId&&(y.addAttribute("s",b.styleId),y.addAttribute("customFormat","1")),y.addAttribute("x14ac:dyDescent","0.25"),b.outlineLevel&&y.addAttribute("outlineLevel",b.outlineLevel),b.collapsed&&y.addAttribute("collapsed","1");var E=this.map.c;b.cells.forEach(function(B){E.render(y,B,I)}),y.closeNode()}},{key:"parseOpen",value:function(y){if(this.parser)return this.parser.parseOpen(y),!0;if(y.name==="row"){this.numRowsSeen+=1;var b=y.attributes.spans?y.attributes.spans.split(":").map(function(E){return parseInt(E,10)}):[void 0,void 0],I=this.model={number:parseInt(y.attributes.r,10),min:b[0],max:b[1],cells:[]};return y.attributes.s&&(I.styleId=parseInt(y.attributes.s,10)),d.parseBoolean(y.attributes.hidden)&&(I.hidden=!0),d.parseBoolean(y.attributes.bestFit)&&(I.bestFit=!0),y.attributes.ht&&(I.height=parseFloat(y.attributes.ht)),y.attributes.outlineLevel&&(I.outlineLevel=parseInt(y.attributes.outlineLevel,10)),d.parseBoolean(y.attributes.collapsed)&&(I.collapsed=!0),!0}return this.parser=this.map[y.name],!!this.parser&&(this.parser.parseOpen(y),!0)}},{key:"parseText",value:function(y){this.parser&&this.parser.parseText(y)}},{key:"parseClose",value:function(y){if(this.parser){if(!this.parser.parseClose(y)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error("Max column count (".concat(this.maxItems,") exceeded"));this.parser=void 0}return!0}return!1}},{key:"reconcile",value:function(y,b){y.style=y.styleId?b.styles.getStyleModel(y.styleId):{},y.styleId!==void 0&&(y.styleId=void 0);var I=this.map.c;y.cells.forEach(function(E){I.reconcile(E,b)})}}])}(h);c.exports=g},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(a,c,u){var h=a("../../../utils/under-dash"),d=function(p){function g(){return Et(this,g),Er(this,g,arguments)}return nr(g,p),xt(g,[{key:"tag",get:function(){return"sheetFormatPr"}},{key:"render",value:function(A,m){if(m){var y={defaultRowHeight:m.defaultRowHeight,outlineLevelRow:m.outlineLevelRow,outlineLevelCol:m.outlineLevelCol,"x14ac:dyDescent":m.dyDescent};m.defaultColWidth&&(y.defaultColWidth=m.defaultColWidth),m.defaultRowHeight&&m.defaultRowHeight===15||(y.customHeight="1"),h.some(y,function(b){return b!==void 0})&&A.leafNode("sheetFormatPr",y)}}},{key:"parseOpen",value:function(A){return A.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(A.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(A.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(A.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(A.attributes.outlineLevelCol||"0",10)},A.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(A.attributes.defaultColWidth)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=d},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(a,c,u){var h=a("../base-xform"),d=a("../style/color-xform"),p=a("./page-setup-properties-xform"),g=a("./outline-properties-xform"),A=function(m){function y(){var b;return Et(this,y),(b=Er(this,y)).map={tabColor:new d("tabColor"),pageSetUpPr:new p,outlinePr:new g},b}return nr(y,m),xt(y,[{key:"tag",get:function(){return"sheetPr"}},{key:"render",value:function(b,I){if(I){b.addRollback(),b.openNode("sheetPr");var E=!1;E=this.map.tabColor.render(b,I.tabColor)||E,E=this.map.pageSetUpPr.render(b,I.pageSetup)||E,(E=this.map.outlinePr.render(b,I.outlineProperties)||E)?(b.closeNode(),b.commit()):b.rollback()}}},{key:"parseOpen",value:function(b){return this.parser?(this.parser.parseOpen(b),!0):b.name===this.tag?(this.reset(),!0):!!this.map[b.name]&&(this.parser=this.map[b.name],this.parser.parseOpen(b),!0)}},{key:"parseText",value:function(b){return!!this.parser&&(this.parser.parseText(b),!0)}},{key:"parseClose",value:function(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}])}(h);c.exports=A},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(a,c,u){var h=a("../../../utils/under-dash");function d(A,m){return A?m:void 0}function p(A,m){return A===m||void 0}var g=function(A){function m(){return Et(this,m),Er(this,m,arguments)}return nr(m,A),xt(m,[{key:"tag",get:function(){return"sheetProtection"}},{key:"render",value:function(y,b){if(b){var I={sheet:d(b.sheet,"1"),selectLockedCells:b.selectLockedCells===!1?"1":void 0,selectUnlockedCells:b.selectUnlockedCells===!1?"1":void 0,formatCells:d(b.formatCells,"0"),formatColumns:d(b.formatColumns,"0"),formatRows:d(b.formatRows,"0"),insertColumns:d(b.insertColumns,"0"),insertRows:d(b.insertRows,"0"),insertHyperlinks:d(b.insertHyperlinks,"0"),deleteColumns:d(b.deleteColumns,"0"),deleteRows:d(b.deleteRows,"0"),sort:d(b.sort,"0"),autoFilter:d(b.autoFilter,"0"),pivotTables:d(b.pivotTables,"0")};b.sheet&&(I.algorithmName=b.algorithmName,I.hashValue=b.hashValue,I.saltValue=b.saltValue,I.spinCount=b.spinCount,I.objects=d(b.objects===!1,"1"),I.scenarios=d(b.scenarios===!1,"1")),h.some(I,function(E){return E!==void 0})&&y.leafNode(this.tag,I)}}},{key:"parseOpen",value:function(y){return y.name===this.tag&&(this.model={sheet:p(y.attributes.sheet,"1"),objects:y.attributes.objects!=="1"&&void 0,scenarios:y.attributes.scenarios!=="1"&&void 0,selectLockedCells:y.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:y.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:p(y.attributes.formatCells,"0"),formatColumns:p(y.attributes.formatColumns,"0"),formatRows:p(y.attributes.formatRows,"0"),insertColumns:p(y.attributes.insertColumns,"0"),insertRows:p(y.attributes.insertRows,"0"),insertHyperlinks:p(y.attributes.insertHyperlinks,"0"),deleteColumns:p(y.attributes.deleteColumns,"0"),deleteRows:p(y.attributes.deleteRows,"0"),sort:p(y.attributes.sort,"0"),autoFilter:p(y.attributes.autoFilter,"0"),pivotTables:p(y.attributes.pivotTables,"0")},y.attributes.algorithmName&&(this.model.algorithmName=y.attributes.algorithmName,this.model.hashValue=y.attributes.hashValue,this.model.saltValue=y.attributes.saltValue,this.model.spinCount=parseInt(y.attributes.spinCount,10)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=g},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(a,c,u){var h=a("../../../utils/col-cache"),d=a("../base-xform"),p={frozen:"frozen",frozenSplit:"frozen",split:"split"},g=function(A){function m(){return Et(this,m),Er(this,m,arguments)}return nr(m,A),xt(m,[{key:"tag",get:function(){return"sheetView"}},{key:"prepare",value:function(y){switch(y.state){case"frozen":case"split":break;default:y.state="normal"}}},{key:"render",value:function(y,b){y.openNode("sheetView",{workbookViewId:b.workbookViewId||0});var I,E,B,S,_=function(D,T,F){F&&y.addAttribute(D,T)};switch(_("rightToLeft","1",b.rightToLeft===!0),_("tabSelected","1",b.tabSelected),_("showRuler","0",b.showRuler===!1),_("showRowColHeaders","0",b.showRowColHeaders===!1),_("showGridLines","0",b.showGridLines===!1),_("zoomScale",b.zoomScale,b.zoomScale),_("zoomScaleNormal",b.zoomScaleNormal,b.zoomScaleNormal),_("view",b.style,b.style),b.state){case"frozen":E=b.xSplit||0,B=b.ySplit||0,I=b.topLeftCell||h.getAddress(B+1,E+1).address,S=(b.xSplit&&b.ySplit?"bottomRight":b.xSplit&&"topRight")||"bottomLeft",y.leafNode("pane",{xSplit:b.xSplit||void 0,ySplit:b.ySplit||void 0,topLeftCell:I,activePane:S,state:"frozen"}),y.leafNode("selection",{pane:S,activeCell:b.activeCell,sqref:b.activeCell});break;case"split":b.activePane==="topLeft"&&(b.activePane=void 0),y.leafNode("pane",{xSplit:b.xSplit||void 0,ySplit:b.ySplit||void 0,topLeftCell:b.topLeftCell,activePane:b.activePane}),y.leafNode("selection",{pane:b.activePane,activeCell:b.activeCell,sqref:b.activeCell});break;case"normal":b.activeCell&&y.leafNode("selection",{activeCell:b.activeCell,sqref:b.activeCell})}y.closeNode()}},{key:"parseOpen",value:function(y){switch(y.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(y.attributes.workbookViewId,10),rightToLeft:y.attributes.rightToLeft==="1",tabSelected:y.attributes.tabSelected==="1",showRuler:y.attributes.showRuler!=="0",showRowColHeaders:y.attributes.showRowColHeaders!=="0",showGridLines:y.attributes.showGridLines!=="0",zoomScale:parseInt(y.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(y.attributes.zoomScaleNormal||"100",10),style:y.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(y.attributes.xSplit||"0",10),ySplit:parseInt(y.attributes.ySplit||"0",10),topLeftCell:y.attributes.topLeftCell,activePane:y.attributes.activePane||"topLeft",state:y.attributes.state},!0;case"selection":var b=y.attributes.pane||"topLeft";return this.selections[b]={pane:b,activeCell:y.attributes.activeCell},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(y){var b,I;return y!=="sheetView"||(this.sheetView&&this.pane?(b=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:p[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(b.activePane=this.pane.activePane),(I=this.selections[this.pane.activePane])&&I.activeCell&&(b.activeCell=I.activeCell),this.sheetView.style&&(b.style=this.sheetView.style)):(b=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},(I=this.selections.topLeft)&&I.activeCell&&(b.activeCell=I.activeCell),this.sheetView.style&&(b.style=this.sheetView.style)),!1)}},{key:"reconcile",value:function(){}}])}(d);c.exports=g},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"tablePart"}},{key:"render",value:function(g,A){A&&g.leafNode(this.tag,{"r:id":A.rId})}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.model={rId:g.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],115:[function(a,c,u){var h=a("../../../utils/under-dash"),d=a("../../../utils/col-cache"),p=a("../../../utils/xml-stream"),g=a("../../rel-type"),A=a("./merges"),m=a("../base-xform"),y=a("../list-xform"),b=a("./row-xform"),I=a("./col-xform"),E=a("./dimension-xform"),B=a("./hyperlink-xform"),S=a("./merge-cell-xform"),_=a("./data-validations-xform"),D=a("./sheet-properties-xform"),T=a("./sheet-format-properties-xform"),F=a("./sheet-view-xform"),N=a("./sheet-protection-xform"),H=a("./page-margins-xform"),W=a("./page-setup-xform"),V=a("./print-options-xform"),te=a("./auto-filter-xform"),ue=a("./picture-xform"),fe=a("./drawing-xform"),de=a("./table-part-xform"),Ae=a("./row-breaks-xform"),we=a("./header-footer-xform"),Z=a("./cf/conditional-formattings-xform"),ne=a("./ext-lst-xform"),j=function(z,X){Object.keys(X).forEach(function(se){var oe=z[se],ye=X[se];oe===void 0&&ye!==void 0&&(z[se]=ye)})},J=function(z,X){if(!X||!X.length)return z;if(!z||!z.length)return X;var se={},oe={};return z.forEach(function(ye){se[ye.ref]=ye,ye.rules.forEach(function(ae){var me=ae.x14Id;me&&(oe[me]=ae)})}),X.forEach(function(ye){ye.rules.forEach(function(ae){var me=oe[ae.x14Id];me?j(me,ae):se[ye.ref]?se[ye.ref].rules.push(ae):z.push({ref:ye.ref,rules:[ae]})})}),z},q=function(z){function X(se){var oe;Et(this,X),oe=Er(this,X);var ye=se||{},ae=ye.maxRows,me=ye.maxCols,Fe=ye.ignoreNodes;return oe.ignoreNodes=Fe||[],oe.map={sheetPr:new D,dimension:new E,sheetViews:new y({tag:"sheetViews",count:!1,childXform:new F}),sheetFormatPr:new T,cols:new y({tag:"cols",count:!1,childXform:new I}),sheetData:new y({tag:"sheetData",count:!1,empty:!0,childXform:new b({maxItems:me}),maxItems:ae}),autoFilter:new te,mergeCells:new y({tag:"mergeCells",count:!0,childXform:new S}),rowBreaks:new Ae,hyperlinks:new y({tag:"hyperlinks",count:!1,childXform:new B}),pageMargins:new H,dataValidations:new _,pageSetup:new W,headerFooter:new we,printOptions:new V,picture:new ue,drawing:new fe,sheetProtection:new N,tableParts:new y({tag:"tableParts",count:!0,childXform:new de}),conditionalFormatting:new Z,extLst:new ne},oe}return nr(X,z),xt(X,[{key:"prepare",value:function(se,oe){var ye=this;oe.merges=new A,se.hyperlinks=oe.hyperlinks=[],se.comments=oe.comments=[],oe.formulae={},oe.siFormulae=0,this.map.cols.prepare(se.cols,oe),this.map.sheetData.prepare(se.rows,oe),this.map.conditionalFormatting.prepare(se.conditionalFormattings,oe),se.mergeCells=oe.merges.mergeCells;var ae=se.rels=[];function me(st){return"rId".concat(st.length+1)}if(se.hyperlinks.forEach(function(st){var Ge=me(ae);st.rId=Ge,ae.push({Id:Ge,Type:g.Hyperlink,Target:st.target,TargetMode:"External"})}),se.comments.length>0){var Fe={Id:me(ae),Type:g.Comments,Target:"../comments".concat(se.id,".xml")};ae.push(Fe);var _e={Id:me(ae),Type:g.VmlDrawing,Target:"../drawings/vmlDrawing".concat(se.id,".vml")};ae.push(_e),se.comments.forEach(function(st){st.refAddress=d.decodeAddress(st.ref)}),oe.commentRefs.push({commentName:"comments".concat(se.id),vmlDrawing:"vmlDrawing".concat(se.id)})}var rt,et=[];se.media.forEach(function(st){if(st.type==="background"){var Ge=me(ae);rt=oe.media[st.imageId],ae.push({Id:Ge,Type:g.Image,Target:"../media/".concat(rt.name,".").concat(rt.extension)}),se.background={rId:Ge},se.image=oe.media[st.imageId]}else if(st.type==="image"){var Be=se.drawing;rt=oe.media[st.imageId],Be||(Be=se.drawing={rId:me(ae),name:"drawing".concat(++oe.drawingsCount),anchors:[],rels:[]},oe.drawings.push(Be),ae.push({Id:Be.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:"../drawings/".concat(Be.name,".xml")}));var Te=ye.preImageId===st.imageId?et[st.imageId]:et[Be.rels.length];Te||(Te=me(Be.rels),et[Be.rels.length]=Te,Be.rels.push({Id:Te,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:"../media/".concat(rt.name,".").concat(rt.extension)}));var je={picture:{rId:Te},range:st.range};if(st.hyperlinks&&st.hyperlinks.hyperlink){var lt=me(Be.rels);et[Be.rels.length]=lt,je.picture.hyperlinks={tooltip:st.hyperlinks.tooltip,rId:lt},Be.rels.push({Id:lt,Type:g.Hyperlink,Target:st.hyperlinks.hyperlink,TargetMode:"External"})}ye.preImageId=st.imageId,Be.anchors.push(je)}}),se.tables.forEach(function(st){var Ge=me(ae);st.rId=Ge,ae.push({Id:Ge,Type:g.Table,Target:"../tables/".concat(st.target)}),st.columns.forEach(function(Be){var Te=Be.style;Te&&(Be.dxfId=oe.styles.addDxfStyle(Te))})}),this.map.extLst.prepare(se,oe)}},{key:"render",value:function(se,oe){se.openXml(p.StdDocAttributes),se.openNode("worksheet",X.WORKSHEET_ATTRIBUTES);var ye=oe.properties?{defaultRowHeight:oe.properties.defaultRowHeight,dyDescent:oe.properties.dyDescent,outlineLevelCol:oe.properties.outlineLevelCol,outlineLevelRow:oe.properties.outlineLevelRow}:void 0;oe.properties&&oe.properties.defaultColWidth&&(ye.defaultColWidth=oe.properties.defaultColWidth);var ae={outlineProperties:oe.properties&&oe.properties.outlineProperties,tabColor:oe.properties&&oe.properties.tabColor,pageSetup:oe.pageSetup&&oe.pageSetup.fitToPage?{fitToPage:oe.pageSetup.fitToPage}:void 0},me=oe.pageSetup&&oe.pageSetup.margins,Fe={showRowColHeaders:oe.pageSetup&&oe.pageSetup.showRowColHeaders,showGridLines:oe.pageSetup&&oe.pageSetup.showGridLines,horizontalCentered:oe.pageSetup&&oe.pageSetup.horizontalCentered,verticalCentered:oe.pageSetup&&oe.pageSetup.verticalCentered},_e=oe.sheetProtection;this.map.sheetPr.render(se,ae),this.map.dimension.render(se,oe.dimensions),this.map.sheetViews.render(se,oe.views),this.map.sheetFormatPr.render(se,ye),this.map.cols.render(se,oe.cols),this.map.sheetData.render(se,oe.rows),this.map.sheetProtection.render(se,_e),this.map.autoFilter.render(se,oe.autoFilter),this.map.mergeCells.render(se,oe.mergeCells),this.map.conditionalFormatting.render(se,oe.conditionalFormattings),this.map.dataValidations.render(se,oe.dataValidations),this.map.hyperlinks.render(se,oe.hyperlinks),this.map.printOptions.render(se,Fe),this.map.pageMargins.render(se,me),this.map.pageSetup.render(se,oe.pageSetup),this.map.headerFooter.render(se,oe.headerFooter),this.map.rowBreaks.render(se,oe.rowBreaks),this.map.drawing.render(se,oe.drawing),this.map.picture.render(se,oe.background),this.map.tableParts.render(se,oe.tables),this.map.extLst.render(se,oe),oe.rels&&oe.rels.forEach(function(rt){rt.Type===g.VmlDrawing&&se.leafNode("legacyDrawing",{"r:id":rt.Id})}),se.closeNode()}},{key:"parseOpen",value:function(se){return this.parser?(this.parser.parseOpen(se),!0):se.name==="worksheet"?(h.each(this.map,function(oe){oe.reset()}),!0):(this.map[se.name]&&!this.ignoreNodes.includes(se.name)&&(this.parser=this.map[se.name],this.parser.parseOpen(se)),!0)}},{key:"parseText",value:function(se){this.parser&&this.parser.parseText(se)}},{key:"parseClose",value:function(se){if(this.parser)return this.parser.parseClose(se)||(this.parser=void 0),!0;if(se==="worksheet"){var oe=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(oe.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(oe.outlineProperties=this.map.sheetPr.model.outlineProperties);var ye={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},ae=Object.assign(ye,this.map.pageSetup.model,this.map.printOptions.model),me=J(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:oe,views:this.map.sheetViews.model,pageSetup:ae,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:me},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}},{key:"reconcile",value:function(se,oe){var ye=(se.relationships||[]).reduce(function(et,st){if(et[st.Id]=st,st.Type===g.Comments&&(se.comments=oe.comments[st.Target].comments),st.Type===g.VmlDrawing&&se.comments&&se.comments.length){var Ge=oe.vmlDrawings[st.Target].comments;se.comments.forEach(function(Be,Te){Be.note=Object.assign({},Be.note,Ge[Te])})}return et},{});if(oe.commentsMap=(se.comments||[]).reduce(function(et,st){return st.ref&&(et[st.ref]=st),et},{}),oe.hyperlinkMap=(se.hyperlinks||[]).reduce(function(et,st){return st.rId&&(et[st.address]=ye[st.rId].Target),et},{}),oe.formulae={},se.rows=se.rows&&se.rows.filter(Boolean)||[],se.rows.forEach(function(et){et.cells=et.cells&&et.cells.filter(Boolean)||[]}),this.map.cols.reconcile(se.cols,oe),this.map.sheetData.reconcile(se.rows,oe),this.map.conditionalFormatting.reconcile(se.conditionalFormattings,oe),se.media=[],se.drawing){var ae=ye[se.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(ae){var me=ae[1];oe.drawings[me].anchors.forEach(function(et){if(et.medium){var st={type:"image",imageId:et.medium.index,range:et.range,hyperlinks:et.picture.hyperlinks};se.media.push(st)}})}}var Fe=se.background&&ye[se.background.rId];if(Fe){var _e=Fe.Target.split("/media/")[1],rt=oe.mediaIndex&&oe.mediaIndex[_e];rt!==void 0&&se.media.push({type:"background",imageId:rt})}se.tables=(se.tables||[]).map(function(et){var st=ye[et.rId];return oe.tables[st.Target]}),delete se.relationships,delete se.hyperlinks,delete se.comments}}])}(m);q.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},c.exports=q},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(a,c,u){var h=function(d){function p(g){var A;return Et(this,p),(A=Er(this,p)).tag=g.tag,A.attr=g.attr,A}return nr(p,d),xt(p,[{key:"render",value:function(g,A){A&&(g.openNode(this.tag),g.closeNode())}},{key:"parseOpen",value:function(g){g.name===this.tag&&(this.model=!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],117:[function(a,c,u){var h=function(d){function p(g){var A;return Et(this,p),(A=Er(this,p)).tag=g.tag,A.attr=g.attr,A.attrs=g.attrs,A._format=g.format||function(m){try{return Number.isNaN(m.getTime())?"":m.toISOString()}catch{return""}},A._parse=g.parse||function(m){return new Date(m)},A}return nr(p,d),xt(p,[{key:"render",value:function(g,A){A&&(g.openNode(this.tag),this.attrs&&g.addAttributes(this.attrs),this.attr?g.addAttribute(this.attr,this._format(A)):g.writeText(this._format(A)),g.closeNode())}},{key:"parseOpen",value:function(g){g.name===this.tag&&(this.attr?this.model=this._parse(g.attributes[this.attr]):this.text=[])}},{key:"parseText",value:function(g){this.attr||this.text.push(g)}},{key:"parseClose",value:function(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],118:[function(a,c,u){var h=function(d){function p(g){var A;return Et(this,p),(A=Er(this,p)).tag=g.tag,A.attr=g.attr,A.attrs=g.attrs,A.zero=g.zero,A}return nr(p,d),xt(p,[{key:"render",value:function(g,A){(A||this.zero)&&(g.openNode(this.tag),this.attrs&&g.addAttributes(this.attrs),this.attr?g.addAttribute(this.attr,A):g.writeText(A),g.closeNode())}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.attr?this.model=parseInt(g.attributes[this.attr],10):this.text=[],!0)}},{key:"parseText",value:function(g){this.attr||this.text.push(g)}},{key:"parseClose",value:function(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],119:[function(a,c,u){var h=function(d){function p(g){var A;return Et(this,p),(A=Er(this,p)).tag=g.tag,A.attr=g.attr,A.attrs=g.attrs,A}return nr(p,d),xt(p,[{key:"render",value:function(g,A){A!==void 0&&(g.openNode(this.tag),this.attrs&&g.addAttributes(this.attrs),this.attr?g.addAttribute(this.attr,A):g.writeText(A),g.closeNode())}},{key:"parseOpen",value:function(g){g.name===this.tag&&(this.attr?this.model=g.attributes[this.attr]:this.text=[])}},{key:"parseText",value:function(g){this.attr||this.text.push(g)}},{key:"parseClose",value:function(){return this.attr||(this.model=this.text.join("")),!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],120:[function(a,c,u){var h=a("./base-xform"),d=a("../../utils/xml-stream");function p(A,m){A.openNode(m.tag,m.$),m.c&&m.c.forEach(function(y){p(A,y)}),m.t&&A.writeText(m.t),A.closeNode()}var g=function(A){function m(y){var b;return Et(this,m),(b=Er(this,m))._model=y,b}return nr(m,A),xt(m,[{key:"render",value:function(y){if(!this._xml){var b=new d;p(b,this._model),this._xml=b.xml}y.writeXml(this._xml)}},{key:"parseOpen",value:function(){return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(y){return y!==this._model.tag}}])}(h);c.exports=g},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(a,c,u){var h=a("./text-xform"),d=a("./rich-text-xform"),p=function(g){function A(){var m;return Et(this,A),(m=Er(this,A)).map={r:new d,t:new h},m}return nr(A,g),xt(A,[{key:"tag",get:function(){return"rPh"}},{key:"render",value:function(m,y){if(m.openNode(this.tag,{sb:y.sb||0,eb:y.eb||0}),y&&y.hasOwnProperty("richText")&&y.richText){var b=this.map.r;y.richText.forEach(function(I){b.render(m,I)})}else y&&this.map.t.render(m,y.text);m.closeNode()}},{key:"parseOpen",value:function(m){var y=m.name;return this.parser?(this.parser.parseOpen(m),!0):y===this.tag?(this.model={sb:parseInt(m.attributes.sb,10),eb:parseInt(m.attributes.eb,10)},!0):(this.parser=this.map[y],!!this.parser&&(this.parser.parseOpen(m),!0))}},{key:"parseText",value:function(m){this.parser&&this.parser.parseText(m)}},{key:"parseClose",value:function(m){if(this.parser){if(!this.parser.parseClose(m)){switch(m){case"r":var y=this.model.richText;y||(y=this.model.richText=[]),y.push(this.parser.model);break;case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return m!==this.tag}}])}(a("../base-xform"));c.exports=p},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(a,c,u){var h=a("./text-xform"),d=a("../style/font-xform"),p=function(g){function A(m){var y;return Et(this,A),(y=Er(this,A)).model=m,y}return nr(A,g),xt(A,[{key:"tag",get:function(){return"r"}},{key:"textXform",get:function(){return this._textXform||(this._textXform=new h)}},{key:"fontXform",get:function(){return this._fontXform||(this._fontXform=new d(A.FONT_OPTIONS))}},{key:"render",value:function(m,y){y=y||this.model,m.openNode("r"),y.font&&this.fontXform.render(m,y.font),this.textXform.render(m,y.text),m.closeNode()}},{key:"parseOpen",value:function(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(m),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(m),!0;default:return!1}}},{key:"parseText",value:function(m){this.parser&&this.parser.parseText(m)}},{key:"parseClose",value:function(m){switch(m){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(m),!0}}}])}(a("../base-xform"));p.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},c.exports=p},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(a,c,u){var h=a("./text-xform"),d=a("./rich-text-xform"),p=a("./phonetic-text-xform"),g=function(A){function m(y){var b;return Et(this,m),(b=Er(this,m)).model=y,b.map={r:new d,t:new h,rPh:new p},b}return nr(m,A),xt(m,[{key:"tag",get:function(){return"si"}},{key:"render",value:function(y,b){var I=this;y.openNode(this.tag),b&&b.hasOwnProperty("richText")&&b.richText?b.richText.length?b.richText.forEach(function(E){I.map.r.render(y,E)}):this.map.t.render(y,""):b!=null&&this.map.t.render(y,b),y.closeNode()}},{key:"parseOpen",value:function(y){var b=y.name;return this.parser?(this.parser.parseOpen(y),!0):b===this.tag?(this.model={},!0):(this.parser=this.map[b],!!this.parser&&(this.parser.parseOpen(y),!0))}},{key:"parseText",value:function(y){this.parser&&this.parser.parseText(y)}},{key:"parseClose",value:function(y){if(this.parser){if(!this.parser.parseClose(y)){switch(y){case"r":var b=this.model.richText;b||(b=this.model.richText=[]),b.push(this.parser.model);break;case"t":this.model=this.parser.model}this.parser=void 0}return!0}return y!==this.tag}}])}(a("../base-xform"));c.exports=g},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(a,c,u){var h=a("../../../utils/xml-stream"),d=a("../base-xform"),p=a("./shared-string-xform"),g=function(A){function m(y){var b;return Et(this,m),(b=Er(this,m)).model=y||{values:[],count:0},b.hash=Object.create(null),b.rich=Object.create(null),b}return nr(m,A),xt(m,[{key:"sharedStringXform",get:function(){return this._sharedStringXform||(this._sharedStringXform=new p)}},{key:"values",get:function(){return this.model.values}},{key:"uniqueCount",get:function(){return this.model.values.length}},{key:"count",get:function(){return this.model.count}},{key:"getString",value:function(y){return this.model.values[y]}},{key:"add",value:function(y){return y.richText?this.addRichText(y):this.addText(y)}},{key:"addText",value:function(y){var b=this.hash[y];return b===void 0&&(b=this.hash[y]=this.model.values.length,this.model.values.push(y)),this.model.count++,b}},{key:"addRichText",value:function(y){var b=this.sharedStringXform.toXml(y),I=this.rich[b];return I===void 0&&(I=this.rich[b]=this.model.values.length,this.model.values.push(y)),this.model.count++,I}},{key:"render",value:function(y,b){b=b||this._values,y.openXml(h.StdDocAttributes),y.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:b.count,uniqueCount:b.values.length});var I=this.sharedStringXform;b.values.forEach(function(E){I.render(y,E)}),y.closeNode()}},{key:"parseOpen",value:function(y){if(this.parser)return this.parser.parseOpen(y),!0;switch(y.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(y),!0;default:throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(y)))}}},{key:"parseText",value:function(y){this.parser&&this.parser.parseText(y)}},{key:"parseClose",value:function(y){if(this.parser)return this.parser.parseClose(y)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if(y==="sst")return!1;throw new Error("Unexpected xml node in parseClose: ".concat(y))}}])}(d);c.exports=g},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"t"}},{key:"render",value:function(g,A){g.openNode("t"),/^\s|\n|\s$/.test(A)&&g.addAttribute("xml:space","preserve"),g.writeText(A),g.closeNode()}},{key:"model",get:function(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,function(g,A){return String.fromCharCode(parseInt(A,16))})}},{key:"parseOpen",value:function(g){return g.name==="t"&&(this._text=[],!0)}},{key:"parseText",value:function(g){this._text.push(g)}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],126:[function(a,c,u){var h=a("../../../doc/enums"),d=a("../../../utils/utils"),p=a("../base-xform"),g={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(function(y,b){return y[b]=!0,y},{}),horizontal:function(y){return this.horizontalValues[y]?y:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce(function(y,b){return y[b]=!0,y},{}),vertical:function(y){return y==="middle"?"center":this.verticalValues[y]?y:void 0},wrapText:function(y){return!!y||void 0},shrinkToFit:function(y){return!!y||void 0},textRotation:function(y){return y==="vertical"||(y=d.validInt(y))>=-90&&y<=90?y:void 0},indent:function(y){return y=d.validInt(y),Math.max(0,y)},readingOrder:function(y){switch(y){case"ltr":return h.ReadingOrder.LeftToRight;case"rtl":return h.ReadingOrder.RightToLeft;default:return}}},A={toXml:function(y){if(y=g.textRotation(y)){if(y==="vertical")return 255;var b=Math.round(y);if(b>=0&&b<=90)return b;if(b<0&&b>=-90)return 90-b}},toModel:function(y){var b=d.validInt(y);if(b!==void 0){if(b===255)return"vertical";if(b>=0&&b<=90)return b;if(b>90&&b<=180)return 90-b}}},m=function(y){function b(){return Et(this,b),Er(this,b,arguments)}return nr(b,y),xt(b,[{key:"tag",get:function(){return"alignment"}},{key:"render",value:function(I,E){I.addRollback(),I.openNode("alignment");var B=!1;function S(_,D){D&&(I.addAttribute(_,D),B=!0)}S("horizontal",g.horizontal(E.horizontal)),S("vertical",g.vertical(E.vertical)),S("wrapText",!!g.wrapText(E.wrapText)&&"1"),S("shrinkToFit",!!g.shrinkToFit(E.shrinkToFit)&&"1"),S("indent",g.indent(E.indent)),S("textRotation",A.toXml(E.textRotation)),S("readingOrder",g.readingOrder(E.readingOrder)),I.closeNode(),B?I.commit():I.rollback()}},{key:"parseOpen",value:function(I){var E={},B=!1;function S(_,D,T){_&&(E[D]=T,B=!0)}S(I.attributes.horizontal,"horizontal",I.attributes.horizontal),S(I.attributes.vertical,"vertical",I.attributes.vertical==="center"?"middle":I.attributes.vertical),S(I.attributes.wrapText,"wrapText",d.parseBoolean(I.attributes.wrapText)),S(I.attributes.shrinkToFit,"shrinkToFit",d.parseBoolean(I.attributes.shrinkToFit)),S(I.attributes.indent,"indent",parseInt(I.attributes.indent,10)),S(I.attributes.textRotation,"textRotation",A.toModel(I.attributes.textRotation)),S(I.attributes.readingOrder,"readingOrder",I.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=B?E:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(p);c.exports=m},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(a,c,u){var h=a("../base-xform"),d=a("../../../utils/utils"),p=a("./color-xform"),g=function(m){function y(b){var I;return Et(this,y),(I=Er(this,y)).name=b,I.map={color:new p},I}return nr(y,m),xt(y,[{key:"tag",get:function(){return this.name}},{key:"render",value:function(b,I,E){var B=I&&I.color||E||this.defaultColor;b.openNode(this.name),I&&I.style&&(b.addAttribute("style",I.style),B&&this.map.color.render(b,B)),b.closeNode()}},{key:"parseOpen",value:function(b){if(this.parser)return this.parser.parseOpen(b),!0;switch(b.name){case this.name:var I=b.attributes.style;return this.model=I?{style:I}:void 0,!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(b),!0;default:return!1}}},{key:"parseText",value:function(b){this.parser&&this.parser.parseText(b)}},{key:"parseClose",value:function(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):(b===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}},{key:"validStyle",value:function(b){return y.validStyleValues[b]}}])}(h);g.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(function(m,y){return m[y]=!0,m},{});var A=function(m){function y(){var b;return Et(this,y),(b=Er(this,y)).map={top:new g("top"),left:new g("left"),bottom:new g("bottom"),right:new g("right"),diagonal:new g("diagonal")},b}return nr(y,m),xt(y,[{key:"render",value:function(b,I){var E=I.color;function B(S,_){S&&!S.color&&I.color&&(S=Za(Za({},S),{},{color:I.color})),_.render(b,S,E)}b.openNode("border"),I.diagonal&&I.diagonal.style&&(I.diagonal.up&&b.addAttribute("diagonalUp","1"),I.diagonal.down&&b.addAttribute("diagonalDown","1")),B(I.left,this.map.left),B(I.right,this.map.right),B(I.top,this.map.top),B(I.bottom,this.map.bottom),B(I.diagonal,this.map.diagonal),b.closeNode()}},{key:"parseOpen",value:function(b){return this.parser?(this.parser.parseOpen(b),!0):b.name==="border"?(this.reset(),this.diagonalUp=d.parseBoolean(b.attributes.diagonalUp),this.diagonalDown=d.parseBoolean(b.attributes.diagonalDown),!0):(this.parser=this.map[b.name],!!this.parser&&(this.parser.parseOpen(b),!0))}},{key:"parseText",value:function(b){this.parser&&this.parser.parseText(b)}},{key:"parseClose",value:function(b){if(this.parser)return this.parser.parseClose(b)||(this.parser=void 0),!0;if(b==="border"){var I=this.model={},E=function(B,S,_){S&&(_&&Object.assign(S,_),I[B]=S)};E("left",this.map.left.model),E("right",this.map.right.model),E("top",this.map.top.model),E("bottom",this.map.bottom.model),E("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}])}(h);c.exports=A},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(a,c,u){var h=function(d){function p(g){var A;return Et(this,p),(A=Er(this,p)).name=g||"color",A}return nr(p,d),xt(p,[{key:"tag",get:function(){return this.name}},{key:"render",value:function(g,A){return!!A&&(g.openNode(this.name),A.argb?g.addAttribute("rgb",A.argb):A.theme!==void 0?(g.addAttribute("theme",A.theme),A.tint!==void 0&&g.addAttribute("tint",A.tint)):A.indexed!==void 0?g.addAttribute("indexed",A.indexed):g.addAttribute("auto","1"),g.closeNode(),!0)}},{key:"parseOpen",value:function(g){return g.name===this.name&&(g.attributes.rgb?this.model={argb:g.attributes.rgb}:g.attributes.theme?(this.model={theme:parseInt(g.attributes.theme,10)},g.attributes.tint&&(this.model.tint=parseFloat(g.attributes.tint))):g.attributes.indexed?this.model={indexed:parseInt(g.attributes.indexed,10)}:this.model=void 0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],129:[function(a,c,u){var h=a("../base-xform"),d=a("./alignment-xform"),p=a("./border-xform"),g=a("./fill-xform"),A=a("./font-xform"),m=a("./numfmt-xform"),y=a("./protection-xform"),b=function(I){function E(){var B;return Et(this,E),(B=Er(this,E)).map={alignment:new d,border:new p,fill:new g,font:new A,numFmt:new m,protection:new y},B}return nr(E,I),xt(E,[{key:"tag",get:function(){return"dxf"}},{key:"render",value:function(B,S){if(B.openNode(this.tag),S.font&&this.map.font.render(B,S.font),S.numFmt&&S.numFmtId){var _={id:S.numFmtId,formatCode:S.numFmt};this.map.numFmt.render(B,_)}S.fill&&this.map.fill.render(B,S.fill),S.alignment&&this.map.alignment.render(B,S.alignment),S.border&&this.map.border.render(B,S.border),S.protection&&this.map.protection.render(B,S.protection),B.closeNode()}},{key:"parseOpen",value:function(B){return this.parser?(this.parser.parseOpen(B),!0):B.name===this.tag?(this.reset(),!0):(this.parser=this.map[B.name],this.parser&&this.parser.parseOpen(B),!0)}},{key:"parseText",value:function(B){this.parser&&this.parser.parseText(B)}},{key:"parseClose",value:function(B){return this.parser?(this.parser.parseClose(B)||(this.parser=void 0),!0):B!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}])}(h);c.exports=b},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(a,c,u){var h=a("../base-xform"),d=a("./color-xform"),p=function(y){function b(){var I;return Et(this,b),(I=Er(this,b)).map={color:new d},I}return nr(b,y),xt(b,[{key:"tag",get:function(){return"stop"}},{key:"render",value:function(I,E){I.openNode("stop"),I.addAttribute("position",E.position),this.map.color.render(I,E.color),I.closeNode()}},{key:"parseOpen",value:function(I){if(this.parser)return this.parser.parseOpen(I),!0;switch(I.name){case"stop":return this.model={position:parseFloat(I.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(I),!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(I){return!!this.parser&&(this.parser.parseClose(I)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}])}(h),g=function(y){function b(){var I;return Et(this,b),(I=Er(this,b)).map={fgColor:new d("fgColor"),bgColor:new d("bgColor")},I}return nr(b,y),xt(b,[{key:"name",get:function(){return"pattern"}},{key:"tag",get:function(){return"patternFill"}},{key:"render",value:function(I,E){I.openNode("patternFill"),I.addAttribute("patternType",E.pattern),E.fgColor&&this.map.fgColor.render(I,E.fgColor),E.bgColor&&this.map.bgColor.render(I,E.bgColor),I.closeNode()}},{key:"parseOpen",value:function(I){return this.parser?(this.parser.parseOpen(I),!0):I.name==="patternFill"?(this.model={type:"pattern",pattern:I.attributes.patternType},!0):(this.parser=this.map[I.name],!!this.parser&&(this.parser.parseOpen(I),!0))}},{key:"parseText",value:function(I){this.parser&&this.parser.parseText(I)}},{key:"parseClose",value:function(I){return!!this.parser&&(this.parser.parseClose(I)||(this.parser.model&&(this.model[I]=this.parser.model),this.parser=void 0),!0)}}])}(h),A=function(y){function b(){var I;return Et(this,b),(I=Er(this,b)).map={stop:new p},I}return nr(b,y),xt(b,[{key:"name",get:function(){return"gradient"}},{key:"tag",get:function(){return"gradientFill"}},{key:"render",value:function(I,E){switch(I.openNode("gradientFill"),E.gradient){case"angle":I.addAttribute("degree",E.degree);break;case"path":I.addAttribute("type","path"),E.center.left&&(I.addAttribute("left",E.center.left),E.center.right===void 0&&I.addAttribute("right",E.center.left)),E.center.right&&I.addAttribute("right",E.center.right),E.center.top&&(I.addAttribute("top",E.center.top),E.center.bottom===void 0&&I.addAttribute("bottom",E.center.top)),E.center.bottom&&I.addAttribute("bottom",E.center.bottom)}var B=this.map.stop;E.stops.forEach(function(S){B.render(I,S)}),I.closeNode()}},{key:"parseOpen",value:function(I){if(this.parser)return this.parser.parseOpen(I),!0;switch(I.name){case"gradientFill":var E=this.model={stops:[]};return I.attributes.degree?(E.gradient="angle",E.degree=parseInt(I.attributes.degree,10)):I.attributes.type==="path"&&(E.gradient="path",E.center={left:I.attributes.left?parseFloat(I.attributes.left):0,top:I.attributes.top?parseFloat(I.attributes.top):0},I.attributes.right!==I.attributes.left&&(E.center.right=I.attributes.right?parseFloat(I.attributes.right):0),I.attributes.bottom!==I.attributes.top&&(E.center.bottom=I.attributes.bottom?parseFloat(I.attributes.bottom):0)),!0;case"stop":return this.parser=this.map.stop,this.parser.parseOpen(I),!0;default:return!1}}},{key:"parseText",value:function(I){this.parser&&this.parser.parseText(I)}},{key:"parseClose",value:function(I){return!!this.parser&&(this.parser.parseClose(I)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}])}(h),m=function(y){function b(){var I;return Et(this,b),(I=Er(this,b)).map={patternFill:new g,gradientFill:new A},I}return nr(b,y),xt(b,[{key:"tag",get:function(){return"fill"}},{key:"render",value:function(I,E){switch(I.addRollback(),I.openNode("fill"),E.type){case"pattern":this.map.patternFill.render(I,E);break;case"gradient":this.map.gradientFill.render(I,E);break;default:return void I.rollback()}I.closeNode(),I.commit()}},{key:"parseOpen",value:function(I){return this.parser?(this.parser.parseOpen(I),!0):I.name==="fill"?(this.model={},!0):(this.parser=this.map[I.name],!!this.parser&&(this.parser.parseOpen(I),!0))}},{key:"parseText",value:function(I){this.parser&&this.parser.parseText(I)}},{key:"parseClose",value:function(I){return!!this.parser&&(this.parser.parseClose(I)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}},{key:"validStyle",value:function(I){return b.validPatternValues[I]}}])}(h);m.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(function(y,b){return y[b]=!0,y},{}),m.StopXform=p,m.PatternFillXform=g,m.GradientFillXform=A,c.exports=m},{"../base-xform":32,"./color-xform":128}],131:[function(a,c,u){var h=a("./color-xform"),d=a("../simple/boolean-xform"),p=a("../simple/integer-xform"),g=a("../simple/string-xform"),A=a("./underline-xform"),m=a("../../../utils/under-dash"),y=function(b){function I(E){var B;return Et(this,I),(B=Er(this,I)).options=E||I.OPTIONS,B.map={b:{prop:"bold",xform:new d({tag:"b",attr:"val"})},i:{prop:"italic",xform:new d({tag:"i",attr:"val"})},u:{prop:"underline",xform:new A},charset:{prop:"charset",xform:new p({tag:"charset",attr:"val"})},color:{prop:"color",xform:new h},condense:{prop:"condense",xform:new d({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new d({tag:"extend",attr:"val"})},family:{prop:"family",xform:new p({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new d({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new g({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new g({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new d({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new d({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new p({tag:"sz",attr:"val"})}},B.map[B.options.fontNameTag]={prop:"name",xform:new g({tag:B.options.fontNameTag,attr:"val"})},B}return nr(I,b),xt(I,[{key:"tag",get:function(){return this.options.tagName}},{key:"render",value:function(E,B){var S=this.map;E.openNode(this.options.tagName),m.each(this.map,function(_,D){S[D].xform.render(E,B[_.prop])}),E.closeNode()}},{key:"parseOpen",value:function(E){return this.parser?(this.parser.parseOpen(E),!0):this.map[E.name]?(this.parser=this.map[E.name].xform,this.parser.parseOpen(E)):E.name===this.options.tagName&&(this.model={},!0)}},{key:"parseText",value:function(E){this.parser&&this.parser.parseText(E)}},{key:"parseClose",value:function(E){if(this.parser&&!this.parser.parseClose(E)){var B=this.map[E];return this.parser.model&&(this.model[B.prop]=this.parser.model),this.parser=void 0,!0}return E!==this.options.tagName}}])}(a("../base-xform"));y.OPTIONS={tagName:"font",fontNameTag:"name"},c.exports=y},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(a,c,u){var h=a("../../../utils/under-dash"),d=a("../../defaultnumformats"),p=a("../base-xform");function g(){var y={};return h.each(d,function(b,I){b.f&&(y[b.f]=parseInt(I,10))}),y}var A=g(),m=function(y){function b(I,E){var B;return Et(this,b),(B=Er(this,b)).id=I,B.formatCode=E,B}return nr(b,y),xt(b,[{key:"tag",get:function(){return"numFmt"}},{key:"render",value:function(I,E){I.leafNode("numFmt",{numFmtId:E.id,formatCode:E.formatCode})}},{key:"parseOpen",value:function(I){return I.name==="numFmt"&&(this.model={id:parseInt(I.attributes.numFmtId,10),formatCode:I.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(p);m.getDefaultFmtId=function(y){return A[y]},m.getDefaultFmtCode=function(y){return d[y]&&d[y].f},c.exports=m},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(a,c,u){var h=a("../base-xform"),d={boolean:function(g,A){return g===void 0?A:g}},p=function(g){function A(){return Et(this,A),Er(this,A,arguments)}return nr(A,g),xt(A,[{key:"tag",get:function(){return"protection"}},{key:"render",value:function(m,y){m.addRollback(),m.openNode("protection");var b=!1;function I(E,B){B!==void 0&&(m.addAttribute(E,B),b=!0)}I("locked",d.boolean(y.locked,!0)?void 0:"0"),I("hidden",d.boolean(y.hidden,!1)?"1":void 0),m.closeNode(),b?m.commit():m.rollback()}},{key:"parseOpen",value:function(m){var y={locked:m.attributes.locked!=="0",hidden:m.attributes.hidden==="1"},b=!y.locked||y.hidden;this.model=b?y:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(h);c.exports=p},{"../base-xform":32}],134:[function(a,c,u){var h=a("../base-xform"),d=a("./alignment-xform"),p=a("./protection-xform"),g=function(A){function m(y){var b;return Et(this,m),(b=Er(this,m)).xfId=!(!y||!y.xfId),b.map={alignment:new d,protection:new p},b}return nr(m,A),xt(m,[{key:"tag",get:function(){return"xf"}},{key:"render",value:function(y,b){y.openNode("xf",{numFmtId:b.numFmtId||0,fontId:b.fontId||0,fillId:b.fillId||0,borderId:b.borderId||0}),this.xfId&&y.addAttribute("xfId",b.xfId||0),b.numFmtId&&y.addAttribute("applyNumberFormat","1"),b.fontId&&y.addAttribute("applyFont","1"),b.fillId&&y.addAttribute("applyFill","1"),b.borderId&&y.addAttribute("applyBorder","1"),b.alignment&&y.addAttribute("applyAlignment","1"),b.protection&&y.addAttribute("applyProtection","1"),b.alignment&&this.map.alignment.render(y,b.alignment),b.protection&&this.map.protection.render(y,b.protection),y.closeNode()}},{key:"parseOpen",value:function(y){if(this.parser)return this.parser.parseOpen(y),!0;switch(y.name){case"xf":return this.model={numFmtId:parseInt(y.attributes.numFmtId,10),fontId:parseInt(y.attributes.fontId,10),fillId:parseInt(y.attributes.fillId,10),borderId:parseInt(y.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(y.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(y),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(y),!0;default:return!1}}},{key:"parseText",value:function(y){this.parser&&this.parser.parseText(y)}},{key:"parseClose",value:function(y){return this.parser?(this.parser.parseClose(y)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):y!=="xf"}}])}(h);c.exports=g},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(a,c,u){var h=a("../../../doc/enums"),d=a("../../../utils/xml-stream"),p=a("../base-xform"),g=a("../static-xform"),A=a("../list-xform"),m=a("./font-xform"),y=a("./fill-xform"),b=a("./border-xform"),I=a("./numfmt-xform"),E=a("./style-xform"),B=a("./dxf-xform"),S=164,_=function(T){function F(N){var H;return Et(this,F),(H=Er(this,F)).map={numFmts:new A({tag:"numFmts",count:!0,childXform:new I}),fonts:new A({tag:"fonts",count:!0,childXform:new m,$:{"x14ac:knownFonts":1}}),fills:new A({tag:"fills",count:!0,childXform:new y}),borders:new A({tag:"borders",count:!0,childXform:new b}),cellStyleXfs:new A({tag:"cellStyleXfs",count:!0,childXform:new E}),cellXfs:new A({tag:"cellXfs",count:!0,childXform:new E({xfId:!0})}),dxfs:new A({tag:"dxfs",always:!0,count:!0,childXform:new B}),numFmt:new I,font:new m,fill:new y,border:new b,style:new E({xfId:!0}),cellStyles:F.STATIC_XFORMS.cellStyles,tableStyles:F.STATIC_XFORMS.tableStyles,extLst:F.STATIC_XFORMS.extLst},N&&H.init(),H}return nr(F,T),xt(F,[{key:"initIndex",value:function(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}},{key:"init",value:function(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}},{key:"render",value:function(N,H){H=H||this.model,N.openXml(d.StdDocAttributes),N.openNode("styleSheet",F.STYLESHEET_ATTRIBUTES),this.index?(H.numFmts&&H.numFmts.length&&(N.openNode("numFmts",{count:H.numFmts.length}),H.numFmts.forEach(function(W){N.writeXml(W)}),N.closeNode()),H.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),N.openNode("fonts",{count:H.fonts.length,"x14ac:knownFonts":1}),H.fonts.forEach(function(W){N.writeXml(W)}),N.closeNode(),N.openNode("fills",{count:H.fills.length}),H.fills.forEach(function(W){N.writeXml(W)}),N.closeNode(),N.openNode("borders",{count:H.borders.length}),H.borders.forEach(function(W){N.writeXml(W)}),N.closeNode(),this.map.cellStyleXfs.render(N,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),N.openNode("cellXfs",{count:H.styles.length}),H.styles.forEach(function(W){N.writeXml(W)}),N.closeNode()):(this.map.numFmts.render(N,H.numFmts),this.map.fonts.render(N,H.fonts),this.map.fills.render(N,H.fills),this.map.borders.render(N,H.borders),this.map.cellStyleXfs.render(N,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(N,H.styles)),F.STATIC_XFORMS.cellStyles.render(N),this.map.dxfs.render(N,H.dxfs),F.STATIC_XFORMS.tableStyles.render(N),F.STATIC_XFORMS.extLst.render(N),N.closeNode()}},{key:"parseOpen",value:function(N){return this.parser?(this.parser.parseOpen(N),!0):N.name==="styleSheet"?(this.initIndex(),!0):(this.parser=this.map[N.name],this.parser&&this.parser.parseOpen(N),!0)}},{key:"parseText",value:function(N){this.parser&&this.parser.parseText(N)}},{key:"parseClose",value:function(N){var H=this;if(this.parser)return this.parser.parseClose(N)||(this.parser=void 0),!0;if(N==="styleSheet"){this.model={};var W=function(te,ue){ue.model&&ue.model.length&&(H.model[te]=ue.model)};if(W("numFmts",this.map.numFmts),W("fonts",this.map.fonts),W("fills",this.map.fills),W("borders",this.map.borders),W("styles",this.map.cellXfs),W("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){var V=this.index.numFmt;this.model.numFmts.forEach(function(te){V[te.id]=te.formatCode})}return!1}return!0}},{key:"addStyleModel",value:function(N,H){if(!N)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(N))return this.weakMap.get(N);var W={};if(H=H||h.ValueType.Number,N.numFmt)W.numFmtId=this._addNumFmtStr(N.numFmt);else switch(H){case h.ValueType.Number:W.numFmtId=this._addNumFmtStr("General");break;case h.ValueType.Date:W.numFmtId=this._addNumFmtStr("mm-dd-yy")}N.font&&(W.fontId=this._addFont(N.font)),N.border&&(W.borderId=this._addBorder(N.border)),N.fill&&(W.fillId=this._addFill(N.fill)),N.alignment&&(W.alignment=N.alignment),N.protection&&(W.protection=N.protection);var V=this._addStyle(W);return this.weakMap&&this.weakMap.set(N,V),V}},{key:"getStyleModel",value:function(N){var H=this.model.styles[N];if(!H)return null;var W=this.index.model[N];if(W)return W;if(W=this.index.model[N]={},H.numFmtId){var V=this.index.numFmt[H.numFmtId]||I.getDefaultFmtCode(H.numFmtId);V&&(W.numFmt=V)}function te(ue,fe,de){if(de||de===0){var Ae=fe[de];Ae&&(W[ue]=Ae)}}return te("font",this.model.fonts,H.fontId),te("border",this.model.borders,H.borderId),te("fill",this.model.fills,H.fillId),H.alignment&&(W.alignment=H.alignment),H.protection&&(W.protection=H.protection),W}},{key:"addDxfStyle",value:function(N){return N.numFmt&&(N.numFmtId=this._addNumFmtStr(N.numFmt)),this.model.dxfs.push(N),this.model.dxfs.length-1}},{key:"getDxfStyle",value:function(N){return this.model.dxfs[N]}},{key:"_addStyle",value:function(N){var H=this.map.style.toXml(N),W=this.index.style[H];return W===void 0&&(W=this.index.style[H]=this.model.styles.length,this.model.styles.push(H)),W}},{key:"_addNumFmtStr",value:function(N){var H=I.getDefaultFmtId(N);if(H!==void 0||(H=this.index.numFmt[N])!==void 0)return H;H=this.index.numFmt[N]=S+this.model.numFmts.length;var W=this.map.numFmt.toXml({id:H,formatCode:N});return this.model.numFmts.push(W),H}},{key:"_addFont",value:function(N){var H=this.map.font.toXml(N),W=this.index.font[H];return W===void 0&&(W=this.index.font[H]=this.model.fonts.length,this.model.fonts.push(H)),W}},{key:"_addBorder",value:function(N){var H=this.map.border.toXml(N),W=this.index.border[H];return W===void 0&&(W=this.index.border[H]=this.model.borders.length,this.model.borders.push(H)),W}},{key:"_addFill",value:function(N){var H=this.map.fill.toXml(N),W=this.index.fill[H];return W===void 0&&(W=this.index.fill[H]=this.model.fills.length,this.model.fills.push(H)),W}}])}(p);_.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},_.STATIC_XFORMS={cellStyles:new g({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new g({tag:"dxfs",$:{count:0}}),tableStyles:new g({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new g({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})};var D=function(T){function F(){var N;return Et(this,F),(N=Er(this,F)).model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]},N}return nr(F,T),xt(F,[{key:"parseStream",value:function(N){return N.autodrain(),Promise.resolve()}},{key:"addStyleModel",value:function(N,H){return H===h.ValueType.Date?this.dateStyleId:0}},{key:"dateStyleId",get:function(){if(!this._dateStyleId){var N={numFmtId:I.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(N)}return this._dateStyleId}},{key:"getStyleModel",value:function(){return{}}}])}(_);_.Mock=D,c.exports=_},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(a,c,u){var h=function(d){function p(g){var A;return Et(this,p),(A=Er(this,p)).model=g,A}return nr(p,d),xt(p,[{key:"tag",get:function(){return"u"}},{key:"render",value:function(g,A){if((A=A||this.model)===!0)g.leafNode("u");else{var m=p.Attributes[A];m&&g.leafNode("u",m)}}},{key:"parseOpen",value:function(g){g.name==="u"&&(this.model=g.attributes.val||!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));h.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},c.exports=h},{"../base-xform":32}],137:[function(a,c,u){var h=a("../base-xform"),d=a("./filter-column-xform"),p=function(g){function A(){var m;return Et(this,A),(m=Er(this,A)).map={filterColumn:new d},m}return nr(A,g),xt(A,[{key:"tag",get:function(){return"autoFilter"}},{key:"prepare",value:function(m){var y=this;m.columns.forEach(function(b,I){y.map.filterColumn.prepare(b,{index:I})})}},{key:"render",value:function(m,y){var b=this;return m.openNode(this.tag,{ref:y.autoFilterRef}),y.columns.forEach(function(I){b.map.filterColumn.render(m,I)}),m.closeNode(),!0}},{key:"parseOpen",value:function(m){if(this.parser)return this.parser.parseOpen(m),!0;if(m.name===this.tag)return this.model={autoFilterRef:m.attributes.ref,columns:[]},!0;if(this.parser=this.map[m.name],this.parser)return this.parseOpen(m),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(m)))}},{key:"parseText",value:function(m){this.parser&&this.parser.parseText(m)}},{key:"parseClose",value:function(m){if(this.parser)return this.parser.parseClose(m)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(m===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: ".concat(m))}}])}(h);c.exports=p},{"../base-xform":32,"./filter-column-xform":139}],138:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"customFilter"}},{key:"render",value:function(g,A){g.leafNode(this.tag,{val:A.val,operator:A.operator})}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.model={val:g.attributes.val,operator:g.attributes.operator},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],139:[function(a,c,u){var h=a("../base-xform"),d=a("../list-xform"),p=a("./custom-filter-xform"),g=a("./filter-xform"),A=function(m){function y(){var b;return Et(this,y),(b=Er(this,y)).map={customFilters:new d({tag:"customFilters",count:!1,empty:!0,childXform:new p}),filters:new d({tag:"filters",count:!1,empty:!0,childXform:new g})},b}return nr(y,m),xt(y,[{key:"tag",get:function(){return"filterColumn"}},{key:"prepare",value:function(b,I){b.colId=I.index.toString()}},{key:"render",value:function(b,I){return I.customFilters?(b.openNode(this.tag,{colId:I.colId,hiddenButton:I.filterButton?"0":"1"}),this.map.customFilters.render(b,I.customFilters),b.closeNode(),!0):(b.leafNode(this.tag,{colId:I.colId,hiddenButton:I.filterButton?"0":"1"}),!0)}},{key:"parseOpen",value:function(b){if(this.parser)return this.parser.parseOpen(b),!0;var I=b.attributes;if(b.name===this.tag)return this.model={filterButton:I.hiddenButton==="0"},!0;if(this.parser=this.map[b.name],this.parser)return this.parseOpen(b),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(b)))}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):b!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}])}(h);c.exports=A},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"filter"}},{key:"render",value:function(g,A){g.leafNode(this.tag,{val:A.val})}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.model={val:g.attributes.val},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],141:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"tableColumn"}},{key:"prepare",value:function(g,A){g.id=A.index+1}},{key:"render",value:function(g,A){return g.leafNode(this.tag,{id:A.id.toString(),name:A.name,totalsRowLabel:A.totalsRowLabel,totalsRowFunction:A.totalsRowFunction,dxfId:A.dxfId}),!0}},{key:"parseOpen",value:function(g){if(g.name===this.tag){var A=g.attributes;return this.model={name:A.name,totalsRowLabel:A.totalsRowLabel,totalsRowFunction:A.totalsRowFunction,dxfId:A.dxfId},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],142:[function(a,c,u){var h=function(d){function p(){return Et(this,p),Er(this,p,arguments)}return nr(p,d),xt(p,[{key:"tag",get:function(){return"tableStyleInfo"}},{key:"render",value:function(g,A){return g.leafNode(this.tag,{name:A.theme?A.theme:void 0,showFirstColumn:A.showFirstColumn?"1":"0",showLastColumn:A.showLastColumn?"1":"0",showRowStripes:A.showRowStripes?"1":"0",showColumnStripes:A.showColumnStripes?"1":"0"}),!0}},{key:"parseOpen",value:function(g){if(g.name===this.tag){var A=g.attributes;return this.model={theme:A.name?A.name:null,showFirstColumn:A.showFirstColumn==="1",showLastColumn:A.showLastColumn==="1",showRowStripes:A.showRowStripes==="1",showColumnStripes:A.showColumnStripes==="1"},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a("../base-xform"));c.exports=h},{"../base-xform":32}],143:[function(a,c,u){var h=a("../../../utils/xml-stream"),d=a("../base-xform"),p=a("../list-xform"),g=a("./auto-filter-xform"),A=a("./table-column-xform"),m=a("./table-style-info-xform"),y=function(b){function I(){var E;return Et(this,I),(E=Er(this,I)).map={autoFilter:new g,tableColumns:new p({tag:"tableColumns",count:!0,empty:!0,childXform:new A}),tableStyleInfo:new m},E}return nr(I,b),xt(I,[{key:"prepare",value:function(E,B){this.map.autoFilter.prepare(E),this.map.tableColumns.prepare(E.columns,B)}},{key:"tag",get:function(){return"table"}},{key:"render",value:function(E,B){E.openXml(h.StdDocAttributes),E.openNode(this.tag,Za(Za({},I.TABLE_ATTRIBUTES),{},{id:B.id,name:B.name,displayName:B.displayName||B.name,ref:B.tableRef,totalsRowCount:B.totalsRow?"1":void 0,totalsRowShown:B.totalsRow?void 0:"1",headerRowCount:B.headerRow?"1":"0"})),this.map.autoFilter.render(E,B),this.map.tableColumns.render(E,B.columns),this.map.tableStyleInfo.render(E,B.style),E.closeNode()}},{key:"parseOpen",value:function(E){if(this.parser)return this.parser.parseOpen(E),!0;var B=E.name,S=E.attributes;return B===this.tag?(this.reset(),this.model={name:S.name,displayName:S.displayName||S.name,tableRef:S.ref,totalsRow:S.totalsRowCount==="1",headerRow:S.headerRowCount==="1"}):(this.parser=this.map[E.name],this.parser&&this.parser.parseOpen(E)),!0}},{key:"parseText",value:function(E){this.parser&&this.parser.parseText(E)}},{key:"parseClose",value:function(E){var B=this;return this.parser?(this.parser.parseClose(E)||(this.parser=void 0),!0):E!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach(function(S,_){B.model.columns[_].filterButton=S.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1)}},{key:"reconcile",value:function(E,B){E.columns.forEach(function(S){S.dxfId!==void 0&&(S.style=B.styles.getDxfStyle(S.dxfId))})}}])}(d);y.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},c.exports=y},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(a,c,u){(function(h,d){(function(){var p=a("fs"),g=a("jszip"),A=a("readable-stream").PassThrough,m=a("../utils/zip-stream"),y=a("../utils/stream-buf"),b=a("../utils/utils"),I=a("../utils/xml-stream"),E=a("../utils/browser-buffer-decode").bufferToString,B=a("./xform/style/styles-xform"),S=a("./xform/core/core-xform"),_=a("./xform/strings/shared-strings-xform"),D=a("./xform/core/relationships-xform"),T=a("./xform/core/content-types-xform"),F=a("./xform/core/app-xform"),N=a("./xform/book/workbook-xform"),H=a("./xform/sheet/worksheet-xform"),W=a("./xform/drawing/drawing-xform"),V=a("./xform/table/table-xform"),te=a("./xform/comment/comments-xform"),ue=a("./xform/comment/vml-notes-xform"),fe=a("./xml/theme1");function de(we,Z){return new Promise(function(ne,j){p.readFile(we,Z,function(J,q){J?j(J):ne(q)})})}var Ae=function(){function we(Z){Et(this,we),this.workbook=Z}return xt(we,[{key:"readFile",value:function(){var Z=Sa(_n.mark(function j(J,q){var z,X;return _n.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,b.fs.exists(J);case 2:if(se.sent){se.next=4;break}throw new Error("File not found: ".concat(J));case 4:return z=p.createReadStream(J),se.prev=5,se.next=8,this.read(z,q);case 8:return X=se.sent,z.close(),se.abrupt("return",X);case 13:throw se.prev=13,se.t0=se.catch(5),z.close(),se.t0;case 17:case"end":return se.stop()}},j,this,[[5,13]])}));function ne(j,J){return Z.apply(this,arguments)}return ne}()},{key:"parseRels",value:function(Z){return new D().parseStream(Z)}},{key:"parseWorkbook",value:function(Z){return new N().parseStream(Z)}},{key:"parseSharedStrings",value:function(Z){return new _().parseStream(Z)}},{key:"reconcile",value:function(Z,ne){var j=new N,J=new H(ne),q=new W,z=new V;j.reconcile(Z);var X={media:Z.media,mediaIndex:Z.mediaIndex};Object.keys(Z.drawings).forEach(function(ye){var ae=Z.drawings[ye],me=Z.drawingRels[ye];me&&(X.rels=me.reduce(function(Fe,_e){return Fe[_e.Id]=_e,Fe},{}),(ae.anchors||[]).forEach(function(Fe){var _e=Fe.picture&&Fe.picture.hyperlinks;_e&&X.rels[_e.rId]&&(_e.hyperlink=X.rels[_e.rId].Target,delete _e.rId)}),q.reconcile(ae,X))});var se={styles:Z.styles};Object.values(Z.tables).forEach(function(ye){z.reconcile(ye,se)});var oe={styles:Z.styles,sharedStrings:Z.sharedStrings,media:Z.media,mediaIndex:Z.mediaIndex,date1904:Z.properties&&Z.properties.date1904,drawings:Z.drawings,comments:Z.comments,tables:Z.tables,vmlDrawings:Z.vmlDrawings};Z.worksheets.forEach(function(ye){ye.relationships=Z.worksheetRels[ye.sheetNo],J.reconcile(ye,oe)}),delete Z.worksheetHash,delete Z.worksheetRels,delete Z.globalRels,delete Z.sharedStrings,delete Z.workbookRels,delete Z.sheetDefs,delete Z.styles,delete Z.mediaIndex,delete Z.drawings,delete Z.drawingRels,delete Z.vmlDrawings}},{key:"_processWorksheetEntry",value:function(){var Z=Sa(_n.mark(function j(J,q,z,X,se){var oe,ye;return _n.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return oe=new H(X),ae.next=3,oe.parseStream(J);case 3:(ye=ae.sent).sheetNo=z,q.worksheetHash[se]=ye,q.worksheets.push(ye);case 7:case"end":return ae.stop()}},j)}));function ne(j,J,q,z,X){return Z.apply(this,arguments)}return ne}()},{key:"_processCommentEntry",value:function(){var Z=Sa(_n.mark(function j(J,q,z){var X,se;return _n.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return X=new te,oe.next=3,X.parseStream(J);case 3:se=oe.sent,q.comments["../".concat(z,".xml")]=se;case 5:case"end":return oe.stop()}},j)}));function ne(j,J,q){return Z.apply(this,arguments)}return ne}()},{key:"_processTableEntry",value:function(){var Z=Sa(_n.mark(function j(J,q,z){var X,se;return _n.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return X=new V,oe.next=3,X.parseStream(J);case 3:se=oe.sent,q.tables["../tables/".concat(z,".xml")]=se;case 5:case"end":return oe.stop()}},j)}));function ne(j,J,q){return Z.apply(this,arguments)}return ne}()},{key:"_processWorksheetRelsEntry",value:function(){var Z=Sa(_n.mark(function j(J,q,z){var X,se;return _n.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return X=new D,oe.next=3,X.parseStream(J);case 3:se=oe.sent,q.worksheetRels[z]=se;case 5:case"end":return oe.stop()}},j)}));function ne(j,J,q){return Z.apply(this,arguments)}return ne}()},{key:"_processMediaEntry",value:function(){var Z=Sa(_n.mark(function j(J,q,z){var X,se,oe;return _n.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(!((X=z.lastIndexOf("."))>=1)){ye.next=6;break}return se=z.substr(X+1),oe=z.substr(0,X),ye.next=6,new Promise(function(ae,me){var Fe=new y;Fe.on("finish",function(){q.mediaIndex[z]=q.media.length,q.mediaIndex[oe]=q.media.length;var _e={type:"image",name:oe,extension:se,buffer:Fe.toBuffer()};q.media.push(_e),ae()}),J.on("error",function(_e){me(_e)}),J.pipe(Fe)});case 6:case"end":return ye.stop()}},j)}));function ne(j,J,q){return Z.apply(this,arguments)}return ne}()},{key:"_processDrawingEntry",value:function(){var Z=Sa(_n.mark(function j(J,q,z){var X,se;return _n.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return X=new W,oe.next=3,X.parseStream(J);case 3:se=oe.sent,q.drawings[z]=se;case 5:case"end":return oe.stop()}},j)}));function ne(j,J,q){return Z.apply(this,arguments)}return ne}()},{key:"_processDrawingRelsEntry",value:function(){var Z=Sa(_n.mark(function j(J,q,z){var X,se;return _n.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return X=new D,oe.next=3,X.parseStream(J);case 3:se=oe.sent,q.drawingRels[z]=se;case 5:case"end":return oe.stop()}},j)}));function ne(j,J,q){return Z.apply(this,arguments)}return ne}()},{key:"_processVmlDrawingEntry",value:function(){var Z=Sa(_n.mark(function j(J,q,z){var X,se;return _n.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return X=new ue,oe.next=3,X.parseStream(J);case 3:se=oe.sent,q.vmlDrawings["../drawings/".concat(z,".vml")]=se;case 5:case"end":return oe.stop()}},j)}));function ne(j,J,q){return Z.apply(this,arguments)}return ne}()},{key:"_processThemeEntry",value:function(){var Z=Sa(_n.mark(function j(J,q,z){return _n.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,new Promise(function(se,oe){var ye=new y;J.on("error",oe),ye.on("error",oe),ye.on("finish",function(){q.themes[z]=ye.read().toString(),se()}),J.pipe(ye)});case 2:case"end":return X.stop()}},j)}));function ne(j,J,q){return Z.apply(this,arguments)}return ne}()},{key:"createInputStream",value:function(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:"read",value:function(){var Z=Sa(_n.mark(function j(J,q){var z,X,se,oe,ye,ae,me;return _n.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:!J[Symbol.asyncIterator]&&J.pipe&&(J=J.pipe(new A)),z=[],X=!1,se=!1,Fe.prev=4,ye=z0(J);case 6:return Fe.next=8,ye.next();case 8:if(!(X=!(ae=Fe.sent).done)){Fe.next=14;break}me=ae.value,z.push(me);case 11:X=!1,Fe.next=6;break;case 14:Fe.next=20;break;case 16:Fe.prev=16,Fe.t0=Fe.catch(4),se=!0,oe=Fe.t0;case 20:if(Fe.prev=20,Fe.prev=21,!X||ye.return==null){Fe.next=25;break}return Fe.next=25,ye.return();case 25:if(Fe.prev=25,!se){Fe.next=28;break}throw oe;case 28:return Fe.finish(25);case 29:return Fe.finish(20);case 30:return Fe.abrupt("return",this.load(d.concat(z),q));case 31:case"end":return Fe.stop()}},j,this,[[4,16,20,30],[21,,25,29]])}));function ne(j,J){return Z.apply(this,arguments)}return ne}()},{key:"load",value:function(){var Z=Sa(_n.mark(function j(J,q){var z,X,se,oe,ye,ae,me,Fe,_e,rt,et,st,Ge,Be,Te,je,lt;return _n.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return z=q&&q.base64?d.from(J.toString(),"base64"):J,X={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},Me.next=4,g.loadAsync(z);case 4:se=Me.sent,oe=0,ye=Object.values(se.files);case 6:if(!(oe0&&(me=new I,se.render(me,ae),J.append(me.xml,{name:"xl/comments".concat(ae.id,".xml")}),me=new I,oe.render(me,ae),J.append(me.xml,{name:"xl/drawings/vmlDrawing".concat(ae.id,".vml")}))});case 5:case"end":return ye.stop()}},j)}));function ne(j,J){return Z.apply(this,arguments)}return ne}()},{key:"_finalize",value:function(Z){var ne=this;return new Promise(function(j,J){Z.on("finish",function(){j(ne)}),Z.on("error",J),Z.finalize()})}},{key:"prepareModel",value:function(Z,ne){Z.creator=Z.creator||"ExcelJS",Z.lastModifiedBy=Z.lastModifiedBy||"ExcelJS",Z.created=Z.created||new Date,Z.modified=Z.modified||new Date,Z.useSharedStrings=ne.useSharedStrings===void 0||ne.useSharedStrings,Z.useStyles=ne.useStyles===void 0||ne.useStyles,Z.sharedStrings=new _,Z.styles=Z.useStyles?new B(!0):new B.Mock;var j=new N,J=new H;j.prepare(Z);var q={sharedStrings:Z.sharedStrings,styles:Z.styles,date1904:Z.properties.date1904,drawingsCount:0,media:Z.media};q.drawings=Z.drawings=[],q.commentRefs=Z.commentRefs=[];var z=0;Z.tables=[],Z.worksheets.forEach(function(X){X.tables.forEach(function(se){z++,se.target="table".concat(z,".xml"),se.id=z,Z.tables.push(se)}),J.prepare(X,q)})}},{key:"write",value:function(){var Z=Sa(_n.mark(function j(J,q){var z,X;return _n.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return q=q||{},z=this.workbook.model,(X=new m.ZipWriter(q.zip)).pipe(J),this.prepareModel(z,q),se.next=7,this.addContentTypes(X,z);case 7:return se.next=9,this.addOfficeRels(X,z);case 9:return se.next=11,this.addWorkbookRels(X,z);case 11:return se.next=13,this.addWorksheets(X,z);case 13:return se.next=15,this.addSharedStrings(X,z);case 15:return se.next=17,this.addDrawings(X,z);case 17:return se.next=19,this.addTables(X,z);case 19:return se.next=21,Promise.all([this.addThemes(X,z),this.addStyles(X,z)]);case 21:return se.next=23,this.addMedia(X,z);case 23:return se.next=25,Promise.all([this.addApp(X,z),this.addCore(X,z)]);case 25:return se.next=27,this.addWorkbook(X,z);case 27:return se.abrupt("return",this._finalize(X));case 28:case"end":return se.stop()}},j,this)}));function ne(j,J){return Z.apply(this,arguments)}return ne}()},{key:"writeFile",value:function(Z,ne){var j=this,J=p.createWriteStream(Z);return new Promise(function(q,z){J.on("finish",function(){q()}),J.on("error",function(X){z(X)}),j.write(J,ne).then(function(){J.end()}).catch(function(X){z(X)})})}},{key:"writeBuffer",value:function(){var Z=Sa(_n.mark(function j(J){var q;return _n.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return q=new y,z.next=3,this.write(q,J);case 3:return z.abrupt("return",q.read());case 4:case"end":return z.stop()}},j,this)}));function ne(j){return Z.apply(this,arguments)}return ne}()}])}();Ae.RelType=a("./rel-type"),c.exports=Ae}).call(this)}).call(this,a("_process"),a("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(a,c,u){c.exports=` `},{}],146:[function(a,c,u){(function(h){(function(){Object.defineProperty(u,"__esModule",{value:!0}),u.CsvFormatterStream=void 0;var d=a("stream"),p=a("./formatter"),g=function(A){function m(y){var b;return Et(this,m),(b=Er(this,m,[{writableObjectMode:y.objectMode}])).hasWrittenBOM=!1,b.formatterOptions=y,b.rowFormatter=new p.RowFormatter(y),b.hasWrittenBOM=!y.writeBOM,b}return nr(m,A),xt(m,[{key:"transform",value:function(y){return this.rowFormatter.rowTransform=y,this}},{key:"_transform",value:function(y,b,I){var E=this,B=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(y,function(S,_){return S?(B=!0,I(S)):(_&&_.forEach(function(D){E.push(h.from(D,"utf8"))}),B=!0,I())})}catch(S){if(B)throw S;I(S)}}},{key:"_flush",value:function(y){var b=this;this.rowFormatter.finish(function(I,E){return I?y(I):(E&&E.forEach(function(B){b.push(h.from(B,"utf8"))}),y())})}}])}(d.Transform);u.CsvFormatterStream=g}).call(this)}).call(this,a("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.FormatterOptions=void 0;var h=xt(function d(){Et(this,d);var p,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.objectMode=!0,this.delimiter=",",this.rowDelimiter=` `,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,g||{}),(g==null?void 0:g.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(g==null?void 0:g.quote)===!0?this.quote='"':(g==null?void 0:g.quote)===!1&&(this.quote=""),typeof(g==null?void 0:g.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((p=g.writeHeaders)===null||p===void 0||p),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote="".concat(this.escape).concat(this.quote)});u.FormatterOptions=h},{}],148:[function(a,c,u){var h=function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(u,"__esModule",{value:!0}),u.FieldFormatter=void 0;var d=h(a("lodash.isboolean")),p=h(a("lodash.isnil")),g=h(a("lodash.escaperegexp")),A=function(){function m(y){Et(this,m),this._headers=null,this.formatterOptions=y,y.headers!==null&&(this.headers=y.headers),this.REPLACE_REGEXP=new RegExp(y.quote,"g");var b="[".concat(y.delimiter).concat(g.default(y.rowDelimiter),`|\r| ]`);this.ESCAPE_REGEXP=new RegExp(b)}return xt(m,[{key:"headers",set:function(y){this._headers=y}},{key:"shouldQuote",value:function(y,b){var I=b?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return d.default(I)?I:Array.isArray(I)?I[y]:this._headers!==null&&I[this._headers[y]]}},{key:"format",value:function(y,b,I){var E="".concat(p.default(y)?"":y).replace(/\0/g,""),B=this.formatterOptions;return B.quote!==""&&E.indexOf(B.quote)!==-1?this.quoteField(E.replace(this.REPLACE_REGEXP,B.escapedQuote)):E.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(b,I)?this.quoteField(E):E}},{key:"quoteField",value:function(y){var b=this.formatterOptions.quote;return"".concat(b).concat(y).concat(b)}}])}();u.FieldFormatter=A},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(a,c,u){var h=function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(u,"__esModule",{value:!0}),u.RowFormatter=void 0;var d=h(a("lodash.isfunction")),p=h(a("lodash.isequal")),g=a("./FieldFormatter"),A=a("../types"),m=function(){function y(b){Et(this,y),this.rowCount=0,this.formatterOptions=b,this.fieldFormatter=new g.FieldFormatter(b),this.headers=b.headers,this.shouldWriteHeaders=b.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),b.transform&&(this.rowTransform=b.transform)}return xt(y,[{key:"rowTransform",set:function(b){if(!d.default(b))throw new TypeError("The transform should be a function");this._rowTransform=y.createTransform(b)}},{key:"format",value:function(b,I){var E=this;this.callTransformer(b,function(B,S){if(B)return I(B);if(!b)return I(null);var _=[];if(S){var D=E.checkHeaders(S),T=D.shouldFormatColumns,F=D.headers;if(E.shouldWriteHeaders&&F&&!E.hasWrittenHeaders&&(_.push(E.formatColumns(F,!0)),E.hasWrittenHeaders=!0),T){var N=E.gatherColumns(S);_.push(E.formatColumns(N,!1))}}return I(null,_)})}},{key:"finish",value:function(b){var I=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return b(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));I.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&I.push(this.formatterOptions.rowDelimiter),b(null,I)}},{key:"checkHeaders",value:function(b){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};var I=y.gatherHeaders(b);return this.headers=I,this.fieldFormatter.headers=I,this.shouldWriteHeaders?{shouldFormatColumns:!p.default(I,b),headers:I}:{shouldFormatColumns:!0,headers:null}}},{key:"gatherColumns",value:function(b){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(b)?y.isRowHashArray(b)?this.headers.map(function(I,E){var B=b[E];return B?B[1]:""}):y.isRowArray(b)&&!this.shouldWriteHeaders?b:this.headers.map(function(I,E){return b[E]}):this.headers.map(function(I){return b[I]})}},{key:"callTransformer",value:function(b,I){return this._rowTransform?this._rowTransform(b,I):I(null,b)}},{key:"formatColumns",value:function(b,I){var E=this,B=b.map(function(_,D){return E.fieldFormatter.format(_,D,I)}).join(this.formatterOptions.delimiter),S=this.rowCount;return this.rowCount+=1,S?[this.formatterOptions.rowDelimiter,B].join(""):B}}],[{key:"isRowHashArray",value:function(b){return!!Array.isArray(b)&&Array.isArray(b[0])&&b[0].length===2}},{key:"isRowArray",value:function(b){return Array.isArray(b)&&!this.isRowHashArray(b)}},{key:"gatherHeaders",value:function(b){return y.isRowHashArray(b)?b.map(function(I){return I[0]}):Array.isArray(b)?b:Object.keys(b)}},{key:"createTransform",value:function(b){return A.isSyncTransform(b)?function(I,E){var B=null;try{B=b(I)}catch(S){return E(S)}return E(null,B)}:function(I,E){b(I,E)}}}])}();u.RowFormatter=m},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.FieldFormatter=u.RowFormatter=void 0;var h=a("./RowFormatter");Object.defineProperty(u,"RowFormatter",{enumerable:!0,get:function(){return h.RowFormatter}});var d=a("./FieldFormatter");Object.defineProperty(u,"FieldFormatter",{enumerable:!0,get:function(){return d.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(a,c,u){(function(h){(function(){var d=Object.create?function(_,D,T,F){F===void 0&&(F=T),Object.defineProperty(_,F,{enumerable:!0,get:function(){return D[T]}})}:function(_,D,T,F){F===void 0&&(F=T),_[F]=D[T]},p=Object.create?function(_,D){Object.defineProperty(_,"default",{enumerable:!0,value:D})}:function(_,D){_.default=D},g=function(_){if(_&&_.__esModule)return _;var D={};if(_!=null)for(var T in _)T!=="default"&&Object.prototype.hasOwnProperty.call(_,T)&&d(D,_,T);return p(D,_),D},A=function(_,D){for(var T in _)T==="default"||Object.prototype.hasOwnProperty.call(D,T)||d(D,_,T)};Object.defineProperty(u,"__esModule",{value:!0}),u.writeToPath=u.writeToString=u.writeToBuffer=u.writeToStream=u.write=u.format=u.FormatterOptions=u.CsvFormatterStream=void 0;var m=a("util"),y=a("stream"),b=g(a("fs")),I=a("./FormatterOptions"),E=a("./CsvFormatterStream");A(a("./types"),u);var B=a("./CsvFormatterStream");Object.defineProperty(u,"CsvFormatterStream",{enumerable:!0,get:function(){return B.CsvFormatterStream}});var S=a("./FormatterOptions");Object.defineProperty(u,"FormatterOptions",{enumerable:!0,get:function(){return S.FormatterOptions}}),u.format=function(_){return new E.CsvFormatterStream(new I.FormatterOptions(_))},u.write=function(_,D){var T=u.format(D),F=m.promisify(function(N,H){T.write(N,void 0,H)});return _.reduce(function(N,H){return N.then(function(){return F(H)})},Promise.resolve()).then(function(){return T.end()}).catch(function(N){T.emit("error",N)}),T},u.writeToStream=function(_,D,T){return u.write(D,T).pipe(_)},u.writeToBuffer=function(_){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=[],F=new y.Writable({write:function(N,H,W){T.push(N),W()}});return new Promise(function(N,H){F.on("error",H).on("finish",function(){return N(h.concat(T))}),u.write(_,D).pipe(F)})},u.writeToString=function(_,D){return u.writeToBuffer(_,D).then(function(T){return T.toString()})},u.writeToPath=function(_,D,T){var F=b.createWriteStream(_,{encoding:"utf8"});return u.write(D,T).pipe(F)}}).call(this)}).call(this,a("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.isSyncTransform=void 0,u.isSyncTransform=function(h){return h.length===1}},{}],153:[function(a,c,u){(function(h){(function(){Object.defineProperty(u,"__esModule",{value:!0}),u.CsvParserStream=void 0;var d=a("string_decoder"),p=a("stream"),g=a("./transforms"),A=a("./parser"),m=function(y){function b(I){var E;return Et(this,b),(E=Er(this,b,[{objectMode:I.objectMode}])).lines="",E.rowCount=0,E.parsedRowCount=0,E.parsedLineCount=0,E.endEmitted=!1,E.headersEmitted=!1,E.parserOptions=I,E.parser=new A.Parser(I),E.headerTransformer=new g.HeaderTransformer(I),E.decoder=new d.StringDecoder(I.encoding),E.rowTransformerValidator=new g.RowTransformerValidator,E}return nr(b,y),xt(b,[{key:"hasHitRowLimit",get:function(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}},{key:"shouldEmitRows",get:function(){return this.parsedRowCount>this.parserOptions.skipRows}},{key:"shouldSkipLine",get:function(){return this.parsedLineCount<=this.parserOptions.skipLines}},{key:"transform",value:function(I){return this.rowTransformerValidator.rowTransform=I,this}},{key:"validate",value:function(I){return this.rowTransformerValidator.rowValidator=I,this}},{key:"emit",value:function(I){if(I==="end")return this.endEmitted||(this.endEmitted=!0,ty(b,"emit",this,3)(["end",this.rowCount])),!1;for(var E=arguments.length,B=new Array(E>1?E-1:0),S=1;S=S||B.hasHitRowLimit)return E();if(B.parsedLineCount+=1,B.shouldSkipLine)return T();var F=I[D];B.rowCount+=1,B.parsedRowCount+=1;var N=B.rowCount;return B.transformRow(F,function(H,W){if(H)return B.rowCount-=1,T(H);if(!W)return T(new Error("expected transform result"));if(W.isValid){if(W.row)return B.pushRow(W.row,T)}else B.emit("data-invalid",W.row,N,W.reason);return T()})};_(0)}},{key:"transformRow",value:function(I,E){var B=this;try{this.headerTransformer.transform(I,function(S,_){return S?E(S):_?_.isValid?_.row?B.shouldEmitRows?B.rowTransformerValidator.transformAndValidate(_.row,E):B.skipRow(E):(B.rowCount-=1,B.parsedRowCount-=1,E(null,{row:null,isValid:!0})):B.shouldEmitRows?E(null,{isValid:!1,row:I}):B.skipRow(E):E(new Error("Expected result from header transform"))})}catch(S){E(S)}}},{key:"checkAndEmitHeaders",value:function(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}},{key:"skipRow",value:function(I){return this.rowCount-=1,I(null,{row:null,isValid:!0})}},{key:"pushRow",value:function(I,E){try{this.parserOptions.objectMode?this.push(I):this.push(JSON.stringify(I)),E()}catch(B){E(B)}}}],[{key:"wrapDoneCallback",value:function(I){var E=!1;return function(B){if(B){if(E)throw B;return E=!0,void I(B)}for(var S=arguments.length,_=new Array(S>1?S-1:0),D=1;D1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=d.default(this.delimiter),this.escapeChar=(y=this.escape)!==null&&y!==void 0?y:this.quote,this.supportsComments=!p.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp("([^\\s]|\\r\\n|\\n|\\r|".concat(this.escapedDelimiter,")")),this.maxRows>0&&(this.limitRows=!0)});u.ParserOptions=g},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(a,c,u){var h=Object.create?function(B,S,_,D){D===void 0&&(D=_),Object.defineProperty(B,D,{enumerable:!0,get:function(){return S[_]}})}:function(B,S,_,D){D===void 0&&(D=_),B[D]=S[_]},d=Object.create?function(B,S){Object.defineProperty(B,"default",{enumerable:!0,value:S})}:function(B,S){B.default=S},p=function(B){if(B&&B.__esModule)return B;var S={};if(B!=null)for(var _ in B)_!=="default"&&Object.prototype.hasOwnProperty.call(B,_)&&h(S,B,_);return d(S,B),S},g=function(B,S){for(var _ in B)_==="default"||Object.prototype.hasOwnProperty.call(S,_)||h(S,B,_)};Object.defineProperty(u,"__esModule",{value:!0}),u.parseString=u.parseFile=u.parseStream=u.parse=u.ParserOptions=u.CsvParserStream=void 0;var A=p(a("fs")),m=a("stream"),y=a("./ParserOptions"),b=a("./CsvParserStream");g(a("./types"),u);var I=a("./CsvParserStream");Object.defineProperty(u,"CsvParserStream",{enumerable:!0,get:function(){return I.CsvParserStream}});var E=a("./ParserOptions");Object.defineProperty(u,"ParserOptions",{enumerable:!0,get:function(){return E.ParserOptions}}),u.parse=function(B){return new b.CsvParserStream(new y.ParserOptions(B))},u.parseStream=function(B,S){return B.pipe(new b.CsvParserStream(new y.ParserOptions(S)))},u.parseFile=function(B){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return A.createReadStream(B).pipe(new b.CsvParserStream(new y.ParserOptions(S)))},u.parseString=function(B,S){var _=new m.Readable;return _.push(B),_.push(null),_.pipe(new b.CsvParserStream(new y.ParserOptions(S)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.Parser=void 0;var h=a("./Scanner"),d=a("./RowParser"),p=a("./Token"),g=function(){function A(m){Et(this,A),this.parserOptions=m,this.rowParser=new d.RowParser(this.parserOptions)}return xt(A,[{key:"parse",value:function(m,y){var b=new h.Scanner({line:A.removeBOM(m),parserOptions:this.parserOptions,hasMoreData:y});return this.parserOptions.supportsComments?this.parseWithComments(b):this.parseWithoutComments(b)}},{key:"parseWithoutComments",value:function(m){for(var y=[],b=!0;b;)b=this.parseRow(m,y);return{line:m.line,rows:y}}},{key:"parseWithComments",value:function(m){for(var y=this.parserOptions,b=[],I=m.nextCharacterToken;I!==null;I=m.nextCharacterToken)if(p.Token.isTokenComment(I,y)){if(m.advancePastLine()===null)return{line:m.lineFromCursor,rows:b};if(!m.hasMoreCharacters)return{line:m.lineFromCursor,rows:b};m.truncateToCursor()}else if(!this.parseRow(m,b))break;return{line:m.line,rows:b}}},{key:"parseRow",value:function(m,y){if(!m.nextNonSpaceToken)return!1;var b=this.rowParser.parse(m);return b!==null&&(this.parserOptions.ignoreEmpty&&d.RowParser.isEmptyRow(b)||y.push(b),!0)}}],[{key:"removeBOM",value:function(m){return m&&m.charCodeAt(0)===65279?m.slice(1):m}}])}();u.Parser=g},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.RowParser=void 0;var h=a("./column"),d=a("./Token"),p="",g=function(){function A(m){Et(this,A),this.parserOptions=m,this.columnParser=new h.ColumnParser(m)}return xt(A,[{key:"parse",value:function(m){for(var y=this.parserOptions,b=m.hasMoreData,I=m,E=[],B=this.getStartToken(I,E);B;){if(d.Token.isTokenRowDelimiter(B))return I.advancePastToken(B),!I.hasMoreCharacters&&d.Token.isTokenCarriageReturn(B,y)&&b?null:(I.truncateToCursor(),E);if(!this.shouldSkipColumnParse(I,B,E)){var S=this.columnParser.parse(I);if(S===null)return null;E.push(S)}B=I.nextNonSpaceToken}return b?null:(I.truncateToCursor(),E)}},{key:"getStartToken",value:function(m,y){var b=m.nextNonSpaceToken;return b!==null&&d.Token.isTokenDelimiter(b,this.parserOptions)?(y.push(""),m.nextNonSpaceToken):b}},{key:"shouldSkipColumnParse",value:function(m,y,b){var I=this.parserOptions;if(d.Token.isTokenDelimiter(y,I)){m.advancePastToken(y);var E=m.nextCharacterToken;if(!m.hasMoreCharacters||E!==null&&d.Token.isTokenRowDelimiter(E)||E!==null&&d.Token.isTokenDelimiter(E,I))return b.push(""),!0}return!1}}],[{key:"isEmptyRow",value:function(m){return m.join(p).replace(/\s+/g,p)===p}}])}();u.RowParser=g},{"./Token":159,"./column":164}],158:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.Scanner=void 0;var h=a("./Token"),d=/((?:\r\n)|\n|\r)/,p=function(){function g(A){Et(this,g),this.cursor=0,this.line=A.line,this.lineLength=this.line.length,this.parserOptions=A.parserOptions,this.hasMoreData=A.hasMoreData,this.cursor=A.cursor||0}return xt(g,[{key:"hasMoreCharacters",get:function(){return this.lineLength>this.cursor}},{key:"nextNonSpaceToken",get:function(){var A=this.lineFromCursor,m=this.parserOptions.NEXT_TOKEN_REGEXP;if(A.search(m)===-1)return null;var y=m.exec(A);if(y==null)return null;var b=y[1],I=this.cursor+(y.index||0);return new h.Token({token:b,startCursor:I,endCursor:I+b.length-1})}},{key:"nextCharacterToken",get:function(){var A=this.cursor;return this.lineLength<=A?null:new h.Token({token:this.line[A],startCursor:A,endCursor:A})}},{key:"lineFromCursor",get:function(){return this.line.substr(this.cursor)}},{key:"advancePastLine",value:function(){var A=d.exec(this.lineFromCursor);return A?(this.cursor+=(A.index||0)+A[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}},{key:"advanceTo",value:function(A){return this.cursor=A,this}},{key:"advanceToToken",value:function(A){return this.cursor=A.startCursor,this}},{key:"advancePastToken",value:function(A){return this.cursor=A.endCursor+1,this}},{key:"truncateToCursor",value:function(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}])}();u.Scanner=p},{"./Token":159}],159:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.Token=void 0;var h=function(){function d(p){Et(this,d),this.token=p.token,this.startCursor=p.startCursor,this.endCursor=p.endCursor}return xt(d,null,[{key:"isTokenRowDelimiter",value:function(p){var g=p.token;return g==="\r"||g===` `||g===`\r `}},{key:"isTokenCarriageReturn",value:function(p,g){return p.token===g.carriageReturn}},{key:"isTokenComment",value:function(p,g){return g.supportsComments&&!!p&&p.token===g.comment}},{key:"isTokenEscapeCharacter",value:function(p,g){return p.token===g.escapeChar}},{key:"isTokenQuote",value:function(p,g){return p.token===g.quote}},{key:"isTokenDelimiter",value:function(p,g){return p.token===g.delimiter}}])}();u.Token=h},{}],160:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.ColumnFormatter=void 0;var h=xt(function d(p){Et(this,d),p.trim?this.format=function(g){return g.trim()}:p.ltrim?this.format=function(g){return g.trimLeft()}:p.rtrim?this.format=function(g){return g.trimRight()}:this.format=function(g){return g}});u.ColumnFormatter=h},{}],161:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.ColumnParser=void 0;var h=a("./NonQuotedColumnParser"),d=a("./QuotedColumnParser"),p=a("../Token"),g=function(){function A(m){Et(this,A),this.parserOptions=m,this.quotedColumnParser=new d.QuotedColumnParser(m),this.nonQuotedColumnParser=new h.NonQuotedColumnParser(m)}return xt(A,[{key:"parse",value:function(m){var y=m.nextNonSpaceToken;return y!==null&&p.Token.isTokenQuote(y,this.parserOptions)?(m.advanceToToken(y),this.quotedColumnParser.parse(m)):this.nonQuotedColumnParser.parse(m)}}])}();u.ColumnParser=g},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.NonQuotedColumnParser=void 0;var h=a("./ColumnFormatter"),d=a("../Token"),p=function(){function g(A){Et(this,g),this.parserOptions=A,this.columnFormatter=new h.ColumnFormatter(A)}return xt(g,[{key:"parse",value:function(A){if(!A.hasMoreCharacters)return null;for(var m=this.parserOptions,y=[],b=A.nextCharacterToken;b&&!d.Token.isTokenDelimiter(b,m)&&!d.Token.isTokenRowDelimiter(b);b=A.nextCharacterToken)y.push(b.token),A.advancePastToken(b);return this.columnFormatter.format(y.join(""))}}])}();u.NonQuotedColumnParser=p},{"../Token":159,"./ColumnFormatter":160}],163:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.QuotedColumnParser=void 0;var h=a("./ColumnFormatter"),d=a("../Token"),p=function(){function g(A){Et(this,g),this.parserOptions=A,this.columnFormatter=new h.ColumnFormatter(A)}return xt(g,[{key:"parse",value:function(A){if(!A.hasMoreCharacters)return null;var m=A.cursor,y=this.gatherDataBetweenQuotes(A),b=y.foundClosingQuote,I=y.col;if(!b){if(A.advanceTo(m),!A.hasMoreData)throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote||"","' in line: at '").concat(A.lineFromCursor.replace(/[\r\n]/g,"\\n'"),"'"));return null}return this.checkForMalformedColumn(A),I}},{key:"gatherDataBetweenQuotes",value:function(A){for(var m=this.parserOptions,y=!1,b=!1,I=[],E=A.nextCharacterToken;!b&&E!==null;E=A.nextCharacterToken){var B=d.Token.isTokenQuote(E,m);if(!y&&B)y=!0;else if(y)if(d.Token.isTokenEscapeCharacter(E,m)){A.advancePastToken(E);var S=A.nextCharacterToken;S!==null&&(d.Token.isTokenQuote(S,m)||d.Token.isTokenEscapeCharacter(S,m))?(I.push(S.token),E=S):B?b=!0:I.push(E.token)}else B?b=!0:I.push(E.token);A.advancePastToken(E)}return{col:this.columnFormatter.format(I.join("")),foundClosingQuote:b}}},{key:"checkForMalformedColumn",value:function(A){var m=this.parserOptions,y=A.nextNonSpaceToken;if(y){var b=d.Token.isTokenDelimiter(y,m),I=d.Token.isTokenRowDelimiter(y);if(!b&&!I){var E=A.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error("Parse Error: expected: '".concat(m.escapedDelimiter,"' OR new line got: '").concat(y.token,"'. at '").concat(E))}A.advanceToToken(y)}else A.hasMoreData||A.advancePastLine()}}])}();u.QuotedColumnParser=p},{"../Token":159,"./ColumnFormatter":160}],164:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.ColumnFormatter=u.QuotedColumnParser=u.NonQuotedColumnParser=u.ColumnParser=void 0;var h=a("./ColumnParser");Object.defineProperty(u,"ColumnParser",{enumerable:!0,get:function(){return h.ColumnParser}});var d=a("./NonQuotedColumnParser");Object.defineProperty(u,"NonQuotedColumnParser",{enumerable:!0,get:function(){return d.NonQuotedColumnParser}});var p=a("./QuotedColumnParser");Object.defineProperty(u,"QuotedColumnParser",{enumerable:!0,get:function(){return p.QuotedColumnParser}});var g=a("./ColumnFormatter");Object.defineProperty(u,"ColumnFormatter",{enumerable:!0,get:function(){return g.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.QuotedColumnParser=u.NonQuotedColumnParser=u.ColumnParser=u.Token=u.Scanner=u.RowParser=u.Parser=void 0;var h=a("./Parser");Object.defineProperty(u,"Parser",{enumerable:!0,get:function(){return h.Parser}});var d=a("./RowParser");Object.defineProperty(u,"RowParser",{enumerable:!0,get:function(){return d.RowParser}});var p=a("./Scanner");Object.defineProperty(u,"Scanner",{enumerable:!0,get:function(){return p.Scanner}});var g=a("./Token");Object.defineProperty(u,"Token",{enumerable:!0,get:function(){return g.Token}});var A=a("./column");Object.defineProperty(u,"ColumnParser",{enumerable:!0,get:function(){return A.ColumnParser}}),Object.defineProperty(u,"NonQuotedColumnParser",{enumerable:!0,get:function(){return A.NonQuotedColumnParser}}),Object.defineProperty(u,"QuotedColumnParser",{enumerable:!0,get:function(){return A.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(a,c,u){var h=function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(u,"__esModule",{value:!0}),u.HeaderTransformer=void 0;var d=h(a("lodash.isundefined")),p=h(a("lodash.isfunction")),g=h(a("lodash.uniq")),A=h(a("lodash.groupby")),m=function(){function y(b){Et(this,y),this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=b,b.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(b.headers)?this.setHeaders(b.headers):p.default(b.headers)&&(this.headersTransform=b.headers)}return xt(y,[{key:"transform",value:function(b,I){return this.shouldMapRow(b)?I(null,this.processRow(b)):I(null,{row:null,isValid:!0})}},{key:"shouldMapRow",value:function(b){var I=this.parserOptions;if(!this.headersTransform&&I.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(b)){if(this.headersTransform)this.setHeaders(this.headersTransform(b));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(b)}return!1}return!0}},{key:"processRow",value:function(b){if(!this.headers)return{row:b,isValid:!0};var I=this.parserOptions;if(!I.discardUnmappedColumns&&b.length>this.headersLength){if(!I.strictColumnHandling)throw new Error("Unexpected Error: column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(b.length));return{row:b,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(b.length)}}return I.strictColumnHandling&&b.length1});throw new Error("Duplicate headers found ".concat(JSON.stringify(S)))}this.headers=b,this.receivedHeaders=!0,this.headersLength=((I=this.headers)===null||I===void 0?void 0:I.length)||0}}])}();u.HeaderTransformer=m},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(a,c,u){var h=function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(u,"__esModule",{value:!0}),u.RowTransformerValidator=void 0;var d=h(a("lodash.isfunction")),p=a("../types"),g=function(){function A(){Et(this,A),this._rowTransform=null,this._rowValidator=null}return xt(A,[{key:"rowTransform",set:function(m){if(!d.default(m))throw new TypeError("The transform should be a function");this._rowTransform=A.createTransform(m)}},{key:"rowValidator",set:function(m){if(!d.default(m))throw new TypeError("The validate should be a function");this._rowValidator=A.createValidator(m)}},{key:"transformAndValidate",value:function(m,y){var b=this;return this.callTransformer(m,function(I,E){return I?y(I):E?b.callValidator(E,function(B,S){return B?y(B):S&&!S.isValid?y(null,{row:E,isValid:!1,reason:S.reason}):y(null,{row:E,isValid:!0})}):y(null,{row:null,isValid:!0})})}},{key:"callTransformer",value:function(m,y){return this._rowTransform?this._rowTransform(m,y):y(null,m)}},{key:"callValidator",value:function(m,y){return this._rowValidator?this._rowValidator(m,y):y(null,{row:m,isValid:!0})}}],[{key:"createTransform",value:function(m){return p.isSyncTransform(m)?function(y,b){var I=null;try{I=m(y)}catch(E){return b(E)}return b(null,I)}:m}},{key:"createValidator",value:function(m){return p.isSyncValidate(m)?function(y,b){b(null,{row:y,isValid:m(y)})}:function(y,b){m(y,function(I,E,B){return I?b(I):b(null,E?{row:y,isValid:E,reason:B}:{row:y,isValid:!1,reason:B})})}}}])}();u.RowTransformerValidator=g},{"../types":169,"lodash.isfunction":446}],168:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.HeaderTransformer=u.RowTransformerValidator=void 0;var h=a("./RowTransformerValidator");Object.defineProperty(u,"RowTransformerValidator",{enumerable:!0,get:function(){return h.RowTransformerValidator}});var d=a("./HeaderTransformer");Object.defineProperty(u,"HeaderTransformer",{enumerable:!0,get:function(){return d.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.isSyncValidate=u.isSyncTransform=void 0,u.isSyncTransform=function(h){return h.length===1},u.isSyncValidate=function(h){return h.length===1}},{}],170:[function(a,c,u){var h=u;h.bignum=a("bn.js"),h.define=a("./asn1/api").define,h.base=a("./asn1/base"),h.constants=a("./asn1/constants"),h.decoders=a("./asn1/decoders"),h.encoders=a("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(a,c,u){var h=a("./encoders"),d=a("./decoders"),p=a("inherits");function g(A,m){this.name=A,this.body=m,this.decoders={},this.encoders={}}u.define=function(A,m){return new g(A,m)},g.prototype._createNamed=function(A){var m=this.name;function y(b){this._initNamed(b,m)}return p(y,A),y.prototype._initNamed=function(b,I){A.call(this,b,I)},new y(this)},g.prototype._getDecoder=function(A){return A=A||"der",this.decoders.hasOwnProperty(A)||(this.decoders[A]=this._createNamed(d[A])),this.decoders[A]},g.prototype.decode=function(A,m,y){return this._getDecoder(m).decode(A,y)},g.prototype._getEncoder=function(A){return A=A||"der",this.encoders.hasOwnProperty(A)||(this.encoders[A]=this._createNamed(h[A])),this.encoders[A]},g.prototype.encode=function(A,m,y){return this._getEncoder(m).encode(A,y)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(a,c,u){var h=a("inherits"),d=a("../base/reporter").Reporter,p=a("safer-buffer").Buffer;function g(m,y){d.call(this,y),p.isBuffer(m)?(this.base=m,this.offset=0,this.length=m.length):this.error("Input not Buffer")}function A(m,y){if(Array.isArray(m))this.length=0,this.value=m.map(function(b){return A.isEncoderBuffer(b)||(b=new A(b,y)),this.length+=b.length,b},this);else if(typeof m=="number"){if(!(0<=m&&m<=255))return y.error("non-byte EncoderBuffer value");this.value=m,this.length=1}else if(typeof m=="string")this.value=m,this.length=p.byteLength(m);else{if(!p.isBuffer(m))return y.error("Unsupported type: "+typeof m);this.value=m,this.length=m.length}}h(g,d),u.DecoderBuffer=g,g.isDecoderBuffer=function(m){return m instanceof g||typeof m=="object"&&p.isBuffer(m.base)&&m.constructor.name==="DecoderBuffer"&&typeof m.offset=="number"&&typeof m.length=="number"&&typeof m.save=="function"&&typeof m.restore=="function"&&typeof m.isEmpty=="function"&&typeof m.readUInt8=="function"&&typeof m.skip=="function"&&typeof m.raw=="function"},g.prototype.save=function(){return{offset:this.offset,reporter:d.prototype.save.call(this)}},g.prototype.restore=function(m){var y=new g(this.base);return y.offset=m.offset,y.length=this.offset,this.offset=m.offset,d.prototype.restore.call(this,m.reporter),y},g.prototype.isEmpty=function(){return this.offset===this.length},g.prototype.readUInt8=function(m){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(m||"DecoderBuffer overrun")},g.prototype.skip=function(m,y){if(!(this.offset+m<=this.length))return this.error(y||"DecoderBuffer overrun");var b=new g(this.base);return b._reporterState=this._reporterState,b.offset=this.offset,b.length=this.offset+m,this.offset+=m,b},g.prototype.raw=function(m){return this.base.slice(m?m.offset:this.offset,this.length)},u.EncoderBuffer=A,A.isEncoderBuffer=function(m){return m instanceof A||typeof m=="object"&&m.constructor.name==="EncoderBuffer"&&typeof m.length=="number"&&typeof m.join=="function"},A.prototype.join=function(m,y){return m||(m=p.alloc(this.length)),y||(y=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(b){b.join(m,y),y+=b.length}):(typeof this.value=="number"?m[y]=this.value:typeof this.value=="string"?m.write(this.value,y):p.isBuffer(this.value)&&this.value.copy(m,y),y+=this.length)),m}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(a,c,u){var h=u;h.Reporter=a("./reporter").Reporter,h.DecoderBuffer=a("./buffer").DecoderBuffer,h.EncoderBuffer=a("./buffer").EncoderBuffer,h.Node=a("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(a,c,u){var h=a("../base/reporter").Reporter,d=a("../base/buffer").EncoderBuffer,p=a("../base/buffer").DecoderBuffer,g=a("minimalistic-assert"),A=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],m=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(A),y=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function b(E,B,S){var _={};this._baseState=_,_.name=S,_.enc=E,_.parent=B||null,_.children=null,_.tag=null,_.args=null,_.reverseArgs=null,_.choice=null,_.optional=!1,_.any=!1,_.obj=!1,_.use=null,_.useDecoder=null,_.key=null,_.default=null,_.explicit=null,_.implicit=null,_.contains=null,_.parent||(_.children=[],this._wrap())}c.exports=b;var I=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];b.prototype.clone=function(){var E=this._baseState,B={};I.forEach(function(_){B[_]=E[_]});var S=new this.constructor(B.parent);return S._baseState=B,S},b.prototype._wrap=function(){var E=this._baseState;m.forEach(function(B){this[B]=function(){var S=new this.constructor(this);return E.children.push(S),S[B].apply(S,arguments)}},this)},b.prototype._init=function(E){var B=this._baseState;g(B.parent===null),E.call(this),B.children=B.children.filter(function(S){return S._baseState.parent===this},this),g.equal(B.children.length,1,"Root node can have only one child")},b.prototype._useArgs=function(E){var B=this._baseState,S=E.filter(function(_){return _ instanceof this.constructor},this);E=E.filter(function(_){return!(_ instanceof this.constructor)},this),S.length!==0&&(g(B.children===null),B.children=S,S.forEach(function(_){_._baseState.parent=this},this)),E.length!==0&&(g(B.args===null),B.args=E,B.reverseArgs=E.map(function(_){if(typeof _!="object"||_.constructor!==Object)return _;var D={};return Object.keys(_).forEach(function(T){T==(0|T)&&(T|=0);var F=_[T];D[F]=T}),D}))},y.forEach(function(E){b.prototype[E]=function(){var B=this._baseState;throw new Error(E+" not implemented for encoding: "+B.enc)}}),A.forEach(function(E){b.prototype[E]=function(){var B=this._baseState,S=Array.prototype.slice.call(arguments);return g(B.tag===null),B.tag=E,this._useArgs(S),this}}),b.prototype.use=function(E){g(E);var B=this._baseState;return g(B.use===null),B.use=E,this},b.prototype.optional=function(){return this._baseState.optional=!0,this},b.prototype.def=function(E){var B=this._baseState;return g(B.default===null),B.default=E,B.optional=!0,this},b.prototype.explicit=function(E){var B=this._baseState;return g(B.explicit===null&&B.implicit===null),B.explicit=E,this},b.prototype.implicit=function(E){var B=this._baseState;return g(B.explicit===null&&B.implicit===null),B.implicit=E,this},b.prototype.obj=function(){var E=this._baseState,B=Array.prototype.slice.call(arguments);return E.obj=!0,B.length!==0&&this._useArgs(B),this},b.prototype.key=function(E){var B=this._baseState;return g(B.key===null),B.key=E,this},b.prototype.any=function(){return this._baseState.any=!0,this},b.prototype.choice=function(E){var B=this._baseState;return g(B.choice===null),B.choice=E,this._useArgs(Object.keys(E).map(function(S){return E[S]})),this},b.prototype.contains=function(E){var B=this._baseState;return g(B.use===null),B.contains=E,this},b.prototype._decode=function(E,B){var S=this._baseState;if(S.parent===null)return E.wrapResult(S.children[0]._decode(E,B));var _,D=S.default,T=!0,F=null;if(S.key!==null&&(F=E.enterKey(S.key)),S.optional){var N=null;if(S.explicit!==null?N=S.explicit:S.implicit!==null?N=S.implicit:S.tag!==null&&(N=S.tag),N!==null||S.any){if(T=this._peekTag(E,N,S.any),E.isError(T))return T}else{var H=E.save();try{S.choice===null?this._decodeGeneric(S.tag,E,B):this._decodeChoice(E,B),T=!0}catch{T=!1}E.restore(H)}}if(S.obj&&T&&(_=E.enterObject()),T){if(S.explicit!==null){var W=this._decodeTag(E,S.explicit);if(E.isError(W))return W;E=W}var V=E.offset;if(S.use===null&&S.choice===null){var te;S.any&&(te=E.save());var ue=this._decodeTag(E,S.implicit!==null?S.implicit:S.tag,S.any);if(E.isError(ue))return ue;S.any?D=E.raw(te):E=ue}if(B&&B.track&&S.tag!==null&&B.track(E.path(),V,E.length,"tagged"),B&&B.track&&S.tag!==null&&B.track(E.path(),E.offset,E.length,"content"),S.any||(D=S.choice===null?this._decodeGeneric(S.tag,E,B):this._decodeChoice(E,B)),E.isError(D))return D;if(S.any||S.choice!==null||S.children===null||S.children.forEach(function(de){de._decode(E,B)}),S.contains&&(S.tag==="octstr"||S.tag==="bitstr")){var fe=new p(D);D=this._getUse(S.contains,E._reporterState.obj)._decode(fe,B)}}return S.obj&&T&&(D=E.leaveObject(_)),S.key===null||D===null&&T!==!0?F!==null&&E.exitKey(F):E.leaveKey(F,S.key,D),D},b.prototype._decodeGeneric=function(E,B,S){var _=this._baseState;return E==="seq"||E==="set"?null:E==="seqof"||E==="setof"?this._decodeList(B,E,_.args[0],S):/str$/.test(E)?this._decodeStr(B,E,S):E==="objid"&&_.args?this._decodeObjid(B,_.args[0],_.args[1],S):E==="objid"?this._decodeObjid(B,null,null,S):E==="gentime"||E==="utctime"?this._decodeTime(B,E,S):E==="null_"?this._decodeNull(B,S):E==="bool"?this._decodeBool(B,S):E==="objDesc"?this._decodeStr(B,E,S):E==="int"||E==="enum"?this._decodeInt(B,_.args&&_.args[0],S):_.use!==null?this._getUse(_.use,B._reporterState.obj)._decode(B,S):B.error("unknown tag: "+E)},b.prototype._getUse=function(E,B){var S=this._baseState;return S.useDecoder=this._use(E,B),g(S.useDecoder._baseState.parent===null),S.useDecoder=S.useDecoder._baseState.children[0],S.implicit!==S.useDecoder._baseState.implicit&&(S.useDecoder=S.useDecoder.clone(),S.useDecoder._baseState.implicit=S.implicit),S.useDecoder},b.prototype._decodeChoice=function(E,B){var S=this._baseState,_=null,D=!1;return Object.keys(S.choice).some(function(T){var F=E.save(),N=S.choice[T];try{var H=N._decode(E,B);if(E.isError(H))return!1;_={type:T,value:H},D=!0}catch{return E.restore(F),!1}return!0},this),D?_:E.error("Choice not matched")},b.prototype._createEncoderBuffer=function(E){return new d(E,this.reporter)},b.prototype._encode=function(E,B,S){var _=this._baseState;if(_.default===null||_.default!==E){var D=this._encodeValue(E,B,S);if(D!==void 0&&!this._skipDefault(D,B,S))return D}},b.prototype._encodeValue=function(E,B,S){var _=this._baseState;if(_.parent===null)return _.children[0]._encode(E,B||new h);var D=null;if(this.reporter=B,_.optional&&E===void 0){if(_.default===null)return;E=_.default}var T=null,F=!1;if(_.any)D=this._createEncoderBuffer(E);else if(_.choice)D=this._encodeChoice(E,B);else if(_.contains)T=this._getUse(_.contains,S)._encode(E,B),F=!0;else if(_.children)T=_.children.map(function(V){if(V._baseState.tag==="null_")return V._encode(null,B,E);if(V._baseState.key===null)return B.error("Child should have a key");var te=B.enterKey(V._baseState.key);if(typeof E!="object")return B.error("Child expected, but input is not object");var ue=V._encode(E[V._baseState.key],B,E);return B.leaveKey(te),ue},this).filter(function(V){return V}),T=this._createEncoderBuffer(T);else if(_.tag==="seqof"||_.tag==="setof"){if(!_.args||_.args.length!==1)return B.error("Too many args for : "+_.tag);if(!Array.isArray(E))return B.error("seqof/setof, but data is not Array");var N=this.clone();N._baseState.implicit=null,T=this._createEncoderBuffer(E.map(function(V){var te=this._baseState;return this._getUse(te.args[0],E)._encode(V,B)},N))}else _.use!==null?D=this._getUse(_.use,S)._encode(E,B):(T=this._encodePrimitive(_.tag,E),F=!0);if(!_.any&&_.choice===null){var H=_.implicit!==null?_.implicit:_.tag,W=_.implicit===null?"universal":"context";H===null?_.use===null&&B.error("Tag could be omitted only for .use()"):_.use===null&&(D=this._encodeComposite(H,F,W,T))}return _.explicit!==null&&(D=this._encodeComposite(_.explicit,!1,"context",D)),D},b.prototype._encodeChoice=function(E,B){var S=this._baseState,_=S.choice[E.type];return _||g(!1,E.type+" not found in "+JSON.stringify(Object.keys(S.choice))),_._encode(E.value,B)},b.prototype._encodePrimitive=function(E,B){var S=this._baseState;if(/str$/.test(E))return this._encodeStr(B,E);if(E==="objid"&&S.args)return this._encodeObjid(B,S.reverseArgs[0],S.args[1]);if(E==="objid")return this._encodeObjid(B,null,null);if(E==="gentime"||E==="utctime")return this._encodeTime(B,E);if(E==="null_")return this._encodeNull();if(E==="int"||E==="enum")return this._encodeInt(B,S.args&&S.reverseArgs[0]);if(E==="bool")return this._encodeBool(B);if(E==="objDesc")return this._encodeStr(B,E);throw new Error("Unsupported tag: "+E)},b.prototype._isNumstr=function(E){return/^[0-9 ]*$/.test(E)},b.prototype._isPrintstr=function(E){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(E)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(a,c,u){var h=a("inherits");function d(g){this._reporterState={obj:null,path:[],options:g||{},errors:[]}}function p(g,A){this.path=g,this.rethrow(A)}u.Reporter=d,d.prototype.isError=function(g){return g instanceof p},d.prototype.save=function(){var g=this._reporterState;return{obj:g.obj,pathLen:g.path.length}},d.prototype.restore=function(g){var A=this._reporterState;A.obj=g.obj,A.path=A.path.slice(0,g.pathLen)},d.prototype.enterKey=function(g){return this._reporterState.path.push(g)},d.prototype.exitKey=function(g){var A=this._reporterState;A.path=A.path.slice(0,g-1)},d.prototype.leaveKey=function(g,A,m){var y=this._reporterState;this.exitKey(g),y.obj!==null&&(y.obj[A]=m)},d.prototype.path=function(){return this._reporterState.path.join("/")},d.prototype.enterObject=function(){var g=this._reporterState,A=g.obj;return g.obj={},A},d.prototype.leaveObject=function(g){var A=this._reporterState,m=A.obj;return A.obj=g,m},d.prototype.error=function(g){var A,m=this._reporterState,y=g instanceof p;if(A=y?g:new p(m.path.map(function(b){return"["+JSON.stringify(b)+"]"}).join(""),g.message||g,g.stack),!m.options.partial)throw A;return y||m.errors.push(A),A},d.prototype.wrapResult=function(g){var A=this._reporterState;return A.options.partial?{result:this.isError(g)?null:g,errors:A.errors}:g},h(p,Error),p.prototype.rethrow=function(g){if(this.message=g+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,p),!this.stack)try{throw new Error(this.message)}catch(A){this.stack=A.stack}return this}},{inherits:440}],176:[function(a,c,u){function h(d){var p={};return Object.keys(d).forEach(function(g){(0|g)==g&&(g|=0);var A=d[g];p[A]=g}),p}u.tagClass={0:"universal",1:"application",2:"context",3:"private"},u.tagClassByName=h(u.tagClass),u.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},u.tagByName=h(u.tag)},{}],177:[function(a,c,u){var h=u;h._reverse=function(d){var p={};return Object.keys(d).forEach(function(g){(0|g)==g&&(g|=0);var A=d[g];p[A]=g}),p},h.der=a("./der")},{"./der":176}],178:[function(a,c,u){var h=a("inherits"),d=a("bn.js"),p=a("../base/buffer").DecoderBuffer,g=a("../base/node"),A=a("../constants/der");function m(E){this.enc="der",this.name=E.name,this.entity=E,this.tree=new y,this.tree._init(E.body)}function y(E){g.call(this,"der",E)}function b(E,B){var S=E.readUInt8(B);if(E.isError(S))return S;var _=A.tagClass[S>>6],D=!(32&S);if(31&~S)S&=31;else{var T=S;for(S=0;!(128&~T);){if(T=E.readUInt8(B),E.isError(T))return T;S<<=7,S|=127&T}}return{cls:_,primitive:D,tag:S,tagStr:A.tag[S]}}function I(E,B,S){var _=E.readUInt8(S);if(E.isError(_))return _;if(!B&&_===128)return null;if(!(128&_))return _;var D=127&_;if(D>4)return E.error("length octect is too long");_=0;for(var T=0;T=31?S.error("Multi-octet tag encoding unsupported"):(E||(_|=32),_|=g.tagClassByName[B||"universal"]<<6)}c.exports=A,A.prototype.encode=function(I,E){return this.tree._encode(I,E).join()},h(m,p),m.prototype._encodeComposite=function(I,E,B,S){var _=b(I,E,B,this.reporter);if(S.length<128){var D=d.alloc(2);return D[0]=_,D[1]=S.length,this._createEncoderBuffer([D,S])}for(var T=1,F=S.length;F>=256;F>>=8)T++;var N=d.alloc(2+T);N[0]=_,N[1]=128|T;for(var H=1+T,W=S.length;W>0;H--,W>>=8)N[H]=255&W;return this._createEncoderBuffer([N,S])},m.prototype._encodeStr=function(I,E){if(E==="bitstr")return this._createEncoderBuffer([0|I.unused,I.data]);if(E==="bmpstr"){for(var B=d.alloc(2*I.length),S=0;S=40)return this.reporter.error("Second objid identifier OOB");I.splice(0,2,40*I[0]+I[1])}for(var D=0,T=0;T=128;F>>=7)D++}for(var N=d.alloc(D),H=N.length-1,W=I.length-1;W>=0;W--){var V=I[W];for(N[H--]=127&V;(V>>=7)>0;)N[H--]=128|127&V}return this._createEncoderBuffer(N)},m.prototype._encodeTime=function(I,E){var B,S=new Date(I);return E==="gentime"?B=[y(S.getUTCFullYear()),y(S.getUTCMonth()+1),y(S.getUTCDate()),y(S.getUTCHours()),y(S.getUTCMinutes()),y(S.getUTCSeconds()),"Z"].join(""):E==="utctime"?B=[y(S.getUTCFullYear()%100),y(S.getUTCMonth()+1),y(S.getUTCDate()),y(S.getUTCHours()),y(S.getUTCMinutes()),y(S.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+E+" time is not supported yet"),this._encodeStr(B,"octstr")},m.prototype._encodeNull=function(){return this._createEncoderBuffer("")},m.prototype._encodeInt=function(I,E){if(typeof I=="string"){if(!E)return this.reporter.error("String int or enum given, but no values map");if(!E.hasOwnProperty(I))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(I));I=E[I]}if(typeof I!="number"&&!d.isBuffer(I)){var B=I.toArray();!I.sign&&128&B[0]&&B.unshift(0),I=d.from(B)}if(d.isBuffer(I)){var S=I.length;I.length===0&&S++;var _=d.alloc(S);return I.copy(_),I.length===0&&(_[0]=0),this._createEncoderBuffer(_)}if(I<128)return this._createEncoderBuffer(I);if(I<256)return this._createEncoderBuffer([0,I]);for(var D=1,T=I;T>=256;T>>=8)D++;for(var F=new Array(D),N=F.length-1;N>=0;N--)F[N]=255&I,I>>=8;return 128&F[0]&&F.unshift(0),this._createEncoderBuffer(d.from(F))},m.prototype._encodeBool=function(I){return this._createEncoderBuffer(I?255:0)},m.prototype._use=function(I,E){return typeof I=="function"&&(I=I(E)),I._getEncoder("der").tree},m.prototype._skipDefault=function(I,E,B){var S,_=this._baseState;if(_.default===null)return!1;var D=I.join();if(_.defaultBuffer===void 0&&(_.defaultBuffer=this._encodeValue(_.default,E,B).join()),D.length!==_.defaultBuffer.length)return!1;for(S=0;S=65&&j<=70?j-55:j>=97&&j<=102?j-87:j-48&15}function b(Z,ne,j){var J=y(Z,j);return j-1>=ne&&(J|=y(Z,j-1)<<4),J}function I(Z,ne,j,J){for(var q=0,z=Math.min(Z.length,j),X=ne;X=49?se-49+10:se>=17?se-17+10:se}return q}A.isBN=function(Z){return Z instanceof A||Z!==null&&typeof Z=="object"&&Z.constructor.wordSize===A.wordSize&&Array.isArray(Z.words)},A.max=function(Z,ne){return Z.cmp(ne)>0?Z:ne},A.min=function(Z,ne){return Z.cmp(ne)<0?Z:ne},A.prototype._init=function(Z,ne,j){if(typeof Z=="number")return this._initNumber(Z,ne,j);if(typeof Z=="object")return this._initArray(Z,ne,j);ne==="hex"&&(ne=16),p(ne===(0|ne)&&ne>=2&&ne<=36);var J=0;(Z=Z.toString().replace(/\s+/g,""))[0]==="-"&&(J++,this.negative=1),J=0;J-=3)z=Z[J]|Z[J-1]<<8|Z[J-2]<<16,this.words[q]|=z<>>26-X&67108863,(X+=24)>=26&&(X-=26,q++);else if(j==="le")for(J=0,q=0;J>>26-X&67108863,(X+=24)>=26&&(X-=26,q++);return this.strip()},A.prototype._parseHex=function(Z,ne,j){this.length=Math.ceil((Z.length-ne)/6),this.words=new Array(this.length);for(var J=0;J=ne;J-=2)q=b(Z,ne,J)<=18?(z-=18,X+=1,this.words[X]|=q>>>26):z+=8;else for(J=(Z.length-ne)%2==0?ne+1:ne;J=18?(z-=18,X+=1,this.words[X]|=q>>>26):z+=8;this.strip()},A.prototype._parseBase=function(Z,ne,j){this.words=[0],this.length=1;for(var J=0,q=1;q<=67108863;q*=ne)J++;J--,q=q/ne|0;for(var z=Z.length-j,X=z%J,se=Math.min(z,z-X)+j,oe=0,ye=j;ye1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},A.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},A.prototype.inspect=function(){return(this.red?""};var E=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],B=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function _(Z){for(var ne=new Array(Z.bitLength()),j=0;j>>q}return ne}function D(Z,ne,j){j.negative=ne.negative^Z.negative;var J=Z.length+ne.length|0;j.length=J,J=J-1|0;var q=0|Z.words[0],z=0|ne.words[0],X=q*z,se=67108863&X,oe=X/67108864|0;j.words[0]=se;for(var ye=1;ye>>26,me=67108863&oe,Fe=Math.min(ye,ne.length-1),_e=Math.max(0,ye-Z.length+1);_e<=Fe;_e++){var rt=ye-_e|0;ae+=(X=(q=0|Z.words[rt])*(z=0|ne.words[_e])+me)/67108864|0,me=67108863&X}j.words[ye]=0|me,oe=0|ae}return oe!==0?j.words[ye]=0|oe:j.length--,j.strip()}A.prototype.toString=function(Z,ne){var j;if(ne=0|ne||1,(Z=Z||10)===16||Z==="hex"){j="";for(var J=0,q=0,z=0;z>>24-J&16777215)!=0||z!==this.length-1?E[6-se.length]+se+j:se+j,(J+=2)>=26&&(J-=26,z--)}for(q!==0&&(j=q.toString(16)+j);j.length%ne!=0;)j="0"+j;return this.negative!==0&&(j="-"+j),j}if(Z===(0|Z)&&Z>=2&&Z<=36){var oe=B[Z],ye=S[Z];j="";var ae=this.clone();for(ae.negative=0;!ae.isZero();){var me=ae.modn(ye).toString(Z);j=(ae=ae.idivn(ye)).isZero()?me+j:E[oe-me.length]+me+j}for(this.isZero()&&(j="0"+j);j.length%ne!=0;)j="0"+j;return this.negative!==0&&(j="-"+j),j}p(!1,"Base should be between 2 and 36")},A.prototype.toNumber=function(){var Z=this.words[0];return this.length===2?Z+=67108864*this.words[1]:this.length===3&&this.words[2]===1?Z+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Z:Z},A.prototype.toJSON=function(){return this.toString(16)},A.prototype.toBuffer=function(Z,ne){return p(m!==void 0),this.toArrayLike(m,Z,ne)},A.prototype.toArray=function(Z,ne){return this.toArrayLike(Array,Z,ne)},A.prototype.toArrayLike=function(Z,ne,j){var J=this.byteLength(),q=j||Math.max(1,J);p(J<=q,"byte array longer than desired length"),p(q>0,"Requested array length <= 0"),this.strip();var z,X,se=ne==="le",oe=new Z(q),ye=this.clone();if(se){for(X=0;!ye.isZero();X++)z=ye.andln(255),ye.iushrn(8),oe[X]=z;for(;X=4096&&(j+=13,ne>>>=13),ne>=64&&(j+=7,ne>>>=7),ne>=8&&(j+=4,ne>>>=4),ne>=2&&(j+=2,ne>>>=2),j+ne},A.prototype._zeroBits=function(Z){if(Z===0)return 26;var ne=Z,j=0;return 8191&ne||(j+=13,ne>>>=13),127&ne||(j+=7,ne>>>=7),15&ne||(j+=4,ne>>>=4),3&ne||(j+=2,ne>>>=2),1&ne||j++,j},A.prototype.bitLength=function(){var Z=this.words[this.length-1],ne=this._countBits(Z);return 26*(this.length-1)+ne},A.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Z=0,ne=0;neZ.length?this.clone().ior(Z):Z.clone().ior(this)},A.prototype.uor=function(Z){return this.length>Z.length?this.clone().iuor(Z):Z.clone().iuor(this)},A.prototype.iuand=function(Z){var ne;ne=this.length>Z.length?Z:this;for(var j=0;jZ.length?this.clone().iand(Z):Z.clone().iand(this)},A.prototype.uand=function(Z){return this.length>Z.length?this.clone().iuand(Z):Z.clone().iuand(this)},A.prototype.iuxor=function(Z){var ne,j;this.length>Z.length?(ne=this,j=Z):(ne=Z,j=this);for(var J=0;JZ.length?this.clone().ixor(Z):Z.clone().ixor(this)},A.prototype.uxor=function(Z){return this.length>Z.length?this.clone().iuxor(Z):Z.clone().iuxor(this)},A.prototype.inotn=function(Z){p(typeof Z=="number"&&Z>=0);var ne=0|Math.ceil(Z/26),j=Z%26;this._expand(ne),j>0&&ne--;for(var J=0;J0&&(this.words[J]=~this.words[J]&67108863>>26-j),this.strip()},A.prototype.notn=function(Z){return this.clone().inotn(Z)},A.prototype.setn=function(Z,ne){p(typeof Z=="number"&&Z>=0);var j=Z/26|0,J=Z%26;return this._expand(j+1),this.words[j]=ne?this.words[j]|1<Z.length?(j=this,J=Z):(j=Z,J=this);for(var q=0,z=0;z>>26;for(;q!==0&&z>>26;if(this.length=j.length,q!==0)this.words[this.length]=q,this.length++;else if(j!==this)for(;zZ.length?this.clone().iadd(Z):Z.clone().iadd(this)},A.prototype.isub=function(Z){if(Z.negative!==0){Z.negative=0;var ne=this.iadd(Z);return Z.negative=1,ne._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(Z),this.negative=1,this._normSign();var j,J,q=this.cmp(Z);if(q===0)return this.negative=0,this.length=1,this.words[0]=0,this;q>0?(j=this,J=Z):(j=Z,J=this);for(var z=0,X=0;X>26,this.words[X]=67108863≠for(;z!==0&&X>26,this.words[X]=67108863≠if(z===0&&X>>13,_e=0|X[1],rt=8191&_e,et=_e>>>13,st=0|X[2],Ge=8191&st,Be=st>>>13,Te=0|X[3],je=8191&Te,lt=Te>>>13,Me=0|X[4],Ke=8191&Me,Rt=Me>>>13,Ie=0|X[5],Re=8191&Ie,qe=Ie>>>13,pt=0|X[6],Lt=8191&pt,Qe=pt>>>13,_t=0|X[7],Ft=8191&_t,Ze=_t>>>13,$e=0|X[8],nt=8191&$e,Ot=$e>>>13,He=0|X[9],Je=8191&He,tt=He>>>13,mt=0|se[0],Xe=8191&mt,Ye=mt>>>13,ot=0|se[1],yt=8191&ot,Mt=ot>>>13,cr=0|se[2],$t=8191&cr,Hr=cr>>>13,mr=0|se[3],sr=8191&mr,Yr=mr>>>13,Mr=0|se[4],Dr=8191&Mr,nn=Mr>>>13,Sr=0|se[5],tn=8191&Sr,Cn=Sr>>>13,Jn=0|se[6],Rr=8191&Jn,An=Jn>>>13,dn=0|se[7],br=8191&dn,gn=dn>>>13,wn=0|se[8],kn=8191&wn,Dn=wn>>>13,oi=0|se[9],Kr=8191&oi,On=oi>>>13;j.negative=Z.negative^ne.negative,j.length=19;var Ci=(ye+(J=Math.imul(me,Xe))|0)+((8191&(q=(q=Math.imul(me,Ye))+Math.imul(Fe,Xe)|0))<<13)|0;ye=((z=Math.imul(Fe,Ye))+(q>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,J=Math.imul(rt,Xe),q=(q=Math.imul(rt,Ye))+Math.imul(et,Xe)|0,z=Math.imul(et,Ye);var li=(ye+(J=J+Math.imul(me,yt)|0)|0)+((8191&(q=(q=q+Math.imul(me,Mt)|0)+Math.imul(Fe,yt)|0))<<13)|0;ye=((z=z+Math.imul(Fe,Mt)|0)+(q>>>13)|0)+(li>>>26)|0,li&=67108863,J=Math.imul(Ge,Xe),q=(q=Math.imul(Ge,Ye))+Math.imul(Be,Xe)|0,z=Math.imul(Be,Ye),J=J+Math.imul(rt,yt)|0,q=(q=q+Math.imul(rt,Mt)|0)+Math.imul(et,yt)|0,z=z+Math.imul(et,Mt)|0;var ia=(ye+(J=J+Math.imul(me,$t)|0)|0)+((8191&(q=(q=q+Math.imul(me,Hr)|0)+Math.imul(Fe,$t)|0))<<13)|0;ye=((z=z+Math.imul(Fe,Hr)|0)+(q>>>13)|0)+(ia>>>26)|0,ia&=67108863,J=Math.imul(je,Xe),q=(q=Math.imul(je,Ye))+Math.imul(lt,Xe)|0,z=Math.imul(lt,Ye),J=J+Math.imul(Ge,yt)|0,q=(q=q+Math.imul(Ge,Mt)|0)+Math.imul(Be,yt)|0,z=z+Math.imul(Be,Mt)|0,J=J+Math.imul(rt,$t)|0,q=(q=q+Math.imul(rt,Hr)|0)+Math.imul(et,$t)|0,z=z+Math.imul(et,Hr)|0;var ht=(ye+(J=J+Math.imul(me,sr)|0)|0)+((8191&(q=(q=q+Math.imul(me,Yr)|0)+Math.imul(Fe,sr)|0))<<13)|0;ye=((z=z+Math.imul(Fe,Yr)|0)+(q>>>13)|0)+(ht>>>26)|0,ht&=67108863,J=Math.imul(Ke,Xe),q=(q=Math.imul(Ke,Ye))+Math.imul(Rt,Xe)|0,z=Math.imul(Rt,Ye),J=J+Math.imul(je,yt)|0,q=(q=q+Math.imul(je,Mt)|0)+Math.imul(lt,yt)|0,z=z+Math.imul(lt,Mt)|0,J=J+Math.imul(Ge,$t)|0,q=(q=q+Math.imul(Ge,Hr)|0)+Math.imul(Be,$t)|0,z=z+Math.imul(Be,Hr)|0,J=J+Math.imul(rt,sr)|0,q=(q=q+Math.imul(rt,Yr)|0)+Math.imul(et,sr)|0,z=z+Math.imul(et,Yr)|0;var Pt=(ye+(J=J+Math.imul(me,Dr)|0)|0)+((8191&(q=(q=q+Math.imul(me,nn)|0)+Math.imul(Fe,Dr)|0))<<13)|0;ye=((z=z+Math.imul(Fe,nn)|0)+(q>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,J=Math.imul(Re,Xe),q=(q=Math.imul(Re,Ye))+Math.imul(qe,Xe)|0,z=Math.imul(qe,Ye),J=J+Math.imul(Ke,yt)|0,q=(q=q+Math.imul(Ke,Mt)|0)+Math.imul(Rt,yt)|0,z=z+Math.imul(Rt,Mt)|0,J=J+Math.imul(je,$t)|0,q=(q=q+Math.imul(je,Hr)|0)+Math.imul(lt,$t)|0,z=z+Math.imul(lt,Hr)|0,J=J+Math.imul(Ge,sr)|0,q=(q=q+Math.imul(Ge,Yr)|0)+Math.imul(Be,sr)|0,z=z+Math.imul(Be,Yr)|0,J=J+Math.imul(rt,Dr)|0,q=(q=q+Math.imul(rt,nn)|0)+Math.imul(et,Dr)|0,z=z+Math.imul(et,nn)|0;var Zt=(ye+(J=J+Math.imul(me,tn)|0)|0)+((8191&(q=(q=q+Math.imul(me,Cn)|0)+Math.imul(Fe,tn)|0))<<13)|0;ye=((z=z+Math.imul(Fe,Cn)|0)+(q>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,J=Math.imul(Lt,Xe),q=(q=Math.imul(Lt,Ye))+Math.imul(Qe,Xe)|0,z=Math.imul(Qe,Ye),J=J+Math.imul(Re,yt)|0,q=(q=q+Math.imul(Re,Mt)|0)+Math.imul(qe,yt)|0,z=z+Math.imul(qe,Mt)|0,J=J+Math.imul(Ke,$t)|0,q=(q=q+Math.imul(Ke,Hr)|0)+Math.imul(Rt,$t)|0,z=z+Math.imul(Rt,Hr)|0,J=J+Math.imul(je,sr)|0,q=(q=q+Math.imul(je,Yr)|0)+Math.imul(lt,sr)|0,z=z+Math.imul(lt,Yr)|0,J=J+Math.imul(Ge,Dr)|0,q=(q=q+Math.imul(Ge,nn)|0)+Math.imul(Be,Dr)|0,z=z+Math.imul(Be,nn)|0,J=J+Math.imul(rt,tn)|0,q=(q=q+Math.imul(rt,Cn)|0)+Math.imul(et,tn)|0,z=z+Math.imul(et,Cn)|0;var vn=(ye+(J=J+Math.imul(me,Rr)|0)|0)+((8191&(q=(q=q+Math.imul(me,An)|0)+Math.imul(Fe,Rr)|0))<<13)|0;ye=((z=z+Math.imul(Fe,An)|0)+(q>>>13)|0)+(vn>>>26)|0,vn&=67108863,J=Math.imul(Ft,Xe),q=(q=Math.imul(Ft,Ye))+Math.imul(Ze,Xe)|0,z=Math.imul(Ze,Ye),J=J+Math.imul(Lt,yt)|0,q=(q=q+Math.imul(Lt,Mt)|0)+Math.imul(Qe,yt)|0,z=z+Math.imul(Qe,Mt)|0,J=J+Math.imul(Re,$t)|0,q=(q=q+Math.imul(Re,Hr)|0)+Math.imul(qe,$t)|0,z=z+Math.imul(qe,Hr)|0,J=J+Math.imul(Ke,sr)|0,q=(q=q+Math.imul(Ke,Yr)|0)+Math.imul(Rt,sr)|0,z=z+Math.imul(Rt,Yr)|0,J=J+Math.imul(je,Dr)|0,q=(q=q+Math.imul(je,nn)|0)+Math.imul(lt,Dr)|0,z=z+Math.imul(lt,nn)|0,J=J+Math.imul(Ge,tn)|0,q=(q=q+Math.imul(Ge,Cn)|0)+Math.imul(Be,tn)|0,z=z+Math.imul(Be,Cn)|0,J=J+Math.imul(rt,Rr)|0,q=(q=q+Math.imul(rt,An)|0)+Math.imul(et,Rr)|0,z=z+Math.imul(et,An)|0;var jn=(ye+(J=J+Math.imul(me,br)|0)|0)+((8191&(q=(q=q+Math.imul(me,gn)|0)+Math.imul(Fe,br)|0))<<13)|0;ye=((z=z+Math.imul(Fe,gn)|0)+(q>>>13)|0)+(jn>>>26)|0,jn&=67108863,J=Math.imul(nt,Xe),q=(q=Math.imul(nt,Ye))+Math.imul(Ot,Xe)|0,z=Math.imul(Ot,Ye),J=J+Math.imul(Ft,yt)|0,q=(q=q+Math.imul(Ft,Mt)|0)+Math.imul(Ze,yt)|0,z=z+Math.imul(Ze,Mt)|0,J=J+Math.imul(Lt,$t)|0,q=(q=q+Math.imul(Lt,Hr)|0)+Math.imul(Qe,$t)|0,z=z+Math.imul(Qe,Hr)|0,J=J+Math.imul(Re,sr)|0,q=(q=q+Math.imul(Re,Yr)|0)+Math.imul(qe,sr)|0,z=z+Math.imul(qe,Yr)|0,J=J+Math.imul(Ke,Dr)|0,q=(q=q+Math.imul(Ke,nn)|0)+Math.imul(Rt,Dr)|0,z=z+Math.imul(Rt,nn)|0,J=J+Math.imul(je,tn)|0,q=(q=q+Math.imul(je,Cn)|0)+Math.imul(lt,tn)|0,z=z+Math.imul(lt,Cn)|0,J=J+Math.imul(Ge,Rr)|0,q=(q=q+Math.imul(Ge,An)|0)+Math.imul(Be,Rr)|0,z=z+Math.imul(Be,An)|0,J=J+Math.imul(rt,br)|0,q=(q=q+Math.imul(rt,gn)|0)+Math.imul(et,br)|0,z=z+Math.imul(et,gn)|0;var ba=(ye+(J=J+Math.imul(me,kn)|0)|0)+((8191&(q=(q=q+Math.imul(me,Dn)|0)+Math.imul(Fe,kn)|0))<<13)|0;ye=((z=z+Math.imul(Fe,Dn)|0)+(q>>>13)|0)+(ba>>>26)|0,ba&=67108863,J=Math.imul(Je,Xe),q=(q=Math.imul(Je,Ye))+Math.imul(tt,Xe)|0,z=Math.imul(tt,Ye),J=J+Math.imul(nt,yt)|0,q=(q=q+Math.imul(nt,Mt)|0)+Math.imul(Ot,yt)|0,z=z+Math.imul(Ot,Mt)|0,J=J+Math.imul(Ft,$t)|0,q=(q=q+Math.imul(Ft,Hr)|0)+Math.imul(Ze,$t)|0,z=z+Math.imul(Ze,Hr)|0,J=J+Math.imul(Lt,sr)|0,q=(q=q+Math.imul(Lt,Yr)|0)+Math.imul(Qe,sr)|0,z=z+Math.imul(Qe,Yr)|0,J=J+Math.imul(Re,Dr)|0,q=(q=q+Math.imul(Re,nn)|0)+Math.imul(qe,Dr)|0,z=z+Math.imul(qe,nn)|0,J=J+Math.imul(Ke,tn)|0,q=(q=q+Math.imul(Ke,Cn)|0)+Math.imul(Rt,tn)|0,z=z+Math.imul(Rt,Cn)|0,J=J+Math.imul(je,Rr)|0,q=(q=q+Math.imul(je,An)|0)+Math.imul(lt,Rr)|0,z=z+Math.imul(lt,An)|0,J=J+Math.imul(Ge,br)|0,q=(q=q+Math.imul(Ge,gn)|0)+Math.imul(Be,br)|0,z=z+Math.imul(Be,gn)|0,J=J+Math.imul(rt,kn)|0,q=(q=q+Math.imul(rt,Dn)|0)+Math.imul(et,kn)|0,z=z+Math.imul(et,Dn)|0;var aa=(ye+(J=J+Math.imul(me,Kr)|0)|0)+((8191&(q=(q=q+Math.imul(me,On)|0)+Math.imul(Fe,Kr)|0))<<13)|0;ye=((z=z+Math.imul(Fe,On)|0)+(q>>>13)|0)+(aa>>>26)|0,aa&=67108863,J=Math.imul(Je,yt),q=(q=Math.imul(Je,Mt))+Math.imul(tt,yt)|0,z=Math.imul(tt,Mt),J=J+Math.imul(nt,$t)|0,q=(q=q+Math.imul(nt,Hr)|0)+Math.imul(Ot,$t)|0,z=z+Math.imul(Ot,Hr)|0,J=J+Math.imul(Ft,sr)|0,q=(q=q+Math.imul(Ft,Yr)|0)+Math.imul(Ze,sr)|0,z=z+Math.imul(Ze,Yr)|0,J=J+Math.imul(Lt,Dr)|0,q=(q=q+Math.imul(Lt,nn)|0)+Math.imul(Qe,Dr)|0,z=z+Math.imul(Qe,nn)|0,J=J+Math.imul(Re,tn)|0,q=(q=q+Math.imul(Re,Cn)|0)+Math.imul(qe,tn)|0,z=z+Math.imul(qe,Cn)|0,J=J+Math.imul(Ke,Rr)|0,q=(q=q+Math.imul(Ke,An)|0)+Math.imul(Rt,Rr)|0,z=z+Math.imul(Rt,An)|0,J=J+Math.imul(je,br)|0,q=(q=q+Math.imul(je,gn)|0)+Math.imul(lt,br)|0,z=z+Math.imul(lt,gn)|0,J=J+Math.imul(Ge,kn)|0,q=(q=q+Math.imul(Ge,Dn)|0)+Math.imul(Be,kn)|0,z=z+Math.imul(Be,Dn)|0;var wo=(ye+(J=J+Math.imul(rt,Kr)|0)|0)+((8191&(q=(q=q+Math.imul(rt,On)|0)+Math.imul(et,Kr)|0))<<13)|0;ye=((z=z+Math.imul(et,On)|0)+(q>>>13)|0)+(wo>>>26)|0,wo&=67108863,J=Math.imul(Je,$t),q=(q=Math.imul(Je,Hr))+Math.imul(tt,$t)|0,z=Math.imul(tt,Hr),J=J+Math.imul(nt,sr)|0,q=(q=q+Math.imul(nt,Yr)|0)+Math.imul(Ot,sr)|0,z=z+Math.imul(Ot,Yr)|0,J=J+Math.imul(Ft,Dr)|0,q=(q=q+Math.imul(Ft,nn)|0)+Math.imul(Ze,Dr)|0,z=z+Math.imul(Ze,nn)|0,J=J+Math.imul(Lt,tn)|0,q=(q=q+Math.imul(Lt,Cn)|0)+Math.imul(Qe,tn)|0,z=z+Math.imul(Qe,Cn)|0,J=J+Math.imul(Re,Rr)|0,q=(q=q+Math.imul(Re,An)|0)+Math.imul(qe,Rr)|0,z=z+Math.imul(qe,An)|0,J=J+Math.imul(Ke,br)|0,q=(q=q+Math.imul(Ke,gn)|0)+Math.imul(Rt,br)|0,z=z+Math.imul(Rt,gn)|0,J=J+Math.imul(je,kn)|0,q=(q=q+Math.imul(je,Dn)|0)+Math.imul(lt,kn)|0,z=z+Math.imul(lt,Dn)|0;var is=(ye+(J=J+Math.imul(Ge,Kr)|0)|0)+((8191&(q=(q=q+Math.imul(Ge,On)|0)+Math.imul(Be,Kr)|0))<<13)|0;ye=((z=z+Math.imul(Be,On)|0)+(q>>>13)|0)+(is>>>26)|0,is&=67108863,J=Math.imul(Je,sr),q=(q=Math.imul(Je,Yr))+Math.imul(tt,sr)|0,z=Math.imul(tt,Yr),J=J+Math.imul(nt,Dr)|0,q=(q=q+Math.imul(nt,nn)|0)+Math.imul(Ot,Dr)|0,z=z+Math.imul(Ot,nn)|0,J=J+Math.imul(Ft,tn)|0,q=(q=q+Math.imul(Ft,Cn)|0)+Math.imul(Ze,tn)|0,z=z+Math.imul(Ze,Cn)|0,J=J+Math.imul(Lt,Rr)|0,q=(q=q+Math.imul(Lt,An)|0)+Math.imul(Qe,Rr)|0,z=z+Math.imul(Qe,An)|0,J=J+Math.imul(Re,br)|0,q=(q=q+Math.imul(Re,gn)|0)+Math.imul(qe,br)|0,z=z+Math.imul(qe,gn)|0,J=J+Math.imul(Ke,kn)|0,q=(q=q+Math.imul(Ke,Dn)|0)+Math.imul(Rt,kn)|0,z=z+Math.imul(Rt,Dn)|0;var as=(ye+(J=J+Math.imul(je,Kr)|0)|0)+((8191&(q=(q=q+Math.imul(je,On)|0)+Math.imul(lt,Kr)|0))<<13)|0;ye=((z=z+Math.imul(lt,On)|0)+(q>>>13)|0)+(as>>>26)|0,as&=67108863,J=Math.imul(Je,Dr),q=(q=Math.imul(Je,nn))+Math.imul(tt,Dr)|0,z=Math.imul(tt,nn),J=J+Math.imul(nt,tn)|0,q=(q=q+Math.imul(nt,Cn)|0)+Math.imul(Ot,tn)|0,z=z+Math.imul(Ot,Cn)|0,J=J+Math.imul(Ft,Rr)|0,q=(q=q+Math.imul(Ft,An)|0)+Math.imul(Ze,Rr)|0,z=z+Math.imul(Ze,An)|0,J=J+Math.imul(Lt,br)|0,q=(q=q+Math.imul(Lt,gn)|0)+Math.imul(Qe,br)|0,z=z+Math.imul(Qe,gn)|0,J=J+Math.imul(Re,kn)|0,q=(q=q+Math.imul(Re,Dn)|0)+Math.imul(qe,kn)|0,z=z+Math.imul(qe,Dn)|0;var vs=(ye+(J=J+Math.imul(Ke,Kr)|0)|0)+((8191&(q=(q=q+Math.imul(Ke,On)|0)+Math.imul(Rt,Kr)|0))<<13)|0;ye=((z=z+Math.imul(Rt,On)|0)+(q>>>13)|0)+(vs>>>26)|0,vs&=67108863,J=Math.imul(Je,tn),q=(q=Math.imul(Je,Cn))+Math.imul(tt,tn)|0,z=Math.imul(tt,Cn),J=J+Math.imul(nt,Rr)|0,q=(q=q+Math.imul(nt,An)|0)+Math.imul(Ot,Rr)|0,z=z+Math.imul(Ot,An)|0,J=J+Math.imul(Ft,br)|0,q=(q=q+Math.imul(Ft,gn)|0)+Math.imul(Ze,br)|0,z=z+Math.imul(Ze,gn)|0,J=J+Math.imul(Lt,kn)|0,q=(q=q+Math.imul(Lt,Dn)|0)+Math.imul(Qe,kn)|0,z=z+Math.imul(Qe,Dn)|0;var lo=(ye+(J=J+Math.imul(Re,Kr)|0)|0)+((8191&(q=(q=q+Math.imul(Re,On)|0)+Math.imul(qe,Kr)|0))<<13)|0;ye=((z=z+Math.imul(qe,On)|0)+(q>>>13)|0)+(lo>>>26)|0,lo&=67108863,J=Math.imul(Je,Rr),q=(q=Math.imul(Je,An))+Math.imul(tt,Rr)|0,z=Math.imul(tt,An),J=J+Math.imul(nt,br)|0,q=(q=q+Math.imul(nt,gn)|0)+Math.imul(Ot,br)|0,z=z+Math.imul(Ot,gn)|0,J=J+Math.imul(Ft,kn)|0,q=(q=q+Math.imul(Ft,Dn)|0)+Math.imul(Ze,kn)|0,z=z+Math.imul(Ze,Dn)|0;var ra=(ye+(J=J+Math.imul(Lt,Kr)|0)|0)+((8191&(q=(q=q+Math.imul(Lt,On)|0)+Math.imul(Qe,Kr)|0))<<13)|0;ye=((z=z+Math.imul(Qe,On)|0)+(q>>>13)|0)+(ra>>>26)|0,ra&=67108863,J=Math.imul(Je,br),q=(q=Math.imul(Je,gn))+Math.imul(tt,br)|0,z=Math.imul(tt,gn),J=J+Math.imul(nt,kn)|0,q=(q=q+Math.imul(nt,Dn)|0)+Math.imul(Ot,kn)|0,z=z+Math.imul(Ot,Dn)|0;var pi=(ye+(J=J+Math.imul(Ft,Kr)|0)|0)+((8191&(q=(q=q+Math.imul(Ft,On)|0)+Math.imul(Ze,Kr)|0))<<13)|0;ye=((z=z+Math.imul(Ze,On)|0)+(q>>>13)|0)+(pi>>>26)|0,pi&=67108863,J=Math.imul(Je,kn),q=(q=Math.imul(Je,Dn))+Math.imul(tt,kn)|0,z=Math.imul(tt,Dn);var Ms=(ye+(J=J+Math.imul(nt,Kr)|0)|0)+((8191&(q=(q=q+Math.imul(nt,On)|0)+Math.imul(Ot,Kr)|0))<<13)|0;ye=((z=z+Math.imul(Ot,On)|0)+(q>>>13)|0)+(Ms>>>26)|0,Ms&=67108863;var Fs=(ye+(J=Math.imul(Je,Kr))|0)+((8191&(q=(q=Math.imul(Je,On))+Math.imul(tt,Kr)|0))<<13)|0;return ye=((z=Math.imul(tt,On))+(q>>>13)|0)+(Fs>>>26)|0,Fs&=67108863,oe[0]=Ci,oe[1]=li,oe[2]=ia,oe[3]=ht,oe[4]=Pt,oe[5]=Zt,oe[6]=vn,oe[7]=jn,oe[8]=ba,oe[9]=aa,oe[10]=wo,oe[11]=is,oe[12]=as,oe[13]=vs,oe[14]=lo,oe[15]=ra,oe[16]=pi,oe[17]=Ms,oe[18]=Fs,ye!==0&&(oe[19]=ye,j.length++),j};function F(Z,ne,j){j.negative=ne.negative^Z.negative,j.length=Z.length+ne.length;for(var J=0,q=0,z=0;z>>26)|0)>>>26,X&=67108863}j.words[z]=se,J=X,X=q}return J!==0?j.words[z]=J:j.length--,j.strip()}function N(Z,ne,j){return new H().mulp(Z,ne,j)}function H(Z,ne){this.x=Z,this.y=ne}Math.imul||(T=D),A.prototype.mulTo=function(Z,ne){var j=this.length+Z.length;return this.length===10&&Z.length===10?T(this,Z,ne):j<63?D(this,Z,ne):j<1024?F(this,Z,ne):N(this,Z,ne)},H.prototype.makeRBT=function(Z){for(var ne=new Array(Z),j=A.prototype._countBits(Z)-1,J=0;J>=1;return J},H.prototype.permute=function(Z,ne,j,J,q,z){for(var X=0;X>>=1)q++;return 1<>>=13,j[2*z+1]=8191&q,q>>>=13;for(z=2*ne;z>=26,ne+=J/67108864|0,ne+=q>>>26,this.words[j]=67108863&q}return ne!==0&&(this.words[j]=ne,this.length++),this},A.prototype.muln=function(Z){return this.clone().imuln(Z)},A.prototype.sqr=function(){return this.mul(this)},A.prototype.isqr=function(){return this.imul(this.clone())},A.prototype.pow=function(Z){var ne=_(Z);if(ne.length===0)return new A(1);for(var j=this,J=0;J=0);var ne,j=Z%26,J=(Z-j)/26,q=67108863>>>26-j<<26-j;if(j!==0){var z=0;for(ne=0;ne>>26-j}z&&(this.words[ne]=z,this.length++)}if(J!==0){for(ne=this.length-1;ne>=0;ne--)this.words[ne+J]=this.words[ne];for(ne=0;ne=0),J=ne?(ne-ne%26)/26:0;var q=Z%26,z=Math.min((Z-q)/26,this.length),X=67108863^67108863>>>q<z)for(this.length-=z,oe=0;oe=0&&(ye!==0||oe>=J);oe--){var ae=0|this.words[oe];this.words[oe]=ye<<26-q|ae>>>q,ye=ae&X}return se&&ye!==0&&(se.words[se.length++]=ye),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},A.prototype.ishrn=function(Z,ne,j){return p(this.negative===0),this.iushrn(Z,ne,j)},A.prototype.shln=function(Z){return this.clone().ishln(Z)},A.prototype.ushln=function(Z){return this.clone().iushln(Z)},A.prototype.shrn=function(Z){return this.clone().ishrn(Z)},A.prototype.ushrn=function(Z){return this.clone().iushrn(Z)},A.prototype.testn=function(Z){p(typeof Z=="number"&&Z>=0);var ne=Z%26,j=(Z-ne)/26,J=1<=0);var ne=Z%26,j=(Z-ne)/26;if(p(this.negative===0,"imaskn works only with positive numbers"),this.length<=j)return this;if(ne!==0&&j++,this.length=Math.min(j,this.length),ne!==0){var J=67108863^67108863>>>ne<=67108864;ne++)this.words[ne]-=67108864,ne===this.length-1?this.words[ne+1]=1:this.words[ne+1]++;return this.length=Math.max(this.length,ne+1),this},A.prototype.isubn=function(Z){if(p(typeof Z=="number"),p(Z<67108864),Z<0)return this.iaddn(-Z);if(this.negative!==0)return this.negative=0,this.iaddn(Z),this.negative=1,this;if(this.words[0]-=Z,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var ne=0;ne>26)-(se/67108864|0),this.words[J+j]=67108863&q}for(;J>26,this.words[J+j]=67108863&q;if(X===0)return this.strip();for(p(X===-1),X=0,J=0;J>26,this.words[J]=67108863&q;return this.negative=1,this.strip()},A.prototype._wordDiv=function(Z,ne){var j=this.length-Z.length,J=this.clone(),q=Z,z=0|q.words[q.length-1];(j=26-this._countBits(z))!=0&&(q=q.ushln(j),J.iushln(j),z=0|q.words[q.length-1]);var X,se=J.length-q.length;if(ne!=="mod"){(X=new A(null)).length=se+1,X.words=new Array(X.length);for(var oe=0;oe=0;ae--){var me=67108864*(0|J.words[q.length+ae])+(0|J.words[q.length+ae-1]);for(me=Math.min(me/z|0,67108863),J._ishlnsubmul(q,me,ae);J.negative!==0;)me--,J.negative=0,J._ishlnsubmul(q,1,ae),J.isZero()||(J.negative^=1);X&&(X.words[ae]=me)}return X&&X.strip(),J.strip(),ne!=="div"&&j!==0&&J.iushrn(j),{div:X||null,mod:J}},A.prototype.divmod=function(Z,ne,j){return p(!Z.isZero()),this.isZero()?{div:new A(0),mod:new A(0)}:this.negative!==0&&Z.negative===0?(z=this.neg().divmod(Z,ne),ne!=="mod"&&(J=z.div.neg()),ne!=="div"&&(q=z.mod.neg(),j&&q.negative!==0&&q.iadd(Z)),{div:J,mod:q}):this.negative===0&&Z.negative!==0?(z=this.divmod(Z.neg(),ne),ne!=="mod"&&(J=z.div.neg()),{div:J,mod:z.mod}):this.negative&Z.negative?(z=this.neg().divmod(Z.neg(),ne),ne!=="div"&&(q=z.mod.neg(),j&&q.negative!==0&&q.isub(Z)),{div:z.div,mod:q}):Z.length>this.length||this.cmp(Z)<0?{div:new A(0),mod:this}:Z.length===1?ne==="div"?{div:this.divn(Z.words[0]),mod:null}:ne==="mod"?{div:null,mod:new A(this.modn(Z.words[0]))}:{div:this.divn(Z.words[0]),mod:new A(this.modn(Z.words[0]))}:this._wordDiv(Z,ne);var J,q,z},A.prototype.div=function(Z){return this.divmod(Z,"div",!1).div},A.prototype.mod=function(Z){return this.divmod(Z,"mod",!1).mod},A.prototype.umod=function(Z){return this.divmod(Z,"mod",!0).mod},A.prototype.divRound=function(Z){var ne=this.divmod(Z);if(ne.mod.isZero())return ne.div;var j=ne.div.negative!==0?ne.mod.isub(Z):ne.mod,J=Z.ushrn(1),q=Z.andln(1),z=j.cmp(J);return z<0||q===1&&z===0?ne.div:ne.div.negative!==0?ne.div.isubn(1):ne.div.iaddn(1)},A.prototype.modn=function(Z){p(Z<=67108863);for(var ne=(1<<26)%Z,j=0,J=this.length-1;J>=0;J--)j=(ne*j+(0|this.words[J]))%Z;return j},A.prototype.idivn=function(Z){p(Z<=67108863);for(var ne=0,j=this.length-1;j>=0;j--){var J=(0|this.words[j])+67108864*ne;this.words[j]=J/Z|0,ne=J%Z}return this.strip()},A.prototype.divn=function(Z){return this.clone().idivn(Z)},A.prototype.egcd=function(Z){p(Z.negative===0),p(!Z.isZero());var ne=this,j=Z.clone();ne=ne.negative!==0?ne.umod(Z):ne.clone();for(var J=new A(1),q=new A(0),z=new A(0),X=new A(1),se=0;ne.isEven()&&j.isEven();)ne.iushrn(1),j.iushrn(1),++se;for(var oe=j.clone(),ye=ne.clone();!ne.isZero();){for(var ae=0,me=1;!(ne.words[0]&me)&&ae<26;++ae,me<<=1);if(ae>0)for(ne.iushrn(ae);ae-- >0;)(J.isOdd()||q.isOdd())&&(J.iadd(oe),q.isub(ye)),J.iushrn(1),q.iushrn(1);for(var Fe=0,_e=1;!(j.words[0]&_e)&&Fe<26;++Fe,_e<<=1);if(Fe>0)for(j.iushrn(Fe);Fe-- >0;)(z.isOdd()||X.isOdd())&&(z.iadd(oe),X.isub(ye)),z.iushrn(1),X.iushrn(1);ne.cmp(j)>=0?(ne.isub(j),J.isub(z),q.isub(X)):(j.isub(ne),z.isub(J),X.isub(q))}return{a:z,b:X,gcd:j.iushln(se)}},A.prototype._invmp=function(Z){p(Z.negative===0),p(!Z.isZero());var ne=this,j=Z.clone();ne=ne.negative!==0?ne.umod(Z):ne.clone();for(var J,q=new A(1),z=new A(0),X=j.clone();ne.cmpn(1)>0&&j.cmpn(1)>0;){for(var se=0,oe=1;!(ne.words[0]&oe)&&se<26;++se,oe<<=1);if(se>0)for(ne.iushrn(se);se-- >0;)q.isOdd()&&q.iadd(X),q.iushrn(1);for(var ye=0,ae=1;!(j.words[0]&ae)&&ye<26;++ye,ae<<=1);if(ye>0)for(j.iushrn(ye);ye-- >0;)z.isOdd()&&z.iadd(X),z.iushrn(1);ne.cmp(j)>=0?(ne.isub(j),q.isub(z)):(j.isub(ne),z.isub(q))}return(J=ne.cmpn(1)===0?q:z).cmpn(0)<0&&J.iadd(Z),J},A.prototype.gcd=function(Z){if(this.isZero())return Z.abs();if(Z.isZero())return this.abs();var ne=this.clone(),j=Z.clone();ne.negative=0,j.negative=0;for(var J=0;ne.isEven()&&j.isEven();J++)ne.iushrn(1),j.iushrn(1);for(;;){for(;ne.isEven();)ne.iushrn(1);for(;j.isEven();)j.iushrn(1);var q=ne.cmp(j);if(q<0){var z=ne;ne=j,j=z}else if(q===0||j.cmpn(1)===0)break;ne.isub(j)}return j.iushln(J)},A.prototype.invm=function(Z){return this.egcd(Z).a.umod(Z)},A.prototype.isEven=function(){return!(1&this.words[0])},A.prototype.isOdd=function(){return!(1&~this.words[0])},A.prototype.andln=function(Z){return this.words[0]&Z},A.prototype.bincn=function(Z){p(typeof Z=="number");var ne=Z%26,j=(Z-ne)/26,J=1<>>26,X&=67108863,this.words[z]=X}return q!==0&&(this.words[z]=q,this.length++),this},A.prototype.isZero=function(){return this.length===1&&this.words[0]===0},A.prototype.cmpn=function(Z){var ne,j=Z<0;if(this.negative!==0&&!j)return-1;if(this.negative===0&&j)return 1;if(this.strip(),this.length>1)ne=1;else{j&&(Z=-Z),p(Z<=67108863,"Number is too big");var J=0|this.words[0];ne=J===Z?0:JZ.length)return 1;if(this.length=0;j--){var J=0|this.words[j],q=0|Z.words[j];if(J!==q){Jq&&(ne=1);break}}return ne},A.prototype.gtn=function(Z){return this.cmpn(Z)===1},A.prototype.gt=function(Z){return this.cmp(Z)===1},A.prototype.gten=function(Z){return this.cmpn(Z)>=0},A.prototype.gte=function(Z){return this.cmp(Z)>=0},A.prototype.ltn=function(Z){return this.cmpn(Z)===-1},A.prototype.lt=function(Z){return this.cmp(Z)===-1},A.prototype.lten=function(Z){return this.cmpn(Z)<=0},A.prototype.lte=function(Z){return this.cmp(Z)<=0},A.prototype.eqn=function(Z){return this.cmpn(Z)===0},A.prototype.eq=function(Z){return this.cmp(Z)===0},A.red=function(Z){return new Ae(Z)},A.prototype.toRed=function(Z){return p(!this.red,"Already a number in reduction context"),p(this.negative===0,"red works only with positives"),Z.convertTo(this)._forceRed(Z)},A.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},A.prototype._forceRed=function(Z){return this.red=Z,this},A.prototype.forceRed=function(Z){return p(!this.red,"Already a number in reduction context"),this._forceRed(Z)},A.prototype.redAdd=function(Z){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,Z)},A.prototype.redIAdd=function(Z){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Z)},A.prototype.redSub=function(Z){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,Z)},A.prototype.redISub=function(Z){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,Z)},A.prototype.redShl=function(Z){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,Z)},A.prototype.redMul=function(Z){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,Z),this.red.mul(this,Z)},A.prototype.redIMul=function(Z){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,Z),this.red.imul(this,Z)},A.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},A.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},A.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},A.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},A.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},A.prototype.redPow=function(Z){return p(this.red&&!Z.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Z)};var W={k256:null,p224:null,p192:null,p25519:null};function V(Z,ne){this.name=Z,this.p=new A(ne,16),this.n=this.p.bitLength(),this.k=new A(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function te(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ue(){V.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function fe(){V.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){V.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Ae(Z){if(typeof Z=="string"){var ne=A._prime(Z);this.m=ne.p,this.prime=ne}else p(Z.gtn(1),"modulus must be greater than 1"),this.m=Z,this.prime=null}function we(Z){Ae.call(this,Z),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new A(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V.prototype._tmp=function(){var Z=new A(null);return Z.words=new Array(Math.ceil(this.n/13)),Z},V.prototype.ireduce=function(Z){var ne,j=Z;do this.split(j,this.tmp),ne=(j=(j=this.imulK(j)).iadd(this.tmp)).bitLength();while(ne>this.n);var J=ne0?j.isub(this.p):j.strip!==void 0?j.strip():j._strip(),j},V.prototype.split=function(Z,ne){Z.iushrn(this.n,0,ne)},V.prototype.imulK=function(Z){return Z.imul(this.k)},g(te,V),te.prototype.split=function(Z,ne){for(var j=4194303,J=Math.min(Z.length,9),q=0;q>>22,z=X}z>>>=22,Z.words[q-10]=z,z===0&&Z.length>10?Z.length-=10:Z.length-=9},te.prototype.imulK=function(Z){Z.words[Z.length]=0,Z.words[Z.length+1]=0,Z.length+=2;for(var ne=0,j=0;j>>=26,Z.words[j]=q,ne=J}return ne!==0&&(Z.words[Z.length++]=ne),Z},A._prime=function(Z){if(W[Z])return W[Z];var ne;if(Z==="k256")ne=new te;else if(Z==="p224")ne=new ue;else if(Z==="p192")ne=new fe;else{if(Z!=="p25519")throw new Error("Unknown prime "+Z);ne=new de}return W[Z]=ne,ne},Ae.prototype._verify1=function(Z){p(Z.negative===0,"red works only with positives"),p(Z.red,"red works only with red numbers")},Ae.prototype._verify2=function(Z,ne){p(!(Z.negative|ne.negative),"red works only with positives"),p(Z.red&&Z.red===ne.red,"red works only with red numbers")},Ae.prototype.imod=function(Z){return this.prime?this.prime.ireduce(Z)._forceRed(this):Z.umod(this.m)._forceRed(this)},Ae.prototype.neg=function(Z){return Z.isZero()?Z.clone():this.m.sub(Z)._forceRed(this)},Ae.prototype.add=function(Z,ne){this._verify2(Z,ne);var j=Z.add(ne);return j.cmp(this.m)>=0&&j.isub(this.m),j._forceRed(this)},Ae.prototype.iadd=function(Z,ne){this._verify2(Z,ne);var j=Z.iadd(ne);return j.cmp(this.m)>=0&&j.isub(this.m),j},Ae.prototype.sub=function(Z,ne){this._verify2(Z,ne);var j=Z.sub(ne);return j.cmpn(0)<0&&j.iadd(this.m),j._forceRed(this)},Ae.prototype.isub=function(Z,ne){this._verify2(Z,ne);var j=Z.isub(ne);return j.cmpn(0)<0&&j.iadd(this.m),j},Ae.prototype.shl=function(Z,ne){return this._verify1(Z),this.imod(Z.ushln(ne))},Ae.prototype.imul=function(Z,ne){return this._verify2(Z,ne),this.imod(Z.imul(ne))},Ae.prototype.mul=function(Z,ne){return this._verify2(Z,ne),this.imod(Z.mul(ne))},Ae.prototype.isqr=function(Z){return this.imul(Z,Z.clone())},Ae.prototype.sqr=function(Z){return this.mul(Z,Z)},Ae.prototype.sqrt=function(Z){if(Z.isZero())return Z.clone();var ne=this.m.andln(3);if(p(ne%2==1),ne===3){var j=this.m.add(new A(1)).iushrn(2);return this.pow(Z,j)}for(var J=this.m.subn(1),q=0;!J.isZero()&&J.andln(1)===0;)q++,J.iushrn(1);p(!J.isZero());var z=new A(1).toRed(this),X=z.redNeg(),se=this.m.subn(1).iushrn(1),oe=this.m.bitLength();for(oe=new A(2*oe*oe).toRed(this);this.pow(oe,se).cmp(X)!==0;)oe.redIAdd(X);for(var ye=this.pow(oe,J),ae=this.pow(Z,J.addn(1).iushrn(1)),me=this.pow(Z,J),Fe=q;me.cmp(z)!==0;){for(var _e=me,rt=0;_e.cmp(z)!==0;rt++)_e=_e.redSqr();p(rt=0;q--){for(var ye=ne.words[q],ae=oe-1;ae>=0;ae--){var me=ye>>ae&1;z!==J[0]&&(z=this.sqr(z)),me!==0||X!==0?(X<<=1,X|=me,(++se===j||q===0&&ae===0)&&(z=this.mul(z,J[X]),se=0,X=0)):se=0}oe=26}return z},Ae.prototype.convertTo=function(Z){var ne=Z.umod(this.m);return ne===Z?ne.clone():ne},Ae.prototype.convertFrom=function(Z){var ne=Z.clone();return ne.red=null,ne},A.mont=function(Z){return new we(Z)},g(we,Ae),we.prototype.convertTo=function(Z){return this.imod(Z.ushln(this.shift))},we.prototype.convertFrom=function(Z){var ne=this.imod(Z.mul(this.rinv));return ne.red=null,ne},we.prototype.imul=function(Z,ne){if(Z.isZero()||ne.isZero())return Z.words[0]=0,Z.length=1,Z;var j=Z.imul(ne),J=j.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),q=j.isub(J).iushrn(this.shift),z=q;return q.cmp(this.m)>=0?z=q.isub(this.m):q.cmpn(0)<0&&(z=q.iadd(this.m)),z._forceRed(this)},we.prototype.mul=function(Z,ne){if(Z.isZero()||ne.isZero())return new A(0)._forceRed(this);var j=Z.mul(ne),J=j.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),q=j.isub(J).iushrn(this.shift),z=q;return q.cmp(this.m)>=0?z=q.isub(this.m):q.cmpn(0)<0&&(z=q.iadd(this.m)),z._forceRed(this)},we.prototype.invm=function(Z){return this.imod(Z._invmp(this.m).mul(this.r2))._forceRed(this)}})(c===void 0||c,void 0)},{buffer:188}],185:[function(a,c,u){u.byteLength=b,u.toByteArray=E,u.fromByteArray=_;for(var h=[],d=[],p=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=0,m=g.length;A0)throw new Error("Invalid string. Length must be a multiple of 4");var F=D.indexOf("=");return F===-1&&(F=T),[F,F===T?0:4-F%4]}function b(D){var T=y(D),F=T[0],N=T[1];return 3*(F+N)/4-N}function I(D,T,F){return 3*(T+F)/4-F}function E(D){var T,F,N=y(D),H=N[0],W=N[1],V=new p(I(D,H,W)),te=0,ue=W>0?H-4:H;for(F=0;F>16&255,V[te++]=T>>8&255,V[te++]=255&T;return W===2&&(T=d[D.charCodeAt(F)]<<2|d[D.charCodeAt(F+1)]>>4,V[te++]=255&T),W===1&&(T=d[D.charCodeAt(F)]<<10|d[D.charCodeAt(F+1)]<<4|d[D.charCodeAt(F+2)]>>2,V[te++]=T>>8&255,V[te++]=255&T),V}function B(D){return h[D>>18&63]+h[D>>12&63]+h[D>>6&63]+h[63&D]}function S(D,T,F){for(var N,H=[],W=T;Wte?te:V+W));return N===1?(T=D[F-1],H.push(h[T>>2]+h[T<<4&63]+"==")):N===2&&(T=(D[F-2]<<8)+D[F-1],H.push(h[T>>10]+h[T>>4&63]+h[T<<2&63]+"=")),H.join("")}d[45]=62,d[95]=63},{}],186:[function(a,c,u){(function(h,d){function p(j,J){if(!j)throw new Error(J||"Assertion failed")}function g(j,J){j.super_=J;var q=function(){};q.prototype=J.prototype,j.prototype=new q,j.prototype.constructor=j}function A(j,J,q){if(A.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&(J!=="le"&&J!=="be"||(q=J,J=10),this._init(j||0,J||10,q||"be"))}var m;typeof h=="object"?h.exports=A:d.BN=A,A.BN=A,A.wordSize=26;try{m=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:a("buffer").Buffer}catch{}function y(j,J){var q=j.charCodeAt(J);return q>=48&&q<=57?q-48:q>=65&&q<=70?q-55:q>=97&&q<=102?q-87:void p(!1,"Invalid character in "+j)}function b(j,J,q){var z=y(j,q);return q-1>=J&&(z|=y(j,q-1)<<4),z}function I(j,J,q,z){for(var X=0,se=0,oe=Math.min(j.length,q),ye=J;ye=49?ae-49+10:ae>=17?ae-17+10:ae,p(ae>=0&&se0?j:J},A.min=function(j,J){return j.cmp(J)<0?j:J},A.prototype._init=function(j,J,q){if(typeof j=="number")return this._initNumber(j,J,q);if(typeof j=="object")return this._initArray(j,J,q);J==="hex"&&(J=16),p(J===(0|J)&&J>=2&&J<=36);var z=0;(j=j.toString().replace(/\s+/g,""))[0]==="-"&&(z++,this.negative=1),z=0;z-=3)se=j[z]|j[z-1]<<8|j[z-2]<<16,this.words[X]|=se<>>26-oe&67108863,(oe+=24)>=26&&(oe-=26,X++);else if(q==="le")for(z=0,X=0;z>>26-oe&67108863,(oe+=24)>=26&&(oe-=26,X++);return this._strip()},A.prototype._parseHex=function(j,J,q){this.length=Math.ceil((j.length-J)/6),this.words=new Array(this.length);for(var z=0;z=J;z-=2)X=b(j,J,z)<=18?(se-=18,oe+=1,this.words[oe]|=X>>>26):se+=8;else for(z=(j.length-J)%2==0?J+1:J;z=18?(se-=18,oe+=1,this.words[oe]|=X>>>26):se+=8;this._strip()},A.prototype._parseBase=function(j,J,q){this.words=[0],this.length=1;for(var z=0,X=1;X<=67108863;X*=J)z++;z--,X=X/J|0;for(var se=j.length-q,oe=se%z,ye=Math.min(se,se-oe)+q,ae=0,me=q;me1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},A.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{A.prototype[Symbol.for("nodejs.util.inspect.custom")]=B}catch{A.prototype.inspect=B}else A.prototype.inspect=B;function B(){return(this.red?""}var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];A.prototype.toString=function(j,J){var q;if(J=0|J||1,(j=j||10)===16||j==="hex"){q="";for(var z=0,X=0,se=0;se>>24-z&16777215,(z+=2)>=26&&(z-=26,se--),q=X!==0||se!==this.length-1?S[6-ye.length]+ye+q:ye+q}for(X!==0&&(q=X.toString(16)+q);q.length%J!=0;)q="0"+q;return this.negative!==0&&(q="-"+q),q}if(j===(0|j)&&j>=2&&j<=36){var ae=_[j],me=D[j];q="";var Fe=this.clone();for(Fe.negative=0;!Fe.isZero();){var _e=Fe.modrn(me).toString(j);q=(Fe=Fe.idivn(me)).isZero()?_e+q:S[ae-_e.length]+_e+q}for(this.isZero()&&(q="0"+q);q.length%J!=0;)q="0"+q;return this.negative!==0&&(q="-"+q),q}p(!1,"Base should be between 2 and 36")},A.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=67108864*this.words[1]:this.length===3&&this.words[2]===1?j+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},A.prototype.toJSON=function(){return this.toString(16,2)},m&&(A.prototype.toBuffer=function(j,J){return this.toArrayLike(m,j,J)}),A.prototype.toArray=function(j,J){return this.toArrayLike(Array,j,J)};var T=function(j,J){return j.allocUnsafe?j.allocUnsafe(J):new j(J)};function F(j){for(var J=new Array(j.bitLength()),q=0;q>>X&1}return J}function N(j,J,q){q.negative=J.negative^j.negative;var z=j.length+J.length|0;q.length=z,z=z-1|0;var X=0|j.words[0],se=0|J.words[0],oe=X*se,ye=67108863&oe,ae=oe/67108864|0;q.words[0]=ye;for(var me=1;me>>26,_e=67108863&ae,rt=Math.min(me,J.length-1),et=Math.max(0,me-j.length+1);et<=rt;et++){var st=me-et|0;Fe+=(oe=(X=0|j.words[st])*(se=0|J.words[et])+_e)/67108864|0,_e=67108863&oe}q.words[me]=0|_e,ae=0|Fe}return ae!==0?q.words[me]=0|ae:q.length--,q._strip()}A.prototype.toArrayLike=function(j,J,q){this._strip();var z=this.byteLength(),X=q||Math.max(1,z);p(z<=X,"byte array longer than desired length"),p(X>0,"Requested array length <= 0");var se=T(j,X);return this["_toArrayLike"+(J==="le"?"LE":"BE")](se,z),se},A.prototype._toArrayLikeLE=function(j,J){for(var q=0,z=0,X=0,se=0;X>8&255),q>16&255),se===6?(q>24&255),z=0,se=0):(z=oe>>>24,se+=2)}if(q=0&&(j[q--]=oe>>8&255),q>=0&&(j[q--]=oe>>16&255),se===6?(q>=0&&(j[q--]=oe>>24&255),z=0,se=0):(z=oe>>>24,se+=2)}if(q>=0)for(j[q--]=z;q>=0;)j[q--]=0},Math.clz32?A.prototype._countBits=function(j){return 32-Math.clz32(j)}:A.prototype._countBits=function(j){var J=j,q=0;return J>=4096&&(q+=13,J>>>=13),J>=64&&(q+=7,J>>>=7),J>=8&&(q+=4,J>>>=4),J>=2&&(q+=2,J>>>=2),q+J},A.prototype._zeroBits=function(j){if(j===0)return 26;var J=j,q=0;return 8191&J||(q+=13,J>>>=13),127&J||(q+=7,J>>>=7),15&J||(q+=4,J>>>=4),3&J||(q+=2,J>>>=2),1&J||q++,q},A.prototype.bitLength=function(){var j=this.words[this.length-1],J=this._countBits(j);return 26*(this.length-1)+J},A.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,J=0;Jj.length?this.clone().ior(j):j.clone().ior(this)},A.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},A.prototype.iuand=function(j){var J;J=this.length>j.length?j:this;for(var q=0;qj.length?this.clone().iand(j):j.clone().iand(this)},A.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},A.prototype.iuxor=function(j){var J,q;this.length>j.length?(J=this,q=j):(J=j,q=this);for(var z=0;zj.length?this.clone().ixor(j):j.clone().ixor(this)},A.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},A.prototype.inotn=function(j){p(typeof j=="number"&&j>=0);var J=0|Math.ceil(j/26),q=j%26;this._expand(J),q>0&&J--;for(var z=0;z0&&(this.words[z]=~this.words[z]&67108863>>26-q),this._strip()},A.prototype.notn=function(j){return this.clone().inotn(j)},A.prototype.setn=function(j,J){p(typeof j=="number"&&j>=0);var q=j/26|0,z=j%26;return this._expand(q+1),this.words[q]=J?this.words[q]|1<j.length?(q=this,z=j):(q=j,z=this);for(var X=0,se=0;se>>26;for(;X!==0&&se>>26;if(this.length=q.length,X!==0)this.words[this.length]=X,this.length++;else if(q!==this)for(;sej.length?this.clone().iadd(j):j.clone().iadd(this)},A.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var J=this.iadd(j);return j.negative=1,J._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var q,z,X=this.cmp(j);if(X===0)return this.negative=0,this.length=1,this.words[0]=0,this;X>0?(q=this,z=j):(q=j,z=this);for(var se=0,oe=0;oe>26,this.words[oe]=67108863&J;for(;se!==0&&oe>26,this.words[oe]=67108863&J;if(se===0&&oe>>13,et=0|oe[1],st=8191&et,Ge=et>>>13,Be=0|oe[2],Te=8191&Be,je=Be>>>13,lt=0|oe[3],Me=8191<,Ke=lt>>>13,Rt=0|oe[4],Ie=8191&Rt,Re=Rt>>>13,qe=0|oe[5],pt=8191&qe,Lt=qe>>>13,Qe=0|oe[6],_t=8191&Qe,Ft=Qe>>>13,Ze=0|oe[7],$e=8191&Ze,nt=Ze>>>13,Ot=0|oe[8],He=8191&Ot,Je=Ot>>>13,tt=0|oe[9],mt=8191&tt,Xe=tt>>>13,Ye=0|ye[0],ot=8191&Ye,yt=Ye>>>13,Mt=0|ye[1],cr=8191&Mt,$t=Mt>>>13,Hr=0|ye[2],mr=8191&Hr,sr=Hr>>>13,Yr=0|ye[3],Mr=8191&Yr,Dr=Yr>>>13,nn=0|ye[4],Sr=8191&nn,tn=nn>>>13,Cn=0|ye[5],Jn=8191&Cn,Rr=Cn>>>13,An=0|ye[6],dn=8191&An,br=An>>>13,gn=0|ye[7],wn=8191&gn,kn=gn>>>13,Dn=0|ye[8],oi=8191&Dn,Kr=Dn>>>13,On=0|ye[9],Ci=8191&On,li=On>>>13;q.negative=j.negative^J.negative,q.length=19;var ia=(me+(z=Math.imul(_e,ot))|0)+((8191&(X=(X=Math.imul(_e,yt))+Math.imul(rt,ot)|0))<<13)|0;me=((se=Math.imul(rt,yt))+(X>>>13)|0)+(ia>>>26)|0,ia&=67108863,z=Math.imul(st,ot),X=(X=Math.imul(st,yt))+Math.imul(Ge,ot)|0,se=Math.imul(Ge,yt);var ht=(me+(z=z+Math.imul(_e,cr)|0)|0)+((8191&(X=(X=X+Math.imul(_e,$t)|0)+Math.imul(rt,cr)|0))<<13)|0;me=((se=se+Math.imul(rt,$t)|0)+(X>>>13)|0)+(ht>>>26)|0,ht&=67108863,z=Math.imul(Te,ot),X=(X=Math.imul(Te,yt))+Math.imul(je,ot)|0,se=Math.imul(je,yt),z=z+Math.imul(st,cr)|0,X=(X=X+Math.imul(st,$t)|0)+Math.imul(Ge,cr)|0,se=se+Math.imul(Ge,$t)|0;var Pt=(me+(z=z+Math.imul(_e,mr)|0)|0)+((8191&(X=(X=X+Math.imul(_e,sr)|0)+Math.imul(rt,mr)|0))<<13)|0;me=((se=se+Math.imul(rt,sr)|0)+(X>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,z=Math.imul(Me,ot),X=(X=Math.imul(Me,yt))+Math.imul(Ke,ot)|0,se=Math.imul(Ke,yt),z=z+Math.imul(Te,cr)|0,X=(X=X+Math.imul(Te,$t)|0)+Math.imul(je,cr)|0,se=se+Math.imul(je,$t)|0,z=z+Math.imul(st,mr)|0,X=(X=X+Math.imul(st,sr)|0)+Math.imul(Ge,mr)|0,se=se+Math.imul(Ge,sr)|0;var Zt=(me+(z=z+Math.imul(_e,Mr)|0)|0)+((8191&(X=(X=X+Math.imul(_e,Dr)|0)+Math.imul(rt,Mr)|0))<<13)|0;me=((se=se+Math.imul(rt,Dr)|0)+(X>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,z=Math.imul(Ie,ot),X=(X=Math.imul(Ie,yt))+Math.imul(Re,ot)|0,se=Math.imul(Re,yt),z=z+Math.imul(Me,cr)|0,X=(X=X+Math.imul(Me,$t)|0)+Math.imul(Ke,cr)|0,se=se+Math.imul(Ke,$t)|0,z=z+Math.imul(Te,mr)|0,X=(X=X+Math.imul(Te,sr)|0)+Math.imul(je,mr)|0,se=se+Math.imul(je,sr)|0,z=z+Math.imul(st,Mr)|0,X=(X=X+Math.imul(st,Dr)|0)+Math.imul(Ge,Mr)|0,se=se+Math.imul(Ge,Dr)|0;var vn=(me+(z=z+Math.imul(_e,Sr)|0)|0)+((8191&(X=(X=X+Math.imul(_e,tn)|0)+Math.imul(rt,Sr)|0))<<13)|0;me=((se=se+Math.imul(rt,tn)|0)+(X>>>13)|0)+(vn>>>26)|0,vn&=67108863,z=Math.imul(pt,ot),X=(X=Math.imul(pt,yt))+Math.imul(Lt,ot)|0,se=Math.imul(Lt,yt),z=z+Math.imul(Ie,cr)|0,X=(X=X+Math.imul(Ie,$t)|0)+Math.imul(Re,cr)|0,se=se+Math.imul(Re,$t)|0,z=z+Math.imul(Me,mr)|0,X=(X=X+Math.imul(Me,sr)|0)+Math.imul(Ke,mr)|0,se=se+Math.imul(Ke,sr)|0,z=z+Math.imul(Te,Mr)|0,X=(X=X+Math.imul(Te,Dr)|0)+Math.imul(je,Mr)|0,se=se+Math.imul(je,Dr)|0,z=z+Math.imul(st,Sr)|0,X=(X=X+Math.imul(st,tn)|0)+Math.imul(Ge,Sr)|0,se=se+Math.imul(Ge,tn)|0;var jn=(me+(z=z+Math.imul(_e,Jn)|0)|0)+((8191&(X=(X=X+Math.imul(_e,Rr)|0)+Math.imul(rt,Jn)|0))<<13)|0;me=((se=se+Math.imul(rt,Rr)|0)+(X>>>13)|0)+(jn>>>26)|0,jn&=67108863,z=Math.imul(_t,ot),X=(X=Math.imul(_t,yt))+Math.imul(Ft,ot)|0,se=Math.imul(Ft,yt),z=z+Math.imul(pt,cr)|0,X=(X=X+Math.imul(pt,$t)|0)+Math.imul(Lt,cr)|0,se=se+Math.imul(Lt,$t)|0,z=z+Math.imul(Ie,mr)|0,X=(X=X+Math.imul(Ie,sr)|0)+Math.imul(Re,mr)|0,se=se+Math.imul(Re,sr)|0,z=z+Math.imul(Me,Mr)|0,X=(X=X+Math.imul(Me,Dr)|0)+Math.imul(Ke,Mr)|0,se=se+Math.imul(Ke,Dr)|0,z=z+Math.imul(Te,Sr)|0,X=(X=X+Math.imul(Te,tn)|0)+Math.imul(je,Sr)|0,se=se+Math.imul(je,tn)|0,z=z+Math.imul(st,Jn)|0,X=(X=X+Math.imul(st,Rr)|0)+Math.imul(Ge,Jn)|0,se=se+Math.imul(Ge,Rr)|0;var ba=(me+(z=z+Math.imul(_e,dn)|0)|0)+((8191&(X=(X=X+Math.imul(_e,br)|0)+Math.imul(rt,dn)|0))<<13)|0;me=((se=se+Math.imul(rt,br)|0)+(X>>>13)|0)+(ba>>>26)|0,ba&=67108863,z=Math.imul($e,ot),X=(X=Math.imul($e,yt))+Math.imul(nt,ot)|0,se=Math.imul(nt,yt),z=z+Math.imul(_t,cr)|0,X=(X=X+Math.imul(_t,$t)|0)+Math.imul(Ft,cr)|0,se=se+Math.imul(Ft,$t)|0,z=z+Math.imul(pt,mr)|0,X=(X=X+Math.imul(pt,sr)|0)+Math.imul(Lt,mr)|0,se=se+Math.imul(Lt,sr)|0,z=z+Math.imul(Ie,Mr)|0,X=(X=X+Math.imul(Ie,Dr)|0)+Math.imul(Re,Mr)|0,se=se+Math.imul(Re,Dr)|0,z=z+Math.imul(Me,Sr)|0,X=(X=X+Math.imul(Me,tn)|0)+Math.imul(Ke,Sr)|0,se=se+Math.imul(Ke,tn)|0,z=z+Math.imul(Te,Jn)|0,X=(X=X+Math.imul(Te,Rr)|0)+Math.imul(je,Jn)|0,se=se+Math.imul(je,Rr)|0,z=z+Math.imul(st,dn)|0,X=(X=X+Math.imul(st,br)|0)+Math.imul(Ge,dn)|0,se=se+Math.imul(Ge,br)|0;var aa=(me+(z=z+Math.imul(_e,wn)|0)|0)+((8191&(X=(X=X+Math.imul(_e,kn)|0)+Math.imul(rt,wn)|0))<<13)|0;me=((se=se+Math.imul(rt,kn)|0)+(X>>>13)|0)+(aa>>>26)|0,aa&=67108863,z=Math.imul(He,ot),X=(X=Math.imul(He,yt))+Math.imul(Je,ot)|0,se=Math.imul(Je,yt),z=z+Math.imul($e,cr)|0,X=(X=X+Math.imul($e,$t)|0)+Math.imul(nt,cr)|0,se=se+Math.imul(nt,$t)|0,z=z+Math.imul(_t,mr)|0,X=(X=X+Math.imul(_t,sr)|0)+Math.imul(Ft,mr)|0,se=se+Math.imul(Ft,sr)|0,z=z+Math.imul(pt,Mr)|0,X=(X=X+Math.imul(pt,Dr)|0)+Math.imul(Lt,Mr)|0,se=se+Math.imul(Lt,Dr)|0,z=z+Math.imul(Ie,Sr)|0,X=(X=X+Math.imul(Ie,tn)|0)+Math.imul(Re,Sr)|0,se=se+Math.imul(Re,tn)|0,z=z+Math.imul(Me,Jn)|0,X=(X=X+Math.imul(Me,Rr)|0)+Math.imul(Ke,Jn)|0,se=se+Math.imul(Ke,Rr)|0,z=z+Math.imul(Te,dn)|0,X=(X=X+Math.imul(Te,br)|0)+Math.imul(je,dn)|0,se=se+Math.imul(je,br)|0,z=z+Math.imul(st,wn)|0,X=(X=X+Math.imul(st,kn)|0)+Math.imul(Ge,wn)|0,se=se+Math.imul(Ge,kn)|0;var wo=(me+(z=z+Math.imul(_e,oi)|0)|0)+((8191&(X=(X=X+Math.imul(_e,Kr)|0)+Math.imul(rt,oi)|0))<<13)|0;me=((se=se+Math.imul(rt,Kr)|0)+(X>>>13)|0)+(wo>>>26)|0,wo&=67108863,z=Math.imul(mt,ot),X=(X=Math.imul(mt,yt))+Math.imul(Xe,ot)|0,se=Math.imul(Xe,yt),z=z+Math.imul(He,cr)|0,X=(X=X+Math.imul(He,$t)|0)+Math.imul(Je,cr)|0,se=se+Math.imul(Je,$t)|0,z=z+Math.imul($e,mr)|0,X=(X=X+Math.imul($e,sr)|0)+Math.imul(nt,mr)|0,se=se+Math.imul(nt,sr)|0,z=z+Math.imul(_t,Mr)|0,X=(X=X+Math.imul(_t,Dr)|0)+Math.imul(Ft,Mr)|0,se=se+Math.imul(Ft,Dr)|0,z=z+Math.imul(pt,Sr)|0,X=(X=X+Math.imul(pt,tn)|0)+Math.imul(Lt,Sr)|0,se=se+Math.imul(Lt,tn)|0,z=z+Math.imul(Ie,Jn)|0,X=(X=X+Math.imul(Ie,Rr)|0)+Math.imul(Re,Jn)|0,se=se+Math.imul(Re,Rr)|0,z=z+Math.imul(Me,dn)|0,X=(X=X+Math.imul(Me,br)|0)+Math.imul(Ke,dn)|0,se=se+Math.imul(Ke,br)|0,z=z+Math.imul(Te,wn)|0,X=(X=X+Math.imul(Te,kn)|0)+Math.imul(je,wn)|0,se=se+Math.imul(je,kn)|0,z=z+Math.imul(st,oi)|0,X=(X=X+Math.imul(st,Kr)|0)+Math.imul(Ge,oi)|0,se=se+Math.imul(Ge,Kr)|0;var is=(me+(z=z+Math.imul(_e,Ci)|0)|0)+((8191&(X=(X=X+Math.imul(_e,li)|0)+Math.imul(rt,Ci)|0))<<13)|0;me=((se=se+Math.imul(rt,li)|0)+(X>>>13)|0)+(is>>>26)|0,is&=67108863,z=Math.imul(mt,cr),X=(X=Math.imul(mt,$t))+Math.imul(Xe,cr)|0,se=Math.imul(Xe,$t),z=z+Math.imul(He,mr)|0,X=(X=X+Math.imul(He,sr)|0)+Math.imul(Je,mr)|0,se=se+Math.imul(Je,sr)|0,z=z+Math.imul($e,Mr)|0,X=(X=X+Math.imul($e,Dr)|0)+Math.imul(nt,Mr)|0,se=se+Math.imul(nt,Dr)|0,z=z+Math.imul(_t,Sr)|0,X=(X=X+Math.imul(_t,tn)|0)+Math.imul(Ft,Sr)|0,se=se+Math.imul(Ft,tn)|0,z=z+Math.imul(pt,Jn)|0,X=(X=X+Math.imul(pt,Rr)|0)+Math.imul(Lt,Jn)|0,se=se+Math.imul(Lt,Rr)|0,z=z+Math.imul(Ie,dn)|0,X=(X=X+Math.imul(Ie,br)|0)+Math.imul(Re,dn)|0,se=se+Math.imul(Re,br)|0,z=z+Math.imul(Me,wn)|0,X=(X=X+Math.imul(Me,kn)|0)+Math.imul(Ke,wn)|0,se=se+Math.imul(Ke,kn)|0,z=z+Math.imul(Te,oi)|0,X=(X=X+Math.imul(Te,Kr)|0)+Math.imul(je,oi)|0,se=se+Math.imul(je,Kr)|0;var as=(me+(z=z+Math.imul(st,Ci)|0)|0)+((8191&(X=(X=X+Math.imul(st,li)|0)+Math.imul(Ge,Ci)|0))<<13)|0;me=((se=se+Math.imul(Ge,li)|0)+(X>>>13)|0)+(as>>>26)|0,as&=67108863,z=Math.imul(mt,mr),X=(X=Math.imul(mt,sr))+Math.imul(Xe,mr)|0,se=Math.imul(Xe,sr),z=z+Math.imul(He,Mr)|0,X=(X=X+Math.imul(He,Dr)|0)+Math.imul(Je,Mr)|0,se=se+Math.imul(Je,Dr)|0,z=z+Math.imul($e,Sr)|0,X=(X=X+Math.imul($e,tn)|0)+Math.imul(nt,Sr)|0,se=se+Math.imul(nt,tn)|0,z=z+Math.imul(_t,Jn)|0,X=(X=X+Math.imul(_t,Rr)|0)+Math.imul(Ft,Jn)|0,se=se+Math.imul(Ft,Rr)|0,z=z+Math.imul(pt,dn)|0,X=(X=X+Math.imul(pt,br)|0)+Math.imul(Lt,dn)|0,se=se+Math.imul(Lt,br)|0,z=z+Math.imul(Ie,wn)|0,X=(X=X+Math.imul(Ie,kn)|0)+Math.imul(Re,wn)|0,se=se+Math.imul(Re,kn)|0,z=z+Math.imul(Me,oi)|0,X=(X=X+Math.imul(Me,Kr)|0)+Math.imul(Ke,oi)|0,se=se+Math.imul(Ke,Kr)|0;var vs=(me+(z=z+Math.imul(Te,Ci)|0)|0)+((8191&(X=(X=X+Math.imul(Te,li)|0)+Math.imul(je,Ci)|0))<<13)|0;me=((se=se+Math.imul(je,li)|0)+(X>>>13)|0)+(vs>>>26)|0,vs&=67108863,z=Math.imul(mt,Mr),X=(X=Math.imul(mt,Dr))+Math.imul(Xe,Mr)|0,se=Math.imul(Xe,Dr),z=z+Math.imul(He,Sr)|0,X=(X=X+Math.imul(He,tn)|0)+Math.imul(Je,Sr)|0,se=se+Math.imul(Je,tn)|0,z=z+Math.imul($e,Jn)|0,X=(X=X+Math.imul($e,Rr)|0)+Math.imul(nt,Jn)|0,se=se+Math.imul(nt,Rr)|0,z=z+Math.imul(_t,dn)|0,X=(X=X+Math.imul(_t,br)|0)+Math.imul(Ft,dn)|0,se=se+Math.imul(Ft,br)|0,z=z+Math.imul(pt,wn)|0,X=(X=X+Math.imul(pt,kn)|0)+Math.imul(Lt,wn)|0,se=se+Math.imul(Lt,kn)|0,z=z+Math.imul(Ie,oi)|0,X=(X=X+Math.imul(Ie,Kr)|0)+Math.imul(Re,oi)|0,se=se+Math.imul(Re,Kr)|0;var lo=(me+(z=z+Math.imul(Me,Ci)|0)|0)+((8191&(X=(X=X+Math.imul(Me,li)|0)+Math.imul(Ke,Ci)|0))<<13)|0;me=((se=se+Math.imul(Ke,li)|0)+(X>>>13)|0)+(lo>>>26)|0,lo&=67108863,z=Math.imul(mt,Sr),X=(X=Math.imul(mt,tn))+Math.imul(Xe,Sr)|0,se=Math.imul(Xe,tn),z=z+Math.imul(He,Jn)|0,X=(X=X+Math.imul(He,Rr)|0)+Math.imul(Je,Jn)|0,se=se+Math.imul(Je,Rr)|0,z=z+Math.imul($e,dn)|0,X=(X=X+Math.imul($e,br)|0)+Math.imul(nt,dn)|0,se=se+Math.imul(nt,br)|0,z=z+Math.imul(_t,wn)|0,X=(X=X+Math.imul(_t,kn)|0)+Math.imul(Ft,wn)|0,se=se+Math.imul(Ft,kn)|0,z=z+Math.imul(pt,oi)|0,X=(X=X+Math.imul(pt,Kr)|0)+Math.imul(Lt,oi)|0,se=se+Math.imul(Lt,Kr)|0;var ra=(me+(z=z+Math.imul(Ie,Ci)|0)|0)+((8191&(X=(X=X+Math.imul(Ie,li)|0)+Math.imul(Re,Ci)|0))<<13)|0;me=((se=se+Math.imul(Re,li)|0)+(X>>>13)|0)+(ra>>>26)|0,ra&=67108863,z=Math.imul(mt,Jn),X=(X=Math.imul(mt,Rr))+Math.imul(Xe,Jn)|0,se=Math.imul(Xe,Rr),z=z+Math.imul(He,dn)|0,X=(X=X+Math.imul(He,br)|0)+Math.imul(Je,dn)|0,se=se+Math.imul(Je,br)|0,z=z+Math.imul($e,wn)|0,X=(X=X+Math.imul($e,kn)|0)+Math.imul(nt,wn)|0,se=se+Math.imul(nt,kn)|0,z=z+Math.imul(_t,oi)|0,X=(X=X+Math.imul(_t,Kr)|0)+Math.imul(Ft,oi)|0,se=se+Math.imul(Ft,Kr)|0;var pi=(me+(z=z+Math.imul(pt,Ci)|0)|0)+((8191&(X=(X=X+Math.imul(pt,li)|0)+Math.imul(Lt,Ci)|0))<<13)|0;me=((se=se+Math.imul(Lt,li)|0)+(X>>>13)|0)+(pi>>>26)|0,pi&=67108863,z=Math.imul(mt,dn),X=(X=Math.imul(mt,br))+Math.imul(Xe,dn)|0,se=Math.imul(Xe,br),z=z+Math.imul(He,wn)|0,X=(X=X+Math.imul(He,kn)|0)+Math.imul(Je,wn)|0,se=se+Math.imul(Je,kn)|0,z=z+Math.imul($e,oi)|0,X=(X=X+Math.imul($e,Kr)|0)+Math.imul(nt,oi)|0,se=se+Math.imul(nt,Kr)|0;var Ms=(me+(z=z+Math.imul(_t,Ci)|0)|0)+((8191&(X=(X=X+Math.imul(_t,li)|0)+Math.imul(Ft,Ci)|0))<<13)|0;me=((se=se+Math.imul(Ft,li)|0)+(X>>>13)|0)+(Ms>>>26)|0,Ms&=67108863,z=Math.imul(mt,wn),X=(X=Math.imul(mt,kn))+Math.imul(Xe,wn)|0,se=Math.imul(Xe,kn),z=z+Math.imul(He,oi)|0,X=(X=X+Math.imul(He,Kr)|0)+Math.imul(Je,oi)|0,se=se+Math.imul(Je,Kr)|0;var Fs=(me+(z=z+Math.imul($e,Ci)|0)|0)+((8191&(X=(X=X+Math.imul($e,li)|0)+Math.imul(nt,Ci)|0))<<13)|0;me=((se=se+Math.imul(nt,li)|0)+(X>>>13)|0)+(Fs>>>26)|0,Fs&=67108863,z=Math.imul(mt,oi),X=(X=Math.imul(mt,Kr))+Math.imul(Xe,oi)|0,se=Math.imul(Xe,Kr);var zu=(me+(z=z+Math.imul(He,Ci)|0)|0)+((8191&(X=(X=X+Math.imul(He,li)|0)+Math.imul(Je,Ci)|0))<<13)|0;me=((se=se+Math.imul(Je,li)|0)+(X>>>13)|0)+(zu>>>26)|0,zu&=67108863;var Ul=(me+(z=Math.imul(mt,Ci))|0)+((8191&(X=(X=Math.imul(mt,li))+Math.imul(Xe,Ci)|0))<<13)|0;return me=((se=Math.imul(Xe,li))+(X>>>13)|0)+(Ul>>>26)|0,Ul&=67108863,ae[0]=ia,ae[1]=ht,ae[2]=Pt,ae[3]=Zt,ae[4]=vn,ae[5]=jn,ae[6]=ba,ae[7]=aa,ae[8]=wo,ae[9]=is,ae[10]=as,ae[11]=vs,ae[12]=lo,ae[13]=ra,ae[14]=pi,ae[15]=Ms,ae[16]=Fs,ae[17]=zu,ae[18]=Ul,me!==0&&(ae[19]=me,q.length++),q};function W(j,J,q){q.negative=J.negative^j.negative,q.length=j.length+J.length;for(var z=0,X=0,se=0;se>>26)|0)>>>26,oe&=67108863}q.words[se]=ye,z=oe,oe=X}return z!==0?q.words[se]=z:q.length--,q._strip()}function V(j,J,q){return W(j,J,q)}Math.imul||(H=N),A.prototype.mulTo=function(j,J){var q=this.length+j.length;return this.length===10&&j.length===10?H(this,j,J):q<63?N(this,j,J):q<1024?W(this,j,J):V(this,j,J)},A.prototype.mul=function(j){var J=new A(null);return J.words=new Array(this.length+j.length),this.mulTo(j,J)},A.prototype.mulf=function(j){var J=new A(null);return J.words=new Array(this.length+j.length),V(this,j,J)},A.prototype.imul=function(j){return this.clone().mulTo(j,this)},A.prototype.imuln=function(j){var J=j<0;J&&(j=-j),p(typeof j=="number"),p(j<67108864);for(var q=0,z=0;z>=26,q+=X/67108864|0,q+=se>>>26,this.words[z]=67108863&se}return q!==0&&(this.words[z]=q,this.length++),J?this.ineg():this},A.prototype.muln=function(j){return this.clone().imuln(j)},A.prototype.sqr=function(){return this.mul(this)},A.prototype.isqr=function(){return this.imul(this.clone())},A.prototype.pow=function(j){var J=F(j);if(J.length===0)return new A(1);for(var q=this,z=0;z=0);var J,q=j%26,z=(j-q)/26,X=67108863>>>26-q<<26-q;if(q!==0){var se=0;for(J=0;J>>26-q}se&&(this.words[J]=se,this.length++)}if(z!==0){for(J=this.length-1;J>=0;J--)this.words[J+z]=this.words[J];for(J=0;J=0),z=J?(J-J%26)/26:0;var X=j%26,se=Math.min((j-X)/26,this.length),oe=67108863^67108863>>>X<se)for(this.length-=se,ae=0;ae=0&&(me!==0||ae>=z);ae--){var Fe=0|this.words[ae];this.words[ae]=me<<26-X|Fe>>>X,me=Fe&oe}return ye&&me!==0&&(ye.words[ye.length++]=me),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},A.prototype.ishrn=function(j,J,q){return p(this.negative===0),this.iushrn(j,J,q)},A.prototype.shln=function(j){return this.clone().ishln(j)},A.prototype.ushln=function(j){return this.clone().iushln(j)},A.prototype.shrn=function(j){return this.clone().ishrn(j)},A.prototype.ushrn=function(j){return this.clone().iushrn(j)},A.prototype.testn=function(j){p(typeof j=="number"&&j>=0);var J=j%26,q=(j-J)/26,z=1<=0);var J=j%26,q=(j-J)/26;if(p(this.negative===0,"imaskn works only with positive numbers"),this.length<=q)return this;if(J!==0&&q++,this.length=Math.min(q,this.length),J!==0){var z=67108863^67108863>>>J<=67108864;J++)this.words[J]-=67108864,J===this.length-1?this.words[J+1]=1:this.words[J+1]++;return this.length=Math.max(this.length,J+1),this},A.prototype.isubn=function(j){if(p(typeof j=="number"),p(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var J=0;J>26)-(ye/67108864|0),this.words[z+q]=67108863&X}for(;z>26,this.words[z+q]=67108863&X;if(oe===0)return this._strip();for(p(oe===-1),oe=0,z=0;z>26,this.words[z]=67108863&X;return this.negative=1,this._strip()},A.prototype._wordDiv=function(j,J){var q=this.length-j.length,z=this.clone(),X=j,se=0|X.words[X.length-1];(q=26-this._countBits(se))!=0&&(X=X.ushln(q),z.iushln(q),se=0|X.words[X.length-1]);var oe,ye=z.length-X.length;if(J!=="mod"){(oe=new A(null)).length=ye+1,oe.words=new Array(oe.length);for(var ae=0;ae=0;Fe--){var _e=67108864*(0|z.words[X.length+Fe])+(0|z.words[X.length+Fe-1]);for(_e=Math.min(_e/se|0,67108863),z._ishlnsubmul(X,_e,Fe);z.negative!==0;)_e--,z.negative=0,z._ishlnsubmul(X,1,Fe),z.isZero()||(z.negative^=1);oe&&(oe.words[Fe]=_e)}return oe&&oe._strip(),z._strip(),J!=="div"&&q!==0&&z.iushrn(q),{div:oe||null,mod:z}},A.prototype.divmod=function(j,J,q){return p(!j.isZero()),this.isZero()?{div:new A(0),mod:new A(0)}:this.negative!==0&&j.negative===0?(se=this.neg().divmod(j,J),J!=="mod"&&(z=se.div.neg()),J!=="div"&&(X=se.mod.neg(),q&&X.negative!==0&&X.iadd(j)),{div:z,mod:X}):this.negative===0&&j.negative!==0?(se=this.divmod(j.neg(),J),J!=="mod"&&(z=se.div.neg()),{div:z,mod:se.mod}):this.negative&j.negative?(se=this.neg().divmod(j.neg(),J),J!=="div"&&(X=se.mod.neg(),q&&X.negative!==0&&X.isub(j)),{div:se.div,mod:X}):j.length>this.length||this.cmp(j)<0?{div:new A(0),mod:this}:j.length===1?J==="div"?{div:this.divn(j.words[0]),mod:null}:J==="mod"?{div:null,mod:new A(this.modrn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new A(this.modrn(j.words[0]))}:this._wordDiv(j,J);var z,X,se},A.prototype.div=function(j){return this.divmod(j,"div",!1).div},A.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},A.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},A.prototype.divRound=function(j){var J=this.divmod(j);if(J.mod.isZero())return J.div;var q=J.div.negative!==0?J.mod.isub(j):J.mod,z=j.ushrn(1),X=j.andln(1),se=q.cmp(z);return se<0||X===1&&se===0?J.div:J.div.negative!==0?J.div.isubn(1):J.div.iaddn(1)},A.prototype.modrn=function(j){var J=j<0;J&&(j=-j),p(j<=67108863);for(var q=(1<<26)%j,z=0,X=this.length-1;X>=0;X--)z=(q*z+(0|this.words[X]))%j;return J?-z:z},A.prototype.modn=function(j){return this.modrn(j)},A.prototype.idivn=function(j){var J=j<0;J&&(j=-j),p(j<=67108863);for(var q=0,z=this.length-1;z>=0;z--){var X=(0|this.words[z])+67108864*q;this.words[z]=X/j|0,q=X%j}return this._strip(),J?this.ineg():this},A.prototype.divn=function(j){return this.clone().idivn(j)},A.prototype.egcd=function(j){p(j.negative===0),p(!j.isZero());var J=this,q=j.clone();J=J.negative!==0?J.umod(j):J.clone();for(var z=new A(1),X=new A(0),se=new A(0),oe=new A(1),ye=0;J.isEven()&&q.isEven();)J.iushrn(1),q.iushrn(1),++ye;for(var ae=q.clone(),me=J.clone();!J.isZero();){for(var Fe=0,_e=1;!(J.words[0]&_e)&&Fe<26;++Fe,_e<<=1);if(Fe>0)for(J.iushrn(Fe);Fe-- >0;)(z.isOdd()||X.isOdd())&&(z.iadd(ae),X.isub(me)),z.iushrn(1),X.iushrn(1);for(var rt=0,et=1;!(q.words[0]&et)&&rt<26;++rt,et<<=1);if(rt>0)for(q.iushrn(rt);rt-- >0;)(se.isOdd()||oe.isOdd())&&(se.iadd(ae),oe.isub(me)),se.iushrn(1),oe.iushrn(1);J.cmp(q)>=0?(J.isub(q),z.isub(se),X.isub(oe)):(q.isub(J),se.isub(z),oe.isub(X))}return{a:se,b:oe,gcd:q.iushln(ye)}},A.prototype._invmp=function(j){p(j.negative===0),p(!j.isZero());var J=this,q=j.clone();J=J.negative!==0?J.umod(j):J.clone();for(var z,X=new A(1),se=new A(0),oe=q.clone();J.cmpn(1)>0&&q.cmpn(1)>0;){for(var ye=0,ae=1;!(J.words[0]&ae)&&ye<26;++ye,ae<<=1);if(ye>0)for(J.iushrn(ye);ye-- >0;)X.isOdd()&&X.iadd(oe),X.iushrn(1);for(var me=0,Fe=1;!(q.words[0]&Fe)&&me<26;++me,Fe<<=1);if(me>0)for(q.iushrn(me);me-- >0;)se.isOdd()&&se.iadd(oe),se.iushrn(1);J.cmp(q)>=0?(J.isub(q),X.isub(se)):(q.isub(J),se.isub(X))}return(z=J.cmpn(1)===0?X:se).cmpn(0)<0&&z.iadd(j),z},A.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var J=this.clone(),q=j.clone();J.negative=0,q.negative=0;for(var z=0;J.isEven()&&q.isEven();z++)J.iushrn(1),q.iushrn(1);for(;;){for(;J.isEven();)J.iushrn(1);for(;q.isEven();)q.iushrn(1);var X=J.cmp(q);if(X<0){var se=J;J=q,q=se}else if(X===0||q.cmpn(1)===0)break;J.isub(q)}return q.iushln(z)},A.prototype.invm=function(j){return this.egcd(j).a.umod(j)},A.prototype.isEven=function(){return!(1&this.words[0])},A.prototype.isOdd=function(){return!(1&~this.words[0])},A.prototype.andln=function(j){return this.words[0]&j},A.prototype.bincn=function(j){p(typeof j=="number");var J=j%26,q=(j-J)/26,z=1<>>26,oe&=67108863,this.words[se]=oe}return X!==0&&(this.words[se]=X,this.length++),this},A.prototype.isZero=function(){return this.length===1&&this.words[0]===0},A.prototype.cmpn=function(j){var J,q=j<0;if(this.negative!==0&&!q)return-1;if(this.negative===0&&q)return 1;if(this._strip(),this.length>1)J=1;else{q&&(j=-j),p(j<=67108863,"Number is too big");var z=0|this.words[0];J=z===j?0:zj.length)return 1;if(this.length=0;q--){var z=0|this.words[q],X=0|j.words[q];if(z!==X){zX&&(J=1);break}}return J},A.prototype.gtn=function(j){return this.cmpn(j)===1},A.prototype.gt=function(j){return this.cmp(j)===1},A.prototype.gten=function(j){return this.cmpn(j)>=0},A.prototype.gte=function(j){return this.cmp(j)>=0},A.prototype.ltn=function(j){return this.cmpn(j)===-1},A.prototype.lt=function(j){return this.cmp(j)===-1},A.prototype.lten=function(j){return this.cmpn(j)<=0},A.prototype.lte=function(j){return this.cmp(j)<=0},A.prototype.eqn=function(j){return this.cmpn(j)===0},A.prototype.eq=function(j){return this.cmp(j)===0},A.red=function(j){return new Z(j)},A.prototype.toRed=function(j){return p(!this.red,"Already a number in reduction context"),p(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},A.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},A.prototype._forceRed=function(j){return this.red=j,this},A.prototype.forceRed=function(j){return p(!this.red,"Already a number in reduction context"),this._forceRed(j)},A.prototype.redAdd=function(j){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},A.prototype.redIAdd=function(j){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},A.prototype.redSub=function(j){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},A.prototype.redISub=function(j){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},A.prototype.redShl=function(j){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},A.prototype.redMul=function(j){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},A.prototype.redIMul=function(j){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},A.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},A.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},A.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},A.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},A.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},A.prototype.redPow=function(j){return p(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var te={k256:null,p224:null,p192:null,p25519:null};function ue(j,J){this.name=j,this.p=new A(J,16),this.n=this.p.bitLength(),this.k=new A(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function fe(){ue.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function de(){ue.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Ae(){ue.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function we(){ue.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Z(j){if(typeof j=="string"){var J=A._prime(j);this.m=J.p,this.prime=J}else p(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}function ne(j){Z.call(this,j),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new A(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ue.prototype._tmp=function(){var j=new A(null);return j.words=new Array(Math.ceil(this.n/13)),j},ue.prototype.ireduce=function(j){var J,q=j;do this.split(q,this.tmp),J=(q=(q=this.imulK(q)).iadd(this.tmp)).bitLength();while(J>this.n);var z=J0?q.isub(this.p):q.strip!==void 0?q.strip():q._strip(),q},ue.prototype.split=function(j,J){j.iushrn(this.n,0,J)},ue.prototype.imulK=function(j){return j.imul(this.k)},g(fe,ue),fe.prototype.split=function(j,J){for(var q=4194303,z=Math.min(j.length,9),X=0;X>>22,se=oe}se>>>=22,j.words[X-10]=se,se===0&&j.length>10?j.length-=10:j.length-=9},fe.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var J=0,q=0;q>>=26,j.words[q]=X,J=z}return J!==0&&(j.words[j.length++]=J),j},A._prime=function(j){if(te[j])return te[j];var J;if(j==="k256")J=new fe;else if(j==="p224")J=new de;else if(j==="p192")J=new Ae;else{if(j!=="p25519")throw new Error("Unknown prime "+j);J=new we}return te[j]=J,J},Z.prototype._verify1=function(j){p(j.negative===0,"red works only with positives"),p(j.red,"red works only with red numbers")},Z.prototype._verify2=function(j,J){p(!(j.negative|J.negative),"red works only with positives"),p(j.red&&j.red===J.red,"red works only with red numbers")},Z.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):(E(j,j.umod(this.m)._forceRed(this)),j)},Z.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},Z.prototype.add=function(j,J){this._verify2(j,J);var q=j.add(J);return q.cmp(this.m)>=0&&q.isub(this.m),q._forceRed(this)},Z.prototype.iadd=function(j,J){this._verify2(j,J);var q=j.iadd(J);return q.cmp(this.m)>=0&&q.isub(this.m),q},Z.prototype.sub=function(j,J){this._verify2(j,J);var q=j.sub(J);return q.cmpn(0)<0&&q.iadd(this.m),q._forceRed(this)},Z.prototype.isub=function(j,J){this._verify2(j,J);var q=j.isub(J);return q.cmpn(0)<0&&q.iadd(this.m),q},Z.prototype.shl=function(j,J){return this._verify1(j),this.imod(j.ushln(J))},Z.prototype.imul=function(j,J){return this._verify2(j,J),this.imod(j.imul(J))},Z.prototype.mul=function(j,J){return this._verify2(j,J),this.imod(j.mul(J))},Z.prototype.isqr=function(j){return this.imul(j,j.clone())},Z.prototype.sqr=function(j){return this.mul(j,j)},Z.prototype.sqrt=function(j){if(j.isZero())return j.clone();var J=this.m.andln(3);if(p(J%2==1),J===3){var q=this.m.add(new A(1)).iushrn(2);return this.pow(j,q)}for(var z=this.m.subn(1),X=0;!z.isZero()&&z.andln(1)===0;)X++,z.iushrn(1);p(!z.isZero());var se=new A(1).toRed(this),oe=se.redNeg(),ye=this.m.subn(1).iushrn(1),ae=this.m.bitLength();for(ae=new A(2*ae*ae).toRed(this);this.pow(ae,ye).cmp(oe)!==0;)ae.redIAdd(oe);for(var me=this.pow(ae,z),Fe=this.pow(j,z.addn(1).iushrn(1)),_e=this.pow(j,z),rt=X;_e.cmp(se)!==0;){for(var et=_e,st=0;et.cmp(se)!==0;st++)et=et.redSqr();p(st=0;X--){for(var me=J.words[X],Fe=ae-1;Fe>=0;Fe--){var _e=me>>Fe&1;se!==z[0]&&(se=this.sqr(se)),_e!==0||oe!==0?(oe<<=1,oe|=_e,(++ye===q||X===0&&Fe===0)&&(se=this.mul(se,z[oe]),ye=0,oe=0)):ye=0}ae=26}return se},Z.prototype.convertTo=function(j){var J=j.umod(this.m);return J===j?J.clone():J},Z.prototype.convertFrom=function(j){var J=j.clone();return J.red=null,J},A.mont=function(j){return new ne(j)},g(ne,Z),ne.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},ne.prototype.convertFrom=function(j){var J=this.imod(j.mul(this.rinv));return J.red=null,J},ne.prototype.imul=function(j,J){if(j.isZero()||J.isZero())return j.words[0]=0,j.length=1,j;var q=j.imul(J),z=q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=q.isub(z).iushrn(this.shift),se=X;return X.cmp(this.m)>=0?se=X.isub(this.m):X.cmpn(0)<0&&(se=X.iadd(this.m)),se._forceRed(this)},ne.prototype.mul=function(j,J){if(j.isZero()||J.isZero())return new A(0)._forceRed(this);var q=j.mul(J),z=q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=q.isub(z).iushrn(this.shift),se=X;return X.cmp(this.m)>=0?se=X.isub(this.m):X.cmpn(0)<0&&(se=X.iadd(this.m)),se._forceRed(this)},ne.prototype.invm=function(j){return this.imod(j._invmp(this.m).mul(this.r2))._forceRed(this)}})(c===void 0||c,void 0)},{buffer:188}],187:[function(a,c,u){var h;function d(g){this.rand=g}if(c.exports=function(g){return h||(h=new d(null)),h.generate(g)},c.exports.Rand=d,d.prototype.generate=function(g){return this._rand(g)},d.prototype._rand=function(g){if(this.rand.getBytes)return this.rand.getBytes(g);for(var A=new Uint8Array(g),m=0;m>>24]^H[ue>>>16&255]^W[fe>>>8&255]^V[255&de]^I[Ae++],D=N[ue>>>24]^H[fe>>>16&255]^W[de>>>8&255]^V[255&te]^I[Ae++],T=N[fe>>>24]^H[de>>>16&255]^W[te>>>8&255]^V[255&ue]^I[Ae++],F=N[de>>>24]^H[te>>>16&255]^W[ue>>>8&255]^V[255&fe]^I[Ae++],te=_,ue=D,fe=T,de=F;return _=(B[te>>>24]<<24|B[ue>>>16&255]<<16|B[fe>>>8&255]<<8|B[255&de])^I[Ae++],D=(B[ue>>>24]<<24|B[fe>>>16&255]<<16|B[de>>>8&255]<<8|B[255&te])^I[Ae++],T=(B[fe>>>24]<<24|B[de>>>16&255]<<16|B[te>>>8&255]<<8|B[255&ue])^I[Ae++],F=(B[de>>>24]<<24|B[te>>>16&255]<<16|B[ue>>>8&255]<<8|B[255&fe])^I[Ae++],[_>>>=0,D>>>=0,T>>>=0,F>>>=0]}var A=[0,1,2,4,8,16,32,64,128,27,54],m=function(){for(var b=new Array(256),I=0;I<256;I++)b[I]=I<128?I<<1:I<<1^283;for(var E=[],B=[],S=[[],[],[],[]],_=[[],[],[],[]],D=0,T=0,F=0;F<256;++F){var N=T^T<<1^T<<2^T<<3^T<<4;N=N>>>8^255&N^99,E[D]=N,B[N]=D;var H=b[D],W=b[H],V=b[W],te=257*b[N]^16843008*N;S[0][D]=te<<24|te>>>8,S[1][D]=te<<16|te>>>16,S[2][D]=te<<8|te>>>24,S[3][D]=te,te=16843009*V^65537*W^257*H^16843008*D,_[0][N]=te<<24|te>>>8,_[1][N]=te<<16|te>>>16,_[2][N]=te<<8|te>>>24,_[3][N]=te,D===0?D=T=1:(D=H^b[b[b[V^H]]],T^=b[b[T]])}return{SBOX:E,INV_SBOX:B,SUB_MIX:S,INV_SUB_MIX:_}}();function y(b){this._key=d(b),this._reset()}y.blockSize=16,y.keySize=32,y.prototype.blockSize=y.blockSize,y.prototype.keySize=y.keySize,y.prototype._reset=function(){for(var b=this._key,I=b.length,E=I+6,B=4*(E+1),S=[],_=0;_>>24,D=m.SBOX[D>>>24]<<24|m.SBOX[D>>>16&255]<<16|m.SBOX[D>>>8&255]<<8|m.SBOX[255&D],D^=A[_/I|0]<<24):I>6&&_%I==4&&(D=m.SBOX[D>>>24]<<24|m.SBOX[D>>>16&255]<<16|m.SBOX[D>>>8&255]<<8|m.SBOX[255&D]),S[_]=S[_-I]^D}for(var T=[],F=0;F>>24]]^m.INV_SUB_MIX[1][m.SBOX[H>>>16&255]]^m.INV_SUB_MIX[2][m.SBOX[H>>>8&255]]^m.INV_SUB_MIX[3][m.SBOX[255&H]]}this._nRounds=E,this._keySchedule=S,this._invKeySchedule=T},y.prototype.encryptBlockRaw=function(b){return g(b=d(b),this._keySchedule,m.SUB_MIX,m.SBOX,this._nRounds)},y.prototype.encryptBlock=function(b){var I=this.encryptBlockRaw(b),E=h.allocUnsafe(16);return E.writeUInt32BE(I[0],0),E.writeUInt32BE(I[1],4),E.writeUInt32BE(I[2],8),E.writeUInt32BE(I[3],12),E},y.prototype.decryptBlock=function(b){var I=(b=d(b))[1];b[1]=b[3],b[3]=I;var E=g(b,this._invKeySchedule,m.INV_SUB_MIX,m.INV_SBOX,this._nRounds),B=h.allocUnsafe(16);return B.writeUInt32BE(E[0],0),B.writeUInt32BE(E[3],4),B.writeUInt32BE(E[2],8),B.writeUInt32BE(E[1],12),B},y.prototype.scrub=function(){p(this._keySchedule),p(this._invKeySchedule),p(this._key)},c.exports.AES=y},{"safe-buffer":494}],190:[function(a,c,u){var h=a("./aes"),d=a("safe-buffer").Buffer,p=a("cipher-base"),g=a("inherits"),A=a("./ghash"),m=a("buffer-xor"),y=a("./incr32");function b(B,S){var _=0;B.length!==S.length&&_++;for(var D=Math.min(B.length,S.length),T=0;T16)throw new Error("unable to decrypt data");for(var T=-1;++T16)return D=this.cache.slice(0,16),this.cache=this.cache.slice(16),D}else if(this.cache.length>=16)return D=this.cache.slice(0,16),this.cache=this.cache.slice(16),D;return null},I.prototype.flush=function(){if(this.cache.length)return this.cache},u.createDecipher=S,u.createDecipheriv=B},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(a,c,u){var h=a("./modes"),d=a("./authCipher"),p=a("safe-buffer").Buffer,g=a("./streamCipher"),A=a("cipher-base"),m=a("./aes"),y=a("evp_bytestokey");function b(_,D,T){A.call(this),this._cache=new E,this._cipher=new m.AES(D),this._prev=p.from(T),this._mode=_,this._autopadding=!0}a("inherits")(b,A),b.prototype._update=function(_){var D,T;this._cache.add(_);for(var F=[];D=this._cache.get();)T=this._mode.encrypt(this,D),F.push(T);return p.concat(F)};var I=p.alloc(16,16);function E(){this.cache=p.allocUnsafe(0)}function B(_,D,T){var F=h[_.toLowerCase()];if(!F)throw new TypeError("invalid suite type");if(typeof D=="string"&&(D=p.from(D)),D.length!==F.key/8)throw new TypeError("invalid key length "+D.length);if(typeof T=="string"&&(T=p.from(T)),F.mode!=="GCM"&&T.length!==F.iv)throw new TypeError("invalid iv length "+T.length);return F.type==="stream"?new g(F.module,D,T):F.type==="auth"?new d(F.module,D,T):new b(F.module,D,T)}function S(_,D){var T=h[_.toLowerCase()];if(!T)throw new TypeError("invalid suite type");var F=y(D,!1,T.key,T.iv);return B(_,F.key,F.iv)}b.prototype._final=function(){var _=this._cache.flush();if(this._autopadding)return _=this._mode.encrypt(this,_),this._cipher.scrub(),_;if(!_.equals(I))throw this._cipher.scrub(),new Error("data not multiple of block length")},b.prototype.setAutoPadding=function(_){return this._autopadding=!!_,this},E.prototype.add=function(_){this.cache=p.concat([this.cache,_])},E.prototype.get=function(){if(this.cache.length>15){var _=this.cache.slice(0,16);return this.cache=this.cache.slice(16),_}return null},E.prototype.flush=function(){for(var _=16-this.cache.length,D=p.allocUnsafe(_),T=-1;++T<_;)D.writeUInt8(_,T);return p.concat([this.cache,D])},u.createCipheriv=B,u.createCipher=S},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(a,c,u){var h=a("safe-buffer").Buffer,d=h.alloc(16,0);function p(m){return[m.readUInt32BE(0),m.readUInt32BE(4),m.readUInt32BE(8),m.readUInt32BE(12)]}function g(m){var y=h.allocUnsafe(16);return y.writeUInt32BE(m[0]>>>0,0),y.writeUInt32BE(m[1]>>>0,4),y.writeUInt32BE(m[2]>>>0,8),y.writeUInt32BE(m[3]>>>0,12),y}function A(m){this.h=m,this.state=h.alloc(16,0),this.cache=h.allocUnsafe(0)}A.prototype.ghash=function(m){for(var y=-1;++y0;m--)b[m]=b[m]>>>1|(1&b[m-1])<<31;b[0]=b[0]>>>1,y&&(b[0]=b[0]^225<<24)}this.state=g(I)},A.prototype.update=function(m){var y;for(this.cache=h.concat([this.cache,m]);this.cache.length>=16;)y=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(y)},A.prototype.final=function(m,y){return this.cache.length&&this.ghash(h.concat([this.cache,d],16)),this.ghash(g([0,m,0,y])),this.state},c.exports=A},{"safe-buffer":494}],195:[function(a,c,u){function h(d){for(var p,g=d.length;g--;){if((p=d.readUInt8(g))!==255){p++,d.writeUInt8(p,g);break}d.writeUInt8(0,g)}}c.exports=h},{}],196:[function(a,c,u){var h=a("buffer-xor");u.encrypt=function(d,p){var g=h(p,d._prev);return d._prev=d._cipher.encryptBlock(g),d._prev},u.decrypt=function(d,p){var g=d._prev;d._prev=p;var A=d._cipher.decryptBlock(p);return h(A,g)}},{"buffer-xor":219}],197:[function(a,c,u){var h=a("safe-buffer").Buffer,d=a("buffer-xor");function p(g,A,m){var y=A.length,b=d(A,g._cache);return g._cache=g._cache.slice(y),g._prev=h.concat([g._prev,m?A:b]),b}u.encrypt=function(g,A,m){for(var y,b=h.allocUnsafe(0);A.length;){if(g._cache.length===0&&(g._cache=g._cipher.encryptBlock(g._prev),g._prev=h.allocUnsafe(0)),!(g._cache.length<=A.length)){b=h.concat([b,p(g,A,m)]);break}y=g._cache.length,b=h.concat([b,p(g,A.slice(0,y),m)]),A=A.slice(y)}return b}},{"buffer-xor":219,"safe-buffer":494}],198:[function(a,c,u){var h=a("safe-buffer").Buffer;function d(g,A,m){for(var y,b,I=-1,E=8,B=0;++I>I%8,g._prev=p(g._prev,m?y:b);return B}function p(g,A){var m=g.length,y=-1,b=h.allocUnsafe(g.length);for(g=h.concat([g,h.from([A])]);++y>7;return b}u.encrypt=function(g,A,m){for(var y=A.length,b=h.allocUnsafe(y),I=-1;++I=0||!b.umod(y.prime1)||!b.umod(y.prime2));return b}function m(y,b){var I=g(b),E=b.modulus.byteLength(),B=new d(y).mul(I.blinder).umod(b.modulus),S=B.toRed(d.mont(b.prime1)),_=B.toRed(d.mont(b.prime2)),D=b.coefficient,T=b.prime1,F=b.prime2,N=S.redPow(b.exponent1).fromRed(),H=_.redPow(b.exponent2).fromRed(),W=N.isub(H).imul(D).umod(T).imul(F);return H.iadd(W).imul(I.unblinder).umod(b.modulus).toArrayLike(h,"be",E)}m.getr=A,c.exports=m}).call(this)}).call(this,a("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(a,c,u){c.exports=a("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(a,c,u){c.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(a,c,u){c.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(a,c,u){var h=a("safe-buffer").Buffer,d=a("create-hash"),p=a("readable-stream"),g=a("inherits"),A=a("./sign"),m=a("./verify"),y=a("./algorithms.json");function b(S){p.Writable.call(this);var _=y[S];if(!_)throw new Error("Unknown message digest");this._hashType=_.hash,this._hash=d(_.hash),this._tag=_.id,this._signType=_.sign}function I(S){p.Writable.call(this);var _=y[S];if(!_)throw new Error("Unknown message digest");this._hash=d(_.hash),this._tag=_.id,this._signType=_.sign}function E(S){return new b(S)}function B(S){return new I(S)}Object.keys(y).forEach(function(S){y[S].id=h.from(y[S].id,"hex"),y[S.toLowerCase()]=y[S]}),g(b,p.Writable),b.prototype._write=function(S,_,D){this._hash.update(S),D()},b.prototype.update=function(S,_){return typeof S=="string"&&(S=h.from(S,_)),this._hash.update(S),this},b.prototype.sign=function(S,_){this.end();var D=this._hash.digest(),T=A(D,S,this._hashType,this._signType,this._tag);return _?T.toString(_):T},g(I,p.Writable),I.prototype._write=function(S,_,D){this._hash.update(S),D()},I.prototype.update=function(S,_){return typeof S=="string"&&(S=h.from(S,_)),this._hash.update(S),this},I.prototype.verify=function(S,_,D){typeof _=="string"&&(_=h.from(_,D)),this.end();var T=this._hash.digest();return m(_,T,S,this._signType,this._tag)},c.exports={Sign:E,Verify:B,createSign:E,createVerify:B}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(a,c,u){var h=a("safe-buffer").Buffer,d=a("create-hmac"),p=a("browserify-rsa"),g=a("elliptic").ec,A=a("bn.js"),m=a("parse-asn1"),y=a("./curves.json");function b(N,H,W,V,te){var ue=m(H);if(ue.curve){if(V!=="ecdsa"&&V!=="ecdsa/rsa")throw new Error("wrong private key type");return I(N,ue)}if(ue.type==="dsa"){if(V!=="dsa")throw new Error("wrong private key type");return E(N,ue,W)}if(V!=="rsa"&&V!=="ecdsa/rsa")throw new Error("wrong private key type");N=h.concat([te,N]);for(var fe=ue.modulus.byteLength(),de=[0,1];N.length+de.length+10&&W.ishrn(V),W}function D(N,H){N=(N=_(N,H)).mod(H);var W=h.from(N.toArray());if(W.length=B)throw new Error("invalid sig")}c.exports=m},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(a,c,u){},{}],217:[function(a,c,u){var h=a("buffer"),d=h.Buffer;function p(A,m){for(var y in A)m[y]=A[y]}function g(A,m,y){return d(A,m,y)}d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow?c.exports=h:(p(h,u),u.Buffer=g),p(d,g),g.from=function(A,m,y){if(typeof A=="number")throw new TypeError("Argument must not be a number");return d(A,m,y)},g.alloc=function(A,m,y){if(typeof A!="number")throw new TypeError("Argument must be a number");var b=d(A);return m!==void 0?typeof y=="string"?b.fill(m,y):b.fill(m):b.fill(0),b},g.allocUnsafe=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return d(A)},g.allocUnsafeSlow=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return h.SlowBuffer(A)}},{buffer:220}],218:[function(a,c,u){var h=a("safe-buffer").Buffer,d=h.isEncoding||function(H){switch((H=""+H)&&H.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function p(H){if(!H)return"utf8";for(var W;;)switch(H){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return H;default:if(W)return;H=(""+H).toLowerCase(),W=!0}}function g(H){var W=p(H);if(typeof W!="string"&&(h.isEncoding===d||!d(H)))throw new Error("Unknown encoding: "+H);return W||H}function A(H){var W;switch(this.encoding=g(H),this.encoding){case"utf16le":this.text=S,this.end=_,W=4;break;case"utf8":this.fillLast=I,W=4;break;case"base64":this.text=D,this.end=T,W=3;break;default:return this.write=F,void(this.end=N)}this.lastNeed=0,this.lastTotal=0,this.lastChar=h.allocUnsafe(W)}function m(H){return H<=127?0:H>>5==6?2:H>>4==14?3:H>>3==30?4:H>>6==2?-1:-2}function y(H,W,V){var te=W.length-1;if(te=0?(ue>0&&(H.lastNeed=ue-1),ue):--te=0?(ue>0&&(H.lastNeed=ue-2),ue):--te=0?(ue>0&&(ue===2?ue=0:H.lastNeed=ue-3),ue):0}function b(H,W,V){if((192&W[0])!=128)return H.lastNeed=0,"�";if(H.lastNeed>1&&W.length>1){if((192&W[1])!=128)return H.lastNeed=1,"�";if(H.lastNeed>2&&W.length>2&&(192&W[2])!=128)return H.lastNeed=2,"�"}}function I(H){var W=this.lastTotal-this.lastNeed,V=b(this,H);return V!==void 0?V:this.lastNeed<=H.length?(H.copy(this.lastChar,W,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(H.copy(this.lastChar,W,0,H.length),void(this.lastNeed-=H.length))}function E(H,W){var V=y(this,H,W);if(!this.lastNeed)return H.toString("utf8",W);this.lastTotal=V;var te=H.length-(V-this.lastNeed);return H.copy(this.lastChar,0,te),H.toString("utf8",W,te)}function B(H){var W=H&&H.length?this.write(H):"";return this.lastNeed?W+"�":W}function S(H,W){if((H.length-W)%2==0){var V=H.toString("utf16le",W);if(V){var te=V.charCodeAt(V.length-1);if(te>=55296&&te<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=H[H.length-2],this.lastChar[1]=H[H.length-1],V.slice(0,-1)}return V}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=H[H.length-1],H.toString("utf16le",W,H.length-1)}function _(H){var W=H&&H.length?this.write(H):"";if(this.lastNeed){var V=this.lastTotal-this.lastNeed;return W+this.lastChar.toString("utf16le",0,V)}return W}function D(H,W){var V=(H.length-W)%3;return V===0?H.toString("base64",W):(this.lastNeed=3-V,this.lastTotal=3,V===1?this.lastChar[0]=H[H.length-1]:(this.lastChar[0]=H[H.length-2],this.lastChar[1]=H[H.length-1]),H.toString("base64",W,H.length-V))}function T(H){var W=H&&H.length?this.write(H):"";return this.lastNeed?W+this.lastChar.toString("base64",0,3-this.lastNeed):W}function F(H){return H.toString(this.encoding)}function N(H){return H&&H.length?this.write(H):""}u.StringDecoder=A,A.prototype.write=function(H){if(H.length===0)return"";var W,V;if(this.lastNeed){if((W=this.fillLast(H))===void 0)return"";V=this.lastNeed,this.lastNeed=0}else V=0;return Vg)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var Re=new Uint8Array(Ie);return Re.__proto__=y.prototype,Re}function y(Ie,Re,qe){if(typeof Ie=="number"){if(typeof Re=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(Ie)}return b(Ie,Re,qe)}function b(Ie,Re,qe){if(typeof Ie=="string")return S(Ie,Re);if(ArrayBuffer.isView(Ie))return _(Ie);if(Ie==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie);if(Ke(Ie,ArrayBuffer)||Ie&&Ke(Ie.buffer,ArrayBuffer))return D(Ie,Re,qe);if(typeof Ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var pt=Ie.valueOf&&Ie.valueOf();if(pt!=null&&pt!==Ie)return y.from(pt,Re,qe);var Lt=T(Ie);if(Lt)return Lt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ie[Symbol.toPrimitive]=="function")return y.from(Ie[Symbol.toPrimitive]("string"),Re,qe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie)}function I(Ie){if(typeof Ie!="number")throw new TypeError('"size" argument must be of type number');if(Ie<0)throw new RangeError('The value "'+Ie+'" is invalid for option "size"')}function E(Ie,Re,qe){return I(Ie),Ie<=0?m(Ie):Re!==void 0?typeof qe=="string"?m(Ie).fill(Re,qe):m(Ie).fill(Re):m(Ie)}function B(Ie){return I(Ie),m(Ie<0?0:0|F(Ie))}function S(Ie,Re){if(typeof Re=="string"&&Re!==""||(Re="utf8"),!y.isEncoding(Re))throw new TypeError("Unknown encoding: "+Re);var qe=0|H(Ie,Re),pt=m(qe),Lt=pt.write(Ie,Re);return Lt!==qe&&(pt=pt.slice(0,Lt)),pt}function _(Ie){for(var Re=Ie.length<0?0:0|F(Ie.length),qe=m(Re),pt=0;pt=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return 0|Ie}function N(Ie){return+Ie!=Ie&&(Ie=0),y.alloc(+Ie)}function H(Ie,Re){if(y.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||Ke(Ie,ArrayBuffer))return Ie.byteLength;if(typeof Ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ie);var qe=Ie.length,pt=arguments.length>2&&arguments[2]===!0;if(!pt&&qe===0)return 0;for(var Lt=!1;;)switch(Re){case"ascii":case"latin1":case"binary":return qe;case"utf8":case"utf-8":return Be(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*qe;case"hex":return qe>>>1;case"base64":return lt(Ie).length;default:if(Lt)return pt?-1:Be(Ie).length;Re=(""+Re).toLowerCase(),Lt=!0}}function W(Ie,Re,qe){var pt=!1;if((Re===void 0||Re<0)&&(Re=0),Re>this.length||((qe===void 0||qe>this.length)&&(qe=this.length),qe<=0)||(qe>>>=0)<=(Re>>>=0))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return oe(this,Re,qe);case"utf8":case"utf-8":return J(this,Re,qe);case"ascii":return X(this,Re,qe);case"latin1":case"binary":return se(this,Re,qe);case"base64":return j(this,Re,qe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,Re,qe);default:if(pt)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),pt=!0}}function V(Ie,Re,qe){var pt=Ie[Re];Ie[Re]=Ie[qe],Ie[qe]=pt}function te(Ie,Re,qe,pt,Lt){if(Ie.length===0)return-1;if(typeof qe=="string"?(pt=qe,qe=0):qe>2147483647?qe=2147483647:qe<-2147483648&&(qe=-2147483648),Rt(qe=+qe)&&(qe=Lt?0:Ie.length-1),qe<0&&(qe=Ie.length+qe),qe>=Ie.length){if(Lt)return-1;qe=Ie.length-1}else if(qe<0){if(!Lt)return-1;qe=0}if(typeof Re=="string"&&(Re=y.from(Re,pt)),y.isBuffer(Re))return Re.length===0?-1:ue(Ie,Re,qe,pt,Lt);if(typeof Re=="number")return Re&=255,typeof Uint8Array.prototype.indexOf=="function"?Lt?Uint8Array.prototype.indexOf.call(Ie,Re,qe):Uint8Array.prototype.lastIndexOf.call(Ie,Re,qe):ue(Ie,[Re],qe,pt,Lt);throw new TypeError("val must be string, number or Buffer")}function ue(Ie,Re,qe,pt,Lt){var Qe,_t=1,Ft=Ie.length,Ze=Re.length;if(pt!==void 0&&((pt=String(pt).toLowerCase())==="ucs2"||pt==="ucs-2"||pt==="utf16le"||pt==="utf-16le")){if(Ie.length<2||Re.length<2)return-1;_t=2,Ft/=2,Ze/=2,qe/=2}function $e(Je,tt){return _t===1?Je[tt]:Je.readUInt16BE(tt*_t)}if(Lt){var nt=-1;for(Qe=qe;QeFt&&(qe=Ft-Ze),Qe=qe;Qe>=0;Qe--){for(var Ot=!0,He=0;HeLt&&(pt=Lt):pt=Lt;var Qe=Re.length;pt>Qe/2&&(pt=Qe/2);for(var _t=0;_t239?4:$e>223?3:$e>191?2:1;if(Lt+Ot<=qe)switch(Ot){case 1:$e<128&&(nt=$e);break;case 2:(192&(Qe=Ie[Lt+1]))==128&&(Ze=(31&$e)<<6|63&Qe)>127&&(nt=Ze);break;case 3:Qe=Ie[Lt+1],_t=Ie[Lt+2],(192&Qe)==128&&(192&_t)==128&&(Ze=(15&$e)<<12|(63&Qe)<<6|63&_t)>2047&&(Ze<55296||Ze>57343)&&(nt=Ze);break;case 4:Qe=Ie[Lt+1],_t=Ie[Lt+2],Ft=Ie[Lt+3],(192&Qe)==128&&(192&_t)==128&&(192&Ft)==128&&(Ze=(15&$e)<<18|(63&Qe)<<12|(63&_t)<<6|63&Ft)>65535&&Ze<1114112&&(nt=Ze)}nt===null?(nt=65533,Ot=1):nt>65535&&(nt-=65536,pt.push(nt>>>10&1023|55296),nt=56320|1023&nt),pt.push(nt),Lt+=Ot}return z(pt)}u.kMaxLength=g,y.TYPED_ARRAY_SUPPORT=A(),y.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&y[Symbol.species]===y&&Object.defineProperty(y,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),y.poolSize=8192,y.from=function(Ie,Re,qe){return b(Ie,Re,qe)},y.prototype.__proto__=Uint8Array.prototype,y.__proto__=Uint8Array,y.alloc=function(Ie,Re,qe){return E(Ie,Re,qe)},y.allocUnsafe=function(Ie){return B(Ie)},y.allocUnsafeSlow=function(Ie){return B(Ie)},y.isBuffer=function(Ie){return Ie!=null&&Ie._isBuffer===!0&&Ie!==y.prototype},y.compare=function(Ie,Re){if(Ke(Ie,Uint8Array)&&(Ie=y.from(Ie,Ie.offset,Ie.byteLength)),Ke(Re,Uint8Array)&&(Re=y.from(Re,Re.offset,Re.byteLength)),!y.isBuffer(Ie)||!y.isBuffer(Re))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ie===Re)return 0;for(var qe=Ie.length,pt=Re.length,Lt=0,Qe=Math.min(qe,pt);LtRe&&(Ie+=" ... "),""},y.prototype.compare=function(Ie,Re,qe,pt,Lt){if(Ke(Ie,Uint8Array)&&(Ie=y.from(Ie,Ie.offset,Ie.byteLength)),!y.isBuffer(Ie))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ie);if(Re===void 0&&(Re=0),qe===void 0&&(qe=Ie?Ie.length:0),pt===void 0&&(pt=0),Lt===void 0&&(Lt=this.length),Re<0||qe>Ie.length||pt<0||Lt>this.length)throw new RangeError("out of range index");if(pt>=Lt&&Re>=qe)return 0;if(pt>=Lt)return-1;if(Re>=qe)return 1;if(this===Ie)return 0;for(var Qe=(Lt>>>=0)-(pt>>>=0),_t=(qe>>>=0)-(Re>>>=0),Ft=Math.min(Qe,_t),Ze=this.slice(pt,Lt),$e=Ie.slice(Re,qe),nt=0;nt>>=0,isFinite(qe)?(qe>>>=0,pt===void 0&&(pt="utf8")):(pt=qe,qe=void 0)}var Lt=this.length-Re;if((qe===void 0||qe>Lt)&&(qe=Lt),Ie.length>0&&(qe<0||Re<0)||Re>this.length)throw new RangeError("Attempt to write outside buffer bounds");pt||(pt="utf8");for(var Qe=!1;;)switch(pt){case"hex":return fe(this,Ie,Re,qe);case"utf8":case"utf-8":return de(this,Ie,Re,qe);case"ascii":return Ae(this,Ie,Re,qe);case"latin1":case"binary":return we(this,Ie,Re,qe);case"base64":return Z(this,Ie,Re,qe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,Ie,Re,qe);default:if(Qe)throw new TypeError("Unknown encoding: "+pt);pt=(""+pt).toLowerCase(),Qe=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var q=4096;function z(Ie){var Re=Ie.length;if(Re<=q)return String.fromCharCode.apply(String,Ie);for(var qe="",pt=0;ptpt)&&(qe=pt);for(var Lt="",Qe=Re;Qeqe)throw new RangeError("Trying to access beyond buffer length")}function me(Ie,Re,qe,pt,Lt,Qe){if(!y.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(Re>Lt||ReIe.length)throw new RangeError("Index out of range")}function Fe(Ie,Re,qe,pt,Lt,Qe){if(qe+pt>Ie.length)throw new RangeError("Index out of range");if(qe<0)throw new RangeError("Index out of range")}function _e(Ie,Re,qe,pt,Lt){return Re=+Re,qe>>>=0,Lt||Fe(Ie,Re,qe,4),p.write(Ie,Re,qe,pt,23,4),qe+4}function rt(Ie,Re,qe,pt,Lt){return Re=+Re,qe>>>=0,Lt||Fe(Ie,Re,qe,8),p.write(Ie,Re,qe,pt,52,8),qe+8}y.prototype.slice=function(Ie,Re){var qe=this.length;(Ie=~~Ie)<0?(Ie+=qe)<0&&(Ie=0):Ie>qe&&(Ie=qe),(Re=Re===void 0?qe:~~Re)<0?(Re+=qe)<0&&(Re=0):Re>qe&&(Re=qe),Re>>=0,Re>>>=0,qe||ae(Ie,Re,this.length);for(var pt=this[Ie],Lt=1,Qe=0;++Qe>>=0,Re>>>=0,qe||ae(Ie,Re,this.length);for(var pt=this[Ie+--Re],Lt=1;Re>0&&(Lt*=256);)pt+=this[Ie+--Re]*Lt;return pt},y.prototype.readUInt8=function(Ie,Re){return Ie>>>=0,Re||ae(Ie,1,this.length),this[Ie]},y.prototype.readUInt16LE=function(Ie,Re){return Ie>>>=0,Re||ae(Ie,2,this.length),this[Ie]|this[Ie+1]<<8},y.prototype.readUInt16BE=function(Ie,Re){return Ie>>>=0,Re||ae(Ie,2,this.length),this[Ie]<<8|this[Ie+1]},y.prototype.readUInt32LE=function(Ie,Re){return Ie>>>=0,Re||ae(Ie,4,this.length),(this[Ie]|this[Ie+1]<<8|this[Ie+2]<<16)+16777216*this[Ie+3]},y.prototype.readUInt32BE=function(Ie,Re){return Ie>>>=0,Re||ae(Ie,4,this.length),16777216*this[Ie]+(this[Ie+1]<<16|this[Ie+2]<<8|this[Ie+3])},y.prototype.readIntLE=function(Ie,Re,qe){Ie>>>=0,Re>>>=0,qe||ae(Ie,Re,this.length);for(var pt=this[Ie],Lt=1,Qe=0;++Qe=(Lt*=128)&&(pt-=Math.pow(2,8*Re)),pt},y.prototype.readIntBE=function(Ie,Re,qe){Ie>>>=0,Re>>>=0,qe||ae(Ie,Re,this.length);for(var pt=Re,Lt=1,Qe=this[Ie+--pt];pt>0&&(Lt*=256);)Qe+=this[Ie+--pt]*Lt;return Qe>=(Lt*=128)&&(Qe-=Math.pow(2,8*Re)),Qe},y.prototype.readInt8=function(Ie,Re){return Ie>>>=0,Re||ae(Ie,1,this.length),128&this[Ie]?-1*(255-this[Ie]+1):this[Ie]},y.prototype.readInt16LE=function(Ie,Re){Ie>>>=0,Re||ae(Ie,2,this.length);var qe=this[Ie]|this[Ie+1]<<8;return 32768&qe?4294901760|qe:qe},y.prototype.readInt16BE=function(Ie,Re){Ie>>>=0,Re||ae(Ie,2,this.length);var qe=this[Ie+1]|this[Ie]<<8;return 32768&qe?4294901760|qe:qe},y.prototype.readInt32LE=function(Ie,Re){return Ie>>>=0,Re||ae(Ie,4,this.length),this[Ie]|this[Ie+1]<<8|this[Ie+2]<<16|this[Ie+3]<<24},y.prototype.readInt32BE=function(Ie,Re){return Ie>>>=0,Re||ae(Ie,4,this.length),this[Ie]<<24|this[Ie+1]<<16|this[Ie+2]<<8|this[Ie+3]},y.prototype.readFloatLE=function(Ie,Re){return Ie>>>=0,Re||ae(Ie,4,this.length),p.read(this,Ie,!0,23,4)},y.prototype.readFloatBE=function(Ie,Re){return Ie>>>=0,Re||ae(Ie,4,this.length),p.read(this,Ie,!1,23,4)},y.prototype.readDoubleLE=function(Ie,Re){return Ie>>>=0,Re||ae(Ie,8,this.length),p.read(this,Ie,!0,52,8)},y.prototype.readDoubleBE=function(Ie,Re){return Ie>>>=0,Re||ae(Ie,8,this.length),p.read(this,Ie,!1,52,8)},y.prototype.writeUIntLE=function(Ie,Re,qe,pt){Ie=+Ie,Re>>>=0,qe>>>=0,pt||me(this,Ie,Re,qe,Math.pow(2,8*qe)-1,0);var Lt=1,Qe=0;for(this[Re]=255&Ie;++Qe>>=0,qe>>>=0,pt||me(this,Ie,Re,qe,Math.pow(2,8*qe)-1,0);var Lt=qe-1,Qe=1;for(this[Re+Lt]=255&Ie;--Lt>=0&&(Qe*=256);)this[Re+Lt]=Ie/Qe&255;return Re+qe},y.prototype.writeUInt8=function(Ie,Re,qe){return Ie=+Ie,Re>>>=0,qe||me(this,Ie,Re,1,255,0),this[Re]=255&Ie,Re+1},y.prototype.writeUInt16LE=function(Ie,Re,qe){return Ie=+Ie,Re>>>=0,qe||me(this,Ie,Re,2,65535,0),this[Re]=255&Ie,this[Re+1]=Ie>>>8,Re+2},y.prototype.writeUInt16BE=function(Ie,Re,qe){return Ie=+Ie,Re>>>=0,qe||me(this,Ie,Re,2,65535,0),this[Re]=Ie>>>8,this[Re+1]=255&Ie,Re+2},y.prototype.writeUInt32LE=function(Ie,Re,qe){return Ie=+Ie,Re>>>=0,qe||me(this,Ie,Re,4,4294967295,0),this[Re+3]=Ie>>>24,this[Re+2]=Ie>>>16,this[Re+1]=Ie>>>8,this[Re]=255&Ie,Re+4},y.prototype.writeUInt32BE=function(Ie,Re,qe){return Ie=+Ie,Re>>>=0,qe||me(this,Ie,Re,4,4294967295,0),this[Re]=Ie>>>24,this[Re+1]=Ie>>>16,this[Re+2]=Ie>>>8,this[Re+3]=255&Ie,Re+4},y.prototype.writeIntLE=function(Ie,Re,qe,pt){if(Ie=+Ie,Re>>>=0,!pt){var Lt=Math.pow(2,8*qe-1);me(this,Ie,Re,qe,Lt-1,-Lt)}var Qe=0,_t=1,Ft=0;for(this[Re]=255&Ie;++Qe>>=0,!pt){var Lt=Math.pow(2,8*qe-1);me(this,Ie,Re,qe,Lt-1,-Lt)}var Qe=qe-1,_t=1,Ft=0;for(this[Re+Qe]=255&Ie;--Qe>=0&&(_t*=256);)Ie<0&&Ft===0&&this[Re+Qe+1]!==0&&(Ft=1),this[Re+Qe]=(Ie/_t|0)-Ft&255;return Re+qe},y.prototype.writeInt8=function(Ie,Re,qe){return Ie=+Ie,Re>>>=0,qe||me(this,Ie,Re,1,127,-128),Ie<0&&(Ie=255+Ie+1),this[Re]=255&Ie,Re+1},y.prototype.writeInt16LE=function(Ie,Re,qe){return Ie=+Ie,Re>>>=0,qe||me(this,Ie,Re,2,32767,-32768),this[Re]=255&Ie,this[Re+1]=Ie>>>8,Re+2},y.prototype.writeInt16BE=function(Ie,Re,qe){return Ie=+Ie,Re>>>=0,qe||me(this,Ie,Re,2,32767,-32768),this[Re]=Ie>>>8,this[Re+1]=255&Ie,Re+2},y.prototype.writeInt32LE=function(Ie,Re,qe){return Ie=+Ie,Re>>>=0,qe||me(this,Ie,Re,4,2147483647,-2147483648),this[Re]=255&Ie,this[Re+1]=Ie>>>8,this[Re+2]=Ie>>>16,this[Re+3]=Ie>>>24,Re+4},y.prototype.writeInt32BE=function(Ie,Re,qe){return Ie=+Ie,Re>>>=0,qe||me(this,Ie,Re,4,2147483647,-2147483648),Ie<0&&(Ie=4294967295+Ie+1),this[Re]=Ie>>>24,this[Re+1]=Ie>>>16,this[Re+2]=Ie>>>8,this[Re+3]=255&Ie,Re+4},y.prototype.writeFloatLE=function(Ie,Re,qe){return _e(this,Ie,Re,!0,qe)},y.prototype.writeFloatBE=function(Ie,Re,qe){return _e(this,Ie,Re,!1,qe)},y.prototype.writeDoubleLE=function(Ie,Re,qe){return rt(this,Ie,Re,!0,qe)},y.prototype.writeDoubleBE=function(Ie,Re,qe){return rt(this,Ie,Re,!1,qe)},y.prototype.copy=function(Ie,Re,qe,pt){if(!y.isBuffer(Ie))throw new TypeError("argument should be a Buffer");if(qe||(qe=0),pt||pt===0||(pt=this.length),Re>=Ie.length&&(Re=Ie.length),Re||(Re=0),pt>0&&pt=this.length)throw new RangeError("Index out of range");if(pt<0)throw new RangeError("sourceEnd out of bounds");pt>this.length&&(pt=this.length),Ie.length-Re=0;--Qe)Ie[Qe+Re]=this[Qe+qe];else Uint8Array.prototype.set.call(Ie,this.subarray(qe,pt),Re);return Lt},y.prototype.fill=function(Ie,Re,qe,pt){if(typeof Ie=="string"){if(typeof Re=="string"?(pt=Re,Re=0,qe=this.length):typeof qe=="string"&&(pt=qe,qe=this.length),pt!==void 0&&typeof pt!="string")throw new TypeError("encoding must be a string");if(typeof pt=="string"&&!y.isEncoding(pt))throw new TypeError("Unknown encoding: "+pt);if(Ie.length===1){var Lt=Ie.charCodeAt(0);(pt==="utf8"&&Lt<128||pt==="latin1")&&(Ie=Lt)}}else typeof Ie=="number"&&(Ie&=255);if(Re<0||this.length>>=0,qe=qe===void 0?this.length:qe>>>0,Ie||(Ie=0),typeof Ie=="number")for(Qe=Re;Qe55295&&qe<57344){if(!Lt){if(qe>56319){(Re-=3)>-1&&Qe.push(239,191,189);continue}if(_t+1===pt){(Re-=3)>-1&&Qe.push(239,191,189);continue}Lt=qe;continue}if(qe<56320){(Re-=3)>-1&&Qe.push(239,191,189),Lt=qe;continue}qe=65536+(Lt-55296<<10|qe-56320)}else Lt&&(Re-=3)>-1&&Qe.push(239,191,189);if(Lt=null,qe<128){if((Re-=1)<0)break;Qe.push(qe)}else if(qe<2048){if((Re-=2)<0)break;Qe.push(qe>>6|192,63&qe|128)}else if(qe<65536){if((Re-=3)<0)break;Qe.push(qe>>12|224,qe>>6&63|128,63&qe|128)}else{if(!(qe<1114112))throw new Error("Invalid code point");if((Re-=4)<0)break;Qe.push(qe>>18|240,qe>>12&63|128,qe>>6&63|128,63&qe|128)}}return Qe}function Te(Ie){for(var Re=[],qe=0;qe>8,Lt=qe%256,Qe.push(Lt),Qe.push(pt);return Qe}function lt(Ie){return d.toByteArray(st(Ie))}function Me(Ie,Re,qe,pt){for(var Lt=0;Lt=Re.length||Lt>=Ie.length);++Lt)Re[Lt+qe]=Ie[Lt];return Lt}function Ke(Ie,Re){return Ie instanceof Re||Ie!=null&&Ie.constructor!=null&&Ie.constructor.name!=null&&Ie.constructor.name===Re.name}function Rt(Ie){return Ie!=Ie}}).call(this)}).call(this,a("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(a,c,u){var h=a("safe-buffer").Buffer,d=a("stream").Transform,p=a("string_decoder").StringDecoder;function g(A){d.call(this),this.hashMode=typeof A=="string",this.hashMode?this[A]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}a("inherits")(g,d),g.prototype.update=function(A,m,y){typeof A=="string"&&(A=h.from(A,m));var b=this._update(A);return this.hashMode?this:(y&&(b=this._toString(b,y)),b)},g.prototype.setAutoPadding=function(){},g.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},g.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},g.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},g.prototype._transform=function(A,m,y){var b;try{this.hashMode?this._update(A):this.push(this._update(A))}catch(I){b=I}finally{y(b)}},g.prototype._flush=function(A){var m;try{this.push(this.__final())}catch(y){m=y}A(m)},g.prototype._finalOrDigest=function(A){var m=this.__final()||h.alloc(0);return A&&(m=this._toString(m,A,!0)),m},g.prototype._toString=function(A,m,y){if(this._decoder||(this._decoder=new p(m),this._encoding=m),this._encoding!==m)throw new Error("can't switch encodings");var b=this._decoder.write(A);return y&&(b+=this._decoder.end()),b},c.exports=g},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(a,c,u){var h=a("../internals/is-callable"),d=a("../internals/try-to-string"),p=TypeError;c.exports=function(g){if(h(g))return g;throw new p(d(g)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(a,c,u){var h=a("../internals/is-constructor"),d=a("../internals/try-to-string"),p=TypeError;c.exports=function(g){if(h(g))return g;throw new p(d(g)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(a,c,u){var h=a("../internals/is-callable"),d=String,p=TypeError;c.exports=function(g){if(typeof g=="object"||h(g))return g;throw new p("Can't set "+d(g)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(a,c,u){var h=a("../internals/well-known-symbol"),d=a("../internals/object-create"),p=a("../internals/object-define-property").f,g=h("unscopables"),A=Array.prototype;A[g]===void 0&&p(A,g,{configurable:!0,value:d(null)}),c.exports=function(m){A[g][m]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(a,c,u){var h=a("../internals/object-is-prototype-of"),d=TypeError;c.exports=function(p,g){if(h(g,p))return p;throw new d("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(a,c,u){var h=a("../internals/is-object"),d=String,p=TypeError;c.exports=function(g){if(h(g))return g;throw new p(d(g)+" is not an object")}},{"../internals/is-object":289}],228:[function(a,c,u){var h=a("../internals/to-indexed-object"),d=a("../internals/to-absolute-index"),p=a("../internals/length-of-array-like"),g=function(A){return function(m,y,b){var I,E=h(m),B=p(E),S=d(b,B);if(A&&y!=y){for(;B>S;)if((I=E[S++])!=I)return!0}else for(;B>S;S++)if((A||S in E)&&E[S]===y)return A||S||0;return!A&&-1}};c.exports={includes:g(!0),indexOf:g(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(a,c,u){var h=a("../internals/function-bind-context"),d=a("../internals/function-uncurry-this"),p=a("../internals/indexed-object"),g=a("../internals/to-object"),A=a("../internals/length-of-array-like"),m=a("../internals/array-species-create"),y=d([].push),b=function(I){var E=I===1,B=I===2,S=I===3,_=I===4,D=I===6,T=I===7,F=I===5||D;return function(N,H,W,V){for(var te,ue,fe=g(N),de=p(fe),Ae=h(H,W),we=A(de),Z=0,ne=V||m,j=E?ne(N,we):B||T?ne(N,0):void 0;we>Z;Z++)if((F||Z in de)&&(ue=Ae(te=de[Z],Z,fe),I))if(E)j[Z]=ue;else if(ue)switch(I){case 3:return!0;case 5:return te;case 6:return Z;case 2:y(j,te)}else switch(I){case 4:return!1;case 7:y(j,te)}return D?-1:S||_?_:j}};c.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6),filterReject:b(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(a,c,u){var h=a("../internals/to-absolute-index"),d=a("../internals/length-of-array-like"),p=a("../internals/create-property"),g=Array,A=Math.max;c.exports=function(m,y,b){for(var I=d(m),E=h(y,I),B=h(b===void 0?I:b,I),S=g(A(B-E,0)),_=0;E0&&h[0]<4?1:+(h[0]+h[1])),!d&&g&&(!(h=g.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=g.match(/Chrome\/(\d+)/))&&(d=+h[1]),c.exports=d},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(a,c,u){c.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(a,c,u){var h=a("../internals/global"),d=a("../internals/object-get-own-property-descriptor").f,p=a("../internals/create-non-enumerable-property"),g=a("../internals/define-built-in"),A=a("../internals/define-global-property"),m=a("../internals/copy-constructor-properties"),y=a("../internals/is-forced");c.exports=function(b,I){var E,B,S,_,D,T=b.target,F=b.global,N=b.stat;if(E=F?h:N?h[T]||A(T,{}):(h[T]||{}).prototype)for(B in I){if(_=I[B],S=b.dontCallGetSet?(D=d(E,B))&&D.value:E[B],!y(F?B:T+(N?".":"#")+B,b.forced)&&S!==void 0){if(typeof _==typeof S)continue;m(_,S)}(b.sham||S&&S.sham)&&p(_,"sham",!0),g(E,B,_,b)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(a,c,u){c.exports=function(h){try{return!!h()}catch{return!0}}},{}],261:[function(a,c,u){var h=a("../internals/function-bind-native"),d=Function.prototype,p=d.apply,g=d.call;c.exports=typeof Reflect=="object"&&Reflect.apply||(h?g.bind(p):function(){return g.apply(p,arguments)})},{"../internals/function-bind-native":263}],262:[function(a,c,u){var h=a("../internals/function-uncurry-this-clause"),d=a("../internals/a-callable"),p=a("../internals/function-bind-native"),g=h(h.bind);c.exports=function(A,m){return d(A),m===void 0?A:p?g(A,m):function(){return A.apply(m,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(a,c,u){var h=a("../internals/fails");c.exports=!h(function(){var d=(function(){}).bind();return typeof d!="function"||d.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(a,c,u){var h=a("../internals/function-bind-native"),d=Function.prototype.call;c.exports=h?d.bind(d):function(){return d.apply(d,arguments)}},{"../internals/function-bind-native":263}],265:[function(a,c,u){var h=a("../internals/descriptors"),d=a("../internals/has-own-property"),p=Function.prototype,g=h&&Object.getOwnPropertyDescriptor,A=d(p,"name"),m=A&&(function(){}).name==="something",y=A&&(!h||h&&g(p,"name").configurable);c.exports={EXISTS:A,PROPER:m,CONFIGURABLE:y}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(a,c,u){var h=a("../internals/function-uncurry-this"),d=a("../internals/a-callable");c.exports=function(p,g,A){try{return h(d(Object.getOwnPropertyDescriptor(p,g)[A]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(a,c,u){var h=a("../internals/classof-raw"),d=a("../internals/function-uncurry-this");c.exports=function(p){if(h(p)==="Function")return d(p)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(a,c,u){var h=a("../internals/function-bind-native"),d=Function.prototype,p=d.call,g=h&&d.bind.bind(p,p);c.exports=h?g:function(A){return function(){return p.apply(A,arguments)}}},{"../internals/function-bind-native":263}],269:[function(a,c,u){var h=a("../internals/global"),d=a("../internals/is-callable"),p=function(g){return d(g)?g:void 0};c.exports=function(g,A){return arguments.length<2?p(h[g]):h[g]&&h[g][A]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(a,c,u){var h=a("../internals/classof"),d=a("../internals/get-method"),p=a("../internals/is-null-or-undefined"),g=a("../internals/iterators"),A=a("../internals/well-known-symbol")("iterator");c.exports=function(m){if(!p(m))return d(m,A)||d(m,"@@iterator")||g[h(m)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(a,c,u){var h=a("../internals/function-call"),d=a("../internals/a-callable"),p=a("../internals/an-object"),g=a("../internals/try-to-string"),A=a("../internals/get-iterator-method"),m=TypeError;c.exports=function(y,b){var I=arguments.length<2?A(y):b;if(d(I))return p(h(I,y));throw new m(g(y)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(a,c,u){var h=a("../internals/function-uncurry-this"),d=a("../internals/is-array"),p=a("../internals/is-callable"),g=a("../internals/classof-raw"),A=a("../internals/to-string"),m=h([].push);c.exports=function(y){if(p(y))return y;if(d(y)){for(var b=y.length,I=[],E=0;EW;W++)if((te=q(D[W]))&&y(_,te))return te;return new S(!1)}N=b(D,H)}for(ue=we?D.next:N.next;!(fe=d(ue,N)).done;){try{te=q(fe.value)}catch(z){E(N,"throw",z)}if(typeof te=="object"&&te&&y(_,te))return te}return new S(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(a,c,u){var h=a("../internals/function-call"),d=a("../internals/an-object"),p=a("../internals/get-method");c.exports=function(g,A,m){var y,b;d(g);try{if(!(y=p(g,"return"))){if(A==="throw")throw m;return m}y=h(y,g)}catch(I){b=!0,y=I}if(A==="throw")throw m;if(b)throw y;return d(y),m}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(a,c,u){var h=a("../internals/iterators-core").IteratorPrototype,d=a("../internals/object-create"),p=a("../internals/create-property-descriptor"),g=a("../internals/set-to-string-tag"),A=a("../internals/iterators"),m=function(){return this};c.exports=function(y,b,I,E){var B=b+" Iterator";return y.prototype=d(h,{next:p(+!E,I)}),g(y,B,!1,!0),A[B]=m,y}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/function-call"),p=a("../internals/is-pure"),g=a("../internals/function-name"),A=a("../internals/is-callable"),m=a("../internals/iterator-create-constructor"),y=a("../internals/object-get-prototype-of"),b=a("../internals/object-set-prototype-of"),I=a("../internals/set-to-string-tag"),E=a("../internals/create-non-enumerable-property"),B=a("../internals/define-built-in"),S=a("../internals/well-known-symbol"),_=a("../internals/iterators"),D=a("../internals/iterators-core"),T=g.PROPER,F=g.CONFIGURABLE,N=D.IteratorPrototype,H=D.BUGGY_SAFARI_ITERATORS,W=S("iterator"),V="keys",te="values",ue="entries",fe=function(){return this};c.exports=function(de,Ae,we,Z,ne,j,J){m(we,Ae,Z);var q,z,X,se=function(rt){if(rt===ne&&Fe)return Fe;if(!H&&rt&&rt in ae)return ae[rt];switch(rt){case V:case te:case ue:return function(){return new we(this,rt)}}return function(){return new we(this)}},oe=Ae+" Iterator",ye=!1,ae=de.prototype,me=ae[W]||ae["@@iterator"]||ne&&ae[ne],Fe=!H&&me||se(ne),_e=Ae==="Array"&&ae.entries||me;if(_e&&(q=y(_e.call(new de)))!==Object.prototype&&q.next&&(p||y(q)===N||(b?b(q,N):A(q[W])||B(q,W,fe)),I(q,oe,!0,!0),p&&(_[oe]=fe)),T&&ne===te&&me&&me.name!==te&&(!p&&F?E(ae,"name",te):(ye=!0,Fe=function(){return d(me,this)})),ne)if(z={values:se(te),keys:j?Fe:se(V),entries:se(ue)},J)for(X in z)(H||ye||!(X in ae))&&B(ae,X,z[X]);else h({target:Ae,proto:!0,forced:H||ye},z);return p&&!J||ae[W]===Fe||B(ae,W,Fe,{name:ne}),_[Ae]=Fe,z}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(a,c,u){var h,d,p,g=a("../internals/fails"),A=a("../internals/is-callable"),m=a("../internals/is-object"),y=a("../internals/object-create"),b=a("../internals/object-get-prototype-of"),I=a("../internals/define-built-in"),E=a("../internals/well-known-symbol"),B=a("../internals/is-pure"),S=E("iterator"),_=!1;[].keys&&("next"in(p=[].keys())?(d=b(b(p)))!==Object.prototype&&(h=d):_=!0),!m(h)||g(function(){var D={};return h[S].call(D)!==D})?h={}:B&&(h=y(h)),A(h[S])||I(h,S,function(){return this}),c.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:_}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(a,c,u){arguments[4][276][0].apply(u,arguments)},{dup:276}],299:[function(a,c,u){var h=a("../internals/to-length");c.exports=function(d){return h(d.length)}},{"../internals/to-length":343}],300:[function(a,c,u){var h=a("../internals/function-uncurry-this"),d=a("../internals/fails"),p=a("../internals/is-callable"),g=a("../internals/has-own-property"),A=a("../internals/descriptors"),m=a("../internals/function-name").CONFIGURABLE,y=a("../internals/inspect-source"),b=a("../internals/internal-state"),I=b.enforce,E=b.get,B=String,S=Object.defineProperty,_=h("".slice),D=h("".replace),T=h([].join),F=A&&!d(function(){return S(function(){},"length",{value:8}).length!==8}),N=String(String).split("String"),H=c.exports=function(W,V,te){_(B(V),0,7)==="Symbol("&&(V="["+D(B(V),/^Symbol\(([^)]*)\)/,"$1")+"]"),te&&te.getter&&(V="get "+V),te&&te.setter&&(V="set "+V),(!g(W,"name")||m&&W.name!==V)&&(A?S(W,"name",{value:V,configurable:!0}):W.name=V),F&&te&&g(te,"arity")&&W.length!==te.arity&&S(W,"length",{value:te.arity});try{te&&g(te,"constructor")&&te.constructor?A&&S(W,"prototype",{writable:!1}):W.prototype&&(W.prototype=void 0)}catch{}var ue=I(W);return g(ue,"source")||(ue.source=T(N,typeof V=="string"?V:"")),W};Function.prototype.toString=H(function(){return p(this)&&E(this).source||y(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(a,c,u){var h=Math.ceil,d=Math.floor;c.exports=Math.trunc||function(p){var g=+p;return(g>0?d:h)(g)}},{}],302:[function(a,c,u){var h,d,p,g,A,m=a("../internals/global"),y=a("../internals/function-bind-context"),b=a("../internals/object-get-own-property-descriptor").f,I=a("../internals/task").set,E=a("../internals/queue"),B=a("../internals/engine-is-ios"),S=a("../internals/engine-is-ios-pebble"),_=a("../internals/engine-is-webos-webkit"),D=a("../internals/engine-is-node"),T=m.MutationObserver||m.WebKitMutationObserver,F=m.document,N=m.process,H=m.Promise,W=b(m,"queueMicrotask"),V=W&&W.value;if(!V){var te=new E,ue=function(){var fe,de;for(D&&(fe=N.domain)&&fe.exit();de=te.get();)try{de()}catch(Ae){throw te.head&&h(),Ae}fe&&fe.enter()};B||D||_||!T||!F?!S&&H&&H.resolve?((g=H.resolve(void 0)).constructor=H,A=y(g.then,g),h=function(){A(ue)}):D?h=function(){N.nextTick(ue)}:(I=y(I,m),h=function(){I(ue)}):(d=!0,p=F.createTextNode(""),new T(ue).observe(p,{characterData:!0}),h=function(){p.data=d=!d}),V=function(fe){te.head||h(),te.add(fe)}}c.exports=V},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(a,c,u){var h=a("../internals/a-callable"),d=TypeError,p=function(g){var A,m;this.promise=new g(function(y,b){if(A!==void 0||m!==void 0)throw new d("Bad Promise constructor");A=y,m=b}),this.resolve=h(A),this.reject=h(m)};c.exports.f=function(g){return new p(g)}},{"../internals/a-callable":222}],304:[function(a,c,u){var h=a("../internals/is-regexp"),d=TypeError;c.exports=function(p){if(h(p))throw new d("The method doesn't accept regular expressions");return p}},{"../internals/is-regexp":291}],305:[function(a,c,u){var h=a("../internals/descriptors"),d=a("../internals/function-uncurry-this"),p=a("../internals/function-call"),g=a("../internals/fails"),A=a("../internals/object-keys"),m=a("../internals/object-get-own-property-symbols"),y=a("../internals/object-property-is-enumerable"),b=a("../internals/to-object"),I=a("../internals/indexed-object"),E=Object.assign,B=Object.defineProperty,S=d([].concat);c.exports=!E||g(function(){if(h&&E({b:1},E(B({},"a",{enumerable:!0,get:function(){B(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var _={},D={},T=Symbol("assign detection"),F="abcdefghijklmnopqrst";return _[T]=7,F.split("").forEach(function(N){D[N]=N}),E({},_)[T]!==7||A(E({},D)).join("")!==F})?function(_,D){for(var T=b(_),F=arguments.length,N=1,H=m.f,W=y.f;F>N;)for(var V,te=I(arguments[N++]),ue=H?S(A(te),H(te)):A(te),fe=ue.length,de=0;fe>de;)V=ue[de++],h&&!p(W,te,V)||(T[V]=te[V]);return T}:E},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(a,c,u){var h,d=a("../internals/an-object"),p=a("../internals/object-define-properties"),g=a("../internals/enum-bug-keys"),A=a("../internals/hidden-keys"),m=a("../internals/html"),y=a("../internals/document-create-element"),b=a("../internals/shared-key"),I=">",E="<",B="prototype",S="script",_=b("IE_PROTO"),D=function(){},T=function(W){return E+S+I+W+E+"/"+S+I},F=function(W){W.write(T("")),W.close();var V=W.parentWindow.Object;return W=null,V},N=function(){var W,V=y("iframe"),te="java"+S+":";return V.style.display="none",m.appendChild(V),V.src=String(te),(W=V.contentWindow.document).open(),W.write(T("document.F=Object")),W.close(),W.F},H=function(){try{h=new ActiveXObject("htmlfile")}catch{}H=typeof document<"u"?document.domain&&h?F(h):N():F(h);for(var W=g.length;W--;)delete H[B][g[W]];return H()};A[_]=!0,c.exports=Object.create||function(W,V){var te;return W!==null?(D[B]=d(W),te=new D,D[B]=null,te[_]=W):te=H(),V===void 0?te:p.f(te,V)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(a,c,u){var h=a("../internals/descriptors"),d=a("../internals/v8-prototype-define-bug"),p=a("../internals/object-define-property"),g=a("../internals/an-object"),A=a("../internals/to-indexed-object"),m=a("../internals/object-keys");u.f=h&&!d?Object.defineProperties:function(y,b){g(y);for(var I,E=A(b),B=m(b),S=B.length,_=0;S>_;)p.f(y,I=B[_++],E[I]);return y}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(a,c,u){var h=a("../internals/descriptors"),d=a("../internals/ie8-dom-define"),p=a("../internals/v8-prototype-define-bug"),g=a("../internals/an-object"),A=a("../internals/to-property-key"),m=TypeError,y=Object.defineProperty,b=Object.getOwnPropertyDescriptor,I="enumerable",E="configurable",B="writable";u.f=h?p?function(S,_,D){if(g(S),_=A(_),g(D),typeof S=="function"&&_==="prototype"&&"value"in D&&B in D&&!D[B]){var T=b(S,_);T&&T[B]&&(S[_]=D.value,D={configurable:E in D?D[E]:T[E],enumerable:I in D?D[I]:T[I],writable:!1})}return y(S,_,D)}:y:function(S,_,D){if(g(S),_=A(_),g(D),d)try{return y(S,_,D)}catch{}if("get"in D||"set"in D)throw new m("Accessors not supported");return"value"in D&&(S[_]=D.value),S}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(a,c,u){var h=a("../internals/descriptors"),d=a("../internals/function-call"),p=a("../internals/object-property-is-enumerable"),g=a("../internals/create-property-descriptor"),A=a("../internals/to-indexed-object"),m=a("../internals/to-property-key"),y=a("../internals/has-own-property"),b=a("../internals/ie8-dom-define"),I=Object.getOwnPropertyDescriptor;u.f=h?I:function(E,B){if(E=A(E),B=m(B),b)try{return I(E,B)}catch{}if(y(E,B))return g(!d(p.f,E,B),E[B])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(a,c,u){var h=a("../internals/classof-raw"),d=a("../internals/to-indexed-object"),p=a("../internals/object-get-own-property-names").f,g=a("../internals/array-slice-simple"),A=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(y){try{return p(y)}catch{return g(A)}};c.exports.f=function(y){return A&&h(y)==="Window"?m(y):p(d(y))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(a,c,u){var h=a("../internals/object-keys-internal"),d=a("../internals/enum-bug-keys").concat("length","prototype");u.f=Object.getOwnPropertyNames||function(p){return h(p,d)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(a,c,u){u.f=Object.getOwnPropertySymbols},{}],313:[function(a,c,u){var h=a("../internals/has-own-property"),d=a("../internals/is-callable"),p=a("../internals/to-object"),g=a("../internals/shared-key"),A=a("../internals/correct-prototype-getter"),m=g("IE_PROTO"),y=Object,b=y.prototype;c.exports=A?y.getPrototypeOf:function(I){var E=p(I);if(h(E,m))return E[m];var B=E.constructor;return d(B)&&E instanceof B?B.prototype:E instanceof y?b:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(a,c,u){var h=a("../internals/function-uncurry-this");c.exports=h({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(a,c,u){var h=a("../internals/function-uncurry-this"),d=a("../internals/has-own-property"),p=a("../internals/to-indexed-object"),g=a("../internals/array-includes").indexOf,A=a("../internals/hidden-keys"),m=h([].push);c.exports=function(y,b){var I,E=p(y),B=0,S=[];for(I in E)!d(A,I)&&d(E,I)&&m(S,I);for(;b.length>B;)d(E,I=b[B++])&&(~g(S,I)||m(S,I));return S}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(a,c,u){var h=a("../internals/object-keys-internal"),d=a("../internals/enum-bug-keys");c.exports=Object.keys||function(p){return h(p,d)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(a,c,u){var h={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,p=d&&!h.call({1:2},1);u.f=p?function(g){var A=d(this,g);return!!A&&A.enumerable}:h},{}],318:[function(a,c,u){var h=a("../internals/function-uncurry-this-accessor"),d=a("../internals/an-object"),p=a("../internals/a-possible-prototype");c.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g,A=!1,m={};try{(g=h(Object.prototype,"__proto__","set"))(m,[]),A=m instanceof Array}catch{}return function(y,b){return d(y),p(b),A?g(y,b):y.__proto__=b,y}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(a,c,u){var h=a("../internals/descriptors"),d=a("../internals/fails"),p=a("../internals/function-uncurry-this"),g=a("../internals/object-get-prototype-of"),A=a("../internals/object-keys"),m=a("../internals/to-indexed-object"),y=p(a("../internals/object-property-is-enumerable").f),b=p([].push),I=h&&d(function(){var B=Object.create(null);return B[2]=2,!y(B,2)}),E=function(B){return function(S){for(var _,D=m(S),T=A(D),F=I&&g(D)===null,N=T.length,H=0,W=[];N>H;)_=T[H++],h&&!(F?_ in D:y(D,_))||b(W,B?[_,D[_]]:D[_]);return W}};c.exports={entries:E(!0),values:E(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(a,c,u){var h=a("../internals/function-call"),d=a("../internals/is-callable"),p=a("../internals/is-object"),g=TypeError;c.exports=function(A,m){var y,b;if(m==="string"&&d(y=A.toString)&&!p(b=h(y,A))||d(y=A.valueOf)&&!p(b=h(y,A))||m!=="string"&&d(y=A.toString)&&!p(b=h(y,A)))return b;throw new g("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(a,c,u){var h=a("../internals/get-built-in"),d=a("../internals/function-uncurry-this"),p=a("../internals/object-get-own-property-names"),g=a("../internals/object-get-own-property-symbols"),A=a("../internals/an-object"),m=d([].concat);c.exports=h("Reflect","ownKeys")||function(y){var b=p.f(A(y)),I=g.f;return I?m(b,I(y)):b}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(a,c,u){var h=a("../internals/global");c.exports=h},{"../internals/global":274}],323:[function(a,c,u){c.exports=function(h){try{return{error:!1,value:h()}}catch(d){return{error:!0,value:d}}}},{}],324:[function(a,c,u){var h=a("../internals/global"),d=a("../internals/promise-native-constructor"),p=a("../internals/is-callable"),g=a("../internals/is-forced"),A=a("../internals/inspect-source"),m=a("../internals/well-known-symbol"),y=a("../internals/engine-is-browser"),b=a("../internals/engine-is-deno"),I=a("../internals/is-pure"),E=a("../internals/engine-v8-version"),B=d&&d.prototype,S=m("species"),_=!1,D=p(h.PromiseRejectionEvent),T=g("Promise",function(){var F=A(d),N=F!==String(d);if(!N&&E===66||I&&(!B.catch||!B.finally))return!0;if(!E||E<51||!/native code/.test(F)){var H=new d(function(V){V(1)}),W=function(V){V(function(){},function(){})};if((H.constructor={})[S]=W,!(_=H.then(function(){})instanceof W))return!0}return!N&&(y||b)&&!D});c.exports={CONSTRUCTOR:T,REJECTION_EVENT:D,SUBCLASSING:_}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(a,c,u){var h=a("../internals/global");c.exports=h.Promise},{"../internals/global":274}],326:[function(a,c,u){var h=a("../internals/an-object"),d=a("../internals/is-object"),p=a("../internals/new-promise-capability");c.exports=function(g,A){if(h(g),d(A)&&A.constructor===g)return A;var m=p.f(g);return(0,m.resolve)(A),m.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(a,c,u){var h=a("../internals/promise-native-constructor"),d=a("../internals/check-correctness-of-iteration"),p=a("../internals/promise-constructor-detection").CONSTRUCTOR;c.exports=p||!d(function(g){h.all(g).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(a,c,u){var h=function(){this.head=null,this.tail=null};h.prototype={add:function(d){var p={item:d,next:null},g=this.tail;g?g.next=p:this.head=p,this.tail=p},get:function(){var d=this.head;if(d)return(this.head=d.next)===null&&(this.tail=null),d.item}},c.exports=h},{}],329:[function(a,c,u){var h=a("../internals/is-null-or-undefined"),d=TypeError;c.exports=function(p){if(h(p))throw new d("Can't call method on "+p);return p}},{"../internals/is-null-or-undefined":288}],330:[function(a,c,u){var h=a("../internals/get-built-in"),d=a("../internals/define-built-in-accessor"),p=a("../internals/well-known-symbol"),g=a("../internals/descriptors"),A=p("species");c.exports=function(m){var y=h(m);g&&y&&!y[A]&&d(y,A,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(a,c,u){var h=a("../internals/object-define-property").f,d=a("../internals/has-own-property"),p=a("../internals/well-known-symbol")("toStringTag");c.exports=function(g,A,m){g&&!m&&(g=g.prototype),g&&!d(g,p)&&h(g,p,{configurable:!0,value:A})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(a,c,u){var h=a("../internals/shared"),d=a("../internals/uid"),p=h("keys");c.exports=function(g){return p[g]||(p[g]=d(g))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(a,c,u){var h=a("../internals/global"),d=a("../internals/define-global-property"),p="__core-js_shared__",g=h[p]||d(p,{});c.exports=g},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(a,c,u){var h=a("../internals/is-pure"),d=a("../internals/shared-store");(c.exports=function(p,g){return d[p]||(d[p]=g!==void 0?g:{})})("versions",[]).push({version:"3.33.0",mode:h?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(a,c,u){var h=a("../internals/an-object"),d=a("../internals/a-constructor"),p=a("../internals/is-null-or-undefined"),g=a("../internals/well-known-symbol")("species");c.exports=function(A,m){var y,b=h(A).constructor;return b===void 0||p(y=h(b)[g])?m:d(y)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(a,c,u){var h=a("../internals/engine-v8-version"),d=a("../internals/fails"),p=a("../internals/global").String;c.exports=!!Object.getOwnPropertySymbols&&!d(function(){var g=Symbol("symbol detection");return!p(g)||!(Object(g)instanceof Symbol)||!Symbol.sham&&h&&h<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(a,c,u){var h=a("../internals/function-call"),d=a("../internals/get-built-in"),p=a("../internals/well-known-symbol"),g=a("../internals/define-built-in");c.exports=function(){var A=d("Symbol"),m=A&&A.prototype,y=m&&m.valueOf,b=p("toPrimitive");m&&!m[b]&&g(m,b,function(I){return h(y,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(a,c,u){var h=a("../internals/symbol-constructor-detection");c.exports=h&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(a,c,u){var h,d,p,g,A=a("../internals/global"),m=a("../internals/function-apply"),y=a("../internals/function-bind-context"),b=a("../internals/is-callable"),I=a("../internals/has-own-property"),E=a("../internals/fails"),B=a("../internals/html"),S=a("../internals/array-slice"),_=a("../internals/document-create-element"),D=a("../internals/validate-arguments-length"),T=a("../internals/engine-is-ios"),F=a("../internals/engine-is-node"),N=A.setImmediate,H=A.clearImmediate,W=A.process,V=A.Dispatch,te=A.Function,ue=A.MessageChannel,fe=A.String,de=0,Ae={},we="onreadystatechange";E(function(){h=A.location});var Z=function(q){if(I(Ae,q)){var z=Ae[q];delete Ae[q],z()}},ne=function(q){return function(){Z(q)}},j=function(q){Z(q.data)},J=function(q){A.postMessage(fe(q),h.protocol+"//"+h.host)};N&&H||(N=function(q){D(arguments.length,1);var z=b(q)?q:te(q),X=S(arguments,1);return Ae[++de]=function(){m(z,void 0,X)},d(de),de},H=function(q){delete Ae[q]},F?d=function(q){W.nextTick(ne(q))}:V&&V.now?d=function(q){V.now(ne(q))}:ue&&!T?(g=(p=new ue).port2,p.port1.onmessage=j,d=y(g.postMessage,g)):A.addEventListener&&b(A.postMessage)&&!A.importScripts&&h&&h.protocol!=="file:"&&!E(J)?(d=J,A.addEventListener("message",j,!1)):d=we in _("script")?function(q){B.appendChild(_("script"))[we]=function(){B.removeChild(this),Z(q)}}:function(q){setTimeout(ne(q),0)}),c.exports={set:N,clear:H}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(a,c,u){var h=a("../internals/to-integer-or-infinity"),d=Math.max,p=Math.min;c.exports=function(g,A){var m=h(g);return m<0?d(m+A,0):p(m,A)}},{"../internals/to-integer-or-infinity":342}],341:[function(a,c,u){var h=a("../internals/indexed-object"),d=a("../internals/require-object-coercible");c.exports=function(p){return h(d(p))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(a,c,u){var h=a("../internals/math-trunc");c.exports=function(d){var p=+d;return p!=p||p===0?0:h(p)}},{"../internals/math-trunc":301}],343:[function(a,c,u){var h=a("../internals/to-integer-or-infinity"),d=Math.min;c.exports=function(p){return p>0?d(h(p),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(a,c,u){var h=a("../internals/require-object-coercible"),d=Object;c.exports=function(p){return d(h(p))}},{"../internals/require-object-coercible":329}],345:[function(a,c,u){var h=a("../internals/function-call"),d=a("../internals/is-object"),p=a("../internals/is-symbol"),g=a("../internals/get-method"),A=a("../internals/ordinary-to-primitive"),m=a("../internals/well-known-symbol"),y=TypeError,b=m("toPrimitive");c.exports=function(I,E){if(!d(I)||p(I))return I;var B,S=g(I,b);if(S){if(E===void 0&&(E="default"),B=h(S,I,E),!d(B)||p(B))return B;throw new y("Can't convert object to primitive value")}return E===void 0&&(E="number"),A(I,E)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(a,c,u){var h=a("../internals/to-primitive"),d=a("../internals/is-symbol");c.exports=function(p){var g=h(p,"string");return d(g)?g:g+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(a,c,u){var h={};h[a("../internals/well-known-symbol")("toStringTag")]="z",c.exports=String(h)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(a,c,u){var h=a("../internals/classof"),d=String;c.exports=function(p){if(h(p)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return d(p)}},{"../internals/classof":236}],349:[function(a,c,u){var h=String;c.exports=function(d){try{return h(d)}catch{return"Object"}}},{}],350:[function(a,c,u){var h=a("../internals/function-uncurry-this"),d=0,p=Math.random(),g=h(1 .toString);c.exports=function(A){return"Symbol("+(A===void 0?"":A)+")_"+g(++d+p,36)}},{"../internals/function-uncurry-this":268}],351:[function(a,c,u){var h=a("../internals/symbol-constructor-detection");c.exports=h&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(a,c,u){var h=a("../internals/descriptors"),d=a("../internals/fails");c.exports=h&&d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(a,c,u){var h=TypeError;c.exports=function(d,p){if(d1?arguments[1]:void 0)}}),p(g)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/array-iteration").find,p=a("../internals/add-to-unscopables"),g="find",A=!0;g in[]&&Array(1)[g](function(){A=!1}),h({target:"Array",proto:!0,forced:A},{find:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}}),p(g)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/array-includes").includes,p=a("../internals/fails"),g=a("../internals/add-to-unscopables");h({target:"Array",proto:!0,forced:p(function(){return!Array(1).includes()})},{includes:function(A){return d(this,A,arguments.length>1?arguments[1]:void 0)}}),g("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(a,c,u){var h=a("../internals/to-indexed-object"),d=a("../internals/add-to-unscopables"),p=a("../internals/iterators"),g=a("../internals/internal-state"),A=a("../internals/object-define-property").f,m=a("../internals/iterator-define"),y=a("../internals/create-iter-result-object"),b=a("../internals/is-pure"),I=a("../internals/descriptors"),E="Array Iterator",B=g.set,S=g.getterFor(E);c.exports=m(Array,"Array",function(D,T){B(this,{type:E,target:h(D),index:0,kind:T})},function(){var D=S(this),T=D.target,F=D.kind,N=D.index++;if(!T||N>=T.length)return D.target=void 0,y(void 0,!0);switch(F){case"keys":return y(N,!1);case"values":return y(T[N],!1)}return y([N,T[N]],!1)},"values");var _=p.Arguments=p.Array;if(d("keys"),d("values"),d("entries"),!b&&I&&_.name!=="values")try{A(_,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/get-built-in"),p=a("../internals/function-apply"),g=a("../internals/function-call"),A=a("../internals/function-uncurry-this"),m=a("../internals/fails"),y=a("../internals/is-callable"),b=a("../internals/is-symbol"),I=a("../internals/array-slice"),E=a("../internals/get-json-replacer-function"),B=a("../internals/symbol-constructor-detection"),S=String,_=d("JSON","stringify"),D=A(/./.exec),T=A("".charAt),F=A("".charCodeAt),N=A("".replace),H=A(1 .toString),W=/[\uD800-\uDFFF]/g,V=/^[\uD800-\uDBFF]$/,te=/^[\uDC00-\uDFFF]$/,ue=!B||m(function(){var we=d("Symbol")("stringify detection");return _([we])!=="[null]"||_({a:we})!=="{}"||_(Object(we))!=="{}"}),fe=m(function(){return _("\uDF06\uD834")!=='"\\udf06\\ud834"'||_("\uDEAD")!=='"\\udead"'}),de=function(we,Z){var ne=I(arguments),j=E(Z);if(y(j)||we!==void 0&&!b(we))return ne[1]=function(J,q){if(y(j)&&(q=g(j,this,S(J),q)),!b(q))return q},p(_,null,ne)},Ae=function(we,Z,ne){var j=T(ne,Z-1),J=T(ne,Z+1);return D(V,we)&&!D(te,J)||D(te,we)&&!D(V,j)?"\\u"+H(F(we,0),16):we};_&&h({target:"JSON",stat:!0,arity:3,forced:ue||fe},{stringify:function(we,Z,ne){var j=I(arguments),J=p(ue?de:_,null,j);return fe&&typeof J=="string"?N(J,W,Ae):J}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(a,c,u){a("../internals/export")({target:"Number",stat:!0},{isNaN:function(h){return h!=h}})},{"../internals/export":259}],364:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/object-assign");h({target:"Object",stat:!0,arity:2,forced:Object.assign!==d},{assign:d})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/symbol-constructor-detection"),p=a("../internals/fails"),g=a("../internals/object-get-own-property-symbols"),A=a("../internals/to-object");h({target:"Object",stat:!0,forced:!d||p(function(){g.f(1)})},{getOwnPropertySymbols:function(m){var y=g.f;return y?y(A(m)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/to-object"),p=a("../internals/object-keys");h({target:"Object",stat:!0,forced:a("../internals/fails")(function(){p(1)})},{keys:function(g){return p(d(g))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/object-to-array").values;h({target:"Object",stat:!0},{values:function(p){return d(p)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/function-call"),p=a("../internals/a-callable"),g=a("../internals/new-promise-capability"),A=a("../internals/perform"),m=a("../internals/iterate");h({target:"Promise",stat:!0,forced:a("../internals/promise-statics-incorrect-iteration")},{all:function(y){var b=this,I=g.f(b),E=I.resolve,B=I.reject,S=A(function(){var _=p(b.resolve),D=[],T=0,F=1;m(y,function(N){var H=T++,W=!1;F++,d(_,b,N).then(function(V){W||(W=!0,D[H]=V,--F||E(D))},B)}),--F||E(D)});return S.error&&B(S.value),I.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/is-pure"),p=a("../internals/promise-constructor-detection").CONSTRUCTOR,g=a("../internals/promise-native-constructor"),A=a("../internals/get-built-in"),m=a("../internals/is-callable"),y=a("../internals/define-built-in"),b=g&&g.prototype;if(h({target:"Promise",proto:!0,forced:p,real:!0},{catch:function(E){return this.then(void 0,E)}}),!d&&m(g)){var I=A("Promise").prototype.catch;b.catch!==I&&y(b,"catch",I,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(a,c,u){var h,d,p,g,A=a("../internals/export"),m=a("../internals/is-pure"),y=a("../internals/engine-is-node"),b=a("../internals/global"),I=a("../internals/function-call"),E=a("../internals/define-built-in"),B=a("../internals/object-set-prototype-of"),S=a("../internals/set-to-string-tag"),_=a("../internals/set-species"),D=a("../internals/a-callable"),T=a("../internals/is-callable"),F=a("../internals/is-object"),N=a("../internals/an-instance"),H=a("../internals/species-constructor"),W=a("../internals/task").set,V=a("../internals/microtask"),te=a("../internals/host-report-errors"),ue=a("../internals/perform"),fe=a("../internals/queue"),de=a("../internals/internal-state"),Ae=a("../internals/promise-native-constructor"),we=a("../internals/promise-constructor-detection"),Z=a("../internals/new-promise-capability"),ne="Promise",j=we.CONSTRUCTOR,J=we.REJECTION_EVENT,q=we.SUBCLASSING,z=de.getterFor(ne),X=de.set,se=Ae&&Ae.prototype,oe=Ae,ye=se,ae=b.TypeError,me=b.document,Fe=b.process,_e=Z.f,rt=_e,et=!!(me&&me.createEvent&&b.dispatchEvent),st="unhandledrejection",Ge="rejectionhandled",Be=0,Te=1,je=2,lt=1,Me=2,Ke=function(Ze){var $e;return!(!F(Ze)||!T($e=Ze.then))&&$e},Rt=function(Ze,$e){var nt,Ot,He,Je=$e.value,tt=$e.state===Te,mt=tt?Ze.ok:Ze.fail,Xe=Ze.resolve,Ye=Ze.reject,ot=Ze.domain;try{mt?(tt||($e.rejection===Me&&Lt($e),$e.rejection=lt),mt===!0?nt=Je:(ot&&ot.enter(),nt=mt(Je),ot&&(ot.exit(),He=!0)),nt===Ze.promise?Ye(new ae("Promise-chain cycle")):(Ot=Ke(nt))?I(Ot,nt,Xe,Ye):Xe(nt)):Ye(Je)}catch(yt){ot&&!He&&ot.exit(),Ye(yt)}},Ie=function(Ze,$e){Ze.notified||(Ze.notified=!0,V(function(){for(var nt,Ot=Ze.reactions;nt=Ot.get();)Rt(nt,Ze);Ze.notified=!1,$e&&!Ze.rejection&&qe(Ze)}))},Re=function(Ze,$e,nt){var Ot,He;et?((Ot=me.createEvent("Event")).promise=$e,Ot.reason=nt,Ot.initEvent(Ze,!1,!0),b.dispatchEvent(Ot)):Ot={promise:$e,reason:nt},!J&&(He=b["on"+Ze])?He(Ot):Ze===st&&te("Unhandled promise rejection",nt)},qe=function(Ze){I(W,b,function(){var $e,nt=Ze.facade,Ot=Ze.value;if(pt(Ze)&&($e=ue(function(){y?Fe.emit("unhandledRejection",Ot,nt):Re(st,nt,Ot)}),Ze.rejection=y||pt(Ze)?Me:lt,$e.error))throw $e.value})},pt=function(Ze){return Ze.rejection!==lt&&!Ze.parent},Lt=function(Ze){I(W,b,function(){var $e=Ze.facade;y?Fe.emit("rejectionHandled",$e):Re(Ge,$e,Ze.value)})},Qe=function(Ze,$e,nt){return function(Ot){Ze($e,Ot,nt)}},_t=function(Ze,$e,nt){Ze.done||(Ze.done=!0,nt&&(Ze=nt),Ze.value=$e,Ze.state=je,Ie(Ze,!0))},Ft=function(Ze,$e,nt){if(!Ze.done){Ze.done=!0,nt&&(Ze=nt);try{if(Ze.facade===$e)throw new ae("Promise can't be resolved itself");var Ot=Ke($e);Ot?V(function(){var He={done:!1};try{I(Ot,$e,Qe(Ft,He,Ze),Qe(_t,He,Ze))}catch(Je){_t(He,Je,Ze)}}):(Ze.value=$e,Ze.state=Te,Ie(Ze,!1))}catch(He){_t({done:!1},He,Ze)}}};if(j&&(ye=(oe=function(Ze){N(this,ye),D(Ze),I(h,this);var $e=z(this);try{Ze(Qe(Ft,$e),Qe(_t,$e))}catch(nt){_t($e,nt)}}).prototype,(h=function(Ze){X(this,{type:ne,done:!1,notified:!1,parent:!1,reactions:new fe,rejection:!1,state:Be,value:void 0})}).prototype=E(ye,"then",function(Ze,$e){var nt=z(this),Ot=_e(H(this,oe));return nt.parent=!0,Ot.ok=!T(Ze)||Ze,Ot.fail=T($e)&&$e,Ot.domain=y?Fe.domain:void 0,nt.state===Be?nt.reactions.add(Ot):V(function(){Rt(Ot,nt)}),Ot.promise}),d=function(){var Ze=new h,$e=z(Ze);this.promise=Ze,this.resolve=Qe(Ft,$e),this.reject=Qe(_t,$e)},Z.f=_e=function(Ze){return Ze===oe||Ze===p?new d(Ze):rt(Ze)},!m&&T(Ae)&&se!==Object.prototype)){g=se.then,q||E(se,"then",function(Ze,$e){var nt=this;return new oe(function(Ot,He){I(g,nt,Ot,He)}).then(Ze,$e)},{unsafe:!0});try{delete se.constructor}catch{}B&&B(se,ye)}A({global:!0,constructor:!0,wrap:!0,forced:j},{Promise:oe}),S(oe,ne,!1,!0),_(ne)},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/is-pure"),p=a("../internals/promise-native-constructor"),g=a("../internals/fails"),A=a("../internals/get-built-in"),m=a("../internals/is-callable"),y=a("../internals/species-constructor"),b=a("../internals/promise-resolve"),I=a("../internals/define-built-in"),E=p&&p.prototype;if(h({target:"Promise",proto:!0,real:!0,forced:!!p&&g(function(){E.finally.call({then:function(){}},function(){})})},{finally:function(S){var _=y(this,A("Promise")),D=m(S);return this.then(D?function(T){return b(_,S()).then(function(){return T})}:S,D?function(T){return b(_,S()).then(function(){throw T})}:S)}}),!d&&m(p)){var B=A("Promise").prototype.finally;E.finally!==B&&I(E,"finally",B,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(a,c,u){a("../modules/es.promise.constructor"),a("../modules/es.promise.all"),a("../modules/es.promise.catch"),a("../modules/es.promise.race"),a("../modules/es.promise.reject"),a("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/function-call"),p=a("../internals/a-callable"),g=a("../internals/new-promise-capability"),A=a("../internals/perform"),m=a("../internals/iterate");h({target:"Promise",stat:!0,forced:a("../internals/promise-statics-incorrect-iteration")},{race:function(y){var b=this,I=g.f(b),E=I.reject,B=A(function(){var S=p(b.resolve);m(y,function(_){d(S,b,_).then(I.resolve,E)})});return B.error&&E(B.value),I.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/function-call"),p=a("../internals/new-promise-capability");h({target:"Promise",stat:!0,forced:a("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(g){var A=p.f(this);return d(A.reject,void 0,g),A.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/get-built-in"),p=a("../internals/is-pure"),g=a("../internals/promise-native-constructor"),A=a("../internals/promise-constructor-detection").CONSTRUCTOR,m=a("../internals/promise-resolve"),y=d("Promise"),b=p&&!A;h({target:"Promise",stat:!0,forced:p||A},{resolve:function(I){return m(b&&this===y?g:this,I)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/function-uncurry-this"),p=a("../internals/to-absolute-index"),g=RangeError,A=String.fromCharCode,m=String.fromCodePoint,y=d([].join);h({target:"String",stat:!0,arity:1,forced:!!m&&m.length!==1},{fromCodePoint:function(b){for(var I,E=[],B=arguments.length,S=0;B>S;){if(I=+arguments[S++],p(I,1114111)!==I)throw new g(I+" is not a valid code point");E[S]=I<65536?A(I):A(55296+((I-=65536)>>10),I%1024+56320)}return y(E,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/function-uncurry-this"),p=a("../internals/not-a-regexp"),g=a("../internals/require-object-coercible"),A=a("../internals/to-string"),m=a("../internals/correct-is-regexp-logic"),y=d("".indexOf);h({target:"String",proto:!0,forced:!m("includes")},{includes:function(b){return!!~y(A(g(this)),A(p(b)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(a,c,u){a("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/global"),p=a("../internals/function-call"),g=a("../internals/function-uncurry-this"),A=a("../internals/is-pure"),m=a("../internals/descriptors"),y=a("../internals/symbol-constructor-detection"),b=a("../internals/fails"),I=a("../internals/has-own-property"),E=a("../internals/object-is-prototype-of"),B=a("../internals/an-object"),S=a("../internals/to-indexed-object"),_=a("../internals/to-property-key"),D=a("../internals/to-string"),T=a("../internals/create-property-descriptor"),F=a("../internals/object-create"),N=a("../internals/object-keys"),H=a("../internals/object-get-own-property-names"),W=a("../internals/object-get-own-property-names-external"),V=a("../internals/object-get-own-property-symbols"),te=a("../internals/object-get-own-property-descriptor"),ue=a("../internals/object-define-property"),fe=a("../internals/object-define-properties"),de=a("../internals/object-property-is-enumerable"),Ae=a("../internals/define-built-in"),we=a("../internals/define-built-in-accessor"),Z=a("../internals/shared"),ne=a("../internals/shared-key"),j=a("../internals/hidden-keys"),J=a("../internals/uid"),q=a("../internals/well-known-symbol"),z=a("../internals/well-known-symbol-wrapped"),X=a("../internals/well-known-symbol-define"),se=a("../internals/symbol-define-to-primitive"),oe=a("../internals/set-to-string-tag"),ye=a("../internals/internal-state"),ae=a("../internals/array-iteration").forEach,me=ne("hidden"),Fe="Symbol",_e="prototype",rt=ye.set,et=ye.getterFor(Fe),st=Object[_e],Ge=d.Symbol,Be=Ge&&Ge[_e],Te=d.RangeError,je=d.TypeError,lt=d.QObject,Me=te.f,Ke=ue.f,Rt=W.f,Ie=de.f,Re=g([].push),qe=Z("symbols"),pt=Z("op-symbols"),Lt=Z("wks"),Qe=!lt||!lt[_e]||!lt[_e].findChild,_t=function(Xe,Ye,ot){var yt=Me(st,Ye);yt&&delete st[Ye],Ke(Xe,Ye,ot),yt&&Xe!==st&&Ke(st,Ye,yt)},Ft=m&&b(function(){return F(Ke({},"a",{get:function(){return Ke(this,"a",{value:7}).a}})).a!==7})?_t:Ke,Ze=function(Xe,Ye){var ot=qe[Xe]=F(Be);return rt(ot,{type:Fe,tag:Xe,description:Ye}),m||(ot.description=Ye),ot},$e=function(Xe,Ye,ot){Xe===st&&$e(pt,Ye,ot),B(Xe);var yt=_(Ye);return B(ot),I(qe,yt)?(ot.enumerable?(I(Xe,me)&&Xe[me][yt]&&(Xe[me][yt]=!1),ot=F(ot,{enumerable:T(0,!1)})):(I(Xe,me)||Ke(Xe,me,T(1,{})),Xe[me][yt]=!0),Ft(Xe,yt,ot)):Ke(Xe,yt,ot)},nt=function(Xe,Ye){B(Xe);var ot=S(Ye),yt=N(ot).concat(mt(ot));return ae(yt,function(Mt){m&&!p(He,ot,Mt)||$e(Xe,Mt,ot[Mt])}),Xe},Ot=function(Xe,Ye){return Ye===void 0?F(Xe):nt(F(Xe),Ye)},He=function(Xe){var Ye=_(Xe),ot=p(Ie,this,Ye);return!(this===st&&I(qe,Ye)&&!I(pt,Ye))&&(!(ot||!I(this,Ye)||!I(qe,Ye)||I(this,me)&&this[me][Ye])||ot)},Je=function(Xe,Ye){var ot=S(Xe),yt=_(Ye);if(ot!==st||!I(qe,yt)||I(pt,yt)){var Mt=Me(ot,yt);return!Mt||!I(qe,yt)||I(ot,me)&&ot[me][yt]||(Mt.enumerable=!0),Mt}},tt=function(Xe){var Ye=Rt(S(Xe)),ot=[];return ae(Ye,function(yt){I(qe,yt)||I(j,yt)||Re(ot,yt)}),ot},mt=function(Xe){var Ye=Xe===st,ot=Rt(Ye?pt:S(Xe)),yt=[];return ae(ot,function(Mt){!I(qe,Mt)||Ye&&!I(st,Mt)||Re(yt,qe[Mt])}),yt};y||(Ge=function(){if(E(Be,this))throw new je("Symbol is not a constructor");var Xe=arguments.length&&arguments[0]!==void 0?D(arguments[0]):void 0,Ye=J(Xe),ot=function(yt){this===st&&p(ot,pt,yt),I(this,me)&&I(this[me],Ye)&&(this[me][Ye]=!1);var Mt=T(1,yt);try{Ft(this,Ye,Mt)}catch(cr){if(!(cr instanceof Te))throw cr;_t(this,Ye,Mt)}};return m&&Qe&&Ft(st,Ye,{configurable:!0,set:ot}),Ze(Ye,Xe)},Ae(Be=Ge[_e],"toString",function(){return et(this).tag}),Ae(Ge,"withoutSetter",function(Xe){return Ze(J(Xe),Xe)}),de.f=He,ue.f=$e,fe.f=nt,te.f=Je,H.f=W.f=tt,V.f=mt,z.f=function(Xe){return Ze(q(Xe),Xe)},m&&(we(Be,"description",{configurable:!0,get:function(){return et(this).description}}),A||Ae(st,"propertyIsEnumerable",He,{unsafe:!0}))),h({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:Ge}),ae(N(Lt),function(Xe){X(Xe)}),h({target:Fe,stat:!0,forced:!y},{useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),h({target:"Object",stat:!0,forced:!y,sham:!m},{create:Ot,defineProperty:$e,defineProperties:nt,getOwnPropertyDescriptor:Je}),h({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:tt}),se(),oe(Ge,Fe),j[me]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/get-built-in"),p=a("../internals/has-own-property"),g=a("../internals/to-string"),A=a("../internals/shared"),m=a("../internals/symbol-registry-detection"),y=A("string-to-symbol-registry"),b=A("symbol-to-string-registry");h({target:"Symbol",stat:!0,forced:!m},{for:function(I){var E=g(I);if(p(y,E))return y[E];var B=d("Symbol")(E);return y[E]=B,b[B]=E,B}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(a,c,u){a("../modules/es.symbol.constructor"),a("../modules/es.symbol.for"),a("../modules/es.symbol.key-for"),a("../modules/es.json.stringify"),a("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(a,c,u){var h=a("../internals/export"),d=a("../internals/has-own-property"),p=a("../internals/is-symbol"),g=a("../internals/try-to-string"),A=a("../internals/shared"),m=a("../internals/symbol-registry-detection"),y=A("symbol-to-string-registry");h({target:"Symbol",stat:!0,forced:!m},{keyFor:function(b){if(!p(b))throw new TypeError(g(b)+" is not a symbol");if(d(y,b))return y[b]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(a,c,u){function h(F){return Array.isArray?Array.isArray(F):T(F)==="[object Array]"}function d(F){return typeof F=="boolean"}function p(F){return F===null}function g(F){return F==null}function A(F){return typeof F=="number"}function m(F){return typeof F=="string"}function y(F){return typeof F=="symbol"}function b(F){return F===void 0}function I(F){return T(F)==="[object RegExp]"}function E(F){return typeof F=="object"&&F!==null}function B(F){return T(F)==="[object Date]"}function S(F){return T(F)==="[object Error]"||F instanceof Error}function _(F){return typeof F=="function"}function D(F){return F===null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||typeof F=="symbol"||F===void 0}function T(F){return Object.prototype.toString.call(F)}u.isArray=h,u.isBoolean=d,u.isNull=p,u.isNullOrUndefined=g,u.isNumber=A,u.isString=m,u.isSymbol=y,u.isUndefined=b,u.isRegExp=I,u.isObject=E,u.isDate=B,u.isError=S,u.isFunction=_,u.isPrimitive=D,u.isBuffer=a("buffer").Buffer.isBuffer},{buffer:220}],384:[function(a,c,u){(function(h){(function(){var d=a("elliptic"),p=a("bn.js");c.exports=function(y){return new A(y)};var g={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function A(y){this.curveType=g[y],this.curveType||(this.curveType={name:y}),this.curve=new d.ec(this.curveType.name),this.keys=void 0}function m(y,b,I){Array.isArray(y)||(y=y.toArray());var E=new h(y);if(I&&E.lengthS?B=(E==="rmd160"?new m:y(E)).update(B).digest():B.lengthA?b=y(b):b.length=z?q:""+Array(z+1-se.length).join(X)+q},te={s:V,z:function(q){var z=-q.utcOffset(),X=Math.abs(z),se=Math.floor(X/60),oe=X%60;return(z<=0?"+":"-")+V(se,2,"0")+":"+V(oe,2,"0")},m:function q(z,X){if(z.date()1)return q(ae[0])}else{var me=z.name;fe[me]=z,oe=me}return!se&&oe&&(ue=oe),oe||!se&&ue},Z=function(q,z){if(Ae(q))return q.clone();var X=typeof z=="object"?z:{};return X.date=q,X.args=arguments,new j(X)},ne=te;ne.l=we,ne.i=Ae,ne.w=function(q,z){return Z(q,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var j=function(){function q(X){this.$L=we(X.locale,null,!0),this.parse(X),this.$x=this.$x||X.x||{},this[de]=!0}var z=q.prototype;return z.parse=function(X){this.$d=function(se){var oe=se.date,ye=se.utc;if(oe===null)return new Date(NaN);if(ne.u(oe))return new Date;if(oe instanceof Date)return new Date(oe);if(typeof oe=="string"&&!/Z$/i.test(oe)){var ae=oe.match(N);if(ae){var me=ae[2]-1||0,Fe=(ae[7]||"0").substring(0,3);return ye?new Date(Date.UTC(ae[1],me,ae[3]||1,ae[4]||0,ae[5]||0,ae[6]||0,Fe)):new Date(ae[1],me,ae[3]||1,ae[4]||0,ae[5]||0,ae[6]||0,Fe)}}return new Date(oe)}(X),this.init()},z.init=function(){var X=this.$d;this.$y=X.getFullYear(),this.$M=X.getMonth(),this.$D=X.getDate(),this.$W=X.getDay(),this.$H=X.getHours(),this.$m=X.getMinutes(),this.$s=X.getSeconds(),this.$ms=X.getMilliseconds()},z.$utils=function(){return ne},z.isValid=function(){return this.$d.toString()!==F},z.isSame=function(X,se){var oe=Z(X);return this.startOf(se)<=oe&&oe<=this.endOf(se)},z.isAfter=function(X,se){return Z(X)68?1900:2e3)},E=function(F){return function(N){this[F]=+N}},B=[/[+-]\d\d:?(\d\d)?|Z/,function(F){(this.zone||(this.zone={})).offset=function(N){if(!N||N==="Z")return 0;var H=N.match(/([+-]|\d\d)/g),W=60*H[1]+(+H[2]||0);return W===0?0:H[0]==="+"?-W:W}(F)}],S=function(F){var N=b[F];return N&&(N.indexOf?N:N.s.concat(N.f))},_=function(F,N){var H,W=b.meridiem;if(W){for(var V=1;V<=24;V+=1)if(F.indexOf(W(V,0,N))>-1){H=V>12;break}}else H=F===(N?"pm":"PM");return H},D={A:[y,function(F){this.afternoon=_(F,!1)}],a:[y,function(F){this.afternoon=_(F,!0)}],S:[/\d/,function(F){this.milliseconds=100*+F}],SS:[A,function(F){this.milliseconds=10*+F}],SSS:[/\d{3}/,function(F){this.milliseconds=+F}],s:[m,E("seconds")],ss:[m,E("seconds")],m:[m,E("minutes")],mm:[m,E("minutes")],H:[m,E("hours")],h:[m,E("hours")],HH:[m,E("hours")],hh:[m,E("hours")],D:[m,E("day")],DD:[A,E("day")],Do:[y,function(F){var N=b.ordinal,H=F.match(/\d+/);if(this.day=H[0],N)for(var W=1;W<=31;W+=1)N(W).replace(/\[|\]/g,"")===F&&(this.day=W)}],M:[m,E("month")],MM:[A,E("month")],MMM:[y,function(F){var N=S("months"),H=(S("monthsShort")||N.map(function(W){return W.slice(0,3)})).indexOf(F)+1;if(H<1)throw new Error;this.month=H%12||H}],MMMM:[y,function(F){var N=S("months").indexOf(F)+1;if(N<1)throw new Error;this.month=N%12||N}],Y:[/[+-]?\d+/,E("year")],YY:[A,function(F){this.year=I(F)}],YYYY:[/\d{4}/,E("year")],Z:B,ZZ:B};function T(F){var N,H;N=F,H=b&&b.formats;for(var W=(F=N.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(we,Z,ne){var j=ne&&ne.toUpperCase();return Z||H[ne]||p[ne]||H[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(J,q,z){return q||z.slice(1)})})).match(g),V=W.length,te=0;te-1)return new Date((se==="X"?1e3:1)*X);var ye=T(se)(X),ae=ye.year,me=ye.month,Fe=ye.day,_e=ye.hours,rt=ye.minutes,et=ye.seconds,st=ye.milliseconds,Ge=ye.zone,Be=new Date,Te=Fe||(ae||me?1:Be.getDate()),je=ae||Be.getFullYear(),lt=0;ae&&!me||(lt=me>0?me-1:Be.getMonth());var Me=_e||0,Ke=rt||0,Rt=et||0,Ie=st||0;return Ge?new Date(Date.UTC(je,lt,Te,Me,Ke,Rt,Ie+60*Ge.offset*1e3)):oe?new Date(Date.UTC(je,lt,Te,Me,Ke,Rt,Ie)):new Date(je,lt,Te,Me,Ke,Rt,Ie)}catch{return new Date("")}}(ue,Ae,fe),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),ne&&ue!=this.format(Ae)&&(this.$d=new Date("")),b={}}else if(Ae instanceof Array)for(var J=Ae.length,q=1;q<=J;q+=1){de[1]=Ae[q-1];var z=H.apply(this,de);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}q===J&&(this.$d=new Date(""))}else V.call(this,te)}}},typeof u=="object"&&c!==void 0?c.exports=d():(h=typeof globalThis<"u"?globalThis:h||self).dayjs_plugin_customParseFormat=d()},{}],393:[function(a,c,u){var h,d;h=void 0,d=function(){var p="minute",g=/[+-]\d\d(?::?\d\d)?/g,A=/([+-]|\d\d)/g;return function(m,y,b){var I=y.prototype;b.utc=function(F){return new y({date:F,utc:!0,args:arguments})},I.utc=function(F){var N=b(this.toDate(),{locale:this.$L,utc:!0});return F?N.add(this.utcOffset(),p):N},I.local=function(){return b(this.toDate(),{locale:this.$L,utc:!1})};var E=I.parse;I.parse=function(F){F.utc&&(this.$u=!0),this.$utils().u(F.$offset)||(this.$offset=F.$offset),E.call(this,F)};var B=I.init;I.init=function(){if(this.$u){var F=this.$d;this.$y=F.getUTCFullYear(),this.$M=F.getUTCMonth(),this.$D=F.getUTCDate(),this.$W=F.getUTCDay(),this.$H=F.getUTCHours(),this.$m=F.getUTCMinutes(),this.$s=F.getUTCSeconds(),this.$ms=F.getUTCMilliseconds()}else B.call(this)};var S=I.utcOffset;I.utcOffset=function(F,N){var H=this.$utils().u;if(H(F))return this.$u?0:H(this.$offset)?S.call(this):this.$offset;if(typeof F=="string"&&(F=function(ue){ue===void 0&&(ue="");var fe=ue.match(g);if(!fe)return null;var de=(""+fe[0]).match(A)||["-",0,0],Ae=de[0],we=60*+de[1]+ +de[2];return we===0?0:Ae==="+"?we:-we}(F))===null)return this;var W=Math.abs(F)<=16?60*F:F,V=this;if(N)return V.$offset=W,V.$u=F===0,V;if(F!==0){var te=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(V=this.local().add(W+te,p)).$offset=W,V.$x.$localOffset=te}else V=this.utc();return V};var _=I.format;I.format=function(F){var N=F||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return _.call(this,N)},I.valueOf=function(){var F=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*F},I.isUTC=function(){return!!this.$u},I.toISOString=function(){return this.toDate().toISOString()},I.toString=function(){return this.toDate().toUTCString()};var D=I.toDate;I.toDate=function(F){return F==="s"&&this.$offset?b(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():D.call(this)};var T=I.diff;I.diff=function(F,N,H){if(F&&this.$u===F.$u)return T.call(this,F,N,H);var W=this.local(),V=b(F).local();return T.call(W,V,N,H)}}},typeof u=="object"&&c!==void 0?c.exports=d():(h=typeof globalThis<"u"?globalThis:h||self).dayjs_plugin_utc=d()},{}],394:[function(a,c,u){u.utils=a("./des/utils"),u.Cipher=a("./des/cipher"),u.DES=a("./des/des"),u.CBC=a("./des/cbc"),u.EDE=a("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(a,c,u){var h=a("minimalistic-assert"),d=a("inherits"),p={};function g(m){h.equal(m.length,8,"Invalid IV length"),this.iv=new Array(8);for(var y=0;y0;m--)g+=this._buffer(p,g),A+=this._flushBuffer(y,A);return g+=this._buffer(p,g),y},d.prototype.final=function(p){var g,A;return p&&(g=this.update(p)),A=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),g?g.concat(A):A},d.prototype._pad=function(p,g){if(g===0)return!1;for(;g>>1];E=p.r28shl(E,_),B=p.r28shl(B,_),p.pc2(E,B,b.keys,S)}},m.prototype._update=function(b,I,E,B){var S=this._desState,_=p.readUInt32BE(b,I),D=p.readUInt32BE(b,I+4);p.ip(_,D,S.tmp,0),_=S.tmp[0],D=S.tmp[1],this.type==="encrypt"?this._encrypt(S,_,D,S.tmp,0):this._decrypt(S,_,D,S.tmp,0),_=S.tmp[0],D=S.tmp[1],p.writeUInt32BE(E,_,B),p.writeUInt32BE(E,D,B+4)},m.prototype._pad=function(b,I){if(this.padding===!1)return!1;for(var E=b.length-I,B=I;B>>0,_=W}p.rip(D,_,B,S)},m.prototype._decrypt=function(b,I,E,B,S){for(var _=E,D=I,T=b.keys.length-2;T>=0;T-=2){var F=b.keys[T],N=b.keys[T+1];p.expand(_,b.tmp,0),F^=b.tmp[0],N^=b.tmp[1];var H=p.substitute(F,N),W=_;_=(D^p.permute(H))>>>0,D=W}p.rip(_,D,B,S)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(a,c,u){var h=a("minimalistic-assert"),d=a("inherits"),p=a("./cipher"),g=a("./des");function A(y,b){h.equal(b.length,24,"Invalid key length");var I=b.slice(0,8),E=b.slice(8,16),B=b.slice(16,24);this.ciphers=y==="encrypt"?[g.create({type:"encrypt",key:I}),g.create({type:"decrypt",key:E}),g.create({type:"encrypt",key:B})]:[g.create({type:"decrypt",key:B}),g.create({type:"encrypt",key:E}),g.create({type:"decrypt",key:I})]}function m(y){p.call(this,y);var b=new A(this.type,this.options.key);this._edeState=b}d(m,p),c.exports=m,m.create=function(y){return new m(y)},m.prototype._update=function(y,b,I,E){var B=this._edeState;B.ciphers[0]._update(y,b,I,E),B.ciphers[1]._update(I,E,I,E),B.ciphers[2]._update(I,E,I,E)},m.prototype._pad=g.prototype._pad,m.prototype._unpad=g.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(a,c,u){u.readUInt32BE=function(g,A){return(g[0+A]<<24|g[1+A]<<16|g[2+A]<<8|g[3+A])>>>0},u.writeUInt32BE=function(g,A,m){g[0+m]=A>>>24,g[1+m]=A>>>16&255,g[2+m]=A>>>8&255,g[3+m]=255&A},u.ip=function(g,A,m,y){for(var b=0,I=0,E=6;E>=0;E-=2){for(var B=0;B<=24;B+=8)b<<=1,b|=A>>>B+E&1;for(B=0;B<=24;B+=8)b<<=1,b|=g>>>B+E&1}for(E=6;E>=0;E-=2){for(B=1;B<=25;B+=8)I<<=1,I|=A>>>B+E&1;for(B=1;B<=25;B+=8)I<<=1,I|=g>>>B+E&1}m[y+0]=b>>>0,m[y+1]=I>>>0},u.rip=function(g,A,m,y){for(var b=0,I=0,E=0;E<4;E++)for(var B=24;B>=0;B-=8)b<<=1,b|=A>>>B+E&1,b<<=1,b|=g>>>B+E&1;for(E=4;E<8;E++)for(B=24;B>=0;B-=8)I<<=1,I|=A>>>B+E&1,I<<=1,I|=g>>>B+E&1;m[y+0]=b>>>0,m[y+1]=I>>>0},u.pc1=function(g,A,m,y){for(var b=0,I=0,E=7;E>=5;E--){for(var B=0;B<=24;B+=8)b<<=1,b|=A>>B+E&1;for(B=0;B<=24;B+=8)b<<=1,b|=g>>B+E&1}for(B=0;B<=24;B+=8)b<<=1,b|=A>>B+E&1;for(E=1;E<=3;E++){for(B=0;B<=24;B+=8)I<<=1,I|=A>>B+E&1;for(B=0;B<=24;B+=8)I<<=1,I|=g>>B+E&1}for(B=0;B<=24;B+=8)I<<=1,I|=g>>B+E&1;m[y+0]=b>>>0,m[y+1]=I>>>0},u.r28shl=function(g,A){return g<>>28-A};var h=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];u.pc2=function(g,A,m,y){for(var b=0,I=0,E=h.length>>>1,B=0;B>>h[B]&1;for(B=E;B>>h[B]&1;m[y+0]=b>>>0,m[y+1]=I>>>0},u.expand=function(g,A,m){var y=0,b=0;y=(1&g)<<5|g>>>27;for(var I=23;I>=15;I-=4)y<<=6,y|=g>>>I&63;for(I=11;I>=3;I-=4)b|=g>>>I&63,b<<=6;b|=(31&g)<<1|g>>>31,A[m+0]=y>>>0,A[m+1]=b>>>0};var d=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];u.substitute=function(g,A){for(var m=0,y=0;y<4;y++)m<<=4,m|=d[64*y+(g>>>18-6*y&63)];for(y=0;y<4;y++)m<<=4,m|=d[256+64*y+(A>>>18-6*y&63)];return m>>>0};var p=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];u.permute=function(g){for(var A=0,m=0;m>>p[m]&1;return A>>>0},u.padSplit=function(g,A,m){for(var y=g.toString(2);y.lengthN;)W.ishrn(1);if(W.isEven()&&W.iadd(A),W.testn(1)||W.iadd(m),H.cmp(m)){if(!H.cmp(y))for(;W.mod(b).cmp(I);)W.iadd(B)}else for(;W.mod(p).cmp(E);)W.iadd(B);if(D(V=W.shrn(1))&&D(W)&&T(V)&&T(W)&&g.test(V)&&g.test(W))return W}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(a,c,u){c.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(a,c,u){arguments[4][184][0].apply(u,arguments)},{buffer:188,dup:184}],405:[function(a,c,u){var h=u;h.version=a("../package.json").version,h.utils=a("./elliptic/utils"),h.rand=a("brorand"),h.curve=a("./elliptic/curve"),h.curves=a("./elliptic/curves"),h.ec=a("./elliptic/ec"),h.eddsa=a("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(a,c,u){var h=a("bn.js"),d=a("../utils"),p=d.getNAF,g=d.getJSF,A=d.assert;function m(b,I){this.type=b,this.p=new h(I.p,16),this.red=I.prime?h.red(I.prime):h.mont(this.p),this.zero=new h(0).toRed(this.red),this.one=new h(1).toRed(this.red),this.two=new h(2).toRed(this.red),this.n=I.n&&new h(I.n,16),this.g=I.g&&this.pointFromJSON(I.g,I.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var E=this.n&&this.p.div(this.n);!E||E.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function y(b,I){this.curve=b,this.type=I,this.precomputed=null}c.exports=m,m.prototype.point=function(){throw new Error("Not implemented")},m.prototype.validate=function(){throw new Error("Not implemented")},m.prototype._fixedNafMul=function(b,I){A(b.precomputed);var E=b._getDoubles(),B=p(I,1,this._bitLength),S=(1<=_;F--)D=(D<<1)+B[F];T.push(D)}for(var N=this.jpoint(null,null,null),H=this.jpoint(null,null,null),W=S;W>0;W--){for(_=0;_=0;T--){for(var F=0;T>=0&&_[T]===0;T--)F++;if(T>=0&&F++,D=D.dblp(F),T<0)break;var N=_[T];A(N!==0),D=b.type==="affine"?N>0?D.mixedAdd(S[N-1>>1]):D.mixedAdd(S[-N-1>>1].neg()):N>0?D.add(S[N-1>>1]):D.add(S[-N-1>>1].neg())}return b.type==="affine"?D.toP():D},m.prototype._wnafMulAdd=function(b,I,E,B,S){var _,D,T,F=this._wnafT1,N=this._wnafT2,H=this._wnafT3,W=0;for(_=0;_=1;_-=2){var te=_-1,ue=_;if(F[te]===1&&F[ue]===1){var fe=[I[te],null,null,I[ue]];I[te].y.cmp(I[ue].y)===0?(fe[1]=I[te].add(I[ue]),fe[2]=I[te].toJ().mixedAdd(I[ue].neg())):I[te].y.cmp(I[ue].y.redNeg())===0?(fe[1]=I[te].toJ().mixedAdd(I[ue]),fe[2]=I[te].add(I[ue].neg())):(fe[1]=I[te].toJ().mixedAdd(I[ue]),fe[2]=I[te].toJ().mixedAdd(I[ue].neg()));var de=[-3,-1,-5,-7,0,7,5,1,3],Ae=g(E[te],E[ue]);for(W=Math.max(Ae[0].length,W),H[te]=new Array(W),H[ue]=new Array(W),D=0;D=0;_--){for(var J=0;_>=0;){var q=!0;for(D=0;D=0&&J++,ne=ne.dblp(J),_<0)break;for(D=0;D0?T=N[D][z-1>>1]:z<0&&(T=N[D][-z-1>>1].neg()),ne=T.type==="affine"?ne.mixedAdd(T):ne.add(T))}}for(_=0;_=Math.ceil((b.bitLength()+1)/I.step)},y.prototype._getDoubles=function(b,I){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var E=[this],B=this,S=0;S":""},y.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},y.prototype._extDbl=function(){var b=this.x.redSqr(),I=this.y.redSqr(),E=this.z.redSqr();E=E.redIAdd(E);var B=this.curve._mulA(b),S=this.x.redAdd(this.y).redSqr().redISub(b).redISub(I),_=B.redAdd(I),D=_.redSub(E),T=B.redSub(I),F=S.redMul(D),N=_.redMul(T),H=S.redMul(T),W=D.redMul(_);return this.curve.point(F,N,W,H)},y.prototype._projDbl=function(){var b,I,E,B,S,_,D=this.x.redAdd(this.y).redSqr(),T=this.x.redSqr(),F=this.y.redSqr();if(this.curve.twisted){var N=(B=this.curve._mulA(T)).redAdd(F);this.zOne?(b=D.redSub(T).redSub(F).redMul(N.redSub(this.curve.two)),I=N.redMul(B.redSub(F)),E=N.redSqr().redSub(N).redSub(N)):(S=this.z.redSqr(),_=N.redSub(S).redISub(S),b=D.redSub(T).redISub(F).redMul(_),I=N.redMul(B.redSub(F)),E=N.redMul(_))}else B=T.redAdd(F),S=this.curve._mulC(this.z).redSqr(),_=B.redSub(S).redSub(S),b=this.curve._mulC(D.redISub(B)).redMul(_),I=this.curve._mulC(B).redMul(T.redISub(F)),E=B.redMul(_);return this.curve.point(b,I,E)},y.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},y.prototype._extAdd=function(b){var I=this.y.redSub(this.x).redMul(b.y.redSub(b.x)),E=this.y.redAdd(this.x).redMul(b.y.redAdd(b.x)),B=this.t.redMul(this.curve.dd).redMul(b.t),S=this.z.redMul(b.z.redAdd(b.z)),_=E.redSub(I),D=S.redSub(B),T=S.redAdd(B),F=E.redAdd(I),N=_.redMul(D),H=T.redMul(F),W=_.redMul(F),V=D.redMul(T);return this.curve.point(N,H,V,W)},y.prototype._projAdd=function(b){var I,E,B=this.z.redMul(b.z),S=B.redSqr(),_=this.x.redMul(b.x),D=this.y.redMul(b.y),T=this.curve.d.redMul(_).redMul(D),F=S.redSub(T),N=S.redAdd(T),H=this.x.redAdd(this.y).redMul(b.x.redAdd(b.y)).redISub(_).redISub(D),W=B.redMul(F).redMul(H);return this.curve.twisted?(I=B.redMul(N).redMul(D.redSub(this.curve._mulA(_))),E=F.redMul(N)):(I=B.redMul(N).redMul(D.redSub(_)),E=this.curve._mulC(F).redMul(N)),this.curve.point(W,I,E)},y.prototype.add=function(b){return this.isInfinity()?b:b.isInfinity()?this:this.curve.extended?this._extAdd(b):this._projAdd(b)},y.prototype.mul=function(b){return this._hasDoubles(b)?this.curve._fixedNafMul(this,b):this.curve._wnafMul(this,b)},y.prototype.mulAdd=function(b,I,E){return this.curve._wnafMulAdd(1,[this,I],[b,E],2,!1)},y.prototype.jmulAdd=function(b,I,E){return this.curve._wnafMulAdd(1,[this,I],[b,E],2,!0)},y.prototype.normalize=function(){if(this.zOne)return this;var b=this.z.redInvm();return this.x=this.x.redMul(b),this.y=this.y.redMul(b),this.t&&(this.t=this.t.redMul(b)),this.z=this.curve.one,this.zOne=!0,this},y.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},y.prototype.getX=function(){return this.normalize(),this.x.fromRed()},y.prototype.getY=function(){return this.normalize(),this.y.fromRed()},y.prototype.eq=function(b){return this===b||this.getX().cmp(b.getX())===0&&this.getY().cmp(b.getY())===0},y.prototype.eqXToP=function(b){var I=b.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(I)===0)return!0;for(var E=b.clone(),B=this.curve.redN.redMul(this.z);;){if(E.iadd(this.curve.n),E.cmp(this.curve.p)>=0)return!1;if(I.redIAdd(B),this.x.cmp(I)===0)return!0}},y.prototype.toP=y.prototype.normalize,y.prototype.mixedAdd=y.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(a,c,u){var h=u;h.base=a("./base"),h.short=a("./short"),h.mont=a("./mont"),h.edwards=a("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(a,c,u){var h=a("bn.js"),d=a("inherits"),p=a("./base"),g=a("../utils");function A(y){p.call(this,"mont",y),this.a=new h(y.a,16).toRed(this.red),this.b=new h(y.b,16).toRed(this.red),this.i4=new h(4).toRed(this.red).redInvm(),this.two=new h(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function m(y,b,I){p.BasePoint.call(this,y,"projective"),b===null&&I===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new h(b,16),this.z=new h(I,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}d(A,p),c.exports=A,A.prototype.validate=function(y){var b=y.normalize().x,I=b.redSqr(),E=I.redMul(b).redAdd(I.redMul(this.a)).redAdd(b);return E.redSqrt().redSqr().cmp(E)===0},d(m,p.BasePoint),A.prototype.decodePoint=function(y,b){return this.point(g.toArray(y,b),1)},A.prototype.point=function(y,b){return new m(this,y,b)},A.prototype.pointFromJSON=function(y){return m.fromJSON(this,y)},m.prototype.precompute=function(){},m.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},m.fromJSON=function(y,b){return new m(y,b[0],b[1]||y.one)},m.prototype.inspect=function(){return this.isInfinity()?"":""},m.prototype.isInfinity=function(){return this.z.cmpn(0)===0},m.prototype.dbl=function(){var y=this.x.redAdd(this.z).redSqr(),b=this.x.redSub(this.z).redSqr(),I=y.redSub(b),E=y.redMul(b),B=I.redMul(b.redAdd(this.curve.a24.redMul(I)));return this.curve.point(E,B)},m.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},m.prototype.diffAdd=function(y,b){var I=this.x.redAdd(this.z),E=this.x.redSub(this.z),B=y.x.redAdd(y.z),S=y.x.redSub(y.z).redMul(I),_=B.redMul(E),D=b.z.redMul(S.redAdd(_).redSqr()),T=b.x.redMul(S.redISub(_).redSqr());return this.curve.point(D,T)},m.prototype.mul=function(y){for(var b=y.clone(),I=this,E=this.curve.point(null,null),B=this,S=[];b.cmpn(0)!==0;b.iushrn(1))S.push(b.andln(1));for(var _=S.length-1;_>=0;_--)S[_]===0?(I=I.diffAdd(E,B),E=E.dbl()):(E=I.diffAdd(E,B),I=I.dbl());return E},m.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},m.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},m.prototype.eq=function(y){return this.getX().cmp(y.getX())===0},m.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},m.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(a,c,u){var h=a("../utils"),d=a("bn.js"),p=a("inherits"),g=a("./base"),A=h.assert;function m(I){g.call(this,"short",I),this.a=new d(I.a,16).toRed(this.red),this.b=new d(I.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(I),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function y(I,E,B,S){g.BasePoint.call(this,I,"affine"),E===null&&B===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new d(E,16),this.y=new d(B,16),S&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function b(I,E,B,S){g.BasePoint.call(this,I,"jacobian"),E===null&&B===null&&S===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new d(0)):(this.x=new d(E,16),this.y=new d(B,16),this.z=new d(S,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}p(m,g),c.exports=m,m.prototype._getEndomorphism=function(I){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var E,B;if(I.beta)E=new d(I.beta,16).toRed(this.red);else{var S=this._getEndoRoots(this.p);E=(E=S[0].cmp(S[1])<0?S[0]:S[1]).toRed(this.red)}if(I.lambda)B=new d(I.lambda,16);else{var _=this._getEndoRoots(this.n);this.g.mul(_[0]).x.cmp(this.g.x.redMul(E))===0?B=_[0]:(B=_[1],A(this.g.mul(B).x.cmp(this.g.x.redMul(E))===0))}return{beta:E,lambda:B,basis:I.basis?I.basis.map(function(D){return{a:new d(D.a,16),b:new d(D.b,16)}}):this._getEndoBasis(B)}}},m.prototype._getEndoRoots=function(I){var E=I===this.p?this.red:d.mont(I),B=new d(2).toRed(E).redInvm(),S=B.redNeg(),_=new d(3).toRed(E).redNeg().redSqrt().redMul(B);return[S.redAdd(_).fromRed(),S.redSub(_).fromRed()]},m.prototype._getEndoBasis=function(I){for(var E,B,S,_,D,T,F,N,H,W=this.n.ushrn(Math.floor(this.n.bitLength()/2)),V=I,te=this.n.clone(),ue=new d(1),fe=new d(0),de=new d(0),Ae=new d(1),we=0;V.cmpn(0)!==0;){var Z=te.div(V);N=te.sub(Z.mul(V)),H=de.sub(Z.mul(ue));var ne=Ae.sub(Z.mul(fe));if(!S&&N.cmp(W)<0)E=F.neg(),B=ue,S=N.neg(),_=H;else if(S&&++we==2)break;F=N,te=V,V=N,de=ue,ue=H,Ae=fe,fe=ne}D=N.neg(),T=H;var j=S.sqr().add(_.sqr());return D.sqr().add(T.sqr()).cmp(j)>=0&&(D=E,T=B),S.negative&&(S=S.neg(),_=_.neg()),D.negative&&(D=D.neg(),T=T.neg()),[{a:S,b:_},{a:D,b:T}]},m.prototype._endoSplit=function(I){var E=this.endo.basis,B=E[0],S=E[1],_=S.b.mul(I).divRound(this.n),D=B.b.neg().mul(I).divRound(this.n),T=_.mul(B.a),F=D.mul(S.a),N=_.mul(B.b),H=D.mul(S.b);return{k1:I.sub(T).sub(F),k2:N.add(H).neg()}},m.prototype.pointFromX=function(I,E){(I=new d(I,16)).red||(I=I.toRed(this.red));var B=I.redSqr().redMul(I).redIAdd(I.redMul(this.a)).redIAdd(this.b),S=B.redSqrt();if(S.redSqr().redSub(B).cmp(this.zero)!==0)throw new Error("invalid point");var _=S.fromRed().isOdd();return(E&&!_||!E&&_)&&(S=S.redNeg()),this.point(I,S)},m.prototype.validate=function(I){if(I.inf)return!0;var E=I.x,B=I.y,S=this.a.redMul(E),_=E.redSqr().redMul(E).redIAdd(S).redIAdd(this.b);return B.redSqr().redISub(_).cmpn(0)===0},m.prototype._endoWnafMulAdd=function(I,E,B){for(var S=this._endoWnafT1,_=this._endoWnafT2,D=0;D":""},y.prototype.isInfinity=function(){return this.inf},y.prototype.add=function(I){if(this.inf)return I;if(I.inf)return this;if(this.eq(I))return this.dbl();if(this.neg().eq(I))return this.curve.point(null,null);if(this.x.cmp(I.x)===0)return this.curve.point(null,null);var E=this.y.redSub(I.y);E.cmpn(0)!==0&&(E=E.redMul(this.x.redSub(I.x).redInvm()));var B=E.redSqr().redISub(this.x).redISub(I.x),S=E.redMul(this.x.redSub(B)).redISub(this.y);return this.curve.point(B,S)},y.prototype.dbl=function(){if(this.inf)return this;var I=this.y.redAdd(this.y);if(I.cmpn(0)===0)return this.curve.point(null,null);var E=this.curve.a,B=this.x.redSqr(),S=I.redInvm(),_=B.redAdd(B).redIAdd(B).redIAdd(E).redMul(S),D=_.redSqr().redISub(this.x.redAdd(this.x)),T=_.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,T)},y.prototype.getX=function(){return this.x.fromRed()},y.prototype.getY=function(){return this.y.fromRed()},y.prototype.mul=function(I){return I=new d(I,16),this.isInfinity()?this:this._hasDoubles(I)?this.curve._fixedNafMul(this,I):this.curve.endo?this.curve._endoWnafMulAdd([this],[I]):this.curve._wnafMul(this,I)},y.prototype.mulAdd=function(I,E,B){var S=[this,E],_=[I,B];return this.curve.endo?this.curve._endoWnafMulAdd(S,_):this.curve._wnafMulAdd(1,S,_,2)},y.prototype.jmulAdd=function(I,E,B){var S=[this,E],_=[I,B];return this.curve.endo?this.curve._endoWnafMulAdd(S,_,!0):this.curve._wnafMulAdd(1,S,_,2,!0)},y.prototype.eq=function(I){return this===I||this.inf===I.inf&&(this.inf||this.x.cmp(I.x)===0&&this.y.cmp(I.y)===0)},y.prototype.neg=function(I){if(this.inf)return this;var E=this.curve.point(this.x,this.y.redNeg());if(I&&this.precomputed){var B=this.precomputed,S=function(_){return _.neg()};E.precomputed={naf:B.naf&&{wnd:B.naf.wnd,points:B.naf.points.map(S)},doubles:B.doubles&&{step:B.doubles.step,points:B.doubles.points.map(S)}}}return E},y.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},p(b,g.BasePoint),m.prototype.jpoint=function(I,E,B){return new b(this,I,E,B)},b.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var I=this.z.redInvm(),E=I.redSqr(),B=this.x.redMul(E),S=this.y.redMul(E).redMul(I);return this.curve.point(B,S)},b.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},b.prototype.add=function(I){if(this.isInfinity())return I;if(I.isInfinity())return this;var E=I.z.redSqr(),B=this.z.redSqr(),S=this.x.redMul(E),_=I.x.redMul(B),D=this.y.redMul(E.redMul(I.z)),T=I.y.redMul(B.redMul(this.z)),F=S.redSub(_),N=D.redSub(T);if(F.cmpn(0)===0)return N.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var H=F.redSqr(),W=H.redMul(F),V=S.redMul(H),te=N.redSqr().redIAdd(W).redISub(V).redISub(V),ue=N.redMul(V.redISub(te)).redISub(D.redMul(W)),fe=this.z.redMul(I.z).redMul(F);return this.curve.jpoint(te,ue,fe)},b.prototype.mixedAdd=function(I){if(this.isInfinity())return I.toJ();if(I.isInfinity())return this;var E=this.z.redSqr(),B=this.x,S=I.x.redMul(E),_=this.y,D=I.y.redMul(E).redMul(this.z),T=B.redSub(S),F=_.redSub(D);if(T.cmpn(0)===0)return F.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var N=T.redSqr(),H=N.redMul(T),W=B.redMul(N),V=F.redSqr().redIAdd(H).redISub(W).redISub(W),te=F.redMul(W.redISub(V)).redISub(_.redMul(H)),ue=this.z.redMul(T);return this.curve.jpoint(V,te,ue)},b.prototype.dblp=function(I){if(I===0)return this;if(this.isInfinity())return this;if(!I)return this.dbl();var E;if(this.curve.zeroA||this.curve.threeA){var B=this;for(E=0;E=0)return!1;if(B.redIAdd(_),this.x.cmp(B)===0)return!0}},b.prototype.inspect=function(){return this.isInfinity()?"":""},b.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(a,c,u){var h,d=u,p=a("hash.js"),g=a("./curve"),A=a("./utils").assert;function m(b){b.type==="short"?this.curve=new g.short(b):b.type==="edwards"?this.curve=new g.edwards(b):this.curve=new g.mont(b),this.g=this.curve.g,this.n=this.curve.n,this.hash=b.hash,A(this.g.validate(),"Invalid curve"),A(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function y(b,I){Object.defineProperty(d,b,{configurable:!0,enumerable:!0,get:function(){var E=new m(I);return Object.defineProperty(d,b,{configurable:!0,enumerable:!0,value:E}),E}})}d.PresetCurve=m,y("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:p.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),y("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:p.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),y("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:p.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),y("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:p.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),y("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:p.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),y("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:p.sha256,gRed:!1,g:["9"]}),y("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:p.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{h=a("./precomputed/secp256k1")}catch{h=void 0}y("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:p.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",h]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(a,c,u){var h=a("bn.js"),d=a("hmac-drbg"),p=a("../utils"),g=a("../curves"),A=a("brorand"),m=p.assert,y=a("./key"),b=a("./signature");function I(E){if(!(this instanceof I))return new I(E);typeof E=="string"&&(m(Object.prototype.hasOwnProperty.call(g,E),"Unknown curve "+E),E=g[E]),E instanceof g.PresetCurve&&(E={curve:E}),this.curve=E.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=E.curve.g,this.g.precompute(E.curve.n.bitLength()+1),this.hash=E.hash||E.curve.hash}c.exports=I,I.prototype.keyPair=function(E){return new y(this,E)},I.prototype.keyFromPrivate=function(E,B){return y.fromPrivate(this,E,B)},I.prototype.keyFromPublic=function(E,B){return y.fromPublic(this,E,B)},I.prototype.genKeyPair=function(E){E||(E={});for(var B=new d({hash:this.hash,pers:E.pers,persEnc:E.persEnc||"utf8",entropy:E.entropy||A(this.hash.hmacStrength),entropyEnc:E.entropy&&E.entropyEnc||"utf8",nonce:this.n.toArray()}),S=this.n.byteLength(),_=this.n.sub(new h(2));;){var D=new h(B.generate(S));if(!(D.cmp(_)>0))return D.iaddn(1),this.keyFromPrivate(D)}},I.prototype._truncateToN=function(E,B){var S=8*E.byteLength()-this.n.bitLength();return S>0&&(E=E.ushrn(S)),!B&&E.cmp(this.n)>=0?E.sub(this.n):E},I.prototype.sign=function(E,B,S,_){typeof S=="object"&&(_=S,S=null),_||(_={}),B=this.keyFromPrivate(B,S),E=this._truncateToN(new h(E,16));for(var D=this.n.byteLength(),T=B.getPrivate().toArray("be",D),F=E.toArray("be",D),N=new d({hash:this.hash,entropy:T,nonce:F,pers:_.pers,persEnc:_.persEnc||"utf8"}),H=this.n.sub(new h(1)),W=0;;W++){var V=_.k?_.k(W):new h(N.generate(this.n.byteLength()));if(!((V=this._truncateToN(V,!0)).cmpn(1)<=0||V.cmp(H)>=0)){var te=this.g.mul(V);if(!te.isInfinity()){var ue=te.getX(),fe=ue.umod(this.n);if(fe.cmpn(0)!==0){var de=V.invm(this.n).mul(fe.mul(B.getPrivate()).iadd(E));if((de=de.umod(this.n)).cmpn(0)!==0){var Ae=(te.getY().isOdd()?1:0)|(ue.cmp(fe)!==0?2:0);return _.canonical&&de.cmp(this.nh)>0&&(de=this.n.sub(de),Ae^=1),new b({r:fe,s:de,recoveryParam:Ae})}}}}}},I.prototype.verify=function(E,B,S,_){E=this._truncateToN(new h(E,16)),S=this.keyFromPublic(S,_);var D=(B=new b(B,"hex")).r,T=B.s;if(D.cmpn(1)<0||D.cmp(this.n)>=0||T.cmpn(1)<0||T.cmp(this.n)>=0)return!1;var F,N=T.invm(this.n),H=N.mul(E).umod(this.n),W=N.mul(D).umod(this.n);return this.curve._maxwellTrick?!(F=this.g.jmulAdd(H,S.getPublic(),W)).isInfinity()&&F.eqXToP(D):!(F=this.g.mulAdd(H,S.getPublic(),W)).isInfinity()&&F.getX().umod(this.n).cmp(D)===0},I.prototype.recoverPubKey=function(E,B,S,_){m((3&S)===S,"The recovery param is more than two bits"),B=new b(B,_);var D=this.n,T=new h(E),F=B.r,N=B.s,H=1&S,W=S>>1;if(F.cmp(this.curve.p.umod(this.curve.n))>=0&&W)throw new Error("Unable to find sencond key candinate");F=W?this.curve.pointFromX(F.add(this.curve.n),H):this.curve.pointFromX(F,H);var V=B.r.invm(D),te=D.sub(T).mul(V).umod(D),ue=N.mul(V).umod(D);return this.g.mulAdd(te,F,ue)},I.prototype.getKeyRecoveryParam=function(E,B,S,_){if((B=new b(B,_)).recoveryParam!==null)return B.recoveryParam;for(var D=0;D<4;D++){var T;try{T=this.recoverPubKey(E,B,D)}catch{continue}if(T.eq(S))return D}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(a,c,u){var h=a("bn.js"),d=a("../utils").assert;function p(g,A){this.ec=g,this.priv=null,this.pub=null,A.priv&&this._importPrivate(A.priv,A.privEnc),A.pub&&this._importPublic(A.pub,A.pubEnc)}c.exports=p,p.fromPublic=function(g,A,m){return A instanceof p?A:new p(g,{pub:A,pubEnc:m})},p.fromPrivate=function(g,A,m){return A instanceof p?A:new p(g,{priv:A,privEnc:m})},p.prototype.validate=function(){var g=this.getPublic();return g.isInfinity()?{result:!1,reason:"Invalid public key"}:g.validate()?g.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},p.prototype.getPublic=function(g,A){return typeof g=="string"&&(A=g,g=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),A?this.pub.encode(A,g):this.pub},p.prototype.getPrivate=function(g){return g==="hex"?this.priv.toString(16,2):this.priv},p.prototype._importPrivate=function(g,A){this.priv=new h(g,A||16),this.priv=this.priv.umod(this.ec.curve.n)},p.prototype._importPublic=function(g,A){if(g.x||g.y)return this.ec.curve.type==="mont"?d(g.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||d(g.x&&g.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(g.x,g.y));this.pub=this.ec.curve.decodePoint(g,A)},p.prototype.derive=function(g){return g.validate()||d(g.validate(),"public point not validated"),g.mul(this.priv).getX()},p.prototype.sign=function(g,A,m){return this.ec.sign(g,this,A,m)},p.prototype.verify=function(g,A){return this.ec.verify(g,A,this)},p.prototype.inspect=function(){return""}},{"../utils":419,"bn.js":420}],414:[function(a,c,u){var h=a("bn.js"),d=a("../utils"),p=d.assert;function g(I,E){if(I instanceof g)return I;this._importDER(I,E)||(p(I.r&&I.s,"Signature without r or s"),this.r=new h(I.r,16),this.s=new h(I.s,16),I.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=I.recoveryParam)}function A(){this.place=0}function m(I,E){var B=I[E.place++];if(!(128&B))return B;var S=15&B;if(S===0||S>4)return!1;for(var _=0,D=0,T=E.place;D>>=0;return!(_<=127)&&(E.place=T,_)}function y(I){for(var E=0,B=I.length-1;!I[E]&&!(128&I[E+1])&&E>>3);for(I.push(128|B);--B;)I.push(E>>>(B<<3)&255);I.push(E)}}c.exports=g,g.prototype._importDER=function(I,E){I=d.toArray(I,E);var B=new A;if(I[B.place++]!==48)return!1;var S=m(I,B);if(S===!1||S+B.place!==I.length||I[B.place++]!==2)return!1;var _=m(I,B);if(_===!1)return!1;var D=I.slice(B.place,_+B.place);if(B.place+=_,I[B.place++]!==2)return!1;var T=m(I,B);if(T===!1||I.length!==T+B.place)return!1;var F=I.slice(B.place,T+B.place);if(D[0]===0){if(!(128&D[1]))return!1;D=D.slice(1)}if(F[0]===0){if(!(128&F[1]))return!1;F=F.slice(1)}return this.r=new h(D),this.s=new h(F),this.recoveryParam=null,!0},g.prototype.toDER=function(I){var E=this.r.toArray(),B=this.s.toArray();for(128&E[0]&&(E=[0].concat(E)),128&B[0]&&(B=[0].concat(B)),E=y(E),B=y(B);!(B[0]||128&B[1]);)B=B.slice(1);var S=[2];b(S,E.length),(S=S.concat(E)).push(2),b(S,B.length);var _=S.concat(B),D=[48];return b(D,_.length),D=D.concat(_),d.encode(D,I)}},{"../utils":419,"bn.js":420}],415:[function(a,c,u){var h=a("hash.js"),d=a("../curves"),p=a("../utils"),g=p.assert,A=p.parseBytes,m=a("./key"),y=a("./signature");function b(I){if(g(I==="ed25519","only tested with ed25519 so far"),!(this instanceof b))return new b(I);I=d[I].curve,this.curve=I,this.g=I.g,this.g.precompute(I.n.bitLength()+1),this.pointClass=I.point().constructor,this.encodingLength=Math.ceil(I.n.bitLength()/8),this.hash=h.sha512}c.exports=b,b.prototype.sign=function(I,E){I=A(I);var B=this.keyFromSecret(E),S=this.hashInt(B.messagePrefix(),I),_=this.g.mul(S),D=this.encodePoint(_),T=this.hashInt(D,B.pubBytes(),I).mul(B.priv()),F=S.add(T).umod(this.curve.n);return this.makeSignature({R:_,S:F,Rencoded:D})},b.prototype.verify=function(I,E,B){I=A(I),E=this.makeSignature(E);var S=this.keyFromPublic(B),_=this.hashInt(E.Rencoded(),S.pubBytes(),I),D=this.g.mul(E.S());return E.R().add(S.pub().mul(_)).eq(D)},b.prototype.hashInt=function(){for(var I=this.hash(),E=0;E(D>>1)-1?(D>>1)-H:H,T.isubn(N)):N=0,_[F]=N,T.iushrn(1)}return _}function m(E,B){var S=[[],[]];E=E.clone(),B=B.clone();for(var _,D=0,T=0;E.cmpn(-D)>0||B.cmpn(-T)>0;){var F,N,H=E.andln(3)+D&3,W=B.andln(3)+T&3;H===3&&(H=-1),W===3&&(W=-1),F=1&H?(_=E.andln(7)+D&7)!=3&&_!==5||W!==2?H:-H:0,S[0].push(F),N=1&W?(_=B.andln(7)+T&7)!=3&&_!==5||H!==2?W:-W:0,S[1].push(N),2*D===F+1&&(D=1-D),2*T===N+1&&(T=1-T),E.iushrn(1),B.iushrn(1)}return S}function y(E,B,S){var _="_"+B;E.prototype[B]=function(){return this[_]!==void 0?this[_]:this[_]=S.call(this)}}function b(E){return typeof E=="string"?h.toArray(E,"hex"):E}function I(E){return new d(E,"hex","le")}h.assert=p,h.toArray=g.toArray,h.zero2=g.zero2,h.toHex=g.toHex,h.encode=g.encode,h.getNAF=A,h.getJSF=m,h.cachedProperty=y,h.parseBytes=b,h.intFromLE=I},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(a,c,u){arguments[4][184][0].apply(u,arguments)},{buffer:188,dup:184}],421:[function(a,c,u){c.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(a,c,u){var h=Object.create||ue,d=Object.keys||fe,p=Function.prototype.bind||de;function g(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=h(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}c.exports=g,g.EventEmitter=g,g.prototype._events=void 0,g.prototype._maxListeners=void 0;var A,m=10;try{var y={};Object.defineProperty&&Object.defineProperty(y,"x",{value:0}),A=y.x===0}catch{A=!1}function b(Ae){return Ae._maxListeners===void 0?g.defaultMaxListeners:Ae._maxListeners}function I(Ae,we,Z){if(we)Ae.call(Z);else for(var ne=Ae.length,j=V(Ae,ne),J=0;J0&&q.length>j){q.warned=!0;var z=new Error("Possible EventEmitter memory leak detected. "+q.length+' "'+String(we)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');z.name="MaxListenersExceededWarning",z.emitter=Ae,z.type=we,z.count=q.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",z.name,z.message)}}else q=J[we]=Z,++Ae._eventsCount;return Ae}function T(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var Ae=new Array(arguments.length),we=0;we1&&(we=arguments[1]),we instanceof Error)throw we;var X=new Error('Unhandled "error" event. ('+we+")");throw X.context=we,X}if(!(Z=q[Ae]))return!1;var se=typeof Z=="function";switch(ne=arguments.length){case 1:I(Z,se,this);break;case 2:E(Z,se,this,arguments[1]);break;case 3:B(Z,se,this,arguments[1],arguments[2]);break;case 4:S(Z,se,this,arguments[1],arguments[2],arguments[3]);break;default:for(j=new Array(ne-1),J=1;J=0;J--)if(Z[J]===we||Z[J].listener===we){q=Z[J].listener,j=J;break}if(j<0)return this;j===0?Z.shift():W(Z,j),Z.length===1&&(ne[Ae]=Z[0]),ne.removeListener&&this.emit("removeListener",Ae,q||we)}return this},g.prototype.removeAllListeners=function(Ae){var we,Z,ne;if(!(Z=this._events))return this;if(!Z.removeListener)return arguments.length===0?(this._events=h(null),this._eventsCount=0):Z[Ae]&&(--this._eventsCount==0?this._events=h(null):delete Z[Ae]),this;if(arguments.length===0){var j,J=d(Z);for(ne=0;ne=0;ne--)this.removeListener(Ae,we[ne]);return this},g.prototype.listeners=function(Ae){return N(this,Ae,!0)},g.prototype.rawListeners=function(Ae){return N(this,Ae,!1)},g.listenerCount=function(Ae,we){return typeof Ae.listenerCount=="function"?Ae.listenerCount(we):H.call(Ae,we)},g.prototype.listenerCount=H,g.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(a,c,u){var h=a("safe-buffer").Buffer,d=a("md5.js");function p(g,A,m,y){if(h.isBuffer(g)||(g=h.from(g,"binary")),A&&(h.isBuffer(A)||(A=h.from(A,"binary")),A.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var b=m/8,I=h.alloc(b),E=h.alloc(y||0),B=h.alloc(0);b>0||y>0;){var S=new d;S.update(B),S.update(g),A&&S.update(A),B=S.digest();var _=0;if(b>0){var D=I.length-b;_=Math.min(b,B.length),B.copy(I,D,0,_),b-=_}if(_0){var T=E.length-y,F=Math.min(y,B.length-_);B.copy(E,T,_,_+F),y-=F}}return B.fill(0),{key:I,iv:E}}c.exports=p},{"md5.js":450,"safe-buffer":494}],424:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.CsvParserStream=u.ParserOptions=u.parseFile=u.parseStream=u.parseString=u.parse=u.FormatterOptions=u.CsvFormatterStream=u.writeToPath=u.writeToString=u.writeToBuffer=u.writeToStream=u.write=u.format=void 0;var h=a("@fast-csv/format");Object.defineProperty(u,"format",{enumerable:!0,get:function(){return h.format}}),Object.defineProperty(u,"write",{enumerable:!0,get:function(){return h.write}}),Object.defineProperty(u,"writeToStream",{enumerable:!0,get:function(){return h.writeToStream}}),Object.defineProperty(u,"writeToBuffer",{enumerable:!0,get:function(){return h.writeToBuffer}}),Object.defineProperty(u,"writeToString",{enumerable:!0,get:function(){return h.writeToString}}),Object.defineProperty(u,"writeToPath",{enumerable:!0,get:function(){return h.writeToPath}}),Object.defineProperty(u,"CsvFormatterStream",{enumerable:!0,get:function(){return h.CsvFormatterStream}}),Object.defineProperty(u,"FormatterOptions",{enumerable:!0,get:function(){return h.FormatterOptions}});var d=a("@fast-csv/parse");Object.defineProperty(u,"parse",{enumerable:!0,get:function(){return d.parse}}),Object.defineProperty(u,"parseString",{enumerable:!0,get:function(){return d.parseString}}),Object.defineProperty(u,"parseStream",{enumerable:!0,get:function(){return d.parseStream}}),Object.defineProperty(u,"parseFile",{enumerable:!0,get:function(){return d.parseFile}}),Object.defineProperty(u,"ParserOptions",{enumerable:!0,get:function(){return d.ParserOptions}}),Object.defineProperty(u,"CsvParserStream",{enumerable:!0,get:function(){return d.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(a,c,u){var h=a("safe-buffer").Buffer,d=a("readable-stream").Transform;function p(A,m){if(!h.isBuffer(A)&&typeof A!="string")throw new TypeError(m+" must be a string or a buffer")}function g(A){d.call(this),this._block=h.allocUnsafe(A),this._blockSize=A,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}a("inherits")(g,d),g.prototype._transform=function(A,m,y){var b=null;try{this.update(A,m)}catch(I){b=I}y(b)},g.prototype._flush=function(A){var m=null;try{this.push(this.digest())}catch(y){m=y}A(m)},g.prototype.update=function(A,m){if(p(A,"Data"),this._finalized)throw new Error("Digest already called");h.isBuffer(A)||(A=h.from(A,m));for(var y=this._block,b=0;this._blockOffset+A.length-b>=this._blockSize;){for(var I=this._blockOffset;I0;++E)this._length[E]+=B,(B=this._length[E]/4294967296|0)>0&&(this._length[E]-=4294967296*B);return this},g.prototype._update=function(){throw new Error("_update is not implemented")},g.prototype.digest=function(A){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var m=this._digest();A!==void 0&&(m=m.toString(A)),this._block.fill(0),this._blockOffset=0;for(var y=0;y<4;++y)this._length[y]=0;return m},g.prototype._digest=function(){throw new Error("_digest is not implemented")},c.exports=g},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(a,c,u){var h=u;h.utils=a("./hash/utils"),h.common=a("./hash/common"),h.sha=a("./hash/sha"),h.ripemd=a("./hash/ripemd"),h.hmac=a("./hash/hmac"),h.sha1=h.sha.sha1,h.sha256=h.sha.sha256,h.sha224=h.sha.sha224,h.sha384=h.sha.sha384,h.sha512=h.sha.sha512,h.ripemd160=h.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(a,c,u){var h=a("./utils"),d=a("minimalistic-assert");function p(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}u.BlockHash=p,p.prototype.update=function(g,A){if(g=h.toArray(g,A),this.pending?this.pending=this.pending.concat(g):this.pending=g,this.pendingTotal+=g.length,this.pending.length>=this._delta8){var m=(g=this.pending).length%this._delta8;this.pending=g.slice(g.length-m,g.length),this.pending.length===0&&(this.pending=null),g=h.join32(g,0,g.length-m,this.endian);for(var y=0;y>>24&255,y[b++]=g>>>16&255,y[b++]=g>>>8&255,y[b++]=255&g}else for(y[b++]=255&g,y[b++]=g>>>8&255,y[b++]=g>>>16&255,y[b++]=g>>>24&255,y[b++]=0,y[b++]=0,y[b++]=0,y[b++]=0,I=8;Ithis.blockSize&&(g=new this.Hash().update(g).digest()),d(g.length<=this.blockSize);for(var A=g.length;A>>3}function I(E){return h(E,17)^h(E,19)^E>>>10}u.ft_1=d,u.ch32=p,u.maj32=g,u.p32=A,u.s0_256=m,u.s1_256=y,u.g0_256=b,u.g1_256=I},{"../utils":437}],437:[function(a,c,u){var h=a("minimalistic-assert"),d=a("inherits");function p(j,J){return(64512&j.charCodeAt(J))==55296&&!(J<0||J+1>=j.length)&&(64512&j.charCodeAt(J+1))==56320}function g(j,J){if(Array.isArray(j))return j.slice();if(!j)return[];var q=[];if(typeof j=="string")if(J){if(J==="hex")for((j=j.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(j="0"+j),X=0;X>6|192,q[z++]=63&se|128):p(j,X)?(se=65536+((1023&se)<<10)+(1023&j.charCodeAt(++X)),q[z++]=se>>18|240,q[z++]=se>>12&63|128,q[z++]=se>>6&63|128,q[z++]=63&se|128):(q[z++]=se>>12|224,q[z++]=se>>6&63|128,q[z++]=63&se|128)}else for(X=0;X>>24|j>>>8&65280|j<<8&16711680|(255&j)<<24)>>>0}function y(j,J){for(var q="",z=0;z>>0}return se}function B(j,J){for(var q=new Array(4*j.length),z=0,X=0;z>>24,q[X+1]=se>>>16&255,q[X+2]=se>>>8&255,q[X+3]=255&se):(q[X+3]=se>>>24,q[X+2]=se>>>16&255,q[X+1]=se>>>8&255,q[X]=255&se)}return q}function S(j,J){return j>>>J|j<<32-J}function _(j,J){return j<>>32-J}function D(j,J){return j+J>>>0}function T(j,J,q){return j+J+q>>>0}function F(j,J,q,z){return j+J+q+z>>>0}function N(j,J,q,z,X){return j+J+q+z+X>>>0}function H(j,J,q,z){var X=j[J],se=z+j[J+1]>>>0,oe=(se>>0,j[J+1]=se}function W(j,J,q,z){return(J+z>>>0>>0}function V(j,J,q,z){return J+z>>>0}function te(j,J,q,z,X,se,oe,ye){var ae=0,me=J;return ae+=(me=me+z>>>0)>>0)>>0)>>0}function ue(j,J,q,z,X,se,oe,ye){return J+z+se+ye>>>0}function fe(j,J,q,z,X,se,oe,ye,ae,me){var Fe=0,_e=J;return Fe+=(_e=_e+z>>>0)>>0)>>0)>>0)>>0}function de(j,J,q,z,X,se,oe,ye,ae,me){return J+z+se+ye+me>>>0}function Ae(j,J,q){return(J<<32-q|j>>>q)>>>0}function we(j,J,q){return(j<<32-q|J>>>q)>>>0}function Z(j,J,q){return j>>>q}function ne(j,J,q){return(j<<32-q|J>>>q)>>>0}u.inherits=d,u.toArray=g,u.toHex=A,u.htonl=m,u.toHex32=y,u.zero2=b,u.zero8=I,u.join32=E,u.split32=B,u.rotr32=S,u.rotl32=_,u.sum32=D,u.sum32_3=T,u.sum32_4=F,u.sum32_5=N,u.sum64=H,u.sum64_hi=W,u.sum64_lo=V,u.sum64_4_hi=te,u.sum64_4_lo=ue,u.sum64_5_hi=fe,u.sum64_5_lo=de,u.rotr64_hi=Ae,u.rotr64_lo=we,u.shr64_hi=Z,u.shr64_lo=ne},{inherits:440,"minimalistic-assert":453}],438:[function(a,c,u){var h=a("hash.js"),d=a("minimalistic-crypto-utils"),p=a("minimalistic-assert");function g(A){if(!(this instanceof g))return new g(A);this.hash=A.hash,this.predResist=!!A.predResist,this.outLen=this.hash.outSize,this.minEntropy=A.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var m=d.toArray(A.entropy,A.entropyEnc||"hex"),y=d.toArray(A.nonce,A.nonceEnc||"hex"),b=d.toArray(A.pers,A.persEnc||"hex");p(m.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(m,y,b)}c.exports=g,g.prototype._init=function(A,m,y){var b=A.concat(m).concat(y);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var I=0;I=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(A.concat(y||[])),this._reseed=1},g.prototype.generate=function(A,m,y,b){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof m!="string"&&(b=y,y=m,m=null),y&&(y=d.toArray(y,b||"hex"),this._update(y));for(var I=[];I.length */u.read=function(h,d,p,g,A){var m,y,b=8*A-g-1,I=(1<>1,B=-7,S=p?A-1:0,_=p?-1:1,D=h[d+S];for(S+=_,m=D&(1<<-B)-1,D>>=-B,B+=b;B>0;m=256*m+h[d+S],S+=_,B-=8);for(y=m&(1<<-B)-1,m>>=-B,B+=g;B>0;y=256*y+h[d+S],S+=_,B-=8);if(m===0)m=1-E;else{if(m===I)return y?NaN:1/0*(D?-1:1);y+=Math.pow(2,g),m-=E}return(D?-1:1)*y*Math.pow(2,m-g)},u.write=function(h,d,p,g,A,m){var y,b,I,E=8*m-A-1,B=(1<>1,_=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=g?0:m-1,T=g?1:-1,F=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(b=isNaN(d)?1:0,y=B):(y=Math.floor(Math.log(d)/Math.LN2),d*(I=Math.pow(2,-y))<1&&(y--,I*=2),(d+=y+S>=1?_/I:_*Math.pow(2,1-S))*I>=2&&(y++,I/=2),y+S>=B?(b=0,y=B):y+S>=1?(b=(d*I-1)*Math.pow(2,A),y+=S):(b=d*Math.pow(2,S-1)*Math.pow(2,A),y=0));A>=8;h[p+D]=255&b,D+=T,b/=256,A-=8);for(y=y<0;h[p+D]=255&y,D+=T,y/=256,E-=8);h[p+D-T]|=128*F}},{}],440:[function(a,c,u){typeof Object.create=="function"?c.exports=function(h,d){d&&(h.super_=d,h.prototype=Object.create(d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}))}:c.exports=function(h,d){if(d){h.super_=d;var p=function(){};p.prototype=d.prototype,h.prototype=new p,h.prototype.constructor=h}}},{}],441:[function(a,c,u){(function(h,d,p,g,A,m,y,b){(function(){/*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files (c) 2009-2016 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE */(function(I){typeof u=="object"&&c!==void 0?c.exports=I():(typeof window<"u"?window:d!==void 0?d:typeof self<"u"?self:this).JSZip=I()})(function(){return function I(E,B,S){function _(F,N){if(!B[F]){if(!E[F]){var H=typeof a=="function"&&a;if(!N&&H)return H(F,!0);if(D)return D(F,!0);var W=new Error("Cannot find module '"+F+"'");throw W.code="MODULE_NOT_FOUND",W}var V=B[F]={exports:{}};E[F][0].call(V.exports,function(te){return _(E[F][1][te]||te)},V,V.exports,I,E,B,S)}return B[F].exports}for(var D=typeof a=="function"&&a,T=0;T>2,V=(3&F)<<4|N>>4,te=1>6:64,ue=2>4,N=(15&W)<<4|(V=D.indexOf(T.charAt(ue++)))>>2,H=(3&V)<<6|(te=D.indexOf(T.charAt(ue++))),Ae[fe++]=F,V!==64&&(Ae[fe++]=N),te!==64&&(Ae[fe++]=H);return Ae}},{"./support":30,"./utils":32}],2:[function(I,E,B){var S=I("./external"),_=I("./stream/DataWorker"),D=I("./stream/Crc32Probe"),T=I("./stream/DataLengthProbe");function F(N,H,W,V,te){this.compressedSize=N,this.uncompressedSize=H,this.crc32=W,this.compression=V,this.compressedContent=te}F.prototype={getContentWorker:function(){var N=new _(S.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new T("data_length")),H=this;return N.on("end",function(){if(this.streamInfo.data_length!==H.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),N},getCompressedWorker:function(){return new _(S.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},F.createWorkerFrom=function(N,H,W){return N.pipe(new D).pipe(new T("uncompressedSize")).pipe(H.compressWorker(W)).pipe(new T("compressedSize")).withStreamInfo("compression",H)},E.exports=F},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(I,E,B){var S=I("./stream/GenericWorker");B.STORE={magic:"\0\0",compressWorker:function(){return new S("STORE compression")},uncompressWorker:function(){return new S("STORE decompression")}},B.DEFLATE=I("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(I,E,B){var S=I("./utils"),_=function(){for(var D,T=[],F=0;F<256;F++){D=F;for(var N=0;N<8;N++)D=1&D?3988292384^D>>>1:D>>>1;T[F]=D}return T}();E.exports=function(D,T){return D!==void 0&&D.length?S.getTypeOf(D)!=="string"?function(F,N,H,W){var V=_,te=W+H;F^=-1;for(var ue=W;ue>>8^V[255&(F^N[ue])];return~F}(0|T,D,D.length,0):function(F,N,H,W){var V=_,te=W+H;F^=-1;for(var ue=W;ue>>8^V[255&(F^N.charCodeAt(ue))];return~F}(0|T,D,D.length,0):0}},{"./utils":32}],5:[function(I,E,B){B.base64=!1,B.binary=!1,B.dir=!1,B.createFolders=!0,B.date=null,B.compression=null,B.compressionOptions=null,B.comment=null,B.unixPermissions=null,B.dosPermissions=null},{}],6:[function(I,E,B){var S=null;S=typeof Promise<"u"?Promise:I("lie"),E.exports={Promise:S}},{lie:37}],7:[function(I,E,B){var S=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",_=I("pako"),D=I("./utils"),T=I("./stream/GenericWorker"),F=S?"uint8array":"array";function N(H,W){T.call(this,"FlateWorker/"+H),this._pako=null,this._pakoAction=H,this._pakoOptions=W,this.meta={}}B.magic="\b\0",D.inherits(N,T),N.prototype.processChunk=function(H){this.meta=H.meta,this._pako===null&&this._createPako(),this._pako.push(D.transformTo(F,H.data),!1)},N.prototype.flush=function(){T.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},N.prototype.cleanUp=function(){T.prototype.cleanUp.call(this),this._pako=null},N.prototype._createPako=function(){this._pako=new _[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var H=this;this._pako.onData=function(W){H.push({data:W,meta:H.meta})}},B.compressWorker=function(H){return new N("Deflate",H)},B.uncompressWorker=function(){return new N("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(I,E,B){function S(V,te){var ue,fe="";for(ue=0;ue>>=8;return fe}function _(V,te,ue,fe,de,Ae){var we,Z,ne=V.file,j=V.compression,J=Ae!==F.utf8encode,q=D.transformTo("string",Ae(ne.name)),z=D.transformTo("string",F.utf8encode(ne.name)),X=ne.comment,se=D.transformTo("string",Ae(X)),oe=D.transformTo("string",F.utf8encode(X)),ye=z.length!==ne.name.length,ae=oe.length!==X.length,me="",Fe="",_e="",rt=ne.dir,et=ne.date,st={crc32:0,compressedSize:0,uncompressedSize:0};te&&!ue||(st.crc32=V.crc32,st.compressedSize=V.compressedSize,st.uncompressedSize=V.uncompressedSize);var Ge=0;te&&(Ge|=8),J||!ye&&!ae||(Ge|=2048);var Be,Te,je,lt=0,Me=0;rt&&(lt|=16),de==="UNIX"?(Me=798,lt|=(Be=ne.unixPermissions,Te=rt,je=Be,Be||(je=Te?16893:33204),(65535&je)<<16)):(Me=20,lt|=function(Rt){return 63&(Rt||0)}(ne.dosPermissions)),we=et.getUTCHours(),we<<=6,we|=et.getUTCMinutes(),we<<=5,we|=et.getUTCSeconds()/2,Z=et.getUTCFullYear()-1980,Z<<=4,Z|=et.getUTCMonth()+1,Z<<=5,Z|=et.getUTCDate(),ye&&(Fe=S(1,1)+S(N(q),4)+z,me+="up"+S(Fe.length,2)+Fe),ae&&(_e=S(1,1)+S(N(se),4)+oe,me+="uc"+S(_e.length,2)+_e);var Ke="";return Ke+=` \0`,Ke+=S(Ge,2),Ke+=j.magic,Ke+=S(we,2),Ke+=S(Z,2),Ke+=S(st.crc32,4),Ke+=S(st.compressedSize,4),Ke+=S(st.uncompressedSize,4),Ke+=S(q.length,2),Ke+=S(me.length,2),{fileRecord:H.LOCAL_FILE_HEADER+Ke+q+me,dirRecord:H.CENTRAL_FILE_HEADER+S(Me,2)+Ke+S(se.length,2)+"\0\0\0\0"+S(lt,4)+S(fe,4)+q+me+se}}var D=I("../utils"),T=I("../stream/GenericWorker"),F=I("../utf8"),N=I("../crc32"),H=I("../signature");function W(V,te,ue,fe){T.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=te,this.zipPlatform=ue,this.encodeFileName=fe,this.streamFiles=V,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}D.inherits(W,T),W.prototype.push=function(V){var te=V.meta.percent||0,ue=this.entriesCount,fe=this._sources.length;this.accumulate?this.contentBuffer.push(V):(this.bytesWritten+=V.data.length,T.prototype.push.call(this,{data:V.data,meta:{currentFile:this.currentFile,percent:ue?(te+100*(ue-fe-1))/ue:100}}))},W.prototype.openedSource=function(V){this.currentSourceOffset=this.bytesWritten,this.currentFile=V.file.name;var te=this.streamFiles&&!V.file.dir;if(te){var ue=_(V,te,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:ue.fileRecord,meta:{percent:0}})}else this.accumulate=!0},W.prototype.closedSource=function(V){this.accumulate=!1;var te,ue=this.streamFiles&&!V.file.dir,fe=_(V,ue,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(fe.dirRecord),ue)this.push({data:(te=V,H.DATA_DESCRIPTOR+S(te.crc32,4)+S(te.compressedSize,4)+S(te.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:fe.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},W.prototype.flush=function(){for(var V=this.bytesWritten,te=0;te=this.index;T--)F=(F<<8)+this.byteAt(T);return this.index+=D,F},readString:function(D){return S.transformTo("string",this.readData(D))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var D=this.readInt(4);return new Date(Date.UTC(1980+(D>>25&127),(D>>21&15)-1,D>>16&31,D>>11&31,D>>5&63,(31&D)<<1))}},E.exports=_},{"../utils":32}],19:[function(I,E,B){var S=I("./Uint8ArrayReader");function _(D){S.call(this,D)}I("../utils").inherits(_,S),_.prototype.readData=function(D){this.checkOffset(D);var T=this.data.slice(this.zero+this.index,this.zero+this.index+D);return this.index+=D,T},E.exports=_},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(I,E,B){var S=I("./DataReader");function _(D){S.call(this,D)}I("../utils").inherits(_,S),_.prototype.byteAt=function(D){return this.data.charCodeAt(this.zero+D)},_.prototype.lastIndexOfSignature=function(D){return this.data.lastIndexOf(D)-this.zero},_.prototype.readAndCheckSignature=function(D){return D===this.readData(4)},_.prototype.readData=function(D){this.checkOffset(D);var T=this.data.slice(this.zero+this.index,this.zero+this.index+D);return this.index+=D,T},E.exports=_},{"../utils":32,"./DataReader":18}],21:[function(I,E,B){var S=I("./ArrayReader");function _(D){S.call(this,D)}I("../utils").inherits(_,S),_.prototype.readData=function(D){if(this.checkOffset(D),D===0)return new Uint8Array(0);var T=this.data.subarray(this.zero+this.index,this.zero+this.index+D);return this.index+=D,T},E.exports=_},{"../utils":32,"./ArrayReader":17}],22:[function(I,E,B){var S=I("../utils"),_=I("../support"),D=I("./ArrayReader"),T=I("./StringReader"),F=I("./NodeBufferReader"),N=I("./Uint8ArrayReader");E.exports=function(H){var W=S.getTypeOf(H);return S.checkSupport(W),W!=="string"||_.uint8array?W==="nodebuffer"?new F(H):_.uint8array?new N(S.transformTo("uint8array",H)):new D(S.transformTo("array",H)):new T(H)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(I,E,B){B.LOCAL_FILE_HEADER="PK",B.CENTRAL_FILE_HEADER="PK",B.CENTRAL_DIRECTORY_END="PK",B.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",B.ZIP64_CENTRAL_DIRECTORY_END="PK",B.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(I,E,B){var S=I("./GenericWorker"),_=I("../utils");function D(T){S.call(this,"ConvertWorker to "+T),this.destType=T}_.inherits(D,S),D.prototype.processChunk=function(T){this.push({data:_.transformTo(this.destType,T.data),meta:T.meta})},E.exports=D},{"../utils":32,"./GenericWorker":28}],25:[function(I,E,B){var S=I("./GenericWorker"),_=I("../crc32");function D(){S.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}I("../utils").inherits(D,S),D.prototype.processChunk=function(T){this.streamInfo.crc32=_(T.data,this.streamInfo.crc32||0),this.push(T)},E.exports=D},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(I,E,B){var S=I("../utils"),_=I("./GenericWorker");function D(T){_.call(this,"DataLengthProbe for "+T),this.propName=T,this.withStreamInfo(T,0)}S.inherits(D,_),D.prototype.processChunk=function(T){if(T){var F=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=F+T.data.length}_.prototype.processChunk.call(this,T)},E.exports=D},{"../utils":32,"./GenericWorker":28}],27:[function(I,E,B){var S=I("../utils"),_=I("./GenericWorker");function D(T){_.call(this,"DataWorker");var F=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,T.then(function(N){F.dataIsReady=!0,F.data=N,F.max=N&&N.length||0,F.type=S.getTypeOf(N),F.isPaused||F._tickAndRepeat()},function(N){F.error(N)})}S.inherits(D,_),D.prototype.cleanUp=function(){_.prototype.cleanUp.call(this),this.data=null},D.prototype.resume=function(){return!!_.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,S.delay(this._tickAndRepeat,[],this)),!0)},D.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(S.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},D.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var T=null,F=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":T=this.data.substring(this.index,F);break;case"uint8array":T=this.data.subarray(this.index,F);break;case"array":case"nodebuffer":T=this.data.slice(this.index,F)}return this.index=F,this.push({data:T,meta:{percent:this.max?this.index/this.max*100:0}})},E.exports=D},{"../utils":32,"./GenericWorker":28}],28:[function(I,E,B){function S(_){this.name=_||"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}S.prototype={push:function(_){this.emit("data",_)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(_){this.emit("error",_)}return!0},error:function(_){return!this.isFinished&&(this.isPaused?this.generatedError=_:(this.isFinished=!0,this.emit("error",_),this.previous&&this.previous.error(_),this.cleanUp()),!0)},on:function(_,D){return this._listeners[_].push(D),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(_,D){if(this._listeners[_])for(var T=0;T "+_:_}},E.exports=S},{}],29:[function(I,E,B){var S=I("../utils"),_=I("./ConvertWorker"),D=I("./GenericWorker"),T=I("../base64"),F=I("../support"),N=I("../external"),H=null;if(F.nodestream)try{H=I("../nodejs/NodejsStreamOutputAdapter")}catch{}function W(te,ue){return new N.Promise(function(fe,de){var Ae=[],we=te._internalType,Z=te._outputType,ne=te._mimeType;te.on("data",function(j,J){Ae.push(j),ue&&ue(J)}).on("error",function(j){Ae=[],de(j)}).on("end",function(){try{var j=function(J,q,z){switch(J){case"blob":return S.newBlob(S.transformTo("arraybuffer",q),z);case"base64":return T.encode(q);default:return S.transformTo(J,q)}}(Z,function(J,q){var z,X=0,se=null,oe=0;for(z=0;z"u")B.blob=!1;else{var S=new ArrayBuffer(0);try{B.blob=new Blob([S],{type:"application/zip"}).size===0}catch{try{var _=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);_.append(S),B.blob=_.getBlob("application/zip").size===0}catch{B.blob=!1}}}try{B.nodestream=!!I("readable-stream").Readable}catch{B.nodestream=!1}},{"readable-stream":16}],31:[function(I,E,B){for(var S=I("./utils"),_=I("./support"),D=I("./nodejsUtils"),T=I("./stream/GenericWorker"),F=new Array(256),N=0;N<256;N++)F[N]=252<=N?6:248<=N?5:240<=N?4:224<=N?3:192<=N?2:1;function H(){T.call(this,"utf-8 decode"),this.leftOver=null}function W(){T.call(this,"utf-8 encode")}F[254]=F[254]=1,B.utf8encode=function(V){return _.nodebuffer?D.newBufferFrom(V,"utf-8"):function(te){var ue,fe,de,Ae,we,Z=te.length,ne=0;for(Ae=0;Ae>>6:(fe<65536?ue[we++]=224|fe>>>12:(ue[we++]=240|fe>>>18,ue[we++]=128|fe>>>12&63),ue[we++]=128|fe>>>6&63),ue[we++]=128|63&fe);return ue}(V)},B.utf8decode=function(V){return _.nodebuffer?S.transformTo("nodebuffer",V).toString("utf-8"):function(te){var ue,fe,de,Ae,we=te.length,Z=new Array(2*we);for(ue=fe=0;ue>10&1023,Z[fe++]=56320|1023&de)}return Z.length!==fe&&(Z.subarray?Z=Z.subarray(0,fe):Z.length=fe),S.applyFromCharCode(Z)}(V=S.transformTo(_.uint8array?"uint8array":"array",V))},S.inherits(H,T),H.prototype.processChunk=function(V){var te=S.transformTo(_.uint8array?"uint8array":"array",V.data);if(this.leftOver&&this.leftOver.length){if(_.uint8array){var ue=te;(te=new Uint8Array(ue.length+this.leftOver.length)).set(this.leftOver,0),te.set(ue,this.leftOver.length)}else te=this.leftOver.concat(te);this.leftOver=null}var fe=function(Ae,we){var Z;for((we=we||Ae.length)>Ae.length&&(we=Ae.length),Z=we-1;0<=Z&&(192&Ae[Z])==128;)Z--;return Z<0||Z===0?we:Z+F[Ae[Z]]>we?Z:we}(te),de=te;fe!==te.length&&(_.uint8array?(de=te.subarray(0,fe),this.leftOver=te.subarray(fe,te.length)):(de=te.slice(0,fe),this.leftOver=te.slice(fe,te.length))),this.push({data:B.utf8decode(de),meta:V.meta})},H.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:B.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},B.Utf8DecodeWorker=H,S.inherits(W,T),W.prototype.processChunk=function(V){this.push({data:B.utf8encode(V.data),meta:V.meta})},B.Utf8EncodeWorker=W},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(I,E,B){var S=I("./support"),_=I("./base64"),D=I("./nodejsUtils"),T=I("./external");function F(ue){return ue}function N(ue,fe){for(var de=0;de>8;this.dir=!!(16&this.externalFileAttributes),V==0&&(this.dosPermissions=63&this.externalFileAttributes),V==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var V=S(this.extraFields[1].value);this.uncompressedSize===_.MAX_VALUE_32BITS&&(this.uncompressedSize=V.readInt(8)),this.compressedSize===_.MAX_VALUE_32BITS&&(this.compressedSize=V.readInt(8)),this.localHeaderOffset===_.MAX_VALUE_32BITS&&(this.localHeaderOffset=V.readInt(8)),this.diskNumberStart===_.MAX_VALUE_32BITS&&(this.diskNumberStart=V.readInt(4))}},readExtraFields:function(V){var te,ue,fe,de=V.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});V.index+4>>6:(V<65536?W[fe++]=224|V>>>12:(W[fe++]=240|V>>>18,W[fe++]=128|V>>>12&63),W[fe++]=128|V>>>6&63),W[fe++]=128|63&V);return W},B.buf2binstring=function(H){return N(H,H.length)},B.binstring2buf=function(H){for(var W=new S.Buf8(H.length),V=0,te=W.length;V>10&1023,Ae[te++]=56320|1023&ue)}return N(Ae,te)},B.utf8border=function(H,W){var V;for((W=W||H.length)>H.length&&(W=H.length),V=W-1;0<=V&&(192&H[V])==128;)V--;return V<0||V===0?W:V+T[H[V]]>W?V:W}},{"./common":41}],43:[function(I,E,B){E.exports=function(S,_,D,T){for(var F=65535&S,N=S>>>16&65535,H=0;D!==0;){for(D-=H=2e3>>1:_>>>1;D[T]=_}return D}();E.exports=function(_,D,T,F){var N=S,H=F+T;_^=-1;for(var W=F;W>>8^N[255&(_^D[W])];return~_}},{}],46:[function(I,E,B){var S,_=I("../utils/common"),D=I("./trees"),T=I("./adler32"),F=I("./crc32"),N=I("./messages"),H=0,W=4,V=0,te=-2,ue=-1,fe=4,de=2,Ae=8,we=9,Z=286,ne=30,j=19,J=2*Z+1,q=15,z=3,X=258,se=X+z+1,oe=42,ye=113,ae=1,me=2,Fe=3,_e=4;function rt(Qe,_t){return Qe.msg=N[_t],_t}function et(Qe){return(Qe<<1)-(4Qe.avail_out&&(Ft=Qe.avail_out),Ft!==0&&(_.arraySet(Qe.output,_t.pending_buf,_t.pending_out,Ft,Qe.next_out),Qe.next_out+=Ft,_t.pending_out+=Ft,Qe.total_out+=Ft,Qe.avail_out-=Ft,_t.pending-=Ft,_t.pending===0&&(_t.pending_out=0))}function Be(Qe,_t){D._tr_flush_block(Qe,0<=Qe.block_start?Qe.block_start:-1,Qe.strstart-Qe.block_start,_t),Qe.block_start=Qe.strstart,Ge(Qe.strm)}function Te(Qe,_t){Qe.pending_buf[Qe.pending++]=_t}function je(Qe,_t){Qe.pending_buf[Qe.pending++]=_t>>>8&255,Qe.pending_buf[Qe.pending++]=255&_t}function lt(Qe,_t){var Ft,Ze,$e=Qe.max_chain_length,nt=Qe.strstart,Ot=Qe.prev_length,He=Qe.nice_match,Je=Qe.strstart>Qe.w_size-se?Qe.strstart-(Qe.w_size-se):0,tt=Qe.window,mt=Qe.w_mask,Xe=Qe.prev,Ye=Qe.strstart+X,ot=tt[nt+Ot-1],yt=tt[nt+Ot];Qe.prev_length>=Qe.good_match&&($e>>=2),He>Qe.lookahead&&(He=Qe.lookahead);do if(tt[(Ft=_t)+Ot]===yt&&tt[Ft+Ot-1]===ot&&tt[Ft]===tt[nt]&&tt[++Ft]===tt[nt+1]){nt+=2,Ft++;do;while(tt[++nt]===tt[++Ft]&&tt[++nt]===tt[++Ft]&&tt[++nt]===tt[++Ft]&&tt[++nt]===tt[++Ft]&&tt[++nt]===tt[++Ft]&&tt[++nt]===tt[++Ft]&&tt[++nt]===tt[++Ft]&&tt[++nt]===tt[++Ft]&&ntJe&&--$e!=0);return Ot<=Qe.lookahead?Ot:Qe.lookahead}function Me(Qe){var _t,Ft,Ze,$e,nt,Ot,He,Je,tt,mt,Xe=Qe.w_size;do{if($e=Qe.window_size-Qe.lookahead-Qe.strstart,Qe.strstart>=Xe+(Xe-se)){for(_.arraySet(Qe.window,Qe.window,Xe,Xe,0),Qe.match_start-=Xe,Qe.strstart-=Xe,Qe.block_start-=Xe,_t=Ft=Qe.hash_size;Ze=Qe.head[--_t],Qe.head[_t]=Xe<=Ze?Ze-Xe:0,--Ft;);for(_t=Ft=Xe;Ze=Qe.prev[--_t],Qe.prev[_t]=Xe<=Ze?Ze-Xe:0,--Ft;);$e+=Xe}if(Qe.strm.avail_in===0)break;if(Ot=Qe.strm,He=Qe.window,Je=Qe.strstart+Qe.lookahead,mt=void 0,(tt=$e)<(mt=Ot.avail_in)&&(mt=tt),Ft=mt===0?0:(Ot.avail_in-=mt,_.arraySet(He,Ot.input,Ot.next_in,mt,Je),Ot.state.wrap===1?Ot.adler=T(Ot.adler,He,mt,Je):Ot.state.wrap===2&&(Ot.adler=F(Ot.adler,He,mt,Je)),Ot.next_in+=mt,Ot.total_in+=mt,mt),Qe.lookahead+=Ft,Qe.lookahead+Qe.insert>=z)for(nt=Qe.strstart-Qe.insert,Qe.ins_h=Qe.window[nt],Qe.ins_h=(Qe.ins_h<=z&&(Qe.ins_h=(Qe.ins_h<=z)if(Ze=D._tr_tally(Qe,Qe.strstart-Qe.match_start,Qe.match_length-z),Qe.lookahead-=Qe.match_length,Qe.match_length<=Qe.max_lazy_match&&Qe.lookahead>=z){for(Qe.match_length--;Qe.strstart++,Qe.ins_h=(Qe.ins_h<=z&&(Qe.ins_h=(Qe.ins_h<=z&&Qe.match_length<=Qe.prev_length){for($e=Qe.strstart+Qe.lookahead-z,Ze=D._tr_tally(Qe,Qe.strstart-1-Qe.prev_match,Qe.prev_length-z),Qe.lookahead-=Qe.prev_length-1,Qe.prev_length-=2;++Qe.strstart<=$e&&(Qe.ins_h=(Qe.ins_h<Qe.pending_buf_size-5&&(Ft=Qe.pending_buf_size-5);;){if(Qe.lookahead<=1){if(Me(Qe),Qe.lookahead===0&&_t===H)return ae;if(Qe.lookahead===0)break}Qe.strstart+=Qe.lookahead,Qe.lookahead=0;var Ze=Qe.block_start+Ft;if((Qe.strstart===0||Qe.strstart>=Ze)&&(Qe.lookahead=Qe.strstart-Ze,Qe.strstart=Ze,Be(Qe,!1),Qe.strm.avail_out===0)||Qe.strstart-Qe.block_start>=Qe.w_size-se&&(Be(Qe,!1),Qe.strm.avail_out===0))return ae}return Qe.insert=0,_t===W?(Be(Qe,!0),Qe.strm.avail_out===0?Fe:_e):(Qe.strstart>Qe.block_start&&(Be(Qe,!1),Qe.strm.avail_out),ae)}),new Ie(4,4,8,4,Ke),new Ie(4,5,16,8,Ke),new Ie(4,6,32,32,Ke),new Ie(4,4,16,16,Rt),new Ie(8,16,32,32,Rt),new Ie(8,16,128,128,Rt),new Ie(8,32,128,256,Rt),new Ie(32,128,258,1024,Rt),new Ie(32,258,258,4096,Rt)],B.deflateInit=function(Qe,_t){return Lt(Qe,_t,Ae,15,8,0)},B.deflateInit2=Lt,B.deflateReset=pt,B.deflateResetKeep=qe,B.deflateSetHeader=function(Qe,_t){return Qe&&Qe.state?Qe.state.wrap!==2?te:(Qe.state.gzhead=_t,V):te},B.deflate=function(Qe,_t){var Ft,Ze,$e,nt;if(!Qe||!Qe.state||5<_t||_t<0)return Qe?rt(Qe,te):te;if(Ze=Qe.state,!Qe.output||!Qe.input&&Qe.avail_in!==0||Ze.status===666&&_t!==W)return rt(Qe,Qe.avail_out===0?-5:te);if(Ze.strm=Qe,Ft=Ze.last_flush,Ze.last_flush=_t,Ze.status===oe)if(Ze.wrap===2)Qe.adler=0,Te(Ze,31),Te(Ze,139),Te(Ze,8),Ze.gzhead?(Te(Ze,(Ze.gzhead.text?1:0)+(Ze.gzhead.hcrc?2:0)+(Ze.gzhead.extra?4:0)+(Ze.gzhead.name?8:0)+(Ze.gzhead.comment?16:0)),Te(Ze,255&Ze.gzhead.time),Te(Ze,Ze.gzhead.time>>8&255),Te(Ze,Ze.gzhead.time>>16&255),Te(Ze,Ze.gzhead.time>>24&255),Te(Ze,Ze.level===9?2:2<=Ze.strategy||Ze.level<2?4:0),Te(Ze,255&Ze.gzhead.os),Ze.gzhead.extra&&Ze.gzhead.extra.length&&(Te(Ze,255&Ze.gzhead.extra.length),Te(Ze,Ze.gzhead.extra.length>>8&255)),Ze.gzhead.hcrc&&(Qe.adler=F(Qe.adler,Ze.pending_buf,Ze.pending,0)),Ze.gzindex=0,Ze.status=69):(Te(Ze,0),Te(Ze,0),Te(Ze,0),Te(Ze,0),Te(Ze,0),Te(Ze,Ze.level===9?2:2<=Ze.strategy||Ze.level<2?4:0),Te(Ze,3),Ze.status=ye);else{var Ot=Ae+(Ze.w_bits-8<<4)<<8;Ot|=(2<=Ze.strategy||Ze.level<2?0:Ze.level<6?1:Ze.level===6?2:3)<<6,Ze.strstart!==0&&(Ot|=32),Ot+=31-Ot%31,Ze.status=ye,je(Ze,Ot),Ze.strstart!==0&&(je(Ze,Qe.adler>>>16),je(Ze,65535&Qe.adler)),Qe.adler=1}if(Ze.status===69)if(Ze.gzhead.extra){for($e=Ze.pending;Ze.gzindex<(65535&Ze.gzhead.extra.length)&&(Ze.pending!==Ze.pending_buf_size||(Ze.gzhead.hcrc&&Ze.pending>$e&&(Qe.adler=F(Qe.adler,Ze.pending_buf,Ze.pending-$e,$e)),Ge(Qe),$e=Ze.pending,Ze.pending!==Ze.pending_buf_size));)Te(Ze,255&Ze.gzhead.extra[Ze.gzindex]),Ze.gzindex++;Ze.gzhead.hcrc&&Ze.pending>$e&&(Qe.adler=F(Qe.adler,Ze.pending_buf,Ze.pending-$e,$e)),Ze.gzindex===Ze.gzhead.extra.length&&(Ze.gzindex=0,Ze.status=73)}else Ze.status=73;if(Ze.status===73)if(Ze.gzhead.name){$e=Ze.pending;do{if(Ze.pending===Ze.pending_buf_size&&(Ze.gzhead.hcrc&&Ze.pending>$e&&(Qe.adler=F(Qe.adler,Ze.pending_buf,Ze.pending-$e,$e)),Ge(Qe),$e=Ze.pending,Ze.pending===Ze.pending_buf_size)){nt=1;break}nt=Ze.gzindex$e&&(Qe.adler=F(Qe.adler,Ze.pending_buf,Ze.pending-$e,$e)),nt===0&&(Ze.gzindex=0,Ze.status=91)}else Ze.status=91;if(Ze.status===91)if(Ze.gzhead.comment){$e=Ze.pending;do{if(Ze.pending===Ze.pending_buf_size&&(Ze.gzhead.hcrc&&Ze.pending>$e&&(Qe.adler=F(Qe.adler,Ze.pending_buf,Ze.pending-$e,$e)),Ge(Qe),$e=Ze.pending,Ze.pending===Ze.pending_buf_size)){nt=1;break}nt=Ze.gzindex$e&&(Qe.adler=F(Qe.adler,Ze.pending_buf,Ze.pending-$e,$e)),nt===0&&(Ze.status=103)}else Ze.status=103;if(Ze.status===103&&(Ze.gzhead.hcrc?(Ze.pending+2>Ze.pending_buf_size&&Ge(Qe),Ze.pending+2<=Ze.pending_buf_size&&(Te(Ze,255&Qe.adler),Te(Ze,Qe.adler>>8&255),Qe.adler=0,Ze.status=ye)):Ze.status=ye),Ze.pending!==0){if(Ge(Qe),Qe.avail_out===0)return Ze.last_flush=-1,V}else if(Qe.avail_in===0&&et(_t)<=et(Ft)&&_t!==W)return rt(Qe,-5);if(Ze.status===666&&Qe.avail_in!==0)return rt(Qe,-5);if(Qe.avail_in!==0||Ze.lookahead!==0||_t!==H&&Ze.status!==666){var He=Ze.strategy===2?function(Je,tt){for(var mt;;){if(Je.lookahead===0&&(Me(Je),Je.lookahead===0)){if(tt===H)return ae;break}if(Je.match_length=0,mt=D._tr_tally(Je,0,Je.window[Je.strstart]),Je.lookahead--,Je.strstart++,mt&&(Be(Je,!1),Je.strm.avail_out===0))return ae}return Je.insert=0,tt===W?(Be(Je,!0),Je.strm.avail_out===0?Fe:_e):Je.last_lit&&(Be(Je,!1),Je.strm.avail_out===0)?ae:me}(Ze,_t):Ze.strategy===3?function(Je,tt){for(var mt,Xe,Ye,ot,yt=Je.window;;){if(Je.lookahead<=X){if(Me(Je),Je.lookahead<=X&&tt===H)return ae;if(Je.lookahead===0)break}if(Je.match_length=0,Je.lookahead>=z&&0Je.lookahead&&(Je.match_length=Je.lookahead)}if(Je.match_length>=z?(mt=D._tr_tally(Je,1,Je.match_length-z),Je.lookahead-=Je.match_length,Je.strstart+=Je.match_length,Je.match_length=0):(mt=D._tr_tally(Je,0,Je.window[Je.strstart]),Je.lookahead--,Je.strstart++),mt&&(Be(Je,!1),Je.strm.avail_out===0))return ae}return Je.insert=0,tt===W?(Be(Je,!0),Je.strm.avail_out===0?Fe:_e):Je.last_lit&&(Be(Je,!1),Je.strm.avail_out===0)?ae:me}(Ze,_t):S[Ze.level].func(Ze,_t);if(He!==Fe&&He!==_e||(Ze.status=666),He===ae||He===Fe)return Qe.avail_out===0&&(Ze.last_flush=-1),V;if(He===me&&(_t===1?D._tr_align(Ze):_t!==5&&(D._tr_stored_block(Ze,0,0,!1),_t===3&&(st(Ze.head),Ze.lookahead===0&&(Ze.strstart=0,Ze.block_start=0,Ze.insert=0))),Ge(Qe),Qe.avail_out===0))return Ze.last_flush=-1,V}return _t!==W?V:Ze.wrap<=0?1:(Ze.wrap===2?(Te(Ze,255&Qe.adler),Te(Ze,Qe.adler>>8&255),Te(Ze,Qe.adler>>16&255),Te(Ze,Qe.adler>>24&255),Te(Ze,255&Qe.total_in),Te(Ze,Qe.total_in>>8&255),Te(Ze,Qe.total_in>>16&255),Te(Ze,Qe.total_in>>24&255)):(je(Ze,Qe.adler>>>16),je(Ze,65535&Qe.adler)),Ge(Qe),0=Ft.w_size&&(nt===0&&(st(Ft.head),Ft.strstart=0,Ft.block_start=0,Ft.insert=0),tt=new _.Buf8(Ft.w_size),_.arraySet(tt,_t,mt-Ft.w_size,Ft.w_size,0),_t=tt,mt=Ft.w_size),Ot=Qe.avail_in,He=Qe.next_in,Je=Qe.input,Qe.avail_in=mt,Qe.next_in=0,Qe.input=_t,Me(Ft);Ft.lookahead>=z;){for(Ze=Ft.strstart,$e=Ft.lookahead-(z-1);Ft.ins_h=(Ft.ins_h<>>=z=q>>>24,we-=z,(z=q>>>16&255)==0)me[N++]=65535&q;else{if(!(16&z)){if(!(64&z)){q=Z[(65535&q)+(Ae&(1<>>=z,we-=z),we<15&&(Ae+=ae[T++]<>>=z=q>>>24,we-=z,!(16&(z=q>>>16&255))){if(!(64&z)){q=ne[(65535&q)+(Ae&(1<>>=z,we-=z,(z=N-H)>3,Ae&=(1<<(we-=X<<3))-1,S.next_in=T,S.next_out=N,S.avail_in=T>>24&255)+(oe>>>8&65280)+((65280&oe)<<8)+((255&oe)<<24)}function Ae(){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 S.Buf16(320),this.work=new S.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function we(oe){var ye;return oe&&oe.state?(ye=oe.state,oe.total_in=oe.total_out=ye.total=0,oe.msg="",ye.wrap&&(oe.adler=1&ye.wrap),ye.mode=te,ye.last=0,ye.havedict=0,ye.dmax=32768,ye.head=null,ye.hold=0,ye.bits=0,ye.lencode=ye.lendyn=new S.Buf32(ue),ye.distcode=ye.distdyn=new S.Buf32(fe),ye.sane=1,ye.back=-1,W):V}function Z(oe){var ye;return oe&&oe.state?((ye=oe.state).wsize=0,ye.whave=0,ye.wnext=0,we(oe)):V}function ne(oe,ye){var ae,me;return oe&&oe.state?(me=oe.state,ye<0?(ae=0,ye=-ye):(ae=1+(ye>>4),ye<48&&(ye&=15)),ye&&(ye<8||15=_e.wsize?(S.arraySet(_e.window,ye,ae-_e.wsize,_e.wsize,0),_e.wnext=0,_e.whave=_e.wsize):(me<(Fe=_e.wsize-_e.wnext)&&(Fe=me),S.arraySet(_e.window,ye,ae-me,Fe,_e.wnext),(me-=Fe)?(S.arraySet(_e.window,ye,ae-me,me,0),_e.wnext=me,_e.whave=_e.wsize):(_e.wnext+=Fe,_e.wnext===_e.wsize&&(_e.wnext=0),_e.whave<_e.wsize&&(_e.whave+=Fe))),0}B.inflateReset=Z,B.inflateReset2=ne,B.inflateResetKeep=we,B.inflateInit=function(oe){return j(oe,15)},B.inflateInit2=j,B.inflate=function(oe,ye){var ae,me,Fe,_e,rt,et,st,Ge,Be,Te,je,lt,Me,Ke,Rt,Ie,Re,qe,pt,Lt,Qe,_t,Ft,Ze,$e=0,nt=new S.Buf8(4),Ot=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!oe||!oe.state||!oe.output||!oe.input&&oe.avail_in!==0)return V;(ae=oe.state).mode===12&&(ae.mode=13),rt=oe.next_out,Fe=oe.output,st=oe.avail_out,_e=oe.next_in,me=oe.input,et=oe.avail_in,Ge=ae.hold,Be=ae.bits,Te=et,je=st,_t=W;e:for(;;)switch(ae.mode){case te:if(ae.wrap===0){ae.mode=13;break}for(;Be<16;){if(et===0)break e;et--,Ge+=me[_e++]<>>8&255,ae.check=D(ae.check,nt,2,0),Be=Ge=0,ae.mode=2;break}if(ae.flags=0,ae.head&&(ae.head.done=!1),!(1&ae.wrap)||(((255&Ge)<<8)+(Ge>>8))%31){oe.msg="incorrect header check",ae.mode=30;break}if((15&Ge)!=8){oe.msg="unknown compression method",ae.mode=30;break}if(Be-=4,Qe=8+(15&(Ge>>>=4)),ae.wbits===0)ae.wbits=Qe;else if(Qe>ae.wbits){oe.msg="invalid window size",ae.mode=30;break}ae.dmax=1<>8&1),512&ae.flags&&(nt[0]=255&Ge,nt[1]=Ge>>>8&255,ae.check=D(ae.check,nt,2,0)),Be=Ge=0,ae.mode=3;case 3:for(;Be<32;){if(et===0)break e;et--,Ge+=me[_e++]<>>8&255,nt[2]=Ge>>>16&255,nt[3]=Ge>>>24&255,ae.check=D(ae.check,nt,4,0)),Be=Ge=0,ae.mode=4;case 4:for(;Be<16;){if(et===0)break e;et--,Ge+=me[_e++]<>8),512&ae.flags&&(nt[0]=255&Ge,nt[1]=Ge>>>8&255,ae.check=D(ae.check,nt,2,0)),Be=Ge=0,ae.mode=5;case 5:if(1024&ae.flags){for(;Be<16;){if(et===0)break e;et--,Ge+=me[_e++]<>>8&255,ae.check=D(ae.check,nt,2,0)),Be=Ge=0}else ae.head&&(ae.head.extra=null);ae.mode=6;case 6:if(1024&ae.flags&&(et<(lt=ae.length)&&(lt=et),lt&&(ae.head&&(Qe=ae.head.extra_len-ae.length,ae.head.extra||(ae.head.extra=new Array(ae.head.extra_len)),S.arraySet(ae.head.extra,me,_e,lt,Qe)),512&ae.flags&&(ae.check=D(ae.check,me,lt,_e)),et-=lt,_e+=lt,ae.length-=lt),ae.length))break e;ae.length=0,ae.mode=7;case 7:if(2048&ae.flags){if(et===0)break e;for(lt=0;Qe=me[_e+lt++],ae.head&&Qe&&ae.length<65536&&(ae.head.name+=String.fromCharCode(Qe)),Qe&<>9&1,ae.head.done=!0),oe.adler=ae.check=0,ae.mode=12;break;case 10:for(;Be<32;){if(et===0)break e;et--,Ge+=me[_e++]<>>=7&Be,Be-=7&Be,ae.mode=27;break}for(;Be<3;){if(et===0)break e;et--,Ge+=me[_e++]<>>=1)){case 0:ae.mode=14;break;case 1:if(X(ae),ae.mode=20,ye!==6)break;Ge>>>=2,Be-=2;break e;case 2:ae.mode=17;break;case 3:oe.msg="invalid block type",ae.mode=30}Ge>>>=2,Be-=2;break;case 14:for(Ge>>>=7&Be,Be-=7&Be;Be<32;){if(et===0)break e;et--,Ge+=me[_e++]<>>16^65535)){oe.msg="invalid stored block lengths",ae.mode=30;break}if(ae.length=65535&Ge,Be=Ge=0,ae.mode=15,ye===6)break e;case 15:ae.mode=16;case 16:if(lt=ae.length){if(et>>=5,Be-=5,ae.ndist=1+(31&Ge),Ge>>>=5,Be-=5,ae.ncode=4+(15&Ge),Ge>>>=4,Be-=4,286>>=3,Be-=3}for(;ae.have<19;)ae.lens[Ot[ae.have++]]=0;if(ae.lencode=ae.lendyn,ae.lenbits=7,Ft={bits:ae.lenbits},_t=F(0,ae.lens,0,19,ae.lencode,0,ae.work,Ft),ae.lenbits=Ft.bits,_t){oe.msg="invalid code lengths set",ae.mode=30;break}ae.have=0,ae.mode=19;case 19:for(;ae.have>>16&255,Re=65535&$e,!((Rt=$e>>>24)<=Be);){if(et===0)break e;et--,Ge+=me[_e++]<>>=Rt,Be-=Rt,ae.lens[ae.have++]=Re;else{if(Re===16){for(Ze=Rt+2;Be>>=Rt,Be-=Rt,ae.have===0){oe.msg="invalid bit length repeat",ae.mode=30;break}Qe=ae.lens[ae.have-1],lt=3+(3&Ge),Ge>>>=2,Be-=2}else if(Re===17){for(Ze=Rt+3;Be>>=Rt)),Ge>>>=3,Be-=3}else{for(Ze=Rt+7;Be>>=Rt)),Ge>>>=7,Be-=7}if(ae.have+lt>ae.nlen+ae.ndist){oe.msg="invalid bit length repeat",ae.mode=30;break}for(;lt--;)ae.lens[ae.have++]=Qe}}if(ae.mode===30)break;if(ae.lens[256]===0){oe.msg="invalid code -- missing end-of-block",ae.mode=30;break}if(ae.lenbits=9,Ft={bits:ae.lenbits},_t=F(N,ae.lens,0,ae.nlen,ae.lencode,0,ae.work,Ft),ae.lenbits=Ft.bits,_t){oe.msg="invalid literal/lengths set",ae.mode=30;break}if(ae.distbits=6,ae.distcode=ae.distdyn,Ft={bits:ae.distbits},_t=F(H,ae.lens,ae.nlen,ae.ndist,ae.distcode,0,ae.work,Ft),ae.distbits=Ft.bits,_t){oe.msg="invalid distances set",ae.mode=30;break}if(ae.mode=20,ye===6)break e;case 20:ae.mode=21;case 21:if(6<=et&&258<=st){oe.next_out=rt,oe.avail_out=st,oe.next_in=_e,oe.avail_in=et,ae.hold=Ge,ae.bits=Be,T(oe,je),rt=oe.next_out,Fe=oe.output,st=oe.avail_out,_e=oe.next_in,me=oe.input,et=oe.avail_in,Ge=ae.hold,Be=ae.bits,ae.mode===12&&(ae.back=-1);break}for(ae.back=0;Ie=($e=ae.lencode[Ge&(1<>>16&255,Re=65535&$e,!((Rt=$e>>>24)<=Be);){if(et===0)break e;et--,Ge+=me[_e++]<>qe)])>>>16&255,Re=65535&$e,!(qe+(Rt=$e>>>24)<=Be);){if(et===0)break e;et--,Ge+=me[_e++]<>>=qe,Be-=qe,ae.back+=qe}if(Ge>>>=Rt,Be-=Rt,ae.back+=Rt,ae.length=Re,Ie===0){ae.mode=26;break}if(32&Ie){ae.back=-1,ae.mode=12;break}if(64&Ie){oe.msg="invalid literal/length code",ae.mode=30;break}ae.extra=15&Ie,ae.mode=22;case 22:if(ae.extra){for(Ze=ae.extra;Be>>=ae.extra,Be-=ae.extra,ae.back+=ae.extra}ae.was=ae.length,ae.mode=23;case 23:for(;Ie=($e=ae.distcode[Ge&(1<>>16&255,Re=65535&$e,!((Rt=$e>>>24)<=Be);){if(et===0)break e;et--,Ge+=me[_e++]<>qe)])>>>16&255,Re=65535&$e,!(qe+(Rt=$e>>>24)<=Be);){if(et===0)break e;et--,Ge+=me[_e++]<>>=qe,Be-=qe,ae.back+=qe}if(Ge>>>=Rt,Be-=Rt,ae.back+=Rt,64&Ie){oe.msg="invalid distance code",ae.mode=30;break}ae.offset=Re,ae.extra=15&Ie,ae.mode=24;case 24:if(ae.extra){for(Ze=ae.extra;Be>>=ae.extra,Be-=ae.extra,ae.back+=ae.extra}if(ae.offset>ae.dmax){oe.msg="invalid distance too far back",ae.mode=30;break}ae.mode=25;case 25:if(st===0)break e;if(lt=je-st,ae.offset>lt){if((lt=ae.offset-lt)>ae.whave&&ae.sane){oe.msg="invalid distance too far back",ae.mode=30;break}Me=lt>ae.wnext?(lt-=ae.wnext,ae.wsize-lt):ae.wnext-lt,lt>ae.length&&(lt=ae.length),Ke=ae.window}else Ke=Fe,Me=rt-ae.offset,lt=ae.length;for(stJ?(z=Me[Ke+fe[ye]],Be[Te+fe[ye]]):(z=96,0),Ae=1<>rt)+(we-=Ae)]=q<<24|z<<16|X,we!==0;);for(Ae=1<>=1;if(Ae!==0?(Ge&=Ae-1,Ge+=Ae):Ge=0,ye++,--je[oe]==0){if(oe===me)break;oe=H[W+fe[ye]]}if(Fe>>7)]}function Te($e,nt){$e.pending_buf[$e.pending++]=255&nt,$e.pending_buf[$e.pending++]=nt>>>8&255}function je($e,nt,Ot){$e.bi_valid>de-Ot?($e.bi_buf|=nt<<$e.bi_valid&65535,Te($e,$e.bi_buf),$e.bi_buf=nt>>de-$e.bi_valid,$e.bi_valid+=Ot-de):($e.bi_buf|=nt<<$e.bi_valid&65535,$e.bi_valid+=Ot)}function lt($e,nt,Ot){je($e,Ot[2*nt],Ot[2*nt+1])}function Me($e,nt){for(var Ot=0;Ot|=1&$e,$e>>>=1,Ot<<=1,0<--nt;);return Ot>>>1}function Ke($e,nt,Ot){var He,Je,tt=new Array(fe+1),mt=0;for(He=1;He<=fe;He++)tt[He]=mt=mt+Ot[He-1]<<1;for(Je=0;Je<=nt;Je++){var Xe=$e[2*Je+1];Xe!==0&&($e[2*Je]=Me(tt[Xe]++,Xe))}}function Rt($e){var nt;for(nt=0;nt>1;1<=Ot;Ot--)qe($e,tt,Ot);for(Je=Ye;Ot=$e.heap[1],$e.heap[1]=$e.heap[$e.heap_len--],qe($e,tt,1),He=$e.heap[1],$e.heap[--$e.heap_max]=Ot,$e.heap[--$e.heap_max]=He,tt[2*Je]=tt[2*Ot]+tt[2*He],$e.depth[Je]=($e.depth[Ot]>=$e.depth[He]?$e.depth[Ot]:$e.depth[He])+1,tt[2*Ot+1]=tt[2*He+1]=Je,$e.heap[1]=Je++,qe($e,tt,1),2<=$e.heap_len;);$e.heap[--$e.heap_max]=$e.heap[1],function(yt,Mt){var cr,$t,Hr,mr,sr,Yr,Mr=Mt.dyn_tree,Dr=Mt.max_code,nn=Mt.stat_desc.static_tree,Sr=Mt.stat_desc.has_stree,tn=Mt.stat_desc.extra_bits,Cn=Mt.stat_desc.extra_base,Jn=Mt.stat_desc.max_length,Rr=0;for(mr=0;mr<=fe;mr++)yt.bl_count[mr]=0;for(Mr[2*yt.heap[yt.heap_max]+1]=0,cr=yt.heap_max+1;cr>=7;Je>>=1)if(1&ot&&Xe.dyn_ltree[2*Ye]!==0)return _;if(Xe.dyn_ltree[18]!==0||Xe.dyn_ltree[20]!==0||Xe.dyn_ltree[26]!==0)return D;for(Ye=32;Ye>>3,(tt=$e.static_len+3+7>>>3)<=Je&&(Je=tt)):Je=tt=Ot+5,Ot+4<=Je&&nt!==-1?Ze($e,nt,Ot,He):$e.strategy===4||tt===Je?(je($e,2+(He?1:0),3),pt($e,se,oe)):(je($e,4+(He?1:0),3),function(Xe,Ye,ot,yt){var Mt;for(je(Xe,Ye-257,5),je(Xe,ot-1,5),je(Xe,yt-4,4),Mt=0;Mt>>8&255,$e.pending_buf[$e.d_buf+2*$e.last_lit+1]=255&nt,$e.pending_buf[$e.l_buf+$e.last_lit]=255&Ot,$e.last_lit++,nt===0?$e.dyn_ltree[2*Ot]++:($e.matches++,nt--,$e.dyn_ltree[2*(ae[Ot]+H+1)]++,$e.dyn_dtree[2*Be(nt)]++),$e.last_lit===$e.lit_bufsize-1},B._tr_align=function($e){var nt;je($e,2,3),lt($e,we,se),(nt=$e).bi_valid===16?(Te(nt,nt.bi_buf),nt.bi_buf=0,nt.bi_valid=0):8<=nt.bi_valid&&(nt.pending_buf[nt.pending++]=255&nt.bi_buf,nt.bi_buf>>=8,nt.bi_valid-=8)}},{"../utils/common":41}],53:[function(I,E,B){E.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(I,E,B){(function(S){(function(_,D){if(!_.setImmediate){var T,F,N,H,W=1,V={},te=!1,ue=_.document,fe=Object.getPrototypeOf&&Object.getPrototypeOf(_);fe=fe&&fe.setTimeout?fe:_,T={}.toString.call(_.process)==="[object process]"?function(Z){h.nextTick(function(){Ae(Z)})}:function(){if(_.postMessage&&!_.importScripts){var Z=!0,ne=_.onmessage;return _.onmessage=function(){Z=!1},_.postMessage("","*"),_.onmessage=ne,Z}}()?(H="setImmediate$"+Math.random()+"$",_.addEventListener?_.addEventListener("message",we,!1):_.attachEvent("onmessage",we),function(Z){_.postMessage(H+Z,"*")}):_.MessageChannel?((N=new MessageChannel).port1.onmessage=function(Z){Ae(Z.data)},function(Z){N.port2.postMessage(Z)}):ue&&"onreadystatechange"in ue.createElement("script")?(F=ue.documentElement,function(Z){var ne=ue.createElement("script");ne.onreadystatechange=function(){Ae(Z),ne.onreadystatechange=null,F.removeChild(ne),ne=null},F.appendChild(ne)}):function(Z){setTimeout(Ae,0,Z)},fe.setImmediate=function(Z){typeof Z!="function"&&(Z=new Function(""+Z));for(var ne=new Array(arguments.length-1),j=0;j"u"?S===void 0?this:S:self)}).call(this,d!==void 0?d:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,a("_process"),Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{},a("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],a("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(a,c,u){(function(h){(function(){var d="[object Symbol]",p=/[\\^$.*+?()[\]{}|]/g,g=RegExp(p.source),A=typeof h=="object"&&h&&h.Object===Object&&h,m=typeof self=="object"&&self&&self.Object===Object&&self,y=A||m||Function("return this")(),b=Object.prototype.toString,I=y.Symbol,E=I?I.prototype:void 0,B=E?E.toString:void 0;function S(N){if(typeof N=="string")return N;if(D(N))return B?B.call(N):"";var H=N+"";return H=="0"&&1/N==-1/0?"-0":H}function _(N){return!!N&&typeof N=="object"}function D(N){return typeof N=="symbol"||_(N)&&b.call(N)==d}function T(N){return N==null?"":S(N)}function F(N){return(N=T(N))&&g.test(N)?N.replace(p,"\\$&"):N}c.exports=F}).call(this)}).call(this,Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(a,c,u){(function(h){(function(){var d=200,p="Expected a function",g="__lodash_hash_undefined__",A=1,m=2,y=9007199254740991,b="[object Arguments]",I="[object Array]",E="[object Boolean]",B="[object Date]",S="[object Error]",_="[object Function]",D="[object GeneratorFunction]",T="[object Map]",F="[object Number]",N="[object Object]",H="[object Promise]",W="[object RegExp]",V="[object Set]",te="[object String]",ue="[object Symbol]",fe="[object WeakMap]",de="[object ArrayBuffer]",Ae="[object DataView]",we="[object Float64Array]",Z="[object Int8Array]",ne="[object Int16Array]",j="[object Int32Array]",J="[object Uint8Array]",q="[object Uint8ClampedArray]",z="[object Uint16Array]",X="[object Uint32Array]",se=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oe=/^\w*$/,ye=/^\./,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,me=/[\\^$.*+?()[\]{}|]/g,Fe=/\\(\\)?/g,_e=/^\[object .+?Constructor\]$/,rt=/^(?:0|[1-9]\d*)$/,et={};et["[object Float32Array]"]=et[we]=et[Z]=et[ne]=et[j]=et[J]=et[q]=et[z]=et[X]=!0,et[b]=et[I]=et[de]=et[E]=et[Ae]=et[B]=et[S]=et[_]=et[T]=et[F]=et[N]=et[W]=et[V]=et[te]=et[fe]=!1;var st=typeof h=="object"&&h&&h.Object===Object&&h,Ge=typeof self=="object"&&self&&self.Object===Object&&self,Be=st||Ge||Function("return this")(),Te=typeof u=="object"&&u&&!u.nodeType&&u,je=Te&&typeof c=="object"&&c&&!c.nodeType&&c,lt=je&&je.exports===Te&&st.process,Me=function(){try{return lt&<.binding("util")}catch{}}(),Ke=Me&&Me.isTypedArray;function Rt(Ue,At,qt,Cr){for(var Sn=-1,Qr=Ue?Ue.length:0;++Sn-1}function Pt(Ue,At){var qt=this.__data__,Cr=UA(qt,Ue);return Cr<0?qt.push([Ue,At]):qt[Cr][1]=At,this}function Zt(Ue){var At=-1,qt=Ue?Ue.length:0;for(this.clear();++AtNa))return!1;var To=Qr.get(Ue);if(To&&Qr.get(At))return To==At;var Lo=-1,Is=!0,Ls=Sn&A?new is:void 0;for(Qr.set(Ue,At),Qr.set(At,Ue);++Lo-1&&Ue%1==0&&Ue-1&&Ue%1==0&&Ue<=y}function lr(Ue){var At=typeof Ue;return!!Ue&&(At=="object"||At=="function")}function Or(Ue){return!!Ue&&typeof Ue=="object"}function Xr(Ue){return typeof Ue=="symbol"||Or(Ue)&&Ye.call(Ue)==ue}var hn=Ke?pt(Ke):e0;function Pn(Ue){return Ue==null?"":vc(Ue)}function Xn(Ue,At,qt){var Cr=Ue==null?void 0:_f(Ue,At);return Cr===void 0?qt:Cr}function ti(Ue,At){return Ue!=null&&yg(Ue,At,Zp)}function Jt(Ue){return gt(Ue)?Ul(Ue):t0(Ue)}function gr(Ue){return Ue}function Ar(Ue){return fh(Ue)?Re(jo(Ue)):r0(Ue)}c.exports=Wt}).call(this)}).call(this,Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(a,c,u){var h="[object Boolean]",d=Object.prototype.toString;function p(A){return A===!0||A===!1||g(A)&&d.call(A)==h}function g(A){return!!A&&typeof A=="object"}c.exports=p},{}],445:[function(a,c,u){(function(h){(function(){var d=200,p="__lodash_hash_undefined__",g=1,A=2,m=9007199254740991,y="[object Arguments]",b="[object Array]",I="[object AsyncFunction]",E="[object Boolean]",B="[object Date]",S="[object Error]",_="[object Function]",D="[object GeneratorFunction]",T="[object Map]",F="[object Number]",N="[object Null]",H="[object Object]",W="[object Promise]",V="[object Proxy]",te="[object RegExp]",ue="[object Set]",fe="[object String]",de="[object Symbol]",Ae="[object Undefined]",we="[object WeakMap]",Z="[object ArrayBuffer]",ne="[object DataView]",j="[object Float64Array]",J="[object Int8Array]",q="[object Int16Array]",z="[object Int32Array]",X="[object Uint8Array]",se="[object Uint8ClampedArray]",oe="[object Uint16Array]",ye="[object Uint32Array]",ae=/[\\^$.*+?()[\]{}|]/g,me=/^\[object .+?Constructor\]$/,Fe=/^(?:0|[1-9]\d*)$/,_e={};_e["[object Float32Array]"]=_e[j]=_e[J]=_e[q]=_e[z]=_e[X]=_e[se]=_e[oe]=_e[ye]=!0,_e[y]=_e[b]=_e[Z]=_e[E]=_e[ne]=_e[B]=_e[S]=_e[_]=_e[T]=_e[F]=_e[H]=_e[te]=_e[ue]=_e[fe]=_e[we]=!1;var rt=typeof h=="object"&&h&&h.Object===Object&&h,et=typeof self=="object"&&self&&self.Object===Object&&self,st=rt||et||Function("return this")(),Ge=typeof u=="object"&&u&&!u.nodeType&&u,Be=Ge&&typeof c=="object"&&c&&!c.nodeType&&c,Te=Be&&Be.exports===Ge,je=Te&&rt.process,lt=function(){try{return je&&je.binding&&je.binding("util")}catch{}}(),Me=lt&<.isTypedArray;function Ke(bt,Wt){for(var _r=-1,ce=bt==null?0:bt.length,Ce=0,Oe=[];++_r-1}function vn(bt,Wt){var _r=this.__data__,ce=Yh(_r,bt);return ce<0?(++this.size,_r.push([bt,Wt])):_r[ce][1]=Wt,this}function jn(bt){var Wt=-1,_r=bt==null?0:bt.length;for(this.clear();++Wt<_r;){var ce=bt[Wt];this.set(ce[0],ce[1])}}function ba(){this.size=0,this.__data__={hash:new kn,map:new(Dr||li),string:new kn}}function aa(bt){var Wt=ms(this,bt).delete(bt);return this.size-=Wt?1:0,Wt}function wo(bt){return ms(this,bt).get(bt)}function is(bt){return ms(this,bt).has(bt)}function as(bt,Wt){var _r=ms(this,bt),ce=_r.size;return _r.set(bt,Wt),this.size+=_r.size==ce?0:1,this}function vs(bt){var Wt=-1,_r=bt==null?0:bt.length;for(this.__data__=new jn;++Wt<_r;)this.add(bt[Wt])}function lo(bt){return this.__data__.set(bt,p),this}function ra(bt){return this.__data__.has(bt)}function pi(bt){var Wt=this.__data__=new li(bt);this.size=Wt.size}function Ms(){this.__data__=new li,this.size=0}function Fs(bt){var Wt=this.__data__,_r=Wt.delete(bt);return this.size=Wt.size,_r}function zu(bt){return this.__data__.get(bt)}function Ul(bt){return this.__data__.has(bt)}function UA(bt,Wt){var _r=this.__data__;if(_r instanceof li){var ce=_r.__data__;if(!Dr||ce.lengthNt))return!1;var fr=Oe.get(bt);if(fr&&Oe.get(Wt))return fr==Wt;var lr=-1,Or=!0,Xr=_r&A?new vs:void 0;for(Oe.set(bt,Wt),Oe.set(Wt,bt);++lr-1&&bt%1==0&&bt-1&&bt%1==0&&bt<=m}function Rf(bt){var Wt=typeof bt;return bt!=null&&(Wt=="object"||Wt=="function")}function Ah(bt){return bt!=null&&typeof bt=="object"}var Jh=Me?qe(Me):Xp;function al(bt){return pu(bt)?os(bt):$p(bt)}function Mf(){return[]}function jo(){return!1}c.exports=mg}).call(this)}).call(this,Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(a,c,u){(function(h){(function(){var d="[object AsyncFunction]",p="[object Function]",g="[object GeneratorFunction]",A="[object Null]",m="[object Proxy]",y="[object Undefined]",b=typeof h=="object"&&h&&h.Object===Object&&h,I=typeof self=="object"&&self&&self.Object===Object&&self,E=b||I||Function("return this")(),B=Object.prototype,S=B.hasOwnProperty,_=B.toString,D=E.Symbol,T=D?D.toStringTag:void 0;function F(te){return te==null?te===void 0?y:A:T&&T in Object(te)?N(te):H(te)}function N(te){var ue=S.call(te,T),fe=te[T];try{te[T]=void 0;var de=!0}catch{}var Ae=_.call(te);return de&&(ue?te[T]=fe:delete te[T]),Ae}function H(te){return _.call(te)}function W(te){if(!V(te))return!1;var ue=F(te);return ue==p||ue==g||ue==d||ue==m}function V(te){var ue=typeof te;return te!=null&&(ue=="object"||ue=="function")}c.exports=W}).call(this)}).call(this,Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(a,c,u){function h(d){return d==null}c.exports=h},{}],448:[function(a,c,u){function h(d){return d===void 0}c.exports=h},{}],449:[function(a,c,u){(function(h){(function(){var d=200,p="__lodash_hash_undefined__",g=1/0,A="[object Function]",m="[object GeneratorFunction]",y=/[\\^$.*+?()[\]{}|]/g,b=/^\[object .+?Constructor\]$/,I=typeof h=="object"&&h&&h.Object===Object&&h,E=typeof self=="object"&&self&&self.Object===Object&&self,B=I||E||Function("return this")();function S(Ye,ot){return!(!Ye||!Ye.length)&&D(Ye,ot,0)>-1}function _(Ye,ot,yt,Mt){for(var cr=Ye.length,$t=yt+-1;++$t-1}function Be(Ye,ot){var yt=this.__data__,Mt=pt(yt,Ye);return Mt<0?yt.push([Ye,ot]):yt[Mt][1]=ot,this}function Te(Ye){var ot=-1,yt=Ye?Ye.length:0;for(this.clear();++ot=d){var Yr=_t(Ye);if(Yr)return W(Yr);Hr=!1,cr=F,sr=new Ie}else sr=mr;e:for(;++Mt<$t;){var Mr=Ye[Mt],Dr=Mr;if(Mr=Mr!==0?Mr:0,Hr&&Dr==Dr){for(var nn=sr.length;nn--;)if(sr[nn]===Dr)continue e;mr.push(Mr)}else cr(sr,Dr,yt)||(sr!==mr&&sr.push(Dr),mr.push(Mr))}return mr}se.prototype.clear=oe,se.prototype.delete=ye,se.prototype.get=ae,se.prototype.has=me,se.prototype.set=Fe,_e.prototype.clear=rt,_e.prototype.delete=et,_e.prototype.get=st,_e.prototype.has=Ge,_e.prototype.set=Be,Te.prototype.clear=je,Te.prototype.delete=lt,Te.prototype.get=Me,Te.prototype.has=Ke,Te.prototype.set=Rt,Ie.prototype.add=Ie.prototype.push=Re,Ie.prototype.has=qe;var _t=z&&1/W(new z([,-0]))[1]==g?function(Ye){return new z(Ye)}:Xe;function Ft(Ye,ot){var yt=Ye.__data__;return $e(ot)?yt[typeof ot=="string"?"string":"hash"]:yt.map}function Ze(Ye,ot){var yt=N(Ye,ot);return Lt(yt)?yt:void 0}function $e(Ye){var ot=typeof Ye;return ot=="string"||ot=="number"||ot=="symbol"||ot=="boolean"?Ye!=="__proto__":Ye===null}function nt(Ye){return!!Ae&&Ae in Ye}function Ot(Ye){if(Ye!=null){try{return we.call(Ye)}catch{}try{return Ye+""}catch{}}return""}function He(Ye){return Ye&&Ye.length?Qe(Ye):[]}function Je(Ye,ot){return Ye===ot||Ye!=Ye&&ot!=ot}function tt(Ye){var ot=mt(Ye)?ne.call(Ye):"";return ot==A||ot==m}function mt(Ye){var ot=typeof Ye;return!!Ye&&(ot=="object"||ot=="function")}function Xe(){}c.exports=He}).call(this)}).call(this,Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(a,c,u){var h=a("inherits"),d=a("hash-base"),p=a("safe-buffer").Buffer,g=new Array(16);function A(){d.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function m(B,S){return B<>>32-S}function y(B,S,_,D,T,F,N){return m(B+(S&_|~S&D)+T+F|0,N)+S|0}function b(B,S,_,D,T,F,N){return m(B+(S&D|_&~D)+T+F|0,N)+S|0}function I(B,S,_,D,T,F,N){return m(B+(S^_^D)+T+F|0,N)+S|0}function E(B,S,_,D,T,F,N){return m(B+(_^(S|~D))+T+F|0,N)+S|0}h(A,d),A.prototype._update=function(){for(var B=g,S=0;S<16;++S)B[S]=this._block.readInt32LE(4*S);var _=this._a,D=this._b,T=this._c,F=this._d;_=y(_,D,T,F,B[0],3614090360,7),F=y(F,_,D,T,B[1],3905402710,12),T=y(T,F,_,D,B[2],606105819,17),D=y(D,T,F,_,B[3],3250441966,22),_=y(_,D,T,F,B[4],4118548399,7),F=y(F,_,D,T,B[5],1200080426,12),T=y(T,F,_,D,B[6],2821735955,17),D=y(D,T,F,_,B[7],4249261313,22),_=y(_,D,T,F,B[8],1770035416,7),F=y(F,_,D,T,B[9],2336552879,12),T=y(T,F,_,D,B[10],4294925233,17),D=y(D,T,F,_,B[11],2304563134,22),_=y(_,D,T,F,B[12],1804603682,7),F=y(F,_,D,T,B[13],4254626195,12),T=y(T,F,_,D,B[14],2792965006,17),_=b(_,D=y(D,T,F,_,B[15],1236535329,22),T,F,B[1],4129170786,5),F=b(F,_,D,T,B[6],3225465664,9),T=b(T,F,_,D,B[11],643717713,14),D=b(D,T,F,_,B[0],3921069994,20),_=b(_,D,T,F,B[5],3593408605,5),F=b(F,_,D,T,B[10],38016083,9),T=b(T,F,_,D,B[15],3634488961,14),D=b(D,T,F,_,B[4],3889429448,20),_=b(_,D,T,F,B[9],568446438,5),F=b(F,_,D,T,B[14],3275163606,9),T=b(T,F,_,D,B[3],4107603335,14),D=b(D,T,F,_,B[8],1163531501,20),_=b(_,D,T,F,B[13],2850285829,5),F=b(F,_,D,T,B[2],4243563512,9),T=b(T,F,_,D,B[7],1735328473,14),_=I(_,D=b(D,T,F,_,B[12],2368359562,20),T,F,B[5],4294588738,4),F=I(F,_,D,T,B[8],2272392833,11),T=I(T,F,_,D,B[11],1839030562,16),D=I(D,T,F,_,B[14],4259657740,23),_=I(_,D,T,F,B[1],2763975236,4),F=I(F,_,D,T,B[4],1272893353,11),T=I(T,F,_,D,B[7],4139469664,16),D=I(D,T,F,_,B[10],3200236656,23),_=I(_,D,T,F,B[13],681279174,4),F=I(F,_,D,T,B[0],3936430074,11),T=I(T,F,_,D,B[3],3572445317,16),D=I(D,T,F,_,B[6],76029189,23),_=I(_,D,T,F,B[9],3654602809,4),F=I(F,_,D,T,B[12],3873151461,11),T=I(T,F,_,D,B[15],530742520,16),_=E(_,D=I(D,T,F,_,B[2],3299628645,23),T,F,B[0],4096336452,6),F=E(F,_,D,T,B[7],1126891415,10),T=E(T,F,_,D,B[14],2878612391,15),D=E(D,T,F,_,B[5],4237533241,21),_=E(_,D,T,F,B[12],1700485571,6),F=E(F,_,D,T,B[3],2399980690,10),T=E(T,F,_,D,B[10],4293915773,15),D=E(D,T,F,_,B[1],2240044497,21),_=E(_,D,T,F,B[8],1873313359,6),F=E(F,_,D,T,B[15],4264355552,10),T=E(T,F,_,D,B[6],2734768916,15),D=E(D,T,F,_,B[13],1309151649,21),_=E(_,D,T,F,B[4],4149444226,6),F=E(F,_,D,T,B[11],3174756917,10),T=E(T,F,_,D,B[2],718787259,15),D=E(D,T,F,_,B[9],3951481745,21),this._a=this._a+_|0,this._b=this._b+D|0,this._c=this._c+T|0,this._d=this._d+F|0},A.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var B=p.allocUnsafe(16);return B.writeInt32LE(this._a,0),B.writeInt32LE(this._b,4),B.writeInt32LE(this._c,8),B.writeInt32LE(this._d,12),B},c.exports=A},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(a,c,u){var h=a("bn.js"),d=a("brorand");function p(g){this.rand=g||new d.Rand}c.exports=p,p.create=function(g){return new p(g)},p.prototype._randbelow=function(g){var A=g.bitLength(),m=Math.ceil(A/8);do var y=new h(this.rand.generate(m));while(y.cmp(g)>=0);return y},p.prototype._randrange=function(g,A){var m=A.sub(g);return g.add(this._randbelow(m))},p.prototype.test=function(g,A,m){var y=g.bitLength(),b=h.mont(g),I=new h(1).toRed(b);A||(A=Math.max(1,y/48|0));for(var E=g.subn(1),B=0;!E.testn(B);B++);for(var S=g.shrn(B),_=E.toRed(b),D=!0;A>0;A--){var T=this._randrange(new h(2),E);m&&m(T);var F=T.toRed(b).redPow(S);if(F.cmp(I)!==0&&F.cmp(_)!==0){for(var N=1;N0;A--){var _=this._randrange(new h(2),I),D=g.gcd(_);if(D.cmpn(1)!==0)return D;var T=_.toRed(y).redPow(B);if(T.cmp(b)!==0&&T.cmp(S)!==0){for(var F=1;F>8,B=255&I;E?y.push(E,B):y.push(B)}return y}function p(A){return A.length===1?"0"+A:A}function g(A){for(var m="",y=0;y=6?"utf-8":"binary":"utf-8",c.exports=p}).call(this)}).call(this,a("_process"),Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(a,c,u){var h=Math.pow(2,30)-1;c.exports=function(d,p){if(typeof d!="number")throw new TypeError("Iterations not a number");if(d<0)throw new TypeError("Bad iterations");if(typeof p!="number")throw new TypeError("Key length not a number");if(p<0||p>h||p!=p)throw new TypeError("Bad key length")}},{}],464:[function(a,c,u){var h=a("create-hash/md5"),d=a("ripemd160"),p=a("sha.js"),g=a("safe-buffer").Buffer,A=a("./precondition"),m=a("./default-encoding"),y=a("./to-buffer"),b=g.alloc(128),I={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function E(_,D,T){var F=B(_),N=_==="sha512"||_==="sha384"?128:64;D.length>N?D=F(D):D.length1)for(var H=1;H=_.length){N++;break}var H=_.slice(2,F-1);if((T.toString("hex")!=="0002"&&!D||T.toString("hex")!=="0001"&&D)&&N++,H.length<8&&N++,N)throw new Error("decryption error");return _.slice(F)}function B(S,_){S=b.from(S),_=b.from(_);var D=0,T=S.length;S.length!==_.length&&(D++,T=Math.min(S.length,_.length));for(var F=-1;++FH||new g(_).cmp(N.modulus)>=0)throw new Error("decryption error");F=D?y(new g(_),N):A(_,N);var W=b.alloc(H-F.length);if(F=b.concat([W,F],H),T===4)return I(N,F);if(T===1)return E(N,F,D);if(T===3)return F;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(a,c,u){var h=a("parse-asn1"),d=a("randombytes"),p=a("create-hash"),g=a("./mgf"),A=a("./xor"),m=a("bn.js"),y=a("./withPublic"),b=a("browserify-rsa"),I=a("safe-buffer").Buffer;function E(_,D){var T=_.modulus.byteLength(),F=D.length,N=p("sha1").update(I.alloc(0)).digest(),H=N.length,W=2*H;if(F>T-W-2)throw new Error("message too long");var V=I.alloc(T-F-W-2),te=T-H-1,ue=d(H),fe=A(I.concat([N,V,I.alloc(1,1),D],te),g(ue,te)),de=A(ue,g(fe,H));return new m(I.concat([I.alloc(1),de,fe],T))}function B(_,D,T){var F,N=D.length,H=_.modulus.byteLength();if(N>H-11)throw new Error("message too long");return F=T?I.alloc(H-N-3,255):S(H-N-3),new m(I.concat([I.from([0,T?1:2]),F,I.alloc(1),D],H))}function S(_){for(var D,T=I.allocUnsafe(_),F=0,N=d(2*_),H=0;F<_;)H===N.length&&(N=d(2*_),H=0),(D=N[H++])&&(T[F++]=D);return T}c.exports=function(_,D,T){var F;F=_.padding?_.padding:T?1:4;var N,H=h(_);if(F===4)N=E(H,D);else if(F===1)N=B(H,D,T);else{if(F!==3)throw new Error("unknown padding");if((N=new m(D)).cmp(H.modulus)>=0)throw new Error("data too long for modulus")}return T?b(N,H):y(N,H)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(a,c,u){var h=a("bn.js"),d=a("safe-buffer").Buffer;function p(g,A){return d.from(g.toRed(h.mont(A.modulus)).redPow(new h(A.publicExponent)).fromRed().toArray())}c.exports=p},{"bn.js":470,"safe-buffer":494}],474:[function(a,c,u){c.exports=function(h,d){for(var p=h.length,g=-1;++gg)throw new RangeError("requested too many random bytes");var B=m.allocUnsafe(I);if(I>0)if(I>p)for(var S=0;SI||T<0)throw new TypeError("offset must be a uint32");if(T>y||T>F)throw new RangeError("offset out of range")}function B(T,F,N){if(typeof T!="number"||T!=T)throw new TypeError("size must be a number");if(T>I||T<0)throw new TypeError("size must be a uint32");if(T+F>N||T>y)throw new RangeError("buffer too small")}function S(T,F,N,H){if(!(m.isBuffer(T)||T instanceof d.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof F=="function")H=F,F=0,N=T.length;else if(typeof N=="function")H=N,N=T.length-F;else if(typeof H!="function")throw new TypeError('"cb" argument must be a function');return E(F,T.length),B(N,F,T.length),_(T,F,N,H)}function _(T,F,N,H){if(h.browser){var W=T.buffer,V=new Uint8Array(W,F,N);return b.getRandomValues(V),H?void h.nextTick(function(){H(null,T)}):T}if(!H)return A(N).copy(T,F),T;A(N,function(te,ue){if(te)return H(te);ue.copy(T,F),H(null,T)})}function D(T,F,N){if(F===void 0&&(F=0),!(m.isBuffer(T)||T instanceof d.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return E(F,T.length),N===void 0&&(N=T.length-F),B(N,F,T.length),_(T,F,N)}b&&b.getRandomValues||!h.browser?(u.randomFill=S,u.randomFillSync=D):(u.randomFill=p,u.randomFillSync=p)}).call(this)}).call(this,a("_process"),Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(a,c,u){function h(b,I){b.prototype=Object.create(I.prototype),b.prototype.constructor=b,b.__proto__=I}var d={};function p(b,I,E){function B(_,D,T){return typeof I=="string"?I:I(_,D,T)}E||(E=Error);var S=function(_){function D(T,F,N){return _.call(this,B(T,F,N))||this}return h(D,_),D}(E);S.prototype.name=E.name,S.prototype.code=b,d[b]=S}function g(b,I){if(Array.isArray(b)){var E=b.length;return b=b.map(function(B){return String(B)}),E>2?"one of ".concat(I," ").concat(b.slice(0,E-1).join(", "),", or ")+b[E-1]:E===2?"one of ".concat(I," ").concat(b[0]," or ").concat(b[1]):"of ".concat(I," ").concat(b[0])}return"of ".concat(I," ").concat(String(b))}function A(b,I,E){return b.substr(0,I.length)===I}function m(b,I,E){return(E===void 0||E>b.length)&&(E=b.length),b.substring(E-I.length,E)===I}function y(b,I,E){return typeof E!="number"&&(E=0),!(E+I.length>b.length)&&b.indexOf(I,E)!==-1}p("ERR_INVALID_OPT_VALUE",function(b,I){return'The value "'+I+'" is invalid for option "'+b+'"'},TypeError),p("ERR_INVALID_ARG_TYPE",function(b,I,E){var B,S;if(typeof I=="string"&&A(I,"not ")?(B="must not be",I=I.replace(/^not /,"")):B="must be",m(b," argument"))S="The ".concat(b," ").concat(B," ").concat(g(I,"type"));else{var _=y(b,".")?"property":"argument";S='The "'.concat(b,'" ').concat(_," ").concat(B," ").concat(g(I,"type"))}return S+=". Received type ".concat(typeof E)},TypeError),p("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),p("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),p("ERR_STREAM_PREMATURE_CLOSE","Premature close"),p("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),p("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),p("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),p("ERR_STREAM_WRITE_AFTER_END","write after end"),p("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),p("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),p("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),c.exports.codes=d},{}],478:[function(a,c,u){(function(h){(function(){var d=Object.keys||function(B){var S=[];for(var _ in B)S.push(_);return S};c.exports=b;var p=a("./_stream_readable"),g=a("./_stream_writable");a("inherits")(b,p);for(var A=d(g.prototype),m=0;m0)if(typeof Ke=="string"||pt.objectMode||Object.getPrototypeOf(Ke)===m.prototype||(Ke=b(Ke)),Ie)pt.endEmitted?fe(Me,new ue):j(Me,pt,Ke,!0);else if(pt.ended)fe(Me,new V);else{if(pt.destroyed)return!1;pt.reading=!1,pt.decoder&&!Rt?(Ke=pt.decoder.write(Ke),pt.objectMode||Ke.length!==0?j(Me,pt,Ke,!1):ae(Me,pt)):j(Me,pt,Ke,!1)}else Ie||(pt.reading=!1,ae(Me,pt));return!pt.ended&&(pt.length=q?Me=q:(Me--,Me|=Me>>>1,Me|=Me>>>2,Me|=Me>>>4,Me|=Me>>>8,Me|=Me>>>16,Me++),Me}function X(Me,Ke){return Me<=0||Ke.length===0&&Ke.ended?0:Ke.objectMode?1:Me!=Me?Ke.flowing&&Ke.length?Ke.buffer.head.data.length:Ke.length:(Me>Ke.highWaterMark&&(Ke.highWaterMark=z(Me)),Me<=Ke.length?Me:Ke.ended?Ke.length:(Ke.needReadable=!0,0))}function se(Me,Ke){if(E("onEofChunk"),!Ke.ended){if(Ke.decoder){var Rt=Ke.decoder.end();Rt&&Rt.length&&(Ke.buffer.push(Rt),Ke.length+=Ke.objectMode?1:Rt.length)}Ke.ended=!0,Ke.sync?oe(Me):(Ke.needReadable=!1,Ke.emittedReadable||(Ke.emittedReadable=!0,ye(Me)))}}function oe(Me){var Ke=Me._readableState;E("emitReadable",Ke.needReadable,Ke.emittedReadable),Ke.needReadable=!1,Ke.emittedReadable||(E("emitReadable",Ke.flowing),Ke.emittedReadable=!0,h.nextTick(ye,Me))}function ye(Me){var Ke=Me._readableState;E("emitReadable_",Ke.destroyed,Ke.length,Ke.ended),Ke.destroyed||!Ke.length&&!Ke.ended||(Me.emit("readable"),Ke.emittedReadable=!1),Ke.needReadable=!Ke.flowing&&!Ke.ended&&Ke.length<=Ke.highWaterMark,Ge(Me)}function ae(Me,Ke){Ke.readingMore||(Ke.readingMore=!0,h.nextTick(me,Me,Ke))}function me(Me,Ke){for(;!Ke.reading&&!Ke.ended&&(Ke.length0,Ke.resumeScheduled&&!Ke.paused?Ke.flowing=!0:Me.listenerCount("data")>0&&Me.resume()}function rt(Me){E("readable nexttick read 0"),Me.read(0)}function et(Me,Ke){Ke.resumeScheduled||(Ke.resumeScheduled=!0,h.nextTick(st,Me,Ke))}function st(Me,Ke){E("resume",Ke.reading),Ke.reading||Me.read(0),Ke.resumeScheduled=!1,Me.emit("resume"),Ge(Me),Ke.flowing&&!Ke.reading&&Me.read(0)}function Ge(Me){var Ke=Me._readableState;for(E("flow",Ke.flowing);Ke.flowing&&Me.read()!==null;);}function Be(Me,Ke){return Ke.length===0?null:(Ke.objectMode?Rt=Ke.buffer.shift():!Me||Me>=Ke.length?(Rt=Ke.decoder?Ke.buffer.join(""):Ke.buffer.length===1?Ke.buffer.first():Ke.buffer.concat(Ke.length),Ke.buffer.clear()):Rt=Ke.buffer.consume(Me,Ke.decoder),Rt);var Rt}function Te(Me){var Ke=Me._readableState;E("endReadable",Ke.endEmitted),Ke.endEmitted||(Ke.ended=!0,h.nextTick(je,Ke,Me))}function je(Me,Ke){if(E("endReadableNT",Me.endEmitted,Me.length),!Me.endEmitted&&Me.length===0&&(Me.endEmitted=!0,Ke.readable=!1,Ke.emit("end"),Me.autoDestroy)){var Rt=Ke._writableState;(!Rt||Rt.autoDestroy&&Rt.finished)&&Ke.destroy()}}function lt(Me,Ke){for(var Rt=0,Ie=Me.length;Rt=Ke.highWaterMark:Ke.length>0)||Ke.ended))return E("read: emitReadable",Ke.length,Ke.ended),Ke.length===0&&Ke.ended?Te(this):oe(this),null;if((Me=X(Me,Ke))===0&&Ke.ended)return Ke.length===0&&Te(this),null;var Ie,Re=Ke.needReadable;return E("need readable",Re),(Ke.length===0||Ke.length-Me0?Be(Me,Ke):null)===null?(Ke.needReadable=Ke.length<=Ke.highWaterMark,Me=0):(Ke.length-=Me,Ke.awaitDrain=0),Ke.length===0&&(Ke.ended||(Ke.needReadable=!0),Rt!==Me&&Ke.ended&&Te(this)),Ie!==null&&this.emit("data",Ie),Ie},Z.prototype._read=function(Me){fe(this,new te("_read()"))},Z.prototype.pipe=function(Me,Ke){var Rt=this,Ie=this._readableState;switch(Ie.pipesCount){case 0:Ie.pipes=Me;break;case 1:Ie.pipes=[Ie.pipes,Me];break;default:Ie.pipes.push(Me)}Ie.pipesCount+=1,E("pipe count=%d opts=%j",Ie.pipesCount,Ke);var Re=Ke&&Ke.end===!1||Me===h.stdout||Me===h.stderr?Ot:pt;function qe(He,Je){E("onunpipe"),He===Rt&&Je&&Je.hasUnpiped===!1&&(Je.hasUnpiped=!0,_t())}function pt(){E("onend"),Me.end()}Ie.endEmitted?h.nextTick(Re):Rt.once("end",Re),Me.on("unpipe",qe);var Lt=Fe(Rt);Me.on("drain",Lt);var Qe=!1;function _t(){E("cleanup"),Me.removeListener("close",$e),Me.removeListener("finish",nt),Me.removeListener("drain",Lt),Me.removeListener("error",Ze),Me.removeListener("unpipe",qe),Rt.removeListener("end",pt),Rt.removeListener("end",Ot),Rt.removeListener("data",Ft),Qe=!0,!Ie.awaitDrain||Me._writableState&&!Me._writableState.needDrain||Lt()}function Ft(He){E("ondata");var Je=Me.write(He);E("dest.write",Je),Je===!1&&((Ie.pipesCount===1&&Ie.pipes===Me||Ie.pipesCount>1&<(Ie.pipes,Me)!==-1)&&!Qe&&(E("false write response, pause",Ie.awaitDrain),Ie.awaitDrain++),Rt.pause())}function Ze(He){E("onerror",He),Ot(),Me.removeListener("error",Ze),g(Me,"error")===0&&fe(Me,He)}function $e(){Me.removeListener("finish",nt),Ot()}function nt(){E("onfinish"),Me.removeListener("close",$e),Ot()}function Ot(){E("unpipe"),Rt.unpipe(Me)}return Rt.on("data",Ft),Ae(Me,"error",Ze),Me.once("close",$e),Me.once("finish",nt),Me.emit("pipe",Rt),Ie.flowing||(E("pipe resume"),Rt.resume()),Me},Z.prototype.unpipe=function(Me){var Ke=this._readableState,Rt={hasUnpiped:!1};if(Ke.pipesCount===0)return this;if(Ke.pipesCount===1)return Me&&Me!==Ke.pipes||(Me||(Me=Ke.pipes),Ke.pipes=null,Ke.pipesCount=0,Ke.flowing=!1,Me&&Me.emit("unpipe",this,Rt)),this;if(!Me){var Ie=Ke.pipes,Re=Ke.pipesCount;Ke.pipes=null,Ke.pipesCount=0,Ke.flowing=!1;for(var qe=0;qe0,Ie.flowing!==!1&&this.resume()):Me==="readable"&&(Ie.endEmitted||Ie.readableListening||(Ie.readableListening=Ie.needReadable=!0,Ie.flowing=!1,Ie.emittedReadable=!1,E("on readable",Ie.length,Ie.reading),Ie.length?oe(this):Ie.reading||h.nextTick(rt,this))),Rt},Z.prototype.addListener=Z.prototype.on,Z.prototype.removeListener=function(Me,Ke){var Rt=A.prototype.removeListener.call(this,Me,Ke);return Me==="readable"&&h.nextTick(_e,this),Rt},Z.prototype.removeAllListeners=function(Me){var Ke=A.prototype.removeAllListeners.apply(this,arguments);return Me!=="readable"&&Me!==void 0||h.nextTick(_e,this),Ke},Z.prototype.resume=function(){var Me=this._readableState;return Me.flowing||(E("resume"),Me.flowing=!Me.readableListening,et(this,Me)),Me.paused=!1,this},Z.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},Z.prototype.wrap=function(Me){var Ke=this,Rt=this._readableState,Ie=!1;for(var Re in Me.on("end",function(){if(E("wrapped end"),Rt.decoder&&!Rt.ended){var pt=Rt.decoder.end();pt&&pt.length&&Ke.push(pt)}Ke.push(null)}),Me.on("data",function(pt){E("wrapped data"),Rt.decoder&&(pt=Rt.decoder.write(pt)),Rt.objectMode&&pt==null||(Rt.objectMode||pt&&pt.length)&&(Ke.push(pt)||(Ie=!0,Me.pause()))}),Me)this[Re]===void 0&&typeof Me[Re]=="function"&&(this[Re]=function(pt){return function(){return Me[pt].apply(Me,arguments)}}(Re));for(var qe=0;qe-1))throw new ue(Ge);return this._writableState.defaultEncoding=Ge,this},Object.defineProperty(we.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(we.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),we.prototype._write=function(Ge,Be,Te){Te(new F("_write()"))},we.prototype._writev=null,we.prototype.end=function(Ge,Be,Te){var je=this._writableState;return typeof Ge=="function"?(Te=Ge,Ge=null,Be=null):typeof Be=="function"&&(Te=Be,Be=null),Ge!=null&&this.write(Ge,Be),je.corked&&(je.corked=1,this.uncork()),je.ending||et(this,je,Te),this},Object.defineProperty(we.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(we.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Ge){this._writableState&&(this._writableState.destroyed=Ge)}}),we.prototype.destroy=S.destroy,we.prototype._undestroy=S.undestroy,we.prototype._destroy=function(Ge,Be){Be(Ge)}}).call(this)}).call(this,a("_process"),Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(a,c,u){(function(h){(function(){var d;function p(te,ue,fe){return(ue=g(ue))in te?Object.defineProperty(te,ue,{value:fe,enumerable:!0,configurable:!0,writable:!0}):te[ue]=fe,te}function g(te){var ue=A(te,"string");return typeof ue=="symbol"?ue:String(ue)}function A(te,ue){if(typeof te!="object"||te===null)return te;var fe=te[Symbol.toPrimitive];if(fe!==void 0){var de=fe.call(te,ue);if(typeof de!="object")return de;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ue==="string"?String:Number)(te)}var m=a("./end-of-stream"),y=Symbol("lastResolve"),b=Symbol("lastReject"),I=Symbol("error"),E=Symbol("ended"),B=Symbol("lastPromise"),S=Symbol("handlePromise"),_=Symbol("stream");function D(te,ue){return{value:te,done:ue}}function T(te){var ue=te[y];if(ue!==null){var fe=te[_].read();fe!==null&&(te[B]=null,te[y]=null,te[b]=null,ue(D(fe,!1)))}}function F(te){h.nextTick(T,te)}function N(te,ue){return function(fe,de){te.then(function(){ue[E]?fe(D(void 0,!0)):ue[S](fe,de)},de)}}var H=Object.getPrototypeOf(function(){}),W=Object.setPrototypeOf((p(d={get stream(){return this[_]},next:function(){var te=this,ue=this[I];if(ue!==null)return Promise.reject(ue);if(this[E])return Promise.resolve(D(void 0,!0));if(this[_].destroyed)return new Promise(function(we,Z){h.nextTick(function(){te[I]?Z(te[I]):we(D(void 0,!0))})});var fe,de=this[B];if(de)fe=new Promise(N(de,this));else{var Ae=this[_].read();if(Ae!==null)return Promise.resolve(D(Ae,!1));fe=new Promise(this[S])}return this[B]=fe,fe}},Symbol.asyncIterator,function(){return this}),p(d,"return",function(){var te=this;return new Promise(function(ue,fe){te[_].destroy(null,function(de){de?fe(de):ue(D(void 0,!0))})})}),d),H),V=function(te){var ue,fe=Object.create(W,(p(ue={},_,{value:te,writable:!0}),p(ue,y,{value:null,writable:!0}),p(ue,b,{value:null,writable:!0}),p(ue,I,{value:null,writable:!0}),p(ue,E,{value:te._readableState.endEmitted,writable:!0}),p(ue,S,{value:function(de,Ae){var we=fe[_].read();we?(fe[B]=null,fe[y]=null,fe[b]=null,de(D(we,!1))):(fe[y]=de,fe[b]=Ae)},writable:!0}),ue));return fe[B]=null,m(te,function(de){if(de&&de.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ae=fe[b];return Ae!==null&&(fe[B]=null,fe[y]=null,fe[b]=null,Ae(de)),void(fe[I]=de)}var we=fe[y];we!==null&&(fe[B]=null,fe[y]=null,fe[b]=null,we(D(void 0,!0))),fe[E]=!0}),te.on("readable",F.bind(null,fe)),fe};c.exports=V}).call(this)}).call(this,a("_process"))},{"./end-of-stream":486,_process:467}],484:[function(a,c,u){function h(_,D){var T=Object.keys(_);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(_);D&&(F=F.filter(function(N){return Object.getOwnPropertyDescriptor(_,N).enumerable})),T.push.apply(T,F)}return T}function d(_){for(var D=1;D0?this.tail.next=T:this.head=T,this.tail=T,++this.length}},{key:"unshift",value:function(D){var T={data:D,next:this.head};this.length===0&&(this.tail=T),this.head=T,++this.length}},{key:"shift",value:function(){if(this.length!==0){var D=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,D}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(D){if(this.length===0)return"";for(var T=this.head,F=""+T.data;T=T.next;)F+=D+T.data;return F}},{key:"concat",value:function(D){if(this.length===0)return I.alloc(0);for(var T=I.allocUnsafe(D>>>0),F=this.head,N=0;F;)S(F.data,T,N),N+=F.data.length,F=F.next;return T}},{key:"consume",value:function(D,T){var F;return DH.length?H.length:D;if(W===H.length?N+=H:N+=H.slice(0,D),(D-=W)==0){W===H.length?(++F,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=H.slice(W));break}++F}return this.length-=F,N}},{key:"_getBuffer",value:function(D){var T=I.allocUnsafe(D),F=this.head,N=1;for(F.data.copy(T),D-=F.data.length;F=F.next;){var H=F.data,W=D>H.length?H.length:D;if(H.copy(T,T.length-D,0,W),(D-=W)==0){W===H.length?(++N,F.next?this.head=F.next:this.head=this.tail=null):(this.head=F,F.data=H.slice(W));break}++N}return this.length-=N,T}},{key:B,value:function(D,T){return E(this,d(d({},T),{},{depth:0,customInspect:!1}))}}]),_}()},{buffer:220,util:188}],485:[function(a,c,u){(function(h){(function(){function d(b,I){var E=this,B=this._readableState&&this._readableState.destroyed,S=this._writableState&&this._writableState.destroyed;return B||S?(I?I(b):b&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,h.nextTick(m,this,b)):h.nextTick(m,this,b)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(b||null,function(_){!I&&_?E._writableState?E._writableState.errorEmitted?h.nextTick(g,E):(E._writableState.errorEmitted=!0,h.nextTick(p,E,_)):h.nextTick(p,E,_):I?(h.nextTick(g,E),I(_)):h.nextTick(g,E)}),this)}function p(b,I){m(b,I),g(b)}function g(b){b._writableState&&!b._writableState.emitClose||b._readableState&&!b._readableState.emitClose||b.emit("close")}function A(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function m(b,I){b.emit("error",I)}function y(b,I){var E=b._readableState,B=b._writableState;E&&E.autoDestroy||B&&B.autoDestroy?b.destroy(I):b.emit("error",I)}c.exports={destroy:d,undestroy:A,errorOrDestroy:y}}).call(this)}).call(this,a("_process"))},{_process:467}],486:[function(a,c,u){var h=a("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function d(m){var y=!1;return function(){if(!y){y=!0;for(var b=arguments.length,I=new Array(b),E=0;E0,function(ue){F||(F=ue),ue&&H.forEach(I),te||(H.forEach(I),N(F))})});return D.reduce(E)}c.exports=S},{"../../../errors":477,"./end-of-stream":486}],489:[function(a,c,u){var h=a("../../../errors").codes.ERR_INVALID_OPT_VALUE;function d(g,A,m){return g.highWaterMark!=null?g.highWaterMark:A?g[m]:null}function p(g,A,m,y){var b=d(A,y,m);if(b!=null){if(!isFinite(b)||Math.floor(b)!==b||b<0)throw new h(y?m:"highWaterMark",b);return Math.floor(b)}return g.objectMode?16:16384}c.exports={getHighWaterMark:p}},{"../../../errors":477}],490:[function(a,c,u){c.exports=a("events").EventEmitter},{events:422}],491:[function(a,c,u){(u=c.exports=a("./lib/_stream_readable.js")).Stream=u,u.Readable=u,u.Writable=a("./lib/_stream_writable.js"),u.Duplex=a("./lib/_stream_duplex.js"),u.Transform=a("./lib/_stream_transform.js"),u.PassThrough=a("./lib/_stream_passthrough.js"),u.finished=a("./lib/internal/streams/end-of-stream.js"),u.pipeline=a("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(a,c,u){var h=function(d){var p,g=Object.prototype,A=g.hasOwnProperty,m=Object.defineProperty||function(oe,ye,ae){oe[ye]=ae.value},y=typeof Symbol=="function"?Symbol:{},b=y.iterator||"@@iterator",I=y.asyncIterator||"@@asyncIterator",E=y.toStringTag||"@@toStringTag";function B(oe,ye,ae){return Object.defineProperty(oe,ye,{value:ae,enumerable:!0,configurable:!0,writable:!0}),oe[ye]}try{B({},"")}catch{B=function(ye,ae,me){return ye[ae]=me}}function S(oe,ye,ae,me){var Fe=ye&&ye.prototype instanceof W?ye:W,_e=Object.create(Fe.prototype),rt=new z(me||[]);return m(_e,"_invoke",{value:ne(oe,ae,rt)}),_e}function _(oe,ye,ae){try{return{type:"normal",arg:oe.call(ye,ae)}}catch(me){return{type:"throw",arg:me}}}d.wrap=S;var D="suspendedStart",T="suspendedYield",F="executing",N="completed",H={};function W(){}function V(){}function te(){}var ue={};B(ue,b,function(){return this});var fe=Object.getPrototypeOf,de=fe&&fe(fe(X([])));de&&de!==g&&A.call(de,b)&&(ue=de);var Ae=te.prototype=W.prototype=Object.create(ue);function we(oe){["next","throw","return"].forEach(function(ye){B(oe,ye,function(ae){return this._invoke(ye,ae)})})}function Z(oe,ye){function ae(_e,rt,et,st){var Ge=_(oe[_e],oe,rt);if(Ge.type!=="throw"){var Be=Ge.arg,Te=Be.value;return Te&&typeof Te=="object"&&A.call(Te,"__await")?ye.resolve(Te.__await).then(function(je){ae("next",je,et,st)},function(je){ae("throw",je,et,st)}):ye.resolve(Te).then(function(je){Be.value=je,et(Be)},function(je){return ae("throw",je,et,st)})}st(Ge.arg)}var me;function Fe(_e,rt){function et(){return new ye(function(st,Ge){ae(_e,rt,st,Ge)})}return me=me?me.then(et,et):et()}m(this,"_invoke",{value:Fe})}function ne(oe,ye,ae){var me=D;return function(Fe,_e){if(me===F)throw new Error("Generator is already running");if(me===N){if(Fe==="throw")throw _e;return se()}for(ae.method=Fe,ae.arg=_e;;){var rt=ae.delegate;if(rt){var et=j(rt,ae);if(et){if(et===H)continue;return et}}if(ae.method==="next")ae.sent=ae._sent=ae.arg;else if(ae.method==="throw"){if(me===D)throw me=N,ae.arg;ae.dispatchException(ae.arg)}else ae.method==="return"&&ae.abrupt("return",ae.arg);me=F;var st=_(oe,ye,ae);if(st.type==="normal"){if(me=ae.done?N:T,st.arg===H)continue;return{value:st.arg,done:ae.done}}st.type==="throw"&&(me=N,ae.method="throw",ae.arg=st.arg)}}}function j(oe,ye){var ae=ye.method,me=oe.iterator[ae];if(me===p)return ye.delegate=null,ae==="throw"&&oe.iterator.return&&(ye.method="return",ye.arg=p,j(oe,ye),ye.method==="throw")||ae!=="return"&&(ye.method="throw",ye.arg=new TypeError("The iterator does not provide a '"+ae+"' method")),H;var Fe=_(me,oe.iterator,ye.arg);if(Fe.type==="throw")return ye.method="throw",ye.arg=Fe.arg,ye.delegate=null,H;var _e=Fe.arg;return _e?_e.done?(ye[oe.resultName]=_e.value,ye.next=oe.nextLoc,ye.method!=="return"&&(ye.method="next",ye.arg=p),ye.delegate=null,H):_e:(ye.method="throw",ye.arg=new TypeError("iterator result is not an object"),ye.delegate=null,H)}function J(oe){var ye={tryLoc:oe[0]};1 in oe&&(ye.catchLoc=oe[1]),2 in oe&&(ye.finallyLoc=oe[2],ye.afterLoc=oe[3]),this.tryEntries.push(ye)}function q(oe){var ye=oe.completion||{};ye.type="normal",delete ye.arg,oe.completion=ye}function z(oe){this.tryEntries=[{tryLoc:"root"}],oe.forEach(J,this),this.reset(!0)}function X(oe){if(oe){var ye=oe[b];if(ye)return ye.call(oe);if(typeof oe.next=="function")return oe;if(!isNaN(oe.length)){var ae=-1,me=function Fe(){for(;++ae=0;--me){var Fe=this.tryEntries[me],_e=Fe.completion;if(Fe.tryLoc==="root")return ae("end");if(Fe.tryLoc<=this.prev){var rt=A.call(Fe,"catchLoc"),et=A.call(Fe,"finallyLoc");if(rt&&et){if(this.prev=0;--ae){var me=this.tryEntries[ae];if(me.tryLoc<=this.prev&&A.call(me,"finallyLoc")&&this.prev=0;--ye){var ae=this.tryEntries[ye];if(ae.finallyLoc===oe)return this.complete(ae.completion,ae.afterLoc),q(ae),H}},catch:function(oe){for(var ye=this.tryEntries.length-1;ye>=0;--ye){var ae=this.tryEntries[ye];if(ae.tryLoc===oe){var me=ae.completion;if(me.type==="throw"){var Fe=me.arg;q(ae)}return Fe}}throw new Error("illegal catch attempt")},delegateYield:function(oe,ye,ae){return this.delegate={iterator:X(oe),resultName:ye,nextLoc:ae},this.method==="next"&&(this.arg=p),H}},d}(typeof c=="object"?c.exports:{});try{regeneratorRuntime=h}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=h:Function("r","regeneratorRuntime = r")(h)}},{}],493:[function(a,c,u){var h=a("buffer").Buffer,d=a("inherits"),p=a("hash-base"),g=new Array(16),A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],I=[0,1518500249,1859775393,2400959708,2840853838],E=[1352829926,1548603684,1836072691,2053994217,0];function B(){p.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function S(H,W){return H<>>32-W}function _(H,W,V,te,ue,fe,de,Ae){return S(H+(W^V^te)+fe+de|0,Ae)+ue|0}function D(H,W,V,te,ue,fe,de,Ae){return S(H+(W&V|~W&te)+fe+de|0,Ae)+ue|0}function T(H,W,V,te,ue,fe,de,Ae){return S(H+((W|~V)^te)+fe+de|0,Ae)+ue|0}function F(H,W,V,te,ue,fe,de,Ae){return S(H+(W&te|V&~te)+fe+de|0,Ae)+ue|0}function N(H,W,V,te,ue,fe,de,Ae){return S(H+(W^(V|~te))+fe+de|0,Ae)+ue|0}d(B,p),B.prototype._update=function(){for(var H=g,W=0;W<16;++W)H[W]=this._block.readInt32LE(4*W);for(var V=0|this._a,te=0|this._b,ue=0|this._c,fe=0|this._d,de=0|this._e,Ae=0|this._a,we=0|this._b,Z=0|this._c,ne=0|this._d,j=0|this._e,J=0;J<80;J+=1){var q,z;J<16?(q=_(V,te,ue,fe,de,H[A[J]],I[0],y[J]),z=N(Ae,we,Z,ne,j,H[m[J]],E[0],b[J])):J<32?(q=D(V,te,ue,fe,de,H[A[J]],I[1],y[J]),z=F(Ae,we,Z,ne,j,H[m[J]],E[1],b[J])):J<48?(q=T(V,te,ue,fe,de,H[A[J]],I[2],y[J]),z=T(Ae,we,Z,ne,j,H[m[J]],E[2],b[J])):J<64?(q=F(V,te,ue,fe,de,H[A[J]],I[3],y[J]),z=D(Ae,we,Z,ne,j,H[m[J]],E[3],b[J])):(q=N(V,te,ue,fe,de,H[A[J]],I[4],y[J]),z=_(Ae,we,Z,ne,j,H[m[J]],E[4],b[J])),V=de,de=fe,fe=S(ue,10),ue=te,te=q,Ae=j,j=ne,ne=S(Z,10),Z=we,we=z}var X=this._b+ue+ne|0;this._b=this._c+fe+j|0,this._c=this._d+de+Ae|0,this._d=this._e+V+we|0,this._e=this._a+te+Z|0,this._a=X},B.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var H=h.alloc?h.alloc(20):new h(20);return H.writeInt32LE(this._a,0),H.writeInt32LE(this._b,4),H.writeInt32LE(this._c,8),H.writeInt32LE(this._d,12),H.writeInt32LE(this._e,16),H},c.exports=B},{buffer:220,"hash-base":425,inherits:440}],494:[function(a,c,u){/*! safe-buffer. MIT License. Feross Aboukhadijeh */var h=a("buffer"),d=h.Buffer;function p(A,m){for(var y in A)m[y]=A[y]}function g(A,m,y){return d(A,m,y)}d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow?c.exports=h:(p(h,u),u.Buffer=g),g.prototype=Object.create(d.prototype),p(d,g),g.from=function(A,m,y){if(typeof A=="number")throw new TypeError("Argument must not be a number");return d(A,m,y)},g.alloc=function(A,m,y){if(typeof A!="number")throw new TypeError("Argument must be a number");var b=d(A);return m!==void 0?typeof y=="string"?b.fill(m,y):b.fill(m):b.fill(0),b},g.allocUnsafe=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return d(A)},g.allocUnsafeSlow=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return h.SlowBuffer(A)}},{buffer:220}],495:[function(a,c,u){(function(h){(function(){var d,p=a("buffer"),g=p.Buffer,A={};for(d in p)p.hasOwnProperty(d)&&d!=="SlowBuffer"&&d!=="Buffer"&&(A[d]=p[d]);var m=A.Buffer={};for(d in g)g.hasOwnProperty(d)&&d!=="allocUnsafe"&&d!=="allocUnsafeSlow"&&(m[d]=g[d]);if(A.Buffer.prototype=g.prototype,m.from&&m.from!==Uint8Array.from||(m.from=function(y,b,I){if(typeof y=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof y);if(y&&y.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);return g(y,b,I)}),m.alloc||(m.alloc=function(y,b,I){if(typeof y!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof y);if(y<0||y>=2*(1<<30))throw new RangeError('The value "'+y+'" is invalid for option "size"');var E=g(y);return b&&b.length!==0?typeof I=="string"?E.fill(b,I):E.fill(b):E.fill(0),E}),!A.kStringMaxLength)try{A.kStringMaxLength=h.binding("buffer").kStringMaxLength}catch{}A.constants||(A.constants={MAX_LENGTH:A.kMaxLength},A.kStringMaxLength&&(A.constants.MAX_STRING_LENGTH=A.kStringMaxLength)),c.exports=A}).call(this)}).call(this,a("_process"))},{_process:467,buffer:220}],496:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0});var h=a("xmlchars/xml/1.0/ed5"),d=a("xmlchars/xml/1.1/ed2"),p=a("xmlchars/xmlns/1.0/ed3"),g=h.isS,A=h.isChar,m=h.isNameStartChar,y=h.isNameChar,b=h.S_LIST,I=h.NAME_RE,E=d.isChar,B=p.isNCNameStartChar,S=p.isNCNameChar,_=p.NC_NAME_RE,D="http://www.w3.org/XML/1998/namespace",T="http://www.w3.org/2000/xmlns/",F={__proto__:null,xml:D,xmlns:T},N={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},H=-1,W=-2,V=0,te=1,ue=2,fe=3,de=4,Ae=5,we=6,Z=7,ne=8,j=9,J=10,q=11,z=12,X=13,se=14,oe=15,ye=16,ae=17,me=18,Fe=19,_e=20,rt=21,et=22,st=23,Ge=24,Be=25,Te=26,je=27,lt=28,Me=29,Ke=30,Rt=31,Ie=32,Re=33,qe=34,pt=35,Lt=36,Qe=37,_t=38,Ft=39,Ze=40,$e=41,nt=42,Ot=43,He=44,Je=9,tt=10,mt=13,Xe=32,Ye=33,ot=34,yt=38,Mt=39,cr=45,$t=47,Hr=59,mr=60,sr=61,Yr=62,Mr=63,Dr=91,nn=93,Sr=133,tn=8232,Cn=function(ia){return ia===ot||ia===Mt},Jn=[ot,Mt],Rr=[].concat(Jn,[Dr,Yr]),An=[].concat(Jn,[mr,nn]),dn=[sr,Mr].concat(Ni(b)),br=[].concat(Ni(b),[Yr,yt,mr]);function gn(ia,ht,Pt){switch(ht){case"xml":Pt!==D&&ia.fail("xml prefix must be bound to ".concat(D,"."));break;case"xmlns":Pt!==T&&ia.fail("xmlns prefix must be bound to ".concat(T,"."))}switch(Pt){case T:ia.fail(ht===""?"the default namespace may not be set to ".concat(Pt,"."):'may not assign a prefix (even "xmlns") to the URI '.concat(T,"."));break;case D:switch(ht){case"xml":break;case"":ia.fail("the default namespace may not be set to ".concat(Pt,"."));break;default:ia.fail("may not assign the xml namespace to another prefix.")}}}function wn(ia,ht){for(var Pt=0,Zt=Object.keys(ht);Pt0&&(Zt+=":"),Zt+="".concat(this.line,":").concat(this.column)),Zt.length>0&&(Zt+=": "),new Error(Zt+ht)}},{key:"fail",value:function(ht){var Pt=this.makeError(ht),Zt=this.errorHandler;if(Zt===void 0)throw Pt;return Zt(Pt),this}},{key:"write",value:function(ht){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");var Pt=!1;ht===null?(Pt=!0,ht=""):typeof ht=="object"&&(ht=ht.toString()),this.carriedFromPrevious!==void 0&&(ht="".concat(this.carriedFromPrevious).concat(ht),this.carriedFromPrevious=void 0);var Zt=ht.length,vn=ht.charCodeAt(Zt-1);!Pt&&(vn===mt||vn>=55296&&vn<=56319)&&(this.carriedFromPrevious=ht[Zt-1],Zt--,ht=ht.slice(0,Zt));var jn=this.stateTable;for(this.chunk=ht,this.i=0;this.i=ht.length)return H;var Zt=ht.charCodeAt(Pt);if(this.column++,Zt<55296){if(Zt>=Xe||Zt===Je)return Zt;switch(Zt){case tt:return this.line++,this.column=0,this.positionAtNewLine=this.position,tt;case mt:return ht.charCodeAt(Pt+1)===tt&&(this.i=Pt+2),this.line++,this.column=0,this.positionAtNewLine=this.position,W;default:return this.fail("disallowed character."),Zt}}if(Zt>56319)return Zt>=57344&&Zt<=65533||this.fail("disallowed character."),Zt;var vn=65536+1024*(Zt-55296)+(ht.charCodeAt(Pt+1)-56320);return this.i=Pt+2,vn>1114111&&this.fail("disallowed character."),vn}},{key:"getCode11",value:function(){var ht=this.chunk,Pt=this.i;if(this.prevI=Pt,this.i=Pt+1,Pt>=ht.length)return H;var Zt=ht.charCodeAt(Pt);if(this.column++,Zt<55296){if(Zt>31&&Zt<127||Zt>159&&Zt!==tn||Zt===Je)return Zt;switch(Zt){case tt:return this.line++,this.column=0,this.positionAtNewLine=this.position,tt;case mt:var vn=ht.charCodeAt(Pt+1);vn!==tt&&vn!==Sr||(this.i=Pt+2);case Sr:case tn:return this.line++,this.column=0,this.positionAtNewLine=this.position,W;default:return this.fail("disallowed character."),Zt}}if(Zt>56319)return Zt>=57344&&Zt<=65533||this.fail("disallowed character."),Zt;var jn=65536+1024*(Zt-55296)+(ht.charCodeAt(Pt+1)-56320);return this.i=Pt+2,jn>1114111&&this.fail("disallowed character."),jn}},{key:"getCodeNorm",value:function(){var ht=this.getCode();return ht===W?tt:ht}},{key:"unget",value:function(){this.i=this.prevI,this.column--}},{key:"captureTo",value:function(ht){for(var Pt=this.i,Zt=this.chunk;;){var vn=this.getCode(),jn=vn===W,ba=jn?tt:vn;if(ba===H||ht.includes(ba))return this.text+=Zt.slice(Pt,this.prevI),ba;jn&&(this.text+="".concat(Zt.slice(Pt,this.prevI),` `),Pt=this.i)}}},{key:"captureToChar",value:function(ht){for(var Pt=this.i,Zt=this.chunk;;){var vn=this.getCode();switch(vn){case W:this.text+="".concat(Zt.slice(Pt,this.prevI),` `),Pt=this.i,vn=tt;break;case H:return this.text+=Zt.slice(Pt),!1}if(vn===ht)return this.text+=Zt.slice(Pt,this.prevI),!0}}},{key:"captureNameChars",value:function(){for(var ht=this.chunk,Pt=this.i;;){var Zt=this.getCode();if(Zt===H)return this.name+=ht.slice(Pt),H;if(!y(Zt))return this.name+=ht.slice(Pt,this.prevI),Zt===W?tt:Zt}}},{key:"skipSpaces",value:function(){for(;;){var ht=this.getCodeNorm();if(ht===H||!g(ht))return ht}}},{key:"setXMLVersion",value:function(ht){this.currentXMLVersion=ht,ht==="1.0"?(this.isChar=A,this.getCode=this.getCode10):(this.isChar=E,this.getCode=this.getCode11)}},{key:"sBegin",value:function(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=te}},{key:"sBeginWhitespace",value:function(){var ht=this.i,Pt=this.skipSpaces();switch(this.prevI!==ht&&(this.xmlDeclPossible=!1),Pt){case mr:if(this.state=oe,this.text.length!==0)throw new Error("no-empty text at start");break;case H:break;default:this.unget(),this.state=X,this.xmlDeclPossible=!1}}},{key:"sDoctype",value:function(){var ht,Pt=this.captureTo(Rr);switch(Pt){case Yr:(ht=this.doctypeHandler)===null||ht===void 0||ht.call(this,this.text),this.text="",this.state=X,this.doctype=!0;break;case H:break;default:this.text+=String.fromCodePoint(Pt),Pt===Dr?this.state=de:Cn(Pt)&&(this.state=fe,this.q=Pt)}}},{key:"sDoctypeQuote",value:function(){var ht=this.q;this.captureToChar(ht)&&(this.text+=String.fromCodePoint(ht),this.q=null,this.state=ue)}},{key:"sDTD",value:function(){var ht=this.captureTo(An);ht!==H&&(this.text+=String.fromCodePoint(ht),ht===nn?this.state=ue:ht===mr?this.state=we:Cn(ht)&&(this.state=Ae,this.q=ht))}},{key:"sDTDQuoted",value:function(){var ht=this.q;this.captureToChar(ht)&&(this.text+=String.fromCodePoint(ht),this.state=de,this.q=null)}},{key:"sDTDOpenWaka",value:function(){var ht=this.getCodeNorm();switch(this.text+=String.fromCodePoint(ht),ht){case Ye:this.state=Z,this.openWakaBang="";break;case Mr:this.state=q;break;default:this.state=de}}},{key:"sDTDOpenWakaBang",value:function(){var ht=String.fromCodePoint(this.getCodeNorm()),Pt=this.openWakaBang+=ht;this.text+=ht,Pt!=="-"&&(this.state=Pt==="--"?ne:de,this.openWakaBang="")}},{key:"sDTDComment",value:function(){this.captureToChar(cr)&&(this.text+="-",this.state=j)}},{key:"sDTDCommentEnding",value:function(){var ht=this.getCodeNorm();this.text+=String.fromCodePoint(ht),this.state=ht===cr?J:ne}},{key:"sDTDCommentEnded",value:function(){var ht=this.getCodeNorm();this.text+=String.fromCodePoint(ht),ht===Yr?this.state=de:(this.fail("malformed comment."),this.state=ne)}},{key:"sDTDPI",value:function(){this.captureToChar(Mr)&&(this.text+="?",this.state=z)}},{key:"sDTDPIEnding",value:function(){var ht=this.getCodeNorm();this.text+=String.fromCodePoint(ht),ht===Yr&&(this.state=de)}},{key:"sText",value:function(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}},{key:"sEntity",value:function(){var ht=this.i,Pt=this.chunk;e:for(;;)switch(this.getCode()){case W:this.entity+="".concat(Pt.slice(ht,this.prevI),` `),ht=this.i;break;case Hr:var Zt=this.entityReturnState,vn=this.entity+Pt.slice(ht,this.prevI);this.state=Zt;var jn=void 0;vn===""?(this.fail("empty entity name."),jn="&;"):(jn=this.parseEntity(vn),this.entity=""),Zt===X&&this.textHandler===void 0||(this.text+=jn);break e;case H:this.entity+=Pt.slice(ht);break e}}},{key:"sOpenWaka",value:function(){var ht=this.getCode();if(m(ht))this.state=qe,this.unget(),this.xmlDeclPossible=!1;else switch(ht){case $t:this.state=Ot,this.xmlDeclPossible=!1;break;case Ye:this.state=ye,this.openWakaBang="",this.xmlDeclPossible=!1;break;case Mr:this.state=st;break;default:this.fail("disallowed character in tag name"),this.state=X,this.xmlDeclPossible=!1}}},{key:"sOpenWakaBang",value:function(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=_e,this.openWakaBang="";break;case"--":this.state=ae,this.openWakaBang="";break;case"DOCTYPE":this.state=ue,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}},{key:"sComment",value:function(){this.captureToChar(cr)&&(this.state=me)}},{key:"sCommentEnding",value:function(){var ht,Pt=this.getCodeNorm();Pt===cr?(this.state=Fe,(ht=this.commentHandler)===null||ht===void 0||ht.call(this,this.text),this.text=""):(this.text+="-".concat(String.fromCodePoint(Pt)),this.state=ae)}},{key:"sCommentEnded",value:function(){var ht=this.getCodeNorm();ht!==Yr?(this.fail("malformed comment."),this.text+="--".concat(String.fromCodePoint(ht)),this.state=ae):this.state=X}},{key:"sCData",value:function(){this.captureToChar(nn)&&(this.state=rt)}},{key:"sCDataEnding",value:function(){var ht=this.getCodeNorm();ht===nn?this.state=et:(this.text+="]".concat(String.fromCodePoint(ht)),this.state=_e)}},{key:"sCDataEnding2",value:function(){var ht,Pt=this.getCodeNorm();switch(Pt){case Yr:(ht=this.cdataHandler)===null||ht===void 0||ht.call(this,this.text),this.text="",this.state=X;break;case nn:this.text+="]";break;default:this.text+="]]".concat(String.fromCodePoint(Pt)),this.state=_e}}},{key:"sPIFirstChar",value:function(){var ht=this.getCodeNorm();this.nameStartCheck(ht)?(this.piTarget+=String.fromCodePoint(ht),this.state=Ge):ht===Mr||g(ht)?(this.fail("processing instruction without a target."),this.state=ht===Mr?Te:Be):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(ht),this.state=Ge)}},{key:"sPIRest",value:function(){for(var ht=this.chunk,Pt=this.i;;){var Zt=this.getCodeNorm();if(Zt===H)return void(this.piTarget+=ht.slice(Pt));if(!this.nameCheck(Zt)){this.piTarget+=ht.slice(Pt,this.prevI);var vn=Zt===Mr;vn||g(Zt)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=vn?Re:je):this.state=vn?Te:Be:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(Zt));break}}}},{key:"sPIBody",value:function(){if(this.text.length===0){var ht=this.getCodeNorm();ht===Mr?this.state=Te:g(ht)||(this.text=String.fromCodePoint(ht))}else this.captureToChar(Mr)&&(this.state=Te)}},{key:"sPIEnding",value:function(){var ht,Pt=this.getCodeNorm();if(Pt===Yr){var Zt=this.piTarget;Zt.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(ht=this.piHandler)===null||ht===void 0||ht.call(this,{target:Zt,body:this.text}),this.piTarget=this.text="",this.state=X}else Pt===Mr?this.text+="?":(this.text+="?".concat(String.fromCodePoint(Pt)),this.state=Be);this.xmlDeclPossible=!1}},{key:"sXMLDeclNameStart",value:function(){var ht=this.skipSpaces();ht!==Mr?ht!==H&&(this.state=lt,this.name=String.fromCodePoint(ht)):this.state=Re}},{key:"sXMLDeclName",value:function(){var ht=this.captureTo(dn);if(ht===Mr)return this.state=Re,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(g(ht)||ht===sr){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail("expected the name ".concat(this.xmlDeclExpects[0],"."));break;default:this.fail("expected one of ".concat(this.xmlDeclExpects.join(", ")))}this.state=ht===sr?Ke:Me}}},{key:"sXMLDeclEq",value:function(){var ht=this.getCodeNorm();if(ht===Mr)return this.state=Re,void this.fail("XML declaration is incomplete.");g(ht)||(ht!==sr&&this.fail("value required."),this.state=Ke)}},{key:"sXMLDeclValueStart",value:function(){var ht=this.getCodeNorm();if(ht===Mr)return this.state=Re,void this.fail("XML declaration is incomplete.");g(ht)||(Cn(ht)?this.q=ht:(this.fail("value must be quoted."),this.q=Xe),this.state=Rt)}},{key:"sXMLDeclValue",value:function(){var ht=this.captureTo([this.q,Mr]);if(ht===Mr)return this.state=Re,this.text="",void this.fail("XML declaration is incomplete.");if(ht!==H){var Pt=this.text;switch(this.text="",this.name){case"version":this.xmlDeclExpects=["encoding","standalone"];var Zt=Pt;this.xmlDecl.version=Zt,/^1\.[0-9]+$/.test(Zt)?this.opt.forceXMLVersion||this.setXMLVersion(Zt):this.fail("version number must match /^1\\.[0-9]+$/.");break;case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(Pt)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=Pt;break;case"standalone":Pt!=="yes"&&Pt!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=Pt}this.name="",this.state=Ie}}},{key:"sXMLDeclSeparator",value:function(){var ht=this.getCodeNorm();ht!==Mr?(g(ht)||(this.fail("whitespace required."),this.unget()),this.state=je):this.state=Re}},{key:"sXMLDeclEnding",value:function(){var ht;this.getCodeNorm()===Yr?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(ht=this.xmldeclHandler)===null||ht===void 0||ht.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=X):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}},{key:"sOpenTag",value:function(){var ht,Pt=this.captureNameChars();if(Pt!==H){var Zt=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=Zt.ns=Object.create(null)),(ht=this.openTagStartHandler)===null||ht===void 0||ht.call(this,Zt),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),Pt){case Yr:this.openTag();break;case $t:this.state=pt;break;default:g(Pt)||this.fail("disallowed character in tag name."),this.state=Lt}}}},{key:"sOpenTagSlash",value:function(){this.getCode()===Yr?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=Lt)}},{key:"sAttrib",value:function(){var ht=this.skipSpaces();ht!==H&&(m(ht)?(this.unget(),this.state=Qe):ht===Yr?this.openTag():ht===$t?this.state=pt:this.fail("disallowed character in attribute name."))}},{key:"sAttribName",value:function(){var ht=this.captureNameChars();ht===sr?this.state=Ft:g(ht)?this.state=_t:ht===Yr?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):ht!==H&&this.fail("disallowed character in attribute name.")}},{key:"sAttribNameSawWhite",value:function(){var ht=this.skipSpaces();switch(ht){case H:return;case sr:this.state=Ft;break;default:this.fail("attribute without value."),this.text="",this.name="",ht===Yr?this.openTag():m(ht)?(this.unget(),this.state=Qe):(this.fail("disallowed character in attribute name."),this.state=Lt)}}},{key:"sAttribValue",value:function(){var ht=this.getCodeNorm();Cn(ht)?(this.q=ht,this.state=Ze):g(ht)||(this.fail("unquoted attribute value."),this.state=nt,this.unget())}},{key:"sAttribValueQuoted",value:function(){for(var ht=this.q,Pt=this.chunk,Zt=this.i;;)switch(this.getCode()){case ht:return this.pushAttrib(this.name,this.text+Pt.slice(Zt,this.prevI)),this.name=this.text="",this.q=null,void(this.state=$e);case yt:return this.text+=Pt.slice(Zt,this.prevI),this.state=se,void(this.entityReturnState=Ze);case tt:case W:case Je:this.text+="".concat(Pt.slice(Zt,this.prevI)," "),Zt=this.i;break;case mr:return this.text+=Pt.slice(Zt,this.prevI),void this.fail("disallowed character.");case H:return void(this.text+=Pt.slice(Zt))}}},{key:"sAttribValueClosed",value:function(){var ht=this.getCodeNorm();g(ht)?this.state=Lt:ht===Yr?this.openTag():ht===$t?this.state=pt:m(ht)?(this.fail("no whitespace between attributes."),this.unget(),this.state=Qe):this.fail("disallowed character in attribute name.")}},{key:"sAttribValueUnquoted",value:function(){var ht=this.captureTo(br);switch(ht){case yt:this.state=se,this.entityReturnState=nt;break;case mr:this.fail("disallowed character.");break;case H:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",ht===Yr?this.openTag():this.state=Lt}}},{key:"sCloseTag",value:function(){var ht=this.captureNameChars();ht===Yr?this.closeTag():g(ht)?this.state=He:ht!==H&&this.fail("disallowed character in closing tag.")}},{key:"sCloseTagSawWhite",value:function(){switch(this.skipSpaces()){case Yr:this.closeTag();break;case H:break;default:this.fail("disallowed character in closing tag.")}}},{key:"handleTextInRoot",value:function(){var ht=this.i,Pt=this.forbiddenState,Zt=this.chunk,vn=this.textHandler;e:for(;;)switch(this.getCode()){case mr:if(this.state=oe,vn!==void 0){var jn=this.text,ba=Zt.slice(ht,this.prevI);jn.length!==0?(vn(jn+ba),this.text=""):ba.length!==0&&vn(ba)}Pt=oi;break e;case yt:this.state=se,this.entityReturnState=X,vn!==void 0&&(this.text+=Zt.slice(ht,this.prevI)),Pt=oi;break e;case nn:switch(Pt){case oi:Pt=Kr;break;case Kr:Pt=On;break;case On:break;default:throw new Error("impossible state")}break;case Yr:Pt===On&&this.fail('the string "]]>" is disallowed in char data.'),Pt=oi;break;case W:vn!==void 0&&(this.text+="".concat(Zt.slice(ht,this.prevI),` `)),ht=this.i,Pt=oi;break;case H:vn!==void 0&&(this.text+=Zt.slice(ht));break e;default:Pt=oi}this.forbiddenState=Pt}},{key:"handleTextOutsideRoot",value:function(){var ht=this.i,Pt=this.chunk,Zt=this.textHandler,vn=!1;e:for(;;){var jn=this.getCode();switch(jn){case mr:if(this.state=oe,Zt!==void 0){var ba=this.text,aa=Pt.slice(ht,this.prevI);ba.length!==0?(Zt(ba+aa),this.text=""):aa.length!==0&&Zt(aa)}break e;case yt:this.state=se,this.entityReturnState=X,Zt!==void 0&&(this.text+=Pt.slice(ht,this.prevI)),vn=!0;break e;case W:Zt!==void 0&&(this.text+="".concat(Pt.slice(ht,this.prevI),` `)),ht=this.i;break;case H:Zt!==void 0&&(this.text+=Pt.slice(ht));break e;default:g(jn)||(vn=!0)}}vn&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}},{key:"pushAttribNS",value:function(ht,Pt){var Zt,vn=this.qname(ht),jn=vn.prefix,ba=vn.local,aa={name:ht,prefix:jn,local:ba,value:Pt};if(this.attribList.push(aa),(Zt=this.attributeHandler)===null||Zt===void 0||Zt.call(this,aa),jn==="xmlns"){var wo=Pt.trim();this.currentXMLVersion==="1.0"&&wo===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[ba]=wo,gn(this,ba,wo)}else if(ht==="xmlns"){var is=Pt.trim();this.topNS[""]=is,gn(this,"",is)}}},{key:"pushAttribPlain",value:function(ht,Pt){var Zt,vn={name:ht,value:Pt};this.attribList.push(vn),(Zt=this.attributeHandler)===null||Zt===void 0||Zt.call(this,vn)}},{key:"end",value:function(){var ht,Pt;this.sawRoot||this.fail("document must contain a root element.");for(var Zt=this.tags;Zt.length>0;){var vn=Zt.pop();this.fail("unclosed tag: ".concat(vn.name))}this.state!==V&&this.state!==X&&this.fail("unexpected end.");var jn=this.text;return jn.length!==0&&((ht=this.textHandler)===null||ht===void 0||ht.call(this,jn),this.text=""),this._closed=!0,(Pt=this.endHandler)===null||Pt===void 0||Pt.call(this),this._init(),this}},{key:"resolve",value:function(ht){var Pt,Zt,vn=this.topNS[ht];if(vn!==void 0)return vn;for(var jn=this.tags,ba=jn.length-1;ba>=0;ba--)if((vn=jn[ba].ns[ht])!==void 0)return vn;return(vn=this.ns[ht])!==void 0?vn:(Zt=(Pt=this.opt).resolvePrefix)===null||Zt===void 0?void 0:Zt.call(Pt,ht)}},{key:"qname",value:function(ht){var Pt=ht.indexOf(":");if(Pt===-1)return{prefix:"",local:ht};var Zt=ht.slice(Pt+1),vn=ht.slice(0,Pt);return(vn===""||Zt===""||Zt.includes(":"))&&this.fail("malformed name: ".concat(ht,".")),{prefix:vn,local:Zt}}},{key:"processAttribsNS",value:function(){var ht,Pt=this.attribList,Zt=this.tag,vn=this.qname(Zt.name),jn=vn.prefix,ba=vn.local;Zt.prefix=jn,Zt.local=ba;var aa=Zt.uri=(ht=this.resolve(jn))!==null&&ht!==void 0?ht:"";if(jn!==""&&(jn==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),aa===""&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(jn),".")),Zt.uri=jn)),Pt.length!==0){var wo,is=Zt.attributes,as=new Set,vs=ny(Pt);try{for(vs.s();!(wo=vs.n()).done;){var lo=wo.value,ra=lo.name,pi=lo.prefix,Ms=lo.local,Fs=void 0,zu=void 0;pi===""?(Fs=ra==="xmlns"?T:"",zu=ra):((Fs=this.resolve(pi))===void 0&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(pi),".")),Fs=pi),zu="{".concat(Fs,"}").concat(Ms)),as.has(zu)&&this.fail("duplicate attribute: ".concat(zu,".")),as.add(zu),lo.uri=Fs,is[ra]=lo}}catch(Ul){vs.e(Ul)}finally{vs.f()}this.attribList=[]}}},{key:"processAttribsPlain",value:function(){var ht,Pt=this.attribList,Zt=this.tag.attributes,vn=ny(Pt);try{for(vn.s();!(ht=vn.n()).done;){var jn=ht.value,ba=jn.name,aa=jn.value;Zt[ba]!==void 0&&this.fail("duplicate attribute: ".concat(ba,".")),Zt[ba]=aa}}catch(wo){vn.e(wo)}finally{vn.f()}this.attribList=[]}},{key:"openTag",value:function(){var ht;this.processAttribs();var Pt=this.tags,Zt=this.tag;Zt.isSelfClosing=!1,(ht=this.openTagHandler)===null||ht===void 0||ht.call(this,Zt),Pt.push(Zt),this.state=X,this.name=""}},{key:"openSelfClosingTag",value:function(){var ht,Pt,Zt;this.processAttribs();var vn=this.tags,jn=this.tag;jn.isSelfClosing=!0,(ht=this.openTagHandler)===null||ht===void 0||ht.call(this,jn),(Pt=this.closeTagHandler)===null||Pt===void 0||Pt.call(this,jn),(this.tag=(Zt=vn[vn.length-1])!==null&&Zt!==void 0?Zt:null)===null&&(this.closedRoot=!0),this.state=X,this.name=""}},{key:"closeTag",value:function(){var ht=this.tags,Pt=this.name;if(this.state=X,this.name="",Pt==="")return this.fail("weird empty close tag."),void(this.text+="");for(var Zt=this.closeTagHandler,vn=ht.length;vn-- >0;){var jn=this.tag=ht.pop();if(this.topNS=jn.ns,Zt==null||Zt(jn),jn.name===Pt)break;this.fail("unexpected close tag.")}vn===0?this.closedRoot=!0:vn<0&&(this.fail("unmatched closing tag: ".concat(Pt,".")),this.text+=""))}},{key:"parseEntity",value:function(ht){if(ht[0]!=="#"){var Pt=this.ENTITIES[ht];return Pt!==void 0?Pt:(this.fail(this.isName(ht)?"undefined entity.":"disallowed character in entity name."),"&".concat(ht,";"))}var Zt=NaN;return ht[1]==="x"&&/^#x[0-9a-f]+$/i.test(ht)?Zt=parseInt(ht.slice(2),16):/^#[0-9]+$/.test(ht)&&(Zt=parseInt(ht.slice(1),10)),this.isChar(Zt)?String.fromCodePoint(Zt):(this.fail("malformed character entity."),"&".concat(ht,";"))}}])}();u.SaxesParser=li},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(a,c,u){var h=a("safe-buffer").Buffer;function d(p,g){this._block=h.alloc(p),this._finalSize=g,this._blockSize=p,this._len=0}d.prototype.update=function(p,g){typeof p=="string"&&(g=g||"utf8",p=h.from(p,g));for(var A=this._block,m=this._blockSize,y=p.length,b=this._len,I=0;I=this._finalSize&&(this._update(this._block),this._block.fill(0));var A=8*this._len;if(A<=4294967295)this._block.writeUInt32BE(A,this._blockSize-4);else{var m=(4294967295&A)>>>0,y=(A-m)/4294967296;this._block.writeUInt32BE(y,this._blockSize-8),this._block.writeUInt32BE(m,this._blockSize-4)}this._update(this._block);var b=this._hash();return p?b.toString(p):b},d.prototype._update=function(){throw new Error("_update must be implemented by subclass")},c.exports=d},{"safe-buffer":494}],498:[function(a,c,u){var h=c.exports=function(d){d=d.toLowerCase();var p=h[d];if(!p)throw new Error(d+" is not supported (we accept pull requests)");return new p};h.sha=a("./sha"),h.sha1=a("./sha1"),h.sha224=a("./sha224"),h.sha256=a("./sha256"),h.sha384=a("./sha384"),h.sha512=a("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(a,c,u){var h=a("inherits"),d=a("./hash"),p=a("safe-buffer").Buffer,g=[1518500249,1859775393,-1894007588,-899497514],A=new Array(80);function m(){this.init(),this._w=A,d.call(this,64,56)}function y(E){return E<<5|E>>>27}function b(E){return E<<30|E>>>2}function I(E,B,S,_){return E===0?B&S|~B&_:E===2?B&S|B&_|S&_:B^S^_}h(m,d),m.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},m.prototype._update=function(E){for(var B=this._w,S=0|this._a,_=0|this._b,D=0|this._c,T=0|this._d,F=0|this._e,N=0;N<16;++N)B[N]=E.readInt32BE(4*N);for(;N<80;++N)B[N]=B[N-3]^B[N-8]^B[N-14]^B[N-16];for(var H=0;H<80;++H){var W=~~(H/20),V=y(S)+I(W,_,D,T)+F+B[H]+g[W]|0;F=T,T=D,D=b(_),_=S,S=V}this._a=S+this._a|0,this._b=_+this._b|0,this._c=D+this._c|0,this._d=T+this._d|0,this._e=F+this._e|0},m.prototype._hash=function(){var E=p.allocUnsafe(20);return E.writeInt32BE(0|this._a,0),E.writeInt32BE(0|this._b,4),E.writeInt32BE(0|this._c,8),E.writeInt32BE(0|this._d,12),E.writeInt32BE(0|this._e,16),E},c.exports=m},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(a,c,u){var h=a("inherits"),d=a("./hash"),p=a("safe-buffer").Buffer,g=[1518500249,1859775393,-1894007588,-899497514],A=new Array(80);function m(){this.init(),this._w=A,d.call(this,64,56)}function y(B){return B<<1|B>>>31}function b(B){return B<<5|B>>>27}function I(B){return B<<30|B>>>2}function E(B,S,_,D){return B===0?S&_|~S&D:B===2?S&_|S&D|_&D:S^_^D}h(m,d),m.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},m.prototype._update=function(B){for(var S=this._w,_=0|this._a,D=0|this._b,T=0|this._c,F=0|this._d,N=0|this._e,H=0;H<16;++H)S[H]=B.readInt32BE(4*H);for(;H<80;++H)S[H]=y(S[H-3]^S[H-8]^S[H-14]^S[H-16]);for(var W=0;W<80;++W){var V=~~(W/20),te=b(_)+E(V,D,T,F)+N+S[W]+g[V]|0;N=F,F=T,T=I(D),D=_,_=te}this._a=_+this._a|0,this._b=D+this._b|0,this._c=T+this._c|0,this._d=F+this._d|0,this._e=N+this._e|0},m.prototype._hash=function(){var B=p.allocUnsafe(20);return B.writeInt32BE(0|this._a,0),B.writeInt32BE(0|this._b,4),B.writeInt32BE(0|this._c,8),B.writeInt32BE(0|this._d,12),B.writeInt32BE(0|this._e,16),B},c.exports=m},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(a,c,u){var h=a("inherits"),d=a("./sha256"),p=a("./hash"),g=a("safe-buffer").Buffer,A=new Array(64);function m(){this.init(),this._w=A,p.call(this,64,56)}h(m,d),m.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},m.prototype._hash=function(){var y=g.allocUnsafe(28);return y.writeInt32BE(this._a,0),y.writeInt32BE(this._b,4),y.writeInt32BE(this._c,8),y.writeInt32BE(this._d,12),y.writeInt32BE(this._e,16),y.writeInt32BE(this._f,20),y.writeInt32BE(this._g,24),y},c.exports=m},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(a,c,u){var h=a("inherits"),d=a("./hash"),p=a("safe-buffer").Buffer,g=[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],A=new Array(64);function m(){this.init(),this._w=A,d.call(this,64,56)}function y(_,D,T){return T^_&(D^T)}function b(_,D,T){return _&D|T&(_|D)}function I(_){return(_>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10)}function E(_){return(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7)}function B(_){return(_>>>7|_<<25)^(_>>>18|_<<14)^_>>>3}function S(_){return(_>>>17|_<<15)^(_>>>19|_<<13)^_>>>10}h(m,d),m.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},m.prototype._update=function(_){for(var D=this._w,T=0|this._a,F=0|this._b,N=0|this._c,H=0|this._d,W=0|this._e,V=0|this._f,te=0|this._g,ue=0|this._h,fe=0;fe<16;++fe)D[fe]=_.readInt32BE(4*fe);for(;fe<64;++fe)D[fe]=S(D[fe-2])+D[fe-7]+B(D[fe-15])+D[fe-16]|0;for(var de=0;de<64;++de){var Ae=ue+E(W)+y(W,V,te)+g[de]+D[de]|0,we=I(T)+b(T,F,N)|0;ue=te,te=V,V=W,W=H+Ae|0,H=N,N=F,F=T,T=Ae+we|0}this._a=T+this._a|0,this._b=F+this._b|0,this._c=N+this._c|0,this._d=H+this._d|0,this._e=W+this._e|0,this._f=V+this._f|0,this._g=te+this._g|0,this._h=ue+this._h|0},m.prototype._hash=function(){var _=p.allocUnsafe(32);return _.writeInt32BE(this._a,0),_.writeInt32BE(this._b,4),_.writeInt32BE(this._c,8),_.writeInt32BE(this._d,12),_.writeInt32BE(this._e,16),_.writeInt32BE(this._f,20),_.writeInt32BE(this._g,24),_.writeInt32BE(this._h,28),_},c.exports=m},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(a,c,u){var h=a("inherits"),d=a("./sha512"),p=a("./hash"),g=a("safe-buffer").Buffer,A=new Array(160);function m(){this.init(),this._w=A,p.call(this,128,112)}h(m,d),m.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},m.prototype._hash=function(){var y=g.allocUnsafe(48);function b(I,E,B){y.writeInt32BE(I,B),y.writeInt32BE(E,B+4)}return b(this._ah,this._al,0),b(this._bh,this._bl,8),b(this._ch,this._cl,16),b(this._dh,this._dl,24),b(this._eh,this._el,32),b(this._fh,this._fl,40),y},c.exports=m},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(a,c,u){var h=a("inherits"),d=a("./hash"),p=a("safe-buffer").Buffer,g=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],A=new Array(160);function m(){this.init(),this._w=A,d.call(this,128,112)}function y(F,N,H){return H^F&(N^H)}function b(F,N,H){return F&N|H&(F|N)}function I(F,N){return(F>>>28|N<<4)^(N>>>2|F<<30)^(N>>>7|F<<25)}function E(F,N){return(F>>>14|N<<18)^(F>>>18|N<<14)^(N>>>9|F<<23)}function B(F,N){return(F>>>1|N<<31)^(F>>>8|N<<24)^F>>>7}function S(F,N){return(F>>>1|N<<31)^(F>>>8|N<<24)^(F>>>7|N<<25)}function _(F,N){return(F>>>19|N<<13)^(N>>>29|F<<3)^F>>>6}function D(F,N){return(F>>>19|N<<13)^(N>>>29|F<<3)^(F>>>6|N<<26)}function T(F,N){return F>>>0>>0?1:0}h(m,d),m.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},m.prototype._update=function(F){for(var N=this._w,H=0|this._ah,W=0|this._bh,V=0|this._ch,te=0|this._dh,ue=0|this._eh,fe=0|this._fh,de=0|this._gh,Ae=0|this._hh,we=0|this._al,Z=0|this._bl,ne=0|this._cl,j=0|this._dl,J=0|this._el,q=0|this._fl,z=0|this._gl,X=0|this._hl,se=0;se<32;se+=2)N[se]=F.readInt32BE(4*se),N[se+1]=F.readInt32BE(4*se+4);for(;se<160;se+=2){var oe=N[se-30],ye=N[se-30+1],ae=B(oe,ye),me=S(ye,oe),Fe=_(oe=N[se-4],ye=N[se-4+1]),_e=D(ye,oe),rt=N[se-14],et=N[se-14+1],st=N[se-32],Ge=N[se-32+1],Be=me+et|0,Te=ae+rt+T(Be,me)|0;Te=(Te=Te+Fe+T(Be=Be+_e|0,_e)|0)+st+T(Be=Be+Ge|0,Ge)|0,N[se]=Te,N[se+1]=Be}for(var je=0;je<160;je+=2){Te=N[je],Be=N[je+1];var lt=b(H,W,V),Me=b(we,Z,ne),Ke=I(H,we),Rt=I(we,H),Ie=E(ue,J),Re=E(J,ue),qe=g[je],pt=g[je+1],Lt=y(ue,fe,de),Qe=y(J,q,z),_t=X+Re|0,Ft=Ae+Ie+T(_t,X)|0;Ft=(Ft=(Ft=Ft+Lt+T(_t=_t+Qe|0,Qe)|0)+qe+T(_t=_t+pt|0,pt)|0)+Te+T(_t=_t+Be|0,Be)|0;var Ze=Rt+Me|0,$e=Ke+lt+T(Ze,Rt)|0;Ae=de,X=z,de=fe,z=q,fe=ue,q=J,ue=te+Ft+T(J=j+_t|0,j)|0,te=V,j=ne,V=W,ne=Z,W=H,Z=we,H=Ft+$e+T(we=_t+Ze|0,_t)|0}this._al=this._al+we|0,this._bl=this._bl+Z|0,this._cl=this._cl+ne|0,this._dl=this._dl+j|0,this._el=this._el+J|0,this._fl=this._fl+q|0,this._gl=this._gl+z|0,this._hl=this._hl+X|0,this._ah=this._ah+H+T(this._al,we)|0,this._bh=this._bh+W+T(this._bl,Z)|0,this._ch=this._ch+V+T(this._cl,ne)|0,this._dh=this._dh+te+T(this._dl,j)|0,this._eh=this._eh+ue+T(this._el,J)|0,this._fh=this._fh+fe+T(this._fl,q)|0,this._gh=this._gh+de+T(this._gl,z)|0,this._hh=this._hh+Ae+T(this._hl,X)|0},m.prototype._hash=function(){var F=p.allocUnsafe(64);function N(H,W,V){F.writeInt32BE(H,V),F.writeInt32BE(W,V+4)}return N(this._ah,this._al,0),N(this._bh,this._bl,8),N(this._ch,this._cl,16),N(this._dh,this._dl,24),N(this._eh,this._el,32),N(this._fh,this._fl,40),N(this._gh,this._gl,48),N(this._hh,this._hl,56),F},c.exports=m},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(a,c,u){c.exports=d;var h=a("events").EventEmitter;function d(){h.call(this)}a("inherits")(d,h),d.Readable=a("readable-stream/readable.js"),d.Writable=a("readable-stream/writable.js"),d.Duplex=a("readable-stream/duplex.js"),d.Transform=a("readable-stream/transform.js"),d.PassThrough=a("readable-stream/passthrough.js"),d.Stream=d,d.prototype.pipe=function(p,g){var A=this;function m(_){p.writable&&p.write(_)===!1&&A.pause&&A.pause()}function y(){A.readable&&A.resume&&A.resume()}A.on("data",m),p.on("drain",y),p._isStdio||g&&g.end===!1||(A.on("end",I),A.on("close",E));var b=!1;function I(){b||(b=!0,p.end())}function E(){b||(b=!0,typeof p.destroy=="function"&&p.destroy())}function B(_){if(S(),h.listenerCount(this,"error")===0)throw _}function S(){A.removeListener("data",m),p.removeListener("drain",y),A.removeListener("end",I),A.removeListener("close",E),A.removeListener("error",B),p.removeListener("error",B),A.removeListener("end",S),A.removeListener("close",S),p.removeListener("close",S)}return A.on("error",B),p.on("error",B),A.on("end",S),A.on("close",S),p.on("close",S),p.emit("pipe",A),p}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(a,c,u){var h={}.toString;c.exports=Array.isArray||function(d){return h.call(d)=="[object Array]"}},{}],507:[function(a,c,u){c.exports=a("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(a,c,u){var h=a("process-nextick-args"),d=Object.keys||function(S){var _=[];for(var D in S)_.push(D);return _};c.exports=I;var p=Object.create(a("core-util-is"));p.inherits=a("inherits");var g=a("./_stream_readable"),A=a("./_stream_writable");p.inherits(I,g);for(var m=d(A.prototype),y=0;y0?(typeof je=="string"||Ie.objectMode||Object.getPrototypeOf(je)===b.prototype||(je=E(je)),Me?Ie.endEmitted?Te.emit("error",new Error("stream.unshift() after end event")):fe(Te,Ie,je,!0):Ie.ended?Te.emit("error",new Error("stream.push() after EOF")):(Ie.reading=!1,Ie.decoder&&!lt?(je=Ie.decoder.write(je),Ie.objectMode||je.length!==0?fe(Te,Ie,je,!1):z(Te,Ie)):fe(Te,Ie,je,!1))):Me||(Ie.reading=!1)),Ae(Ie)}function fe(Te,je,lt,Me){je.flowing&&je.length===0&&!je.sync?(Te.emit("data",lt),Te.read(0)):(je.length+=je.objectMode?1:lt.length,Me?je.buffer.unshift(lt):je.buffer.push(lt),je.needReadable&&J(Te)),z(Te,je)}function de(Te,je){var lt;return B(je)||typeof je=="string"||je===void 0||Te.objectMode||(lt=new TypeError("Invalid non-string/buffer chunk")),lt}function Ae(Te){return!Te.ended&&(Te.needReadable||Te.length=we?Te=we:(Te--,Te|=Te>>>1,Te|=Te>>>2,Te|=Te>>>4,Te|=Te>>>8,Te|=Te>>>16,Te++),Te}function ne(Te,je){return Te<=0||je.length===0&&je.ended?0:je.objectMode?1:Te!=Te?je.flowing&&je.length?je.buffer.head.data.length:je.length:(Te>je.highWaterMark&&(je.highWaterMark=Z(Te)),Te<=je.length?Te:je.ended?je.length:(je.needReadable=!0,0))}function j(Te,je){if(!je.ended){if(je.decoder){var lt=je.decoder.end();lt&<.length&&(je.buffer.push(lt),je.length+=je.objectMode?1:lt.length)}je.ended=!0,J(Te)}}function J(Te){var je=Te._readableState;je.needReadable=!1,je.emittedReadable||(D("emitReadable",je.flowing),je.emittedReadable=!0,je.sync?p.nextTick(q,Te):q(Te))}function q(Te){D("emit readable"),Te.emit("readable"),me(Te)}function z(Te,je){je.readingMore||(je.readingMore=!0,p.nextTick(X,Te,je))}function X(Te,je){for(var lt=je.length;!je.reading&&!je.flowing&&!je.ended&&je.length=je.length?(lt=je.decoder?je.buffer.join(""):je.buffer.length===1?je.buffer.head.data:je.buffer.concat(je.length),je.buffer.clear()):lt=_e(Te,je.buffer,je.decoder),lt);var lt}function _e(Te,je,lt){var Me;return TeRt.length?Rt.length:Te;if(Ie===Rt.length?Ke+=Rt:Ke+=Rt.slice(0,Te),(Te-=Ie)==0){Ie===Rt.length?(++Me,lt.next?je.head=lt.next:je.head=je.tail=null):(je.head=lt,lt.data=Rt.slice(Ie));break}++Me}return je.length-=Me,Ke}function et(Te,je){var lt=b.allocUnsafe(Te),Me=je.head,Ke=1;for(Me.data.copy(lt),Te-=Me.data.length;Me=Me.next;){var Rt=Me.data,Ie=Te>Rt.length?Rt.length:Te;if(Rt.copy(lt,lt.length-Te,0,Ie),(Te-=Ie)==0){Ie===Rt.length?(++Ke,Me.next?je.head=Me.next:je.head=je.tail=null):(je.head=Me,Me.data=Rt.slice(Ie));break}++Ke}return je.length-=Ke,lt}function st(Te){var je=Te._readableState;if(je.length>0)throw new Error('"endReadable()" called on non-empty stream');je.endEmitted||(je.ended=!0,p.nextTick(Ge,je,Te))}function Ge(Te,je){Te.endEmitted||Te.length!==0||(Te.endEmitted=!0,je.readable=!1,je.emit("end"))}function Be(Te,je){for(var lt=0,Me=Te.length;lt=je.highWaterMark||je.ended))return D("read: emitReadable",je.length,je.ended),je.length===0&&je.ended?st(this):J(this),null;if((Te=ne(Te,je))===0&&je.ended)return je.length===0&&st(this),null;var Me,Ke=je.needReadable;return D("need readable",Ke),(je.length===0||je.length-Te0?Fe(Te,je):null)===null?(je.needReadable=!0,Te=0):je.length-=Te,je.length===0&&(je.ended||(je.needReadable=!0),lt!==Te&&je.ended&&st(this)),Me!==null&&this.emit("data",Me),Me},te.prototype._read=function(Te){this.emit("error",new Error("_read() is not implemented"))},te.prototype.pipe=function(Te,je){var lt=this,Me=this._readableState;switch(Me.pipesCount){case 0:Me.pipes=Te;break;case 1:Me.pipes=[Me.pipes,Te];break;default:Me.pipes.push(Te)}Me.pipesCount+=1,D("pipe count=%d opts=%j",Me.pipesCount,je);var Ke=je&&je.end===!1||Te===h.stdout||Te===h.stderr?$e:Ie;function Rt(nt,Ot){D("onunpipe"),nt===lt&&Ot&&Ot.hasUnpiped===!1&&(Ot.hasUnpiped=!0,pt())}function Ie(){D("onend"),Te.end()}Me.endEmitted?p.nextTick(Ke):lt.once("end",Ke),Te.on("unpipe",Rt);var Re=se(lt);Te.on("drain",Re);var qe=!1;function pt(){D("cleanup"),Te.removeListener("close",Ft),Te.removeListener("finish",Ze),Te.removeListener("drain",Re),Te.removeListener("error",_t),Te.removeListener("unpipe",Rt),lt.removeListener("end",Ie),lt.removeListener("end",$e),lt.removeListener("data",Qe),qe=!0,!Me.awaitDrain||Te._writableState&&!Te._writableState.needDrain||Re()}var Lt=!1;function Qe(nt){D("ondata"),Lt=!1,Te.write(nt)!==!1||Lt||((Me.pipesCount===1&&Me.pipes===Te||Me.pipesCount>1&&Be(Me.pipes,Te)!==-1)&&!qe&&(D("false write response, pause",Me.awaitDrain),Me.awaitDrain++,Lt=!0),lt.pause())}function _t(nt){D("onerror",nt),$e(),Te.removeListener("error",_t),m(Te,"error")===0&&Te.emit("error",nt)}function Ft(){Te.removeListener("finish",Ze),$e()}function Ze(){D("onfinish"),Te.removeListener("close",Ft),$e()}function $e(){D("unpipe"),lt.unpipe(Te)}return lt.on("data",Qe),W(Te,"error",_t),Te.once("close",Ft),Te.once("finish",Ze),Te.emit("pipe",lt),Me.flowing||(D("pipe resume"),lt.resume()),Te},te.prototype.unpipe=function(Te){var je=this._readableState,lt={hasUnpiped:!1};if(je.pipesCount===0)return this;if(je.pipesCount===1)return Te&&Te!==je.pipes||(Te||(Te=je.pipes),je.pipes=null,je.pipesCount=0,je.flowing=!1,Te&&Te.emit("unpipe",this,lt)),this;if(!Te){var Me=je.pipes,Ke=je.pipesCount;je.pipes=null,je.pipesCount=0,je.flowing=!1;for(var Rt=0;Rt-1?p:g.nextTick;W.WritableState=H;var b=Object.create(a("core-util-is"));b.inherits=a("inherits");var I={deprecate:a("util-deprecate")},E=a("./internal/streams/stream"),B=a("safe-buffer").Buffer,S=(d!==void 0?d:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _(ae){return B.from(ae)}function D(ae){return B.isBuffer(ae)||ae instanceof S}var T,F=a("./internal/streams/destroy");function N(){}function H(ae,me){m=m||a("./_stream_duplex"),ae=ae||{};var Fe=me instanceof m;this.objectMode=!!ae.objectMode,Fe&&(this.objectMode=this.objectMode||!!ae.writableObjectMode);var _e=ae.highWaterMark,rt=ae.writableHighWaterMark,et=this.objectMode?16:16384;this.highWaterMark=_e||_e===0?_e:Fe&&(rt||rt===0)?rt:et,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var st=ae.decodeStrings===!1;this.decodeStrings=!st,this.defaultEncoding=ae.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ge){Z(me,Ge)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new A(this)}function W(ae){if(m=m||a("./_stream_duplex"),!(T.call(W,this)||this instanceof m))return new W(ae);this._writableState=new H(ae,this),this.writable=!0,ae&&(typeof ae.write=="function"&&(this._write=ae.write),typeof ae.writev=="function"&&(this._writev=ae.writev),typeof ae.destroy=="function"&&(this._destroy=ae.destroy),typeof ae.final=="function"&&(this._final=ae.final)),E.call(this)}function V(ae,me){var Fe=new Error("write after end");ae.emit("error",Fe),g.nextTick(me,Fe)}function te(ae,me,Fe,_e){var rt=!0,et=!1;return Fe===null?et=new TypeError("May not write null values to stream"):typeof Fe=="string"||Fe===void 0||me.objectMode||(et=new TypeError("Invalid non-string/buffer chunk")),et&&(ae.emit("error",et),g.nextTick(_e,et),rt=!1),rt}function ue(ae,me,Fe){return ae.objectMode||ae.decodeStrings===!1||typeof me!="string"||(me=B.from(me,Fe)),me}function fe(ae,me,Fe,_e,rt,et){if(!Fe){var st=ue(me,_e,rt);_e!==st&&(Fe=!0,rt="buffer",_e=st)}var Ge=me.objectMode?1:_e.length;me.length+=Ge;var Be=me.length-1))throw new TypeError("Unknown encoding: "+ae);return this._writableState.defaultEncoding=ae,this},Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),W.prototype._write=function(ae,me,Fe){Fe(new Error("_write() is not implemented"))},W.prototype._writev=null,W.prototype.end=function(ae,me,Fe){var _e=this._writableState;typeof ae=="function"?(Fe=ae,ae=null,me=null):typeof me=="function"&&(Fe=me,me=null),ae!=null&&this.write(ae,me),_e.corked&&(_e.corked=1,this.uncork()),_e.ending||oe(this,_e,Fe)},Object.defineProperty(W.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(ae){this._writableState&&(this._writableState.destroyed=ae)}}),W.prototype.destroy=F.destroy,W.prototype._undestroy=F.undestroy,W.prototype._destroy=function(ae,me){this.end(),me(ae)}}).call(this)}).call(this,a("_process"),Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{},a("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(a,c,u){function h(A,m){if(!(A instanceof m))throw new TypeError("Cannot call a class as a function")}var d=a("safe-buffer").Buffer,p=a("util");function g(A,m,y){A.copy(m,y)}c.exports=function(){function A(){h(this,A),this.head=null,this.tail=null,this.length=0}return A.prototype.push=function(m){var y={data:m,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length},A.prototype.unshift=function(m){var y={data:m,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length},A.prototype.shift=function(){if(this.length!==0){var m=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,m}},A.prototype.clear=function(){this.head=this.tail=null,this.length=0},A.prototype.join=function(m){if(this.length===0)return"";for(var y=this.head,b=""+y.data;y=y.next;)b+=m+y.data;return b},A.prototype.concat=function(m){if(this.length===0)return d.alloc(0);for(var y=d.allocUnsafe(m>>>0),b=this.head,I=0;b;)g(b.data,y,I),I+=b.data.length,b=b.next;return y},A}(),p&&p.inspect&&p.inspect.custom&&(c.exports.prototype[p.inspect.custom]=function(){var A=p.inspect({length:this.length});return this.constructor.name+" "+A})},{"safe-buffer":520,util:188}],514:[function(a,c,u){var h=a("process-nextick-args");function d(A,m){var y=this,b=this._readableState&&this._readableState.destroyed,I=this._writableState&&this._writableState.destroyed;return b||I?(m?m(A):A&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,h.nextTick(g,this,A)):h.nextTick(g,this,A)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(A||null,function(E){!m&&E?y._writableState?y._writableState.errorEmitted||(y._writableState.errorEmitted=!0,h.nextTick(g,y,E)):h.nextTick(g,y,E):m&&m(E)}),this)}function p(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function g(A,m){A.emit("error",m)}c.exports={destroy:d,undestroy:p}},{"process-nextick-args":466}],515:[function(a,c,u){arguments[4][490][0].apply(u,arguments)},{dup:490,events:422}],516:[function(a,c,u){c.exports=a("./readable").PassThrough},{"./readable":517}],517:[function(a,c,u){(u=c.exports=a("./lib/_stream_readable.js")).Stream=u,u.Readable=u,u.Writable=a("./lib/_stream_writable.js"),u.Duplex=a("./lib/_stream_duplex.js"),u.Transform=a("./lib/_stream_transform.js"),u.PassThrough=a("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(a,c,u){c.exports=a("./readable").Transform},{"./readable":517}],519:[function(a,c,u){c.exports=a("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(a,c,u){arguments[4][217][0].apply(u,arguments)},{buffer:220,dup:217}],521:[function(a,c,u){arguments[4][218][0].apply(u,arguments)},{dup:218,"safe-buffer":520}],522:[function(a,c,u){arguments[4][218][0].apply(u,arguments)},{dup:218,"safe-buffer":494}],523:[function(a,c,u){(function(h,d){(function(){var p=a("process/browser.js").nextTick,g=Function.prototype.apply,A=Array.prototype.slice,m={},y=0;function b(I,E){this._id=I,this._clearFn=E}u.setTimeout=function(){return new b(g.call(setTimeout,window,arguments),clearTimeout)},u.setInterval=function(){return new b(g.call(setInterval,window,arguments),clearInterval)},u.clearTimeout=u.clearInterval=function(I){I.close()},b.prototype.unref=b.prototype.ref=function(){},b.prototype.close=function(){this._clearFn.call(window,this._id)},u.enroll=function(I,E){clearTimeout(I._idleTimeoutId),I._idleTimeout=E},u.unenroll=function(I){clearTimeout(I._idleTimeoutId),I._idleTimeout=-1},u._unrefActive=u.active=function(I){clearTimeout(I._idleTimeoutId);var E=I._idleTimeout;E>=0&&(I._idleTimeoutId=setTimeout(function(){I._onTimeout&&I._onTimeout()},E))},u.setImmediate=typeof h=="function"?h:function(I){var E=y++,B=!(arguments.length<2)&&A.call(arguments,1);return m[E]=!0,p(function(){m[E]&&(B?I.apply(null,B):I.call(null),u.clearImmediate(E))}),E},u.clearImmediate=typeof d=="function"?d:function(I){delete m[I]}}).call(this)}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(a,c,u){(function(h){(function(){function d(g,A){if(p("noDeprecation"))return g;var m=!1;function y(){if(!m){if(p("throwDeprecation"))throw new Error(A);p("traceDeprecation")?console.trace(A):console.warn(A),m=!0}return g.apply(this,arguments)}return y}function p(g){try{if(!h.localStorage)return!1}catch{return!1}var A=h.localStorage[g];return A!=null&&String(A).toLowerCase()==="true"}c.exports=d}).call(this)}).call(this,Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{}],525:[function(a,c,u){typeof Object.create=="function"?c.exports=function(h,d){h.super_=d,h.prototype=Object.create(d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})}:c.exports=function(h,d){h.super_=d;var p=function(){};p.prototype=d.prototype,h.prototype=new p,h.prototype.constructor=h}},{}],526:[function(a,c,u){c.exports=function(h){return h&&typeof h=="object"&&typeof h.copy=="function"&&typeof h.fill=="function"&&typeof h.readUInt8=="function"}},{}],527:[function(a,c,u){(function(h,d){(function(){var p=/%[sdj%]/g;u.format=function(oe){if(!te(oe)){for(var ye=[],ae=0;ae=Fe)return et;switch(et){case"%s":return String(me[ae++]);case"%d":return Number(me[ae++]);case"%j":try{return JSON.stringify(me[ae++])}catch{return"[Circular]"}default:return et}}),rt=me[ae];ae=3&&(ae.depth=arguments[2]),arguments.length>=4&&(ae.colors=arguments[3]),N(ye)?ae.showHidden=ye:ye&&u._extend(ae,ye),fe(ae.showHidden)&&(ae.showHidden=!1),fe(ae.depth)&&(ae.depth=2),fe(ae.colors)&&(ae.colors=!1),fe(ae.customInspect)&&(ae.customInspect=!0),ae.colors&&(ae.stylize=y),E(ae,oe,ae.depth)}function y(oe,ye){var ae=m.styles[ye];return ae?"\x1B["+m.colors[ae][0]+"m"+oe+"\x1B["+m.colors[ae][1]+"m":oe}function b(oe,ye){return oe}function I(oe){var ye={};return oe.forEach(function(ae,me){ye[ae]=!0}),ye}function E(oe,ye,ae){if(oe.customInspect&&ye&&ne(ye.inspect)&&ye.inspect!==u.inspect&&(!ye.constructor||ye.constructor.prototype!==ye)){var me=ye.inspect(ae,oe);return te(me)||(me=E(oe,me,ae)),me}var Fe=B(oe,ye);if(Fe)return Fe;var _e=Object.keys(ye),rt=I(_e);if(oe.showHidden&&(_e=Object.getOwnPropertyNames(ye)),Z(ye)&&(_e.indexOf("message")>=0||_e.indexOf("description")>=0))return S(ye);if(_e.length===0){if(ne(ye)){var et=ye.name?": "+ye.name:"";return oe.stylize("[Function"+et+"]","special")}if(de(ye))return oe.stylize(RegExp.prototype.toString.call(ye),"regexp");if(we(ye))return oe.stylize(Date.prototype.toString.call(ye),"date");if(Z(ye))return S(ye)}var st,Ge="",Be=!1,Te=["{","}"];return F(ye)&&(Be=!0,Te=["[","]"]),ne(ye)&&(Ge=" [Function"+(ye.name?": "+ye.name:"")+"]"),de(ye)&&(Ge=" "+RegExp.prototype.toString.call(ye)),we(ye)&&(Ge=" "+Date.prototype.toUTCString.call(ye)),Z(ye)&&(Ge=" "+S(ye)),_e.length!==0||Be&&ye.length!=0?ae<0?de(ye)?oe.stylize(RegExp.prototype.toString.call(ye),"regexp"):oe.stylize("[Object]","special"):(oe.seen.push(ye),st=Be?_(oe,ye,ae,rt,_e):_e.map(function(je){return D(oe,ye,ae,rt,je,Be)}),oe.seen.pop(),T(st,Ge,Te)):Te[0]+Ge+Te[1]}function B(oe,ye){if(fe(ye))return oe.stylize("undefined","undefined");if(te(ye)){var ae="'"+JSON.stringify(ye).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return oe.stylize(ae,"string")}return V(ye)?oe.stylize(""+ye,"number"):N(ye)?oe.stylize(""+ye,"boolean"):H(ye)?oe.stylize("null","null"):void 0}function S(oe){return"["+Error.prototype.toString.call(oe)+"]"}function _(oe,ye,ae,me,Fe){for(var _e=[],rt=0,et=ye.length;rt-1&&(et=_e?et.split(` `).map(function(Ge){return" "+Ge}).join(` `).substr(2):` `+et.split(` `).map(function(Ge){return" "+Ge}).join(` `)):et=oe.stylize("[Circular]","special")),fe(rt)){if(_e&&Fe.match(/^\d+$/))return et;(rt=JSON.stringify(""+Fe)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(rt=rt.substr(1,rt.length-2),rt=oe.stylize(rt,"name")):(rt=rt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),rt=oe.stylize(rt,"string"))}return rt+": "+et}function T(oe,ye,ae){return oe.reduce(function(me,Fe){return Fe.indexOf(` `),me+Fe.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ae[0]+(ye===""?"":ye+` `)+" "+oe.join(`, `)+" "+ae[1]:ae[0]+ye+" "+oe.join(", ")+" "+ae[1]}function F(oe){return Array.isArray(oe)}function N(oe){return typeof oe=="boolean"}function H(oe){return oe===null}function W(oe){return oe==null}function V(oe){return typeof oe=="number"}function te(oe){return typeof oe=="string"}function ue(oe){return typeof oe=="symbol"}function fe(oe){return oe===void 0}function de(oe){return Ae(oe)&&J(oe)==="[object RegExp]"}function Ae(oe){return typeof oe=="object"&&oe!==null}function we(oe){return Ae(oe)&&J(oe)==="[object Date]"}function Z(oe){return Ae(oe)&&(J(oe)==="[object Error]"||oe instanceof Error)}function ne(oe){return typeof oe=="function"}function j(oe){return oe===null||typeof oe=="boolean"||typeof oe=="number"||typeof oe=="string"||typeof oe=="symbol"||oe===void 0}function J(oe){return Object.prototype.toString.call(oe)}function q(oe){return oe<10?"0"+oe.toString(10):oe.toString(10)}u.debuglog=function(oe){if(fe(g)&&(g=h.env.NODE_DEBUG||""),oe=oe.toUpperCase(),!A[oe])if(new RegExp("\\b"+oe+"\\b","i").test(g)){var ye=h.pid;A[oe]=function(){var ae=u.format.apply(u,arguments);console.error("%s %d: %s",oe,ye,ae)}}else A[oe]=function(){};return A[oe]},u.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},u.isArray=F,u.isBoolean=N,u.isNull=H,u.isNullOrUndefined=W,u.isNumber=V,u.isString=te,u.isSymbol=ue,u.isUndefined=fe,u.isRegExp=de,u.isObject=Ae,u.isDate=we,u.isError=Z,u.isFunction=ne,u.isPrimitive=j,u.isBuffer=a("./support/isBuffer");var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(){var oe=new Date,ye=[q(oe.getHours()),q(oe.getMinutes()),q(oe.getSeconds())].join(":");return[oe.getDate(),z[oe.getMonth()],ye].join(" ")}function se(oe,ye){return Object.prototype.hasOwnProperty.call(oe,ye)}u.log=function(){console.log("%s - %s",X(),u.format.apply(u,arguments))},u.inherits=a("inherits"),u._extend=function(oe,ye){if(!ye||!Ae(ye))return oe;for(var ae=Object.keys(ye),me=ae.length;me--;)oe[ae[me]]=ye[ae[me]];return oe}}).call(this)}).call(this,a("_process"),Ui!==void 0?Ui:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(u,"v1",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(u,"v3",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(u,"v4",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(u,"v5",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(u,"NIL",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(u,"version",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(u,"validate",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(u,"stringify",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(u,"parse",{enumerable:!0,get:function(){return I.default}});var h=E(a("./v1.js")),d=E(a("./v3.js")),p=E(a("./v4.js")),g=E(a("./v5.js")),A=E(a("./nil.js")),m=E(a("./version.js")),y=E(a("./validate.js")),b=E(a("./stringify.js")),I=E(a("./parse.js"));function E(B){return B&&B.__esModule?B:{default:B}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(a,c,u){function h(D){if(typeof D=="string"){var T=unescape(encodeURIComponent(D));D=new Uint8Array(T.length);for(var F=0;F>5]>>>H%32&255,V=parseInt(N.charAt(W>>>4&15)+N.charAt(15&W),16);T.push(V)}return T}function p(D){return 14+(D+64>>>9<<4)+1}function g(D,T){D[T>>5]|=128<>5]|=(255&D[N/8])<>16)+(T>>16)+(F>>16)<<16|65535&F}function y(D,T){return D<>>32-T}function b(D,T,F,N,H,W){return m(y(m(m(T,D),m(N,W)),H),F)}function I(D,T,F,N,H,W,V){return b(T&F|~T&N,D,T,H,W,V)}function E(D,T,F,N,H,W,V){return b(T&N|F&~N,D,T,H,W,V)}function B(D,T,F,N,H,W,V){return b(T^F^N,D,T,H,W,V)}function S(D,T,F,N,H,W,V){return b(F^(T|~N),D,T,H,W,V)}Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var _=h;u.default=_},{}],530:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var h="00000000-0000-0000-0000-000000000000";u.default=h},{}],531:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var h=d(a("./validate.js"));function d(A){return A&&A.__esModule?A:{default:A}}function p(A){if(!(0,h.default)(A))throw TypeError("Invalid UUID");var m,y=new Uint8Array(16);return y[0]=(m=parseInt(A.slice(0,8),16))>>>24,y[1]=m>>>16&255,y[2]=m>>>8&255,y[3]=255&m,y[4]=(m=parseInt(A.slice(9,13),16))>>>8,y[5]=255&m,y[6]=(m=parseInt(A.slice(14,18),16))>>>8,y[7]=255&m,y[8]=(m=parseInt(A.slice(19,23),16))>>>8,y[9]=255&m,y[10]=(m=parseInt(A.slice(24,36),16))/1099511627776&255,y[11]=m/4294967296&255,y[12]=m>>>24&255,y[13]=m>>>16&255,y[14]=m>>>8&255,y[15]=255&m,y}var g=p;u.default=g},{"./validate.js":541}],532:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var h=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;u.default=h},{}],533:[function(a,c,u){var h;Object.defineProperty(u,"__esModule",{value:!0}),u.default=p;var d=new Uint8Array(16);function p(){if(!h&&!(h=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return h(d)}},{}],534:[function(a,c,u){function h(A,m,y,b){switch(A){case 0:return m&y^~m&b;case 1:case 3:return m^y^b;case 2:return m&y^m&b^y&b}}function d(A,m){return A<>>32-m}function p(A){var m=[1518500249,1859775393,2400959708,3395469782],y=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof A=="string"){var b=unescape(encodeURIComponent(A));A=[];for(var I=0;I>>0;de=fe,fe=ue,ue=d(te,30)>>>0,te=V,V=Z}y[0]=y[0]+V>>>0,y[1]=y[1]+te>>>0,y[2]=y[2]+ue>>>0,y[3]=y[3]+fe>>>0,y[4]=y[4]+de>>>0}return[y[0]>>24&255,y[0]>>16&255,y[0]>>8&255,255&y[0],y[1]>>24&255,y[1]>>16&255,y[1]>>8&255,255&y[1],y[2]>>24&255,y[2]>>16&255,y[2]>>8&255,255&y[2],y[3]>>24&255,y[3]>>16&255,y[3]>>8&255,255&y[3],y[4]>>24&255,y[4]>>16&255,y[4]>>8&255,255&y[4]]}Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var g=p;u.default=g},{}],535:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var h=d(a("./validate.js"));function d(y){return y&&y.__esModule?y:{default:y}}for(var p=[],g=0;g<256;++g)p.push((g+256).toString(16).substr(1));function A(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=(p[y[b+0]]+p[y[b+1]]+p[y[b+2]]+p[y[b+3]]+"-"+p[y[b+4]]+p[y[b+5]]+"-"+p[y[b+6]]+p[y[b+7]]+"-"+p[y[b+8]]+p[y[b+9]]+"-"+p[y[b+10]]+p[y[b+11]]+p[y[b+12]]+p[y[b+13]]+p[y[b+14]]+p[y[b+15]]).toLowerCase();if(!(0,h.default)(I))throw TypeError("Stringified UUID is invalid");return I}var m=A;u.default=m},{"./validate.js":541}],536:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var h,d,p=A(a("./rng.js")),g=A(a("./stringify.js"));function A(E){return E&&E.__esModule?E:{default:E}}var m=0,y=0;function b(E,B,S){var _=B&&S||0,D=B||new Array(16),T=(E=E||{}).node||h,F=E.clockseq!==void 0?E.clockseq:d;if(T==null||F==null){var N=E.random||(E.rng||p.default)();T==null&&(T=h=[1|N[0],N[1],N[2],N[3],N[4],N[5]]),F==null&&(F=d=16383&(N[6]<<8|N[7]))}var H=E.msecs!==void 0?E.msecs:Date.now(),W=E.nsecs!==void 0?E.nsecs:y+1,V=H-m+(W-y)/1e4;if(V<0&&E.clockseq===void 0&&(F=F+1&16383),(V<0||H>m)&&E.nsecs===void 0&&(W=0),W>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");m=H,y=W,d=F;var te=(1e4*(268435455&(H+=122192928e5))+W)%4294967296;D[_++]=te>>>24&255,D[_++]=te>>>16&255,D[_++]=te>>>8&255,D[_++]=255&te;var ue=H/4294967296*1e4&268435455;D[_++]=ue>>>8&255,D[_++]=255&ue,D[_++]=ue>>>24&15|16,D[_++]=ue>>>16&255,D[_++]=F>>>8|128,D[_++]=255&F;for(var fe=0;fe<6;++fe)D[_+fe]=T[fe];return B||(0,g.default)(D)}var I=b;u.default=I},{"./rng.js":533,"./stringify.js":535}],537:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var h=p(a("./v35.js")),d=p(a("./md5.js"));function p(A){return A&&A.__esModule?A:{default:A}}var g=(0,h.default)("v3",48,d.default);u.default=g},{"./md5.js":529,"./v35.js":538}],538:[function(a,c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.default=y,u.URL=u.DNS=void 0;var h=p(a("./stringify.js")),d=p(a("./parse.js"));function p(b){return b&&b.__esModule?b:{default:b}}function g(b){b=unescape(encodeURIComponent(b));for(var I=[],E=0;E=g&&I<=55295||I===d||I===p||I===h||I>=57344&&I<=65533||I>=65536&&I<=1114111}function m(I){return I===g||I===d||I===p||I===h}function y(I){return I>=65&&I<=90||I>=97&&I<=122||I===58||I===95||I===8204||I===8205||I>=192&&I<=214||I>=216&&I<=246||I>=248&&I<=767||I>=880&&I<=893||I>=895&&I<=8191||I>=8304&&I<=8591||I>=11264&&I<=12271||I>=12289&&I<=55295||I>=63744&&I<=64975||I>=65008&&I<=65533||I>=65536&&I<=983039}function b(I){return y(I)||I>=48&&I<=57||I===45||I===46||I===183||I>=768&&I<=879||I>=8255&&I<=8256}u.S_LIST=[g,d,p,h],u.isChar=A,u.isS=m,u.isNameStartChar=y,u.isNameChar=b},{}],544:[function(a,c,u){/** * Character classes and associated utilities for the 2nd edition of XML 1.1. * * @author Louis-Dominique Dubeau * @license MIT * @copyright Louis-Dominique Dubeau */Object.defineProperty(u,"__esModule",{value:!0}),u.CHAR="-퟿-�𐀀-􏿿",u.RESTRICTED_CHAR="-\b\v\f--„†-Ÿ",u.S=` \r `,u.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",u.NAME_CHAR="-"+u.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",u.CHAR_RE=new RegExp("^["+u.CHAR+"]$","u"),u.RESTRICTED_CHAR_RE=new RegExp("^["+u.RESTRICTED_CHAR+"]$","u"),u.S_RE=new RegExp("^["+u.S+"]+$","u"),u.NAME_START_CHAR_RE=new RegExp("^["+u.NAME_START_CHAR+"]$","u"),u.NAME_CHAR_RE=new RegExp("^["+u.NAME_CHAR+"]$","u"),u.NAME_RE=new RegExp("^["+u.NAME_START_CHAR+"]["+u.NAME_CHAR+"]*$","u"),u.NMTOKEN_RE=new RegExp("^["+u.NAME_CHAR+"]+$","u");var h=9,d=10,p=13,g=32;function A(B){return B>=1&&B<=55295||B>=57344&&B<=65533||B>=65536&&B<=1114111}function m(B){return B>=1&&B<=8||B===11||B===12||B>=14&&B<=31||B>=127&&B<=132||B>=134&&B<=159}function y(B){return B===9||B===10||B===13||B>31&&B<127||B===133||B>159&&B<=55295||B>=57344&&B<=65533||B>=65536&&B<=1114111}function b(B){return B===g||B===d||B===p||B===h}function I(B){return B>=65&&B<=90||B>=97&&B<=122||B===58||B===95||B===8204||B===8205||B>=192&&B<=214||B>=216&&B<=246||B>=248&&B<=767||B>=880&&B<=893||B>=895&&B<=8191||B>=8304&&B<=8591||B>=11264&&B<=12271||B>=12289&&B<=55295||B>=63744&&B<=64975||B>=65008&&B<=65533||B>=65536&&B<=983039}function E(B){return I(B)||B>=48&&B<=57||B===45||B===46||B===183||B>=768&&B<=879||B>=8255&&B<=8256}u.S_LIST=[g,d,p,h],u.isChar=A,u.isRestrictedChar=m,u.isCharAndNotRestricted=y,u.isS=b,u.isNameStartChar=I,u.isNameChar=E},{}],545:[function(a,c,u){function h(p){return p>=65&&p<=90||p===95||p>=97&&p<=122||p>=192&&p<=214||p>=216&&p<=246||p>=248&&p<=767||p>=880&&p<=893||p>=895&&p<=8191||p>=8204&&p<=8205||p>=8304&&p<=8591||p>=11264&&p<=12271||p>=12289&&p<=55295||p>=63744&&p<=64975||p>=65008&&p<=65533||p>=65536&&p<=983039}function d(p){return h(p)||p===45||p===46||p>=48&&p<=57||p===183||p>=768&&p<=879||p>=8255&&p<=8256}/** * Character class utilities for XML NS 1.0 edition 3. * * @author Louis-Dominique Dubeau * @license MIT * @copyright Louis-Dominique Dubeau */Object.defineProperty(u,"__esModule",{value:!0}),u.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",u.NC_NAME_CHAR="-"+u.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",u.NC_NAME_START_CHAR_RE=new RegExp("^["+u.NC_NAME_START_CHAR+"]$","u"),u.NC_NAME_CHAR_RE=new RegExp("^["+u.NC_NAME_CHAR+"]$","u"),u.NC_NAME_RE=new RegExp("^["+u.NC_NAME_START_CHAR+"]["+u.NC_NAME_CHAR+"]*$","u"),u.isNCNameStartChar=h,u.isNCNameChar=d},{}]},{},[15])(15);var p5=U2.exports;function K0(){return(K0=Sa(_n.mark(function a(c,u){return _n.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(u){h.next=2;break}return h.abrupt("return");case 2:u instanceof ArrayBuffer&&(u=new Blob([u])),rp(c,URL.createObjectURL(u));case 4:case"end":return h.stop()}},a)}))).apply(this,arguments)}function rp(a,c){var u=document.createElement("a");u.download=a,u.style.display="none",u.href=c,document.body.appendChild(u),u.click(),document.body.removeChild(u)}function iy(a){return(iy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(a)}var v5=/^\s+/,vw=/\s+$/;function ei(a,c){if(c=c||{},(a=a||"")instanceof ei)return a;if(!(this instanceof ei))return new ei(a,c);var u=function(h){var d={r:0,g:0,b:0},p=1,g=null,A=null,m=null,y=!1,b=!1;typeof h=="string"&&(h=function(S){S=S.replace(v5,"").replace(vw,"").toLowerCase();var _,D=!1;if(cy[S])S=cy[S],D=!0;else if(S=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(_=Vc.rgb.exec(S))?{r:_[1],g:_[2],b:_[3]}:(_=Vc.rgba.exec(S))?{r:_[1],g:_[2],b:_[3],a:_[4]}:(_=Vc.hsl.exec(S))?{h:_[1],s:_[2],l:_[3]}:(_=Vc.hsla.exec(S))?{h:_[1],s:_[2],l:_[3],a:_[4]}:(_=Vc.hsv.exec(S))?{h:_[1],s:_[2],v:_[3]}:(_=Vc.hsva.exec(S))?{h:_[1],s:_[2],v:_[3],a:_[4]}:(_=Vc.hex8.exec(S))?{r:Do(_[1]),g:Do(_[2]),b:Do(_[3]),a:W2(_[4]),format:D?"name":"hex8"}:(_=Vc.hex6.exec(S))?{r:Do(_[1]),g:Do(_[2]),b:Do(_[3]),format:D?"name":"hex"}:(_=Vc.hex4.exec(S))?{r:Do(_[1]+""+_[1]),g:Do(_[2]+""+_[2]),b:Do(_[3]+""+_[3]),a:W2(_[4]+""+_[4]),format:D?"name":"hex8"}:(_=Vc.hex3.exec(S))?{r:Do(_[1]+""+_[1]),g:Do(_[2]+""+_[2]),b:Do(_[3]+""+_[3]),format:D?"name":"hex"}:!1}(h)),iy(h)=="object"&&(Il(h.r)&&Il(h.g)&&Il(h.b)?(I=h.r,E=h.g,B=h.b,d={r:255*so(I,255),g:255*so(E,255),b:255*so(B,255)},y=!0,b=String(h.r).substr(-1)==="%"?"prgb":"rgb"):Il(h.h)&&Il(h.s)&&Il(h.v)?(g=kd(h.s),A=kd(h.v),d=function(S,_,D){S=6*so(S,360),_=so(_,100),D=so(D,100);var T=Math.floor(S),F=S-T,N=D*(1-_),H=D*(1-F*_),W=D*(1-(1-F)*_),V=T%6,te=[D,H,N,N,W,D][V],ue=[W,D,D,H,N,N][V],fe=[N,N,W,D,D,H][V];return{r:255*te,g:255*ue,b:255*fe}}(h.h,g,A),y=!0,b="hsv"):Il(h.h)&&Il(h.s)&&Il(h.l)&&(g=kd(h.s),m=kd(h.l),d=function(S,_,D){var T,F,N;function H(te,ue,fe){return fe<0&&(fe+=1),fe>1&&(fe-=1),fe<1/6?te+6*(ue-te)*fe:fe<.5?ue:fe<2/3?te+(ue-te)*(2/3-fe)*6:te}if(S=so(S,360),_=so(_,100),D=so(D,100),_===0)T=F=N=D;else{var W=D<.5?D*(1+_):D+_-D*_,V=2*D-W;T=H(V,W,S+1/3),F=H(V,W,S),N=H(V,W,S-1/3)}return{r:255*T,g:255*F,b:255*N}}(h.h,g,m),y=!0,b="hsl"),h.hasOwnProperty("a")&&(p=h.a));var I,E,B;return p=ff(p),{ok:y,format:h.format||b,r:Math.min(255,Math.max(d.r,0)),g:Math.min(255,Math.max(d.g,0)),b:Math.min(255,Math.max(d.b,0)),a:p}}(a);this._originalInput=a,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=Math.round(100*this._a)/100,this._format=c.format||u.format,this._gradientType=c.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=u.ok}function ay(a,c,u){a=so(a,255),c=so(c,255),u=so(u,255);var h,d,p=Math.max(a,c,u),g=Math.min(a,c,u),A=(p+g)/2;if(p==g)h=d=0;else{var m=p-g;switch(d=A>.5?m/(2-p-g):m/(p+g),p){case a:h=(c-u)/m+(c>1)+720)%360;--c;)h.h=(h.h+d)%360,p.push(ei(h));return p}function zc(a,c){c=c||6;for(var u=ei(a).toHsv(),h=u.h,d=u.s,p=u.v,g=[],A=1/c;c--;)g.push(ei({h,s:d,v:p})),p=(p+A)%1;return g}ei.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var a=this.toRgb();return(299*a.r+587*a.g+114*a.b)/1e3},getLuminance:function(){var a,c,u,h=this.toRgb();return a=h.r/255,c=h.g/255,u=h.b/255,.2126*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.7152*(c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4))+.0722*(u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4))},setAlpha:function(a){return this._a=ff(a),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var a=oy(this._r,this._g,this._b);return{h:360*a.h,s:a.s,v:a.v,a:this._a}},toHsvString:function(){var a=oy(this._r,this._g,this._b),c=Math.round(360*a.h),u=Math.round(100*a.s),h=Math.round(100*a.v);return this._a==1?"hsv("+c+", "+u+"%, "+h+"%)":"hsva("+c+", "+u+"%, "+h+"%, "+this._roundA+")"},toHsl:function(){var a=ay(this._r,this._g,this._b);return{h:360*a.h,s:a.s,l:a.l,a:this._a}},toHslString:function(){var a=ay(this._r,this._g,this._b),c=Math.round(360*a.h),u=Math.round(100*a.s),h=Math.round(100*a.l);return this._a==1?"hsl("+c+", "+u+"%, "+h+"%)":"hsla("+c+", "+u+"%, "+h+"%, "+this._roundA+")"},toHex:function(a){return sy(this._r,this._g,this._b,a)},toHexString:function(a){return"#"+this.toHex(a)},toHex8:function(a){return function(c,u,h,d,p){var g=[Ec(Math.round(c).toString(16)),Ec(Math.round(u).toString(16)),Ec(Math.round(h).toString(16)),Ec(ly(d))];return p&&g[0].charAt(0)==g[0].charAt(1)&&g[1].charAt(0)==g[1].charAt(1)&&g[2].charAt(0)==g[2].charAt(1)&&g[3].charAt(0)==g[3].charAt(1)?g[0].charAt(0)+g[1].charAt(0)+g[2].charAt(0)+g[3].charAt(0):g.join("")}(this._r,this._g,this._b,this._a,a)},toHex8String:function(a){return"#"+this.toHex8(a)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*so(this._r,255))+"%",g:Math.round(100*so(this._g,255))+"%",b:Math.round(100*so(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*so(this._r,255))+"%, "+Math.round(100*so(this._g,255))+"%, "+Math.round(100*so(this._b,255))+"%)":"rgba("+Math.round(100*so(this._r,255))+"%, "+Math.round(100*so(this._g,255))+"%, "+Math.round(100*so(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(V0[sy(this._r,this._g,this._b,!0)]||!1)},toFilter:function(a){var c="#"+yw(this._r,this._g,this._b,this._a),u=c,h=this._gradientType?"GradientType = 1, ":"";if(a){var d=ei(a);u="#"+yw(d._r,d._g,d._b,d._a)}return"progid:DXImageTransform.Microsoft.gradient("+h+"startColorstr="+c+",endColorstr="+u+")"},toString:function(a){var c=!!a;a=a||this._format;var u=!1,h=this._a<1&&this._a>=0;return c||!h||a!=="hex"&&a!=="hex6"&&a!=="hex3"&&a!=="hex4"&&a!=="hex8"&&a!=="name"?(a==="rgb"&&(u=this.toRgbString()),a==="prgb"&&(u=this.toPercentageRgbString()),a!=="hex"&&a!=="hex6"||(u=this.toHexString()),a==="hex3"&&(u=this.toHexString(!0)),a==="hex4"&&(u=this.toHex8String(!0)),a==="hex8"&&(u=this.toHex8String()),a==="name"&&(u=this.toName()),a==="hsl"&&(u=this.toHslString()),a==="hsv"&&(u=this.toHsvString()),u||this.toHexString()):a==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return ei(this.toString())},_applyModification:function(a,c){var u=a.apply(null,[this].concat([].slice.call(c)));return this._r=u._r,this._g=u._g,this._b=u._b,this.setAlpha(u._a),this},lighten:function(){return this._applyModification(Ed,arguments)},brighten:function(){return this._applyModification(np,arguments)},darken:function(){return this._applyModification(Y2,arguments)},desaturate:function(){return this._applyModification(mw,arguments)},saturate:function(){return this._applyModification(y5,arguments)},greyscale:function(){return this._applyModification(wd,arguments)},spin:function(){return this._applyModification(J2,arguments)},_applyCombination:function(a,c){return a.apply(null,[this].concat([].slice.call(c)))},analogous:function(){return this._applyCombination(Iw,arguments)},complement:function(){return this._applyCombination(hf,arguments)},monochromatic:function(){return this._applyCombination(zc,arguments)},splitcomplement:function(){return this._applyCombination(uy,arguments)},triad:function(){return this._applyCombination(Zl,[3])},tetrad:function(){return this._applyCombination(Zl,[4])}},ei.fromRatio=function(a,c){if(iy(a)=="object"){var u={};for(var h in a)a.hasOwnProperty(h)&&(u[h]=h==="a"?a[h]:kd(a[h]));a=u}return ei(a,c)},ei.equals=function(a,c){return!(!a||!c)&&ei(a).toRgbString()==ei(c).toRgbString()},ei.random=function(){return ei.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},ei.mix=function(a,c,u){u=u===0?0:u||50;var h=ei(a).toRgb(),d=ei(c).toRgb(),p=u/100;return ei({r:(d.r-h.r)*p+h.r,g:(d.g-h.g)*p+h.g,b:(d.b-h.b)*p+h.b,a:(d.a-h.a)*p+h.a})},ei.readability=function(a,c){var u=ei(a),h=ei(c);return(Math.max(u.getLuminance(),h.getLuminance())+.05)/(Math.min(u.getLuminance(),h.getLuminance())+.05)},ei.isReadable=function(a,c,u){var h,d,p=ei.readability(a,c);switch(d=!1,(h=function(g){var A,m;return A=((g=g||{level:"AA",size:"small"}).level||"AA").toUpperCase(),m=(g.size||"small").toLowerCase(),A!=="AA"&&A!=="AAA"&&(A="AA"),m!=="small"&&m!=="large"&&(m="small"),{level:A,size:m}}(u)).level+h.size){case"AAsmall":case"AAAlarge":d=p>=4.5;break;case"AAlarge":d=p>=3;break;case"AAAsmall":d=p>=7}return d},ei.mostReadable=function(a,c,u){var h,d,p,g,A=null,m=0;d=(u=u||{}).includeFallbackColors,p=u.level,g=u.size;for(var y=0;ym&&(m=h,A=ei(c[y]));return ei.isReadable(a,A,{level:p,size:g})||!d?A:(u.includeFallbackColors=!1,ei.mostReadable(a,["#fff","#000"],u))};var cy=ei.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},V0=ei.hexNames=function(a){var c={};for(var u in a)a.hasOwnProperty(u)&&(c[a[u]]=u);return c}(cy);function ff(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function so(a,c){(function(h){return typeof h=="string"&&h.indexOf(".")!=-1&&parseFloat(h)===1})(a)&&(a="100%");var u=function(h){return typeof h=="string"&&h.indexOf("%")!=-1}(a);return a=Math.min(c,Math.max(0,parseFloat(a))),u&&(a=parseInt(a*c,10)/100),Math.abs(a-c)<1e-6?1:a%c/parseFloat(c)}function Bd(a){return Math.min(1,Math.max(0,a))}function Do(a){return parseInt(a,16)}function Ec(a){return a.length==1?"0"+a:""+a}function kd(a){return a<=1&&(a=100*a+"%"),a}function ly(a){return Math.round(255*parseFloat(a)).toString(16)}function W2(a){return Do(a)/255}var Kc,hy,Qd,Vc=(hy="[\\s|\\(]+("+(Kc="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Kc+")[,|\\s]+("+Kc+")\\s*\\)?",Qd="[\\s|\\(]+("+Kc+")[,|\\s]+("+Kc+")[,|\\s]+("+Kc+")[,|\\s]+("+Kc+")\\s*\\)?",{CSS_UNIT:new RegExp(Kc),rgb:new RegExp("rgb"+hy),rgba:new RegExp("rgba"+Qd),hsl:new RegExp("hsl"+hy),hsla:new RegExp("hsla"+Qd),hsv:new RegExp("hsv"+hy),hsva:new RegExp("hsva"+Qd),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Il(a){return!!Vc.CSS_UNIT.exec(a)}var q2={exports:{}};(function(a,c){(function(){var u,h="Expected a function",d="__lodash_hash_undefined__",p="__lodash_placeholder__",g=16,A=32,m=64,y=128,b=256,I=1/0,E=9007199254740991,B=NaN,S=4294967295,_=[["ary",y],["bind",1],["bindKey",2],["curry",8],["curryRight",g],["flip",512],["partial",A],["partialRight",m],["rearg",b]],D="[object Arguments]",T="[object Array]",F="[object Boolean]",N="[object Date]",H="[object Error]",W="[object Function]",V="[object GeneratorFunction]",te="[object Map]",ue="[object Number]",fe="[object Object]",de="[object Promise]",Ae="[object RegExp]",we="[object Set]",Z="[object String]",ne="[object Symbol]",j="[object WeakMap]",J="[object ArrayBuffer]",q="[object DataView]",z="[object Float32Array]",X="[object Float64Array]",se="[object Int8Array]",oe="[object Int16Array]",ye="[object Int32Array]",ae="[object Uint8Array]",me="[object Uint8ClampedArray]",Fe="[object Uint16Array]",_e="[object Uint32Array]",rt=/\b__p \+= '';/g,et=/\b(__p \+=) '' \+/g,st=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ge=/&(?:amp|lt|gt|quot|#39);/g,Be=/[&<>"']/g,Te=RegExp(Ge.source),je=RegExp(Be.source),lt=/<%-([\s\S]+?)%>/g,Me=/<%([\s\S]+?)%>/g,Ke=/<%=([\s\S]+?)%>/g,Rt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ie=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qe=/[\\^$.*+?()[\]{}|]/g,pt=RegExp(qe.source),Lt=/^\s+/,Qe=/\s/,_t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ft=/\{\n\/\* \[wrapped with (.+)\] \*/,Ze=/,? & /,$e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/[()=,{}\[\]\/\s]/,Ot=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Je=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,mt=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,ot=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mt=/($^)/,cr=/['\n\r\u2028\u2029\\]/g,$t="\\ud800-\\udfff",Hr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",mr="\\u2700-\\u27bf",sr="a-z\\xdf-\\xf6\\xf8-\\xff",Yr="A-Z\\xc0-\\xd6\\xd8-\\xde",Mr="\\ufe0e\\ufe0f",Dr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nn="['’]",Sr="["+$t+"]",tn="["+Dr+"]",Cn="["+Hr+"]",Jn="\\d+",Rr="["+mr+"]",An="["+sr+"]",dn="[^"+$t+Dr+Jn+mr+sr+Yr+"]",br="\\ud83c[\\udffb-\\udfff]",gn="[^"+$t+"]",wn="(?:\\ud83c[\\udde6-\\uddff]){2}",kn="[\\ud800-\\udbff][\\udc00-\\udfff]",Dn="["+Yr+"]",oi="\\u200d",Kr="(?:"+An+"|"+dn+")",On="(?:"+Dn+"|"+dn+")",Ci="(?:['’](?:d|ll|m|re|s|t|ve))?",li="(?:['’](?:D|LL|M|RE|S|T|VE))?",ia="(?:"+Cn+"|"+br+")?",ht="["+Mr+"]?",Pt=ht+ia+("(?:"+oi+"(?:"+[gn,wn,kn].join("|")+")"+ht+ia+")*"),Zt="(?:"+[Rr,wn,kn].join("|")+")"+Pt,vn="(?:"+[gn+Cn+"?",Cn,wn,kn,Sr].join("|")+")",jn=RegExp(nn,"g"),ba=RegExp(Cn,"g"),aa=RegExp(br+"(?="+br+")|"+vn+Pt,"g"),wo=RegExp([Dn+"?"+An+"+"+Ci+"(?="+[tn,Dn,"$"].join("|")+")",On+"+"+li+"(?="+[tn,Dn+Kr,"$"].join("|")+")",Dn+"?"+Kr+"+"+Ci,Dn+"+"+li,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Jn,Zt].join("|"),"g"),is=RegExp("["+oi+$t+Hr+Mr+"]"),as=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lo=-1,ra={};ra[z]=ra[X]=ra[se]=ra[oe]=ra[ye]=ra[ae]=ra[me]=ra[Fe]=ra[_e]=!0,ra[D]=ra[T]=ra[J]=ra[F]=ra[q]=ra[N]=ra[H]=ra[W]=ra[te]=ra[ue]=ra[fe]=ra[Ae]=ra[we]=ra[Z]=ra[j]=!1;var pi={};pi[D]=pi[T]=pi[J]=pi[q]=pi[F]=pi[N]=pi[z]=pi[X]=pi[se]=pi[oe]=pi[ye]=pi[te]=pi[ue]=pi[fe]=pi[Ae]=pi[we]=pi[Z]=pi[ne]=pi[ae]=pi[me]=pi[Fe]=pi[_e]=!0,pi[H]=pi[W]=pi[j]=!1;var Ms={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fs=parseFloat,zu=parseInt,Ul=typeof Ui=="object"&&Ui&&Ui.Object===Object&&Ui,UA=typeof self=="object"&&self&&self.Object===Object&&self,os=Ul||UA||Function("return this")(),Yh=c&&!c.nodeType&&c,ys=Yh&&a&&!a.nodeType&&a,ch=ys&&ys.exports===Yh,_f=ch&&Ul.process,Su=function(){try{var Jt=ys&&ys.require&&ys.require("util").types;return Jt||_f&&_f.binding&&_f.binding("util")}catch{}}(),Zp=Su&&Su.isArrayBuffer,jA=Su&&Su.isDate,Xp=Su&&Su.isMap,$p=Su&&Su.isRegExp,gg=Su&&Su.isSet,e0=Su&&Su.isTypedArray;function du(Jt,gr,Ar){switch(Ar.length){case 0:return Jt.call(gr);case 1:return Jt.call(gr,Ar[0]);case 2:return Jt.call(gr,Ar[0],Ar[1]);case 3:return Jt.call(gr,Ar[0],Ar[1],Ar[2])}return Jt.apply(gr,Ar)}function t0(Jt,gr,Ar,Ue){for(var At=-1,qt=Jt==null?0:Jt.length;++At-1}function pg(Jt,gr,Ar){for(var Ue=-1,At=Jt==null?0:Jt.length;++Ue-1;);return Ar}function ce(Jt,gr){for(var Ar=Jt.length;Ar--&&pu(gr,Jt[Ar],0)>-1;);return Ar}var Ce=Rf({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Oe=Rf({"&":"&","<":"<",">":">",'"':""","'":"'"});function gt(Jt){return"\\"+Ms[Jt]}function Nt(Jt){return is.test(Jt)}function Ht(Jt){var gr=-1,Ar=Array(Jt.size);return Jt.forEach(function(Ue,At){Ar[++gr]=[At,Ue]}),Ar}function fr(Jt,gr){return function(Ar){return Jt(gr(Ar))}}function lr(Jt,gr){for(var Ar=-1,Ue=Jt.length,At=0,qt=[];++Ar",""":'"',"'":"'"}),ti=function Jt(gr){var Ar,Ue=(gr=gr==null?os:ti.defaults(os.Object(),gr,ti.pick(os,vs))).Array,At=gr.Date,qt=gr.Error,Cr=gr.Function,Sn=gr.Math,Qr=gr.Object,Zn=gr.RegExp,Na=gr.String,ka=gr.TypeError,To=Ue.prototype,Lo=Cr.prototype,Is=Qr.prototype,Ls=gr["__core-js_shared__"],$s=Lo.toString,Xi=Is.hasOwnProperty,ha=0,fa=(Ar=/[^.]+$/.exec(Ls&&Ls.keys&&Ls.keys.IE_PROTO||""))?"Symbol(src)_1."+Ar:"",Oa=Is.toString,Qi=$s.call(Qr),eu=os._,tu=Zn("^"+$s.call(Xi).replace(qe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bs=ch?gr.Buffer:u,Pa=gr.Symbol,xo=gr.Uint8Array,ol=bs?bs.allocUnsafe:u,n0=fr(Qr.getPrototypeOf,Qr),TQ=Qr.create,kk=Is.propertyIsEnumerable,EB=To.splice,Fi=Pa?Pa.isConcatSpreadable:u,Ig=Pa?Pa.iterator:u,i0=Pa?Pa.toStringTag:u,Wh=function(){try{var U=Ha(Qr,"defineProperty");return U({},"",{}),U}catch{}}(),Wx=gr.clearTimeout!==os.clearTimeout&&gr.clearTimeout,qx=At&&At.now!==os.Date.now&&At.now,Qk=gr.setTimeout!==os.setTimeout&&gr.setTimeout,W1=Sn.ceil,BB=Sn.floor,Cm=Qr.getOwnPropertySymbols,zx=bs?bs.isBuffer:u,LQ=gr.isFinite,NQ=To.join,OQ=fr(Qr.keys,Qr),vu=Sn.max,yc=Sn.min,PQ=At.now,Gb=gr.parseInt,bg=Sn.random,Kx=To.reverse,xk=Ha(gr,"DataView"),wm=Ha(gr,"Map"),Sk=Ha(gr,"Promise"),Em=Ha(gr,"Set"),Bm=Ha(gr,"WeakMap"),a0=Ha(Qr,"create"),o0=Bm&&new Bm,YA={},_k=Bg(xk),Ub=Bg(wm),Dk=Bg(Sk),sl=Bg(Em),jb=Bg(Bm),kB=Pa?Pa.prototype:u,Hb=kB?kB.valueOf:u,GQ=kB?kB.toString:u;function it(U){if(ho(U)&&!na(U)&&!(U instanceof Ga)){if(U instanceof mc)return U;if(Xi.call(U,"__wrapped__"))return JB(U)}return new mc(U)}var km=function(){function U(){}return function(ee){if(!Ko(ee))return{};if(TQ)return TQ(ee);U.prototype=ee;var ge=new U;return U.prototype=u,ge}}();function QB(){}function mc(U,ee){this.__wrapped__=U,this.__actions__=[],this.__chain__=!!ee,this.__index__=0,this.__values__=u}function Ga(U){this.__wrapped__=U,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=S,this.__views__=[]}function q1(U){var ee=-1,ge=U==null?0:U.length;for(this.clear();++ee=ee?U:ee)),U}function qh(U,ee,ge,De,We,dt){var Tt,jt=1&ee,or=2&ee,Fr=4ⅇif(ge&&(Tt=We?ge(U,De,We,dt):ge(U)),Tt!==u)return Tt;if(!Ko(U))return U;var Lr=na(U);if(Lr){if(Tt=function(Jr){var yn=Jr.length,wi=new Jr.constructor(yn);return yn&&typeof Jr[0]=="string"&&Xi.call(Jr,"index")&&(wi.index=Jr.index,wi.input=Jr.input),wi}(U),!jt)return jl(U,Tt)}else{var cn=zo(U),qn=cn==W||cn==V;if(kg(U))return Wk(U,jt);if(cn==fe||cn==D||qn&&!We){if(Tt=or||qn?{}:aC(U),!jt)return or?function(Jr,yn){return KA(Jr,Nf(Jr),yn)}(U,function(Jr,yn){return Jr&&KA(yn,fl(yn),Jr)}(Tt,U)):function(Jr,yn){return KA(Jr,ss(Jr),yn)}(U,jQ(Tt,U))}else{if(!pi[cn])return We?U:{};Tt=function(Jr,yn,wi){var xn=Jr.constructor;switch(yn){case J:return qk(Jr);case F:case N:return new xn(+Jr);case q:return function(Hi,io){var Ai=io?qk(Hi.buffer):Hi.buffer;return new Hi.constructor(Ai,Hi.byteOffset,Hi.byteLength)}(Jr,wi);case z:case X:case se:case oe:case ye:case ae:case me:case Fe:case _e:return zk(Jr,wi);case te:return new xn;case ue:case Z:return new xn(Jr);case Ae:return function(Hi){var io=new Hi.constructor(Hi.source,Je.exec(Hi));return io.lastIndex=Hi.lastIndex,io}(Jr);case we:return new xn;case ne:return oa=Jr,Hb?Qr(Hb.call(oa)):{}}var oa}(U,cn,jt)}}dt||(dt=new Ff);var ri=dt.get(U);if(ri)return ri;dt.set(U,Tt),lC(U)?U.forEach(function(Jr){Tt.add(qh(Jr,ee,ge,Jr,U,dt))}):L6(U)&&U.forEach(function(Jr,yn){Tt.set(yn,qh(Jr,ee,ge,yn,U,dt))});var yi=Lr?u:(Fr?or?n4:r4:or?fl:yu)(U);return ms(yi||U,function(Jr,yn){yi&&(Jr=U[yn=Jr]),K1(Tt,yn,qh(Jr,ee,ge,yn,U,dt))}),Tt}function Yb(U,ee,ge){var De=ge.length;if(U==null)return!De;for(U=Qr(U);De--;){var We=ge[De],dt=ee[We],Tt=U[We];if(Tt===u&&!(We in U)||!dt(Tt))return!1}return!0}function Jb(U,ee,ge){if(typeof U!="function")throw new ka(h);return sC(function(){U.apply(u,ge)},ee)}function u0(U,ee,ge,De){var We=-1,dt=Ku,Tt=!0,jt=U.length,or=[],Fr=ee.length;if(!jt)return or;ge&&(ee=yo(ee,jo(ge))),De?(dt=pg,Tt=!1):ee.length>=200&&(dt=Wt,Tt=!1,ee=new z1(ee));e:for(;++We-1},Tc.prototype.set=function(U,ee){var ge=this.__data__,De=xB(ge,U);return De<0?(++this.size,ge.push([U,ee])):ge[De][1]=ee,this},JA.prototype.clear=function(){this.size=0,this.__data__={hash:new q1,map:new(wm||Tc),string:new q1}},JA.prototype.delete=function(U){var ee=PB(this,U).delete(U);return this.size-=ee?1:0,ee},JA.prototype.get=function(U){return PB(this,U).get(U)},JA.prototype.has=function(U){return PB(this,U).has(U)},JA.prototype.set=function(U,ee){var ge=PB(this,U),De=ge.size;return ge.set(U,ee),this.size+=ge.size==De?0:1,this},z1.prototype.add=z1.prototype.push=function(U){return this.__data__.set(U,d),this},z1.prototype.has=function(U){return this.__data__.has(U)},Ff.prototype.clear=function(){this.__data__=new Tc,this.size=0},Ff.prototype.delete=function(U){var ee=this.__data__,ge=ee.delete(U);return this.size=ee.size,ge},Ff.prototype.get=function(U){return this.__data__.get(U)},Ff.prototype.has=function(U){return this.__data__.has(U)},Ff.prototype.set=function(U,ee){var ge=this.__data__;if(ge instanceof Tc){var De=ge.__data__;if(!wm||De.length<199)return De.push([U,ee]),this.size=++ge.size,this;ge=this.__data__=new JA(De)}return ge.set(U,ee),this.size=ge.size,this};var Lf=a6(zh),c0=a6(Tk,!0);function Cg(U,ee){var ge=!0;return Lf(U,function(De,We,dt){return ge=!!ee(De,We,dt)}),ge}function Wb(U,ee,ge){for(var De=-1,We=U.length;++De0&&ge(jt)?ee>1?Ho(jt,ee-1,ge,De,We):il(We,jt):De||(We[We.length]=jt)}return We}var qb=Mm(),Fk=Mm(!0);function zh(U,ee){return U&&qb(U,ee,yu)}function Tk(U,ee){return U&&Fk(U,ee,yu)}function zb(U,ee){return vc(ee,function(ge){return $A(U[ge])})}function V1(U,ee){for(var ge=0,De=(ee=wg(ee,U)).length;U!=null&&geee}function YQ(U,ee){return U!=null&&Xi.call(U,ee)}function JQ(U,ee){return U!=null&&ee in Qr(U)}function _B(U,ee,ge){for(var De=ge?pg:Ku,We=U[0].length,dt=U.length,Tt=dt,jt=Ue(dt),or=1/0,Fr=[];Tt--;){var Lr=U[Tt];Tt&&ee&&(Lr=yo(Lr,jo(ee))),or=yc(Lr.length,or),jt[Tt]=!ge&&(ee||We>=120&&Lr.length>=120)?new z1(Tt&&Lr):u}Lr=U[0];var cn=-1,qn=jt[0];e:for(;++cn=ri?yi:yi*(or[Fr]=="desc"?-1:1)}return Tt.index-jt.index}(We,dt,ge)})}function VQ(U,ee,ge){for(var De=-1,We=ee.length,dt={};++De-1;)jt!==U&&EB.call(jt,or,1),EB.call(U,or,1);return U}function ZQ(U,ee){for(var ge=U?ee.length:0,De=ge-1;ge--;){var We=ee[ge];if(ge==De||We!==dt){var dt=We;VA(We)?EB.call(U,We,1):Hk(U,We)}}return U}function Sm(U,ee){return U+BB(bg()*(ee-U+1))}function dh(U,ee){var ge="";if(!U||ee<1||ee>E)return ge;do ee%2&&(ge+=U),(ee=BB(ee/2))&&(U+=U);while(ee);return ge}function pa(U,ee){return UB(f6(U,ee,ru),U+"")}function XQ(U){return UQ(yh(U))}function RB(U,ee){var ge=yh(U);return HB(ge,s0(ee,0,ge.length))}function Xb(U,ee,ge,De){if(!Ko(U))return U;for(var We=-1,dt=(ee=wg(ee,U)).length,Tt=dt-1,jt=U;jt!=null&&++WeWe?0:We+ee),(ge=ge>We?We:ge)<0&&(ge+=We),We=ee>ge?0:ge-ee>>>0,ee>>>=0;for(var dt=Ue(We);++De>>1,Tt=U[dt];Tt!==null&&!ph(Tt)&&(ge?Tt<=ee:Tt=200){var Fr=ee?null:l6(U);if(Fr)return Or(Fr);Tt=!1,We=Wt,or=new z1}else or=ee?[]:jt;e:for(;++De=De?U:ul(U,ee,ge)}var FB=Wx||function(U){return os.clearTimeout(U)};function Wk(U,ee){if(ee)return U.slice();var ge=U.length,De=ol?ol(ge):new U.constructor(ge);return U.copy(De),De}function qk(U){var ee=new U.constructor(U.byteLength);return new xo(ee).set(new xo(U)),ee}function zk(U,ee){var ge=ee?qk(U.buffer):U.buffer;return new U.constructor(ge,U.byteOffset,U.length)}function Kk(U,ee){if(U!==ee){var ge=U!==u,De=U===null,We=U==U,dt=ph(U),Tt=ee!==u,jt=ee===null,or=ee==ee,Fr=ph(ee);if(!jt&&!Fr&&!dt&&U>ee||dt&&Tt&&or&&!jt&&!Fr||De&&Tt&&or||!ge&&or||!We)return 1;if(!De&&!dt&&!Fr&&U1?ge[We-1]:u,Tt=We>2?ge[2]:u;for(dt=U.length>3&&typeof dt=="function"?(We--,dt):u,Tt&&ll(ge[0],ge[1],Tt)&&(dt=We<3?u:dt,We=1),ee=Qr(ee);++De-1?We[dt?ee[Tt]:Tt]:u}}function $k(U){return Eg(function(ee){var ge=ee.length,De=ge,We=mc.prototype.thru;for(U&&ee.reverse();De--;){var dt=ee[De];if(typeof dt!="function")throw new ka(h);if(We&&!Tt&&iC(dt)=="wrapper")var Tt=new mc([],!0)}for(De=Tt?De:ge;++De1&&xn.reverse(),Lr&&orjt))return!1;var Fr=dt.get(U),Lr=dt.get(ee);if(Fr&&Lr)return Fr==ee&&Lr==U;var cn=-1,qn=!0,ri=2&ge?new z1:u;for(dt.set(U,ee),dt.set(ee,U);++cn-1&&U%1==0&&U1?"& ":"")+dt[jt],dt=dt.join(Tt>2?", ":" "),We.replace(_t,`{ /* [wrapped with `+dt+`] */ `)}(De,function(We,dt){return ms(_,function(Tt){var jt="_."+Tt[0];dt&Tt[1]&&!Ku(We,jt)&&We.push(jt)}),We.sort()}(function(We){var dt=We.match(Ft);return dt?dt[1].split(Ze):[]}(De),ge)))}function jB(U){var ee=0,ge=0;return function(){var De=PQ(),We=16-(De-ge);if(ge=De,We>0){if(++ee>=800)return arguments[0]}else ee=0;return U.apply(u,arguments)}}function HB(U,ee){var ge=-1,De=U.length,We=De-1;for(ee=ee===u?De:ee;++ge1?U[ee-1]:u;return ge=typeof ge=="function"?(U.pop(),ge):u,I6(U,ge)});function y4(U){var ee=it(U);return ee.__chain__=!0,ee}function XA(U,ee){return ee(U)}var a8=Eg(function(U){var ee=U.length,ge=ee?U[0]:0,De=this.__wrapped__,We=function(dt){return SB(dt,U)};return!(ee>1||this.__actions__.length)&&De instanceof Ga&&VA(ge)?((De=De.slice(ge,+ge+(ee?1:0))).__actions__.push({func:XA,args:[We],thisArg:u}),new mc(De,this.__chain__).thru(function(dt){return ee&&!dt.length&&dt.push(u),dt})):this.thru(We)}),o8=Rm(function(U,ee,ge){Xi.call(U,ge)?++U[ge]:Tf(U,ge,1)}),s8=o6(h4),w6=o6(WB);function E6(U,ee){return(na(U)?ms:Lf)(U,_i(ee,3))}function m4(U,ee){return(na(U)?lh:c0)(U,_i(ee,3))}var qB=Rm(function(U,ee,ge){Xi.call(U,ge)?U[ge].push(ee):Tf(U,ge,[ee])}),u8=pa(function(U,ee,ge){var De=-1,We=typeof ee=="function",dt=hl(U)?Ue(U.length):[];return Lf(U,function(Tt){dt[++De]=We?du(ee,Tt,ge):Qm(Tt,ee,ge)}),dt}),B6=Rm(function(U,ee,ge){Tf(U,ge,ee)});function A0(U,ee){return(na(U)?yo:Gk)(U,_i(ee,3))}var k6=Rm(function(U,ee,ge){U[ge?0:1].push(ee)},function(){return[[],[]]}),Q6=pa(function(U,ee){if(U==null)return[];var ge=ee.length;return ge>1&&ll(U,ee[0],ee[1])?ee=[]:ge>2&&ll(ee[0],ee[1],ee[2])&&(ee=[ee[0]]),xm(U,Ho(ee,1),[])}),Nm=qx||function(){return os.Date.now()};function zB(U,ee,ge){return ee=ge?u:ee,ee=U&&ee==null?U.length:ee,_u(U,y,u,u,u,u,ee)}function I4(U,ee){var ge;if(typeof ee!="function")throw new ka(h);return U=va(U),function(){return--U>0&&(ge=ee.apply(this,arguments)),U<=1&&(ee=u),ge}}var b4=pa(function(U,ee,ge){var De=1;if(ge.length){var We=lr(ge,Nc(b4));De|=A}return _u(U,De,ee,ge,We)}),KB=pa(function(U,ee,ge){var De=3;if(ge.length){var We=lr(ge,Nc(KB));De|=A}return _u(ee,De,U,ge,We)});function C4(U,ee,ge){var De,We,dt,Tt,jt,or,Fr=0,Lr=!1,cn=!1,qn=!0;if(typeof U!="function")throw new ka(h);function ri(xn){var oa=De,Hi=We;return De=We=u,Fr=xn,Tt=U.apply(Hi,oa)}function yi(xn){var oa=xn-or;return or===u||oa>=ee||oa<0||cn&&xn-Fr>=dt}function Jr(){var xn=Nm();if(yi(xn))return yn(xn);jt=sC(Jr,function(oa){var Hi=ee-(oa-or);return cn?yc(Hi,dt-(oa-Fr)):Hi}(xn))}function yn(xn){return jt=u,qn&&De?ri(xn):(De=We=u,Tt)}function wi(){var xn=Nm(),oa=yi(xn);if(De=arguments,We=this,or=xn,oa){if(jt===u)return function(Hi){return Fr=Hi,jt=sC(Jr,ee),Lr?ri(Hi):Tt}(or);if(cn)return FB(jt),jt=sC(Jr,ee),ri(or)}return jt===u&&(jt=sC(Jr,ee)),Tt}return ee=vh(ee)||0,Ko(ge)&&(Lr=!!ge.leading,dt=(cn="maxWait"in ge)?vu(vh(ge.maxWait)||0,ee):dt,qn="trailing"in ge?!!ge.trailing:qn),wi.cancel=function(){jt!==u&&FB(jt),Fr=0,De=or=We=jt=u},wi.flush=function(){return jt===u?Tt:yn(Nm())},wi}var x6=pa(function(U,ee){return Jb(U,1,ee)}),c8=pa(function(U,ee,ge){return Jb(U,vh(ee)||0,ge)});function VB(U,ee){if(typeof U!="function"||ee!=null&&typeof ee!="function")throw new ka(h);var ge=function(){var De=arguments,We=ee?ee.apply(this,De):De[0],dt=ge.cache;if(dt.has(We))return dt.get(We);var Tt=U.apply(this,De);return ge.cache=dt.set(We,Tt)||dt,Tt};return ge.cache=new(VB.Cache||JA),ge}function ZB(U){if(typeof U!="function")throw new ka(h);return function(){var ee=arguments;switch(ee.length){case 0:return!U.call(this);case 1:return!U.call(this,ee[0]);case 2:return!U.call(this,ee[0],ee[1]);case 3:return!U.call(this,ee[0],ee[1],ee[2])}return!U.apply(this,ee)}}VB.Cache=JA;var S6=X1(function(U,ee){var ge=(ee=ee.length==1&&na(ee[0])?yo(ee[0],jo(_i())):yo(Ho(ee,1),jo(_i()))).length;return pa(function(De){for(var We=-1,dt=yc(De.length,ge);++We=ee}),rv=WQ(function(){return arguments}())?WQ:function(U){return ho(U)&&Xi.call(U,"callee")&&!kk.call(U,"callee")},na=Ue.isArray,nv=Zp?jo(Zp):function(U){return ho(U)&&Lc(U)==J};function hl(U){return U!=null&&XB(U.length)&&!$A(U)}function Ns(U){return ho(U)&&hl(U)}var kg=zx||ov,F6=jA?jo(jA):function(U){return ho(U)&&Lc(U)==N};function cC(U){if(!ho(U))return!1;var ee=Lc(U);return ee==H||ee=="[object DOMException]"||typeof U.message=="string"&&typeof U.name=="string"&&!Qg(U)}function $A(U){if(!Ko(U))return!1;var ee=Lc(U);return ee==W||ee==V||ee=="[object AsyncFunction]"||ee=="[object Proxy]"}function T6(U){return typeof U=="number"&&U==va(U)}function XB(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=E}function Ko(U){var ee=typeof U;return U!=null&&(ee=="object"||ee=="function")}function ho(U){return U!=null&&typeof U=="object"}var L6=Xp?jo(Xp):function(U){return ho(U)&&zo(U)==te};function Om(U){return typeof U=="number"||ho(U)&&Lc(U)==ue}function Qg(U){if(!ho(U)||Lc(U)!=fe)return!1;var ee=n0(U);if(ee===null)return!0;var ge=Xi.call(ee,"constructor")&&ee.constructor;return typeof ge=="function"&&ge instanceof ge&&$s.call(ge)==Qi}var $B=$p?jo($p):function(U){return ho(U)&&Lc(U)==Ae},lC=gg?jo(gg):function(U){return ho(U)&&zo(U)==we};function Pm(U){return typeof U=="string"||!na(U)&&ho(U)&&Lc(U)==Z}function ph(U){return typeof U=="symbol"||ho(U)&&Lc(U)==ne}var Pf=e0?jo(e0):function(U){return ho(U)&&XB(U.length)&&!!ra[Lc(U)]},l8=NB(Pk),h8=NB(function(U,ee){return U<=ee});function N6(U){if(!U)return[];if(hl(U))return Pm(U)?hn(U):jl(U);if(Ig&&U[Ig])return function(ge){for(var De,We=[];!(De=ge.next()).done;)We.push(De.value);return We}(U[Ig]());var ee=zo(U);return(ee==te?Ht:ee==we?Or:yh)(U)}function ed(U){return U?(U=vh(U))===I||U===-1/0?17976931348623157e292*(U<0?-1:1):U==U?U:0:U===0?U:0}function va(U){var ee=ed(U),ge=ee%1;return ee==ee?ge?ee-ge:ee:0}function O6(U){return U?s0(va(U),0,S):0}function vh(U){if(typeof U=="number")return U;if(ph(U))return B;if(Ko(U)){var ee=typeof U.valueOf=="function"?U.valueOf():U;U=Ko(ee)?ee+"":ee}if(typeof U!="string")return U===0?U:+U;U=Mf(U);var ge=mt.test(U);return ge||Ye.test(U)?zu(U.slice(2),ge?2:8):tt.test(U)?B:+U}function e3(U){return KA(U,fl(U))}function fo(U){return U==null?"":Vu(U)}var iv=$1(function(U,ee){if(ev(ee)||hl(ee))KA(ee,yu(ee),U);else for(var ge in ee)Xi.call(ee,ge)&&K1(U,ge,ee[ge])}),hC=$1(function(U,ee){KA(ee,fl(ee),U)}),t3=$1(function(U,ee,ge,De){KA(ee,fl(ee),U,De)}),f8=$1(function(U,ee,ge,De){KA(ee,yu(ee),U,De)}),A8=Eg(SB),d8=pa(function(U,ee){U=Qr(U);var ge=-1,De=ee.length,We=De>2?ee[2]:u;for(We&&ll(ee[0],ee[1],We)&&(De=1);++ge1),dt}),KA(U,n4(U),ge),De&&(ge=qh(ge,7,nC));for(var We=ee.length;We--;)Hk(ge,ee[We]);return ge}),v8=Eg(function(U,ee){return U==null?{}:function(ge,De){return VQ(ge,De,function(We,dt){return d0(ge,dt)})}(U,ee)});function B4(U,ee){if(U==null)return{};var ge=yo(n4(U),function(De){return[De]});return ee=_i(ee),VQ(U,ge,function(De,We){return ee(De,We[0])})}var j6=e4(yu),H6=e4(fl);function yh(U){return U==null?[]:bt(U,yu(U))}var g0=Fm(function(U,ee,ge){return ee=ee.toLowerCase(),U+(ge?p0(ee):ee)});function p0(U){return av(fo(U).toLowerCase())}function r3(U){return(U=fo(U))&&U.replace(yt,Ce).replace(ba,"")}var Y6=Fm(function(U,ee,ge){return U+(ge?"-":"")+ee.toLowerCase()}),y8=Fm(function(U,ee,ge){return U+(ge?" ":"")+ee.toLowerCase()}),m8=Xk("toLowerCase"),J6=Fm(function(U,ee,ge){return U+(ge?"_":"")+ee.toLowerCase()}),W6=Fm(function(U,ee,ge){return U+(ge?" ":"")+av(ee)}),q6=Fm(function(U,ee,ge){return U+(ge?" ":"")+ee.toUpperCase()}),av=Xk("toUpperCase");function v0(U,ee,ge){return U=fo(U),(ee=ge?u:ee)===u?function(De){return as.test(De)}(U)?function(De){return De.match(wo)||[]}(U):function(De){return De.match($e)||[]}(U):U.match(ee)||[]}var k4=pa(function(U,ee){try{return du(U,u,ee)}catch(ge){return cC(ge)?ge:new qt(ge)}}),z6=Eg(function(U,ee){return ms(ee,function(ge){ge=ZA(ge),Tf(U,ge,b4(U[ge],U))}),U});function n3(U){return function(){return U}}var K6=$k(),I8=$k(!0);function ru(U){return U}function Q4(U){return qQ(typeof U=="function"?U:qh(U,1))}var b8=pa(function(U,ee){return function(ge){return Qm(ge,U,ee)}}),C8=pa(function(U,ee){return function(ge){return Qm(U,ge,ee)}});function x4(U,ee,ge){var De=yu(ee),We=zb(ee,De);ge!=null||Ko(ee)&&(We.length||!De.length)||(ge=ee,ee=U,U=this,We=zb(ee,yu(ee)));var dt=!(Ko(ge)&&"chain"in ge&&!ge.chain),Tt=$A(U);return ms(We,function(jt){var or=ee[jt];U[jt]=or,Tt&&(U.prototype[jt]=function(){var Fr=this.__chain__;if(dt||Fr){var Lr=U(this.__wrapped__);return(Lr.__actions__=jl(this.__actions__)).push({func:or,args:arguments,thisArg:U}),Lr.__chain__=Fr,Lr}return or.apply(U,il([this.value()],arguments))})}),U}function S4(){}var w8=LB(yo),V6=LB(r0),E8=LB(Qo);function _4(U){return oC(U)?Df(ZA(U)):function(ee){return function(ge){return V1(ge,ee)}}(U)}var D4=u6(),B8=u6(!0);function R4(){return[]}function ov(){return!1}var k8=tC(function(U,ee){return U+ee},0),Q8=OB("ceil"),Z6=tC(function(U,ee){return U/ee},1),x8=OB("floor"),sv,S8=tC(function(U,ee){return U*ee},1),_8=OB("round"),i3=tC(function(U,ee){return U-ee},0);return it.after=function(U,ee){if(typeof ee!="function")throw new ka(h);return U=va(U),function(){if(--U<1)return ee.apply(this,arguments)}},it.ary=zB,it.assign=iv,it.assignIn=hC,it.assignInWith=t3,it.assignWith=f8,it.at=A8,it.before=I4,it.bind=b4,it.bindAll=z6,it.bindKey=KB,it.castArray=function(){if(!arguments.length)return[];var U=arguments[0];return na(U)?U:[U]},it.chain=y4,it.chunk=function(U,ee,ge){ee=(ge?ll(U,ee,ge):ee===u)?1:vu(va(ee),0);var De=U==null?0:U.length;if(!De||ee<1)return[];for(var We=0,dt=0,Tt=Ue(W1(De/ee));WeFr?0:Fr+jt),(or=or===u||or>Fr?Fr:va(or))<0&&(or+=Fr),or=jt>or?0:O6(or);jt>>0)?(U=fo(U))&&(typeof ee=="string"||ee!=null&&!$B(ee))&&!(ee=Vu(ee))&&Nt(U)?h0(hn(U),0,ge):U.split(ee,ge):[]},it.spread=function(U,ee){if(typeof U!="function")throw new ka(h);return ee=ee==null?0:vu(va(ee),0),pa(function(ge){var De=ge[ee],We=h0(ge,0,ee);return De&&il(We,De),du(U,this,We)})},it.tail=function(U){var ee=U==null?0:U.length;return ee?ul(U,1,ee):[]},it.take=function(U,ee,ge){return U&&U.length?ul(U,0,(ee=ge||ee===u?1:va(ee))<0?0:ee):[]},it.takeRight=function(U,ee,ge){var De=U==null?0:U.length;return De?ul(U,(ee=De-(ee=ge||ee===u?1:va(ee)))<0?0:ee,De):[]},it.takeRightWhile=function(U,ee){return U&&U.length?_m(U,_i(ee,3),!1,!0):[]},it.takeWhile=function(U,ee){return U&&U.length?_m(U,_i(ee,3)):[]},it.tap=function(U,ee){return ee(U),U},it.throttle=function(U,ee,ge){var De=!0,We=!0;if(typeof U!="function")throw new ka(h);return Ko(ge)&&(De="leading"in ge?!!ge.leading:De,We="trailing"in ge?!!ge.trailing:We),C4(U,ee,{leading:De,maxWait:ee,trailing:We})},it.thru=XA,it.toArray=N6,it.toPairs=j6,it.toPairsIn=H6,it.toPath=function(U){return na(U)?yo(U,ZA):ph(U)?[U]:jl(YB(fo(U)))},it.toPlainObject=e3,it.transform=function(U,ee,ge){var De=na(U),We=De||kg(U)||Pf(U);if(ee=_i(ee,4),ge==null){var dt=U&&U.constructor;ge=We?De?new dt:[]:Ko(U)&&$A(dt)?km(n0(U)):{}}return(We?ms:zh)(U,function(Tt,jt,or){return ee(ge,Tt,jt,or)}),ge},it.unary=function(U){return zB(U,1)},it.union=y6,it.unionBy=m6,it.unionWith=Du,it.uniq=function(U){return U&&U.length?zA(U):[]},it.uniqBy=function(U,ee){return U&&U.length?zA(U,_i(ee,2)):[]},it.uniqWith=function(U,ee){return ee=typeof ee=="function"?ee:u,U&&U.length?zA(U,u,ee):[]},it.unset=function(U,ee){return U==null||Hk(U,ee)},it.unzip=g4,it.unzipWith=I6,it.update=function(U,ee,ge){return U==null?U:n6(U,ee,Jk(ge))},it.updateWith=function(U,ee,ge,De){return De=typeof De=="function"?De:u,U==null?U:n6(U,ee,Jk(ge),De)},it.values=yh,it.valuesIn=function(U){return U==null?[]:bt(U,fl(U))},it.without=p4,it.words=v0,it.wrap=function(U,ee){return w4(Jk(ee),U)},it.xor=n8,it.xorBy=v4,it.xorWith=b6,it.zip=i8,it.zipObject=function(U,ee){return i6(U||[],ee||[],K1)},it.zipObjectDeep=function(U,ee){return i6(U||[],ee||[],Xb)},it.zipWith=C6,it.entries=j6,it.entriesIn=H6,it.extend=hC,it.extendWith=t3,x4(it,it),it.add=k8,it.attempt=k4,it.camelCase=g0,it.capitalize=p0,it.ceil=Q8,it.clamp=function(U,ee,ge){return ge===u&&(ge=ee,ee=u),ge!==u&&(ge=(ge=vh(ge))==ge?ge:0),ee!==u&&(ee=(ee=vh(ee))==ee?ee:0),s0(vh(U),ee,ge)},it.clone=function(U){return qh(U,4)},it.cloneDeep=function(U){return qh(U,5)},it.cloneDeepWith=function(U,ee){return qh(U,5,ee=typeof ee=="function"?ee:u)},it.cloneWith=function(U,ee){return qh(U,4,ee=typeof ee=="function"?ee:u)},it.conformsTo=function(U,ee){return ee==null||Yb(U,ee,yu(ee))},it.deburr=r3,it.defaultTo=function(U,ee){return U==null||U!=U?ee:U},it.divide=Z6,it.endsWith=function(U,ee,ge){U=fo(U),ee=Vu(ee);var De=U.length,We=ge=ge===u?De:s0(va(ge),0,De);return(ge-=ee.length)>=0&&U.slice(ge,We)==ee},it.eq=Of,it.escape=function(U){return(U=fo(U))&&je.test(U)?U.replace(Be,Oe):U},it.escapeRegExp=function(U){return(U=fo(U))&&pt.test(U)?U.replace(qe,"\\$&"):U},it.every=function(U,ee,ge){var De=na(U)?r0:Cg;return ge&&ll(U,ee,ge)&&(ee=u),De(U,_i(ee,3))},it.find=s8,it.findIndex=h4,it.findKey=function(U,ee){return vg(U,_i(ee,3),zh)},it.findLast=w6,it.findLastIndex=WB,it.findLastKey=function(U,ee){return vg(U,_i(ee,3),Tk)},it.floor=x8,it.forEach=E6,it.forEachRight=m4,it.forIn=function(U,ee){return U==null?U:qb(U,_i(ee,3),fl)},it.forInRight=function(U,ee){return U==null?U:Fk(U,_i(ee,3),fl)},it.forOwn=function(U,ee){return U&&zh(U,_i(ee,3))},it.forOwnRight=function(U,ee){return U&&Tk(U,_i(ee,3))},it.get=E4,it.gt=R6,it.gte=M6,it.has=function(U,ee){return U!=null&&i4(U,ee,YQ)},it.hasIn=d0,it.head=p6,it.identity=ru,it.includes=function(U,ee,ge,De){U=hl(U)?U:yh(U),ge=ge&&!De?va(ge):0;var We=U.length;return ge<0&&(ge=vu(We+ge,0)),Pm(U)?ge<=We&&U.indexOf(ee,ge)>-1:!!We&&pu(U,ee,ge)>-1},it.indexOf=function(U,ee,ge){var De=U==null?0:U.length;if(!De)return-1;var We=ge==null?0:va(ge);return We<0&&(We=vu(De+We,0)),pu(U,ee,We)},it.inRange=function(U,ee,ge){return ee=ed(ee),ge===u?(ge=ee,ee=0):ge=ed(ge),function(De,We,dt){return De>=yc(We,dt)&&De=-9007199254740991&&U<=E},it.isSet=lC,it.isString=Pm,it.isSymbol=ph,it.isTypedArray=Pf,it.isUndefined=function(U){return U===u},it.isWeakMap=function(U){return ho(U)&&zo(U)==j},it.isWeakSet=function(U){return ho(U)&&Lc(U)=="[object WeakSet]"},it.join=function(U,ee){return U==null?"":NQ.call(U,ee)},it.kebabCase=Y6,it.last=Kh,it.lastIndexOf=function(U,ee,ge){var De=U==null?0:U.length;if(!De)return-1;var We=De;return ge!==u&&(We=(We=va(ge))<0?vu(De+We,0):yc(We,De-1)),ee==ee?function(dt,Tt,jt){for(var or=jt+1;or--;)if(dt[or]===Tt)return or;return or}(U,ee,We):gu(U,mg,We,!0)},it.lowerCase=y8,it.lowerFirst=m8,it.lt=l8,it.lte=h8,it.max=function(U){return U&&U.length?Wb(U,ru,Nk):u},it.maxBy=function(U,ee){return U&&U.length?Wb(U,_i(ee,2),Nk):u},it.mean=function(U){return fh(U,ru)},it.meanBy=function(U,ee){return fh(U,_i(ee,2))},it.min=function(U){return U&&U.length?Wb(U,ru,Pk):u},it.minBy=function(U,ee){return U&&U.length?Wb(U,_i(ee,2),Pk):u},it.stubArray=R4,it.stubFalse=ov,it.stubObject=function(){return{}},it.stubString=function(){return""},it.stubTrue=function(){return!0},it.multiply=S8,it.nth=function(U,ee){return U&&U.length?Uk(U,va(ee)):u},it.noConflict=function(){return os._===this&&(os._=eu),this},it.noop=S4,it.now=Nm,it.pad=function(U,ee,ge){U=fo(U);var De=(ee=va(ee))?Xr(U):0;if(!ee||De>=ee)return U;var We=(ee-De)/2;return rC(BB(We),ge)+U+rC(W1(We),ge)},it.padEnd=function(U,ee,ge){U=fo(U);var De=(ee=va(ee))?Xr(U):0;return ee&&Deee){var De=U;U=ee,ee=De}if(ge||U%1||ee%1){var We=bg();return yc(U+We*(ee-U+Fs("1e-"+((We+"").length-1))),ee)}return Sm(U,ee)},it.reduce=function(U,ee,ge){var De=na(U)?HA:Ah,We=arguments.length<3;return De(U,_i(ee,4),ge,We,Lf)},it.reduceRight=function(U,ee,ge){var De=na(U)?Ts:Ah,We=arguments.length<3;return De(U,_i(ee,4),ge,We,c0)},it.repeat=function(U,ee,ge){return ee=(ge?ll(U,ee,ge):ee===u)?1:va(ee),dh(fo(U),ee)},it.replace=function(){var U=arguments,ee=fo(U[0]);return U.length<3?ee:ee.replace(U[1],U[2])},it.result=function(U,ee,ge){var De=-1,We=(ee=wg(ee,U)).length;for(We||(We=1,U=u);++DeE)return[];var ge=S,De=yc(U,S);ee=_i(ee),U-=S;for(var We=al(De,ee);++ge=dt)return U;var jt=ge-Xr(De);if(jt<1)return De;var or=Tt?h0(Tt,0,jt).join(""):U.slice(0,jt);if(We===u)return or+De;if(Tt&&(jt+=or.length-jt),$B(We)){if(U.slice(jt).search(We)){var Fr,Lr=or;for(We.global||(We=Zn(We.source,fo(Je.exec(We))+"g")),We.lastIndex=0;Fr=We.exec(Lr);)var cn=Fr.index;or=or.slice(0,cn===u?jt:cn)}}else if(U.indexOf(Vu(We),jt)!=jt){var qn=or.lastIndexOf(We);qn>-1&&(or=or.slice(0,qn))}return or+De},it.unescape=function(U){return(U=fo(U))&&Te.test(U)?U.replace(Ge,Xn):U},it.uniqueId=function(U){var ee=++ha;return fo(U)+ee},it.upperCase=q6,it.upperFirst=av,it.each=E6,it.eachRight=m4,it.first=p6,x4(it,(sv={},zh(it,function(U,ee){Xi.call(it.prototype,ee)||(sv[ee]=U)}),sv),{chain:!1}),it.VERSION="4.17.21",ms(["bind","bindKey","curry","curryRight","partial","partialRight"],function(U){it[U].placeholder=it}),ms(["drop","take"],function(U,ee){Ga.prototype[U]=function(ge){ge=ge===u?1:vu(va(ge),0);var De=this.__filtered__&&!ee?new Ga(this):this.clone();return De.__filtered__?De.__takeCount__=yc(ge,De.__takeCount__):De.__views__.push({size:yc(ge,S),type:U+(De.__dir__<0?"Right":"")}),De},Ga.prototype[U+"Right"]=function(ge){return this.reverse()[U](ge).reverse()}}),ms(["filter","map","takeWhile"],function(U,ee){var ge=ee+1,De=ge==1||ge==3;Ga.prototype[U]=function(We){var dt=this.clone();return dt.__iteratees__.push({iteratee:_i(We,3),type:ge}),dt.__filtered__=dt.__filtered__||De,dt}}),ms(["head","last"],function(U,ee){var ge="take"+(ee?"Right":"");Ga.prototype[U]=function(){return this[ge](1).value()[0]}}),ms(["initial","tail"],function(U,ee){var ge="drop"+(ee?"":"Right");Ga.prototype[U]=function(){return this.__filtered__?new Ga(this):this[ge](1)}}),Ga.prototype.compact=function(){return this.filter(ru)},Ga.prototype.find=function(U){return this.filter(U).head()},Ga.prototype.findLast=function(U){return this.reverse().find(U)},Ga.prototype.invokeMap=pa(function(U,ee){return typeof U=="function"?new Ga(this):this.map(function(ge){return Qm(ge,U,ee)})}),Ga.prototype.reject=function(U){return this.filter(ZB(_i(U)))},Ga.prototype.slice=function(U,ee){U=va(U);var ge=this;return ge.__filtered__&&(U>0||ee<0)?new Ga(ge):(U<0?ge=ge.takeRight(-U):U&&(ge=ge.drop(U)),ee!==u&&(ge=(ee=va(ee))<0?ge.dropRight(-ee):ge.take(ee-U)),ge)},Ga.prototype.takeRightWhile=function(U){return this.reverse().takeWhile(U).reverse()},Ga.prototype.toArray=function(){return this.take(S)},zh(Ga.prototype,function(U,ee){var ge=/^(?:filter|find|map|reject)|While$/.test(ee),De=/^(?:head|last)$/.test(ee),We=it[De?"take"+(ee=="last"?"Right":""):ee],dt=De||/^find/.test(ee);We&&(it.prototype[ee]=function(){var Tt=this.__wrapped__,jt=De?[1]:arguments,or=Tt instanceof Ga,Fr=jt[0],Lr=or||na(Tt),cn=function(wi){var xn=We.apply(it,il([wi],jt));return De&&qn?xn[0]:xn};Lr&&ge&&typeof Fr=="function"&&Fr.length!=1&&(or=Lr=!1);var qn=this.__chain__,ri=!!this.__actions__.length,yi=dt&&!qn,Jr=or&&!ri;if(!dt&&Lr){Tt=Jr?Tt:new Ga(this);var yn=U.apply(Tt,jt);return yn.__actions__.push({func:XA,args:[cn],thisArg:u}),new mc(yn,qn)}return yi&&Jr?U.apply(this,jt):(yn=this.thru(cn),yi?De?yn.value()[0]:yn.value():yn)})}),ms(["pop","push","shift","sort","splice","unshift"],function(U){var ee=To[U],ge=/^(?:push|sort|unshift)$/.test(U)?"tap":"thru",De=/^(?:pop|shift)$/.test(U);it.prototype[U]=function(){var We=arguments;if(De&&!this.__chain__){var dt=this.value();return ee.apply(na(dt)?dt:[],We)}return this[ge](function(Tt){return ee.apply(na(Tt)?Tt:[],We)})}}),zh(Ga.prototype,function(U,ee){var ge=it[ee];if(ge){var De=ge.name+"";Xi.call(YA,De)||(YA[De]=[]),YA[De].push({name:ee,func:ge})}}),YA[TB(u,2).name]=[{name:"wrapper",func:u}],Ga.prototype.clone=function(){var U=new Ga(this.__wrapped__);return U.__actions__=jl(this.__actions__),U.__dir__=this.__dir__,U.__filtered__=this.__filtered__,U.__iteratees__=jl(this.__iteratees__),U.__takeCount__=this.__takeCount__,U.__views__=jl(this.__views__),U},Ga.prototype.reverse=function(){if(this.__filtered__){var U=new Ga(this);U.__dir__=-1,U.__filtered__=!0}else(U=this.clone()).__dir__*=-1;return U},Ga.prototype.value=function(){var U=this.__wrapped__.value(),ee=this.__dir__,ge=na(U),De=ee<0,We=ge?U.length:0,dt=function(io,Ai,Di){for(var mu=-1,Os=Di.length;++mu=this.__values__.length;return{done:U,value:U?u:this.__values__[this.__index__++]}},it.prototype.plant=function(U){for(var ee,ge=this;ge instanceof QB;){var De=JB(ge);De.__index__=0,De.__values__=u,ee?We.__wrapped__=De:ee=De;var We=De;ge=ge.__wrapped__}return We.__wrapped__=U,ee},it.prototype.reverse=function(){var U=this.__wrapped__;if(U instanceof Ga){var ee=U;return this.__actions__.length&&(ee=new Ga(this)),(ee=ee.reverse()).__actions__.push({func:XA,args:[d4],thisArg:u}),new mc(ee,this.__chain__)}return this.thru(d4)},it.prototype.toJSON=it.prototype.valueOf=it.prototype.value=function(){return Yk(this.__wrapped__,this.__actions__)},it.prototype.first=it.prototype.head,Ig&&(it.prototype[Ig]=function(){return this}),it}();ys?((ys.exports=ti)._=ti,Yh._=ti):os._=ti}).call(Ui)})(q2,q2.exports);var ip=q2.exports;function bw(a){for(var c=(a=a.replace("#","")).match(/../g),u=0;u<3;u++)c[u]=parseInt(c[u],16);return c}function Cw(a,c,u){for(var h=[a.toString(16),c.toString(16),u.toString(16)],d=0;d<3;d++)h[d].length==1&&(h[d]="0"+h[d]);return"#"+h.join("")}var z2={exports:{}};(function(a){a.exports=function(){var c=1e3,u=6e4,h=36e5,d="millisecond",p="second",g="minute",A="hour",m="day",y="week",b="month",I="quarter",E="year",B="date",S="Invalid Date",_=/^(\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,T={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(Z){var ne=["th","st","nd","rd"],j=Z%100;return"["+Z+(ne[(j-20)%10]||ne[j]||ne[0])+"]"}},F=function(Z,ne,j){var J=String(Z);return!J||J.length>=ne?Z:""+Array(ne+1-J.length).join(j)+Z},N={s:F,z:function(Z){var ne=-Z.utcOffset(),j=Math.abs(ne),J=Math.floor(j/60),q=j%60;return(ne<=0?"+":"-")+F(J,2,"0")+":"+F(q,2,"0")},m:function Z(ne,j){if(ne.date()1)return Z(X[0])}else{var se=ne.name;W[se]=ne,q=se}return!J&&q&&(H=q),q||!J&&H},fe=function(Z,ne){if(te(Z))return Z.clone();var j=typeof ne=="object"?ne:{};return j.date=Z,j.args=arguments,new Ae(j)},de=N;de.l=ue,de.i=te,de.w=function(Z,ne){return fe(Z,{locale:ne.$L,utc:ne.$u,x:ne.$x,$offset:ne.$offset})};var Ae=function(){function Z(j){this.$L=ue(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[V]=!0}var ne=Z.prototype;return ne.parse=function(j){this.$d=function(J){var q=J.date,z=J.utc;if(q===null)return new Date(NaN);if(de.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var X=q.match(_);if(X){var se=X[2]-1||0,oe=(X[7]||"0").substring(0,3);return z?new Date(Date.UTC(X[1],se,X[3]||1,X[4]||0,X[5]||0,X[6]||0,oe)):new Date(X[1],se,X[3]||1,X[4]||0,X[5]||0,X[6]||0,oe)}}return new Date(q)}(j),this.init()},ne.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},ne.$utils=function(){return de},ne.isValid=function(){return this.$d.toString()!==S},ne.isSame=function(j,J){var q=fe(j);return this.startOf(J)<=q&&q<=this.endOf(J)},ne.isAfter=function(j,J){return fe(j)>1;++u)c[u]=String.fromCharCode(a.charCodeAt(2*u+1)+(a.charCodeAt(2*u)<<8));return c.join("")}var Z2,X0=function(a){var c=a.charCodeAt(0),u=a.charCodeAt(1);return c==255&&u==254?function(h){for(var d=[],p=0;p>1;++p)d[p]=String.fromCharCode(h.charCodeAt(2*p)+(h.charCodeAt(2*p+1)<<8));return d.join("")}(a.slice(2)):c==254&&u==255?ww(a.slice(2)):c==65279?a.slice(1):a},sp=function(a){return String.fromCharCode(a)},Ew=function(a){return String.fromCharCode(a)},ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function jr(a){for(var c="",u=0,h=0,d=0,p=0,g=0,A=0,m=0,y=0;y>2,g=(3&u)<<4|(h=a.charCodeAt(y++))>>4,A=(15&h)<<2|(d=a.charCodeAt(y++))>>6,m=63&d,isNaN(h)?A=m=64:isNaN(d)&&(m=64),c+=ea.charAt(p)+ea.charAt(g)+ea.charAt(A)+ea.charAt(m);return c}function Ra(a){var c="",u=0,h=0,d=0,p=0,g=0,A=0;a=a.replace(/[^\w\+\/\=]/g,"");for(var m=0;m>4,c+=String.fromCharCode(u),h=(15&p)<<4|(g=ea.indexOf(a.charAt(m++)))>>2,g!==64&&(c+=String.fromCharCode(h)),d=(3&g)<<6|(A=ea.indexOf(a.charAt(m++))),A!==64&&(c+=String.fromCharCode(d));return c}var ki=function(){return typeof Buffer<"u"&&typeof process<"u"&&process.versions!==void 0&&!!process.versions.node}(),uu=function(){if(typeof Buffer<"u"){var a=!Buffer.from;if(!a)try{Buffer.from("foo","utf8")}catch{a=!0}return a?function(c,u){return u?new Buffer(c,u):new Buffer(c)}:Buffer.from.bind(Buffer)}return function(){}}();function AA(a){return ki?Buffer.alloc?Buffer.alloc(a):new Buffer(a):typeof Uint8Array<"u"?new Uint8Array(a):new Array(a)}function Ay(a){return ki?Buffer.allocUnsafe?Buffer.allocUnsafe(a):new Buffer(a):typeof Uint8Array<"u"?new Uint8Array(a):new Array(a)}var Zc=function(a){return ki?uu(a,"binary"):a.split("").map(function(c){return 255&c.charCodeAt(0)})};function dy(a){if(typeof ArrayBuffer>"u")return Zc(a);for(var c=new ArrayBuffer(a.length),u=new Uint8Array(c),h=0;h!=a.length;++h)u[h]=255&a.charCodeAt(h);return c}function Af(a){if(Array.isArray(a))return a.map(function(h){return String.fromCharCode(h)}).join("");for(var c=[],u=0;u"u")throw new Error("Unsupported");if(a instanceof ArrayBuffer)return gy(new Uint8Array(a));for(var c=new Array(a.length),u=0;u=0;)c+=a.charAt(u--);return c}function Xc(a,c){var u=""+a;return u.length>=c?u:Go("0",c-u.length)+u}function $0(a,c){var u=""+a;return u.length>=c?u:Go(" ",c-u.length)+u}function cp(a,c){var u=""+a;return u.length>=c?u:u+Go(" ",c-u.length)}var X2=Math.pow(2,32);function kc(a,c){return a>X2||a<-X2?function(u,h){var d=""+Math.round(u);return d.length>=h?d:Go("0",h-d.length)+d}(a,c):function(u,h){var d=""+u;return d.length>=h?d:Go("0",h-d.length)+d}(Math.round(a),c)}function e1(a,c){return c=c||0,a.length>=7+c&&(32|a.charCodeAt(c))==103&&(32|a.charCodeAt(c+1))==101&&(32|a.charCodeAt(c+2))==110&&(32|a.charCodeAt(c+3))==101&&(32|a.charCodeAt(c+4))==114&&(32|a.charCodeAt(c+5))==97&&(32|a.charCodeAt(c+6))==108}var $2=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],py=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],xi={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Ba={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Bw={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function t1(a,c,u){for(var h=a<0?-1:1,d=a*h,p=0,g=1,A=0,m=1,y=0,b=0,I=Math.floor(d);yc&&(y>c?(b=m,A=p):(b=y,A=g)),!u)return[0,h*A,b];var E=Math.floor(h*A/b);return[E,h*A-E*b,b]}function dA(a,c,u){if(a>2958465||a<0)return null;var h=0|a,d=Math.floor(86400*(a-h)),p=0,g=[],A={D:h,T:d,u:86400*(a-h)-d,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(A.u)<1e-6&&(A.u=0),c&&c.date1904&&(h+=1462),A.u>.9999&&(A.u=0,++d==86400&&(A.T=d=0,++h,++A.D)),h===60)g=u?[1317,10,29]:[1900,2,29],p=3;else if(h===0)g=u?[1317,8,29]:[1900,1,0],p=6;else{h>60&&--h;var m=new Date(1900,0,1);m.setDate(m.getDate()+h-1),g=[m.getFullYear(),m.getMonth()+1,m.getDate()],p=m.getDay(),h<60&&(p=(p+6)%7),u&&(p=function(y,b){b[0]-=581;var I=y.getDay();return y<60&&(I=(I+6)%7),I}(m,g))}return A.y=g[0],A.m=g[1],A.d=g[2],A.S=d%60,d=Math.floor(d/60),A.M=d%60,d=Math.floor(d/60),A.H=d,A.q=p,A}var ja=new Date(1899,11,31,0,0,0),xd=ja.getTime(),kw=new Date(1900,2,1,0,0,0);function Sd(a,c){var u=a.getTime();return c?u-=1262304e5:a>=kw&&(u+=864e5),(u-(xd+6e4*(a.getTimezoneOffset()-ja.getTimezoneOffset())))/864e5}function vy(a){return a.indexOf(".")==-1?a:a.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function gA(a){var c,u=Math.floor(Math.log(Math.abs(a))*Math.LOG10E);return c=u>=-4&&u<=-1?a.toPrecision(10+u):Math.abs(u)<=9?function(h){var d=h<0?12:11,p=vy(h.toFixed(12));return p.length<=d||(p=h.toPrecision(10)).length<=d?p:h.toExponential(5)}(a):u===10?a.toFixed(10).substr(0,12):function(h){var d=vy(h.toFixed(11));return d.length>(h<0?12:11)||d==="0"||d==="-0"?h.toPrecision(6):d}(a),vy(function(h){return h.indexOf("E")==-1?h:h.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(c.toUpperCase()))}function df(a,c){switch(typeof a){case"string":return a;case"boolean":return a?"TRUE":"FALSE";case"number":return(0|a)===a?a.toString(10):gA(a);case"undefined":return"";case"object":if(a==null)return"";if(a instanceof Date)return El(14,Sd(a,c&&c.date1904),c)}throw new Error("unsupported value in General format: "+a)}function eI(a,c,u,h){var d,p="",g=0,A=0,m=u.y,y=0;switch(a){case 98:m=u.y+543;case 121:switch(c.length){case 1:case 2:d=m%100,y=2;break;default:d=m%1e4,y=4}break;case 109:switch(c.length){case 1:case 2:d=u.m,y=c.length;break;case 3:return py[u.m-1][1];case 5:return py[u.m-1][0];default:return py[u.m-1][2]}break;case 100:switch(c.length){case 1:case 2:d=u.d,y=c.length;break;case 3:return $2[u.q][0];default:return $2[u.q][1]}break;case 104:switch(c.length){case 1:case 2:d=1+(u.H+11)%12,y=c.length;break;default:throw"bad hour format: "+c}break;case 72:switch(c.length){case 1:case 2:d=u.H,y=c.length;break;default:throw"bad hour format: "+c}break;case 77:switch(c.length){case 1:case 2:d=u.M,y=c.length;break;default:throw"bad minute format: "+c}break;case 115:if(c!="s"&&c!="ss"&&c!=".0"&&c!=".00"&&c!=".000")throw"bad second format: "+c;return u.u!==0||c!="s"&&c!="ss"?(A=h>=2?h===3?1e3:100:h===1?10:1,(g=Math.round(A*(u.S+u.u)))>=60*A&&(g=0),c==="s"?g===0?"0":""+g/A:(p=Xc(g,2+h),c==="ss"?p.substr(0,2):"."+p.substr(2,c.length-1))):Xc(u.S,c.length);case 90:switch(c){case"[h]":case"[hh]":d=24*u.D+u.H;break;case"[m]":case"[mm]":d=60*(24*u.D+u.H)+u.M;break;case"[s]":case"[ss]":d=60*(60*(24*u.D+u.H)+u.M)+Math.round(u.S+u.u);break;default:throw"bad abstime format: "+c}y=c.length===3?1:2;break;case 101:d=m,y=1}return y>0?Xc(d,y):""}function xh(a){if(a.length<=3)return a;for(var c=a.length%3,u=a.substr(0,c);c!=a.length;c+=3)u+=(u.length>0?",":"")+a.substr(c,3);return u}var yy=/%/g;function tI(a,c){var u,h=a.indexOf("E")-a.indexOf(".")-1;if(a.match(/^#+0.0E\+0$/)){if(c==0)return"0.0E+0";if(c<0)return"-"+tI(a,-c);var d=a.indexOf(".");d===-1&&(d=a.indexOf("E"));var p=Math.floor(Math.log(c)*Math.LOG10E)%d;if(p<0&&(p+=d),(u=(c/Math.pow(10,p)).toPrecision(h+1+(d+p)%d)).indexOf("e")===-1){var g=Math.floor(Math.log(c)*Math.LOG10E);for(u.indexOf(".")===-1?u=u.charAt(0)+"."+u.substr(1)+"E+"+(g-u.length+p):u+="E+"+(g-p);u.substr(0,2)==="0.";)u=(u=u.charAt(0)+u.substr(2,d)+"."+u.substr(2+d)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");u=u.replace(/\+-/,"-")}u=u.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(A,m,y,b){return m+y+b.substr(0,(d+p)%d)+"."+b.substr(p)+"E"})}else u=c.toExponential(h);return a.match(/E\+00$/)&&u.match(/e[+-]\d$/)&&(u=u.substr(0,u.length-1)+"0"+u.charAt(u.length-1)),a.match(/E\-/)&&u.match(/e\+/)&&(u=u.replace(/e\+/,"e")),u.replace("e","E")}var _d=/# (\?+)( ?)\/( ?)(\d+)/,my=/^#*0*\.([0#]+)/,lp=/\).*[0#]/,es=/\(###\) ###\\?-####/;function cu(a){for(var c,u="",h=0;h!=a.length;++h)switch(c=a.charCodeAt(h)){case 35:break;case 63:u+=" ";break;case 48:u+="0";break;default:u+=String.fromCharCode(c)}return u}function Dd(a,c){var u=Math.pow(10,c);return""+Math.round(a*u)/u}function rI(a,c){var u=a-Math.floor(a),h=Math.pow(10,c);return c<(""+Math.round(u*h)).length?0:Math.round(u*h)}function Cl(a,c,u){if(a.charCodeAt(0)===40&&!c.match(lp)){var h=c.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return u>=0?Cl("n",h,u):"("+Cl("n",h,-u)+")"}if(c.charCodeAt(c.length-1)===44)return function(S,_,D){for(var T=_.length-1;_.charCodeAt(T-1)===44;)--T;return uc(S,_.substr(0,T),D/Math.pow(10,3*(_.length-T)))}(a,c,u);if(c.indexOf("%")!==-1)return function(S,_,D){var T=_.replace(yy,""),F=_.length-T.length;return uc(S,T,D*Math.pow(10,2*F))+Go("%",F)}(a,c,u);if(c.indexOf("E")!==-1)return tI(c,u);if(c.charCodeAt(0)===36)return"$"+Cl(a,c.substr(c.charAt(1)==" "?2:1),u);var d,p,g,A,m=Math.abs(u),y=u<0?"-":"";if(c.match(/^00+$/))return y+kc(m,c.length);if(c.match(/^[#?]+$/))return(d=kc(u,0))==="0"&&(d=""),d.length>c.length?d:cu(c.substr(0,c.length-d.length))+d;if(p=c.match(_d))return function(S,_,D){var T=parseInt(S[4],10),F=Math.round(_*T),N=Math.floor(F/T),H=F-N*T,W=T;return D+(N===0?"":""+N)+" "+(H===0?Go(" ",S[1].length+1+S[4].length):$0(H,S[1].length)+S[2]+"/"+S[3]+Xc(W,S[4].length))}(p,m,y);if(c.match(/^#+0+$/))return y+kc(m,c.length-c.indexOf("0"));if(p=c.match(my))return d=Dd(u,p[1].length).replace(/^([^\.]+)$/,"$1."+cu(p[1])).replace(/\.$/,"."+cu(p[1])).replace(/\.(\d*)$/,function(S,_){return"."+_+Go("0",cu(p[1]).length-_.length)}),c.indexOf("0.")!==-1?d:d.replace(/^0\./,".");if(c=c.replace(/^#+([0.])/,"$1"),p=c.match(/^(0*)\.(#*)$/))return y+Dd(m,p[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,p[1].length?"0.":".");if(p=c.match(/^#{1,3},##0(\.?)$/))return y+xh(kc(m,0));if(p=c.match(/^#,##0\.([#0]*0)$/))return u<0?"-"+Cl(a,c,-u):xh(""+(Math.floor(u)+function(S,_){return _<(""+Math.round((S-Math.floor(S))*Math.pow(10,_))).length?1:0}(u,p[1].length)))+"."+Xc(rI(u,p[1].length),p[1].length);if(p=c.match(/^#,#*,#0/))return Cl(a,c.replace(/^#,#*,/,""),u);if(p=c.match(/^([0#]+)(\\?-([0#]+))+$/))return d=up(Cl(a,c.replace(/[\\-]/g,""),u)),g=0,up(up(c.replace(/\\/g,"")).replace(/[0#]/g,function(S){return g-2147483648?""+(S>=0?0|S:S-1|0):""+Math.floor(S)}(u)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(S){return"00,"+(S.length<3?Xc(0,3-S.length):"")+S})+"."+Xc(g,p[1].length);switch(c){case"###,##0.00":return Cl(a,"#,##0.00",u);case"###,###":case"##,###":case"#,###":var B=xh(kc(m,0));return B!=="0"?y+B:"";case"###,###.00":return Cl(a,"###,##0.00",u).replace(/^0\./,".");case"#,###.00":return Cl(a,"#,##0.00",u).replace(/^0\./,".")}throw new Error("unsupported format |"+c+"|")}function Qw(a,c){var u,h=a.indexOf("E")-a.indexOf(".")-1;if(a.match(/^#+0.0E\+0$/)){if(c==0)return"0.0E+0";if(c<0)return"-"+Qw(a,-c);var d=a.indexOf(".");d===-1&&(d=a.indexOf("E"));var p=Math.floor(Math.log(c)*Math.LOG10E)%d;if(p<0&&(p+=d),!(u=(c/Math.pow(10,p)).toPrecision(h+1+(d+p)%d)).match(/[Ee]/)){var g=Math.floor(Math.log(c)*Math.LOG10E);u.indexOf(".")===-1?u=u.charAt(0)+"."+u.substr(1)+"E+"+(g-u.length+p):u+="E+"+(g-p),u=u.replace(/\+-/,"-")}u=u.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(A,m,y,b){return m+y+b.substr(0,(d+p)%d)+"."+b.substr(p)+"E"})}else u=c.toExponential(h);return a.match(/E\+00$/)&&u.match(/e[+-]\d$/)&&(u=u.substr(0,u.length-1)+"0"+u.charAt(u.length-1)),a.match(/E\-/)&&u.match(/e\+/)&&(u=u.replace(/e\+/,"e")),u.replace("e","E")}function Sh(a,c,u){if(a.charCodeAt(0)===40&&!c.match(lp)){var h=c.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return u>=0?Sh("n",h,u):"("+Sh("n",h,-u)+")"}if(c.charCodeAt(c.length-1)===44)return function(S,_,D){for(var T=_.length-1;_.charCodeAt(T-1)===44;)--T;return uc(S,_.substr(0,T),D/Math.pow(10,3*(_.length-T)))}(a,c,u);if(c.indexOf("%")!==-1)return function(S,_,D){var T=_.replace(yy,""),F=_.length-T.length;return uc(S,T,D*Math.pow(10,2*F))+Go("%",F)}(a,c,u);if(c.indexOf("E")!==-1)return Qw(c,u);if(c.charCodeAt(0)===36)return"$"+Sh(a,c.substr(c.charAt(1)==" "?2:1),u);var d,p,g,A,m=Math.abs(u),y=u<0?"-":"";if(c.match(/^00+$/))return y+Xc(m,c.length);if(c.match(/^[#?]+$/))return d=""+u,u===0&&(d=""),d.length>c.length?d:cu(c.substr(0,c.length-d.length))+d;if(p=c.match(_d))return function(S,_,D){return D+(_===0?"":""+_)+Go(" ",S[1].length+2+S[4].length)}(p,m,y);if(c.match(/^#+0+$/))return y+Xc(m,c.length-c.indexOf("0"));if(p=c.match(my))return d=(d=(""+u).replace(/^([^\.]+)$/,"$1."+cu(p[1])).replace(/\.$/,"."+cu(p[1]))).replace(/\.(\d*)$/,function(S,_){return"."+_+Go("0",cu(p[1]).length-_.length)}),c.indexOf("0.")!==-1?d:d.replace(/^0\./,".");if(c=c.replace(/^#+([0.])/,"$1"),p=c.match(/^(0*)\.(#*)$/))return y+(""+m).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,p[1].length?"0.":".");if(p=c.match(/^#{1,3},##0(\.?)$/))return y+xh(""+m);if(p=c.match(/^#,##0\.([#0]*0)$/))return u<0?"-"+Sh(a,c,-u):xh(""+u)+"."+Go("0",p[1].length);if(p=c.match(/^#,#*,#0/))return Sh(a,c.replace(/^#,#*,/,""),u);if(p=c.match(/^([0#]+)(\\?-([0#]+))+$/))return d=up(Sh(a,c.replace(/[\\-]/g,""),u)),g=0,up(up(c.replace(/\\/g,"")).replace(/[0#]/g,function(S){return g-1||u=="\\"&&a.charAt(c+1)=="-"&&"0#".indexOf(a.charAt(c+2))>-1););break;case"?":for(;a.charAt(++c)===u;);break;case"*":++c,a.charAt(c)!=" "&&a.charAt(c)!="*"||++c;break;case"(":case")":++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;c-1;);break;default:++c}return!1}var gf=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Iy(a,c){if(c==null)return!1;var u=parseFloat(c[2]);switch(c[1]){case"=":if(a==u)return!0;break;case">":if(a>u)return!0;break;case"<":if(a":if(a!=u)return!0;break;case">=":if(a>=u)return!0;break;case"<=":if(a<=u)return!0}return!1}function fs(a,c){var u=function(m){for(var y=[],b=!1,I=0,E=0;I-1&&--h,u.length>4)throw new Error("cannot find right format for |"+u.join("|")+"|");if(typeof c!="number")return[4,u.length===4||d>-1?u[u.length-1]:"@"];switch(u.length){case 1:u=d>-1?["General","General","General",u[0]]:[u[0],u[0],u[0],"@"];break;case 2:u=d>-1?[u[0],u[0],u[0],u[1]]:[u[0],u[1],u[0],"@"];break;case 3:u=d>-1?[u[0],u[1],u[0],u[2]]:[u[0],u[1],u[2],"@"]}var p=c>0?u[0]:c<0?u[1]:u[2];if(u[0].indexOf("[")===-1&&u[1].indexOf("[")===-1)return[h,p];if(u[0].match(/\[[=<>]/)!=null||u[1].match(/\[[=<>]/)!=null){var g=u[0].match(gf),A=u[1].match(gf);return Iy(c,g)?[h,u[0]]:Iy(c,A)?[h,u[1]]:[h,u[g!=null&&A!=null?2:1]]}return[h,p]}function El(a,c,u){u==null&&(u={});var h="";switch(typeof a){case"string":h=a=="m/d/yy"&&u.dateNF?u.dateNF:a;break;case"number":(h=a==14&&u.dateNF?u.dateNF:(u.table!=null?u.table:xi)[a])==null&&(h=u.table&&u.table[Ba[a]]||xi[Ba[a]]),h==null&&(h=Bw[a]||"General")}if(e1(h,0))return df(c,u);c instanceof Date&&(c=Sd(c,u.date1904));var d=fs(h,c);if(e1(d[1]))return df(c,u);if(c===!0)c="TRUE";else if(c===!1)c="FALSE";else if(c===""||c==null)return"";return function(p,g,A,m){for(var y,b,I,E=[],B="",S=0,_="",D="t",T="H";S=12?"P":"A"),H.t="T",T="h",S+=3):p.substr(S,5).toUpperCase()==="AM/PM"?(y!=null&&(H.v=y.H>=12?"PM":"AM"),H.t="T",S+=5,T="h"):p.substr(S,5).toUpperCase()==="上午/下午"?(y!=null&&(H.v=y.H>=12?"下午":"上午"),H.t="T",S+=5,T="h"):(H.t="t",++S),y==null&&H.t==="T")return"";E[E.length]=H,D=_;break;case"[":for(B=_;p.charAt(S++)!=="]"&&S-1&&(B=(B.match(/\$([^-\[\]]*)/)||[])[1]||"$",wl(p)||(E[E.length]={t:"t",v:B}));break;case".":if(y!=null){for(B=_;++S-1;)B+=_;E[E.length]={t:"n",v:B};break;case"?":for(B=_;p.charAt(++S)===_;)B+=_;E[E.length]={t:_,v:B},D=_;break;case"*":++S,p.charAt(S)!=" "&&p.charAt(S)!="*"||++S;break;case"(":case")":E[E.length]={t:m===1?"t":_,v:_},++S;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(B=_;S-1;)B+=p.charAt(S);E[E.length]={t:"D",v:B};break;case" ":E[E.length]={t:_,v:_},++S;break;case"$":E[E.length]={t:"t",v:"$"},++S;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(_)===-1)throw new Error("unrecognized character "+_+" in "+p);E[E.length]={t:"t",v:_},++S}var W,V=0,te=0;for(S=E.length-1,D="t";S>=0;--S)switch(E[S].t){case"h":case"H":E[S].t=T,D="h",V<1&&(V=1);break;case"s":(W=E[S].v.match(/\.0+$/))&&(te=Math.max(te,W[0].length-1)),V<3&&(V=3);case"d":case"y":case"M":case"e":D=E[S].t;break;case"m":D==="s"&&(E[S].t="M",V<2&&(V=2));break;case"X":break;case"Z":V<1&&E[S].v.match(/[Hh]/)&&(V=1),V<2&&E[S].v.match(/[Mm]/)&&(V=2),V<3&&E[S].v.match(/[Ss]/)&&(V=3)}switch(V){case 0:break;case 1:y.u>=.5&&(y.u=0,++y.S),y.S>=60&&(y.S=0,++y.M),y.M>=60&&(y.M=0,++y.H);break;case 2:y.u>=.5&&(y.u=0,++y.S),y.S>=60&&(y.S=0,++y.M)}var ue,fe="";for(S=0;S0){fe.charCodeAt(0)==40?(de=g<0&&fe.charCodeAt(0)===45?-g:g,Ae=uc("n",fe,de)):(Ae=uc("n",fe,de=g<0&&m>1?-g:g),de<0&&E[0]&&E[0].t=="t"&&(Ae=Ae.substr(1),E[0].v="-"+E[0].v)),ue=Ae.length-1;var Z=E.length;for(S=0;S-1){Z=S;break}var ne=E.length;if(Z===E.length&&Ae.indexOf("E")===-1){for(S=E.length-1;S>=0;--S)E[S]!=null&&"n?".indexOf(E[S].t)!==-1&&(ue>=E[S].v.length-1?(ue-=E[S].v.length,E[S].v=Ae.substr(ue+1,E[S].v.length)):ue<0?E[S].v="":(E[S].v=Ae.substr(0,ue+1),ue=-1),E[S].t="t",ne=S);ue>=0&&ne=0;--S)if(E[S]!=null&&"n?".indexOf(E[S].t)!==-1){for(b=E[S].v.indexOf(".")>-1&&S===Z?E[S].v.indexOf(".")-1:E[S].v.length-1,we=E[S].v.substr(b+1);b>=0;--b)ue>=0&&(E[S].v.charAt(b)==="0"||E[S].v.charAt(b)==="#")&&(we=Ae.charAt(ue--)+we);E[S].v=we,E[S].t="t",ne=S}for(ue>=0&&ne-1&&S===Z?E[S].v.indexOf(".")+1:0,we=E[S].v.substr(0,b);b-1&&(de=m>1&&g<0&&S>0&&E[S-1].v==="-"?-g:g,E[S].v=uc(E[S].t,E[S].v,de),E[S].t="t");var j="";for(S=0;S!==E.length;++S)E[S]!=null&&(j+=E[S].v);return j}(d[1],c,u,d[0])}function $c(a,c){if(typeof c!="number"){c=+c||-1;for(var u=0;u<392;++u)if(xi[u]!=null){if(xi[u]==a){c=u;break}}else c<0&&(c=u);c<0&&(c=391)}return xi[c]=a,c}function r1(a){for(var c=0;c!=392;++c)a[c]!==void 0&&$c(a[c],c)}function hp(){var a;a||(a={}),a[0]="General",a[1]="0",a[2]="0.00",a[3]="#,##0",a[4]="#,##0.00",a[9]="0%",a[10]="0.00%",a[11]="0.00E+00",a[12]="# ?/?",a[13]="# ??/??",a[14]="m/d/yy",a[15]="d-mmm-yy",a[16]="d-mmm",a[17]="mmm-yy",a[18]="h:mm AM/PM",a[19]="h:mm:ss AM/PM",a[20]="h:mm",a[21]="h:mm:ss",a[22]="m/d/yy h:mm",a[37]="#,##0 ;(#,##0)",a[38]="#,##0 ;[Red](#,##0)",a[39]="#,##0.00;(#,##0.00)",a[40]="#,##0.00;[Red](#,##0.00)",a[45]="mm:ss",a[46]="[h]:mm:ss",a[47]="mmss.0",a[48]="##0.0E+0",a[49]="@",a[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',xi=a}var xw={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},n1=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Sw=function(){var a={};a.version="1.2.0";var c=function(){for(var F=0,N=new Array(256),H=0;H!=256;++H)F=1&(F=1&(F=1&(F=1&(F=1&(F=1&(F=1&(F=1&(F=H)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1,N[H]=F;return typeof Int32Array<"u"?new Int32Array(N):N}(),u=function(F){var N=0,H=0,W=0,V=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(W=0;W!=256;++W)V[W]=F[W];for(W=0;W!=256;++W)for(H=F[W],N=256+W;N<4096;N+=256)H=V[N]=H>>>8^F[255&H];var te=[];for(W=1;W!=16;++W)te[W-1]=typeof Int32Array<"u"?V.subarray(256*W,256*W+256):V.slice(256*W,256*W+256);return te}(c),h=u[0],d=u[1],p=u[2],g=u[3],A=u[4],m=u[5],y=u[6],b=u[7],I=u[8],E=u[9],B=u[10],S=u[11],_=u[12],D=u[13],T=u[14];return a.table=c,a.bstr=function(F,N){for(var H=~N,W=0,V=F.length;W>>8^c[255&(H^F.charCodeAt(W++))];return~H},a.buf=function(F,N){for(var H=~N,W=F.length-15,V=0;V>8&255]^_[F[V++]^H>>16&255]^S[F[V++]^H>>>24]^B[F[V++]]^E[F[V++]]^I[F[V++]]^b[F[V++]]^y[F[V++]]^m[F[V++]]^A[F[V++]]^g[F[V++]]^p[F[V++]]^d[F[V++]]^h[F[V++]]^c[F[V++]];for(W+=15;V>>8^c[255&(H^F[V++])];return~H},a.str=function(F,N){for(var H=~N,W=0,V=F.length,te=0,ue=0;W>>8^c[255&(H^te)]:te<2048?H=(H=H>>>8^c[255&(H^(192|te>>6&31))])>>>8^c[255&(H^(128|63&te))]:te>=55296&&te<57344?(te=64+(1023&te),ue=1023&F.charCodeAt(W++),H=(H=(H=(H=H>>>8^c[255&(H^(240|te>>8&7))])>>>8^c[255&(H^(128|te>>2&63))])>>>8^c[255&(H^(128|ue>>6&15|(3&te)<<4))])>>>8^c[255&(H^(128|63&ue))]):H=(H=(H=H>>>8^c[255&(H^(224|te>>12&15))])>>>8^c[255&(H^(128|te>>6&63))])>>>8^c[255&(H^(128|63&te))];return~H},a}(),ai=function(){var a,c={};function u(He){if(He.charAt(He.length-1)=="/")return He.slice(0,-1).indexOf("/")===-1?He:u(He.slice(0,-1));var Je=He.lastIndexOf("/");return Je===-1?He:He.slice(0,Je+1)}function h(He){if(He.charAt(He.length-1)=="/")return h(He.slice(0,-1));var Je=He.lastIndexOf("/");return Je===-1?He:He.slice(Je+1)}function d(He,Je){typeof Je=="string"&&(Je=new Date(Je));var tt=Je.getHours();tt=(tt=tt<<6|Je.getMinutes())<<5|Je.getSeconds()>>>1,He.write_shift(2,tt);var mt=Je.getFullYear()-1980;mt=(mt=mt<<4|Je.getMonth()+1)<<5|Je.getDate(),He.write_shift(2,mt)}function p(He){lu(He,0);for(var Je={},tt=0;He.l<=He.length-4;){var mt=He.read_shift(2),Xe=He.read_shift(2),Ye=He.l+Xe,ot={};mt===21589&&(1&(tt=He.read_shift(1))&&(ot.mtime=He.read_shift(4)),Xe>5&&(2&tt&&(ot.atime=He.read_shift(4)),4&tt&&(ot.ctime=He.read_shift(4))),ot.mtime&&(ot.mt=new Date(1e3*ot.mtime))),He.l=Ye,Je[mt]=ot}return Je}function g(){return a||(a={})}function A(He,Je){if(He[0]==80&&He[1]==75)return Lt(He,Je);if((32|He[0])==109&&(32|He[1])==105)return function(Rr,An){if(V(Rr.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var dn=An&&An.root||"",br=(ki&&Buffer.isBuffer(Rr)?Rr.toString("binary"):V(Rr)).split(`\r `),gn=0,wn="";for(gn=0;gn0&&(dn=(dn=dn.slice(0,dn.length-1)).slice(0,dn.lastIndexOf("/")+1),wn.slice(0,dn.length)!=dn););var kn=(br[1]||"").match(/boundary="(.*?)"/);if(!kn)throw new Error("MAD cannot find boundary");var Dn="--"+(kn[1]||""),oi=[],Kr=[],On={FileIndex:oi,FullPaths:Kr};E(On);var Ci,li=0;for(gn=0;gn=gn&&(li-=gn),!kn[li]){oi=[];var ht=[];for(Ci=li;Ci>=0;){ht[Ci]=!0,kn[Ci]=!0,Dn[Dn.length]=Ci,oi.push(Rr[Ci]);var Pt=dn[Math.floor(4*Ci/br)];if(br<4+(ia=4*Ci&Kr))throw new Error("FAT boundary crossed: "+Ci+" 4 "+br);if(!Rr[Pt]||ht[Ci=CA(Rr[Pt],ia)])break}wn[li]={nodes:Dn,data:dI([oi])}}return wn}(Dr,Ye,cr,Mt);nn[Ye].name="!Directory",mt>0&&ot!==T&&(nn[ot].name="!MiniFAT"),nn[cr[0]].name="!FAT",nn.fat_addrs=cr,nn.ssz=Mt;var Sr=[],tn=[],Cn=[];(function(Rr,An,dn,br,gn,wn,kn,Dn){for(var oi,Kr=0,On=br.length?2:0,Ci=An[Rr].data,li=0,ia=0;li0&&Kr!==T&&(An[Kr].name="!StreamData")):Pt.size>=4096?(Pt.storage="fat",An[Pt.start]===void 0&&(An[Pt.start]=b(dn,Pt.start,An.fat_addrs,An.ssz)),An[Pt.start].name=Pt.name,Pt.content=An[Pt.start].data.slice(0,Pt.size)):(Pt.storage="minifat",Pt.size<0?Pt.size=0:Kr!==T&&Pt.start!==T&&An[Kr]&&(Pt.content=m(Pt,An[Kr].data,(An[Dn]||{}).data))),Pt.content&&lu(Pt.content,0),wn[oi]=Pt,kn.push(Pt)}})(Ye,nn,Dr,Sr,mt,{},tn,ot),function(Rr,An,dn){for(var br=0,gn=0,wn=0,kn=0,Dn=0,oi=dn.length,Kr=[],On=[];br0&&ot>=0;)Ye.push(Je.slice(ot*D,ot*D+D)),Xe-=D,ot=CA(tt,4*ot);return Ye.length===0?Ir(0):Jo(Ye).slice(0,He.size)}function y(He,Je,tt,mt,Xe){var Ye=T;if(He===T){if(Je!==0)throw new Error("DIFAT chain shorter than expected")}else if(He!==-1){var ot=tt[He],yt=(mt>>>2)-1;if(!ot)return;for(var Mt=0;Mt=0;){Xe[Mt]=!0,Ye[Ye.length]=Mt,ot.push(He[Mt]);var $t=tt[Math.floor(4*Mt/mt)];if(mt<4+(cr=4*Mt&yt))throw new Error("FAT boundary crossed: "+Mt+" 4 "+mt);if(!He[$t])break;Mt=CA(He[$t],cr)}return{nodes:Ye,data:dI([ot])}}function I(He,Je){return new Date(1e3*(xc(He,Je+4)/1e7*Math.pow(2,32)+xc(He,Je)/1e7-11644473600))}function E(He,Je){var tt=Je||{},mt=tt.root||"Root Entry";if(He.FullPaths||(He.FullPaths=[]),He.FileIndex||(He.FileIndex=[]),He.FullPaths.length!==He.FileIndex.length)throw new Error("inconsistent CFB structure");He.FullPaths.length===0&&(He.FullPaths[0]=mt+"/",He.FileIndex[0]={name:mt,type:5}),tt.CLSID&&(He.FileIndex[0].clsid=tt.CLSID),function(Xe){var Ye="Sh33tJ5";if(!ai.find(Xe,"/"+Ye)){var ot=Ir(4);ot[0]=55,ot[1]=ot[3]=50,ot[2]=54,Xe.FileIndex.push({name:Ye,type:2,content:ot,size:4,L:69,R:69,C:69}),Xe.FullPaths.push(Xe.FullPaths[0]+Ye),B(Xe)}}(He)}function B(He,Je){E(He);for(var tt=!1,mt=!1,Xe=He.FullPaths.length-1;Xe>=0;--Xe){var Ye=He.FileIndex[Xe];switch(Ye.type){case 0:mt?tt=!0:(He.FileIndex.pop(),He.FullPaths.pop());break;case 1:case 2:case 5:mt=!0,isNaN(Ye.R*Ye.L*Ye.C)&&(tt=!0),Ye.R>-1&&Ye.L>-1&&Ye.R==Ye.L&&(tt=!0);break;default:tt=!0}}if(tt||Je){var ot=new Date(1987,1,19),yt=0,Mt=Object.create?Object.create(null):{},cr=[];for(Xe=0;Xe1?1:-1,Hr.size=0,Hr.type=5;else if(mr.slice(-1)=="/"){for(yt=Xe+1;yt=cr.length?-1:yt,yt=Xe+1;yt=cr.length?-1:yt,Hr.type=1}else u(He.FullPaths[Xe+1]||"")==u(mr)&&(Hr.R=Xe+1),Hr.type=2}}}function S(He,Je){var tt=Je||{};if(tt.fileType=="mad")return function(sr,Yr){for(var Mr=Yr||{},Dr=Mr.boundary||"SheetJS",nn=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(Dr="------="+Dr).slice(2)+'"',"","",""],Sr=sr.FullPaths[0],tn=Sr,Cn=sr.FileIndex[0],Jn=1;Jn=32&&gn<128&&++dn;var kn=dn>=4*br/5;nn.push(Dr),nn.push("Content-Location: "+(Mr.root||"file:///C:/SheetJS/")+tn),nn.push("Content-Transfer-Encoding: "+(kn?"quoted-printable":"base64")),nn.push("Content-Type: "+Ft(Cn,tn)),nn.push(""),nn.push(kn?$e(An):Ze(An))}return nn.push(Dr+`--\r `),nn.join(`\r `)}(He,tt);if(B(He),tt.fileType==="zip")return function(sr,Yr){var Mr=Yr||{},Dr=[],nn=[],Sr=Ir(1),tn=Mr.compression?8:0,Cn=0,Jn=0,Rr=0,An=0,dn=0,br=sr.FullPaths[0],gn=br,wn=sr.FileIndex[0],kn=[],Dn=0;for(Jn=1;Jn0&&(Sr<4096?Yr+=Sr+63>>6:Mr+=Sr+511>>9)}}for(var tn=sr.FullPaths.length+3>>2,Cn=Yr+127>>7,Jn=(Yr+7>>3)+Mr+tn+Cn,Rr=Jn+127>>7,An=Rr<=109?0:Math.ceil((Rr-109)/127);Jn+Rr+An+127>>7>Rr;)An=++Rr<=109?0:Math.ceil((Rr-109)/127);var dn=[1,An,Rr,Cn,tn,Mr,Yr,0];return sr.FileIndex[0].size=Yr<<6,dn[7]=(sr.FileIndex[0].start=dn[0]+dn[1]+dn[2]+dn[3]+dn[4]+dn[5])+(dn[6]+7>>3),dn}(He),Xe=Ir(mt[7]<<9),Ye=0,ot=0;for(Ye=0;Ye<8;++Ye)Xe.write_shift(1,N[Ye]);for(Ye=0;Ye<8;++Ye)Xe.write_shift(2,0);for(Xe.write_shift(2,62),Xe.write_shift(2,3),Xe.write_shift(2,65534),Xe.write_shift(2,9),Xe.write_shift(2,6),Ye=0;Ye<3;++Ye)Xe.write_shift(2,0);for(Xe.write_shift(4,0),Xe.write_shift(4,mt[2]),Xe.write_shift(4,mt[0]+mt[1]+mt[2]+mt[3]-1),Xe.write_shift(4,0),Xe.write_shift(4,4096),Xe.write_shift(4,mt[3]?mt[0]+mt[1]+mt[2]-1:T),Xe.write_shift(4,mt[3]),Xe.write_shift(-4,mt[1]?mt[0]-1:T),Xe.write_shift(4,mt[1]),Ye=0;Ye<109;++Ye)Xe.write_shift(-4,Ye>9)));for(yt(mt[6]+7>>3);511&Xe.l;)Xe.write_shift(-4,W.ENDOFCHAIN);for(ot=Ye=0,Mt=0;Mt=4096||($t.start=ot,yt(cr+63>>6)));for(;511&Xe.l;)Xe.write_shift(-4,W.ENDOFCHAIN);for(Ye=0;Ye=4096)if(Xe.l=$t.start+1<<9,ki&&Buffer.isBuffer($t.content))$t.content.copy(Xe,Xe.l,0,$t.size),Xe.l+=$t.size+511&-512;else{for(Mt=0;Mt<$t.size;++Mt)Xe.write_shift(1,$t.content[Mt]);for(;511&Mt;++Mt)Xe.write_shift(1,0)}for(Ye=1;Ye0&&$t.size<4096)if(ki&&Buffer.isBuffer($t.content))$t.content.copy(Xe,Xe.l,0,$t.size),Xe.l+=$t.size+63&-64;else{for(Mt=0;Mt<$t.size;++Mt)Xe.write_shift(1,$t.content[Mt]);for(;63&Mt;++Mt)Xe.write_shift(1,0)}if(ki)Xe.l=Xe.length;else for(;Xe.l>16|we>>8|we));function J(He,Je){var tt=ne[255&He];return Je<=8?tt>>>8-Je:(tt=tt<<8|ne[He>>8&255],Je<=16?tt>>>16-Je:(tt=tt<<8|ne[He>>16&255])>>>24-Je)}function q(He,Je){var tt=7&Je,mt=Je>>>3;return(He[mt]|(tt<=6?0:He[mt+1]<<8))>>>tt&3}function z(He,Je){var tt=7&Je,mt=Je>>>3;return(He[mt]|(tt<=5?0:He[mt+1]<<8))>>>tt&7}function X(He,Je){var tt=7&Je,mt=Je>>>3;return(He[mt]|(tt<=3?0:He[mt+1]<<8))>>>tt&31}function se(He,Je){var tt=7&Je,mt=Je>>>3;return(He[mt]|(tt<=1?0:He[mt+1]<<8))>>>tt&127}function oe(He,Je,tt){var mt=7&Je,Xe=Je>>>3,Ye=(1<>>mt;return tt<8-mt?ot&Ye:(ot|=He[Xe+1]<<8-mt,tt<16-mt?ot&Ye:(ot|=He[Xe+2]<<16-mt,tt<24-mt?ot&Ye:(ot|=He[Xe+3]<<24-mt)&Ye))}function ye(He,Je,tt){var mt=7&Je,Xe=Je>>>3;return mt<=5?He[Xe]|=(7&tt)<>8-mt),Je+3}function ae(He,Je,tt){return tt=(1&tt)<<(7&Je),He[Je>>>3]|=tt,Je+1}function me(He,Je,tt){var mt=Je>>>3;return tt<<=7&Je,He[mt]|=255&tt,tt>>>=8,He[mt+1]=tt,Je+8}function Fe(He,Je,tt){var mt=Je>>>3;return tt<<=7&Je,He[mt]|=255&tt,tt>>>=8,He[mt+1]=255&tt,He[mt+2]=tt>>>8,Je+16}function _e(He,Je){var tt=He.length,mt=2*tt>Je?2*tt:Je+5,Xe=0;if(tt>=Je)return He;if(ki){var Ye=Ay(mt);if(He.copy)He.copy(Ye);else for(;Xe>mt-Hr,ot=(1<=0;--ot)Je[yt|ot<0;)yt[yt.l++]=ot[Mt++]}return yt.l}(Xe,Ye):function(ot,yt){for(var Mt=0,cr=0,$t=Z?new Uint16Array(32768):[];cr0;)yt[yt.l++]=ot[cr++];Mt=8*yt.l}else{Mt=ye(yt,Mt,+(cr+Hr==ot.length)+2);for(var mr=0;Hr-- >0;){var sr=ot[cr],Yr=-1,Mr=0;if((Yr=$t[mr=32767&(mr<<5^sr)])&&((Yr|=-32768&cr)>cr&&(Yr-=32768),Yr2){(sr=mt[Mr])<=22?Mt=me(yt,Mt,ne[sr+1]>>1)-1:(me(yt,Mt,3),me(yt,Mt+=5,ne[sr-23]>>5),Mt+=3);var Dr=sr<8?0:sr-4>>2;Dr>0&&(Fe(yt,Mt,Mr-fe[sr]),Mt+=Dr),sr=He[cr-Yr],Mt=me(yt,Mt,ne[sr]>>3),Mt-=3;var nn=sr<4?0:sr-2>>1;nn>0&&(Fe(yt,Mt,cr-Yr-de[sr]),Mt+=nn);for(var Sr=0;Sr>>3;return(tn[Rr]|(Jn<=4?0:tn[Rr+1]<<8))>>>Jn&15}(He,Je+=5)+4;Je+=4;for(var Ye=0,ot=Z?new Uint8Array(19):rt(19),yt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Mt=1,cr=Z?new Uint8Array(8):rt(8),$t=Z?new Uint8Array(8):rt(8),Hr=ot.length,mr=0;mr>8-Yr;for(var Mr=(1<<7-Yr)-1;Mr>=0;--Mr)Ke[sr|Mr<>>=3){case 16:for(Ye=3+q(He,Je),Je+=2,sr=Dr[Dr.length-1];Ye-- >0;)Dr.push(sr);break;case 17:for(Ye=3+z(He,Je),Je+=3;Ye-- >0;)Dr.push(0);break;case 18:for(Ye=11+se(He,Je),Je+=7;Ye-- >0;)Dr.push(0);break;default:Dr.push(sr),Mt>>0,$t=0,Hr=0;!(1&ot);)if(ot=z(mt,Ye),Ye+=3,ot>>>1!=0)for(ot>>1==1?($t=9,Hr=5):(Ye=Re(mt,Ye),$t=Rt,Hr=Ie);;){!Xe&&cr>>1==1?st[mr]:lt[mr];if(Ye+=15&sr,(sr>>>=4)>>>8&255){if(sr==256)break;var Yr=(sr-=257)<8?0:sr-4>>2;Yr>5&&(Yr=0);var Mr=Mt+fe[sr];Yr>0&&(Mr+=oe(mt,Ye,Yr),Ye+=Yr),mr=oe(mt,Ye,Hr),Ye+=15&(sr=ot>>>1==1?Ge[mr]:Me[mr]);var Dr=(sr>>>=4)<4?0:sr-2>>1,nn=de[sr];for(Dr>0&&(nn+=oe(mt,Ye,Dr),Ye+=Dr),!Xe&&cr>>3]|mt[1+(Ye>>>3)]<<8;if(Ye+=32,Sr>0)for(!Xe&&cr0;)yt[Mt++]=mt[Ye>>>3],Ye+=8}return Xe?[yt,Ye+7>>>3]:[yt.slice(0,Mt),Ye+7>>>3]}(He.slice(He.l||0),Je);return He.l+=tt[1],tt[0]}function pt(He,Je){if(!He)throw new Error(Je);typeof console<"u"&&console.error(Je)}function Lt(He,Je){var tt=He;lu(tt,0);var mt={FileIndex:[],FullPaths:[]};E(mt,{root:Je.root});for(var Xe=tt.length-4;(tt[Xe]!=80||tt[Xe+1]!=75||tt[Xe+2]!=5||tt[Xe+3]!=6)&&Xe>=0;)--Xe;tt.l=Xe+4,tt.l+=4;var Ye=tt.read_shift(2);tt.l+=6;var ot=tt.read_shift(4);for(tt.l=ot,Xe=0;Xe>>=5);tn>>>=4,Cn.setMilliseconds(0),Cn.setFullYear(tn+1980),Cn.setMonth(Rr-1),Cn.setDate(Jn);var An=31&Sr,dn=63&(Sr>>>=5);return Sr>>>=6,Cn.setHours(Sr),Cn.setMinutes(dn),Cn.setSeconds(An<<1),Cn}(He);if(8257&Ye)throw new Error("Unsupported ZIP encryption");He.read_shift(4);for(var Mt=He.read_shift(4),cr=He.read_shift(4),$t=He.read_shift(2),Hr=He.read_shift(2),mr="",sr=0;sr<$t;++sr)mr+=String.fromCharCode(He[He.l++]);if(Hr){var Yr=p(He.slice(He.l,He.l+Hr));(Yr[21589]||{}).mt&&(yt=Yr[21589].mt),((Xe||{})[21589]||{}).mt&&(yt=Xe[21589].mt)}He.l+=Hr;var Mr=He.slice(He.l,He.l+Mt);switch(ot){case 8:Mr=function(nn,Sr){if(!_)return qe(nn,Sr);var tn=new _.InflateRaw,Cn=tn._processChunk(nn.slice(nn.l),tn._finishFlushFlag);return nn.l+=tn.bytesRead,Cn}(He,cr);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+ot)}var Dr=!1;8&Ye&&(He.read_shift(4)==134695760&&(He.read_shift(4),Dr=!0),Mt=He.read_shift(4),cr=He.read_shift(4)),Mt!=Je&&pt(Dr,"Bad compressed size: "+Je+" != "+Mt),cr!=tt&&pt(Dr,"Bad uncompressed size: "+tt+" != "+cr),Ot(mt,mr,Mr,{unsafe:!0,mt:yt})}var _t={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Ft(He,Je){if(He.ctype)return He.ctype;var tt=He.name||"",mt=tt.match(/\.([^\.]+)$/);return mt&&_t[mt[1]]||Je&&(mt=(tt=Je).match(/[\.\\]([^\.\\])+$/))&&_t[mt[1]]?_t[mt[1]]:"application/octet-stream"}function Ze(He){for(var Je=jr(He),tt=[],mt=0;mt"u")throw new Error("Unsupported");return new Uint8Array(c)}(a):a}function fp(a,c,u){if(typeof Deno<"u"){if(u&&typeof c=="string")switch(u){case"utf8":c=new TextEncoder(u).encode(c);break;case"binary":c=dy(c);break;default:throw new Error("Unsupported encoding "+u)}return Deno.writeFileSync(a,c)}var h=u=="utf8"?Dh(c):c;if(typeof IE_SaveFile<"u")return IE_SaveFile(h,a);if(typeof Blob<"u"){var d=new Blob([Rd(h)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(d,a);if(typeof saveAs<"u")return saveAs(d,a);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var p=URL.createObjectURL(d);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(p)},6e4),chrome.downloads.download({url:p,filename:a,saveAs:!0});var g=document.createElement("a");if(g.download!=null)return g.download=a,g.href=p,document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(p)},6e4),p}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var A=File(a);return A.open("w"),A.encoding="binary",Array.isArray(c)&&(c=Af(c)),A.write(c),A.close(),c}catch(m){if(!m.message||!m.message.match(/onstruct/))throw m}throw new Error("cannot save file "+a)}function to(a){for(var c=Object.keys(a),u=[],h=0;h3&&(h=!0),d[p].slice(d[p].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+d[p].slice(d[p].length-1));case"D":u*=24;case"H":u*=60;case"M":if(!h)throw new Error("Unsupported ISO Duration Field: M");u*=60}c+=u*parseInt(d[p],10)}return c}var pA=new Date("2017-02-19T19:06:09.000Z"),Rw=isNaN(pA.getFullYear())?new Date("2/19/17"):pA,b5=Rw.getFullYear()==2017;function Po(a,c){var u=new Date(a);if(b5)return c>0?u.setTime(u.getTime()+60*u.getTimezoneOffset()*1e3):c<0&&u.setTime(u.getTime()-60*u.getTimezoneOffset()*1e3),u;if(a instanceof Date)return a;if(Rw.getFullYear()==1917&&!isNaN(u.getFullYear())){var h=u.getFullYear();return a.indexOf(""+h)>-1||u.setFullYear(u.getFullYear()+100),u}var d=a.match(/\d+/g)||["2017","2","19","0","0","0"],p=new Date(+d[0],+d[1]-1,+d[2],+d[3]||0,+d[4]||0,+d[5]||0);return a.indexOf("Z")>-1&&(p=new Date(p.getTime()-60*p.getTimezoneOffset()*1e3)),p}function pf(a,c){if(ki&&Buffer.isBuffer(a)){if(c){if(a[0]==255&&a[1]==254)return Dh(a.slice(2).toString("utf16le"));if(a[1]==254&&a[2]==255)return Dh(ww(a.slice(2).toString("binary")))}return a.toString("binary")}if(typeof TextDecoder<"u")try{if(c){if(a[0]==255&&a[1]==254)return Dh(new TextDecoder("utf-16le").decode(a.slice(2)));if(a[0]==254&&a[1]==255)return Dh(new TextDecoder("utf-16be").decode(a.slice(2)))}var u={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(a)&&(a=new Uint8Array(a)),new TextDecoder("latin1").decode(a).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(p){return u[p]||p})}catch{}for(var h=[],d=0;d!=a.length;++d)h.push(String.fromCharCode(a[d]));return h.join("")}function Ro(a){if(typeof JSON<"u"&&!Array.isArray(a))return JSON.parse(JSON.stringify(a));if(typeof a!="object"||a==null)return a;if(a instanceof Date)return new Date(a.getTime());var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=Ro(a[u]));return c}function Go(a,c){for(var u="";u.length3&&Ey.indexOf(g)==-1)return u}else if(g.match(/[a-z]/))return u;return h<0||h>8099?u:(d>0||p>1)&&h!=101?c:a.match(/[^-0-9:,\/\\]/)?u:c}var C5=function(){var a="abacaba".split(/(:?b)/i).length==5;return function(c,u,h){if(a||typeof u=="string")return c.split(u);for(var d=c.split(u),p=[d[0]],g=1;g>6&31,m[g++]=128|63&b;else if(b>=55296&&b<57344){b=64+(1023&b);var I=1023&d.charCodeAt(++y);m[g++]=240|b>>8&7,m[g++]=128|b>>2&63,m[g++]=128|I>>6&15|(3&b)<<4,m[g++]=128|63&I}else m[g++]=224|b>>12&15,m[g++]=128|b>>6&63,m[g++]=128|63&b;g>A&&(p.push(m.slice(0,g)),g=0,m=AA(65535),A=65530)}return p.push(m.slice(0,g)),Jo(p)}(u),ai.utils.cfb_add(a,c,h);ai.utils.cfb_add(a,c,u)}else a.file(c,u)}function sI(){return ai.utils.cfb_new()}function Fw(a,c){switch(c.type){case"base64":return ai.read(a,{type:"base64"});case"binary":return ai.read(a,{type:"binary"});case"buffer":case"array":return ai.read(a,{type:"buffer"})}throw new Error("Unrecognized type "+c.type)}function a1(a,c){if(a.charAt(0)=="/")return a.slice(1);var u=c.split("/");c.slice(-1)!="/"&&u.pop();for(var h=a.split("/");h.length!==0;){var d=h.shift();d===".."?u.pop():d!=="."&&u.push(d)}return u.join("/")}var ts=`\r `,uI=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,vA=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,Js=ts.match(vA)?vA:/<[^>]*>/g,Tw=/<\w*:/,Lw=/<(\/?)\w+:/;function ii(a,c,u){for(var h={},d=0,p=0;d!==a.length&&(p=a.charCodeAt(d))!==32&&p!==10&&p!==13;++d);if(c||(h[0]=a.slice(0,d)),d===a.length)return h;var g=a.match(uI),A=0,m="",y=0,b="",I="",E=1;if(g)for(y=0;y!=g.length;++y){for(I=g[y],p=0;p!=I.length&&I.charCodeAt(p)!==61;++p);for(b=I.slice(0,p).trim();I.charCodeAt(p+1)==32;)++p;for(E=(d=I.charCodeAt(p+1))==34||d==39?1:0,m=I.slice(p+1+E,I.length-E),A=0;A!=b.length&&b.charCodeAt(A)!==58;++A);if(A===b.length)b.indexOf("_")>0&&(b=b.slice(0,b.indexOf("_"))),h[b]=m,h[b.toLowerCase()]=m;else{var B=(A===5&&b.slice(0,5)==="xmlns"?"xmlns":"")+b.slice(A+1);if(h[B]&&b.slice(A-3,A)=="ext")continue;h[B]=m,h[B.toLowerCase()]=m}}return h}function cc(a){return a.replace(Lw,"<$1")}var By={""":'"',"'":"'",">":">","<":"<","&":"&"},cI=by(By),ji=function(){var a=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,c=/_x([\da-fA-F]{4})_/gi;return function u(h){var d=h+"",p=d.indexOf("-1?16:10))||A}).replace(c,function(A,m){return String.fromCharCode(parseInt(m,16))});var g=d.indexOf("]]>");return u(d.slice(0,p))+d.slice(p+9,g)+u(d.slice(g+3))}}(),Ou=/[&<>'"]/g,lI=/[\u0000-\u0008\u000b-\u001f]/g;function Xa(a){return(a+"").replace(Ou,function(c){return cI[c]}).replace(lI,function(c){return"_x"+("000"+c.charCodeAt(0).toString(16)).slice(-4)+"_"})}function yA(a){return Xa(a).replace(/ /g,"_x0020_")}var o1=/[\u0000-\u001f]/g;function dp(a){return(a+"").replace(Ou,function(c){return cI[c]}).replace(/\n/g,"
").replace(o1,function(c){return"&#x"+("000"+c.charCodeAt(0).toString(16)).slice(-4)+";"})}var s1=function(){var a=/&#(\d+);/g;function c(u,h){return String.fromCharCode(parseInt(h,10))}return function(u){return u.replace(a,c)}}();function po(a){switch(a){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function ky(a){for(var c="",u=0,h=0,d=0,p=0,g=0,A=0;u191&&h<224?(g=(31&h)<<6,g|=63&d,c+=String.fromCharCode(g)):(p=a.charCodeAt(u++),h<240?c+=String.fromCharCode((15&h)<<12|(63&d)<<6|63&p):(A=((7&h)<<18|(63&d)<<12|(63&p)<<6|63&(g=a.charCodeAt(u++)))-65536,c+=String.fromCharCode(55296+(A>>>10&1023)),c+=String.fromCharCode(56320+(1023&A)))));return c}function Qy(a){var c,u,h,d=AA(2*a.length),p=1,g=0,A=0;for(u=0;u>>10&1023),c=56320+(1023&c)),A!==0&&(d[g++]=255&A,d[g++]=A>>>8,A=0),d[g++]=c%256,d[g++]=c>>>8;return d.slice(0,g).toString("ucs2")}function xy(a){return uu(a,"binary").toString("utf8")}var Sy="foo bar baz☃🍣",vo=ki&&(xy(Sy)==ky(Sy)&&xy||Qy(Sy)==ky(Sy)&&Qy)||ky,Dh=ki?function(a){return uu(a,"utf8").toString("binary")}:function(a){for(var c=[],u=0,h=0,d=0;u>6))),c.push(String.fromCharCode(128+(63&h)));break;case(h>=55296&&h<57344):h-=55296,d=a.charCodeAt(u++)-56320+(h<<10),c.push(String.fromCharCode(240+(d>>18&7))),c.push(String.fromCharCode(144+(d>>12&63))),c.push(String.fromCharCode(128+(d>>6&63))),c.push(String.fromCharCode(128+(63&d)));break;default:c.push(String.fromCharCode(224+(h>>12))),c.push(String.fromCharCode(128+(h>>6&63))),c.push(String.fromCharCode(128+(63&h)))}return c.join("")},Fa=function(){var a={};return function(c,u){var h=c+"|"+(u||"");return a[h]?a[h]:a[h]=new RegExp("<(?:\\w+:)?"+c+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",u||"")}}(),Fd=function(){var a=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(c){return[new RegExp("&"+c[0]+";","ig"),c[1]]});return function(c){for(var u=c.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,` `).replace(/<[^>]*>/g,""),h=0;h([\\s\\S]*?)","g")}}(),Rh=/<\/?(?:vt:)?variant>/g,mA=/<(?:vt:)([^>]*)>([\s\S]*)"+c+""}function Ld(a){return to(a).map(function(c){return" "+c+'="'+a[c]+'"'}).join("")}function on(a,c,u){return"<"+a+(u!=null?Ld(u):"")+(c!=null?(c.match(kl)?' xml:space="preserve"':"")+">"+c+""}function vf(a,c){try{return a.toISOString().replace(/\.\d*/,"")}catch(u){if(c)throw u}return""}function $l(a){if(ki&&Buffer.isBuffer(a))return a.toString("utf8");if(typeof a=="string")return a;if(typeof Uint8Array<"u"&&a instanceof Uint8Array)return vo(Af(gy(a)));throw new Error("Bad input format: expected Buffer or string")}var Nd=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm,IA="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",hI="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",u1="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",_y="http://schemas.openxmlformats.org/package/2006/content-types",fI="http://schemas.openxmlformats.org/package/2006/relationships",eh="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",bA="http://purl.org/dc/elements/1.1/",E5="http://purl.org/dc/terms/",Nw="http://purl.org/dc/dcmitype/",AI="http://schemas.openxmlformats.org/officeDocument/2006/relationships",lc="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",gp="http://www.w3.org/2001/XMLSchema-instance",B5="http://www.w3.org/2001/XMLSchema",hc=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],th="urn:schemas-microsoft-com:office:office",yf="urn:schemas-microsoft-com:office:excel",Ow="urn:schemas-microsoft-com:office:spreadsheet",k5="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",fc="http://macVmlSchemaUri",Ql="urn:schemas-microsoft-com:vml",Q5="http://www.w3.org/TR/REC-html40",Pw=function(a){for(var c=[],u=0;u0&&Buffer.isBuffer(a[0][0])?Buffer.concat(a[0].map(function(c){return Buffer.isBuffer(c)?c:uu(c)})):Pw(a)}:Pw,Gw=function(a,c,u){for(var h=[],d=c;d0?c1(a,c+4,c+4+u-1):""},Si=Ry,gI=function(a,c){var u=xc(a,c);return u>0?c1(a,c+4,c+4+u-1):""},Od=gI,Hw=function(a,c){var u=2*xc(a,c);return u>0?c1(a,c+4,c+4+u-1):""},Yw=Hw,Jw=function(a,c){var u=xc(a,c);return u>0?Dy(a,c+4,c+4+u):""},Ws=Jw,Ww=function(a,c){var u=xc(a,c);return u>0?c1(a,c+4,c+4+u):""},Pd=Ww,pI=function(a,c){return function(u,h){for(var d=1-2*(u[h+7]>>>7),p=((127&u[h+7])<<4)+(u[h+6]>>>4&15),g=15&u[h+6],A=5;A>=0;--A)g=256*g+u[h+A];return p==2047?g==0?d*(1/0):NaN:(p==0?p=-1022:(p-=1023,g+=Math.pow(2,52)),d*Math.pow(2,p-52)*g)}(a,c)},l1=pI,mf=function(a){return Array.isArray(a)||typeof Uint8Array<"u"&&a instanceof Uint8Array};ki&&(Si=function(a,c){if(!Buffer.isBuffer(a))return Ry(a,c);var u=a.readUInt32LE(c);return u>0?a.toString("utf8",c+4,c+4+u-1):""},Od=function(a,c){if(!Buffer.isBuffer(a))return gI(a,c);var u=a.readUInt32LE(c);return u>0?a.toString("utf8",c+4,c+4+u-1):""},Yw=function(a,c){if(!Buffer.isBuffer(a))return Hw(a,c);var u=2*a.readUInt32LE(c);return a.toString("utf16le",c+4,c+4+u-1)},Ws=function(a,c){if(!Buffer.isBuffer(a))return Jw(a,c);var u=a.readUInt32LE(c);return a.toString("utf16le",c+4,c+4+u)},Pd=function(a,c){if(!Buffer.isBuffer(a))return Ww(a,c);var u=a.readUInt32LE(c);return a.toString("utf8",c+4,c+4+u)},l1=function(a,c){return Buffer.isBuffer(a)?a.readDoubleLE(c):pI(a,c)},mf=function(a){return Buffer.isBuffer(a)||Array.isArray(a)||typeof Uint8Array<"u"&&a instanceof Uint8Array});var vp=function(a,c){return a[c]},If=function(a,c){return 256*a[c+1]+a[c]},ta=function(a,c){var u=256*a[c+1]+a[c];return u<32768?u:-1*(65535-u+1)},xc=function(a,c){return a[c+3]*(1<<24)+(a[c+2]<<16)+(a[c+1]<<8)+a[c]},CA=function(a,c){return a[c+3]<<24|a[c+2]<<16|a[c+1]<<8|a[c]},x5=function(a,c){return a[c]<<24|a[c+1]<<16|a[c+2]<<8|a[c+3]};function Mn(a,c){var u,h,d,p,g,A,m="",y=[];switch(c){case"dbcs":if(A=this.l,ki&&Buffer.isBuffer(this))m=this.slice(this.l,this.l+2*a).toString("utf16le");else for(g=0;g0?CA:x5)(this,this.l),this.l+=4,u);case 8:case-8:if(c==="f")return h=a==8?l1(this,this.l):l1([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,h;a=8;case 16:m=jw(this,this.l,a)}}return this.l+=a,m}var My=function(a,c,u){a[u]=255&c,a[u+1]=c>>>8&255,a[u+2]=c>>>16&255,a[u+3]=c>>>24&255},S5=function(a,c,u){a[u]=255&c,a[u+1]=c>>8&255,a[u+2]=c>>16&255,a[u+3]=c>>24&255},qw=function(a,c,u){a[u]=255&c,a[u+1]=c>>>8&255};function zw(a,c,u){var h=0,d=0;if(u==="dbcs"){for(d=0;d!=c.length;++d)qw(this,c.charCodeAt(d),this.l+2*d);h=2*c.length}else if(u==="sbcs"){for(c=c.replace(/[^\x00-\x7F]/g,"_"),d=0;d!=c.length;++d)this[this.l+d]=255&c.charCodeAt(d);h=c.length}else{if(u==="hex"){for(;d>8}for(;this.l>>=8,this[this.l+1]=255&c;break;case 3:h=3,this[this.l]=255&c,c>>>=8,this[this.l+1]=255&c,c>>>=8,this[this.l+2]=255&c;break;case 4:h=4,My(this,c,this.l);break;case 8:if(h=8,u==="f"){(function(A,m,y){var b=(m<0||1/m==-1/0?1:0)<<7,I=0,E=0,B=b?-m:m;isFinite(B)?B==0?I=E=0:(I=Math.floor(Math.log(B)/Math.LN2),E=B*Math.pow(2,52-I),I<=-1023&&(!isFinite(E)||E>4|b})(this,c,this.l);break}case 16:break;case-4:h=4,S5(this,c,this.l)}}return this.l+=h,this}function vI(a,c){var u=jw(this,this.l,a.length>>1);if(u!==a)throw new Error(c+"Expected "+a+" saw "+u);this.l+=a.length>>1}function lu(a,c){a.l=c,a.read_shift=Mn,a.chk=vI,a.write_shift=zw}function qs(a,c){a.l+=c}function Ir(a){var c=AA(a);return lu(c,0),c}function Mh(a,c,u){if(a){var h,d,p;lu(a,a.l||0);for(var g=a.length,A=0,m=0;a.lh.l&&((h=h.slice(0,h.l)).l=h.length),h.length>0&&a.push(h),h=null)},p=function(g){return h&&g=128?1:0)+1,h>=128&&++d,h>=16384&&++d,h>=2097152&&++d;var g=a.next(d);p<=127?g.write_shift(1,p):(g.write_shift(1,128+(127&p)),g.write_shift(1,p>>7));for(var A=0;A!=4;++A){if(!(h>=128)){g.write_shift(1,h);break}g.write_shift(1,128+(127&h)),h>>=7}h>0&&mf(u)&&a.push(u)}}function yp(a,c,u){var h=Ro(a);if(c.s?(h.cRel&&(h.c+=c.s.c),h.rRel&&(h.r+=c.s.r)):(h.cRel&&(h.c+=c.c),h.rRel&&(h.r+=c.r)),!u||u.biff<12){for(;h.c>=256;)h.c-=256;for(;h.r>=65536;)h.r-=65536}return h}function mp(a,c,u){var h=Ro(a);return h.s=yp(h.s,c.s,u),h.e=yp(h.e,c.s,u),h}function Un(a,c){if(a.cRel&&a.c<0)for(a=Ro(a);a.c<0;)a.c+=c>8?16384:256;if(a.rRel&&a.r<0)for(a=Ro(a);a.r<0;)a.r+=c>8?1048576:c>5?65536:16384;var u=Mi(a);return a.cRel||a.cRel==null||(u=u.replace(/^([A-Z])/,"$$$1")),a.rRel||a.rRel==null||(u=function(h){return h.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(u)),u}function h1(a,c){return a.s.r!=0||a.s.rRel||a.e.r!=(c.biff>=12?1048575:c.biff>=8?65536:16384)||a.e.rRel?a.s.c!=0||a.s.cRel||a.e.c!=(c.biff>=12?16383:255)||a.e.cRel?Un(a.s,c.biff)+":"+Un(a.e,c.biff):(a.s.rRel?"":"$")+Ss(a.s.r)+":"+(a.e.rRel?"":"$")+Ss(a.e.r):(a.s.cRel?"":"$")+rs(a.s.c)+":"+(a.e.cRel?"":"$")+rs(a.e.c)}function f1(a){return parseInt(a.replace(/\$(\d+)$/,"$1"),10)-1}function Ss(a){return""+(a+1)}function yI(a){for(var c=a.replace(/^\$([A-Z])/,"$1"),u=0,h=0;h!==c.length;++h)u=26*u+c.charCodeAt(h)-64;return u-1}function rs(a){if(a<0)throw new Error("invalid column "+a);var c="";for(++a;a;a=Math.floor((a-1)/26))c=String.fromCharCode((a-1)%26+65)+c;return c}function As(a){for(var c=0,u=0,h=0;h=48&&d<=57?c=10*c+(d-48):d>=65&&d<=90&&(u=26*u+(d-64))}return{c:u-1,r:c-1}}function Mi(a){for(var c=a.c+1,u="";c;c=(c-1)/26|0)u=String.fromCharCode((c-1)%26+65)+u;return u+(a.r+1)}function dc(a){var c=a.indexOf(":");return c==-1?{s:As(a),e:As(a)}:{s:As(a.slice(0,c)),e:As(a.slice(c+1))}}function bi(a,c){return c===void 0||typeof c=="number"?bi(a.s,a.e):(typeof a!="string"&&(a=Mi(a)),typeof c!="string"&&(c=Mi(c)),a==c?a:a+":"+c)}function Ta(a){var c={s:{c:0,r:0},e:{c:0,r:0}},u=0,h=0,d=0,p=a.length;for(u=0;h26);++h)u=26*u+d;for(c.s.c=--u,u=0;h9);++h)u=10*u+d;if(c.s.r=--u,h===p||d!=10)return c.e.c=c.s.c,c.e.r=c.s.r,c;for(++h,u=0;h!=p&&!((d=a.charCodeAt(h)-64)<1||d>26);++h)u=26*u+d;for(c.e.c=--u,u=0;h!=p&&!((d=a.charCodeAt(h)-48)<0||d>9);++h)u=10*u+d;return c.e.r=--u,c}function Ip(a,c){var u=a.t=="d"&&c instanceof Date;if(a.z!=null)try{return a.w=El(a.z,u?Ys(c):c)}catch{}try{return a.w=El((a.XF||{}).numFmtId||(u?14:0),u?Ys(c):c)}catch{return""+c}}function wA(a,c,u){return a==null||a.t==null||a.t=="z"?"":a.w!==void 0?a.w:(a.t=="d"&&!a.z&&u&&u.dateNF&&(a.z=u.dateNF),a.t=="e"?bf[a.v]||a.v:Ip(a,c??a.v))}function Sc(a,c){var u=c&&c.sheet?c.sheet:"Sheet1",h={};return h[u]=a,{SheetNames:[u],Sheets:h}}function EA(a,c){return function(u,h,d){var p=d||{},g=u?Array.isArray(u):p.dense,A=u||(g?[]:{}),m=0,y=0;if(A&&p.origin!=null){if(typeof p.origin=="number")m=p.origin;else{var b=typeof p.origin=="string"?As(p.origin):p.origin;m=b.r,y=b.c}A["!ref"]||(A["!ref"]="A1:A1")}var I={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(A["!ref"]){var E=Ta(A["!ref"]);I.s.c=E.s.c,I.s.r=E.s.r,I.e.c=Math.max(I.e.c,E.e.c),I.e.r=Math.max(I.e.r,E.e.r),m==-1&&(I.e.r=m=E.e.r+1)}for(var B=0;B!=h.length;++B)if(h[B]){if(!Array.isArray(h[B]))throw new Error("aoa_to_sheet expects an array of arrays");for(var S=0;S!=h[B].length;++S)if(h[B][S]!==void 0){var _={v:h[B][S]},D=m+B,T=y+S;if(I.s.r>D&&(I.s.r=D),I.s.c>T&&(I.s.c=T),I.e.r0&&c.write_shift(0,a,"dbcs"),u?c.slice(0,c.l):c}function Gd(a){return{ich:a.read_shift(2),ifnt:a.read_shift(2)}}function Ud(a,c){var u=a.l,h=a.read_shift(1),d=zs(a),p=[],g={t:d,h:d};if(1&h){for(var A=a.read_shift(4),m=0;m!=A;++m)p.push(Gd(a));g.r=p}else g.r=[{ich:0,ifnt:0}];return a.l=u+c,g}var Kw=Ud;function Vw(a,c){var u=!1;return c==null&&(u=!0,c=Ir(23+4*a.t.length)),c.write_shift(1,1),Wo(a.t,c),c.write_shift(4,1),function(h,d){d||(d=Ir(4)),d.write_shift(2,0),d.write_shift(2,0)}({},c),u?c.slice(0,c.l):c}function _c(a){var c=a.read_shift(4),u=a.read_shift(2);return u+=a.read_shift(1)<<16,a.l++,{c,iStyleRef:u}}function BA(a,c){return c==null&&(c=Ir(8)),c.write_shift(-4,a.c),c.write_shift(3,a.iStyleRef||a.s),c.write_shift(1,0),c}function jd(a){var c=a.read_shift(2);return c+=a.read_shift(1)<<16,a.l++,{c:-1,iStyleRef:c}}function Hd(a,c){return c==null&&(c=Ir(4)),c.write_shift(3,a.iStyleRef||a.s),c.write_shift(1,0),c}var Zw=zs,Fh=Wo;function bp(a){var c=a.read_shift(4);return c===0||c===4294967295?"":a.read_shift(c,"dbcs")}function Yd(a,c){var u=!1;return c==null&&(u=!0,c=Ir(127)),c.write_shift(4,a.length>0?a.length:4294967295),a.length>0&&c.write_shift(0,a,"dbcs"),u?c.slice(0,c.l):c}var _5=zs,mI=bp,II=Yd;function A1(a){var c=a.slice(a.l,a.l+4),u=1&c[0],h=2&c[0];a.l+=4;var d=h===0?l1([0,0,0,0,252&c[0],c[1],c[2],c[3]],0):CA(c,0)>>2;return u?d/100:d}function xl(a,c){c==null&&(c=Ir(4));var u=0,h=0,d=100*a;if(a==(0|a)&&a>=-536870912&&a<1<<29?h=1:d==(0|d)&&d>=-536870912&&d<1<<29&&(h=1,u=1),!h)throw new Error("unsupported RkNumber "+a);c.write_shift(-4,((u?d:a)<<2)+(u+2))}function bI(a){var c={s:{},e:{}};return c.s.r=a.read_shift(4),c.e.r=a.read_shift(4),c.s.c=a.read_shift(4),c.e.c=a.read_shift(4),c}var kA=bI,Dc=function(a,c){return c||(c=Ir(16)),c.write_shift(4,a.s.r),c.write_shift(4,a.e.r),c.write_shift(4,a.s.c),c.write_shift(4,a.e.c),c};function ko(a){if(a.length-a.l<8)throw"XLS Xnum Buffer underflow";return a.read_shift(8,"f")}function Jd(a,c){return(c||Ir(8)).write_shift(8,a,"f")}function Wd(a,c){if(c||(c=Ir(8)),!a||a.auto)return c.write_shift(4,0),c.write_shift(4,0),c;a.index!=null?(c.write_shift(1,2),c.write_shift(1,a.index)):a.theme!=null?(c.write_shift(1,6),c.write_shift(1,a.theme)):(c.write_shift(1,5),c.write_shift(1,0));var u=a.tint||0;if(u>0?u*=32767:u<0&&(u*=32768),c.write_shift(2,u),a.rgb&&a.theme==null){var h=a.rgb||"FFFFFF";typeof h=="number"&&(h=("000000"+h.toString(16)).slice(-6)),c.write_shift(1,parseInt(h.slice(0,2),16)),c.write_shift(1,parseInt(h.slice(2,4),16)),c.write_shift(1,parseInt(h.slice(4,6),16)),c.write_shift(1,255)}else c.write_shift(2,0),c.write_shift(1,0),c.write_shift(1,0);return c}function CI(a,c){var u=a.read_shift(4);switch(u){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[a.read_shift(4)]||""}if(u>400)throw new Error("Unsupported Clipboard: "+u.toString(16));return a.l-=4,a.read_shift(0,c==1?"lpstr":"lpwstr")}var Ks=80,Xw=[Ks,81],Fy={1:{n:"CodePage",t:2},2:{n:"Category",t:Ks},3:{n:"PresentationFormat",t:Ks},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:Ks},15:{n:"Company",t:Ks},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:Ks},27:{n:"ContentStatus",t:Ks},28:{n:"Language",t:Ks},29:{n:"Version",t:Ks},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},d1={1:{n:"CodePage",t:2},2:{n:"Title",t:Ks},3:{n:"Subject",t:Ks},4:{n:"Author",t:Ks},5:{n:"Keywords",t:Ks},6:{n:"Comments",t:Ks},7:{n:"Template",t:Ks},8:{n:"LastAuthor",t:Ks},9:{n:"RevNumber",t:Ks},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:Ks},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Ty={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},D5=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function wI(a){return a.map(function(c){return[c>>16&255,c>>8&255,255&c]})}var Cp=Ro(wI([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),bf={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},$w={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Ly={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Ny={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function QA(a,c){var u,h=function(m){for(var y=[],b=to(m),I=0;I!==b.length;++I)y[m[b[I]]]==null&&(y[m[b[I]]]=[]),y[m[b[I]]].push(b[I]);return y}(Ly),d=[];d[d.length]=ts,d[d.length]=on("Types",null,{xmlns:_y,"xmlns:xsd":B5,"xmlns:xsi":gp}),d=d.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(m){return on("Default",null,{Extension:m[0],ContentType:m[1]})}));var p=function(m){a[m]&&a[m].length>0&&(u=a[m][0],d[d.length]=on("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:Ny[m][c.bookType]||Ny[m].xlsx}))},g=function(m){(a[m]||[]).forEach(function(y){d[d.length]=on("Override",null,{PartName:(y[0]=="/"?"":"/")+y,ContentType:Ny[m][c.bookType]||Ny[m].xlsx})})},A=function(m){(a[m]||[]).forEach(function(y){d[d.length]=on("Override",null,{PartName:(y[0]=="/"?"":"/")+y,ContentType:h[m][0]})})};return p("workbooks"),g("sheets"),g("charts"),A("themes"),["strs","styles"].forEach(p),["coreprops","extprops","custprops"].forEach(A),A("vba"),A("comments"),A("threadedcomments"),A("drawings"),g("metadata"),A("people"),d.length>2&&(d[d.length]="",d[1]=d[1].replace("/>",">")),d.join("")}var ma={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function uo(a){var c=a.lastIndexOf("/");return a.slice(0,c+1)+"_rels/"+a.slice(c+1)+".rels"}function xA(a,c){var u={"!id":{}};if(!a)return u;c.charAt(0)!=="/"&&(c="/"+c);var h={};return(a.match(Js)||[]).forEach(function(d){var p=ii(d);if(p[0]==="2&&(c[c.length]="",c[1]=c[1].replace("/>",">")),c.join("")}function co(a,c,u,h,d,p){if(d||(d={}),a["!id"]||(a["!id"]={}),a["!idx"]||(a["!idx"]=1),c<0)for(c=a["!idx"];a["!id"]["rId"+c];++c);if(a["!idx"]=c+1,d.Id="rId"+c,d.Type=h,d.Target=u,[ma.HLINK,ma.XPATH,ma.XMISS].indexOf(d.Type)>-1&&(d.TargetMode="External"),a["!id"][d.Id])throw new Error("Cannot rewrite rId "+c);return a["!id"][d.Id]=d,a[("/"+d.Target).replace("//","/")]=d,c}function hu(a,c,u){return[' `,' `,` `].join("")}function SA(){return'SheetJS '+ap.version+""}var Pu=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],R5=function(){for(var a=new Array(Pu.length),c=0;c]*>([\\s\\S]*?)")}return a}();function eE(a){var c={};a=vo(a);for(var u=0;u0&&(c[h[1]]=ji(d[1])),h[2]==="date"&&c[h[1]]&&(c[h[1]]=Po(c[h[1]]))}return c}function wp(a,c,u,h,d){d[a]==null&&c!=null&&c!==""&&(d[a]=c,c=Xa(c),h[h.length]=u?on(a,c,u):xs(a,c))}function EI(a,c){var u=c||{},h=[ts,on("cp:coreProperties",null,{"xmlns:cp":IA,"xmlns:dc":bA,"xmlns:dcterms":E5,"xmlns:dcmitype":Nw,"xmlns:xsi":gp})],d={};if(!a&&!u.Props)return h.join("");a&&(a.CreatedDate!=null&&wp("dcterms:created",typeof a.CreatedDate=="string"?a.CreatedDate:vf(a.CreatedDate,u.WTF),{"xsi:type":"dcterms:W3CDTF"},h,d),a.ModifiedDate!=null&&wp("dcterms:modified",typeof a.ModifiedDate=="string"?a.ModifiedDate:vf(a.ModifiedDate,u.WTF),{"xsi:type":"dcterms:W3CDTF"},h,d));for(var p=0;p!=Pu.length;++p){var g=Pu[p],A=u.Props&&u.Props[g[1]]!=null?u.Props[g[1]]:a?a[g[1]]:null;A===!0?A="1":A===!1?A="0":typeof A=="number"&&(A=String(A)),A!=null&&wp(g[0],A,null,h,d)}return h.length>2&&(h[h.length]="",h[1]=h[1].replace("/>",">")),h.join("")}var zd=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],_A=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function tE(a,c,u,h){var d=[];if(typeof a=="string")d=Xl(a,h);else for(var p=0;p0)for(var y=0;y!==d.length;y+=2){switch(m=+d[y+1].v,d[y].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":u.Worksheets=m,u.SheetNames=g.slice(A,A+m);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":u.NamedRanges=m,u.DefinedNames=g.slice(A,A+m);break;case"Charts":case"Diagramme":u.Chartsheets=m,u.ChartNames=g.slice(A,A+m)}A+=m}}function BI(a){var c=[],u=on;return a||(a={}),a.Application="SheetJS",c[c.length]=ts,c[c.length]=on("Properties",null,{xmlns:u1,"xmlns:vt":lc}),zd.forEach(function(h){if(a[h[1]]!==void 0){var d;switch(h[2]){case"string":d=Xa(String(a[h[1]]));break;case"bool":d=a[h[1]]?"true":"false"}d!==void 0&&(c[c.length]=u(h[0],d))}}),c[c.length]=u("HeadingPairs",u("vt:vector",u("vt:variant","Worksheets")+u("vt:variant",u("vt:i4",String(a.Worksheets))),{size:2,baseType:"variant"})),c[c.length]=u("TitlesOfParts",u("vt:vector",a.SheetNames.map(function(h){return""+Xa(h)+""}).join(""),{size:a.Worksheets,baseType:"lpstr"})),c.length>2&&(c[c.length]="",c[1]=c[1].replace("/>",">")),c.join("")}var M5=/<[^>]+>[^<]*/g;function kI(a){var c=[ts,on("Properties",null,{xmlns:hI,"xmlns:vt":lc})];if(!a)return c.join("");var u=1;return to(a).forEach(function(h){++u,c[c.length]=on("property",function(d,p){switch(typeof d){case"string":var g=on("vt:lpwstr",Xa(d));return g=g.replace(/"/g,"_x0022_"),g;case"number":return on((0|d)==d?"vt:i4":"vt:r8",Xa(String(d)));case"boolean":return on("vt:bool",d?"true":"false")}if(d instanceof Date)return on("vt:filetime",vf(d));throw new Error("Unable to serialize "+d)}(a[h]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:u,name:Xa(h)})}),c.length>2&&(c[c.length]="",c[1]=c[1].replace("/>",">")),c.join("")}var Ep,Kd={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Oy(a,c,u){Ep||(Ep=by(Kd)),a[c=Ep[c]||c]=u}function Vd(a){var c=a.read_shift(4),u=a.read_shift(4);return new Date(1e3*(u/1e7*Math.pow(2,32)+c/1e7-11644473600)).toISOString().replace(/\.000/,"")}function QI(a,c,u){var h=a.l,d=a.read_shift(0,"lpstr-cp");if(u)for(;a.l-h&3;)++a.l;return d}function Py(a,c,u){var h=a.read_shift(0,"lpwstr");return h}function Zd(a,c,u){return c===31?Py(a):QI(a,0,u)}function xI(a,c,u){return Zd(a,c,u===!1?0:4)}function rE(a){var c=a.l,u=g1(a,81);return a[a.l]==0&&a[a.l+1]==0&&a.l-c&2&&(a.l+=2),[u,g1(a,3)]}function nE(a,c){for(var u=a.read_shift(4),h={},d=0;d!=u;++d){var p=a.read_shift(4),g=a.read_shift(4);h[p]=a.read_shift(g,c===1200?"utf16le":"utf8").replace(sc,"").replace(Bc,"!"),c===1200&&g%2&&(a.l+=2)}return 3&a.l&&(a.l=a.l>>3<<2),h}function SI(a){var c=a.read_shift(4),u=a.slice(a.l,a.l+c);return a.l+=c,(3&c)>0&&(a.l+=4-(3&c)&3),u}function g1(a,c,u){var h,d=a.read_shift(2),p=u||{};if(a.l+=2,c!==12&&d!==c&&Xw.indexOf(c)===-1&&((65534&c)!=4126||(65534&d)!=4126))throw new Error("Expected type "+c+" saw "+d);switch(c===12?d:c){case 2:return h=a.read_shift(2,"i"),p.raw||(a.l+=2),h;case 3:return h=a.read_shift(4,"i");case 11:return a.read_shift(4)!==0;case 19:return h=a.read_shift(4);case 30:return QI(a,0,4).replace(sc,"");case 31:return Py(a);case 64:return Vd(a);case 65:return SI(a);case 71:return function(g){var A={};return A.Size=g.read_shift(4),g.l+=A.Size+3-(A.Size-1)%4,A}(a);case 80:return xI(a,d,!p.raw).replace(sc,"");case 81:return function(g,A){if(!A)throw new Error("VtUnalignedString must have positive length");return Zd(g,A,0)}(a,d).replace(sc,"");case 4108:return function(g){for(var A=g.read_shift(4),m=[],y=0;y0&&(g%=Math.pow(2,32),A+=m);var y=Ir(8);return y.write_shift(4,g),y.write_shift(4,A),y}(c);break;case 31:case 80:for((h=Ir(4+2*(c.length+1)+(c.length%2?0:2))).write_shift(4,c.length+1),h.write_shift(0,c,"dbcs");h.l!=h.length;)h.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+a+" "+c)}return Jo([u,h])}function DI(a,c){var u=a.l,h=a.read_shift(4),d=a.read_shift(4),p=[],g=0,A=0,m=-1,y={};for(g=0;g!=d;++g){var b=a.read_shift(4),I=a.read_shift(4);p[g]=[b,I+u]}p.sort(function(F,N){return F[1]-N[1]});var E={};for(g=0;g!=d;++g){if(a.l!==p[g][1]){var B=!0;if(g>0&&c)switch(c[p[g-1][0]].t){case 2:a.l+2===p[g][1]&&(a.l+=2,B=!1);break;case 80:case 4108:a.l<=p[g][1]&&(a.l=p[g][1],B=!1)}if((!c||g==0)&&a.l<=p[g][1]&&(B=!1,a.l=p[g][1]),B)throw new Error("Read Error: Expected address "+p[g][1]+" at "+a.l+" :"+g)}if(c){var S=c[p[g][0]];if(E[S.n]=g1(a,S.t,{raw:!0}),S.p==="version"&&(E[S.n]=String(E[S.n]>>16)+"."+("0000"+String(65535&E[S.n])).slice(-4)),S.n=="CodePage")switch(E[S.n]){case 0:E[S.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:bl(A=E[S.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+E[S.n])}}else if(p[g][0]===1){if(A=E.CodePage=g1(a,2),bl(A),m!==-1){var _=a.l;a.l=p[m][1],y=nE(a,A),a.l=_}}else if(p[g][0]===0){if(A===0){m=g,a.l=p[g+1][1];continue}y=nE(a,A)}else{var D,T=y[p[g][0]];switch(a[a.l]){case 65:a.l+=4,D=SI(a);break;case 30:case 31:a.l+=4,D=xI(a,a[a.l-4]).replace(/\u0000+$/,"");break;case 3:a.l+=4,D=a.read_shift(4,"i");break;case 19:a.l+=4,D=a.read_shift(4);break;case 5:a.l+=4,D=a.read_shift(8,"f");break;case 11:a.l+=4,D=ds(a,4);break;case 64:a.l+=4,D=Po(Vd(a));break;default:throw new Error("unparsed value: "+a[a.l])}E[T]=D}}return a.l=u+h,E}var Xd=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function F5(a){switch(typeof a){case"boolean":return 11;case"number":return(0|a)==a?3:5;case"string":return 31;case"object":if(a instanceof Date)return 64}return-1}function RI(a,c,u){var h=Ir(8),d=[],p=[],g=8,A=0,m=Ir(8),y=Ir(8);if(m.write_shift(4,2),m.write_shift(4,1200),y.write_shift(4,1),p.push(m),d.push(y),g+=8+m.length,!c){(y=Ir(8)).write_shift(4,0),d.unshift(y);var b=[Ir(4)];for(b[0].write_shift(4,a.length),A=0;A-1||_A.indexOf(a[A][0])>-1)&&a[A][1]!=null){var E=a[A][1],B=0;if(c){var S=u[B=+c[a[A][0]]];if(S.p=="version"&&typeof E=="string"){var _=E.split(".");E=(+_[0]<<16)+(+_[1]||0)}m=_I(S.t,E)}else{var D=F5(E);D==-1&&(D=31,E=String(E)),m=_I(D,E)}p.push(m),(y=Ir(8)).write_shift(4,c?B:2+A),d.push(y),g+=8+m.length}var T=8*(p.length+1);for(A=0;A=12?2:1),d="sbcs-cont";return u&&u.biff,u&&u.biff!=8?u.biff==12&&(d="wstr"):a.read_shift(1)&&(d="dbcs-cont"),u.biff>=2&&u.biff<=5&&(d="cpstr"),h?a.read_shift(h,d):""}function Uu(a){var c,u=a.read_shift(2),h=a.read_shift(1),d=4&h,p=8&h,g=1+(1&h),A=0,m={};p&&(A=a.read_shift(2)),d&&(c=a.read_shift(4));var y=g==2?"dbcs-cont":"sbcs-cont",b=u===0?"":a.read_shift(u,y);return p&&(a.l+=4*A),d&&(a.l+=c),m.t=b,p||(m.raw=""+m.t+"",m.r=m.t),m}function Uy(a){var c=a.t||"",u=Ir(3);u.write_shift(2,c.length),u.write_shift(1,1);var h=Ir(2*c.length);return h.write_shift(2*c.length,c,"utf16le"),Jo([u,h])}function rh(a,c,u){if(u){if(u.biff>=2&&u.biff<=5)return a.read_shift(c,"cpstr");if(u.biff>=12)return a.read_shift(c,"dbcs-cont")}return a.read_shift(1)===0?a.read_shift(c,"sbcs-cont"):a.read_shift(c,"dbcs-cont")}function wf(a,c,u){var h=a.read_shift(u&&u.biff==2?1:2);return h===0?(a.l++,""):rh(a,h,u)}function ju(a,c,u){if(u.biff>5)return wf(a,0,u);var h=a.read_shift(1);return h===0?(a.l++,""):a.read_shift(h,u.biff<=4||!a.lens?"cpstr":"sbcs-cont")}function Sl(a,c,u){return u||(u=Ir(3+2*a.length)),u.write_shift(2,a.length),u.write_shift(1,1),u.write_shift(31,a,"utf16le"),u}function aE(a,c){var u=a.read_shift(16);switch(u){case"e0c9ea79f9bace118c8200aa004ba90b":return function(h){var d=h.read_shift(4),p=h.l,g=!1;d>24&&(h.l+=d-24,h.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(g=!0),h.l=p);var A=h.read_shift((g?d-24:d)>>1,"utf16le").replace(sc,"");return g&&(h.l+=24),A}(a);case"0303000000000000c000000000000046":return function(h){for(var d=h.read_shift(2),p="";d-- >0;)p+="../";var g=h.read_shift(0,"lpstr-ansi");if(h.l+=2,h.read_shift(2)!=57005)throw new Error("Bad FileMoniker");if(h.read_shift(4)===0)return p+g.replace(/\\/g,"/");var A=h.read_shift(4);if(h.read_shift(2)!=3)throw new Error("Bad FileMoniker");return p+h.read_shift(A>>1,"utf16le").replace(sc,"")}(a);default:throw new Error("Unsupported Moniker "+u)}}function eg(a){var c=a.read_shift(4);return c>0?a.read_shift(c,"utf16le").replace(sc,""):""}function oE(a,c){c||(c=Ir(6+2*a.length)),c.write_shift(4,1+a.length);for(var u=0;u-1?31:23;switch(h.charAt(0)){case"#":p=28;break;case".":p&=-3}c.write_shift(4,2),c.write_shift(4,p);var g=[8,6815827,6619237,4849780,83];for(u=0;u-1?h.slice(0,d):h;for(c.write_shift(4,2*(A.length+1)),u=0;u-1?h.slice(d+1):"",c)}else{for(g="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),u=0;u8?4:2;return[a.read_shift(h),a.read_shift(h,"i"),a.read_shift(h,"i")]}function MI(a){return[a.read_shift(2),A1(a)]}function jy(a){var c=a.read_shift(2),u=a.read_shift(2);return{s:{c:a.read_shift(2),r:c},e:{c:a.read_shift(2),r:u}}}function Yu(a,c){return c||(c=Ir(8)),c.write_shift(2,a.s.r),c.write_shift(2,a.e.r),c.write_shift(2,a.s.c),c.write_shift(2,a.e.c),c}function uE(a){var c=a.read_shift(2),u=a.read_shift(2);return{s:{c:a.read_shift(1),r:c},e:{c:a.read_shift(1),r:u}}}var pc=uE;function cE(a){a.l+=4;var c=a.read_shift(2),u=a.read_shift(2),h=a.read_shift(2);return a.l+=12,[u,c,h]}function Ju(a){a.l+=2,a.l+=a.read_shift(2)}var Vs={0:Ju,4:Ju,5:Ju,6:Ju,7:function(a){return a.l+=4,a.cf=a.read_shift(2),{}},8:Ju,9:Ju,10:Ju,11:Ju,12:Ju,13:function(a){var c={};return a.l+=4,a.l+=16,c.fSharedNote=a.read_shift(2),a.l+=4,c},14:Ju,15:Ju,16:Ju,17:Ju,18:Ju,19:Ju,20:Ju,21:cE};function Eu(a,c){var u={BIFFVer:0,dt:0};switch(u.BIFFVer=a.read_shift(2),(c-=2)>=2&&(u.dt=a.read_shift(2),a.l-=2),u.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(c>6)throw new Error("Unexpected BIFF Ver "+u.BIFFVer)}return a.read_shift(c),u}function FI(a,c,u){var h=1536,d=16;switch(u.bookType){case"biff8":case"xla":break;case"biff5":h=1280,d=8;break;case"biff4":h=4,d=6;break;case"biff3":h=3,d=6;break;case"biff2":h=2,d=4;break;default:throw new Error("unsupported BIFF version")}var p=Ir(d);return p.write_shift(2,h),p.write_shift(2,c),d>4&&p.write_shift(2,29282),d>6&&p.write_shift(2,1997),d>8&&(p.write_shift(2,49161),p.write_shift(2,1),p.write_shift(2,1798),p.write_shift(2,0)),p}function lE(a,c){var u=!c||c.biff>=8?2:1,h=Ir(8+u*a.name.length);h.write_shift(4,a.pos),h.write_shift(1,a.hs||0),h.write_shift(1,a.dt),h.write_shift(1,a.name.length),c.biff>=8&&h.write_shift(1,1),h.write_shift(u*a.name.length,a.name,c.biff<8?"sbcs":"utf16le");var d=h.slice(0,h.l);return d.l=h.l,d}function Bp(a,c,u){var h=0;u&&u.biff==2||(h=a.read_shift(2));var d=a.read_shift(2);return u&&u.biff==2&&(h=1-(d>>15),d&=32767),[{Unsynced:1&h,DyZero:(2&h)>>1,ExAsc:(4&h)>>2,ExDsc:(8&h)>>3},d]}function N5(a,c,u,h){var d=u&&u.biff==5;h||(h=Ir(d?3+c.length:5+2*c.length)),h.write_shift(2,a),h.write_shift(d?1:2,c.length),d||h.write_shift(1,1),h.write_shift((d?1:2)*c.length,c,d?"sbcs":"utf16le");var p=h.length>h.l?h.slice(0,h.l):h;return p.l==null&&(p.l=p.length),p}var Hy=ju;function v1(a,c,u){var h=a.l+c,d=u.biff!=8&&u.biff?2:4,p=a.read_shift(d),g=a.read_shift(d),A=a.read_shift(2),m=a.read_shift(2);return a.l=h,{s:{r:p,c:A},e:{r:g,c:m}}}function TI(a,c,u,h){var d=u&&u.biff==5;h||(h=Ir(d?16:20)),h.write_shift(2,0),a.style?(h.write_shift(2,a.numFmtId||0),h.write_shift(2,65524)):(h.write_shift(2,a.numFmtId||0),h.write_shift(2,c<<4));var p=0;return a.numFmtId>0&&d&&(p|=1024),h.write_shift(4,p),h.write_shift(4,0),d||h.write_shift(4,0),h.write_shift(2,0),h}function tg(a,c,u){var h=Th(a);u.biff!=2&&c!=9||++a.l;var d=function(p){var g=p.read_shift(1);return p.read_shift(1)===1?g:g===1}(a);return h.val=d,h.t=d===!0||d===!1?"b":"e",h}var LI=function(a,c,u){return c===0?"":ju(a,0,u)};function DA(a,c,u){var h,d=a.read_shift(2),p={fBuiltIn:1&d,fWantAdvise:d>>>1&1,fWantPict:d>>>2&1,fOle:d>>>3&1,fOleLink:d>>>4&1,cf:d>>>5&1023,fIcon:d>>>15&1};return u.sbcch===14849&&(h=function(g,A,m){g.l+=4,A-=4;var y=g.l+A,b=p1(g,0,m),I=g.read_shift(2);if(I!==(y-=g.l))throw new Error("Malformed AddinUdf: padding = "+y+" != "+I);return g.l+=I,b}(a,c-2,u)),p.body=h||a.read_shift(c-2),typeof h=="string"&&(p.Name=h),p}var rg=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function y1(a,c,u){var h=a.l+c,d=a.read_shift(2),p=a.read_shift(1),g=a.read_shift(1),A=a.read_shift(u&&u.biff==2?1:2),m=0;(!u||u.biff>=5)&&(u.biff!=5&&(a.l+=2),m=a.read_shift(2),u.biff==5&&(a.l+=2),a.l+=4);var y=rh(a,g,u);32&d&&(y=rg[y.charCodeAt(0)]);var b=h-a.l;u&&u.biff==2&&--b;var I=h!=a.l&&A!==0&&b>0?function(E,B,S,_){var D,T=E.l+B,F=Lp(E,_,S);return T!==E.l&&(D=Tp(E,T-E.l,F,S)),[F,D]}(a,b,u,A):[];return{chKey:p,Name:y,itab:m,rgce:I}}function m1(a,c,u){if(u.biff<8)return function(g,A,m){g[g.l+1]==3&&g[g.l]++;var y=p1(g,0,m);return y.charCodeAt(0)==3?y.slice(1):y}(a,0,u);for(var h=[],d=a.l+c,p=a.read_shift(u.biff>8?4:2);p--!=0;)h.push(L5(a,u.biff,u));if(a.l!=d)throw new Error("Bad ExternSheet: "+a.l+" != "+d);return h}function ng(a,c,u){var h=pc(a);switch(u.biff){case 2:a.l++,c-=7;break;case 3:case 4:a.l+=2,c-=8;break;default:a.l+=6,c-=12}return[h,lg(a,c,u)]}var O5={8:function(a,c){var u=a.l+c;a.l+=10;var h=a.read_shift(2);a.l+=4,a.l+=2,a.l+=2,a.l+=2,a.l+=4;var d=a.read_shift(1);return a.l+=d,a.l=u,{fmt:h}}};function hE(a){var c=Ir(24),u=As(a[0]);c.write_shift(2,u.r),c.write_shift(2,u.r),c.write_shift(2,u.c),c.write_shift(2,u.c);for(var h="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),d=0;d<16;++d)c.write_shift(1,parseInt(h[d],16));return Jo([c,T5(a[1])])}function fE(a){var c=a[1].Tooltip,u=Ir(10+2*(c.length+1));u.write_shift(2,2048);var h=As(a[0]);u.write_shift(2,h.r),u.write_shift(2,h.r),u.write_shift(2,h.c),u.write_shift(2,h.c);for(var d=0;d=12?4:2,d=a.read_shift(h),p=a.read_shift(h),g=a.read_shift(h),A=a.read_shift(h),m=a.read_shift(2);h==2&&(a.l+=2);var y={s:d,e:p,w:g,ixfe:A,flags:m};return(u.biff>=5||!u.biff)&&(y.level=m>>8&7),y}var NI=Th,ga=Cf,Co=wf,Lh=[2,3,48,49,131,139,140,245],Nh=function(){var a={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},c=by({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function u(d,p){var g=p||{};g.dateNF||(g.dateNF="yyyymmdd");var A=EA(function(m,y){var b=[],I=AA(1);switch(y.type){case"base64":I=Zc(Ra(m));break;case"binary":I=Zc(m);break;case"buffer":case"array":I=m}lu(I,0);var E=I.read_shift(1),B=!!(136&E),S=!1,_=!1;switch(E){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:S=!0,B=!0;break;case 140:_=!0;break;default:throw new Error("DBF Unsupported Version: "+E.toString(16))}var D=0,T=521;E==2&&(D=I.read_shift(2)),I.l+=3,E!=2&&(D=I.read_shift(4)),D>1048576&&(D=1e6),E!=2&&(T=I.read_shift(2));var F=I.read_shift(2),N=y.codepage||1252;E!=2&&(I.l+=16,I.read_shift(1),I[I.l]!==0&&(N=a[I[I.l]]),I.l+=1,I.l+=2),_&&(I.l+=36);for(var H=[],W={},V=Math.min(I.length,E==2?521:T-10-(S?264:0)),te=_?32:11;I.l0;)if(I[I.l]!==42)for(++I.l,b[++ue]=[],fe=0,fe=0;fe!=H.length;++fe){var de=I.slice(I.l,I.l+H[fe].len);I.l+=H[fe].len,lu(de,0);var Ae=Z2.utils.decode(N,de);switch(H[fe].type){case"C":Ae.trim().length&&(b[ue][fe]=Ae.replace(/\s+$/,""));break;case"D":Ae.length===8?b[ue][fe]=new Date(+Ae.slice(0,4),+Ae.slice(4,6)-1,+Ae.slice(6,8)):b[ue][fe]=Ae;break;case"F":b[ue][fe]=parseFloat(Ae.trim());break;case"+":case"I":b[ue][fe]=_?2147483648^de.read_shift(-4,"i"):de.read_shift(4,"i");break;case"L":switch(Ae.trim().toUpperCase()){case"Y":case"T":b[ue][fe]=!0;break;case"N":case"F":b[ue][fe]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+Ae+"|")}break;case"M":if(!B)throw new Error("DBF Unexpected MEMO for type "+E.toString(16));b[ue][fe]="##MEMO##"+(_?parseInt(Ae.trim(),10):de.read_shift(4));break;case"N":(Ae=Ae.replace(/\u0000/g,"").trim())&&Ae!="."&&(b[ue][fe]=+Ae||0);break;case"@":b[ue][fe]=new Date(de.read_shift(-8,"f")-621356832e5);break;case"T":b[ue][fe]=new Date(864e5*(de.read_shift(4)-2440588)+de.read_shift(4));break;case"Y":b[ue][fe]=de.read_shift(4,"i")/1e4+de.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":b[ue][fe]=-de.read_shift(-8,"f");break;case"B":if(S&&H[fe].len==8){b[ue][fe]=de.read_shift(8,"f");break}case"G":case"P":de.l+=H[fe].len;break;case"0":if(H[fe].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+H[fe].type)}}else I.l+=F;if(E!=2&&I.l=0&&bl(+g.codepage),g.type=="string")throw new Error("Cannot write DBF to JS string");var A=Ac(),m=mm(d,{header:1,raw:!0,cellDates:!0}),y=m[0],b=m.slice(1),I=d["!cols"]||[],E=0,B=0,S=0,_=1;for(E=0;E250&&(V=250),(W=((I[E]||{}).DBF||{}).type)=="C"&&I[E].DBF.len>V&&(V=I[E].DBF.len),H=="B"&&W=="N"&&(H="N",N[E]=I[E].DBF.dec,V=I[E].DBF.len),F[E]=H=="C"||W=="N"?V:h[H]||0,_+=F[E],T[E]=H}else T[E]="?"}var ue=A.next(32);for(ue.write_shift(4,318902576),ue.write_shift(4,b.length),ue.write_shift(2,296+32*S),ue.write_shift(2,_),E=0;E<4;++E)ue.write_shift(4,0);for(ue.write_shift(4,(+c[op]||3)<<8),E=0,B=0;E":190,"?":191,"{":223},c=new RegExp("\x1BN("+to(a).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),u=function(A,m){var y=a[m];return typeof y=="number"?Ew(y):y},h=function(A,m,y){var b=m.charCodeAt(0)-32<<4|y.charCodeAt(0)-48;return b==59?A:Ew(b)};function d(A,m){var y,b=A.split(/[\n\r]+/),I=-1,E=-1,B=0,S=0,_=[],D=[],T=null,F={},N=[],H=[],W=[],V=0;for(+m.codepage>=0&&bl(+m.codepage);B!==b.length;++B){V=0;var te,ue=b[B].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,h).replace(c,u),fe=ue.replace(/;;/g,"\0").split(";").map(function(se){return se.replace(/\u0000/g,";")}),de=fe[0];if(ue.length>0)switch(de){case"ID":case"E":case"B":case"O":case"W":break;case"P":fe[1].charAt(0)=="P"&&D.push(ue.slice(3).replace(/;;/g,";"));break;case"C":var Ae=!1,we=!1,Z=!1,ne=!1,j=-1,J=-1;for(S=1;S-1&&_[j][J];if(!z||!z[1])throw new Error("SYLK shared formula cannot find base");_[I][E][1]=Rp(z[1],{r:I-j,c:E-J})}break;case"F":var X=0;for(S=1;S0?(N[I].hpt=V,N[I].hpx=Ef(V)):V===0&&(N[I].hidden=!0);break;default:if(m&&m.WTF)throw new Error("SYLK bad record "+ue)}X<1&&(T=null);break;default:if(m&&m.WTF)throw new Error("SYLK bad record "+ue)}}return N.length>0&&(F["!rows"]=N),H.length>0&&(F["!cols"]=H),m&&m.sheetRows&&(_=_.slice(0,m.sheetRows)),[_,F]}function p(A,m){var y=function(B,S){switch(S.type){case"base64":return d(Ra(B),S);case"binary":return d(B,S);case"buffer":return d(ki&&Buffer.isBuffer(B)?B.toString("binary"):Af(B),S);case"array":return d(pf(B),S)}throw new Error("Unrecognized type "+S.type)}(A,m),b=y[0],I=y[1],E=EA(b,m);return to(I).forEach(function(B){E[B]=I[B]}),E}function g(A,m,y,b){var I="C;Y"+(y+1)+";X"+(b+1)+";K";switch(A.t){case"n":I+=A.v||0,A.f&&!A.F&&(I+=";E"+Xy(A.f,{r:y,c:b}));break;case"b":I+=A.v?"TRUE":"FALSE";break;case"e":I+=A.w||A.v;break;case"d":I+='"'+(A.w||A.v)+'"';break;case"s":I+='"'+A.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return I}return a["|"]=254,{to_workbook:function(A,m){return Sc(p(A,m),m)},to_sheet:p,from_sheet:function(A,m){var y,b,I=["ID;PWXL;N;E"],E=[],B=Ta(A["!ref"]),S=Array.isArray(A),_=`\r `;I.push("P;PGeneral"),I.push("F;P0;DG0G8;M255"),A["!cols"]&&(b=I,A["!cols"].forEach(function(N,H){var W="F;W"+(H+1)+" "+(H+1)+" ";N.hidden?W+="0":(typeof N.width!="number"||N.wpx||(N.wpx=Fl(N.width)),typeof N.wpx!="number"||N.wch||(N.wch=Tl(N.wpx)),typeof N.wch=="number"&&(W+=Math.round(N.wch))),W.charAt(W.length-1)!=" "&&b.push(W)})),A["!rows"]&&function(N,H){H.forEach(function(W,V){var te="F;";W.hidden?te+="M0;":W.hpt?te+="M"+20*W.hpt+";":W.hpx&&(te+="M"+20*La(W.hpx)+";"),te.length>2&&N.push(te+"R"+(V+1))})}(I,A["!rows"]),I.push("B;Y"+(B.e.r-B.s.r+1)+";X"+(B.e.c-B.s.c+1)+";D"+[B.s.c,B.s.r,B.e.c,B.e.r].join(" "));for(var D=B.s.r;D<=B.e.r;++D)for(var T=B.s.c;T<=B.e.c;++T){var F=Mi({r:D,c:T});(y=S?(A[D]||[])[T]:A[F])&&(y.v!=null||y.f&&!y.F)&&E.push(g(y,0,D,T))}return I.join(_)+_+E.join(_)+_+"E"+_}}}(),kp=function(){function a(u,h){for(var d=u.split(` `),p=-1,g=-1,A=0,m=[];A!==d.length;++A)if(d[A].trim()!=="BOT"){if(!(p<0)){for(var y=d[A].trim().split(","),b=y[0],I=y[1],E=d[++A]||"";1&(E.match(/["]/g)||[]).length&&A=0?se=_e:q=_e}}),oe>=0&&se==-1&&q>=0&&(se=q,q=-1);var ye=(""+(J>=0?J:new Date().getFullYear())).slice(-4)+"-"+("00"+(q>=1?q:1)).slice(-2)+"-"+("00"+(z>=1?z:1)).slice(-2);ye.length==7&&(ye="0"+ye),ye.length==8&&(ye="20"+ye);var ae=("00"+(X>=0?X:0)).slice(-2)+":"+("00"+(se>=0?se:0)).slice(-2)+":"+("00"+(oe>=0?oe:0)).slice(-2);return X==-1&&se==-1&&oe==-1?ye:J==-1&&q==-1&&z==-1?ae:ye+"T"+ae}(0,y.dateNF,de.match(ue)||[]),we=1),y.cellDates?(Ae.t="d",Ae.v=Po(de,we)):(Ae.t="n",Ae.v=Ys(Po(de,we))),y.cellText!==!1&&(Ae.w=El(Ae.z,Ae.v instanceof Date?Ys(Ae.v):Ae.v)),y.cellNF||delete Ae.z}else Ae.t="s",Ae.v=de;else Ae.t="n",y.cellText!==!1&&(Ae.w=de),Ae.v=_;if(Ae.t=="z"||(y.dense?(I[B]||(I[B]=[]),I[B][S]=Ae):I[Mi({c:S,r:B})]=Ae),D=T+1,W=A.charCodeAt(D),E.e.c0&&fe(),I["!ref"]=bi(E),I}function p(A,m){return m&&m.PRN?m.FS||A.slice(0,4)=="sep="||A.indexOf(" ")>=0||A.indexOf(",")>=0||A.indexOf(";")>=0?d(A,m):EA(function(y,b){var I=b||{},E=[];if(!y||y.length===0)return E;for(var B=y.split(/[\r\n]/),S=B.length-1;S>=0&&B[S].length===0;)--S;for(var _=10,D=0,T=0;T<=S;++T)(D=B[T].indexOf(" "))==-1?D=B[T].length:D++,_=Math.max(_,D);for(T=0;T<=S;++T){E[T]=[];var F=0;for(a(B[T].slice(0,_).trim(),E,T,F,I),F=1;F<=(B[T].length-_)/10+1;++F)a(B[T].slice(_+10*(F-1),_+10*F).trim(),E,T,F,I)}return I.sheetRows&&(E=E.slice(0,I.sheetRows)),E}(A,m),m):d(A,m)}function g(A,m){var y="",b=m.type=="string"?[0,0,0,0]:pm(A,m);switch(m.type){case"base64":y=Ra(A);break;case"binary":case"string":y=A;break;case"buffer":m.codepage==65001?y=A.toString("utf8"):(m.codepage,y=ki&&Buffer.isBuffer(A)?A.toString("binary"):Af(A));break;case"array":y=pf(A);break;default:throw new Error("Unrecognized type "+m.type)}return b[0]==239&&b[1]==187&&b[2]==191?y=vo(y.slice(3)):m.type!="string"&&m.type!="buffer"&&m.codepage==65001?y=vo(y):m.type,y.slice(0,19)=="socialcalc:version:"?_l.to_sheet(m.type=="string"?y:vo(y),m):p(y,m)}return{to_workbook:function(A,m){return Sc(g(A,m),m)},to_sheet:g,from_sheet:function(A){for(var m,y=[],b=Ta(A["!ref"]),I=Array.isArray(A),E=b.s.r;E<=b.e.r;++E){for(var B=[],S=b.s.c;S<=b.e.c;++S){var _=Mi({r:E,c:S});if((m=I?(A[E]||[])[S]:A[_])&&m.v!=null){for(var D=(m.w||(wA(m),m.w)||"").slice(0,10);D.length<10;)D+=" ";B.push(D+(S===0?" ":""))}else B.push(" ")}y.push(B.join(""))}return y.join(` `)}}}(),Oh=function(){function a(N,H,W){if(N){lu(N,N.l||0);for(var V=W.Enum||T;N.l=16&&N[14]==5&&N[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(N[2]==2)W.Enum=T,a(N,function(z,X,se){switch(se){case 0:W.vers=z,z>=4096&&(W.qpro=!0);break;case 6:Z=z;break;case 204:z&&(ue=z);break;case 222:ue=z;break;case 15:case 51:W.qpro||(z[1].v=z[1].v.slice(1));case 13:case 14:case 16:se==14&&!(112&~z[2])&&(15&z[2])>1&&(15&z[2])<15&&(z[1].z=W.dateNF||xi[14],W.cellDates&&(z[1].t="d",z[1].v=Cy(z[1].v))),W.qpro&&z[3]>fe&&(V["!ref"]=bi(Z),de[te]=V,Ae.push(te),V=W.dense?[]:{},Z={s:{r:0,c:0},e:{r:0,c:0}},fe=z[3],te=ue||"Sheet"+(fe+1),ue="");var oe=W.dense?(V[z[0].r]||[])[z[0].c]:V[Mi(z[0])];if(oe){oe.t=z[1].t,oe.v=z[1].v,z[1].z!=null&&(oe.z=z[1].z),z[1].f!=null&&(oe.f=z[1].f);break}W.dense?(V[z[0].r]||(V[z[0].r]=[]),V[z[0].r][z[0].c]=z[1]):V[Mi(z[0])]=z[1]}},W);else{if(N[2]!=26&&N[2]!=14)throw new Error("Unrecognized LOTUS BOF "+N[2]);W.Enum=F,N[2]==14&&(W.qpro=!0,N.l=0),a(N,function(z,X,se){switch(se){case 204:te=z;break;case 22:z[1].v=z[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(z[3]>fe&&(V["!ref"]=bi(Z),de[te]=V,Ae.push(te),V=W.dense?[]:{},Z={s:{r:0,c:0},e:{r:0,c:0}},fe=z[3],te="Sheet"+(fe+1)),ne>0&&z[0].r>=ne)break;W.dense?(V[z[0].r]||(V[z[0].r]=[]),V[z[0].r][z[0].c]=z[1]):V[Mi(z[0])]=z[1],Z.e.c=128?95:ue)}return V.write_shift(1,0),V}function p(N,H,W){var V=Ir(7);return V.write_shift(1,255),V.write_shift(2,H),V.write_shift(2,N),V.write_shift(2,W,"i"),V}function g(N,H,W){var V=Ir(13);return V.write_shift(1,255),V.write_shift(2,H),V.write_shift(2,N),V.write_shift(8,W,"f"),V}function A(N,H,W){var V=32768&H;return H=(V?N:0)+((H&=-32769)>=8192?H-16384:H),(V?"":"$")+(W?rs(H):Ss(H))}var m={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},y=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function b(N){var H=[{c:0,r:0},{t:"n",v:0},0];return H[0].r=N.read_shift(2),H[3]=N[N.l++],H[0].c=N[N.l++],H}function I(N,H,W,V){var te=Ir(6+V.length);te.write_shift(2,N),te.write_shift(1,W),te.write_shift(1,H),te.write_shift(1,39);for(var ue=0;ue=128?95:fe)}return te.write_shift(1,0),te}function E(N,H){var W=b(N),V=N.read_shift(4),te=N.read_shift(4),ue=N.read_shift(2);if(ue==65535)return V===0&&te===3221225472?(W[1].t="e",W[1].v=15):V===0&&te===3489660928?(W[1].t="e",W[1].v=42):W[1].v=0,W;var fe=32768&ue;return ue=(32767&ue)-16446,W[1].v=(1-2*fe)*(te*Math.pow(2,ue+32)+V*Math.pow(2,ue)),W}function B(N,H,W,V){var te=Ir(14);if(te.write_shift(2,N),te.write_shift(1,W),te.write_shift(1,H),V==0)return te.write_shift(4,0),te.write_shift(4,0),te.write_shift(2,65535),te;var ue,fe=0,de=0,Ae=0;return V<0&&(fe=1,V=-V),de=0|Math.log2(V),2147483648&(Ae=(V/=Math.pow(2,de-31))>>>0)||(++de,Ae=(V/=2)>>>0),V-=Ae,Ae|=2147483648,Ae>>>=0,ue=(V*=Math.pow(2,32))>>>0,te.write_shift(4,ue),te.write_shift(4,Ae),de+=16383+(fe?32768:0),te.write_shift(2,de),te}function S(N,H){var W=b(N),V=N.read_shift(8,"f");return W[1].v=V,W}function _(N,H){return N[N.l+H-1]==0?N.read_shift(H,"cstr"):""}function D(N,H){var W=Ir(5+N.length);W.write_shift(2,14e3),W.write_shift(2,H);for(var V=0;V127?95:te}return W[W.l++]=0,W}var T={0:{n:"BOF",f:gs},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(N,H,W){var V={s:{c:0,r:0},e:{c:0,r:0}};return H==8&&W.qpro?(V.s.c=N.read_shift(1),N.l++,V.s.r=N.read_shift(2),V.e.c=N.read_shift(1),N.l++,V.e.r=N.read_shift(2),V):(V.s.c=N.read_shift(2),V.s.r=N.read_shift(2),H==12&&W.qpro&&(N.l+=2),V.e.c=N.read_shift(2),V.e.r=N.read_shift(2),H==12&&W.qpro&&(N.l+=2),V.s.c==65535&&(V.s.c=V.e.c=V.s.r=V.e.r=0),V)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(N,H,W){var V=u(N,0,W);return V[1].v=N.read_shift(2,"i"),V}},14:{n:"NUMBER",f:function(N,H,W){var V=u(N,0,W);return V[1].v=N.read_shift(8,"f"),V}},15:{n:"LABEL",f:h},16:{n:"FORMULA",f:function(N,H,W){var V=N.l+H,te=u(N,0,W);if(te[1].v=N.read_shift(8,"f"),W.qpro)N.l=V;else{var ue=N.read_shift(2);(function(fe,de){lu(fe,0);for(var Ae=[],we=0,Z="",ne="",j="",J="";fe.lAe.length)return void console.error("WK1 bad formula parse 0x"+q.toString(16)+":|"+Ae.join("|")+"|");var oe=Ae.slice(-we);Ae.length-=we,Ae.push(m[q][0]+"("+oe.join(",")+")")}}}Ae.length==1?de[1].f=""+Ae[0]:console.error("WK1 bad formula parse |"+Ae.join("|")+"|")})(N.slice(N.l,N.l+ue),te),N.l+=ue}return te}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:h},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:_},222:{n:"SHEETNAMELP",f:function(N,H){var W=N[N.l++];W>H-1&&(W=H-1);for(var V="";V.length>1;if(1&W[1].v)switch(7&V){case 0:V=5e3*(V>>3);break;case 1:V=500*(V>>3);break;case 2:V=(V>>3)/20;break;case 3:V=(V>>3)/200;break;case 4:V=(V>>3)/2e3;break;case 5:V=(V>>3)/2e4;break;case 6:V=(V>>3)/16;break;case 7:V=(V>>3)/64}return W[1].v=V,W}},25:{n:"FORMULA19",f:function(N,H){var W=E(N);return N.l+=H-14,W}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(N,H){for(var W={},V=N.l+H;N.l>6,W}},38:{n:"??"},39:{n:"NUMBER27",f:S},40:{n:"FORMULA28",f:function(N,H){var W=S(N);return N.l+=H-10,W}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:_},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(N,H,W){if(W.qpro&&!(H<21)){var V=N.read_shift(1);return N.l+=17,N.l+=1,N.l+=2,[V,N.read_shift(H-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(N,H){var W=H||{};if(+W.codepage>=0&&bl(+W.codepage),W.type=="string")throw new Error("Cannot write WK1 to JS string");var V,te,ue=Ac(),fe=Ta(N["!ref"]),de=Array.isArray(N),Ae=[];un(ue,0,(V=1030,(te=Ir(2)).write_shift(2,V),te)),un(ue,6,function(z){var X=Ir(8);return X.write_shift(2,z.s.c),X.write_shift(2,z.s.r),X.write_shift(2,z.e.c),X.write_shift(2,z.e.r),X}(fe));for(var we=Math.min(fe.e.r,8191),Z=fe.s.r;Z<=we;++Z)for(var ne=Ss(Z),j=fe.s.c;j<=fe.e.c;++j){Z===fe.s.r&&(Ae[j]=rs(j));var J=Ae[j]+ne,q=de?(N[Z]||[])[j]:N[J];q&&q.t!="z"&&(q.t=="n"?(0|q.v)==q.v&&q.v>=-32768&&q.v<=32767?un(ue,13,p(Z,j,q.v)):un(ue,14,g(Z,j,q.v)):un(ue,15,d(Z,j,wA(q).slice(0,239))))}return un(ue,1),ue.end()},book_to_wk3:function(N,H){var W=H||{};if(+W.codepage>=0&&bl(+W.codepage),W.type=="string")throw new Error("Cannot write WK3 to JS string");var V=Ac();un(V,0,function(se){var oe=Ir(26);oe.write_shift(2,4096),oe.write_shift(2,4),oe.write_shift(4,0);for(var ye=0,ae=0,me=0,Fe=0;Fe8191&&(ye=8191),oe.write_shift(2,ye),oe.write_shift(1,me),oe.write_shift(1,ae),oe.write_shift(2,0),oe.write_shift(2,0),oe.write_shift(1,1),oe.write_shift(1,2),oe.write_shift(4,0),oe.write_shift(4,0),oe}(N));for(var te=0,ue=0;te":case"":b.shadow=1;break;case"":break;case"":case"":b.outline=1;break;case"":break;case"":case"":b.strike=1;break;case"":break;case"":case"":b.u=1;break;case"":break;case"":case"":b.b=1;break;case"":break;case"":case"":b.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":case"":case"":case"":case"":case"":break;case"":B=!1;break;default:if(S[0].charCodeAt(1)!==47&&!B)throw new Error("Unrecognized rich format "+S[0])}}return b}(m[1])),A}var h=/<(?:\w+:)?r>/g,d=/<\/(?:\w+:)?r>/;return function(p){return p.replace(h,"").split(d).map(u).filter(function(g){return g.v})}}(),PI=function(){var a=/(\r\n|\n)/g;function c(u){var h=[[],u.v,[]];return u.v?(u.s&&function(d,p,g){var A=[];d.u&&A.push("text-decoration: underline;"),d.uval&&A.push("text-underline-style:"+d.uval+";"),d.sz&&A.push("font-size:"+d.sz+"pt;"),d.outline&&A.push("text-effect: outline;"),d.shadow&&A.push("text-shadow: auto;"),p.push(''),d.b&&(p.push(""),g.push("")),d.i&&(p.push(""),g.push("")),d.strike&&(p.push(""),g.push(""));var m=d.valign||"";m=="superscript"||m=="super"?m="sup":m=="subscript"&&(m="sub"),m!=""&&(p.push("<"+m+">"),g.push("")),g.push("")}(u.s,h[0],h[2]),h[0].join("")+h[1].replace(a,"
")+h[2].join("")):""}return function(u){return u.map(c).join("")}}(),AE=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,P5=/<(?:\w+:)?r>/,dE=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function el(a,c){var u=!c||c.cellHTML,h={};return a?(a.match(/^\s*<(?:\w+:)?t[^>]*>/)?(h.t=ji(vo(a.slice(a.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),h.r=vo(a),u&&(h.h=dp(h.t))):a.match(P5)&&(h.r=vo(a),h.t=ji(vo((a.replace(dE,"").match(AE)||[]).join("").replace(Js,""))),u&&(h.h=PI(I1(h.r)))),h):{t:""}}var GI=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Yy=/<(?:\w+:)?(?:si|sstItem)>/g,b1=/<\/(?:\w+:)?(?:si|sstItem)>/,gE=/^\s|\s$|[\t\n\r]/;function tl(a,c){if(!c.bookSST)return"";var u=[ts];u[u.length]=on("sst",null,{xmlns:hc[0],count:a.Count,uniqueCount:a.Unique});for(var h=0;h!=a.length;++h)if(a[h]!=null){var d=a[h],p="";d.r?p+=d.r:(p+=""),p+="",u[u.length]=p}return u.length>2&&(u[u.length]="",u[1]=u[1].replace("/>",">")),u.join("")}var pE=function(a,c){var u=!1;return c==null&&(u=!0,c=Ir(15+4*a.t.length)),c.write_shift(1,0),Wo(a.t,c),u?c.slice(0,c.l):c};function Qp(a){var c=Ac();Ur(c,159,function(h,d){return d||(d=Ir(8)),d.write_shift(4,h.Count),d.write_shift(4,h.Unique),d}(a));for(var u=0;u=4&&(a.l+=c-4),u}function og(a){for(var c=a.read_shift(4),u=a.l+c-4,h={},d=a.read_shift(4),p=[];d-- >0;)p.push({t:a.read_shift(4),v:a.read_shift(0,"lpp4")});if(h.name=a.read_shift(0,"lpp4"),h.comps=p,a.l!=u)throw new Error("Bad DataSpaceMapEntry: "+a.l+" != "+u);return h}function Rl(a){var c=function(u){var h={};return u.read_shift(4),u.l+=4,h.id=u.read_shift(0,"lpp4"),h.name=u.read_shift(0,"lpp4"),h.R=Dl(u,4),h.U=Dl(u,4),h.W=Dl(u,4),h}(a);if(c.ename=a.read_shift(0,"8lpp4"),c.blksz=a.read_shift(4),c.cmode=a.read_shift(4),a.read_shift(4)!=4)throw new Error("Bad !Primary record");return c}function C1(a,c){var u=a.l+c,h={};h.Flags=63&a.read_shift(4),a.l+=4,h.AlgID=a.read_shift(4);var d=!1;switch(h.AlgID){case 26126:case 26127:case 26128:d=h.Flags==36;break;case 26625:d=h.Flags==4;break;case 0:d=h.Flags==16||h.Flags==4||h.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+h.AlgID}if(!d)throw new Error("Encryption Flags/AlgID mismatch");return h.AlgIDHash=a.read_shift(4),h.KeySize=a.read_shift(4),h.ProviderType=a.read_shift(4),a.l+=8,h.CSPName=a.read_shift(u-a.l>>1,"utf16le"),a.l=u,h}function UI(a,c){var u={},h=a.l+c;return a.l+=4,u.Salt=a.slice(a.l,a.l+16),a.l+=16,u.Verifier=a.slice(a.l,a.l+16),a.l+=16,a.read_shift(4),u.VerifierHash=a.slice(a.l,h),a.l=h,u}function yE(a){if((63&a.read_shift(4))!=36)throw new Error("EncryptionInfo mismatch");var c=a.read_shift(4);return{t:"Std",h:C1(a,c),v:UI(a,a.length-a.l)}}function w1(){throw new Error("File is password-protected: ECMA-376 Extensible")}function mE(a){var c=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];a.l+=4;var u=a.read_shift(a.length-a.l,"utf8"),h={};return u.replace(Js,function(d){var p=ii(d);switch(cc(p[0])){case"":case"":case"":break;case"":case"=0;--u)h=((16384&h?1:0)|h<<1&32767)^c[u];return 52811^h}var RA=function(){var a=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],c=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],u=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],h=function(d,p){return 255&((g=d^p)/2|128*g);var g};return function(d){for(var p,g,A,m=vE(d),y=function(B){for(var S=c[B.length-1],_=104,D=B.length-1;D>=0;--D)for(var T=B[D],F=0;F!=7;++F)64&T&&(S^=u[_]),T*=2,--_;return S}(m),b=m.length,I=AA(16),E=0;E!=16;++E)I[E]=0;for(1&~b||(p=y>>8,I[b]=h(a[0],p),--b,p=255&y,g=m[m.length-1],I[b]=h(g,p));b>0;)p=y>>8,I[--b]=h(m[b],p),p=255&y,I[--b]=h(m[b],p);for(b=15,A=15-m.length;A>0;)p=y>>8,I[b]=h(a[A],p),--A,p=255&y,I[--b]=h(m[b],p),--b,--A;return I}}(),E1=function(a){var c=0,u=RA(a);return function(h){var d=function(p,g,A,m,y){var b,I;for(y||(y=g),m||(m=RA(p)),b=0;b!=g.length;++b)I=g[b],I=255&((I^=m[A])>>5|I<<3),y[b]=I,++A;return[y,A,m]}("",h,c,u);return c=d[1],d[0]}};function IE(a,c,u){var h=u||{};return h.Info=a.read_shift(2),a.l-=2,h.Info===1?h.Data=function(d){var p={},g=p.EncryptionVersionInfo=Dl(d,4);if(g.Major!=1||g.Minor!=1)throw"unrecognized version code "+g.Major+" : "+g.Minor;return p.Salt=d.read_shift(16),p.EncryptedVerifier=d.read_shift(16),p.EncryptedVerifierHash=d.read_shift(16),p}(a):h.Data=function(d,p){var g={},A=g.EncryptionVersionInfo=Dl(d,4);if(p-=4,A.Minor!=2)throw new Error("unrecognized minor version code: "+A.Minor);if(A.Major>4||A.Major<2)throw new Error("unrecognized major version code: "+A.Major);g.Flags=d.read_shift(4),p-=4;var m=d.read_shift(4);return p-=4,g.EncryptionHeader=C1(d,m),p-=m,g.EncryptionVerifier=UI(d,p),g}(a,c),h}var Jy=function(){function a(u,h){switch(h.type){case"base64":return c(Ra(u),h);case"binary":return c(u,h);case"buffer":return c(ki&&Buffer.isBuffer(u)?u.toString("binary"):Af(u),h);case"array":return c(pf(u),h)}throw new Error("Unrecognized type "+h.type)}function c(u,h){var d=(h||{}).dense?[]:{},p=u.match(/\\trowd.*?\\row\b/g);if(!p.length)throw new Error("RTF missing table");var g={s:{c:0,r:0},e:{c:0,r:p.length-1}};return p.forEach(function(A,m){Array.isArray(d)&&(d[m]=[]);for(var y,b=/\\\w+\b/g,I=0,E=-1;y=b.exec(A);){if(y[0]==="\\cell"){var B=A.slice(I,b.lastIndex-y[0].length);if(B[0]==" "&&(B=B.slice(1)),++E,B.length){var S={v:B,t:"s"};Array.isArray(d)?d[m][E]=S:d[Mi({r:m,c:E})]=S}}I=b.lastIndex}E>g.e.c&&(g.e.c=E)}),d["!ref"]=bi(g),d}return{to_workbook:function(u,h){return Sc(a(u,h),h)},to_sheet:a,from_sheet:function(u){for(var h,d=["{\\rtf1\\ansi"],p=Ta(u["!ref"]),g=Array.isArray(u),A=p.s.r;A<=p.e.r;++A){d.push("\\trowd\\trautofit1");for(var m=p.s.c;m<=p.e.c;++m)d.push("\\cellx"+(m+1));for(d.push("\\pard\\intbl"),m=p.s.c;m<=p.e.c;++m){var y=Mi({r:A,c:m});(h=g?(u[A]||[])[m]:u[y])&&(h.v!=null||h.f&&!h.F)&&(d.push(" "+(h.w||(wA(h),h.w))),d.push("\\cell"))}d.push("\\pard\\intbl\\row")}return d.join("")+"}"}}}();function MA(a){for(var c=0,u=1;c!=3;++c)u=256*u+(a[c]>255?255:a[c]<0?0:a[c]);return u.toString(16).toUpperCase().slice(1)}function Ml(a,c){if(c===0)return a;var u,h,d=function(p){var g=p[0]/255,A=p[1]/255,m=p[2]/255,y=Math.max(g,A,m),b=Math.min(g,A,m),I=y-b;if(I===0)return[0,0,g];var E,B=0,S=y+b;switch(E=I/(S>1?2-S:S),y){case g:B=((A-m)/I+6)%6;break;case A:B=(m-g)/I+2;break;case m:B=(g-A)/I+4}return[B/6,E,S/2]}((h=(u=a).slice(u[0]==="#"?1:0).slice(0,6),[parseInt(h.slice(0,2),16),parseInt(h.slice(2,4),16),parseInt(h.slice(4,6),16)]));return d[2]=c<0?d[2]*(1+c):1-(1-d[2])*(1-c),MA(function(p){var g,A=p[0],m=p[1],y=p[2],b=2*m*(y<.5?y:1-y),I=y-b/2,E=[I,I,I],B=6*A;if(m!==0)switch(0|B){case 0:case 6:g=b*B,E[0]+=b,E[1]+=g;break;case 1:g=b*(2-B),E[0]+=g,E[1]+=b;break;case 2:g=b*(B-2),E[1]+=b,E[2]+=g;break;case 3:g=b*(4-B),E[1]+=g,E[2]+=b;break;case 4:g=b*(B-4),E[2]+=b,E[0]+=g;break;case 5:g=b*(6-B),E[2]+=g,E[0]+=b}for(var S=0;S!=3;++S)E[S]=Math.round(255*E[S]);return E}(d))}var Bu=6;function Fl(a){return Math.floor((a+Math.round(128/Bu)/256)*Bu)}function Tl(a){return Math.floor((a-5)/Bu*100+.5)/100}function sg(a){return Math.round((a*Bu+5)/Bu*256)/256}function Wy(a){return sg(Tl(Fl(a)))}function xp(a){var c=Math.abs(a-Wy(a)),u=Bu;if(c>.005)for(Bu=1;Bu<15;++Bu)Math.abs(a-Wy(a))<=c&&(c=Math.abs(a-Wy(a)),u=Bu);Bu=u}function Uo(a){a.width?(a.wpx=Fl(a.width),a.wch=Tl(a.wpx),a.MDW=Bu):a.wpx?(a.wch=Tl(a.wpx),a.width=sg(a.wch),a.MDW=Bu):typeof a.wch=="number"&&(a.width=sg(a.wch),a.wpx=Fl(a.width),a.MDW=Bu),a.customWidth&&delete a.customWidth}var _s=96;function La(a){return 96*a/_s}function Ef(a){return a*_s/96}var G5={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"},qy=["numFmtId","fillId","fontId","borderId","xfId"],B1=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],bE=function(){var a=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,c=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,u=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,h=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,d=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(p,g,A){var m,y={};return p&&((m=(p=p.replace(//gm,"").replace(//gm,"")).match(a))&&function(b,I,E){I.NumberFmt=[];for(var B=to(xi),S=0;S":case"":case"":case"":break;case"0){if(F>392){for(F=392;F>60&&I.NumberFmt[F]!=null;--F);I.NumberFmt[F]=T}$c(T,F)}break;default:if(E.WTF)throw new Error("unrecognized "+D[0]+" in numFmts")}}}(m,y,A),(m=p.match(h))&&function(b,I,E,B){I.Fonts=[];var S={},_=!1;(b[0].match(Js)||[]).forEach(function(D){var T=ii(D);switch(cc(T[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":I.Fonts.push(S),S={};break;case"":S.bold=1;break;case"":S.italic=1;break;case"":S.underline=1;break;case"":S.strike=1;break;case"":S.outline=1;break;case"":S.shadow=1;break;case"":S.condense=1;break;case"":S.extend=1;break;case"":case"":_=!1;break;default:if(B&&B.WTF&&!_)throw new Error("unrecognized "+T[0]+" in fonts")}})}(m,y,g,A),(m=p.match(u))&&function(b,I,E,B){I.Fills=[];var S={},_=!1;(b[0].match(Js)||[]).forEach(function(D){var T=ii(D);switch(cc(T[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":S={},I.Fills.push(S);break;case"":I.Fills.push(S),S={};break;case"":T.patternType&&(S.patternType=T.patternType);break;case"":_=!1;break;default:if(B&&B.WTF&&!_)throw new Error("unrecognized "+T[0]+" in fills")}})}(m,y,0,A),(m=p.match(d))&&function(b,I,E,B){I.Borders=[];var S={},_=!1;(b[0].match(Js)||[]).forEach(function(D){var T=ii(D);switch(cc(T[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":S={},T.diagonalUp&&(S.diagonalUp=po(T.diagonalUp)),T.diagonalDown&&(S.diagonalDown=po(T.diagonalDown)),I.Borders.push(S);break;case"":_=!1;break;default:if(B&&B.WTF&&!_)throw new Error("unrecognized "+T[0]+" in borders")}})}(m,y,0,A),(m=p.match(c))&&function(b,I,E){var B;I.CellXf=[];var S=!1;(b[0].match(Js)||[]).forEach(function(_){var D=ii(_),T=0;switch(cc(D[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":for(delete(B=D)[0],T=0;T392){for(T=392;T>60;--T)if(I.NumberFmt[B.numFmtId]==I.NumberFmt[T]){B.numFmtId=T;break}}I.CellXf.push(B);break;case"":var F={};D.vertical&&(F.vertical=D.vertical),D.horizontal&&(F.horizontal=D.horizontal),D.textRotation!=null&&(F.textRotation=D.textRotation),D.indent&&(F.indent=D.indent),D.wrapText&&(F.wrapText=po(D.wrapText)),B.alignment=F;break;case"":case"":S=!1;break;default:if(E&&E.WTF&&!S)throw new Error("unrecognized "+D[0]+" in cellXfs")}})}(m,y,A)),y}}();function HI(a,c){var u,h=[ts,on("styleSheet",null,{xmlns:hc[0],"xmlns:vt":lc})];return a.SSF&&(u=function(d){var p=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(g){for(var A=g[0];A<=g[1];++A)d[A]!=null&&(p[p.length]=on("numFmt",null,{numFmtId:A,formatCode:Xa(d[A])}))}),p.length===1?"":(p[p.length]="",p[0]=on("numFmts",null,{count:p.length-2}).replace("/>",">"),p.join(""))}(a.SSF))!=null&&(h[h.length]=u),h[h.length]='',h[h.length]='',h[h.length]='',h[h.length]='',(u=function(d){var p=[];return p[p.length]=on("cellXfs",null),d.forEach(function(g){p[p.length]=on("xf",null,g)}),p[p.length]="",p.length===2?"":(p[0]=on("cellXfs",null,{count:p.length-2}).replace("/>",">"),p.join(""))}(c.cellXfs))&&(h[h.length]=u),h[h.length]='',h[h.length]='',h[h.length]='',h.length>2&&(h[h.length]="",h[1]=h[1].replace("/>",">")),h.join("")}function k1(a,c,u){u||(u=Ir(6+4*c.length)),u.write_shift(2,a),Wo(c,u);var h=u.length>u.l?u.slice(0,u.l):u;return u.l==null&&(u.l=u.length),h}function zy(a,c){c||(c=Ir(153)),c.write_shift(2,20*a.sz),function(d,p){p||(p=Ir(2));var g=(d.italic?2:0)|(d.strike?8:0)|(d.outline?16:0)|(d.shadow?32:0)|(d.condense?64:0)|(d.extend?128:0);p.write_shift(1,g),p.write_shift(1,0)}(a,c),c.write_shift(2,a.bold?700:400);var u=0;a.vertAlign=="superscript"?u=1:a.vertAlign=="subscript"&&(u=2),c.write_shift(2,u),c.write_shift(1,a.underline||0),c.write_shift(1,a.family||0),c.write_shift(1,a.charset||0),c.write_shift(1,0),Wd(a.color,c);var h=0;return h=2,c.write_shift(1,h),Wo(a.name,c),c.length>c.l?c.slice(0,c.l):c}var FA,CE=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],wE=qs;function EE(a,c){c||(c=Ir(84)),FA||(FA=by(CE));var u=FA[a.patternType];u==null&&(u=40),c.write_shift(4,u);var h=0;if(u!=40)for(Wd({auto:1},c),Wd({auto:1},c);h<12;++h)c.write_shift(4,0);else{for(;h<4;++h)c.write_shift(4,0);for(;h<12;++h)c.write_shift(4,0)}return c.length>c.l?c.slice(0,c.l):c}function Ky(a,c,u){return u||(u=Ir(16)),u.write_shift(2,c||0),u.write_shift(2,a.numFmtId||0),u.write_shift(2,0),u.write_shift(2,0),u.write_shift(2,0),u.write_shift(1,0),u.write_shift(1,0),u.write_shift(1,0),u.write_shift(1,0),u.write_shift(1,0),u.write_shift(1,0),u}function ug(a,c){return c||(c=Ir(10)),c.write_shift(1,0),c.write_shift(1,0),c.write_shift(4,0),c.write_shift(4,0),c}var BE=qs;function kE(a){var c;Ur(a,613,gc(1)),Ur(a,46,(c||(c=Ir(51)),c.write_shift(1,0),ug(0,c),ug(0,c),ug(0,c),ug(0,c),ug(0,c),c.length>c.l?c.slice(0,c.l):c)),Ur(a,614)}function U5(a){var c,u;Ur(a,619,gc(1)),Ur(a,48,(c={xfId:0,builtinId:0,name:"Normal"},u||(u=Ir(52)),u.write_shift(4,c.xfId),u.write_shift(2,1),u.write_shift(1,+c.builtinId),u.write_shift(1,0),Yd(c.name||"",u),u.length>u.l?u.slice(0,u.l):u)),Ur(a,620)}function j5(a){Ur(a,508,function(c,u,h){var d=Ir(2052);return d.write_shift(4,c),Yd(u,d),Yd(h,d),d.length>d.l?d.slice(0,d.l):d}(0,"TableStyleMedium9","PivotStyleMedium4")),Ur(a,509)}function QE(a,c){var u=Ac();return Ur(u,278),function(h,d){if(d){var p=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(g){for(var A=g[0];A<=g[1];++A)d[A]!=null&&++p}),p!=0&&(Ur(h,615,gc(p)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(g){for(var A=g[0];A<=g[1];++A)d[A]!=null&&Ur(h,44,k1(A,d[A]))}),Ur(h,616))}}(u,a.SSF),function(h){Ur(h,611,gc(1)),Ur(h,43,zy({sz:12,color:{theme:1},name:"Calibri",family:2})),Ur(h,612)}(u),function(h){Ur(h,603,gc(2)),Ur(h,45,EE({patternType:"none"})),Ur(h,45,EE({patternType:"gray125"})),Ur(h,604)}(u),kE(u),function(h){Ur(h,626,gc(1)),Ur(h,47,Ky({numFmtId:0},65535)),Ur(h,627)}(u),function(h,d){Ur(h,617,gc(d.length)),d.forEach(function(p){Ur(h,47,Ky(p,0))}),Ur(h,618)}(u,c.cellXfs),U5(u),function(h){Ur(h,505,gc(0)),Ur(h,506)}(u),j5(u),Ur(u,279),u.end()}var H5=["","","","","","","","","","","",""];function Y5(a,c,u){c.themeElements.clrScheme=[];var h={};(a[0].match(Js)||[]).forEach(function(d){var p=ii(d);switch(p[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":p[0].charAt(1)==="/"?(c.themeElements.clrScheme[H5.indexOf(p[0])]=h,h={}):h.name=p[0].slice(3,p[0].length-1);break;default:if(u&&u.WTF)throw new Error("Unrecognized "+p[0]+" in clrScheme")}})}function Ia(){}function J5(){}var Sp=/]*)>[\s\S]*<\/a:clrScheme>/,W5=/]*)>[\s\S]*<\/a:fontScheme>/,q5=/]*)>[\s\S]*<\/a:fmtScheme>/,TA=/]*)>[\s\S]*<\/a:themeElements>/;function xE(a,c){var u;a&&a.length!==0||(a=YI());var h={};if(!(u=a.match(TA)))throw new Error("themeElements not found in theme");return function(d,p,g){var A;p.themeElements={},[["clrScheme",Sp,Y5],["fontScheme",W5,Ia],["fmtScheme",q5,J5]].forEach(function(m){if(!(A=d.match(m[1])))throw new Error(m[0]+" not found in themeElements");m[2](A,p,g)})}(u[0],h,c),h.raw=a,h}function YI(a,c){if(c&&c.themeXLSX)return c.themeXLSX;if(a&&typeof a.raw=="string")return a.raw;var u=[ts];return u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]="",u[u.length]="",u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]="",u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]='',u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]='',u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]='',u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]='',u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]="",u[u.length]='',u[u.length]="",u[u.length]="",u[u.length]="",u[u.length]="",u.join("")}function Vy(a){var c={};switch(c.xclrType=a.read_shift(2),c.nTintShade=a.read_shift(2),c.xclrType){case 0:case 4:a.l+=4;break;case 1:c.xclrValue=function(u,h){return qs(u,h)}(a,4);break;case 2:c.xclrValue=sE(a);break;case 3:c.xclrValue=function(u){return u.read_shift(4)}(a)}return a.l+=8,c}function JI(a){var c=a.read_shift(2),u=a.read_shift(2)-4,h=[c];switch(c){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:h[1]=Vy(a);break;case 6:h[1]=function(d,p){return qs(d,p)}(a,u);break;case 14:case 15:h[1]=a.read_shift(u===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+c+" "+u)}return h}function _p(){var a,c,u=Ac();return Ur(u,332),Ur(u,334,gc(1)),Ur(u,335,((c=Ir(12+2*(a={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,a.flags),c.write_shift(4,a.version),Wo(a.name,c),c.slice(0,c.l))),Ur(u,336),Ur(u,339,function(h,d){var p=Ir(8+2*d.length);return p.write_shift(4,h),Wo(d,p),p.slice(0,p.l)}(1,"XLDAPR")),Ur(u,52),Ur(u,35,gc(514)),Ur(u,4096,gc(0)),Ur(u,4097,Rc(1)),Ur(u,36),Ur(u,53),Ur(u,340),Ur(u,337,function(h,d){var p=Ir(8);return p.write_shift(4,h),p.write_shift(4,1),p}(1)),Ur(u,51,function(h){var d=Ir(4+8*h.length);d.write_shift(4,h.length);for(var p=0;p `),a.join("")}var LA=1024;function WI(a,c){for(var u=[21600,21600],h=["m0,0l0",u[1],u[0],u[1],u[0],"0xe"].join(","),d=[on("xml",null,{"xmlns:v":Ql,"xmlns:o":th,"xmlns:x":yf,"xmlns:mv":fc}).replace(/\/>/,">"),on("o:shapelayout",on("o:idmap",null,{"v:ext":"edit",data:a}),{"v:ext":"edit"}),on("v:shapetype",[on("v:stroke",null,{joinstyle:"miter"}),on("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:u.join(","),path:h})];LA<1e3*a;)LA+=1e3;return c.forEach(function(p){var g=As(p[0]),A={color2:"#BEFF82",type:"gradient"};A.type=="gradient"&&(A.angle="-180");var m=A.type=="gradient"?on("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,y=on("v:fill",m,A);++LA,d=d.concat(["",y,on("v:shadow",null,{on:"t",obscured:"t"}),on("v:path",null,{"o:connecttype":"none"}),'
','',"","",xs("x:Anchor",[g.c+1,0,g.r+1,0,g.c+3,20,g.r+5,20].join(",")),xs("x:AutoFill","False"),xs("x:Row",String(g.r)),xs("x:Column",String(g.c)),p[1].hidden?"":"","",""])}),d.push(""),d.join("")}function qI(a,c,u,h){var d,p=Array.isArray(a);c.forEach(function(g){var A=As(g.ref);if(p?(a[A.r]||(a[A.r]=[]),d=a[A.r][A.c]):d=a[g.ref],!d){d={t:"z"},p?a[A.r][A.c]=d:a[g.ref]=d;var m=Ta(a["!ref"]||"BDWGO1000001:A1");m.s.r>A.r&&(m.s.r=A.r),m.e.rA.c&&(m.s.c=A.c),m.e.c=0;--I){if(!u&&d.c[I].T)return;u&&!d.c[I].T&&d.c.splice(I,1)}if(u&&h){for(I=0;I"),a.forEach(function(h){h[1].forEach(function(d){var p=Xa(d.a);u.indexOf(p)==-1&&(u.push(p),c.push(""+p+"")),d.T&&d.ID&&u.indexOf("tc="+d.ID)==-1&&(u.push("tc="+d.ID),c.push("tc="+d.ID+""))})}),u.length==0&&(u.push("SheetJ5"),c.push("SheetJ5")),c.push(""),c.push(""),a.forEach(function(h){var d=0,p=[];if(h[1][0]&&h[1][0].T&&h[1][0].ID?d=u.indexOf("tc="+h[1][0].ID):h[1].forEach(function(m){m.a&&(d=u.indexOf(Xa(m.a))),p.push(m.t||"")}),c.push(''),p.length<=1)c.push(xs("t",Xa(p[0]||"")));else{for(var g=`Comment: `+p[0]+` `,A=1;A")}),c.push(""),c.length>2&&(c[c.length]="",c[1]=c[1].replace("/>",">")),c.join("")}function zI(a,c,u){var h=[ts,on("ThreadedComments",null,{xmlns:eh}).replace(/[\/]>/,">")];return a.forEach(function(d){var p="";(d[1]||[]).forEach(function(g,A){if(g.T){g.a&&c.indexOf(g.a)==-1&&c.push(g.a);var m={ref:d[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+u.tcid++).slice(-12)+"}"};A==0?p=m.id:m.parentId=p,g.ID=m.id,g.a&&(m.personId="{54EE7950-7262-4200-6969-"+("000000000000"+c.indexOf(g.a)).slice(-12)+"}"),h.push(on("threadedComment",xs("text",g.t||""),m))}else delete g.ID})}),h.push(""),h.join("")}var z5=zs;function KI(a){var c=Ac(),u=[];return Ur(c,628),Ur(c,630),a.forEach(function(h){h[1].forEach(function(d){u.indexOf(d.a)>-1||(u.push(d.a.slice(0,54)),Ur(c,632,function(p){return Wo(p.slice(0,54))}(d.a)))})}),Ur(c,631),Ur(c,633),a.forEach(function(h){h[1].forEach(function(d){d.iauthor=u.indexOf(d.a);var p={s:As(h[0]),e:As(h[0])};Ur(c,635,function(g,A){return A==null&&(A=Ir(36)),A.write_shift(4,g[1].iauthor),Dc(g[0],A),A.write_shift(4,0),A.write_shift(4,0),A.write_shift(4,0),A.write_shift(4,0),A}([p,d])),d.t&&d.t.length>0&&Ur(c,637,Vw(d)),Ur(c,636),delete d.iauthor})}),Ur(c,634),Ur(c,629),c.end()}var Zy=["xlsb","xlsm","xlam","biff8","xla"],Ph=function(){var a=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,c={r:0,c:0};function u(h,d,p,g){var A=!1,m=!1;p.length==0?m=!0:p.charAt(0)=="["&&(m=!0,p=p.slice(1,-1)),g.length==0?A=!0:g.charAt(0)=="["&&(A=!0,g=g.slice(1,-1));var y=p.length>0?0|parseInt(p,10):0,b=g.length>0?0|parseInt(g,10):0;return A?b+=c.c:--b,m?y+=c.r:--y,d+(A?"":"$")+rs(b)+(m?"":"$")+Ss(y)}return function(h,d){return c=d,h.replace(a,u)}}(),Mc=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Xy=function(){return function(a,c){return a.replace(Mc,function(u,h,d,p,g,A){var m=yI(p)-(d?0:c.c),y=f1(A)-(g?0:c.r);return h+"R"+(y==0?"":g?y+1:"["+y+"]")+"C"+(m==0?"":d?m+1:"["+m+"]")})}}();function Rp(a,c){return a.replace(Mc,function(u,h,d,p,g,A){return h+(d=="$"?d+p:rs(yI(p)+c.c))+(g=="$"?g+A:Ss(f1(A)+c.r))})}function $y(a,c,u){var h=dc(c).s,d=As(u);return Rp(a,{r:d.r-h.r,c:d.c-h.c})}function VI(a){return a.replace(/_xlfn\./g,"")}function ns(a){a.l+=1}function Bf(a,c){var u=a.read_shift(2);return[16383&u,u>>14&1,u>>15&1]}function kf(a,c,u){var h=2;if(u){if(u.biff>=2&&u.biff<=5)return cg(a);u.biff==12&&(h=4)}var d=a.read_shift(h),p=a.read_shift(h),g=Bf(a),A=Bf(a);return{s:{r:d,c:g[0],cRel:g[1],rRel:g[2]},e:{r:p,c:A[0],cRel:A[1],rRel:A[2]}}}function cg(a){var c=Bf(a),u=Bf(a),h=a.read_shift(1),d=a.read_shift(1);return{s:{r:c[0],c:h,cRel:c[1],rRel:c[2]},e:{r:u[0],c:d,cRel:u[1],rRel:u[2]}}}function _E(a,c,u){if(u&&u.biff>=2&&u.biff<=5)return function(p){var g=Bf(p),A=p.read_shift(1);return{r:g[0],c:A,cRel:g[1],rRel:g[2]}}(a);var h=a.read_shift(u&&u.biff==12?4:2),d=Bf(a);return{r:h,c:d[0],cRel:d[1],rRel:d[2]}}function K5(a){var c=a.read_shift(2),u=a.read_shift(2);return{r:c,c:255&u,fQuoted:!!(16384&u),cRel:u>>15,rRel:u>>15}}function Q1(a){var c=1&a[a.l+1];return a.l+=4,[c,1]}function DE(a){return[a.read_shift(1),a.read_shift(1)]}function RE(a,c){var u=[a.read_shift(1)];if(c==12)switch(u[0]){case 2:u[0]=4;break;case 4:u[0]=16;break;case 0:u[0]=1;break;case 1:u[0]=2}switch(u[0]){case 4:u[1]=ds(a,1)?"TRUE":"FALSE",c!=12&&(a.l+=7);break;case 37:case 16:u[1]=bf[a[a.l]],a.l+=c==12?4:8;break;case 0:a.l+=8;break;case 1:u[1]=ko(a);break;case 2:u[1]=ju(a,0,{biff:c>0&&c<8?2:c});break;default:throw new Error("Bad SerAr: "+u[0])}return u}function ME(a,c,u){for(var h=a.read_shift(u.biff==12?4:2),d=[],p=0;p!=h;++p)d.push((u.biff==12?kA:jy)(a));return d}function ZI(a,c,u){var h=0,d=0;u.biff==12?(h=a.read_shift(4),d=a.read_shift(4)):(d=1+a.read_shift(1),h=1+a.read_shift(2)),u.biff>=2&&u.biff<8&&(--h,--d==0&&(d=256));for(var p=0,g=[];p!=h&&(g[p]=[]);++p)for(var A=0;A!=d;++A)g[p][A]=RE(a,u.biff);return g}function Gh(a,c,u){return a.l+=2,[K5(a)]}function Mp(a){return a.l+=6,[]}function Fp(a){return a.l+=2,[gs(a),1&a.read_shift(2)]}var em=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],x1={1:{n:"PtgExp",f:function(a,c,u){return a.l++,u&&u.biff==12?[a.read_shift(4,"i"),0]:[a.read_shift(2),a.read_shift(u&&u.biff==2?1:2)]}},2:{n:"PtgTbl",f:qs},3:{n:"PtgAdd",f:ns},4:{n:"PtgSub",f:ns},5:{n:"PtgMul",f:ns},6:{n:"PtgDiv",f:ns},7:{n:"PtgPower",f:ns},8:{n:"PtgConcat",f:ns},9:{n:"PtgLt",f:ns},10:{n:"PtgLe",f:ns},11:{n:"PtgEq",f:ns},12:{n:"PtgGe",f:ns},13:{n:"PtgGt",f:ns},14:{n:"PtgNe",f:ns},15:{n:"PtgIsect",f:ns},16:{n:"PtgUnion",f:ns},17:{n:"PtgRange",f:ns},18:{n:"PtgUplus",f:ns},19:{n:"PtgUminus",f:ns},20:{n:"PtgPercent",f:ns},21:{n:"PtgParen",f:ns},22:{n:"PtgMissArg",f:ns},23:{n:"PtgStr",f:function(a,c,u){return a.l++,p1(a,0,u)}},26:{n:"PtgSheet",f:function(a,c,u){return a.l+=5,a.l+=2,a.l+=u.biff==2?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(a,c,u){return a.l+=u.biff==2?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(a){return a.l++,bf[a.read_shift(1)]}},29:{n:"PtgBool",f:function(a){return a.l++,a.read_shift(1)!==0}},30:{n:"PtgInt",f:function(a){return a.l++,a.read_shift(2)}},31:{n:"PtgNum",f:function(a){return a.l++,ko(a)}},32:{n:"PtgArray",f:function(a,c,u){var h=(96&a[a.l++])>>5;return a.l+=u.biff==2?6:u.biff==12?14:7,[h]}},33:{n:"PtgFunc",f:function(a,c,u){var h=(96&a[a.l])>>5;a.l+=1;var d=a.read_shift(u&&u.biff<=3?1:2);return[Ll[d],rb[d],h]}},34:{n:"PtgFuncVar",f:function(a,c,u){var h=a[a.l++],d=a.read_shift(1),p=u&&u.biff<=3?[h==88?-1:0,a.read_shift(1)]:function(g){return[g[g.l+1]>>7,32767&g.read_shift(2)]}(a);return[d,(p[0]===0?rb:D1)[p[1]]]}},35:{n:"PtgName",f:function(a,c,u){var h=a.read_shift(1)>>>5&3,d=!u||u.biff>=8?4:2,p=a.read_shift(d);switch(u.biff){case 2:a.l+=5;break;case 3:case 4:a.l+=8;break;case 5:a.l+=12}return[h,0,p]}},36:{n:"PtgRef",f:function(a,c,u){var h=(96&a[a.l])>>5;return a.l+=1,[h,_E(a,0,u)]}},37:{n:"PtgArea",f:function(a,c,u){return[(96&a[a.l++])>>5,kf(a,u.biff>=2&&u.biff,u)]}},38:{n:"PtgMemArea",f:function(a,c,u){var h=a.read_shift(1)>>>5&3;return a.l+=u&&u.biff==2?3:4,[h,a.read_shift(u&&u.biff==2?1:2)]}},39:{n:"PtgMemErr",f:qs},40:{n:"PtgMemNoMem",f:qs},41:{n:"PtgMemFunc",f:function(a,c,u){return[a.read_shift(1)>>>5&3,a.read_shift(u&&u.biff==2?1:2)]}},42:{n:"PtgRefErr",f:function(a,c,u){var h=a.read_shift(1)>>>5&3;return a.l+=4,u.biff<8&&a.l--,u.biff==12&&(a.l+=2),[h]}},43:{n:"PtgAreaErr",f:function(a,c,u){var h=(96&a[a.l++])>>5;return a.l+=u&&u.biff>8?12:u.biff<8?6:8,[h]}},44:{n:"PtgRefN",f:function(a,c,u){var h=(96&a[a.l])>>5;a.l+=1;var d=function(p,g,A){var m=A&&A.biff?A.biff:8;if(m>=2&&m<=5)return function(B){var S=B.read_shift(2),_=B.read_shift(1),D=(32768&S)>>15,T=(16384&S)>>14;return S&=16383,D==1&&S>=8192&&(S-=16384),T==1&&_>=128&&(_-=256),{r:S,c:_,cRel:T,rRel:D}}(p);var y=p.read_shift(m>=12?4:2),b=p.read_shift(2),I=(16384&b)>>14,E=(32768&b)>>15;if(b&=16383,E==1)for(;y>524287;)y-=1048576;if(I==1)for(;b>8191;)b-=16384;return{r:y,c:b,cRel:I,rRel:E}}(a,0,u);return[h,d]}},45:{n:"PtgAreaN",f:function(a,c,u){var h=(96&a[a.l++])>>5,d=function(p,g,A){if(A.biff<8)return cg(p);var m=p.read_shift(A.biff==12?4:2),y=p.read_shift(A.biff==12?4:2),b=Bf(p),I=Bf(p);return{s:{r:m,c:b[0],cRel:b[1],rRel:b[2]},e:{r:y,c:I[0],cRel:I[1],rRel:I[2]}}}(a,0,u);return[h,d]}},46:{n:"PtgMemAreaN",f:function(a){return[a.read_shift(1)>>>5&3,a.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(a){return[a.read_shift(1)>>>5&3,a.read_shift(2)]}},57:{n:"PtgNameX",f:function(a,c,u){return u.biff==5?function(h){var d=h.read_shift(1)>>>5&3,p=h.read_shift(2,"i");h.l+=8;var g=h.read_shift(2);return h.l+=12,[d,p,g]}(a):[a.read_shift(1)>>>5&3,a.read_shift(2),a.read_shift(4)]}},58:{n:"PtgRef3d",f:function(a,c,u){var h=(96&a[a.l])>>5;a.l+=1;var d=a.read_shift(2);return u&&u.biff==5&&(a.l+=12),[h,d,_E(a,0,u)]}},59:{n:"PtgArea3d",f:function(a,c,u){var h=(96&a[a.l++])>>5,d=a.read_shift(2,"i");if(u)switch(u.biff){case 5:a.l+=12;break}return[h,d,kf(a,0,u)]}},60:{n:"PtgRefErr3d",f:function(a,c,u){var h=(96&a[a.l++])>>5,d=a.read_shift(2),p=4;if(u)switch(u.biff){case 5:p=15;break;case 12:p=6}return a.l+=p,[h,d]}},61:{n:"PtgAreaErr3d",f:function(a,c,u){var h=(96&a[a.l++])>>5,d=a.read_shift(2),p=8;if(u)switch(u.biff){case 5:a.l+=12,p=6;break;case 12:p=12}return a.l+=p,[h,d]}},255:{}},tm={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},V5={1:{n:"PtgElfLel",f:Fp},2:{n:"PtgElfRw",f:Gh},3:{n:"PtgElfCol",f:Gh},6:{n:"PtgElfRwV",f:Gh},7:{n:"PtgElfColV",f:Gh},10:{n:"PtgElfRadical",f:Gh},11:{n:"PtgElfRadicalS",f:Mp},13:{n:"PtgElfColS",f:Mp},15:{n:"PtgElfColSV",f:Mp},16:{n:"PtgElfRadicalLel",f:Fp},25:{n:"PtgList",f:function(a){a.l+=2;var c=a.read_shift(2),u=a.read_shift(2),h=a.read_shift(4),d=a.read_shift(2),p=a.read_shift(2);return{ixti:c,coltype:3&u,rt:em[u>>2&31],idx:h,c:d,C:p}}},29:{n:"PtgSxName",f:function(a){return a.l+=2,[a.read_shift(4)]}},255:{}},FE={0:{n:"PtgAttrNoop",f:function(a){return a.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(a,c,u){var h=255&a[a.l+1]?1:0;return a.l+=u&&u.biff==2?3:4,[h]}},2:{n:"PtgAttrIf",f:function(a,c,u){var h=255&a[a.l+1]?1:0;return a.l+=2,[h,a.read_shift(u&&u.biff==2?1:2)]}},4:{n:"PtgAttrChoose",f:function(a,c,u){a.l+=2;for(var h=a.read_shift(u&&u.biff==2?1:2),d=[],p=0;p<=h;++p)d.push(a.read_shift(u&&u.biff==2?1:2));return d}},8:{n:"PtgAttrGoto",f:function(a,c,u){var h=255&a[a.l+1]?1:0;return a.l+=2,[h,a.read_shift(u&&u.biff==2?1:2)]}},16:{n:"PtgAttrSum",f:function(a,c,u){a.l+=u&&u.biff==2?3:4}},32:{n:"PtgAttrBaxcel",f:Q1},33:{n:"PtgAttrBaxcel",f:Q1},64:{n:"PtgAttrSpace",f:function(a){return a.read_shift(2),DE(a)}},65:{n:"PtgAttrSpaceSemi",f:function(a){return a.read_shift(2),DE(a)}},128:{n:"PtgAttrIfError",f:function(a){var c=255&a[a.l+1]?1:0;return a.l+=2,[c,a.read_shift(2)]}},255:{}};function Tp(a,c,u,h){if(h.biff<8)return qs(a,c);for(var d=a.l+c,p=[],g=0;g!==u.length;++g)switch(u[g][0]){case"PtgArray":u[g][1]=ZI(a,0,h),p.push(u[g][1]);break;case"PtgMemArea":u[g][2]=ME(a,u[g][1],h),p.push(u[g][2]);break;case"PtgExp":h&&h.biff==12&&(u[g][1][1]=a.read_shift(4),p.push(u[g][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+u[g][0]}return(c=d-a.l)!==0&&p.push(qs(a,c)),p}function Lp(a,c,u){for(var h,d,p=a.l+c,g=[];p!=a.l;)c=p-a.l,d=a[a.l],h=x1[d]||x1[tm[d]],d!==24&&d!==25||(h=(d===24?V5:FE)[a[a.l+1]]),h&&h.f?g.push([h.n,h.f(a,c,u)]):qs(a,c);return g}function TE(a){for(var c=[],u=0;u=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function XI(a,c,u){if(!a)return"SH33TJSERR0";if(u.biff>8&&(!a.XTI||!a.XTI[c]))return a.SheetNames[c];if(!a.XTI)return"SH33TJSERR6";var h=a.XTI[c];if(u.biff<8)return c>1e4&&(c-=65536),c<0&&(c=-c),c==0?"":a.XTI[c-1];if(!h)return"SH33TJSERR1";var d="";if(u.biff>8)switch(a[h[0]][0]){case 357:return d=h[1]==-1?"#REF":a.SheetNames[h[1]],h[1]==h[2]?d:d+":"+a.SheetNames[h[2]];case 358:return u.SID!=null?a.SheetNames[u.SID]:"SH33TJSSAME"+a[h[0]][0];default:return"SH33TJSSRC"+a[h[0]][0]}switch(a[h[0]][0][0]){case 1025:return d=h[1]==-1?"#REF":a.SheetNames[h[1]]||"SH33TJSERR3",h[1]==h[2]?d:d+":"+a.SheetNames[h[2]];case 14849:return a[h[0]].slice(1).map(function(p){return p.Name}).join(";;");default:return a[h[0]][0][3]?(d=h[1]==-1?"#REF":a[h[0]][0][3][h[1]]||"SH33TJSERR4",h[1]==h[2]?d:d+":"+a[h[0]][0][3][h[2]]):"SH33TJSERR2"}}function $I(a,c,u){var h=XI(a,c,u);return h=="#REF"?h:function(d,p){if(!(d||p&&p.biff<=5&&p.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(d)?"'"+d+"'":d}(h,u)}function ku(a,c,u,h,d){var p,g,A,m,y=d&&d.biff||8,b={s:{c:0,r:0}},I=[],E=0,B=0,S="";if(!a[0]||!a[0][0])return"";for(var _=-1,D="",T=0,F=a[0].length;T=0){switch(a[0][_][1][0]){case 0:D=Go(" ",a[0][_][1][1]);break;case 1:D=Go("\r",a[0][_][1][1]);break;default:if(D="",d.WTF)throw new Error("Unexpected PtgAttrSpaceType "+a[0][_][1][0])}g+=D,_=-1}I.push(g+LE[N[0]]+p);break;case"PtgIsect":p=I.pop(),g=I.pop(),I.push(g+" "+p);break;case"PtgUnion":p=I.pop(),g=I.pop(),I.push(g+","+p);break;case"PtgRange":p=I.pop(),g=I.pop(),I.push(g+":"+p);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":A=yp(N[1][1],b,d),I.push(Un(A,y));break;case"PtgRefN":A=u?yp(N[1][1],u,d):N[1][1],I.push(Un(A,y));break;case"PtgRef3d":E=N[1][1],A=yp(N[1][2],b,d),S=$I(h,E,d),I.push(S+"!"+Un(A,y));break;case"PtgFunc":case"PtgFuncVar":var H=N[1][0],W=N[1][1];H||(H=0);var V=(H&=127)==0?[]:I.slice(-H);I.length-=H,W==="User"&&(W=V.shift()),I.push(W+"("+V.join(",")+")");break;case"PtgBool":I.push(N[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":I.push(N[1]);break;case"PtgNum":I.push(String(N[1]));break;case"PtgStr":I.push('"'+N[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":m=mp(N[1][1],u?{s:u}:b,d),I.push(h1(m,d));break;case"PtgArea":m=mp(N[1][1],b,d),I.push(h1(m,d));break;case"PtgArea3d":E=N[1][1],m=N[1][2],S=$I(h,E,d),I.push(S+"!"+h1(m,d));break;case"PtgAttrSum":I.push("SUM("+I.pop()+")");break;case"PtgName":B=N[1][2];var te=(h.names||[])[B-1]||(h[0]||[])[B],ue=te?te.Name:"SH33TJSNAME"+String(B);ue&&ue.slice(0,6)=="_xlfn."&&!d.xlfn&&(ue=ue.slice(6)),I.push(ue);break;case"PtgNameX":var fe,de=N[1][1];if(B=N[1][2],!(d.biff<=5)){var Ae="";if(((h[de]||[])[0]||[])[0]==14849||(((h[de]||[])[0]||[])[0]==1025?h[de][B]&&h[de][B].itab>0&&(Ae=h.SheetNames[h[de][B].itab-1]+"!"):Ae=h.SheetNames[B-1]+"!"),h[de]&&h[de][B])Ae+=h[de][B].Name;else if(h[0]&&h[0][B])Ae+=h[0][B].Name;else{var we=(XI(h,de,d)||"").split(";;");we[B-1]?Ae=we[B-1]:Ae+="SH33TJSERRX"}I.push(Ae);break}de<0&&(de=-de),h[de]&&(fe=h[de][B]),fe||(fe={Name:"SH33TJSERRY"}),I.push(fe.Name);break;case"PtgParen":var Z="(",ne=")";if(_>=0){switch(D="",a[0][_][1][0]){case 2:Z=Go(" ",a[0][_][1][1])+Z;break;case 3:Z=Go("\r",a[0][_][1][1])+Z;break;case 4:ne=Go(" ",a[0][_][1][1])+ne;break;case 5:ne=Go("\r",a[0][_][1][1])+ne;break;default:if(d.WTF)throw new Error("Unexpected PtgAttrSpaceType "+a[0][_][1][0])}_=-1}I.push(Z+I.pop()+ne);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":I.push("#REF!");break;case"PtgExp":A={c:N[1][1],r:N[1][0]};var j={c:u.c,r:u.r};if(h.sharedf[Mi(A)]){var J=h.sharedf[Mi(A)];I.push(ku(J,b,j,h,d))}else{var q=!1;for(p=0;p!=h.arrayf.length;++p)if(g=h.arrayf[p],!(A.cg[0].e.c||A.rg[0].e.r)){I.push(ku(g[1],b,j,h,d)),q=!0;break}q||I.push(N[1])}break;case"PtgArray":I.push("{"+TE(N[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":_=T;break;case"PtgMissArg":I.push("");break;case"PtgList":I.push("Table"+N[1].idx+"[#"+N[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(N))}if(d.biff!=3&&_>=0&&["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(a[0][T][0])==-1){var z=!0;switch((N=a[0][_])[1][0]){case 4:z=!1;case 0:D=Go(" ",N[1][1]);break;case 5:z=!1;case 1:D=Go("\r",N[1][1]);break;default:if(D="",d.WTF)throw new Error("Unexpected PtgAttrSpaceType "+N[1][0])}I.push((z?D:"")+I.pop()+(z?"":D)),_=-1}}if(I.length>1&&d.WTF)throw new Error("bad formula stack");return I[0]}function lg(a,c,u){var h,d=a.l+c,p=u.biff==2?1:2,g=a.read_shift(p);if(g==65535)return[[],qs(a,c-2)];var A=Lp(a,g,u);return c!==g+p&&(h=Tp(a,c-g-p,A,u)),a.l=d,[A,h]}function eb(a,c,u){var h,d=a.l+c,p=a.read_shift(2),g=Lp(a,p,u);return p==65535?[[],qs(a,c-2)]:(c!==p+2&&(h=Tp(a,d-p-2,g,u)),[g,h])}function rm(a,c,u){var h=a.l+c,d=Th(a);u.biff==2&&++a.l;var p=function(m){var y;if(If(m,m.l+6)!==65535)return[ko(m),"n"];switch(m[m.l]){case 0:return m.l+=8,["String","s"];case 1:return y=m[m.l+2]===1,m.l+=8,[y,"b"];case 2:return y=m[m.l+2],m.l+=8,[y,"e"];case 3:return m.l+=8,["","s"]}return[]}(a),g=a.read_shift(1);u.biff!=2&&(a.read_shift(1),u.biff>=5&&a.read_shift(4));var A=function(m,y,b){var I,E=m.l+y,B=b.biff==2?1:2,S=m.read_shift(B);if(S==65535)return[[],qs(m,y-2)];var _=Lp(m,S,b);return y!==S+B&&(I=Tp(m,y-S-B,_,b)),m.l=E,[_,I]}(a,h-a.l,u);return{cell:d,val:p[0],formula:A,shared:g>>3&1,tt:p[1]}}function tb(a,c,u,h,d){var p=nh(c,u,d),g=function(b){if(b==null){var I=Ir(8);return I.write_shift(1,3),I.write_shift(1,0),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(2,65535),I}return Jd(typeof b=="number"?b:0)}(a.v),A=Ir(6);A.write_shift(2,33),A.write_shift(4,0);for(var m=Ir(a.bf.length),y=0;y0?Tp(a,p,d,u):null]}var Z5=S1,_1=S1,NA=S1,nm=S1,D1={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},rb={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Ll={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function im(a){return a.slice(0,3)=="of:"&&(a=a.slice(3)),a.charCodeAt(0)==61&&(a=a.slice(1)).charCodeAt(0)==61&&(a=a.slice(1)),(a=(a=(a=a.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(c,u){return u.replace(/\./g,"")})).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Qf(a){var c=a.split(":");return[c[0].split(".")[0],c[0].split(".")[1]+(c.length>1?":"+(c[1].split(".")[1]||c[1].split(".")[0]):"")]}var R1={},Mo={},OA=typeof Map<"u";function am(a,c,u){var h=0,d=a.length;if(u){if(OA?u.has(c):Object.prototype.hasOwnProperty.call(u,c)){for(var p=OA?u.get(c):u[c];h-1?(u.width=sg(h),u.customWidth=1):c.width!=null&&(u.width=c.width),c.hidden&&(u.hidden=!0),c.level!=null&&(u.outlineLevel=u.level=c.level),u}function Ds(a,c){if(a){var u=[.7,.7,.75,.75,.3,.3];c=="xlml"&&(u=[1,1,1,1,.5,.5]),a.left==null&&(a.left=u[0]),a.right==null&&(a.right=u[1]),a.top==null&&(a.top=u[2]),a.bottom==null&&(a.bottom=u[3]),a.header==null&&(a.header=u[4]),a.footer==null&&(a.footer=u[5])}}function rl(a,c,u){var h=u.revssf[c.z!=null?c.z:"General"],d=60,p=a.length;if(h==null&&u.ssf){for(;d<392;++d)if(u.ssf[d]==null){$c(c.z,d),u.ssf[d]=c.z,u.revssf[c.z]=h=d;break}}for(d=0;d!=p;++d)if(a[d].numFmtId===h)return d;return a[p]={numFmtId:h,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},p}function nb(a,c,u,h,d,p){try{h.cellNF&&(a.z=xi[c])}catch(A){if(h.WTF)throw A}if(a.t!=="z"||h.cellStyles){if(a.t==="d"&&typeof a.v=="string"&&(a.v=Po(a.v)),(!h||h.cellText!==!1)&&a.t!=="z")try{if(xi[c]==null&&$c(xw[c]||"General",c),a.t==="e")a.w=a.w||bf[a.v];else if(c===0)if(a.t==="n")(0|a.v)===a.v?a.w=a.v.toString(10):a.w=gA(a.v);else if(a.t==="d"){var g=Ys(a.v);a.w=(0|g)===g?g.toString(10):gA(g)}else{if(a.v===void 0)return"";a.w=df(a.v,Mo)}else a.t==="d"?a.w=El(c,Ys(a.v),Mo):a.w=El(c,a.v,Mo)}catch(A){if(h.WTF)throw A}if(h.cellStyles&&u!=null)try{a.s=p.Fills[u],a.s.fgColor&&a.s.fgColor.theme&&!a.s.fgColor.rgb&&(a.s.fgColor.rgb=Ml(d.themeElements.clrScheme[a.s.fgColor.theme].rgb,a.s.fgColor.tint||0),h.WTF&&(a.s.fgColor.raw_rgb=d.themeElements.clrScheme[a.s.fgColor.theme].rgb)),a.s.bgColor&&a.s.bgColor.theme&&(a.s.bgColor.rgb=Ml(d.themeElements.clrScheme[a.s.bgColor.theme].rgb,a.s.bgColor.tint||0),h.WTF&&(a.s.bgColor.raw_rgb=d.themeElements.clrScheme[a.s.bgColor.theme].rgb))}catch(A){if(h.WTF&&p.Fills)throw A}}}function X5(a,c,u){if(a&&a["!ref"]){var h=Ta(a["!ref"]);if(h.e.c/g,$5=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,NE=/<(?:\w:)?hyperlink [^>]*>/gm,Np=/"(\w*:\w*)"/,ek=/<(?:\w:)?col\b[^>]*[\/]?>/g,OE=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Nl=/<(?:\w:)?pageMargins[^>]*\/>/g,Qu=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Ol=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Uh=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function GA(a,c,u,h,d,p,g){if(!a)return a;h||(h={"!id":{}});var A=c.dense?[]:{},m={s:{r:2e6,c:2e6},e:{r:0,c:0}},y="",b="",I=a.match($5);I?(y=a.slice(0,I.index),b=a.slice(I.index+I[0].length)):y=b=a;var E=y.match(Qu);E?om(E[0],A,d,u):(E=y.match(Ol))&&function(de,Ae,we,Z,ne){om(de.slice(0,de.indexOf(">")),we,Z,ne)}(E[0],E[1],A,d,u);var B=(y.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(B>0){var S=y.slice(B,B+50).match(Np);S&&function(de,Ae){var we=Ta(Ae);we.s.r<=we.e.r&&we.s.c<=we.e.c&&we.s.r>=0&&we.s.c>=0&&(de["!ref"]=bi(we))}(A,S[1])}var _=y.match(Uh);_&&_[1]&&function(de,Ae){Ae.Views||(Ae.Views=[{}]),(de.match(xu)||[]).forEach(function(we,Z){var ne=ii(we);Ae.Views[Z]||(Ae.Views[Z]={}),+ne.zoomScale&&(Ae.Views[Z].zoom=+ne.zoomScale),po(ne.rightToLeft)&&(Ae.Views[Z].RTL=!0)})}(_[1],d);var D=[];if(c.cellStyles){var T=y.match(ek);T&&function(de,Ae){for(var we=!1,Z=0;Z!=Ae.length;++Z){var ne=ii(Ae[Z],!0);ne.hidden&&(ne.hidden=po(ne.hidden));var j=parseInt(ne.min,10)-1,J=parseInt(ne.max,10)-1;for(ne.outlineLevel&&(ne.level=+ne.outlineLevel||0),delete ne.min,delete ne.max,ne.width=+ne.width,!we&&ne.width&&(we=!0,xp(ne.width)),Uo(ne);j<=J;)de[j++]=Ro(ne)}}(D,T)}I&&tk(I[1],A,c,m,p,g);var F=b.match(OE);F&&(A["!autofilter"]=function(de){var Ae={ref:(de.match(/ref="([^"]*)"/)||[])[1]};return Ae}(F[0]));var N=[],H=b.match(Oi);if(H)for(B=0;B!=H.length;++B)N[B]=Ta(H[B].slice(H[B].indexOf('"')+1));var W=b.match(NE);W&&function(de,Ae,we){for(var Z=Array.isArray(de),ne=0;ne!=Ae.length;++ne){var j=ii(vo(Ae[ne]),!0);if(!j.ref)return;var J=((we||{})["!id"]||[])[j.id];J?(j.Target=J.Target,j.location&&(j.Target+="#"+ji(j.location))):(j.Target="#"+ji(j.location),J={Target:j.Target,TargetMode:"Internal"}),j.Rel=J,j.tooltip&&(j.Tooltip=j.tooltip,delete j.tooltip);for(var q=Ta(j.ref),z=q.s.r;z<=q.e.r;++z)for(var X=q.s.c;X<=q.e.c;++X){var se=Mi({c:X,r:z});Z?(de[z]||(de[z]=[]),de[z][X]||(de[z][X]={t:"z",v:void 0}),de[z][X].l=j):(de[se]||(de[se]={t:"z",v:void 0}),de[se].l=j)}}}(A,W,h);var V,te,ue=b.match(Nl);if(ue&&(A["!margins"]=(V=ii(ue[0]),te={},["left","right","top","bottom","header","footer"].forEach(function(de){V[de]&&(te[de]=parseFloat(V[de]))}),te)),!A["!ref"]&&m.e.c>=m.s.c&&m.e.r>=m.s.r&&(A["!ref"]=bi(m)),c.sheetRows>0&&A["!ref"]){var fe=Ta(A["!ref"]);c.sheetRows<=+fe.e.r&&(fe.e.r=c.sheetRows-1,fe.e.r>m.e.r&&(fe.e.r=m.e.r),fe.e.rm.e.c&&(fe.e.c=m.e.c),fe.e.c0&&(A["!cols"]=D),N.length>0&&(A["!merges"]=N),A}function om(a,c,u,h){var d=ii(a);u.Sheets[h]||(u.Sheets[h]={}),d.codeName&&(u.Sheets[h].CodeName=ji(vo(d.codeName)))}var ih=["objects","scenarios","selectLockedCells","selectUnlockedCells"],hg=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"],xu=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function PE(a,c,u,h){if(a.c&&u["!comments"].push([c,a.c]),a.v===void 0&&typeof a.f!="string"||a.t==="z"&&!a.f)return"";var d="",p=a.t,g=a.v;if(a.t!=="z")switch(a.t){case"b":d=a.v?"1":"0";break;case"n":d=""+a.v;break;case"e":d=bf[a.v];break;case"d":h&&h.cellDates?d=Po(a.v,-1).toISOString():((a=Ro(a)).t="n",d=""+(a.v=Ys(Po(a.v)))),a.z===void 0&&(a.z=xi[14]);break;default:d=a.v}var A=xs("v",Xa(d)),m={r:c},y=rl(h.cellXfs,a,h);switch(y!==0&&(m.s=y),a.t){case"n":case"z":break;case"d":m.t="d";break;case"b":m.t="b";break;case"e":m.t="e";break;default:if(a.v==null){delete a.t;break}if(a.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(h&&h.bookSST){A=xs("v",""+am(h.Strings,a.v,h.revStrings)),m.t="s";break}m.t="str"}if(a.t!=p&&(a.t=p,a.v=g),typeof a.f=="string"&&a.f){var b=a.F&&a.F.slice(0,c.length)==c?{t:"array",ref:a.F}:null;A=on("f",Xa(a.f),b)+(a.v!=null?A:"")}return a.l&&u["!links"].push([c,a.l]),a.D&&(m.cm=1),on("c",A,m)}var tk=function(){var a=/<(?:\w+:)?c[ \/>]/,c=/<\/(?:\w+:)?row>/,u=/r=["']([^"']*)["']/,h=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,d=/ref=["']([^"']*)["']/,p=Fa("v"),g=Fa("f");return function(A,m,y,b,I,E){for(var B,S,_,D,T,F=0,N="",H=[],W=[],V=0,te=0,ue=0,fe="",de=0,Ae=0,we=0,Z=0,ne=Array.isArray(E.CellXf),j=[],J=[],q=Array.isArray(m),z=[],X={},se=!1,oe=!!y.sheetStubs,ye=A.split(c),ae=0,me=ye.length;ae!=me;++ae){var Fe=(N=ye[ae].trim()).length;if(Fe!==0){var _e=0;e:for(F=0;F":if(N[F-1]!="/"){++F;break e}if(y&&y.cellStyles){if(de=(S=ii(N.slice(_e,F),!0)).r!=null?parseInt(S.r,10):de+1,Ae=-1,y.sheetRows&&y.sheetRows=F)break;if(de=(S=ii(N.slice(_e,F),!0)).r!=null?parseInt(S.r,10):de+1,Ae=-1,!(y.sheetRows&&y.sheetRowsde-1&&(b.s.r=de-1),b.e.r":"")+N,W!=null&&W.length===2){for(V=0,fe=W[1],te=0;te!=fe.length&&!((ue=fe.charCodeAt(te)-64)<1||ue>26);++te)V=26*V+ue;Ae=--V}else++Ae;for(te=0;te!=N.length&&N.charCodeAt(te)!==62;++te);if(++te,(S=ii(N.slice(0,te),!0)).r||(S.r=Mi({r:de-1,c:Ae})),B={t:""},(W=(fe=N.slice(te)).match(p))!=null&&W[1]!==""&&(B.v=ji(W[1])),y.cellFormula){if((W=fe.match(g))!=null&&W[1]!==""){if(B.f=ji(vo(W[1])).replace(/\r\n/g,` `),y.xlfn||(B.f=VI(B.f)),W[0].indexOf('t="array"')>-1)B.F=(fe.match(d)||[])[1],B.F.indexOf(":")>-1&&j.push([Ta(B.F),B.F]);else if(W[0].indexOf('t="shared"')>-1){D=ii(W[0]);var et=ji(vo(W[1]));y.xlfn||(et=VI(et)),J[parseInt(D.si,10)]=[D,et,S.r]}}else(W=fe.match(/]*\/>/))&&J[(D=ii(W[0])).si]&&(B.f=$y(J[D.si][1],J[D.si][2],S.r));var st=As(S.r);for(te=0;te=j[te][0].s.r&&st.r<=j[te][0].e.r&&st.c>=j[te][0].s.c&&st.c<=j[te][0].e.c&&(B.F=j[te][1])}if(S.t==null&&B.v===void 0)if(B.f||B.F)B.v=0,B.t="n";else{if(!oe)continue;B.t="z"}else B.t=S.t||"n";switch(b.s.c>Ae&&(b.s.c=Ae),b.e.c0&&(m["!rows"]=z)}}();function ib(a,c,u,h){var d,p=[ts,on("worksheet",null,{xmlns:hc[0],"xmlns:r":AI})],g=u.SheetNames[a],A="",m=u.Sheets[g];m==null&&(m={});var y=m["!ref"]||"A1",b=Ta(y);if(b.e.c>16383||b.e.r>1048575){if(c.WTF)throw new Error("Range "+y+" exceeds format limit A1:XFD1048576");b.e.c=Math.min(b.e.c,16383),b.e.r=Math.min(b.e.c,1048575),y=bi(b)}h||(h={}),m["!comments"]=[];var I=[];(function(D,T,F,N,H){var W=!1,V={},te=null;if(N.bookType!=="xlsx"&&T.vbaraw){var ue=T.SheetNames[F];try{T.Workbook&&(ue=T.Workbook.Sheets[F].CodeName||ue)}catch{}W=!0,V.codeName=Dh(Xa(ue))}if(D&&D["!outline"]){var fe={summaryBelow:1,summaryRight:1};D["!outline"].above&&(fe.summaryBelow=0),D["!outline"].left&&(fe.summaryRight=0),te=(te||"")+on("outlinePr",null,fe)}(W||te)&&(H[H.length]=on("sheetPr",te,V))})(m,u,a,c,p),p[p.length]=on("dimension",null,{ref:y}),p[p.length]=function(D,T,F,N){var H={workbookViewId:"0"};return(((N||{}).Workbook||{}).Views||[])[0]&&(H.rightToLeft=N.Workbook.Views[0].RTL?"1":"0"),on("sheetViews",on("sheetView",null,H),{})}(0,0,0,u),c.sheetFormat&&(p[p.length]=on("sheetFormatPr",null,{defaultRowHeight:c.sheetFormat.defaultRowHeight||"16",baseColWidth:c.sheetFormat.baseColWidth||"10",outlineLevelRow:c.sheetFormat.outlineLevelRow||"7"})),m["!cols"]!=null&&m["!cols"].length>0&&(p[p.length]=function(D,T){for(var F,N=[""],H=0;H!=T.length;++H)(F=T[H])&&(N[N.length]=on("col",null,PA(H,F)));return N[N.length]="",N.join("")}(0,m["!cols"])),p[d=p.length]="",m["!links"]=[],m["!ref"]!=null&&(A=function(D,T){var F,N,H=[],W=[],V=Ta(D["!ref"]),te="",ue="",fe=[],de=0,Ae=0,we=D["!rows"],Z=Array.isArray(D),ne={r:ue},j=-1;for(Ae=V.s.c;Ae<=V.e.c;++Ae)fe[Ae]=rs(Ae);for(de=V.s.r;de<=V.e.r;++de){for(W=[],ue=Ss(de),Ae=V.s.c;Ae<=V.e.c;++Ae){F=fe[Ae]+ue;var J=Z?(D[de]||[])[Ae]:D[F];J!==void 0&&(te=PE(J,F,D,T))!=null&&W.push(te)}(W.length>0||we&&we[de])&&(ne={r:ue},we&&we[de]&&((N=we[de]).hidden&&(ne.hidden=1),j=-1,N.hpx?j=La(N.hpx):N.hpt&&(j=N.hpt),j>-1&&(ne.ht=j,ne.customHeight=1),N.level&&(ne.outlineLevel=N.level)),H[H.length]=on("row",W.join(""),ne))}if(we)for(;de-1&&(ne.ht=j,ne.customHeight=1),N.level&&(ne.outlineLevel=N.level),H[H.length]=on("row","",ne));return H.join("")}(m,c),A.length>0&&(p[p.length]=A)),p.length>d+1&&(p[p.length]="",p[d]=p[d].replace("/>",">")),m["!protect"]&&(p[p.length]=function(D){var T={sheet:1};return ih.forEach(function(F){D[F]!=null&&D[F]&&(T[F]="1")}),hg.forEach(function(F){D[F]==null||D[F]||(T[F]="0")}),D.password&&(T.password=jI(D.password).toString(16).toUpperCase()),on("sheetProtection",null,T)}(m["!protect"])),m["!autofilter"]!=null&&(p[p.length]=function(D,T,F,N){var H=typeof D.ref=="string"?D.ref:bi(D.ref);F.Workbook||(F.Workbook={Sheets:[]}),F.Workbook.Names||(F.Workbook.Names=[]);var W=F.Workbook.Names,V=dc(H);V.s.r==V.e.r&&(V.e.r=dc(T["!ref"]).e.r,H=bi(V));for(var te=0;te0&&(p[p.length]=function(D){if(D.length===0)return"";for(var T='',F=0;F!=D.length;++F)T+='';return T+""}(m["!merges"]));var E,B,S=-1,_=-1;return m["!links"].length>0&&(p[p.length]="",m["!links"].forEach(function(D){D[1].Target&&(E={ref:D[0]},D[1].Target.charAt(0)!="#"&&(_=co(h,-1,Xa(D[1].Target).replace(/#.*$/,""),ma.HLINK),E["r:id"]="rId"+_),(S=D[1].Target.indexOf("#"))>-1&&(E.location=Xa(D[1].Target.slice(S+1))),D[1].Tooltip&&(E.tooltip=Xa(D[1].Tooltip)),p[p.length]=on("hyperlink",null,E))}),p[p.length]=""),delete m["!links"],m["!margins"]!=null&&(p[p.length]=(Ds(B=m["!margins"]),on("pageMargins",null,B))),c&&!c.ignoreEC&&c.ignoreEC!=null||(p[p.length]=xs("ignoredErrors",on("ignoredError",null,{numberStoredAsText:1,sqref:y}))),I.length>0&&(_=co(h,-1,"../drawings/drawing"+(a+1)+".xml",ma.DRAW),p[p.length]=on("drawing",null,{"r:id":"rId"+_}),m["!drawing"]=I),m["!comments"].length>0&&(_=co(h,-1,"../drawings/vmlDrawing"+(a+1)+".vml",ma.VML),p[p.length]=on("legacyDrawing",null,{"r:id":"rId"+_}),m["!legacy"]=_),p.length>1&&(p[p.length]="",p[1]=p[1].replace("/>",">")),p.join("")}function ab(a,c,u,h){var d=function(p,g,A){var m=Ir(145),y=(A["!rows"]||[])[p]||{};m.write_shift(4,p),m.write_shift(4,0);var b=320;y.hpx?b=20*La(y.hpx):y.hpt&&(b=20*y.hpt),m.write_shift(2,b),m.write_shift(1,0);var I=0;y.level&&(I|=y.level),y.hidden&&(I|=16),(y.hpx||y.hpt)&&(I|=32),m.write_shift(1,I),m.write_shift(1,0);var E=0,B=m.l;m.l+=4;for(var S={r:p,c:0},_=0;_<16;++_)if(!(g.s.c>_+1<<10||g.e.c<_<<10)){for(var D=-1,T=-1,F=_<<10;F<_+1<<10;++F)S.c=F,(Array.isArray(A)?(A[S.r]||[])[S.c]:A[Mi(S)])&&(D<0&&(D=F),T=F);D<0||(++E,m.write_shift(4,D),m.write_shift(4,T))}var N=m.l;return m.l=B,m.write_shift(4,E),m.l=N,m.length>m.l?m.slice(0,m.l):m}(h,u,c);(d.length>17||(c["!rows"]||[])[h])&&Ur(a,0,d)}var ob=kA,rk=Dc;function sb(a){return[jd(a),ko(a),"n"]}var GE=kA,ub=Dc,UE=["left","right","top","bottom","header","footer"];function nk(a,c,u,h,d,p,g){if(c.v===void 0)return!1;var A="";switch(c.t){case"b":A=c.v?"1":"0";break;case"d":(c=Ro(c)).z=c.z||xi[14],c.v=Ys(Po(c.v)),c.t="n";break;case"n":case"e":A=""+c.v;break;default:A=c.v}var m={r:u,c:h};switch(m.s=rl(d.cellXfs,c,d),c.l&&p["!links"].push([Mi(m),c.l]),c.c&&p["!comments"].push([Mi(m),c.c]),c.t){case"s":case"str":return d.bookSST?(A=am(d.Strings,c.v,d.revStrings),m.t="s",m.v=A,g?Ur(a,18,function(y,b,I){return I==null&&(I=Ir(8)),Hd(b,I),I.write_shift(4,b.v),I}(0,m)):Ur(a,7,function(y,b,I){return I==null&&(I=Ir(12)),BA(b,I),I.write_shift(4,b.v),I}(0,m))):(m.t="str",g?Ur(a,17,function(y,b,I){return I==null&&(I=Ir(8+4*y.v.length)),Hd(b,I),Wo(y.v,I),I.length>I.l?I.slice(0,I.l):I}(c,m)):Ur(a,6,function(y,b,I){return I==null&&(I=Ir(12+4*y.v.length)),BA(b,I),Wo(y.v,I),I.length>I.l?I.slice(0,I.l):I}(c,m))),!0;case"n":return c.v==(0|c.v)&&c.v>-1e3&&c.v<1e3?g?Ur(a,13,function(y,b,I){return I==null&&(I=Ir(8)),Hd(b,I),xl(y.v,I),I}(c,m)):Ur(a,2,function(y,b,I){return I==null&&(I=Ir(12)),BA(b,I),xl(y.v,I),I}(c,m)):g?Ur(a,16,function(y,b,I){return I==null&&(I=Ir(12)),Hd(b,I),Jd(y.v,I),I}(c,m)):Ur(a,5,function(y,b,I){return I==null&&(I=Ir(16)),BA(b,I),Jd(y.v,I),I}(c,m)),!0;case"b":return m.t="b",g?Ur(a,15,function(y,b,I){return I==null&&(I=Ir(5)),Hd(b,I),I.write_shift(1,y.v?1:0),I}(c,m)):Ur(a,4,function(y,b,I){return I==null&&(I=Ir(9)),BA(b,I),I.write_shift(1,y.v?1:0),I}(c,m)),!0;case"e":return m.t="e",g?Ur(a,14,function(y,b,I){return I==null&&(I=Ir(8)),Hd(b,I),I.write_shift(1,y.v),I.write_shift(2,0),I.write_shift(1,0),I}(c,m)):Ur(a,3,function(y,b,I){return I==null&&(I=Ir(9)),BA(b,I),I.write_shift(1,y.v),I}(c,m)),!0}return g?Ur(a,12,function(y,b,I){return I==null&&(I=Ir(4)),Hd(b,I)}(0,m)):Ur(a,1,function(y,b,I){return I==null&&(I=Ir(8)),BA(b,I)}(0,m)),!0}function jE(a,c){var u,h;c&&c["!merges"]&&(Ur(a,177,(u=c["!merges"].length,h==null&&(h=Ir(4)),h.write_shift(4,u),h)),c["!merges"].forEach(function(d){Ur(a,176,ub(d))}),Ur(a,178))}function ik(a,c){c&&c["!cols"]&&(Ur(a,390),c["!cols"].forEach(function(u,h){u&&Ur(a,60,function(d,p,g){g==null&&(g=Ir(18));var A=PA(d,p);g.write_shift(-4,d),g.write_shift(-4,d),g.write_shift(4,256*(A.width||10)),g.write_shift(4,0);var m=0;return p.hidden&&(m|=1),typeof A.width=="number"&&(m|=2),p.level&&(m|=p.level<<8),g.write_shift(2,m),g}(h,u))}),Ur(a,391))}function cb(a,c){var u,h;c&&c["!ref"]&&(Ur(a,648),Ur(a,649,(u=Ta(c["!ref"]),(h=Ir(24)).write_shift(4,4),h.write_shift(4,1),Dc(u,h),h)),Ur(a,650))}function lb(a,c,u){c["!links"].forEach(function(h){if(h[1].Target){var d=co(u,-1,h[1].Target.replace(/#.*$/,""),ma.HLINK);Ur(a,494,function(p,g){var A=Ir(50+4*(p[1].Target.length+(p[1].Tooltip||"").length));Dc({s:As(p[0]),e:As(p[0])},A),II("rId"+g,A);var m=p[1].Target.indexOf("#");return Wo((m==-1?"":p[1].Target.slice(m+1))||"",A),Wo(p[1].Tooltip||"",A),Wo("",A),A.slice(0,A.l)}(h,d))}}),delete c["!links"]}function ak(a,c,u){Ur(a,133),Ur(a,137,function(h,d,p){p==null&&(p=Ir(30));var g=924;return(((d||{}).Views||[])[0]||{}).RTL&&(g|=32),p.write_shift(2,g),p.write_shift(4,0),p.write_shift(4,0),p.write_shift(4,0),p.write_shift(1,0),p.write_shift(1,0),p.write_shift(2,0),p.write_shift(2,100),p.write_shift(2,0),p.write_shift(2,0),p.write_shift(2,0),p.write_shift(4,0),p}(0,u)),Ur(a,138),Ur(a,134)}function hb(a,c){var u,h;c["!protect"]&&Ur(a,535,(u=c["!protect"],h==null&&(h=Ir(66)),h.write_shift(2,u.password?jI(u.password):0),h.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(d){d[1]?h.write_shift(4,u[d[0]]==null||u[d[0]]?0:1):h.write_shift(4,u[d[0]]!=null&&u[d[0]]?0:1)}),h))}function HE(a,c,u,h){var d=Ac(),p=u.SheetNames[a],g=u.Sheets[p]||{},A=p;try{u&&u.Workbook&&(A=u.Workbook.Sheets[a].CodeName||A)}catch{}var m,y,b=Ta(g["!ref"]||"A1");if(b.e.c>16383||b.e.r>1048575){if(c.WTF)throw new Error("Range "+(g["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");b.e.c=Math.min(b.e.c,16383),b.e.r=Math.min(b.e.c,1048575)}return g["!links"]=[],g["!comments"]=[],Ur(d,129),(u.vbaraw||g["!outline"])&&Ur(d,147,function(I,E,B){B==null&&(B=Ir(84+4*I.length));var S=192;E&&(E.above&&(S&=-65),E.left&&(S&=-129)),B.write_shift(1,S);for(var _=1;_<3;++_)B.write_shift(1,0);return Wd({auto:1},B),B.write_shift(-4,-1),B.write_shift(-4,-1),Fh(I,B),B.slice(0,B.l)}(A,g["!outline"])),Ur(d,148,rk(b)),ak(d,0,u.Workbook),ik(d,g),function(I,E,B,S){var _,D=Ta(E["!ref"]||"A1"),T="",F=[];Ur(I,145);var N=Array.isArray(E),H=D.e.r;E["!rows"]&&(H=Math.max(D.e.r,E["!rows"].length-1));for(var W=D.s.r;W<=H;++W){T=Ss(W),ab(I,E,D,W);var V=!1;if(W<=D.e.r)for(var te=D.s.c;te<=D.e.c;++te){W===D.s.r&&(F[te]=rs(te)),_=F[te]+T;var ue=N?(E[W]||[])[te]:E[_];V=!!ue&&nk(I,ue,W,te,S,E,V)}}Ur(I,146)}(d,g,0,c),hb(d,g),function(I,E,B,S){if(E["!autofilter"]){var _=E["!autofilter"],D=typeof _.ref=="string"?_.ref:bi(_.ref);B.Workbook||(B.Workbook={Sheets:[]}),B.Workbook.Names||(B.Workbook.Names=[]);var T=B.Workbook.Names,F=dc(D);F.s.r==F.e.r&&(F.e.r=dc(E["!ref"]).e.r,D=bi(F));for(var N=0;N0){var _=co(S,-1,"../drawings/vmlDrawing"+(B+1)+".vml",ma.VML);Ur(I,551,II("rId"+_)),E["!legacy"]=_}}(d,g,a,h),Ur(d,130),d.end()}function Op(a,c,u,h,d,p){var g=p||{"!type":"chart"};if(!a)return p;var A=0,m=0,y="A",b={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(a.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(I){var E=function(B){var S,_=[],D=B.match(/^/);(B.match(/(.*?)<\/c:pt>/gm)||[]).forEach(function(F){var N=F.match(/(.*)<\/c:v><\/c:pt>/);N&&(_[+N[1]]=D?+N[2]:N[2])});var T=ji((B.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(B.match(/(.*?)<\/c:f>/gm)||[]).forEach(function(F){S=F.replace(/<.*?>/g,"")}),[_,T,S]}(I);b.s.r=b.s.c=0,b.e.c=A,y=rs(A),E[0].forEach(function(B,S){g[y+Ss(S)]={t:"n",v:B,z:E[1]},m=S}),b.e.r0&&(g["!ref"]=bi(b)),g}var fg=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],YE=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],fb=[],M1=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function F1(a,c){for(var u=0;u!=a.length;++u)for(var h=a[u],d=0;d!=c.length;++d){var p=c[d];if(h[p[0]]==null)h[p[0]]=p[1];else switch(p[2]){case"bool":typeof h[p[0]]=="string"&&(h[p[0]]=po(h[p[0]]));break;case"int":typeof h[p[0]]=="string"&&(h[p[0]]=parseInt(h[p[0]],10))}}}function JE(a,c){for(var u=0;u!=c.length;++u){var h=c[u];if(a[h[0]]==null)a[h[0]]=h[1];else switch(h[2]){case"bool":typeof a[h[0]]=="string"&&(a[h[0]]=po(a[h[0]]));break;case"int":typeof a[h[0]]=="string"&&(a[h[0]]=parseInt(a[h[0]],10))}}}function WE(a){JE(a.WBProps,fg),JE(a.CalcPr,M1),F1(a.WBView,YE),F1(a.Sheets,fb),Mo.date1904=po(a.WBProps.date1904)}var qE="][*?/\\".split("");function Ab(a,c){if(a.length>31)throw new Error("Sheet names cannot exceed 31 chars");var u=!0;return qE.forEach(function(h){if(a.indexOf(h)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),u}function zE(a){if(!a||!a.SheetNames||!a.Sheets)throw new Error("Invalid Workbook");if(!a.SheetNames.length)throw new Error("Workbook is empty");var c,u,h,d=a.Workbook&&a.Workbook.Sheets||[];c=a.SheetNames,u=d,h=!!a.vbaraw,c.forEach(function(g,A){Ab(g);for(var m=0;m22)throw new Error("Bad Code Name: Worksheet"+y)}});for(var p=0;p0,h={codeName:"ThisWorkbook"};a.Workbook&&a.Workbook.WBProps&&(fg.forEach(function(A){a.Workbook.WBProps[A[0]]!=null&&a.Workbook.WBProps[A[0]]!=A[1]&&(h[A[0]]=a.Workbook.WBProps[A[0]])}),a.Workbook.WBProps.CodeName&&(h.codeName=a.Workbook.WBProps.CodeName,delete h.CodeName)),c[c.length]=on("workbookPr",null,h);var d=a.Workbook&&a.Workbook.Sheets||[],p=0;if(d&&d[0]&&d[0].Hidden){for(c[c.length]="",p=0;p!=a.SheetNames.length&&d[p]&&d[p].Hidden;++p);p==a.SheetNames.length&&(p=0),c[c.length]='',c[c.length]=""}for(c[c.length]="",p=0;p!=a.SheetNames.length;++p){var g={name:Xa(a.SheetNames[p].slice(0,31))};if(g.sheetId=""+(p+1),g["r:id"]="rId"+(p+1),d[p])switch(d[p].Hidden){case 1:g.state="hidden";break;case 2:g.state="veryHidden"}c[c.length]=on("sheet",null,g)}return c[c.length]="",u&&(c[c.length]="",a.Workbook&&a.Workbook.Names&&a.Workbook.Names.forEach(function(A){var m={name:A.Name};A.Comment&&(m.comment=A.Comment),A.Sheet!=null&&(m.localSheetId=""+A.Sheet),A.Hidden&&(m.hidden="1"),A.Ref&&(c[c.length]=on("definedName",Xa(A.Ref),m))}),c[c.length]=""),c.length>2&&(c[c.length]="",c[1]=c[1].replace("/>",">")),c.join("")}function gb(a,c){var u={};return a.read_shift(4),u.ArchID=a.read_shift(4),a.l+=c-8,u}function T1(a,c){if(c.Workbook&&c.Workbook.Sheets){for(var u,h,d=c.Workbook.Sheets,p=0,g=-1,A=-1;pg||(Ur(a,135),Ur(a,158,(u=g,h||(h=Ir(29)),h.write_shift(-4,0),h.write_shift(-4,460),h.write_shift(4,28800),h.write_shift(4,17600),h.write_shift(4,500),h.write_shift(4,u),h.write_shift(4,u),h.write_shift(1,120),h.length>h.l?h.slice(0,h.l):h)),Ur(a,136))}}function sk(a,c){var u=Ac();return Ur(u,131),Ur(u,128,function(h,d){d||(d=Ir(127));for(var p=0;p!=4;++p)d.write_shift(4,0);return Wo("SheetJS",d),Wo(ap.version,d),Wo(ap.version,d),Wo("7262",d),d.length>d.l?d.slice(0,d.l):d}()),Ur(u,153,function(h,d){d||(d=Ir(72));var p=0;return h&&h.filterPrivacy&&(p|=8),d.write_shift(4,p),d.write_shift(4,0),Fh(h&&h.CodeName||"ThisWorkbook",d),d.slice(0,d.l)}(a.Workbook&&a.Workbook.WBProps||null)),T1(u,a),function(h,d){Ur(h,143);for(var p=0;p!=d.SheetNames.length;++p)Ur(h,156,(g={Hidden:d.Workbook&&d.Workbook.Sheets&&d.Workbook.Sheets[p]&&d.Workbook.Sheets[p].Hidden||0,iTabID:p+1,strRelID:"rId"+(p+1),name:d.SheetNames[p]},(A=void 0)||(A=Ir(127)),A.write_shift(4,g.Hidden),A.write_shift(4,g.iTabID),II(g.strRelID,A),Wo(g.name.slice(0,31),A),A.length>A.l?A.slice(0,A.l):A));var g,A;Ur(h,144)}(u,a),Ur(u,132),u.end()}function uk(a,c,u){return c.slice(-4)===".bin"?function(h,d){var p={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},g=[],A=!1;d||(d={}),d.biff=12;var m=[],y=[[]];return y.SheetNames=[],y.XTI=[],jp[16]={n:"BrtFRTArchID$",f:gb},Mh(h,function(b,I,E){switch(E){case 156:y.SheetNames.push(b.name),p.Sheets.push(b);break;case 153:p.WBProps=b;break;case 39:b.Sheet!=null&&(d.SID=b.Sheet),b.Ref=ku(b.Ptg,0,null,y,d),delete d.SID,delete b.Ptg,m.push(b);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:y[0].length?y.push([E,b]):y[0]=[E,b],y[y.length-1].XTI=[];break;case 362:y.length===0&&(y[0]=[],y[0].XTI=[]),y[y.length-1].XTI=y[y.length-1].XTI.concat(b),y.XTI=y.XTI.concat(b);break;case 35:case 37:g.push(E),A=!0;break;case 36:case 38:g.pop(),A=!1;break;default:if(!I.T){if(!A||d.WTF&&g[g.length-1]!=37&&g[g.length-1]!=35)throw new Error("Unexpected record 0x"+E.toString(16))}}},d),WE(p),p.Names=m,p.supbooks=y,p}(a,u):function(h,d){if(!h)throw new Error("Could not find file");var p={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},g=!1,A="xmlns",m={},y=0;if(h.replace(Js,function(b,I){var E=ii(b);switch(cc(E[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":fg.forEach(function(B){if(E[B[0]]!=null)switch(B[2]){case"bool":p.WBProps[B[0]]=po(E[B[0]]);break;case"int":p.WBProps[B[0]]=parseInt(E[B[0]],10);break;default:p.WBProps[B[0]]=E[B[0]]}}),E.codeName&&(p.WBProps.CodeName=vo(E.codeName));break;case"":delete E[0],p.WBView.push(E);break;case"":case"":g=!0;break;case"":case"":case"":g=!1;break;case"":m.Ref=ji(vo(h.slice(y,I))),p.Names.push(m);break;case"":delete E[0],p.CalcPr=E;break;default:if(!g&&d.WTF)throw new Error("unrecognized "+E[0]+" in workbook")}return b}),hc.indexOf(p.xmlns)===-1)throw new Error("Unknown Namespace: "+p.xmlns);return WE(p),p}(a,u)}function ck(a,c,u,h,d,p,g,A){return c.slice(-4)===".bin"?function(m,y,b,I,E,B,S){if(!m)return m;var _=y||{};I||(I={"!id":{}});var D,T,F,N,H,W,V,te,ue,fe,de=_.dense?[]:{},Ae={s:{r:2e6,c:2e6},e:{r:0,c:0}},we=!1,Z=!1,ne=[];_.biff=12,_["!row"]=0;var j=0,J=!1,q=[],z={},X=_.supbooks||E.supbooks||[[]];if(X.sharedf=z,X.arrayf=q,X.SheetNames=E.SheetNames||E.Sheets.map(function(_e){return _e.name}),!_.supbooks&&(_.supbooks=X,E.Names))for(var se=0;se=st[0].s.r&&T.r<=st[0].e.r&&W>=st[0].s.c&&W<=st[0].e.c&&(F.F=bi(st[0]),J=!0)}!J&&_e.length>3&&(F.f=_e[3])}if(Ae.s.r>T.r&&(Ae.s.r=T.r),Ae.s.c>W&&(Ae.s.c=W),Ae.e.rT.r&&(Ae.s.r=T.r),Ae.s.c>W&&(Ae.s.c=W),Ae.e.r=_e.s;)ye[_e.e--]={width:_e.w/256,hidden:!!(1&_e.flags),level:_e.level},me||(me=!0,xp(_e.w/256)),Uo(ye[_e.e+1]);break;case 161:de["!autofilter"]={ref:bi(_e)};break;case 476:de["!margins"]=_e;break;case 147:E.Sheets[b]||(E.Sheets[b]={}),_e.name&&(E.Sheets[b].CodeName=_e.name),(_e.above||_e.left)&&(de["!outline"]={above:_e.above,left:_e.left});break;case 137:E.Views||(E.Views=[{}]),E.Views[0]||(E.Views[0]={}),_e.RTL&&(E.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:case 37:we=!0;break;case 36:case 38:we=!1;break;default:if(!rt.T){if(!we||_.WTF)throw new Error("Unexpected record 0x"+et.toString(16))}}},_),delete _.supbooks,delete _["!row"],!de["!ref"]&&(Ae.s.r<2e6||D&&(D.e.r>0||D.e.c>0||D.s.r>0||D.s.c>0))&&(de["!ref"]=bi(D||Ae)),_.sheetRows&&de["!ref"]){var Fe=Ta(de["!ref"]);_.sheetRows<=+Fe.e.r&&(Fe.e.r=_.sheetRows-1,Fe.e.r>Ae.e.r&&(Fe.e.r=Ae.e.r),Fe.e.rAe.e.c&&(Fe.e.c=Ae.e.c),Fe.e.c0&&(de["!merges"]=ne),ye.length>0&&(de["!cols"]=ye),ae.length>0&&(de["!rows"]=ae),de}(a,h,u,d,p,g,A):GA(a,h,u,d,p,g,A)}function KE(a,c,u,h,d,p,g,A){return c.slice(-4)===".bin"?function(m,y,b,I,E){if(!m)return m;I||(I={"!id":{}});var B={"!type":"chart","!drawel":null,"!rel":""},S=!1;return Mh(m,function(_,D,T){switch(T){case 550:B["!rel"]=_;break;case 651:E.Sheets[b]||(E.Sheets[b]={}),_.name&&(E.Sheets[b].CodeName=_.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:case 37:case 38:break;case 35:S=!0;break;case 36:S=!1;break;default:if(!(D.T>0)){if(!(D.T<0)){if(!S||y.WTF)throw new Error("Unexpected record 0x"+T.toString(16))}}}},y),I["!id"][B["!rel"]]&&(B["!drawel"]=I["!id"][B["!rel"]]),B}(a,h,u,d,p):function(m,y,b,I,E){if(!m)return m;I||(I={"!id":{}});var B,S={"!type":"chart","!drawel":null,"!rel":""},_=m.match(Qu);return _&&om(_[0],0,E,b),(B=m.match(/drawing r:id="(.*?)"/))&&(S["!rel"]=B[1]),I["!id"][S["!rel"]]&&(S["!drawel"]=I["!id"][S["!rel"]]),S}(a,0,u,d,p)}function lk(a,c,u,h){return c.slice(-4)===".bin"?function(d,p,g){var A={NumberFmt:[]};for(var m in xi)A.NumberFmt[m]=xi[m];A.CellXf=[],A.Fonts=[];var y=[],b=!1;return Mh(d,function(I,E,B){switch(B){case 44:A.NumberFmt[I[0]]=I[1],$c(I[1],I[0]);break;case 43:A.Fonts.push(I),I.color.theme!=null&&p&&p.themeElements&&p.themeElements.clrScheme&&(I.color.rgb=Ml(p.themeElements.clrScheme[I.color.theme].rgb,I.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:y[y.length-1]==617&&A.CellXf.push(I);break;case 35:b=!0;break;case 36:b=!1;break;case 37:y.push(B),b=!0;break;case 38:y.pop(),b=!1;break;default:if(E.T>0)y.push(B);else if(E.T<0)y.pop();else if(!b||g.WTF&&y[y.length-1]!=37)throw new Error("Unexpected record 0x"+B.toString(16))}}),A}(a,u,h):bE(a,u,h)}function VE(a,c,u){return c.slice(-4)===".bin"?function(h,d){var p=[],g=!1;return Mh(h,function(A,m,y){switch(y){case 159:p.Count=A[0],p.Unique=A[1];break;case 19:p.push(A);break;case 160:return!0;case 35:g=!0;break;case 36:g=!1;break;default:if(m.T,!g||d.WTF)throw new Error("Unexpected record 0x"+y.toString(16))}}),p}(a,u):function(h,d){var p=[],g="";if(!h)return p;var A=h.match(GI);if(A){g=A[2].replace(Yy,"").split(b1);for(var m=0;m!=g.length;++m){var y=el(g[m].trim(),d);y!=null&&(p[p.length]=y)}A=ii(A[1]),p.Count=A.count,p.Unique=A.uniqueCount}return p}(a,u)}function ah(a,c,u){return c.slice(-4)===".bin"?function(h,d){var p=[],g=[],A={},m=!1;return Mh(h,function(y,b,I){switch(I){case 632:g.push(y);break;case 635:A=y;break;case 637:A.t=y.t,A.h=y.h,A.r=y.r;break;case 636:if(A.author=g[A.iauthor],delete A.iauthor,d.sheetRows&&A.rfx&&d.sheetRows<=A.rfx.r)break;A.t||(A.t=""),delete A.rfx,p.push(A);break;case 3072:case 37:case 38:break;case 35:m=!0;break;case 36:m=!1;break;default:if(!b.T){if(!m||d.WTF)throw new Error("Unexpected record 0x"+I.toString(16))}}}),p}(a,u):function(h,d){if(h.match(/<(?:\w+:)?comments *\/>/))return[];var p=[],g=[],A=h.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);A&&A[1]&&A[1].split(/<\/\w*:?author>/).forEach(function(y){if(y!==""&&y.trim()!==""){var b=y.match(/<(?:\w+:)?author[^>]*>(.*)/);b&&p.push(b[1])}});var m=h.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return m&&m[1]&&m[1].split(/<\/\w*:?comment>/).forEach(function(y){if(y!==""&&y.trim()!==""){var b=y.match(/<(?:\w+:)?comment[^>]*>/);if(b){var I=ii(b[0]),E={author:I.authorId&&p[I.authorId]||"sheetjsghost",ref:I.ref,guid:I.guid},B=As(I.ref);if(!(d.sheetRows&&d.sheetRows<=B.r)){var S=y.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),_=!!S&&!!S[1]&&el(S[1])||{r:"",t:"",h:""};E.r=_.r,_.r==""&&(_.t=_.h=""),E.t=(_.t||"").replace(/\r\n/g,` `).replace(/\r/g,` `),d.cellHTML&&(E.h=_.h),g.push(E)}}}}),g}(a,u)}function Pp(a,c,u){return c.slice(-4)===".bin"?function(h){var d=[];return Mh(h,function(p,g,A){if(A===63)d.push(p);else if(!g.T)throw new Error("Unexpected record 0x"+A.toString(16))}),d}(a):function(h){var d=[];if(!h)return d;var p=1;return(h.match(Js)||[]).forEach(function(g){var A=ii(g);switch(A[0]){case"":case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":y=2;break;case"":m=!1;break;case"-1?ji(c||a).replace(/<.*?>/g,""):h.r;break;case"DateTime":a.slice(-1)!="Z"&&(a+="Z"),h.v=(Po(a)-new Date(Date.UTC(1899,11,30)))/864e5,h.v!=h.v?h.v=ji(a):h.v<60&&(h.v=h.v-1),b&&b!="General"||(b="yyyy-mm-dd");case"Number":h.v===void 0&&(h.v=+a),h.t||(h.t="n");break;case"Error":h.t="e",h.v=$w[a],y.cellText!==!1&&(h.w=a);break;default:a==""&&c==""?h.t="z":(h.t="s",h.v=s1(c||a))}if(hk(h,b,y),y.cellFormula!==!1)if(h.Formula){var _=ji(h.Formula);_.charCodeAt(0)==61&&(_=_.slice(1)),h.f=Ph(_,d),delete h.Formula,h.ArrayRange=="RC"?h.F=Ph("RC:RC",d):h.ArrayRange&&(h.F=Ph(h.ArrayRange,d),m.push([Ta(h.F),h.F]))}else for(S=0;S=m[S][0].s.r&&d.r<=m[S][0].e.r&&d.c>=m[S][0].s.c&&d.c<=m[S][0].e.c&&(h.F=m[S][1]);y.cellStyles&&(B.forEach(function(D){!E.patternType&&D.patternType&&(E.patternType=D.patternType)}),h.s=E),h.StyleID!==void 0&&(h.ixfe=h.StyleID)}function tB(a){a.t=a.v||"",a.t=a.t.replace(/\r\n/g,` `).replace(/\r/g,` `),a.v=a.w=a.ixfe=void 0}function vb(a,c){var u=c||{};hp();var h=X0($l(a));u.type!="binary"&&u.type!="array"&&u.type!="base64"||(h=vo(h));var d,p=h.slice(0,1024).toLowerCase(),g=!1;if((1023&(p=p.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&p.indexOf(","),1023&p.indexOf(";"))){var A=Ro(u);return A.type="string",ag.to_workbook(h,A)}if(p.indexOf("=0&&(g=!0)}),g)return function(Ie,Re){var qe=Ie.match(/[\s\S]*?<\/table>/gi);if(!qe||qe.length==0)throw new Error("Invalid HTML: could not find ");if(qe.length==1)return Sc(hB(qe[0],Re),Re);var pt={SheetNames:[],Sheets:{}};return qe.forEach(function(Lt,Qe){Fb(pt,hB(Lt,Re),"Sheet"+(Qe+1))}),pt}(h,u);Fo={"General Number":"General","General Date":xi[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":xi[15],"Short Date":xi[14],"Long Time":xi[19],"Medium Time":xi[18],"Short Time":xi[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:xi[2],Standard:xi[4],Percent:xi[10],Scientific:xi[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var m,y,b=[],I={},E=[],B=u.dense?[]:{},S="",_={},D={},T=Zs(''),F=0,N=0,H=0,W={s:{r:2e6,c:2e6},e:{r:0,c:0}},V={},te={},ue="",fe=0,de=[],Ae={},we={},Z=0,ne=[],j=[],J={},q=[],z=!1,X=[],se=[],oe={},ye=0,ae=0,me={Sheets:[],WBProps:{date1904:!1}},Fe={};Nd.lastIndex=0,h=h.replace(//gm,"");for(var _e="";d=Nd.exec(h);)switch(d[3]=(_e=d[3]).toLowerCase()){case"data":if(_e=="data"){if(d[1]==="/"){if((m=b.pop())[0]!==d[3])throw new Error("Bad state: "+m.join("|"))}else d[0].charAt(d[0].length-2)!=="/"&&b.push([d[3],!0]);break}if(b[b.length-1][1])break;d[1]==="/"?eB(h.slice(F,d.index),ue,T,b[b.length-1][0]=="comment"?J:_,{c:N,r:H},V,q[N],D,X,u):(ue="",T=Zs(d[0]),F=d.index+d[0].length);break;case"cell":if(d[1]==="/")if(j.length>0&&(_.c=j),(!u.sheetRows||u.sheetRows>H)&&_.v!==void 0&&(u.dense?(B[H]||(B[H]=[]),B[H][N]=_):B[rs(N)+Ss(H)]=_),_.HRef&&(_.l={Target:ji(_.HRef)},_.HRefScreenTip&&(_.l.Tooltip=_.HRefScreenTip),delete _.HRef,delete _.HRefScreenTip),(_.MergeAcross||_.MergeDown)&&(ye=N+(0|parseInt(_.MergeAcross,10)),ae=H+(0|parseInt(_.MergeDown,10)),de.push({s:{c:N,r:H},e:{c:ye,r:ae}})),u.sheetStubs)if(_.MergeAcross||_.MergeDown){for(var rt=N;rt<=ye;++rt)for(var et=H;et<=ae;++et)(rt>N||et>H)&&(u.dense?(B[et]||(B[et]=[]),B[et][rt]={t:"z"}):B[rs(rt)+Ss(et)]={t:"z"});N=ye+1}else++N;else _.MergeAcross?N=ye+1:++N;else(_=XE(d[0])).Index&&(N=+_.Index-1),NW.e.c&&(W.e.c=N),d[0].slice(-2)==="/>"&&++N,j=[];break;case"row":d[1]==="/"||d[0].slice(-2)==="/>"?(HW.e.r&&(W.e.r=H),d[0].slice(-2)==="/>"&&(D=Zs(d[0])).Index&&(H=+D.Index-1),N=0,++H):((D=Zs(d[0])).Index&&(H=+D.Index-1),oe={},(D.AutoFitHeight=="0"||D.Height)&&(oe.hpx=parseInt(D.Height,10),oe.hpt=La(oe.hpx),se[H]=oe),D.Hidden=="1"&&(oe.hidden=!0,se[H]=oe));break;case"worksheet":if(d[1]==="/"){if((m=b.pop())[0]!==d[3])throw new Error("Bad state: "+m.join("|"));E.push(S),W.s.r<=W.e.r&&W.s.c<=W.e.c&&(B["!ref"]=bi(W),u.sheetRows&&u.sheetRows<=W.e.r&&(B["!fullref"]=B["!ref"],W.e.r=u.sheetRows-1,B["!ref"]=bi(W))),de.length&&(B["!merges"]=de),q.length>0&&(B["!cols"]=q),se.length>0&&(B["!rows"]=se),I[S]=B}else W={s:{r:2e6,c:2e6},e:{r:0,c:0}},H=N=0,b.push([d[3],!1]),m=Zs(d[0]),S=ji(m.Name),B=u.dense?[]:{},de=[],X=[],se=[],Fe={name:S,Hidden:0},me.Sheets.push(Fe);break;case"table":if(d[1]==="/"){if((m=b.pop())[0]!==d[3])throw new Error("Bad state: "+m.join("|"))}else{if(d[0].slice(-2)=="/>")break;b.push([d[3],!1]),q=[],z=!1}break;case"style":d[1]==="/"?fk(V,te,u):te=Zs(d[0]);break;case"numberformat":te.nf=ji(Zs(d[0]).Format||"General"),Fo[te.nf]&&(te.nf=Fo[te.nf]);for(var st=0;st!=392&&xi[st]!=te.nf;++st);if(st==392){for(st=57;st!=392;++st)if(xi[st]==null){$c(te.nf,st);break}}break;case"column":if(b[b.length-1][0]!=="table")break;if((y=Zs(d[0])).Hidden&&(y.hidden=!0,delete y.Hidden),y.Width&&(y.wpx=parseInt(y.Width,10)),!z&&y.wpx>10){z=!0,Bu=6;for(var Ge=0;Ge0&&(je.Sheet=me.Sheets.length-1),me.Names.push(je);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if(d[0].slice(-2)==="/>")break;d[1]==="/"?ue+=h.slice(fe,d.index):fe=d.index+d[0].length;break;case"interior":if(!u.cellStyles)break;te.Interior=Zs(d[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(d[0].slice(-2)==="/>")break;d[1]==="/"?Oy(Ae,_e,h.slice(Z,d.index)):Z=d.index+d[0].length;break;case"styles":case"workbook":if(d[1]==="/"){if((m=b.pop())[0]!==d[3])throw new Error("Bad state: "+m.join("|"))}else b.push([d[3],!1]);break;case"comment":if(d[1]==="/"){if((m=b.pop())[0]!==d[3])throw new Error("Bad state: "+m.join("|"));tB(J),j.push(J)}else b.push([d[3],!1]),J={a:(m=Zs(d[0])).Author};break;case"autofilter":if(d[1]==="/"){if((m=b.pop())[0]!==d[3])throw new Error("Bad state: "+m.join("|"))}else if(d[0].charAt(d[0].length-2)!=="/"){var lt=Zs(d[0]);B["!autofilter"]={ref:Ph(lt.Range).replace(/\$/g,"")},b.push([d[3],!0])}break;case"datavalidation":if(d[1]==="/"){if((m=b.pop())[0]!==d[3])throw new Error("Bad state: "+m.join("|"))}else d[0].charAt(d[0].length-2)!=="/"&&b.push([d[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(d[1]==="/"){if((m=b.pop())[0]!==d[3])throw new Error("Bad state: "+m.join("|"))}else d[0].charAt(d[0].length-2)!=="/"&&b.push([d[3],!0]);break;default:if(b.length==0&&d[3]=="document"||b.length==0&&d[3]=="uof")return fm(h,u);var Me=!0;switch(b[b.length-1][0]){case"officedocumentsettings":switch(d[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:Me=!1}break;case"componentoptions":switch(d[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:Me=!1}break;case"excelworkbook":switch(d[3]){case"date1904":me.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:Me=!1}break;case"workbookoptions":switch(d[3]){case"owcversion":case"height":case"width":break;default:Me=!1}break;case"worksheetoptions":switch(d[3]){case"visible":if(d[0].slice(-2)!=="/>")if(d[1]==="/")switch(h.slice(Z,d.index)){case"SheetHidden":Fe.Hidden=1;break;case"SheetVeryHidden":Fe.Hidden=2}else Z=d.index+d[0].length;break;case"header":B["!margins"]||Ds(B["!margins"]={},"xlml"),isNaN(+ii(d[0]).Margin)||(B["!margins"].header=+ii(d[0]).Margin);break;case"footer":B["!margins"]||Ds(B["!margins"]={},"xlml"),isNaN(+ii(d[0]).Margin)||(B["!margins"].footer=+ii(d[0]).Margin);break;case"pagemargins":var Ke=ii(d[0]);B["!margins"]||Ds(B["!margins"]={},"xlml"),isNaN(+Ke.Top)||(B["!margins"].top=+Ke.Top),isNaN(+Ke.Left)||(B["!margins"].left=+Ke.Left),isNaN(+Ke.Right)||(B["!margins"].right=+Ke.Right),isNaN(+Ke.Bottom)||(B["!margins"].bottom=+Ke.Bottom);break;case"displayrighttoleft":me.Views||(me.Views=[]),me.Views[0]||(me.Views[0]={}),me.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":B["!outline"]||(B["!outline"]={}),B["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":B["!outline"]||(B["!outline"]={}),B["!outline"].left=!0;break;default:Me=!1}break;case"pivottable":case"pivotcache":switch(d[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:Me=!1}break;case"pagebreaks":switch(d[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:Me=!1}break;case"autofilter":switch(d[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:Me=!1}break;case"querytable":switch(d[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:Me=!1}break;case"datavalidation":switch(d[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:Me=!1}break;case"sorting":case"conditionalformatting":switch(d[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:Me=!1}break;case"mapinfo":case"schema":case"data":switch(d[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:Me=!1}break;case"smarttags":break;default:Me=!1}if(Me||d[3].match(/!\[CDATA/))break;if(!b[b.length-1][1])throw"Unrecognized tag: "+d[3]+"|"+b.join("|");if(b[b.length-1][0]==="customdocumentproperties"){if(d[0].slice(-2)==="/>")break;d[1]==="/"?$E(we,_e,ne,h.slice(Z,d.index)):(ne=d,Z=d.index+d[0].length);break}if(u.WTF)throw"Unrecognized tag: "+d[3]+"|"+b.join("|")}var Rt={};return u.bookSheets||u.bookProps||(Rt.Sheets=I),Rt.SheetNames=E,Rt.Workbook=me,Rt.SSF=Ro(xi),Rt.Props=Ae,Rt.Custprops=we,Rt}function L1(a,c){switch(gm(c=c||{}),c.type||"base64"){case"base64":return vb(Ra(a),c);case"binary":case"buffer":case"file":return vb(a,c);case"array":return vb(Af(a),c)}}function N1(a,c){var u=[];return a.Props&&u.push(function(h,d){var p=[];return to(Kd).map(function(g){for(var A=0;A'+A.join("")+""}(a.Props,a.Custprops)),u.join("")}function yb(a){return on("NamedRange",null,{"ss:Name":a.Name,"ss:RefersTo":"="+Xy(a.Ref,{r:0,c:0})})}function oh(a,c,u,h,d,p,g){if(!a||a.v==null&&a.f==null)return"";var A={};if(a.f&&(A["ss:Formula"]="="+Xa(Xy(a.f,g))),a.F&&a.F.slice(0,c.length)==c){var m=As(a.F.slice(c.length+1));A["ss:ArrayRange"]="RC:R"+(m.r==g.r?"":"["+(m.r-g.r)+"]")+"C"+(m.c==g.c?"":"["+(m.c-g.c)+"]")}if(a.l&&a.l.Target&&(A["ss:HRef"]=Xa(a.l.Target),a.l.Tooltip&&(A["x:HRefScreenTip"]=Xa(a.l.Tooltip))),u["!merges"])for(var y=u["!merges"],b=0;b!=y.length;++b)y[b].s.c==g.c&&y[b].s.r==g.r&&(y[b].e.c>y[b].s.c&&(A["ss:MergeAcross"]=y[b].e.c-y[b].s.c),y[b].e.r>y[b].s.r&&(A["ss:MergeDown"]=y[b].e.r-y[b].s.r));var I="",E="";switch(a.t){case"z":if(!h.sheetStubs)return"";break;case"n":I="Number",E=String(a.v);break;case"b":I="Boolean",E=a.v?"1":"0";break;case"e":I="Error",E=bf[a.v];break;case"d":I="DateTime",E=new Date(a.v).toISOString(),a.z==null&&(a.z=a.z||xi[14]);break;case"s":I="String",E=((a.v||"")+"").replace(Ou,function(D){return cI[D]}).replace(o1,function(D){return"&#x"+D.charCodeAt(0).toString(16).toUpperCase()+";"})}var B=rl(h.cellXfs,a,h);A["ss:StyleID"]="s"+(21+B),A["ss:Index"]=g.c+1;var S=a.v!=null?E:"",_=a.t=="z"?"":''+S+"";return(a.c||[]).length>0&&(_+=a.c.map(function(D){var T=on("ss:Data",(D.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"});return on("Comment",T,{"ss:Author":D.a})}).join("")),on("Cell",_,A)}function Ak(a,c){var u='"}function rB(a,c,u){var h=[],d=u.SheetNames[a],p=u.Sheets[d],g=p?function(A,m,y,b){if(!A||!((b||{}).Workbook||{}).Names)return"";for(var I=b.Workbook.Names,E=[],B=0;B0&&h.push(""+g+""),g=p?function(A,m){if(!A["!ref"])return"";var y=Ta(A["!ref"]),b=A["!merges"]||[],I=0,E=[];A["!cols"]&&A["!cols"].forEach(function(W,V){Uo(W);var te=!!W.width,ue=PA(V,W),fe={"ss:Index":V+1};te&&(fe["ss:Width"]=Fl(ue.width)),W.hidden&&(fe["ss:Hidden"]="1"),E.push(on("Column",null,fe))});for(var B=Array.isArray(A),S=y.s.r;S<=y.e.r;++S){for(var _=[Ak(S,(A["!rows"]||[])[S])],D=y.s.c;D<=y.e.c;++D){var T=!1;for(I=0;I!=b.length;++I)if(!(b[I].s.c>D||b[I].s.r>S||b[I].e.c"),_.length>2&&E.push(_.join(""))}return E.join("")}(p,c):"",g.length>0&&h.push("
"+g+"
"),h.push(function(A,m,y,b){if(!A)return"";var I=[];if(A["!margins"]&&(I.push(""),A["!margins"].header&&I.push(on("Header",null,{"x:Margin":A["!margins"].header})),A["!margins"].footer&&I.push(on("Footer",null,{"x:Margin":A["!margins"].footer})),I.push(on("PageMargins",null,{"x:Bottom":A["!margins"].bottom||"0.75","x:Left":A["!margins"].left||"0.7","x:Right":A["!margins"].right||"0.7","x:Top":A["!margins"].top||"0.75"})),I.push("")),b&&b.Workbook&&b.Workbook.Sheets&&b.Workbook.Sheets[y])if(b.Workbook.Sheets[y].Hidden)I.push(on("Visible",b.Workbook.Sheets[y].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var E=0;E")}return((((b||{}).Workbook||{}).Views||[])[0]||{}).RTL&&I.push(""),A["!protect"]&&(I.push(xs("ProtectContents","True")),A["!protect"].objects&&I.push(xs("ProtectObjects","True")),A["!protect"].scenarios&&I.push(xs("ProtectScenarios","True")),A["!protect"].selectLockedCells==null||A["!protect"].selectLockedCells?A["!protect"].selectUnlockedCells==null||A["!protect"].selectUnlockedCells||I.push(xs("EnableSelection","UnlockedCells")):I.push(xs("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(B){A["!protect"][B[0]]&&I.push("<"+B[1]+"/>")})),I.length==0?"":on("WorksheetOptions",I.join(""),{xmlns:yf})}(p,0,a,u)),h.join("")}function nB(a,c){c||(c={}),a.SSF||(a.SSF=Ro(xi)),a.SSF&&(hp(),r1(a.SSF),c.revssf=Ap(a.SSF),c.revssf[a.SSF[65535]]=0,c.ssf=a.SSF,c.cellXfs=[],rl(c.cellXfs,{},{revssf:{General:0}}));var u=[];u.push(N1(a,c)),u.push(""),u.push(""),u.push("");for(var h=0;h'];return p.cellXfs.forEach(function(A,m){var y=[];y.push(on("NumberFormat",null,{"ss:Format":Xa(xi[A.numFmtId])}));var b={"ss:ID":"s"+(21+m)};g.push(on("Style",y.join(""),b))}),on("Styles",g.join(""))}(0,c),u[3]=function(d){if(!((d||{}).Workbook||{}).Names)return"";for(var p=d.Workbook.Names,g=[],A=0;A40?c:(u.l-=4,c.Reserved1=u.read_shift(0,"lpstr-ansi"),u.length-u.l<=4||(h=u.read_shift(4))!==1907505652?c:(c.UnicodeClipboardFormat=function(d){return CI(d,2)}(u),(h=u.read_shift(4))==0||h>40?c:(u.l-=4,void(c.Reserved2=u.read_shift(0,"lpwstr")))))}var gk=[60,1084,2066,2165,2175];function um(a,c,u,h,d){var p=h,g=[],A=u.slice(u.l,u.l+p);if(d&&d.enc&&d.enc.insitu&&A.length>0)switch(a){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:d.enc.insitu(A)}g.push(A),u.l+=p;for(var m=If(u,u.l),y=Hp[m],b=0;y!=null&&gk.indexOf(m)>-1;)p=If(u,u.l+2),b=u.l+4,m==2066?b+=4:m!=2165&&m!=2175||(b+=12),A=u.slice(b,u.l+4+p),g.push(A),u.l+=4+p,y=Hp[m=If(u,u.l)];var I=Jo(g);lu(I,0);var E=0;I.lens=[];for(var B=0;B1||He.sheetRows&&nt.r>=He.sheetRows)){if(He.cellStyles&&Ot.XF&&Ot.XF.data&&function(tt,mt,Xe){var Ye,ot=mt.XF.data;ot&&ot.patternType&&Xe&&Xe.cellStyles&&(mt.s={},mt.s.patternType=ot.patternType,(Ye=MA(de(ot.icvFore)))&&(mt.s.fgColor={rgb:Ye}),(Ye=MA(de(ot.icvBack)))&&(mt.s.bgColor={rgb:Ye}))}(0,Ot,He),delete Ot.ixfe,delete Ot.XF,u=nt,N=Mi(nt),S&&S.s&&S.e||(S={s:{r:0,c:0},e:{r:0,c:0}}),nt.rS.e.r&&(S.e.r=nt.r+1),nt.c+1>S.e.c&&(S.e.c=nt.c+1),He.cellFormula&&Ot.f){for(var Je=0;Jent.c||W[Je][0].s.r>nt.r||W[Je][0].e.c>8)!==rt)throw new Error("rt mismatch: "+Ge+"!="+rt);st.r==12&&(a.l+=10,et-=10)}var Be={};if(Be=rt===10?st.f(a,et,we):um(rt,st,a,et,we),oe==0&&[9,521,1033,2057].indexOf(se)===-1)continue;switch(rt){case 34:b.opts.Date1904=ue.WBProps.date1904=Be;break;case 134:b.opts.WriteProtect=!0;break;case 47:if(we.enc||(a.l=0),we.enc=Be,!c.password)throw new Error("File is password-protected");if(Be.valid==null)throw new Error("Encryption scheme unsupported");if(!Be.valid)throw new Error("Password is incorrect");break;case 92:we.lastuser=Be;break;case 66:var Te=Number(Be);switch(Te){case 21010:Te=1200;break;case 32768:Te=1e4;break;case 32769:Te=1252}bl(we.codepage=Te),Fe=!0;break;case 317:we.rrtabid=Be;break;case 25:we.winlocked=Be;break;case 439:b.opts.RefreshAll=Be;break;case 12:b.opts.CalcCount=Be;break;case 16:b.opts.CalcDelta=Be;break;case 17:b.opts.CalcIter=Be;break;case 13:b.opts.CalcMode=Be;break;case 14:b.opts.CalcPrecision=Be;break;case 95:b.opts.CalcSaveRecalc=Be;break;case 15:we.CalcRefMode=Be;break;case 2211:b.opts.FullCalc=Be;break;case 129:Be.fDialog&&(E["!type"]="dialog"),Be.fBelow||((E["!outline"]||(E["!outline"]={})).above=!0),Be.fRight||((E["!outline"]||(E["!outline"]={})).left=!0);break;case 224:V.push(Be);break;case 430:z.push([Be]),z[z.length-1].XTI=[];break;case 35:case 547:z[z.length-1].push(Be);break;case 24:case 536:X={Name:Be.Name,Ref:ku(Be.rgce,0,null,z,we)},Be.itab>0&&(X.Sheet=Be.itab-1),z.names.push(X),z[0]||(z[0]=[],z[0].XTI=[]),z[z.length-1].push(Be),Be.Name=="_xlnm._FilterDatabase"&&Be.itab>0&&Be.rgce&&Be.rgce[0]&&Be.rgce[0][0]&&Be.rgce[0][0][0]=="PtgArea3d"&&(me[Be.itab-1]={ref:bi(Be.rgce[0][0][1][2])});break;case 22:we.ExternCount=Be;break;case 23:z.length==0&&(z[0]=[],z[0].XTI=[]),z[z.length-1].XTI=z[z.length-1].XTI.concat(Be),z.XTI=z.XTI.concat(Be);break;case 2196:if(we.biff<8)break;X!=null&&(X.Comment=Be[1]);break;case 18:E["!protect"]=Be;break;case 19:Be!==0&&we.WTF&&console.error("Password verifier: "+Be);break;case 133:B[Be.pos]=Be,we.snames.push(Be.name);break;case 10:if(--oe)break;if(S.e){if(S.e.r>0&&S.e.c>0){if(S.e.r--,S.e.c--,E["!ref"]=bi(S),c.sheetRows&&c.sheetRows<=S.e.r){var je=S.e.r;S.e.r=c.sheetRows-1,E["!fullref"]=E["!ref"],E["!ref"]=bi(S),S.e.r=je}S.e.r++,S.e.c++}Z.length>0&&(E["!merges"]=Z),ne.length>0&&(E["!objects"]=ne),j.length>0&&(E["!cols"]=j),J.length>0&&(E["!rows"]=J),ue.Sheets.push(fe)}T===""?F=E:I[T]=E,E=c.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(we.biff===8&&(we.biff={9:2,521:3,1033:4}[rt]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Be.BIFFVer]||8),we.biffguess=Be.BIFFVer==0,Be.BIFFVer==0&&Be.dt==4096&&(we.biff=5,Fe=!0,bl(we.codepage=28591)),we.biff==8&&Be.BIFFVer==0&&Be.dt==16&&(we.biff=2),oe++)break;if(E=c.dense?[]:{},we.biff<8&&!Fe&&(Fe=!0,bl(we.codepage=c.codepage||1252)),we.biff<5||Be.BIFFVer==0&&Be.dt==4096){T===""&&(T="Sheet1"),S={s:{r:0,c:0},e:{r:0,c:0}};var lt={pos:a.l-et,name:T};B[lt.pos]=lt,we.snames.push(T)}else T=(B[_e]||{name:""}).name;Be.dt==32&&(E["!type"]="chart"),Be.dt==64&&(E["!type"]="macro"),Z=[],ne=[],we.arrayf=W=[],j=[],J=[],q=!1,fe={Hidden:(B[_e]||{hs:0}).hs,name:T};break;case 515:case 3:case 2:E["!type"]=="chart"&&(c.dense?(E[Be.r]||[])[Be.c]:E[Mi({c:Be.c,r:Be.r})])&&++Be.c,A={ixfe:Be.ixfe,XF:V[Be.ixfe]||{},v:Be.val,t:"n"},ye>0&&(A.z=ae[A.ixfe>>8&63]),Fc(A,c,b.opts.Date1904),Ae({c:Be.c,r:Be.r},A,c);break;case 5:case 517:A={ixfe:Be.ixfe,XF:V[Be.ixfe],v:Be.val,t:Be.t},ye>0&&(A.z=ae[A.ixfe>>8&63]),Fc(A,c,b.opts.Date1904),Ae({c:Be.c,r:Be.r},A,c);break;case 638:A={ixfe:Be.ixfe,XF:V[Be.ixfe],v:Be.rknum,t:"n"},ye>0&&(A.z=ae[A.ixfe>>8&63]),Fc(A,c,b.opts.Date1904),Ae({c:Be.c,r:Be.r},A,c);break;case 189:for(var Me=Be.c;Me<=Be.C;++Me){var Ke=Be.rkrec[Me-Be.c][0];A={ixfe:Ke,XF:V[Ke],v:Be.rkrec[Me-Be.c][1],t:"n"},ye>0&&(A.z=ae[A.ixfe>>8&63]),Fc(A,c,b.opts.Date1904),Ae({c:Me,r:Be.r},A,c)}break;case 6:case 518:case 1030:if(Be.val=="String"){_=Be;break}if((A=Up(Be.val,Be.cell.ixfe,Be.tt)).XF=V[A.ixfe],c.cellFormula){var Rt=Be.formula;if(Rt&&Rt[0]&&Rt[0][0]&&Rt[0][0][0]=="PtgExp"){var Ie=Rt[0][0][1][0],Re=Rt[0][0][1][1],qe=Mi({r:Ie,c:Re});H[qe]?A.f=""+ku(Be.formula,0,Be.cell,z,we):A.F=((c.dense?(E[Ie]||[])[Re]:E[qe])||{}).F}else A.f=""+ku(Be.formula,0,Be.cell,z,we)}ye>0&&(A.z=ae[A.ixfe>>8&63]),Fc(A,c,b.opts.Date1904),Ae(Be.cell,A,c),_=Be;break;case 7:case 519:if(!_)throw new Error("String record expects Formula");_.val=Be,(A=Up(Be,_.cell.ixfe,"s")).XF=V[A.ixfe],c.cellFormula&&(A.f=""+ku(_.formula,0,_.cell,z,we)),ye>0&&(A.z=ae[A.ixfe>>8&63]),Fc(A,c,b.opts.Date1904),Ae(_.cell,A,c),_=null;break;case 33:case 545:W.push(Be);var pt=Mi(Be[0].s);if(h=c.dense?(E[Be[0].s.r]||[])[Be[0].s.c]:E[pt],c.cellFormula&&h){if(!_||!pt||!h)break;h.f=""+ku(Be[1],0,Be[0],z,we),h.F=bi(Be[0])}break;case 1212:if(!c.cellFormula)break;if(N){if(!_)break;H[Mi(_.cell)]=Be[0],((h=c.dense?(E[_.cell.r]||[])[_.cell.c]:E[Mi(_.cell)])||{}).f=""+ku(Be[0],0,u,z,we)}break;case 253:A=Up(D[Be.isst].t,Be.ixfe,"s"),D[Be.isst].h&&(A.h=D[Be.isst].h),A.XF=V[A.ixfe],ye>0&&(A.z=ae[A.ixfe>>8&63]),Fc(A,c,b.opts.Date1904),Ae({c:Be.c,r:Be.r},A,c);break;case 513:c.sheetStubs&&(A={ixfe:Be.ixfe,XF:V[Be.ixfe],t:"z"},ye>0&&(A.z=ae[A.ixfe>>8&63]),Fc(A,c,b.opts.Date1904),Ae({c:Be.c,r:Be.r},A,c));break;case 190:if(c.sheetStubs)for(var Lt=Be.c;Lt<=Be.C;++Lt){var Qe=Be.ixfe[Lt-Be.c];A={ixfe:Qe,XF:V[Qe],t:"z"},ye>0&&(A.z=ae[A.ixfe>>8&63]),Fc(A,c,b.opts.Date1904),Ae({c:Lt,r:Be.r},A,c)}break;case 214:case 516:case 4:(A=Up(Be.val,Be.ixfe,"s")).XF=V[A.ixfe],ye>0&&(A.z=ae[A.ixfe>>8&63]),Fc(A,c,b.opts.Date1904),Ae({c:Be.c,r:Be.r},A,c);break;case 0:case 512:oe===1&&(S=Be);break;case 252:D=Be;break;case 1054:if(we.biff==4){ae[ye++]=Be[1];for(var _t=0;_t=163&&$c(Be[1],ye+163)}else $c(Be[1],Be[0]);break;case 30:ae[ye++]=Be;for(var Ft=0;Ft=163&&$c(Be,ye+163);break;case 229:Z=Z.concat(Be);break;case 93:ne[Be.cmo[0]]=we.lastobj=Be;break;case 438:we.lastobj.TxO=Be;break;case 127:we.lastobj.ImData=Be;break;case 440:for(g=Be[0].s.r;g<=Be[0].e.r;++g)for(p=Be[0].s.c;p<=Be[0].e.c;++p)(h=c.dense?(E[g]||[])[p]:E[Mi({c:p,r:g})])&&(h.l=Be[1]);break;case 2048:for(g=Be[0].s.r;g<=Be[0].e.r;++g)for(p=Be[0].s.c;p<=Be[0].e.c;++p)(h=c.dense?(E[g]||[])[p]:E[Mi({c:p,r:g})])&&h.l&&(h.l.Tooltip=Be[1]);break;case 28:if(we.biff<=5&&we.biff>=2)break;h=c.dense?(E[Be[0].r]||[])[Be[0].c]:E[Mi(Be[0])];var Ze=ne[Be[2]];h||(c.dense?(E[Be[0].r]||(E[Be[0].r]=[]),h=E[Be[0].r][Be[0].c]={t:"z"}):h=E[Mi(Be[0])]={t:"z"},S.e.r=Math.max(S.e.r,Be[0].r),S.s.r=Math.min(S.s.r,Be[0].r),S.e.c=Math.max(S.e.c,Be[0].c),S.s.c=Math.min(S.s.c,Be[0].c)),h.c||(h.c=[]),d={a:Be[1],t:Ze.TxO.t},h.c.push(d);break;case 2173:V[Be.ixfe],Be.ext.forEach(function(nt){nt[0]});break;case 125:if(!we.cellStyles)break;for(;Be.e>=Be.s;)j[Be.e--]={width:Be.w/256,level:Be.level||0,hidden:!!(1&Be.flags)},q||(q=!0,xp(Be.w/256)),Uo(j[Be.e+1]);break;case 520:var $e={};Be.level!=null&&(J[Be.r]=$e,$e.level=Be.level),Be.hidden&&(J[Be.r]=$e,$e.hidden=!0),Be.hpt&&(J[Be.r]=$e,$e.hpt=Be.hpt,$e.hpx=Ef(Be.hpt));break;case 38:case 39:case 40:case 41:E["!margins"]||Ds(E["!margins"]={}),E["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[rt]]=Be;break;case 161:E["!margins"]||Ds(E["!margins"]={}),E["!margins"].header=Be.header,E["!margins"].footer=Be.footer;break;case 574:Be.RTL&&(ue.Views[0].RTL=!0);break;case 146:te=Be;break;case 2198:y=Be;break;case 140:m=Be;break;case 442:T?fe.CodeName=Be||fe.name:ue.WBProps.CodeName=Be||"ThisWorkbook"}}else st||console.error("Missing Info for XLS Record 0x"+rt.toString(16)),a.l+=et}return b.SheetNames=to(B).sort(function(nt,Ot){return Number(nt)-Number(Ot)}).map(function(nt){return B[nt].name}),c.bookSheets||(b.Sheets=I),!b.SheetNames.length&&F["!ref"]?(b.SheetNames.push("Sheet1"),b.Sheets&&(b.Sheets.Sheet1=F)):b.Preamble=F,b.Sheets&&me.forEach(function(nt,Ot){b.Sheets[b.SheetNames[Ot]]["!autofilter"]=nt}),b.Strings=D,b.SSF=Ro(xi),we.enc&&(b.Encryption=we.enc),y&&(b.Themes=y),b.Metadata={},m!==void 0&&(b.Metadata.Country=m),z.names.length>0&&(ue.Names=z.names),b.Workbook=ue,b}var iB="e0859ff2f94f6810ab9108002b27b3d9",Ib="02d5cdd59c2e1b10939708002b2cf9ae",pk="05d5cdd59c2e1b10939708002b2cf9ae";function aB(a,c){var u,h,d,p;if(c||(c={}),gm(c),V2(),c.codepage&&Z0(c.codepage),a.FullPaths){if(ai.find(a,"/encryption"))throw new Error("File is password-protected");u=ai.find(a,"!CompObj"),h=ai.find(a,"/Workbook")||ai.find(a,"/Book")}else{switch(c.type){case"base64":a=Zc(Ra(a));break;case"binary":a=Zc(a);break;case"buffer":break;case"array":Array.isArray(a)||(a=Array.prototype.slice.call(a))}lu(a,0),h={content:a}}if(u&&dk(u),c.bookProps&&!c.bookSheets)d={};else{var g=ki?"buffer":"array";if(h&&h.content)d=mb(h.content,c);else if((p=ai.find(a,"PerfectOffice_MAIN"))&&p.content)d=Oh.to_workbook(p.content,(c.type=g,c));else{if(!(p=ai.find(a,"NativeContent_MAIN"))||!p.content)throw(p=ai.find(a,"MN0"))&&p.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");d=Oh.to_workbook(p.content,(c.type=g,c))}c.bookVBA&&a.FullPaths&&ai.find(a,"/_VBA_PROJECT_CUR/VBA/dir")&&(d.vbaraw=function(m){var y=ai.utils.cfb_new({root:"R"});return m.FullPaths.forEach(function(b,I){if(b.slice(-1)!=="/"&&b.match(/_VBA_PROJECT_CUR/)){var E=b.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");ai.utils.cfb_add(y,E,m.FileIndex[I].content)}}),ai.write(y)}(a))}var A={};return a.FullPaths&&function(m,y,b){var I=ai.find(m,"/!DocumentSummaryInformation");if(I&&I.size>0)try{var E=Gy(I,Fy,Ib);for(var B in E)y[B]=E[B]}catch(T){if(b.WTF)throw T}var S=ai.find(m,"/!SummaryInformation");if(S&&S.size>0)try{var _=Gy(S,d1,iB);for(var D in _)y[D]==null&&(y[D]=_[D])}catch(T){if(b.WTF)throw T}y.HeadingPairs&&y.TitlesOfParts&&(tE(y.HeadingPairs,y.TitlesOfParts,y,b),delete y.HeadingPairs,delete y.TitlesOfParts)}(a,A,c),d.Props=d.Custprops=A,c.bookFiles&&(d.cfb=a),d}function oB(a,c){var u=c||{},h=ai.utils.cfb_new({root:"R"}),d="/Workbook";switch(u.bookType||"xls"){case"xls":u.bookType="biff8";case"xla":u.bookType||(u.bookType="xla");case"biff8":d="/Workbook",u.biff=8;break;case"biff5":d="/Book",u.biff=5;break;default:throw new Error("invalid type "+u.bookType+" for XLS CFB")}return ai.utils.cfb_add(h,d,Cb(a,u)),u.biff==8&&(a.Props||a.Custprops)&&function(p,g){var A,m=[],y=[],b=[],I=0,E=_w(Fy,"n"),B=_w(d1,"n");if(p.Props)for(A=to(p.Props),I=0;I-1||_A.indexOf(b[I][0])>-1||b[I][1]!=null&&S.push(b[I]);y.length&&ai.utils.cfb_add(g,"/SummaryInformation",iE(y,iB,B,d1)),(m.length||S.length)&&ai.utils.cfb_add(g,"/DocumentSummaryInformation",iE(m,Ib,E,Fy,S.length?S:null,pk))}(a,h),u.biff==8&&a.vbaraw&&function(p,g){g.FullPaths.forEach(function(A,m){if(m!=0){var y=A.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");y.slice(-1)!=="/"&&ai.utils.cfb_add(p,y,g.FileIndex[m].content)}})}(h,ai.read(a.vbaraw,{type:typeof a.vbaraw=="string"?"binary":"buffer"})),h}var jp={0:{f:function(a,c){var u={},h=a.l+c;u.r=a.read_shift(4),a.l+=4;var d=a.read_shift(2);a.l+=1;var p=a.read_shift(1);return a.l=h,7&p&&(u.level=7&p),16&p&&(u.hidden=!0),32&p&&(u.hpt=d/20),u}},1:{f:function(a){return[_c(a)]}},2:{f:function(a){return[_c(a),A1(a),"n"]}},3:{f:function(a){return[_c(a),a.read_shift(1),"e"]}},4:{f:function(a){return[_c(a),a.read_shift(1),"b"]}},5:{f:function(a){return[_c(a),ko(a),"n"]}},6:{f:function(a){return[_c(a),zs(a),"str"]}},7:{f:function(a){return[_c(a),a.read_shift(4),"s"]}},8:{f:function(a,c,u){var h=a.l+c,d=_c(a);d.r=u["!row"];var p=[d,zs(a),"str"];if(u.cellFormula){a.l+=2;var g=_1(a,h-a.l,u);p[3]=ku(g,0,d,u.supbooks,u)}else a.l=h;return p}},9:{f:function(a,c,u){var h=a.l+c,d=_c(a);d.r=u["!row"];var p=[d,ko(a),"n"];if(u.cellFormula){a.l+=2;var g=_1(a,h-a.l,u);p[3]=ku(g,0,d,u.supbooks,u)}else a.l=h;return p}},10:{f:function(a,c,u){var h=a.l+c,d=_c(a);d.r=u["!row"];var p=[d,a.read_shift(1),"b"];if(u.cellFormula){a.l+=2;var g=_1(a,h-a.l,u);p[3]=ku(g,0,d,u.supbooks,u)}else a.l=h;return p}},11:{f:function(a,c,u){var h=a.l+c,d=_c(a);d.r=u["!row"];var p=[d,a.read_shift(1),"e"];if(u.cellFormula){a.l+=2;var g=_1(a,h-a.l,u);p[3]=ku(g,0,d,u.supbooks,u)}else a.l=h;return p}},12:{f:function(a){return[jd(a)]}},13:{f:function(a){return[jd(a),A1(a),"n"]}},14:{f:function(a){return[jd(a),a.read_shift(1),"e"]}},15:{f:function(a){return[jd(a),a.read_shift(1),"b"]}},16:{f:sb},17:{f:function(a){return[jd(a),zs(a),"str"]}},18:{f:function(a){return[jd(a),a.read_shift(4),"s"]}},19:{f:Ud},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(a,c,u){var h=a.l+c;a.l+=4,a.l+=1;var d=a.read_shift(4),p=_5(a),g=NA(a,0,u),A=bp(a);a.l=h;var m={Name:p,Ptg:g};return d<268435455&&(m.Sheet=d),A&&(m.Comment=A),m}},40:{},42:{},43:{f:function(a,c,u){var h={};h.sz=a.read_shift(2)/20;var d=function(m){var y=m.read_shift(1);return m.l++,{fBold:1&y,fItalic:2&y,fUnderline:4&y,fStrikeout:8&y,fOutline:16&y,fShadow:32&y,fCondense:64&y,fExtend:128&y}}(a);switch(d.fItalic&&(h.italic=1),d.fCondense&&(h.condense=1),d.fExtend&&(h.extend=1),d.fShadow&&(h.shadow=1),d.fOutline&&(h.outline=1),d.fStrikeout&&(h.strike=1),a.read_shift(2)===700&&(h.bold=1),a.read_shift(2)){case 1:h.vertAlign="superscript";break;case 2:h.vertAlign="subscript"}var p=a.read_shift(1);p!=0&&(h.underline=p);var g=a.read_shift(1);g>0&&(h.family=g);var A=a.read_shift(1);switch(A>0&&(h.charset=A),a.l++,h.color=function(m){var y={},b=m.read_shift(1)>>>1,I=m.read_shift(1),E=m.read_shift(2,"i"),B=m.read_shift(1),S=m.read_shift(1),_=m.read_shift(1);switch(m.l++,b){case 0:y.auto=1;break;case 1:y.index=I;var D=Cp[I];D&&(y.rgb=MA(D));break;case 2:y.rgb=MA([B,S,_]);break;case 3:y.theme=I}return E!=0&&(y.tint=E>0?E/32767:E/32768),y}(a),a.read_shift(1)){case 1:h.scheme="major";break;case 2:h.scheme="minor"}return h.name=zs(a),h}},44:{f:function(a,c){return[a.read_shift(2),zs(a)]}},45:{f:wE},46:{f:BE},47:{f:function(a,c){var u=a.l+c,h=a.read_shift(2),d=a.read_shift(2);return a.l=u,{ixfe:h,numFmtId:d}}},48:{},49:{f:function(a){return a.read_shift(4,"i")}},50:{},51:{f:function(a){for(var c=[],u=a.read_shift(4);u-- >0;)c.push([a.read_shift(4),a.read_shift(4)]);return c}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:ig},62:{f:function(a){return[_c(a),Ud(a),"is"]}},63:{f:function(a){var c={};c.i=a.read_shift(4);var u={};u.r=a.read_shift(4),u.c=a.read_shift(4),c.r=Mi(u);var h=a.read_shift(1);return 2&h&&(c.l="1"),8&h&&(c.a="1"),c}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:qs,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(a){var c=a.read_shift(2);return a.l+=28,{RTL:32&c}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(a,c){var u={},h=a[a.l];return++a.l,u.above=!(64&h),u.left=!(128&h),a.l+=18,u.name=Zw(a),u}},148:{f:ob,p:16},151:{f:function(){}},152:{},153:{f:function(a,c){var u={},h=a.read_shift(4);u.defaultThemeVersion=a.read_shift(4);var d=c>8?zs(a):"";return d.length>0&&(u.CodeName=d),u.autoCompressPictures=!!(65536&h),u.backupFile=!!(64&h),u.checkCompatibility=!!(4096&h),u.date1904=!!(1&h),u.filterPrivacy=!!(8&h),u.hidePivotFieldList=!!(1024&h),u.promptedSolutions=!!(16&h),u.publishItems=!!(2048&h),u.refreshAllConnections=!!(262144&h),u.saveExternalLinkValues=!!(128&h),u.showBorderUnselectedTables=!!(4&h),u.showInkAnnotation=!!(32&h),u.showObjects=["all","placeholders","none"][h>>13&3],u.showPivotChartFilter=!!(32768&h),u.updateLinks=["userSet","never","always"][h>>8&3],u}},154:{},155:{},156:{f:function(a,c){var u={};return u.Hidden=a.read_shift(4),u.iTabID=a.read_shift(4),u.strRelID=mI(a),u.name=zs(a),u}},157:{},158:{},159:{T:1,f:function(a){return[a.read_shift(4),a.read_shift(4)]}},160:{T:-1},161:{T:1,f:kA},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:GE},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(a,c){return{flags:a.read_shift(4),version:a.read_shift(4),name:zs(a)}}},336:{T:-1},337:{f:function(a){return a.l+=4,a.read_shift(4)!=0},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:mI},357:{},358:{},359:{},360:{T:1},361:{},362:{f:m1},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(a,c,u){var h=a.l+c,d=bI(a),p=a.read_shift(1),g=[d];if(g[2]=p,u.cellFormula){var A=Z5(a,h-a.l,u);g[1]=A}else a.l=h;return g}},427:{f:function(a,c,u){var h=a.l+c,d=[kA(a)];if(u.cellFormula){var p=nm(a,h-a.l,u);d[1]=p,a.l=h}else a.l=h;return d}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(a){var c={};return UE.forEach(function(u){c[u]=ko(a)}),c}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(a,c){var u=a.l+c,h=kA(a),d=bp(a),p=zs(a),g=zs(a),A=zs(a);a.l=u;var m={rfx:h,relId:d,loc:p,display:A};return g&&(m.Tooltip=g),m}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:mI},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:z5},633:{T:1},634:{T:-1},635:{T:1,f:function(a){var c={};c.iauthor=a.read_shift(4);var u=kA(a);return c.rfx=u.s,c.ref=Mi(u.s),a.l+=16,c}},636:{T:-1},637:{f:Kw},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(a,c){return a.l+=10,{name:zs(a)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},Hp={6:{f:rm},10:{f:Gu},12:{f:gs},13:{f:gs},14:{f:ds},15:{f:ds},16:{f:ko},17:{f:ds},18:{f:ds},19:{f:gs},20:{f:LI},21:{f:LI},23:{f:m1},24:{f:y1},25:{f:ds},26:{},27:{},28:{f:function(a,c,u){return function(h,d,p){if(!(p.biff<8)){var g=h.read_shift(2),A=h.read_shift(2),m=h.read_shift(2),y=h.read_shift(2),b=ju(h,0,p);return p.biff<8&&h.read_shift(1),[{r:g,c:A},b,y,m]}}(a,0,u)}},29:{},34:{f:ds},35:{f:DA},38:{f:ko},39:{f:ko},40:{f:ko},41:{f:ko},42:{f:ds},43:{f:ds},47:{f:function(a,c,u){var h={Type:u.biff>=8?a.read_shift(2):0};return h.Type?IE(a,c-2,h):function(d,p,g,A){var m={key:gs(d),verificationBytes:gs(d)};g.password&&(m.verifier=jI(g.password)),A.valid=m.verificationBytes===m.verifier,A.valid&&(A.insitu=E1(g.password))}(a,u.biff,u,h),h}},49:{f:function(a,c,u){var h={dyHeight:a.read_shift(2),fl:a.read_shift(2)};switch(u&&u.biff||8){case 2:break;case 3:case 4:a.l+=2;break;default:a.l+=10}return h.name=p1(a,0,u),h}},51:{f:gs},60:{},61:{f:function(a){return{Pos:[a.read_shift(2),a.read_shift(2)],Dim:[a.read_shift(2),a.read_shift(2)],Flags:a.read_shift(2),CurTab:a.read_shift(2),FirstTab:a.read_shift(2),Selected:a.read_shift(2),TabRatio:a.read_shift(2)}}},64:{f:ds},65:{f:function(){}},66:{f:gs},77:{},80:{},81:{},82:{},85:{f:gs},89:{},90:{},91:{},92:{f:function(a,c,u){if(u.enc)return a.l+=c,"";var h=a.l,d=ju(a,0,u);return a.read_shift(c+h-a.l),d}},93:{f:function(a,c,u){if(u&&u.biff<8)return function(p,g,A){p.l+=4;var m=p.read_shift(2),y=p.read_shift(2),b=p.read_shift(2);p.l+=2,p.l+=2,p.l+=2,p.l+=2,p.l+=2,p.l+=2,p.l+=2,p.l+=2,p.l+=2,p.l+=6,g-=36;var I=[];return I.push((O5[m]||qs)(p,g,A)),{cmo:[y,m,b],ft:I}}(a,c,u);var h=cE(a),d=function(p,g){for(var A=p.l+g,m=[];p.l7||c[1]>7)throw new Error("Bad Gutters: "+c.join("|"));return c}},129:{f:function(a,c,u){var h=u&&u.biff==8||c==2?a.read_shift(2):(a.l+=c,0);return{fDialog:16&h,fBelow:64&h,fRight:128&h}}},130:{f:gs},131:{f:ds},132:{f:ds},133:{f:function(a,c,u){var h=a.read_shift(4),d=3&a.read_shift(1),p=a.read_shift(1);switch(p){case 0:p="Worksheet";break;case 1:p="Macrosheet";break;case 2:p="Chartsheet";break;case 6:p="VBAModule"}var g=p1(a,0,u);return g.length===0&&(g="Sheet1"),{pos:h,hs:d,dt:p,name:g}}},134:{},140:{f:function(a){var c,u=[0,0];return c=a.read_shift(2),u[0]=Ty[c]||c,c=a.read_shift(2),u[1]=Ty[c]||c,u}},141:{f:gs},144:{},146:{f:function(a){for(var c=a.read_shift(2),u=[];c-- >0;)u.push(Hu(a));return u}},151:{},152:{},153:{},154:{},155:{},156:{f:gs},157:{},158:{},160:{f:ga},161:{f:function(a,c){var u={};return c<32||(a.l+=16,u.header=ko(a),u.footer=ko(a),a.l+=2),u}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(a,c){for(var u=a.l+c-2,h=a.read_shift(2),d=a.read_shift(2),p=[];a.l>2&1,h.data=function(d,p,g,A){var m={},y=d.read_shift(4),b=d.read_shift(4),I=d.read_shift(4),E=d.read_shift(2);return m.patternType=D5[I>>26],A.cellStyles&&(m.alc=7&y,m.fWrap=y>>3&1,m.alcV=y>>4&7,m.fJustLast=y>>7&1,m.trot=y>>8&255,m.cIndent=y>>16&15,m.fShrinkToFit=y>>20&1,m.iReadOrder=y>>22&2,m.fAtrNum=y>>26&1,m.fAtrFnt=y>>27&1,m.fAtrAlc=y>>28&1,m.fAtrBdr=y>>29&1,m.fAtrPat=y>>30&1,m.fAtrProt=y>>31&1,m.dgLeft=15&b,m.dgRight=b>>4&15,m.dgTop=b>>8&15,m.dgBottom=b>>12&15,m.icvLeft=b>>16&127,m.icvRight=b>>23&127,m.grbitDiag=b>>30&3,m.icvTop=127&I,m.icvBottom=I>>7&127,m.icvDiag=I>>14&127,m.dgDiag=I>>21&15,m.icvFore=127&E,m.icvBack=E>>7&127,m.fsxButton=E>>14&1),m}(a,0,h.fStyle,u),h}},225:{f:function(a,c){return c===0||a.read_shift(2),1200}},226:{f:Gu},227:{},229:{f:function(a,c){for(var u=[],h=a.read_shift(2);h--;)u.push(jy(a));return u}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(a,c){for(var u=a.l+c,h=a.read_shift(4),d=a.read_shift(4),p=[],g=0;g!=d&&a.l255)throw new Error("Unexpected SupBook type: "+p);for(var g=rh(a,p),A=[];h>a.l;)A.push(wf(a));return[p,d,g,A]}},431:{f:ds},432:{},433:{},434:{},437:{},438:{f:function(a,c,u){var h=a.l,d="";try{a.l+=4;var p=(u.lastobj||{cmo:[0,0]}).cmo[1];[0,5,7,11,12,14].indexOf(p)==-1?a.l+=6:function(b){var I=b.read_shift(1);b.l++;var E=b.read_shift(2);return b.l+=2,[I,E]}(a);var g=a.read_shift(2);a.read_shift(2),gs(a);var A=a.read_shift(2);a.l+=A;for(var m=1;m=(y?g:2*g))break}if(d.length!==g&&d.length!==2*g)throw new Error("cchText: "+g+" != "+d.length);return a.l=h+c,{t:d}}catch{return a.l=h+c,{t:d}}}},439:{f:ds},440:{f:function(a,c){var u=jy(a);a.l+=16;var h=function(d,p){var g=d.l+p,A=d.read_shift(4);if(A!==2)throw new Error("Unrecognized streamVersion: "+A);var m=d.read_shift(2);d.l+=2;var y,b,I,E,B,S,_="";16&m&&(y=eg(d,d.l)),128&m&&(b=eg(d,d.l)),257&~m||(I=eg(d,d.l)),(257&m)==1&&(E=aE(d,d.l)),8&m&&(_=eg(d,d.l)),32&m&&(B=d.read_shift(16)),64&m&&(S=Vd(d)),d.l=g;var D=b||I||E||"";D&&_&&(D+="#"+_),D||(D="#"+_),2&m&&D.charAt(0)=="/"&&D.charAt(1)!="/"&&(D="file://"+D);var T={Target:D};return B&&(T.guid=B),S&&(T.time=S),y&&(T.Tooltip=y),T}(a,c-24);return[u,h]}},441:{},442:{f:wf},443:{},444:{f:gs},445:{},446:{},448:{f:Gu},449:{f:function(a){return a.read_shift(2),a.read_shift(4)},r:2},450:{f:Gu},512:{f:v1},513:{f:NI},515:{f:function(a,c,u){u.biffguess&&u.biff==2&&(u.biff=5);var h=Th(a),d=ko(a);return h.val=d,h}},516:{f:function(a,c,u){u.biffguess&&u.biff==2&&(u.biff=5),a.l;var h=Th(a);u.biff==2&&a.l++;var d=wf(a,a.l,u);return h.val=d,h}},517:{f:tg},519:{f:Co},520:{f:function(a){var c={};c.r=a.read_shift(2),c.c=a.read_shift(2),c.cnt=a.read_shift(2)-c.c;var u=a.read_shift(2);a.l+=4;var h=a.read_shift(1);return a.l+=3,7&h&&(c.level=7&h),32&h&&(c.hidden=!0),64&h&&(c.hpt=u/20),c}},523:{},545:{f:ng},549:{f:Bp},566:{},574:{f:function(a,c,u){return u&&u.biff>=2&&u.biff<5?{}:{RTL:64&a.read_shift(2)}}},638:{f:function(a){var c=a.read_shift(2),u=a.read_shift(2),h=MI(a);return{r:c,c:u,ixfe:h[0],rknum:h[1]}}},659:{},1048:{},1054:{f:function(a,c,u){return[a.read_shift(2),ju(a,0,u)]}},1084:{},1212:{f:function(a,c,u){var h=uE(a);a.l++;var d=a.read_shift(1);return[eb(a,c-=8,u),d,h]}},2048:{f:function(a,c){a.read_shift(2);var u=jy(a),h=a.read_shift((c-10)/2,"dbcs-cont");return[u,h=h.replace(sc,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Eu},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Gu},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(a){a.l+=2;var c={cxfs:0,crc:0};return c.cxfs=a.read_shift(2),c.crc=a.read_shift(4),c},r:12},2173:{f:function(a,c){a.l,a.l+=2;var u=a.read_shift(2);a.l+=2;for(var h=a.read_shift(2),d=[];h-- >0;)d.push(JI(a,a.l));return{ixfe:u,ext:d}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:ds,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(a,c,u){if(!(u.biff<8)){var h=a.read_shift(2),d=a.read_shift(2);return[rh(a,h,u),rh(a,d,u)]}a.l+=c},r:12},2197:{},2198:{f:function(a,c,u){var h=a.l+c;if(a.read_shift(4)!==124226)if(u.cellStyles){var d,p=a.slice(a.l);a.l=h;try{d=Fw(p,{type:"array"})}catch{return}var g=Qc(d,"theme/theme/theme1.xml",!0);if(g)return xE(g,u)}else a.l=h},r:12},2199:{},2200:{},2201:{},2202:{f:function(a){return[a.read_shift(4)!==0,a.read_shift(4)!==0,a.read_shift(4)]},r:12},2203:{f:Gu},2204:{},2205:{},2206:{},2207:{},2211:{f:function(a){var c=function(u){var h=u.read_shift(2),d=u.read_shift(2);return u.l+=8,{type:h,flags:d}}(a);if(c.type!=2211)throw new Error("Invalid Future Record "+c.type);return a.read_shift(4)!==0}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:gs},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(a,c,u){var h={area:!1};if(u.biff!=5)return a.l+=c,h;var d=a.read_shift(1);return a.l+=3,16&d&&(h.area=!0),h}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(a){for(var c=a.read_shift(2),u=[];c-- >0;)u.push(Hu(a));return u}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:v1},1:{},2:{f:function(a){var c=Th(a);++a.l;var u=a.read_shift(2);return c.t="n",c.val=u,c}},3:{f:function(a){var c=Th(a);++a.l;var u=ko(a);return c.t="n",c.val=u,c}},4:{f:function(a,c,u){u.biffguess&&u.biff==5&&(u.biff=2);var h=Th(a);++a.l;var d=ju(a,0,u);return h.t="str",h.val=d,h}},5:{f:tg},7:{f:function(a){var c=a.read_shift(1);return c===0?(a.l++,""):a.read_shift(c,"sbcs-cont")}},8:{},9:{f:Eu},11:{},22:{f:gs},30:{f:Hy},31:{},32:{},33:{f:ng},36:{},37:{f:Bp},50:{f:function(a,c){a.l+=6,a.l+=2,a.l+=1,a.l+=3,a.l+=1,a.l+=c-13}},62:{},52:{},67:{},68:{f:gs},69:{},86:{},126:{},127:{f:function(a){var c=a.read_shift(2),u=a.read_shift(2),h=a.read_shift(4),d={fmt:c,env:u,len:h,data:a.slice(a.l,a.l+h)};return a.l+=h,d}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(a,c,u){var h=a.l+c,d=Th(a),p=a.read_shift(2),g=rh(a,p,u);return a.l=h,d.t="str",d.val=g,d}},223:{},234:{},354:{},421:{},518:{f:rm},521:{f:Eu},536:{f:y1},547:{f:DA},561:{},579:{},1030:{f:rm},1033:{f:Eu},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function un(a,c,u,h){var d=c;if(!isNaN(d)){var p=h||(u||[]).length||0,g=a.next(4);g.write_shift(2,d),g.write_shift(2,p),p>0&&mf(u)&&a.push(u)}}function sh(a,c,u){return a||(a=Ir(7)),a.write_shift(2,c),a.write_shift(2,u),a.write_shift(2,0),a.write_shift(1,0),a}function Ag(a,c,u,h){if(c.v!=null)switch(c.t){case"d":case"n":var d=c.t=="d"?Ys(Po(c.v)):c.v;return void(d==(0|d)&&d>=0&&d<65536?un(a,2,(p=u,g=h,A=d,m=Ir(9),sh(m,p,g),m.write_shift(2,A),m)):un(a,3,function(y,b,I){var E=Ir(15);return sh(E,y,b),E.write_shift(8,I,"f"),E}(u,h,d)));case"b":case"e":return void un(a,5,function(y,b,I,E){var B=Ir(9);return sh(B,y,b),$d(I,E||"b",B),B}(u,h,c.v,c.t));case"s":case"str":return void un(a,4,function(y,b,I){var E=Ir(8+2*I.length);return sh(E,y,b),E.write_shift(1,I.length),E.write_shift(I.length,I,"sbcs"),E.l255||E.e.r>16383){if(y.WTF)throw new Error("Range "+(A["!ref"]||"A1")+" exceeds format limit A1:IV16384");E.e.c=Math.min(E.e.c,255),E.e.r=Math.min(E.e.c,16383),b=bi(E)}for(var _=E.s.r;_<=E.e.r;++_){B=Ss(_);for(var D=E.s.c;D<=E.e.c;++D){_===E.s.r&&(S[D]=rs(D)),b=S[D]+B;var T=I?(A[_]||[])[D]:A[b];T&&Ag(g,T,_,D)}}}(h,a.Sheets[a.SheetNames[d]],0,u),un(h,10),h.end()}function sB(a,c,u){un(a,49,function(h,d){var p=h.name||"Arial",g=d&&d.biff==5,A=Ir(g?15+p.length:16+2*p.length);return A.write_shift(2,20*h.sz),A.write_shift(4,0),A.write_shift(2,400),A.write_shift(4,0),A.write_shift(2,0),A.write_shift(1,p.length),g||A.write_shift(1,1),A.write_shift((g?1:2)*p.length,p,g?"sbcs":"utf16le"),A}({sz:12,name:"Arial"},u))}function uB(a,c){if(c){var u=0;c.forEach(function(h,d){++u<=256&&h&&un(a,125,function(p,g){var A=Ir(12);A.write_shift(2,g),A.write_shift(2,g),A.write_shift(2,256*p.width),A.write_shift(2,0);var m=0;return p.hidden&&(m|=1),A.write_shift(1,m),m=p.level||0,A.write_shift(1,m),A.write_shift(2,0),A}(PA(d,h),d))})}}function cB(a,c,u,h,d){var p=16+rl(d.cellXfs,c,d);if(c.v!=null||c.bf)if(c.bf)un(a,6,tb(c,u,h,0,p));else switch(c.t){case"d":case"n":un(a,515,function(g,A,m,y){var b=Ir(14);return nh(g,A,y,b),Jd(m,b),b}(u,h,c.t=="d"?Ys(Po(c.v)):c.v,p));break;case"b":case"e":un(a,517,function(g,A,m,y,b,I){var E=Ir(8);return nh(g,A,y,E),$d(m,I,E),E}(u,h,c.v,p,0,c.t));break;case"s":case"str":d.bookSST?un(a,253,function(g,A,m,y){var b=Ir(10);return nh(g,A,y,b),b.write_shift(4,m),b}(u,h,am(d.Strings,c.v,d.revStrings),p)):un(a,516,function(g,A,m,y,b){var I=!b||b.biff==8,E=Ir(+I+8+(1+I)*m.length);return nh(g,A,y,E),E.write_shift(2,m.length),I&&E.write_shift(1,1),E.write_shift((1+I)*m.length,m,I?"utf16le":"sbcs"),E}(u,h,(c.v||"").slice(0,255),p,d));break;default:un(a,513,nh(u,h,p))}else un(a,513,nh(u,h,p))}function bb(a,c,u){var h,d,p,g=Ac(),A=u.SheetNames[a],m=u.Sheets[A]||{},y=(u||{}).Workbook||{},b=(y.Sheets||[])[a]||{},I=Array.isArray(m),E=c.biff==8,B="",S=[],_=Ta(m["!ref"]||"A1"),D=E?65536:16384;if(_.e.c>255||_.e.r>=D){if(c.WTF)throw new Error("Range "+(m["!ref"]||"A1")+" exceeds format limit A1:IV16384");_.e.c=Math.min(_.e.c,255),_.e.r=Math.min(_.e.c,D-1)}un(g,2057,FI(0,16,c)),un(g,13,Rc(1)),un(g,12,Rc(100)),un(g,15,fu(!0)),un(g,17,fu(!1)),un(g,16,Jd(.001)),un(g,95,fu(!0)),un(g,42,fu(!1)),un(g,43,fu(!1)),un(g,130,Rc(1)),un(g,128,(d=[0,0],(p=Ir(8)).write_shift(4,0),p.write_shift(2,d[0]?d[0]+1:0),p.write_shift(2,d[1]?d[1]+1:0),p)),un(g,131,fu(!1)),un(g,132,fu(!1)),E&&uB(g,m["!cols"]),un(g,512,function(W,V){var te=V.biff!=8&&V.biff?2:4,ue=Ir(2*te+6);return ue.write_shift(te,W.s.r),ue.write_shift(te,W.e.r+1),ue.write_shift(2,W.s.c),ue.write_shift(2,W.e.c+1),ue.write_shift(2,0),ue}(_,c)),E&&(m["!links"]=[]);for(var T=_.s.r;T<=_.e.r;++T){B=Ss(T);for(var F=_.s.c;F<=_.e.c;++F){T===_.s.r&&(S[F]=rs(F)),h=S[F]+B;var N=I?(m[T]||[])[F]:m[h];N&&(cB(g,N,T,F,c),E&&N.l&&m["!links"].push([h,N.l]))}}var H=b.CodeName||b.name||A;return E&&un(g,574,function(W){var V=Ir(18),te=1718;return W&&W.RTL&&(te|=64),V.write_shift(2,te),V.write_shift(4,0),V.write_shift(4,64),V.write_shift(4,0),V.write_shift(4,0),V}((y.Views||[])[0])),E&&(m["!merges"]||[]).length&&un(g,229,function(W){var V=Ir(2+8*W.length);V.write_shift(2,W.length);for(var te=0;te255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+a.SheetNames[u]+"' extends beyond column IV (255). Data may be lost.")}var d=c||{};switch(d.biff||2){case 8:case 5:return function(p,g){var A=g||{},m=[];p&&!p.SSF&&(p.SSF=Ro(xi)),p&&p.SSF&&(hp(),r1(p.SSF),A.revssf=Ap(p.SSF),A.revssf[p.SSF[65535]]=0,A.ssf=p.SSF),A.Strings=[],A.Strings.Count=0,A.Strings.Unique=0,G1(A),A.cellXfs=[],rl(A.cellXfs,{},{revssf:{General:0}}),p.Props||(p.Props={});for(var y=0;y/g,"")).match(/");var p=a.match(/<\/table/i),g=d.index,A=p&&p.index||a.length,m=C5(a.slice(g,A),/(:?]*>)/i,""),y=-1,b=0,I=0,E=0,B={s:{r:1e7,c:1e7},e:{r:0,c:0}},S=[];for(g=0;g/i);for(A=0;A"))>-1;)N=N.slice(H+1);for(var W=0;W")));E=te.colspan?+te.colspan:1,((I=+te.rowspan)>1||E>1)&&S.push({s:{r:y,c:b},e:{r:y+(I||1)-1,c:b+E-1}});var ue=te.t||te["data-t"]||"";if(N.length)if(N=Fd(N),B.s.r>y&&(B.s.r=y),B.e.rb&&(B.s.c=b),B.e.cu||d[y].s.c>g||d[y].e.r1&&(B.rowspan=A),m>1&&(B.colspan=m),h.editable?E=''+E+"":I&&(B["data-t"]=I&&I.t||"z",I.v!=null&&(B["data-v"]=I.v),I.z!=null&&(B["data-z"]=I.z),I.l&&(I.l.Target||"#").charAt(0)!="#"&&(E=''+E+"")),B.id=(h.id||"sjs")+"-"+b,p.push(on("td",E,B))}}return""+p.join("")+""}var wb={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function lm(a,c){var u,h,d,p,g,A,m,y,b=c||{},I=$l(a),E=[],B={name:""},S="",_=0,D={},T=[],F=b.dense?[]:{},N={value:""},H="",W=0,V=[],te=-1,ue=-1,fe={s:{r:1e6,c:1e7},e:{r:0,c:0}},de=0,Ae={},we=[],Z={},ne=[],j=1,J=1,q=[],z={Names:[]},X={},se=["",""],oe=[],ye={},ae="",me=0,Fe=!1,_e=!1,rt=0;for(Nd.lastIndex=0,I=I.replace(//gm,"").replace(//gm,"");g=Nd.exec(I);)switch(g[3]=g[3].replace(/_.*$/,"")){case"table":case"工作表":g[1]==="/"?(fe.e.c>=fe.s.c&&fe.e.r>=fe.s.r?F["!ref"]=bi(fe):F["!ref"]="A1:A1",b.sheetRows>0&&b.sheetRows<=fe.e.r&&(F["!fullref"]=F["!ref"],fe.e.r=b.sheetRows-1,F["!ref"]=bi(fe)),we.length&&(F["!merges"]=we),ne.length&&(F["!rows"]=ne),d.name=d.名称||d.name,typeof JSON<"u"&&JSON.stringify(d),T.push(d.name),D[d.name]=F,_e=!1):g[0].charAt(g[0].length-2)!=="/"&&(d=ii(g[0],!1),te=ue=-1,fe.s.r=fe.s.c=1e7,fe.e.r=fe.e.c=0,F=b.dense?[]:{},we=[],ne=[],_e=!0);break;case"table-row-group":g[1]==="/"?--de:++de;break;case"table-row":case"行":if(g[1]==="/"){te+=j,j=1;break}if((p=ii(g[0],!1)).行号?te=p.行号-1:te==-1&&(te=0),(j=+p["number-rows-repeated"]||1)<10)for(rt=0;rt0&&(ne[te+rt]={level:de});ue=-1;break;case"covered-table-cell":g[1]!=="/"&&++ue,b.sheetStubs&&(b.dense?(F[te]||(F[te]=[]),F[te][ue]={t:"z"}):F[Mi({r:te,c:ue})]={t:"z"}),H="",V=[];break;case"table-cell":case"数据":if(g[0].charAt(g[0].length-2)==="/")++ue,N=ii(g[0],!1),J=parseInt(N["number-columns-repeated"]||"1",10),A={t:"z",v:null},N.formula&&b.cellFormula!=0&&(A.f=im(ji(N.formula))),(N.数据类型||N["value-type"])=="string"&&(A.t="s",A.v=ji(N["string-value"]||""),b.dense?(F[te]||(F[te]=[]),F[te][ue]=A):F[Mi({r:te,c:ue})]=A),ue+=J-1;else if(g[1]!=="/"){H="",W=0,V=[],J=1;var et=j?te+j-1:te;if(++ue>fe.e.c&&(fe.e.c=ue),uefe.e.r&&(fe.e.r=et),oe=[],ye={},A={t:(N=ii(g[0],!1)).数据类型||N["value-type"],v:null},b.cellFormula)if(N.formula&&(N.formula=ji(N.formula)),N["number-matrix-columns-spanned"]&&N["number-matrix-rows-spanned"]&&(Z={s:{r:te,c:ue},e:{r:te+(parseInt(N["number-matrix-rows-spanned"],10)||0)-1,c:ue+(parseInt(N["number-matrix-columns-spanned"],10)||0)-1}},A.F=bi(Z),q.push([Z,A.F])),N.formula)A.f=im(N.formula);else for(rt=0;rt=q[rt][0].s.r&&te<=q[rt][0].e.r&&ue>=q[rt][0].s.c&&ue<=q[rt][0].e.c&&(A.F=q[rt][1]);switch((N["number-columns-spanned"]||N["number-rows-spanned"])&&(Z={s:{r:te,c:ue},e:{r:te+(parseInt(N["number-rows-spanned"],10)||0)-1,c:ue+(parseInt(N["number-columns-spanned"],10)||0)-1}},we.push(Z)),N["number-columns-repeated"]&&(J=parseInt(N["number-columns-repeated"],10)),A.t){case"boolean":A.t="b",A.v=po(N["boolean-value"]);break;case"float":case"percentage":case"currency":A.t="n",A.v=parseFloat(N.value);break;case"date":A.t="d",A.v=Po(N["date-value"]),b.cellDates||(A.t="n",A.v=Ys(A.v)),A.z="m/d/yy";break;case"time":A.t="n",A.v=wy(N["time-value"])/86400,b.cellDates&&(A.t="d",A.v=Cy(A.v)),A.z="HH:MM:SS";break;case"number":A.t="n",A.v=parseFloat(N.数据数值);break;default:if(A.t!=="string"&&A.t!=="text"&&A.t)throw new Error("Unsupported value type "+A.t);A.t="s",N["string-value"]!=null&&(H=ji(N["string-value"]),V=[])}}else{if(Fe=!1,A.t==="s"&&(A.v=H||"",V.length&&(A.R=V),Fe=W==0),X.Target&&(A.l=X),oe.length>0&&(A.c=oe,oe=[]),H&&b.cellText!==!1&&(A.w=H),Fe&&(A.t="z",delete A.v),(!Fe||b.sheetStubs)&&!(b.sheetRows&&b.sheetRows<=te))for(var st=0;st0;)F[te+st][ue+J]=Ro(A);else for(F[Mi({r:te+st,c:ue})]=A;--J>0;)F[Mi({r:te+st,c:ue+J})]=Ro(A);fe.e.c<=ue&&(fe.e.c=ue)}ue+=(J=parseInt(N["number-columns-repeated"]||"1",10))-1,J=0,A={},H="",V=[]}X={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(g[1]==="/"){if((u=E.pop())[0]!==g[3])throw"Bad state: "+u}else g[0].charAt(g[0].length-2)!=="/"&&E.push([g[3],!0]);break;case"annotation":if(g[1]==="/"){if((u=E.pop())[0]!==g[3])throw"Bad state: "+u;ye.t=H,V.length&&(ye.R=V),ye.a=ae,oe.push(ye)}else g[0].charAt(g[0].length-2)!=="/"&&E.push([g[3],!1]);ae="",me=0,H="",W=0,V=[];break;case"creator":g[1]==="/"?ae=I.slice(me,g.index):me=g.index+g[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(g[1]==="/"){if((u=E.pop())[0]!==g[3])throw"Bad state: "+u}else g[0].charAt(g[0].length-2)!=="/"&&E.push([g[3],!1]);H="",W=0,V=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(g[1]==="/"){if(Ae[B.name]=S,(u=E.pop())[0]!==g[3])throw"Bad state: "+u}else g[0].charAt(g[0].length-2)!=="/"&&(S="",B=ii(g[0],!1),E.push([g[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(E[E.length-1][0]){case"time-style":case"date-style":h=ii(g[0],!1),S+=wb[g[3]][h.style==="long"?1:0]}break;case"text":if(g[0].slice(-2)==="/>")break;if(g[1]==="/")switch(E[E.length-1][0]){case"number-style":case"date-style":case"time-style":S+=I.slice(_,g.index)}else _=g.index+g[0].length;break;case"named-range":se=Qf((h=ii(g[0],!1))["cell-range-address"]);var Ge={Name:h.name,Ref:se[0]+"!"+se[1]};_e&&(Ge.Sheet=T.length),z.Names.push(Ge);break;case"p":case"文本串":if(["master-styles"].indexOf(E[E.length-1][0])>-1)break;if(g[1]!=="/"||N&&N["string-value"])ii(g[0],!1),W=g.index+g[0].length;else{var Be=(m=I.slice(W,g.index),y=void 0,y=m.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(je,lt){return Array(parseInt(lt,10)+1).join(" ")}).replace(/]*\/>/g," ").replace(//g,` `),[ji(y.replace(/<[^>]*>/g,""))]);H=(H.length>0?H+` `:"")+Be[0]}break;case"database-range":if(g[1]==="/")break;try{D[(se=Qf(ii(g[0])["target-range-address"]))[0]]["!autofilter"]={ref:se[1]}}catch{}break;case"a":if(g[1]!=="/"){if(!(X=ii(g[0],!1)).href)break;X.Target=ji(X.href),delete X.href,X.Target.charAt(0)=="#"&&X.Target.indexOf(".")>-1?(se=Qf(X.Target.slice(1)),X.Target="#"+se[0]+"!"+se[1]):X.Target.match(/^\.\.[\\\/]/)&&(X.Target=X.Target.slice(3))}break;default:switch(g[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(b.WTF)throw new Error(g)}}var Te={Sheets:D,SheetNames:T,Workbook:z};return b.bookSheets&&delete Te.Sheets,Te}function hm(a,c){c=c||{},Bl(a,"META-INF/manifest.xml")&&function(d,p){for(var g,A,m=$l(d);g=Nd.exec(m);)switch(g[3]){case"manifest":break;case"file-entry":if((A=ii(g[0],!1)).path=="/"&&A.type!=="application/vnd.oasis.opendocument.spreadsheet")throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(p&&p.WTF)throw g}}(Qs(a,"META-INF/manifest.xml"),c);var u=Qc(a,"content.xml");if(!u)throw new Error("Missing content.xml in ODS / UOF file");var h=lm(vo(u),c);return Bl(a,"meta.xml")&&(h.Props=eE(Qs(a,"meta.xml"))),h}function fm(a,c){return lm(a,c)}var Yp=function(){var a=["",'',"",'',"",'',"",""].join(""),c=""+a+"";return function(){return ts+c}}(),AB=function(){var a=` `,c=function(u,h,d){var p=[];p.push(' `);var g=0,A=0,m=dc(u["!ref"]||"A1"),y=u["!merges"]||[],b=0,I=Array.isArray(u);if(u["!cols"])for(A=0;A<=m.e.c;++A)p.push(" `);var E="",B=u["!rows"]||[];for(g=0;g `);for(;g<=m.e.r;++g){for(E=B[g]?' table:style-name="ro'+B[g].ods+'"':"",p.push(" `),A=0;AA||y[b].s.r>g||y[b].e.c `);else{var T=Mi({r:g,c:A}),F=I?(u[g]||[])[A]:u[T];if(F&&F.f&&(_["table:formula"]=Xa(("of:="+F.f.replace(Mc,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),F.F&&F.F.slice(0,T.length)==T)){var N=dc(F.F);_["table:number-matrix-columns-spanned"]=N.e.c-N.s.c+1,_["table:number-matrix-rows-spanned"]=N.e.r-N.s.r+1}if(F){switch(F.t){case"b":D=F.v?"TRUE":"FALSE",_["office:value-type"]="boolean",_["office:boolean-value"]=F.v?"true":"false";break;case"n":D=F.w||String(F.v||0),_["office:value-type"]="float",_["office:value"]=F.v||0;break;case"s":case"str":D=F.v==null?"":F.v,_["office:value-type"]="string";break;case"d":D=F.w||Po(F.v).toISOString(),_["office:value-type"]="date",_["office:date-value"]=Po(F.v).toISOString(),_["table:style-name"]="ce1";break;default:p.push(a);continue}var H=Xa(D).replace(/ +/g,function(V){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"");if(F.l&&F.l.Target){var W=F.l.Target;(W=W.charAt(0)=="#"?"#"+W.slice(1).replace(/\./,"!"):W).charAt(0)=="#"||W.match(/^\w+:/)||(W="../"+W),H=on("text:a",H,{"xlink:href":W.replace(/&/g,"&")})}p.push(" "+on("table:table-cell",on("text:p",H,{}),_)+` `)}else p.push(a)}}p.push(` `)}return p.push(` `),p.join("")};return function(u,h){var d=[ts],p=Ld({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),g=Ld({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});h.bookType=="fods"?(d.push(" `),d.push(SA().replace(/office:document-meta/g,"office:meta"))):d.push(" `),function(m,y){m.push(` `),m.push(` `),m.push(` `),m.push(` / `),m.push(` `),m.push(` / `),m.push(` `),m.push(` `);var b=0;y.SheetNames.map(function(E){return y.Sheets[E]}).forEach(function(E){if(E&&E["!cols"]){for(var B=0;B `),m.push(' `),m.push(` `),++b}}});var I=0;y.SheetNames.map(function(E){return y.Sheets[E]}).forEach(function(E){if(E&&E["!rows"]){for(var B=0;B `),m.push(' `),m.push(` `),++I}}}),m.push(` `),m.push(` `),m.push(` `),m.push(` `),m.push(` `)}(d,u),d.push(` `),d.push(` `);for(var A=0;A!=u.SheetNames.length;++A)d.push(c(u.Sheets[u.SheetNames[A]],u,A));return d.push(` `),d.push(` `),h.bookType=="fods"?d.push(""):d.push(""),d.join("")}}();function O1(a,c){if(c.bookType=="fods")return AB(a,c);var u=sI(),h="",d=[],p=[];return Zi(u,h="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Zi(u,h="content.xml",AB(a,c)),d.push([h,"text/xml"]),p.push([h,"ContentFile"]),Zi(u,h="styles.xml",Yp(a,c)),d.push([h,"text/xml"]),p.push([h,"StylesFile"]),Zi(u,h="meta.xml",ts+SA()),d.push([h,"text/xml"]),p.push([h,"MetadataFile"]),Zi(u,h="manifest.rdf",function(g){var A,m,y=[ts];y.push(` `);for(var b=0;b!=g.length;++b)y.push(hu(g[b][0],g[b][1])),y.push((A="",m=g[b][0],[' `,' `,` `].join("")));return y.push(hu("","Document","pkg")),y.push(""),y.join("")}(p)),d.push([h,"application/rdf+xml"]),Zi(u,h="META-INF/manifest.xml",function(g){var A=[ts];A.push(` `),A.push(` `);for(var m=0;m `);return A.push(""),A.join("")}(d)),u}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function xf(a){return new DataView(a.buffer,a.byteOffset,a.byteLength)}function dg(a){return typeof TextDecoder<"u"?new TextDecoder().decode(a):vo(Af(a))}function vk(a){return typeof TextEncoder<"u"?new TextEncoder().encode(a):Zc(Dh(a))}function jh(a){var c=a.reduce(function(d,p){return d+p.length},0),u=new Uint8Array(c),h=0;return a.forEach(function(d){u.set(d,h),h+=d.length}),u}function Sf(a){return 16843009*((a=(858993459&(a-=a>>1&1431655765))+(a>>2&858993459))+(a>>4)&252645135)>>>24}function P1(a,c){var u=c?c[0]:0,h=127&a[u];e:if(a[u++]>=128&&(h|=(127&a[u])<<7,a[u++]<128||(h|=(127&a[u])<<14,a[u++]<128)||(h|=(127&a[u])<<21,a[u++]<128)||(h+=(127&a[u])*Math.pow(2,28),++u,a[u++]<128)||(h+=(127&a[u])*Math.pow(2,35),++u,a[u++]<128)||(h+=(127&a[u])*Math.pow(2,42),++u,a[u++]<128)))break e;return c&&(c[0]=u),h}function ro(a){var c=new Uint8Array(7);c[0]=127&a;var u=1;e:if(a>127){if(c[u-1]|=128,c[u]=a>>7&127,++u,a<=16383||(c[u-1]|=128,c[u]=a>>14&127,++u,a<=2097151)||(c[u-1]|=128,c[u]=a>>21&127,++u,a<=268435455)||(c[u-1]|=128,c[u]=a/256>>>21&127,++u,a<=34359738367)||(c[u-1]|=128,c[u]=a/65536>>>21&127,++u,a<=4398046511103))break e;c[u-1]|=128,c[u]=a/16777216>>>21&127,++u}return c.slice(0,u)}function qo(a){var c=0,u=127&a[c];e:if(a[c++]>=128){if(u|=(127&a[c])<<7,a[c++]<128||(u|=(127&a[c])<<14,a[c++]<128)||(u|=(127&a[c])<<21,a[c++]<128))break e;u|=(127&a[c])<<28}return u}function qa(a){for(var c=[],u=[0];u[0]=128;);h=a.slice(m,u[0]);break;case 5:A=4,h=a.slice(u[0],u[0]+A),u[0]+=A;break;case 1:A=8,h=a.slice(u[0],u[0]+A),u[0]+=A;break;case 2:A=P1(a,u),h=a.slice(u[0],u[0]+A),u[0]+=A;break;default:throw new Error("PB Type ".concat(g," for Field ").concat(p," at offset ").concat(d))}var y={data:h,type:g};c[p]==null?c[p]=[y]:c[p].push(y)}return c}function Au(a){var c=[];return a.forEach(function(u,h){u.forEach(function(d){d.data&&(c.push(ro(8*h+d.type)),d.type==2&&c.push(ro(d.data.length)),c.push(d.data))})}),jh(c)}function Eb(a,c){return(a==null?void 0:a.map(function(u){return c(u.data)}))||[]}function Pl(a){for(var c,u=[],h=[0];h[0]>>0>0),u.push(g)}return u}function Jp(a){var c=[];return a.forEach(function(u){var h=[];h[1]=[{data:ro(u.id),type:0}],h[2]=[],u.merge!=null&&(h[3]=[{data:ro(+!!u.merge),type:0}]);var d=[];u.messages.forEach(function(g){d.push(g.data),g.meta[3]=[{type:0,data:ro(g.data.length)}],h[2].push({data:Au(g.meta),type:2})});var p=Au(h);c.push(ro(p.length)),c.push(p),d.forEach(function(g){return c.push(g)})}),jh(c)}function yk(a,c){if(a!=0)throw new Error("Unexpected Snappy chunk type ".concat(a));for(var u=[0],h=P1(c,u),d=[];u[0]>2&7),g=(224&c[u[0]++])<<3,g|=c[u[0]++]):(A=1+(c[u[0]++]>>2),p==2?(g=c[u[0]]|c[u[0]+1]<<8,u[0]+=2):(g=(c[u[0]]|c[u[0]+1]<<8|c[u[0]+2]<<16|c[u[0]+3]<<24)>>>0,u[0]+=4)),d=[jh(d)],g==0)throw new Error("Invalid offset 0");if(g>d[0].length)throw new Error("Invalid offset beyond length");if(A>=g)for(d.push(d[0].slice(-g)),A-=g;A>=d[d.length-1].length;)d.push(d[d.length-1]),A-=d[d.length-1].length;d.push(d[0].slice(-g,-g+A))}else{var m=c[u[0]++]>>2;if(m<60)++m;else{var y=m-59;m=c[u[0]],y>1&&(m|=c[u[0]+1]<<8),y>2&&(m|=c[u[0]+2]<<16),y>3&&(m|=c[u[0]+3]<<24),m>>>=0,m++,u[0]+=y}d.push(c.slice(u[0],u[0]+m)),u[0]+=m}}var b=jh(d);if(b.length!=h)throw new Error("Unexpected length: ".concat(b.length," != ").concat(h));return b}function Gl(a){for(var c=[],u=0;u>8&255]))):h<=16777216?(g+=4,c.push(new Uint8Array([248,h-1&255,h-1>>8&255,h-1>>16&255]))):h<=4294967296&&(g+=5,c.push(new Uint8Array([252,h-1&255,h-1>>8&255,h-1>>16&255,h-1>>>24&255]))),c.push(a.slice(u,u+h)),g+=h,d[0]=0,d[1]=255&g,d[2]=g>>8&255,d[3]=g>>16&255,u+=h}return jh(c)}function mk(a,c,u){var h,d=xf(a),p=d.getUint32(8,!0),g=12,A=-1,m=-1,y=NaN,b=NaN,I=new Date(2001,0,1);switch(1&p&&(y=function(E,B){for(var S=(127&E[B+15])<<7|E[B+14]>>1,_=1&E[B+14],D=B+13;D>=B;--D)_=256*_+E[D];return(128&E[B+15]?-_:_)*Math.pow(10,S-6176)}(a,g),g+=16),2&p&&(b=d.getFloat64(g,!0),g+=8),4&p&&(I.setTime(I.getTime()+1e3*d.getFloat64(g,!0)),g+=8),8&p&&(m=d.getUint32(g,!0),g+=4),16&p&&(A=d.getUint32(g,!0),g+=4),a[1]){case 0:break;case 2:case 10:h={t:"n",v:y};break;case 3:h={t:"s",v:c[m]};break;case 5:h={t:"d",v:I};break;case 6:h={t:"b",v:b>0};break;case 7:h={t:"n",v:b/86400};break;case 8:h={t:"e",v:0};break;case 9:if(!(A>-1))throw new Error("Unsupported cell type ".concat(a[1]," : ").concat(31&p," : ").concat(a.slice(0,4)));h={t:"s",v:u[A]};break;default:throw new Error("Unsupported cell type ".concat(a[1]," : ").concat(31&p," : ").concat(a.slice(0,4)))}return h}function Bb(a,c){var u=new Uint8Array(32),h=xf(u),d=12,p=0;switch(u[0]=5,a.t){case"n":u[1]=2,function(g,A,m){var y=Math.floor(m==0?0:Math.LOG10E*Math.log(Math.abs(m)))+6176-20,b=m/Math.pow(10,y-6176);g[A+15]|=y>>7,g[A+14]|=(127&y)<<1;for(var I=0;b>=1;++I,b/=256)g[A+I]=255&b;g[A+15]|=m>=0?0:128}(u,d,a.v),p|=1,d+=16;break;case"b":u[1]=6,h.setFloat64(d,a.v?1:0,!0),p|=2,d+=8;break;case"s":if(c.indexOf(a.v)==-1)throw new Error("Value ".concat(a.v," missing from SST!"));u[1]=3,h.setUint32(d,c.indexOf(a.v),!0),p|=8,d+=4;break;default:throw"unsupported cell type "+a.t}return h.setUint32(8,p,!0),u.slice(0,d)}function Am(a,c){var u=new Uint8Array(32),h=xf(u),d=12,p=0;switch(u[0]=3,a.t){case"n":u[2]=2,h.setFloat64(d,a.v,!0),p|=32,d+=8;break;case"b":u[2]=6,h.setFloat64(d,a.v?1:0,!0),p|=32,d+=8;break;case"s":if(c.indexOf(a.v)==-1)throw new Error("Value ".concat(a.v," missing from SST!"));u[2]=3,h.setUint32(d,c.indexOf(a.v),!0),p|=16,d+=4;break;default:throw"unsupported cell type "+a.t}return h.setUint32(4,p,!0),u.slice(0,d)}function Ik(a,c,u){switch(a[0]){case 0:case 1:case 2:case 3:return function(h,d,p,g){var A,m=xf(h),y=m.getUint32(4,!0),b=(g>1?12:8)+4*Sf(y&(g>1?3470:398)),I=-1,E=-1,B=NaN,S=new Date(2001,0,1);switch(512&y&&(I=m.getUint32(b,!0),b+=4),b+=4*Sf(y&(g>1?12288:4096)),16&y&&(E=m.getUint32(b,!0),b+=4),32&y&&(B=m.getFloat64(b,!0),b+=8),64&y&&(S.setTime(S.getTime()+1e3*m.getFloat64(b,!0)),b+=8),h[2]){case 0:break;case 2:A={t:"n",v:B};break;case 3:A={t:"s",v:d[E]};break;case 5:A={t:"d",v:S};break;case 6:A={t:"b",v:B>0};break;case 7:A={t:"n",v:B/86400};break;case 8:A={t:"e",v:0};break;case 9:if(I>-1)A={t:"s",v:p[I]};else if(E>-1)A={t:"s",v:d[E]};else{if(isNaN(B))throw new Error("Unsupported cell type ".concat(h.slice(0,4)));A={t:"n",v:B}}break;default:throw new Error("Unsupported cell type ".concat(h.slice(0,4)))}return A}(a,c,u,a[0]);case 5:return mk(a,c,u);default:throw new Error("Unsupported payload version ".concat(a[0]))}}function qu(a){return P1(qa(a)[1][0].data)}function dB(a,c){var u=qa(c.data),h=qo(u[1][0].data),d=u[3],p=[];return(d||[]).forEach(function(g){var A=qa(g.data),m=qo(A[1][0].data)>>>0;switch(h){case 1:p[m]=dg(A[3][0].data);break;case 8:var y=qa(a[qu(A[9][0].data)][0].data),b=a[qu(y[1][0].data)][0],I=qo(b.meta[1][0].data);if(I!=2001)throw new Error("2000 unexpected reference to ".concat(I));var E=qa(b.data);p[m]=E[3].map(function(B){return dg(B.data)}).join("")}}),p}function kb(a,c){var u,h=qa(c.data),d=(u=h==null?void 0:h[7])!=null&&u[0]?qo(h[7][0].data)>>>0>0?1:0:-1,p=Eb(h[5],function(g){return function(A,m){var y,b,I,E,B,S,_,D,T,F,N,H,W,V,te,ue,fe=qa(A),de=qo(fe[1][0].data)>>>0,Ae=qo(fe[2][0].data)>>>0,we=((b=(y=fe[8])==null?void 0:y[0])==null?void 0:b.data)&&qo(fe[8][0].data)>0||!1;if((E=(I=fe[7])==null?void 0:I[0])!=null&&E.data&&m!=0)te=(S=(B=fe[7])==null?void 0:B[0])==null?void 0:S.data,ue=(D=(_=fe[6])==null?void 0:_[0])==null?void 0:D.data;else{if(!((F=(T=fe[4])==null?void 0:T[0])!=null&&F.data)||m==1)throw"NUMBERS Tile missing ".concat(m," cell storage");te=(H=(N=fe[4])==null?void 0:N[0])==null?void 0:H.data,ue=(V=(W=fe[3])==null?void 0:W[0])==null?void 0:V.data}for(var Z=we?4:1,ne=xf(te),j=[],J=0;J=1&&(z[j[j.length-1][0]]=ue.subarray(j[j.length-1][1]*Z)),{R:de,cells:z}}(g,d)});return{nrows:qo(h[4][0].data)>>>0,data:p.reduce(function(g,A){return g[A.R]||(g[A.R]=[]),A.cells.forEach(function(m,y){if(g[A.R][y])throw new Error("Duplicate cell r=".concat(A.R," c=").concat(y));g[A.R][y]=m}),g},[])}}function dm(a,c){var u={"!ref":"A1"},h=a[qu(qa(c.data)[2][0].data)],d=qo(h[0].meta[1][0].data);if(d!=6001)throw new Error("6000 unexpected reference to ".concat(d));return function(p,g,A){var m,y=qa(g.data),b={s:{r:0,c:0},e:{r:0,c:0}};if(b.e.r=(qo(y[6][0].data)>>>0)-1,b.e.r<0)throw new Error("Invalid row varint ".concat(y[6][0].data));if(b.e.c=(qo(y[7][0].data)>>>0)-1,b.e.c<0)throw new Error("Invalid col varint ".concat(y[7][0].data));A["!ref"]=bi(b);var I=qa(y[4][0].data),E=dB(p,p[qu(I[4][0].data)][0]),B=(m=I[17])!=null&&m[0]?dB(p,p[qu(I[17][0].data)][0]):[],S=qa(I[3][0].data),_=0;S[1].forEach(function(D){var T=qa(D.data),F=p[qu(T[2][0].data)][0],N=qo(F.meta[1][0].data);if(N!=6002)throw new Error("6001 unexpected reference to ".concat(N));var H=kb(0,F);H.data.forEach(function(W,V){W.forEach(function(te,ue){var fe=Mi({r:_+V,c:ue}),de=Ik(te,E,B);de&&(A[fe]=de)})}),_+=H.nrows})}(a,h[0],u),u}function bk(a,c){var u={SheetNames:[],Sheets:{}};if(Eb(qa(c.data)[1],qu).forEach(function(h){a[h].forEach(function(d){if(qo(d.meta[1][0].data)==2){var p=function(g,A){var m,y=qa(A.data),b={name:(m=y[1])!=null&&m[0]?dg(y[1][0].data):"",sheets:[]};return Eb(y[2],qu).forEach(function(I){g[I].forEach(function(E){qo(E.meta[1][0].data)==6e3&&b.sheets.push(dm(g,E))})}),b}(a,d);p.sheets.forEach(function(g,A){Fb(u,g,A==0?p.name:p.name+"_"+A,!0)})}})}),u.SheetNames.length==0)throw new Error("Empty NUMBERS file");return u}function Qb(a){var c,u,h,d,p={},g=[];if(a.FullPaths.forEach(function(m){if(m.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),a.FileIndex.forEach(function(m){if(m.name.match(/\.iwa$/)){var y,b;try{y=Gl(m.content)}catch(I){return console.log("?? "+m.content.length+" "+(I.message||I))}try{b=Pl(y)}catch(I){return console.log("## "+(I.message||I))}b.forEach(function(I){p[I.id]=I.messages,g.push(I.id)})}}),!g.length)throw new Error("File has no messages");var A=((d=(h=(u=(c=p==null?void 0:p[1])==null?void 0:c[0])==null?void 0:u.meta)==null?void 0:h[1])==null?void 0:d[0].data)&&qo(p[1][0].meta[1][0].data)==1&&p[1][0];if(A||g.forEach(function(m){p[m].forEach(function(y){if(qo(y.meta[1][0].data)>>>0==1){if(A)throw new Error("Document has multiple roots");A=y}})}),!A)throw new Error("Cannot find Document root");return bk(p,A)}function gB(a,c,u){var h,d,p,g;if(!((h=a[6])!=null&&h[0])||!((d=a[7])!=null&&d[0]))throw"Mutation only works on post-BNC storages!";if((g=(p=a[8])==null?void 0:p[0])!=null&&g.data&&qo(a[8][0].data)>0)throw"Math only works with normal offsets";for(var A=0,m=xf(a[7][0].data),y=0,b=[],I=xf(a[4][0].data),E=0,B=[],S=0;S]*r:id="([^"]*)"/)||["",""])[1];return V["!id"][te].Target}(Qc(a,S,!0),xA(Qc(a,_,!0),S)),T=a1(D,S),F=uo(T);E=Op(Qc(a,T,!0),0,0,xA(Qc(a,F,!0),T),0,E);break;case"macro":H=c,p[h],H.slice(-4),E={"!type":"macro"};break;case"dialog":E=function(W,V){return V.slice(-4),{"!type":"dialog"}}(0,c,0,0,p[h]);break;default:throw new Error("Unrecognized sheet type "+A)}g[h]=E;var N=[];p&&p[h]&&to(p[h]).forEach(function(W){var V="";if(p[h][W].Type==ma.CMNT){V=a1(p[h][W].Target,c);var te=ah(Qs(a,V,!0),V,m);if(!te||!te.length)return;qI(E,te,!1)}p[h][W].Type==ma.TCMNT&&(V=a1(p[h][W].Target,c),N=N.concat(function(ue,fe){var de=[],Ae=!1,we={},Z=0;return ue.replace(Js,function(ne,j){var J=ii(ne);switch(cc(J[0])){case"":case"":case"":case"":break;case"":we.t!=null&&de.push(we);break;case"":case"":we.t=ue.slice(Z,j).replace(/\r\n/g,` `).replace(/\r/g,` `);break;case"":case"":case"":Ae=!1;break;default:if(!Ae&&fe.WTF)throw new Error("unrecognized "+J[0]+" in threaded comments")}return ne}),de}(Qs(a,V,!0),m)))}),N&&N.length&&qI(E,N,!0,m.people||[])}catch(W){if(m.WTF)throw W}var H}function Rs(a){return a.charAt(0)=="/"?a.slice(1):a}function Ck(a,c){if(hp(),gm(c=c||{}),Bl(a,"META-INF/manifest.xml")||Bl(a,"objectdata.xml"))return hm(a,c);if(Bl(a,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(Qb!==void 0){if(a.FileIndex)return Qb(a);var u=ai.utils.cfb_new();return Mw(a).forEach(function(ne){Zi(u,ne,w5(a,ne))}),Qb(u)}throw new Error("Unsupported NUMBERS file")}if(!Bl(a,"[Content_Types].xml"))throw Bl(a,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Bl(a,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var h,d,p=Mw(a),g=function(ne){var j={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!ne||!ne.match)return j;var J={};if((ne.match(Js)||[]).forEach(function(q){var z=ii(q);switch(z[0].replace(Tw,"<")){case"0?j.calcchains[0]:"",j.sst=j.strs.length>0?j.strs[0]:"",j.style=j.styles.length>0?j.styles[0]:"",j.defaults=J,delete j.calcchains,j}(Qc(a,"[Content_Types].xml")),A=!1;if(g.workbooks.length===0&&Qs(a,d="xl/workbook.xml",!0)&&g.workbooks.push(d),g.workbooks.length===0){if(!Qs(a,d="xl/workbook.bin",!0))throw new Error("Could not find workbook");g.workbooks.push(d),A=!0}g.workbooks[0].slice(-3)=="bin"&&(A=!0);var m={},y={};if(!c.bookSheets&&!c.bookProps){if(R1=[],g.sst)try{R1=VE(Qs(a,Rs(g.sst)),g.sst,c)}catch(ne){if(c.WTF)throw ne}c.cellStyles&&g.themes.length&&(m=function(ne,j,J){return xE(ne,J)}(Qc(a,g.themes[0].replace(/^\//,""),!0)||"",g.themes[0],c)),g.style&&(y=lk(Qs(a,Rs(g.style)),g.style,m,c))}g.links.map(function(ne){try{return xA(Qc(a,uo(Rs(ne))),ne),pb(Qs(a,Rs(ne)),0,ne,c)}catch{}});var b=uk(Qs(a,Rs(g.workbooks[0])),g.workbooks[0],c),I={},E="";g.coreprops.length&&((E=Qs(a,Rs(g.coreprops[0]),!0))&&(I=eE(E)),g.extprops.length!==0&&(E=Qs(a,Rs(g.extprops[0]),!0))&&function(ne,j,J){var q={};j||(j={}),ne=vo(ne),zd.forEach(function(z){var X=(ne.match(Fa(z[0]))||[])[1];switch(z[2]){case"string":X&&(j[z[1]]=ji(X));break;case"bool":j[z[1]]=X==="true";break;case"raw":var se=ne.match(new RegExp("<"+z[0]+"[^>]*>([\\s\\S]*?)"));se&&se.length>0&&(q[z[1]]=se[1])}}),q.HeadingPairs&&q.TitlesOfParts&&tE(q.HeadingPairs,q.TitlesOfParts,j,J)}(E,I,c));var B={};c.bookSheets&&!c.bookProps||g.custprops.length!==0&&(E=Qc(a,Rs(g.custprops[0]),!0))&&(B=function(ne,j){var J={},q="",z=ne.match(M5);if(z)for(var X=0;X!=z.length;++X){var se=z[X],oe=ii(se);switch(oe[0]){case"":q=null;break;default:if(se.indexOf(""),ae=ye[0].slice(4),me=ye[1];switch(ae){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":J[q]=ji(me);break;case"bool":J[q]=po(me);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":J[q]=parseInt(me,10);break;case"r4":case"r8":case"decimal":J[q]=parseFloat(me);break;case"filetime":case"date":J[q]=Po(me);break;default:if(ae.slice(-1)=="/")break;j.WTF&&typeof console<"u"&&console.warn("Unexpected",se,ae,ye)}}else if(se.slice(0,2)!=="0&&(h=I.SheetNames),c.bookProps&&(S.Props=I,S.Custprops=B),c.bookSheets&&h!==void 0&&(S.SheetNames=h),c.bookSheets?S.SheetNames:c.bookProps))return S;h={};var _={};c.bookDeps&&g.calcchain&&(_=Pp(Qs(a,Rs(g.calcchain)),g.calcchain));var D,T,F=0,N={},H=b.Sheets;I.Worksheets=H.length,I.SheetNames=[];for(var W=0;W!=H.length;++W)I.SheetNames[W]=H[W].name;var V=A?"bin":"xml",te=g.workbooks[0].lastIndexOf("/"),ue=(g.workbooks[0].slice(0,te+1)+"_rels/"+g.workbooks[0].slice(te+1)+".rels").replace(/^\//,"");Bl(a,ue)||(ue="xl/_rels/workbook."+V+".rels");var fe=xA(Qc(a,ue,!0),ue.replace(/_rels.*/,"s5s"));(g.metadata||[]).length>=1&&(c.xlmeta=sm(Qs(a,Rs(g.metadata[0])),g.metadata[0],c)),(g.people||[]).length>=1&&(c.people=function(ne,j){var J=[],q=!1;return ne.replace(Js,function(z){var X=ii(z);switch(cc(X[0])){case"":case"":case"":case"":case"":break;case"":q=!1;break;default:if(!q&&j.WTF)throw new Error("unrecognized "+X[0]+" in threaded comments")}return z}),J}(Qs(a,Rs(g.people[0])),c)),fe&&(fe=function(ne,j){if(!ne)return 0;try{ne=j.map(function(J){return J.id||(J.id=J.strRelID),[J.name,ne["!id"][J.id].Target,(q=ne["!id"][J.id].Type,ma.WS.indexOf(q)>-1?"sheet":q==ma.CS?"chart":q==ma.DS?"dialog":q==ma.MS?"macro":q&&q.length?q:"sheet")];var q})}catch{return null}return ne&&ne.length!==0?ne:null}(fe,b.Sheets));var de=Qs(a,"xl/worksheets/sheet.xml",!0)?1:0;e:for(F=0;F!=I.Worksheets;++F){var Ae="sheet";if(fe&&fe[F]?(D="xl/"+fe[F][1].replace(/[\/]?xl\//,""),Bl(a,D)||(D=fe[F][1]),Bl(a,D)||(D=ue.replace(/_rels\/.*$/,"")+fe[F][1]),Ae=fe[F][2]):D=(D="xl/worksheets/sheet"+(F+1-de)+"."+V).replace(/sheet0\./,"sheet."),T=D.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),c&&c.sheets!=null)switch(typeof c.sheets){case"number":if(F!=c.sheets)continue e;break;case"string":if(I.SheetNames[F].toLowerCase()!=c.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(c.sheets)){for(var we=!1,Z=0;Z!=c.sheets.length;++Z)typeof c.sheets[Z]=="number"&&c.sheets[Z]==F&&(we=1),typeof c.sheets[Z]=="string"&&c.sheets[Z].toLowerCase()==I.SheetNames[F].toLowerCase()&&(we=1);if(!we)continue e}}qp(a,D,T,I.SheetNames[F],F,N,h,Ae,c,b,m,y)}return S={Directory:g,Workbook:b,Props:I,Custprops:B,Deps:_,Sheets:h,SheetNames:I.SheetNames,Strings:R1,Styles:y,Themes:m,SSF:Ro(xi)},c&&c.bookFiles&&(a.files?(S.keys=p,S.files=a.files):(S.keys=[],S.files={},a.FullPaths.forEach(function(ne,j){ne=ne.replace(/^Root Entry[\/]/,""),S.keys.push(ne),S.files[ne]=a.FileIndex[j]}))),c&&c.bookVBA&&(g.vba.length>0?S.vbaraw=Qs(a,Rs(g.vba[0]),!0):g.defaults&&g.defaults.bin==="application/vnd.ms-office.vbaProject"&&(S.vbaraw=Qs(a,"xl/vbaProject.bin",!0))),S}function pB(a,c){var u,h,d=c||{},p="Workbook",g=ai.find(a,p);try{if(p="/!DataSpaces/Version",!(g=ai.find(a,p))||!g.content)throw new Error("ECMA-376 Encrypted file missing "+p);if(u=g.content,(h={}).id=u.read_shift(0,"lpp4"),h.R=Dl(u,4),h.U=Dl(u,4),h.W=Dl(u,4),p="/!DataSpaces/DataSpaceMap",!(g=ai.find(a,p))||!g.content)throw new Error("ECMA-376 Encrypted file missing "+p);var A=function(b){var I=[];b.l+=4;for(var E=b.read_shift(4);E-- >0;)I.push(og(b));return I}(g.content);if(A.length!==1||A[0].comps.length!==1||A[0].comps[0].t!==0||A[0].name!=="StrongEncryptionDataSpace"||A[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+p);if(p="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(g=ai.find(a,p))||!g.content)throw new Error("ECMA-376 Encrypted file missing "+p);var m=function(b){var I=[];b.l+=4;for(var E=b.read_shift(4);E-- >0;)I.push(b.read_shift(0,"lpp4"));return I}(g.content);if(m.length!=1||m[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+p);if(p="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(g=ai.find(a,p))||!g.content)throw new Error("ECMA-376 Encrypted file missing "+p);Rl(g.content)}catch{}if(p="/EncryptionInfo",!(g=ai.find(a,p))||!g.content)throw new Error("ECMA-376 Encrypted file missing "+p);var y=function(b){var I=Dl(b);switch(I.Minor){case 2:return[I.Minor,yE(b)];case 3:return[I.Minor,w1()];case 4:return[I.Minor,mE(b)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+I.Minor)}(g.content);if(p="/EncryptedPackage",!(g=ai.find(a,p))||!g.content)throw new Error("ECMA-376 Encrypted file missing "+p);if(y[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(y[1],g.content,d.password||"",d);if(y[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(y[1],g.content,d.password||"",d);throw new Error("File is password-protected")}function Sb(a,c){return c.bookType=="ods"?O1(a,c):c.bookType=="numbers"?function(u,h){if(!h||!h.numbers)throw new Error("Must pass a `numbers` option -- check the README");var d=u.Sheets[u.SheetNames[0]];u.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var p=dc(d["!ref"]);p.s.r=p.s.c=0;var g=!1;p.e.c>9&&(g=!0,p.e.c=9),p.e.r>49&&(g=!0,p.e.r=49),g&&console.error("The Numbers writer is currently limited to ".concat(bi(p)));var A=mm(d,{range:p,header:1}),m=["~Sh33tJ5~"];A.forEach(function(ae){return ae.forEach(function(me){typeof me=="string"&&m.push(me)})});var y={},b=[],I=ai.read(h.numbers,{type:"base64"});I.FileIndex.map(function(ae,me){return[ae,I.FullPaths[me]]}).forEach(function(ae){var me=ae[0],Fe=ae[1];me.type==2&&me.name.match(/\.iwa/)&&Pl(Gl(me.content)).forEach(function(_e){b.push(_e.id),y[_e.id]={deps:[],location:Fe,type:qo(_e.messages[0].meta[1][0].data)}})}),b.sort(function(ae,me){return ae-me});var E=b.filter(function(ae){return ae>1}).map(function(ae){return[ae,ro(ae)]});I.FileIndex.map(function(ae,me){return[ae,I.FullPaths[me]]}).forEach(function(ae){var me=ae[0];ae[1],me.name.match(/\.iwa/)&&Pl(Gl(me.content)).forEach(function(Fe){Fe.messages.forEach(function(_e){E.forEach(function(rt){Fe.messages.some(function(et){return qo(et.meta[1][0].data)!=11006&&function(st,Ge){e:for(var Be=0;Be<=st.length-Ge.length;++Be){for(var Te=0;Te-1,g={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};G1(h=h||{});var A=sI(),m="",y=0;if(h.cellXfs=[],rl(h.cellXfs,{},{revssf:{General:0}}),u.Props||(u.Props={}),Zi(A,m="docProps/core.xml",EI(u.Props,h)),g.coreprops.push(m),co(h.rels,2,m,ma.CORE_PROPS),m="docProps/app.xml",!(u.Props&&u.Props.SheetNames))if(u.Workbook&&u.Workbook.Sheets){for(var b=[],I=0;I0&&(Zi(A,m="docProps/custom.xml",kI(u.Custprops)),g.custprops.push(m),co(h.rels,4,m,ma.CUST_PROPS)),y=1;y<=u.SheetNames.length;++y){var E={"!id":{}},B=u.Sheets[u.SheetNames[y-1]];if((B||{})["!type"],Zi(A,m="xl/worksheets/sheet"+y+"."+d,Wu(y-1,m,h,u,E)),g.sheets.push(m),co(h.wbrels,-1,"worksheets/sheet"+y+"."+d,ma.WS[0]),B){var S=B["!comments"],_=!1,D="";S&&S.length>0&&(Zi(A,D="xl/comments"+y+"."+d,Gp(S,D)),g.comments.push(D),co(E,-1,"../comments"+y+"."+d,ma.CMNT),_=!0),B["!legacy"]&&_&&Zi(A,"xl/drawings/vmlDrawing"+y+".vml",WI(y,B["!comments"])),delete B["!comments"],delete B["!legacy"]}E["!id"].rId1&&Zi(A,uo(m),qd(E))}return h.Strings!=null&&h.Strings.length>0&&(Zi(A,m="xl/sharedStrings."+d,function(T,F,N){return(F.slice(-4)===".bin"?Qp:tl)(T,N)}(h.Strings,m,h)),g.strs.push(m),co(h.wbrels,-1,"sharedStrings."+d,ma.SST)),Zi(A,m="xl/workbook."+d,function(T,F){return(F.slice(-4)===".bin"?sk:db)(T)}(u,m)),g.workbooks.push(m),co(h.rels,1,m,ma.WB),Zi(A,m="xl/theme/theme1.xml",YI(u.Themes,h)),g.themes.push(m),co(h.wbrels,-1,"theme/theme1.xml",ma.THEME),Zi(A,m="xl/styles."+d,function(T,F,N){return(F.slice(-4)===".bin"?QE:HI)(T,N)}(u,m,h)),g.styles.push(m),co(h.wbrels,-1,"styles."+d,ma.STY),u.vbaraw&&p&&(Zi(A,m="xl/vbaProject.bin",u.vbaraw),g.vba.push(m),co(h.wbrels,-1,"vbaProject.bin",ma.VBA)),Zi(A,m="xl/metadata."+d,function(T){return(T.slice(-4)===".bin"?_p:Dp)()}(m)),g.metadata.push(m),co(h.wbrels,-1,"metadata."+d,ma.XLMETA),Zi(A,"[Content_Types].xml",QA(g,h)),Zi(A,"_rels/.rels",qd(h.rels)),Zi(A,"xl/_rels/workbook."+d+".rels",qd(h.wbrels)),delete h.revssf,delete h.ssf,A}(a,c):function(u,h){LA=1024,u&&!u.SSF&&(u.SSF=Ro(xi)),u&&u.SSF&&(hp(),r1(u.SSF),h.revssf=Ap(u.SSF),h.revssf[u.SSF[65535]]=0,h.ssf=u.SSF),h.rels={},h.wbrels={},h.Strings=[],h.Strings.Count=0,h.Strings.Unique=0,OA?h.revStrings=new Map:(h.revStrings={},h.revStrings.foo=[],delete h.revStrings.foo);var d="xml",p=Zy.indexOf(h.bookType)>-1,g={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};G1(h=h||{});var A=sI(),m="",y=0;if(h.cellXfs=[],rl(h.cellXfs,{},{revssf:{General:0}}),u.Props||(u.Props={}),Zi(A,m="docProps/core.xml",EI(u.Props,h)),g.coreprops.push(m),co(h.rels,2,m,ma.CORE_PROPS),m="docProps/app.xml",!(u.Props&&u.Props.SheetNames))if(u.Workbook&&u.Workbook.Sheets){for(var b=[],I=0;I0&&(Zi(A,m="docProps/custom.xml",kI(u.Custprops)),g.custprops.push(m),co(h.rels,4,m,ma.CUST_PROPS));var E=["SheetJ5"];for(h.tcid=0,y=1;y<=u.SheetNames.length;++y){var B={"!id":{}},S=u.Sheets[u.SheetNames[y-1]];if((S||{})["!type"],Zi(A,m="xl/worksheets/sheet"+y+"."+d,ib(y-1,h,u,B)),g.sheets.push(m),co(h.wbrels,-1,"worksheets/sheet"+y+"."+d,ma.WS[0]),S){var _=S["!comments"],D=!1,T="";if(_&&_.length>0){var F=!1;_.forEach(function(N){N[1].forEach(function(H){H.T==1&&(F=!0)})}),F&&(Zi(A,T="xl/threadedComments/threadedComment"+y+"."+d,zI(_,E,h)),g.threadedcomments.push(T),co(B,-1,"../threadedComments/threadedComment"+y+"."+d,ma.TCMNT)),Zi(A,T="xl/comments"+y+"."+d,SE(_)),g.comments.push(T),co(B,-1,"../comments"+y+"."+d,ma.CMNT),D=!0}S["!legacy"]&&D&&Zi(A,"xl/drawings/vmlDrawing"+y+".vml",WI(y,S["!comments"])),delete S["!comments"],delete S["!legacy"]}B["!id"].rId1&&Zi(A,uo(m),qd(B))}return h.Strings!=null&&h.Strings.length>0&&(Zi(A,m="xl/sharedStrings."+d,tl(h.Strings,h)),g.strs.push(m),co(h.wbrels,-1,"sharedStrings."+d,ma.SST)),Zi(A,m="xl/workbook."+d,db(u)),g.workbooks.push(m),co(h.rels,1,m,ma.WB),Zi(A,m="xl/theme/theme1.xml",YI(u.Themes,h)),g.themes.push(m),co(h.wbrels,-1,"theme/theme1.xml",ma.THEME),Zi(A,m="xl/styles."+d,HI(u,h)),g.styles.push(m),co(h.wbrels,-1,"styles."+d,ma.STY),u.vbaraw&&p&&(Zi(A,m="xl/vbaProject.bin",u.vbaraw),g.vba.push(m),co(h.wbrels,-1,"vbaProject.bin",ma.VBA)),Zi(A,m="xl/metadata."+d,Dp()),g.metadata.push(m),co(h.wbrels,-1,"metadata."+d,ma.XLMETA),E.length>1&&(Zi(A,m="xl/persons/person.xml",function(N){var H=[ts,on("personList",null,{xmlns:eh,"xmlns:x":hc[0]}).replace(/[\/]>/,">")];return N.forEach(function(W,V){H.push(on("person",null,{displayName:W,id:"{54EE7950-7262-4200-6969-"+("000000000000"+V).slice(-12)+"}",userId:W,providerId:"None"}))}),H.push(""),H.join("")}(E)),g.people.push(m),co(h.wbrels,-1,"persons/person.xml",ma.PEOPLE)),Zi(A,"[Content_Types].xml",QA(g,h)),Zi(A,"_rels/.rels",qd(h.rels)),Zi(A,"xl/_rels/workbook."+d+".rels",qd(h.wbrels)),delete h.revssf,delete h.ssf,A}(a,c)}function pm(a,c){var u="";switch((c||{}).type||"base64"){case"buffer":case"array":return[a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]];case"base64":u=Ra(a.slice(0,12));break;case"binary":u=a;break;default:throw new Error("Unrecognized type "+(c&&c.type||"undefined"))}return[u.charCodeAt(0),u.charCodeAt(1),u.charCodeAt(2),u.charCodeAt(3),u.charCodeAt(4),u.charCodeAt(5),u.charCodeAt(6),u.charCodeAt(7)]}function _b(a,c){var u=0;e:for(;u"u"||ki||(u.type="array")),u.type=="string"&&(p=!0,u.type="binary",u.codepage=65001,d=function(m){return m.match(/[^\x00-\x7F]/)?Dh(m):m}(a)),u.type=="array"&&typeof Uint8Array<"u"&&a instanceof Uint8Array&&typeof ArrayBuffer<"u"){var g=new ArrayBuffer(3),A=new Uint8Array(g);if(A.foo="bar",!A.foo)return(u=Ro(u)).type="array",vm(gy(d),u)}switch((h=pm(d,u))[0]){case 208:if(h[1]===207&&h[2]===17&&h[3]===224&&h[4]===161&&h[5]===177&&h[6]===26&&h[7]===225)return function(m,y){return ai.find(m,"EncryptedPackage")?pB(m,y):aB(m,y)}(ai.read(d,u),u);break;case 9:if(h[1]<=8)return aB(d,u);break;case 60:return L1(d,u);case 73:if(h[1]===73&&h[2]===42&&h[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(h[1]===68)return function(m,y){var b=y||{},I=!!b.WTF;b.WTF=!0;try{var E=OI.to_workbook(m,b);return b.WTF=I,E}catch(B){if(b.WTF=I,!B.message.match(/SYLK bad record ID/)&&I)throw B;return ag.to_workbook(m,y)}}(d,u);break;case 84:if(h[1]===65&&h[2]===66&&h[3]===76)return kp.to_workbook(d,u);break;case 80:return h[1]===75&&h[2]<9&&h[3]<9?function(m,y){var b=m,I=y||{};return I.type||(I.type=ki&&Buffer.isBuffer(m)?"buffer":"base64"),Ck(Fw(b,I),I)}(d,u):zp(a,d,u,p);case 239:return h[3]===60?L1(d,u):zp(a,d,u,p);case 255:if(h[1]===254)return function(m,y){var b=m;return y.type=="base64"&&(b=Ra(b)),b=Z2.utils.decode(1200,b.slice(2),"str"),y.type="binary",_b(b,y)}(d,u);if(h[1]===0&&h[2]===2&&h[3]===0)return Oh.to_workbook(d,u);break;case 0:if(h[1]===0&&(h[2]>=2&&h[3]===0||h[2]===0&&(h[3]===8||h[3]===9)))return Oh.to_workbook(d,u);break;case 3:case 131:case 139:case 140:return Nh.to_workbook(d,u);case 123:if(h[1]===92&&h[2]===114&&h[3]===116)return Jy.to_workbook(d,u);break;case 10:case 13:case 32:return function(m,y){var b="",I=pm(m,y);switch(y.type){case"base64":b=Ra(m);break;case"binary":b=m;break;case"buffer":b=m.toString("binary");break;case"array":b=pf(m);break;default:throw new Error("Unrecognized type "+y.type)}return I[0]==239&&I[1]==187&&I[2]==191&&(b=vo(b)),y.type="binary",_b(b,y)}(d,u);case 137:if(h[1]===80&&h[2]===78&&h[3]===71)throw new Error("PNG Image File is not a spreadsheet")}return Lh.indexOf(h[0])>-1&&h[2]<=12&&h[3]<=31?Nh.to_workbook(d,u):zp(a,d,u,p)}function vB(a,c){switch(c.type){case"base64":case"binary":break;case"buffer":case"array":c.type="";break;case"file":return fp(c.file,ai.write(a,{type:ki?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+c.bookType+"' files");default:throw new Error("Unrecognized type "+c.type)}return ai.write(a,c)}function yB(a,c){var u=Ro(c||{});return function(h,d){var p={},g=ki?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(d.compression&&(p.compression="DEFLATE"),d.password)p.type=g;else switch(d.type){case"base64":p.type="base64";break;case"binary":p.type="string";break;case"string":throw new Error("'string' output type invalid for '"+d.bookType+"' files");case"buffer":case"file":p.type=g;break;default:throw new Error("Unrecognized type "+d.type)}var A=h.FullPaths?ai.write(h,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[p.type]||p.type,compression:!!d.compression}):h.generate(p);if(typeof Deno<"u"&&typeof A=="string"){if(d.type=="binary"||d.type=="base64")return A;A=new Uint8Array(dy(A))}return d.password&&typeof encrypt_agile<"u"?vB(encrypt_agile(A,d.password),d):d.type==="file"?fp(d.file,A):d.type=="string"?vo(A):A}(Sb(a,u),u)}function uh(a,c,u){u||(u="");var h=u+a;switch(c.type){case"base64":return jr(Dh(h));case"binary":return Dh(h);case"string":return a;case"file":return fp(c.file,h,"utf8");case"buffer":return ki?uu(h,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(h):uh(h,{type:"binary"}).split("").map(function(d){return d.charCodeAt(0)})}throw new Error("Unrecognized type "+c.type)}function ym(a,c){switch(c.type){case"string":case"base64":case"binary":for(var u="",h=0;hSheetJS Table Export',y=A.footer!=null?A.footer:"",b=[m],I=dc(p["!ref"]);A.dense=Array.isArray(p),b.push(function(B,S,_){return[].join("")+""}(0,0,A));for(var E=I.s.r;E<=I.e.r;++E)b.push(fB(p,I,E,A));return b.push("
"+y),b.join("")}(a.Sheets[a.SheetNames[d]],u),u);case"txt":return function(p,g){switch(g.type){case"base64":return jr(p);case"binary":case"string":return p;case"file":return fp(g.file,p,"binary");case"buffer":return ki?uu(p,"binary"):p.split("").map(function(A){return A.charCodeAt(0)})}throw new Error("Unrecognized type "+g.type)}(function(p,g){g||(g={}),g.FS=" ",g.RS=` `;var A=Mb(p,g);return A}(a.Sheets[a.SheetNames[d]],u),u);case"csv":return uh(Mb(a.Sheets[a.SheetNames[d]],u),u,"\uFEFF");case"dif":return uh(kp.from_sheet(a.Sheets[a.SheetNames[d]],u),u);case"dbf":return ym(Nh.from_sheet(a.Sheets[a.SheetNames[d]],u),u);case"prn":return uh(ag.from_sheet(a.Sheets[a.SheetNames[d]],u),u);case"rtf":return uh(Jy.from_sheet(a.Sheets[a.SheetNames[d]],u),u);case"eth":return uh(_l.from_sheet(a.Sheets[a.SheetNames[d]],u),u);case"fods":return uh(O1(a,u),u);case"wk1":return ym(Oh.sheet_to_wk1(a.Sheets[a.SheetNames[d]],u),u);case"wk3":return ym(Oh.book_to_wk3(a,u),u);case"biff2":u.biff||(u.biff=2);case"biff3":u.biff||(u.biff=3);case"biff4":return u.biff||(u.biff=4),ym(Cb(a,u),u);case"biff5":u.biff||(u.biff=5);case"biff8":case"xla":case"xls":return u.biff||(u.biff=8),function(p,g){var A=g||{};return vB(oB(p,A),A)}(a,u);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return yB(a,u);default:throw new Error("Unrecognized bookType |"+u.bookType+"|")}}function Xs(a,c,u,h,d,p,g,A){var m=Ss(u),y=A.defval,b=A.raw||!Object.prototype.hasOwnProperty.call(A,"raw"),I=!0,E=d===1?[]:{};if(d!==1)if(Object.defineProperty)try{Object.defineProperty(E,"__rowNum__",{value:u,enumerable:!1})}catch{E.__rowNum__=u}else E.__rowNum__=u;if(!g||a[u])for(var B=c.s.c;B<=c.e.c;++B){var S=g?a[u][B]:a[h[B]+m];if(S!==void 0&&S.t!==void 0){var _=S.v;switch(S.t){case"z":if(_==null)break;continue;case"e":_=_==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+S.t)}if(p[B]!=null){if(_==null)if(S.t=="e"&&_===null)E[p[B]]=null;else if(y!==void 0)E[p[B]]=y;else{if(!b||_!==null)continue;E[p[B]]=null}else E[p[B]]=b&&(S.t!=="n"||S.t==="n"&&A.rawNumbers!==!1)?_:wA(S,_,A);_!=null&&(I=!1)}}else{if(y===void 0)continue;p[B]!=null&&(E[p[B]]=y)}}return{row:E,isempty:I}}function mm(a,c){if(a==null||a["!ref"]==null)return[];var u={t:"n",v:0},h=0,d=1,p=[],g=0,A="",m={s:{r:0,c:0},e:{r:0,c:0}},y=c||{},b=y.range!=null?y.range:a["!ref"];switch(y.header===1?h=1:y.header==="A"?h=2:Array.isArray(y.header)?h=3:y.header==null&&(h=0),typeof b){case"string":m=Ta(b);break;case"number":(m=Ta(a["!ref"])).s.r=b;break;default:m=b}h>0&&(d=0);var I=Ss(m.s.r),E=[],B=[],S=0,_=0,D=Array.isArray(a),T=m.s.r,F=0,N={};D&&!a[T]&&(a[T]=[]);var H=y.skipHidden&&a["!cols"]||[],W=y.skipHidden&&a["!rows"]||[];for(F=m.s.c;F<=m.e.c;++F)if(!(H[F]||{}).hidden)switch(E[F]=rs(F),u=D?a[T][F]:a[E[F]+I],h){case 1:p[F]=F-m.s.c;break;case 2:p[F]=E[F];break;case 3:p[F]=y.header[F-m.s.c];break;default:if(u==null&&(u={w:"__EMPTY",t:"s"}),A=g=wA(u,null,y),_=N[g]||0){do A=g+"_"+_++;while(N[A]);N[g]=_,N[A]=1}else N[g]=1;p[F]=A}for(T=m.s.r+d;T<=m.e.r;++T)if(!(W[T]||{}).hidden){var V=Xs(a,m,T,E,h,p,D,y);(V.isempty===!1||(h===1?y.blankrows!==!1:y.blankrows))&&(B[S++]=V.row)}return B.length=S,B}var Rb=/"/g;function mB(a,c,u,h,d,p,g,A){for(var m=!0,y=[],b="",I=Ss(u),E=c.s.c;E<=c.e.c;++E)if(h[E]){var B=A.dense?(a[u]||[])[E]:a[h[E]+I];if(B==null)b="";else if(B.v!=null){m=!1,b=""+(A.rawNumbers&&B.t=="n"?B.v:wA(B,null,A));for(var S=0,_=0;S!==b.length;++S)if((_=b.charCodeAt(S))===d||_===p||_===34||A.forceQuotes){b='"'+b.replace(Rb,'""')+'"';break}b=="ID"&&(b='"ID"')}else B.f==null||B.F?b="":(m=!1,(b="="+B.f).indexOf(",")>=0&&(b='"'+b.replace(Rb,'""')+'"'));y.push(b)}return A.blankrows===!1&&m?null:y.join(g)}function Mb(a,c){var u=[],h=c??{};if(a==null||a["!ref"]==null)return"";var d=Ta(a["!ref"]),p=h.FS!==void 0?h.FS:",",g=p.charCodeAt(0),A=h.RS!==void 0?h.RS:` `,m=A.charCodeAt(0),y=new RegExp((p=="|"?"\\|":p)+"+$"),b="",I=[];h.dense=Array.isArray(a);for(var E=h.skipHidden&&a["!cols"]||[],B=h.skipHidden&&a["!rows"]||[],S=d.s.c;S<=d.e.c;++S)(E[S]||{}).hidden||(I[S]=rs(S));for(var _=0,D=d.s.r;D<=d.e.r;++D)(B[D]||{}).hidden||(b=mB(a,d,D,I,g,m,p,h))!=null&&(h.strip&&(b=b.replace(y,"")),(b||h.blankrows!==!1)&&u.push((_++?A:"")+b));return delete h.dense,u.join("")}function Fb(a,c,u,h){var d=1;if(!u)for(;d<=65535&&a.SheetNames.indexOf(u="Sheet"+d)!=-1;++d,u=void 0);if(!u||a.SheetNames.length>=65535)throw new Error("Too many worksheets");if(h&&a.SheetNames.indexOf(u)>=0){var p=u.match(/(^.*?)(\d+)$/);d=p&&+p[2]||0;var g=p&&p[1]||u;for(++d;d<=65535&&a.SheetNames.indexOf(u=g+d)!=-1;++d);}if(Ab(u),a.SheetNames.indexOf(u)>=0)throw new Error("Worksheet with name |"+u+"| already exists!");return a.SheetNames.push(u),a.Sheets[u]=c,u}function Tb(a,c){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(a);c&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),u.push.apply(u,h)}return u}var Lb=["#FFFFFF","#000000","#BFBFBF","#323232","#4472C4","#ED7D31","#A5A5A5","#FFC000","#5B9BD5","#71AD47"],U1=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#800000","#008000","#000080","#808000","#800080","#008080","#C0C0C0","#808080","#9999FF","#993366","#FFFFCC","#CCFFFF","#660066","#FF8080","#0066CC","#CCCCFF","#000080","#FF00FF","#FFFF00","#00FFFF","#800080","#800000","#008080","#0000FF","#00CCFF","#CCFFFF","#CCFFCC","#FFFF99","#99CCFF","#FF99CC","#CC99FF","#FFCC99","#3366FF","#33CCCC","#99CC00","#FFCC00","#FF9900","#FF6600","#666699","#969696","#003366","#339966","#003300","#333300","#993300","#993366","#333399","#333333","#000000"];function IB(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(u,h){return new Promise(function(d,p){var g=new XMLHttpRequest;g.open(h.method||"GET",u,!0),g.responseType=h.responseType||"arraybuffer",g.onload=function(){g.status===200?d(g.response):p(g.status)},g.onerror=function(){p(g.status)},g.withCredentials=h.withCredentials||!1,h.headers&&Object.keys(h.headers).forEach(function(A){g.setRequestHeader(A,h.headers[A])}),g.send(h.body)})}(function(u,h){return typeof u=="string"?u:u instanceof Blob?URL.createObjectURL(u):u instanceof ArrayBuffer?URL.createObjectURL(new Blob([u],h)):u instanceof Response?URL.createObjectURL(u.blob()):u}(a),c)}function Nb(a){if(typeof a=="object")return"#000000";if(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.test(a))return a.startsWith("#")?a:"#"+a;a=a.trim().toLowerCase();var c={};try{var u=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return c.r=parseInt(u[2],16),c.g=parseInt(u[3],16),c.b=parseInt(u[4],16),c.a=parseInt(u[1],16)/255,ei("rgba(".concat(c.r,", ").concat(c.g,", ").concat(c.b,", ").concat(c.a,")")).toHexString()}catch(h){console.warn(h)}}function Im(a,c){return a>9?"#C7C9CC":c===void 0?Lb[a]:c>0?function(u,h){for(var d=bw(u),p=0;p<3;p++)d[p]=Math.floor((255-d[p])*h+d[p]);return Cw(d[0],d[1],d[2])}(Lb[a],c):function(u,h){for(var d=bw(u),p=0;p<3;p++)d[p]=Math.floor(d[p]*(1-h));return Cw(d[0],d[1],d[2])}(Lb[a],Math.abs(c))}function wk(a){a.style=ip.cloneDeep(a.style);var c=null;a.style.fill&&a.style.fill.fgColor&&(c=a.style.fill.fgColor.argb?Nb(a.style.fill.fgColor.argb):a.style.fill.fgColor.hasOwnProperty("theme")?Im(a.style.fill.fgColor.theme,a.style.fill.fgColor.tint):a.style.fill.fgColor.indexed&&U1[a.style.fill.fgColor.indexed]||"#C7C9CC"),c&&(a.style.bgcolor=c);var u=null;if(a.style.font&&a.style.font.color&&(u=a.style.font.color.argb?Nb(a.style.font.color.argb):a.style.font.color.hasOwnProperty("theme")?Im(a.style.font.color.theme,a.style.font.color.tint):a.style.font.color.indexed&&U1[a.style.font.color.indexed]||"#000000"),u&&(a.style.color=u),a.style.alignment&&(a.style.alignment.horizontal&&(a.style.align=a.style.alignment.horizontal),a.style.alignment.vertical&&(a.style.valign=a.style.alignment.vertical)),a.style.alignment&&a.style.alignment.wrapText&&(a.style.textwrap=!0),a.style.border){var h={};Object.keys(a.style.border).forEach(function(d){var p=a.style.border[d],g="#000000";typeof p.color=="string"?g=p.color:p.color&&(p.color.argb?g=Nb(p.color.argb):p.color.hasOwnProperty("theme")?g=Im(p.color.theme,p.color.tint):p.color.indexed&&(g=U1[p.color.indexed])),h[d]=[p.style||"thin",g]}),a.style.border2=function(d){for(var p=1;py+1&&(d._columns=d._columns.slice(0,y+1)),function(I,E,B){for(var S=0;S<(I.columns||[]).length;S++)E.cols[S.toString()]={},I.columns[S]._hidden?E.cols[S.toString()].width=.1:I.columns[S].width?E.cols[S.toString()].width=6*I.columns[S].width+(B.widthOffset||0):E.cols[S.toString()].width=80+(B.widthOffset||0);E.cols.len=Math.max(Object.keys(E.cols).length,B.minColLength||0)}(d,p,c),u.push(p)}),a._worksheets=h,{workbookData:u,workbookSource:a,medias:a.media||[]}}var j1=[];function H1(a,c,u,h){var d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};u&&u._media.length&&u._media.forEach(function(p){var g=p.imageId,A=p.range;if(p.type==="image"){var m=function(y,b,I,E){for(var B,S,_=E.widthOffset,D=E.heightOffset,T=b.tl,F=b.br,N=b.ext,H=T||{},W=H.nativeCol,V=W===void 0?0:W,te=H.nativeColOff,ue=te===void 0?0:te,fe=H.nativeRow,de=fe===void 0?0:fe,Ae=H.nativeRowOff,we=Ae===void 0?0:Ae,Z=Y1,ne=bm,j=0;j{const u=a.__vccOpts||a;for(const[h,d]of c)u[h]=d;return u};function Ob(a,c){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(a);c&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),u.push.apply(u,h)}return u}function J1(a){for(var c=1;cCe in ce?Bo(ce,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ce[Ce]=Oe,Wn=(ce,Ce)=>{for(var Oe in Ce||(Ce={}))Wr.call(Ce,Oe)&&Va(ce,Oe,Ce[Oe]);if(Gs)for(var Oe of Gs(Ce))Ua.call(Ce,Oe)&&Va(ce,Oe,Ce[Oe]);return ce},ao=(ce,Ce,Oe)=>new Promise((gt,Nt)=>{var Ht=Or=>{try{lr(Oe.next(Or))}catch(Xr){Nt(Xr)}},fr=Or=>{try{lr(Oe.throw(Or))}catch(Xr){Nt(Xr)}},lr=Or=>Or.done?gt(Or.value):Promise.resolve(Or.value).then(Ht,fr);lr((Oe=Oe.apply(ce,Ce)).next())});const En=`/*! For license information please see worker.js.LICENSE.txt */ var e={4186:(e,t,r)=>{var A=r(3749),n=r(8055),i=TypeError;e.exports=function(e){if(A(e))return e;throw new i(n(e)+" is not a function")}},9052:(e,t,r)=>{var A=r(8413),n=r(8055),i=TypeError;e.exports=function(e){if(A(e))return e;throw new i(n(e)+" is not a constructor")}},7330:(e,t,r)=>{var A=r(4597),n=String,i=TypeError;e.exports=function(e){if(A(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},4376:(e,t,r)=>{var A=r(418).has;e.exports=function(e){return A(e),e}},1458:(e,t,r)=>{var A=r(5811),n=r(5304),i=r(1601).f,a=A("unscopables"),o=Array.prototype;void 0===o[a]&&i(o,a,{configurable:!0,value:n(null)}),e.exports=function(e){o[a][e]=!0}},8149:(e,t,r)=>{var A=r(6903).charAt;e.exports=function(e,t,r){return t+(r?A(e,t).length:1)}},3399:(e,t,r)=>{var A=r(6921),n=TypeError;e.exports=function(e,t){if(A(t,e))return e;throw new n("Incorrect invocation")}},7447:(e,t,r)=>{var A=r(2674),n=String,i=TypeError;e.exports=function(e){if(A(e))return e;throw new i(n(e)+" is not an object")}},387:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},8242:(e,t,r)=>{var A=r(4032),n=r(5026),i=r(9872),a=A.ArrayBuffer,o=A.TypeError;e.exports=a&&n(a.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==i(e))throw new o("ArrayBuffer expected");return e.byteLength}},8102:(e,t,r)=>{var A=r(4032),n=r(2116),i=r(8242),a=A.ArrayBuffer,o=a&&a.prototype,s=o&&n(o.slice);e.exports=function(e){if(0!==i(e))return!1;if(!s)return!1;try{return s(e,0,0),!1}catch(e){return!0}}},7060:(e,t,r)=>{var A=r(3455);e.exports=A((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},6033:(e,t,r)=>{var A=r(8102),n=TypeError;e.exports=function(e){if(A(e))throw new n("ArrayBuffer is detached");return e}},4676:(e,t,r)=>{var A=r(4032),n=r(2608),i=r(5026),a=r(9088),o=r(6033),s=r(8242),c=r(7395),g=r(6572),u=A.structuredClone,l=A.ArrayBuffer,h=A.DataView,I=Math.min,f=l.prototype,C=h.prototype,B=n(f.slice),Q=i(f,"resizable","get"),E=i(f,"maxByteLength","get"),d=n(C.getInt8),y=n(C.setInt8);e.exports=(g||c)&&function(e,t,r){var A,n=s(e),i=void 0===t?n:a(t),f=!Q||!Q(e);if(o(e),g&&(e=u(e,{transfer:[e]}),n===i&&(r||f)))return e;if(n>=i&&(!r||f))A=B(e,0,i);else{var C=r&&!f&&E?{maxByteLength:E(e)}:void 0;A=new l(i,C);for(var p=new h(e),v=new h(A),m=I(i,n),w=0;w{var A,n,i,a=r(387),o=r(2444),s=r(4032),c=r(3749),g=r(2674),u=r(9649),l=r(1179),h=r(8055),I=r(139),f=r(8552),C=r(8986),B=r(6921),Q=r(2611),E=r(9415),d=r(5811),y=r(5936),p=r(8301),v=p.enforce,m=p.get,w=s.Int8Array,b=w&&w.prototype,k=s.Uint8ClampedArray,D=k&&k.prototype,S=w&&Q(w),F=b&&Q(b),x=Object.prototype,R=s.TypeError,G=d("toStringTag"),N=y("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",U=a&&!!E&&"Opera"!==l(s.opera),M=!1,J={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},H={BigInt64Array:8,BigUint64Array:8},Y=function(e){var t=Q(e);if(g(t)){var r=m(t);return r&&u(r,L)?r[L]:Y(t)}},P=function(e){if(!g(e))return!1;var t=l(e);return u(J,t)||u(H,t)};for(A in J)(i=(n=s[A])&&n.prototype)?v(i)[L]=n:U=!1;for(A in H)(i=(n=s[A])&&n.prototype)&&(v(i)[L]=n);if((!U||!c(S)||S===Function.prototype)&&(S=function(){throw new R("Incorrect invocation")},U))for(A in J)s[A]&&E(s[A],S);if((!U||!F||F===x)&&(F=S.prototype,U))for(A in J)s[A]&&E(s[A].prototype,F);if(U&&Q(D)!==F&&E(D,F),o&&!u(F,G))for(A in M=!0,C(F,G,{configurable:!0,get:function(){return g(this)?this[N]:void 0}}),J)s[A]&&I(s[A],N,A);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:U,TYPED_ARRAY_TAG:M&&N,aTypedArray:function(e){if(P(e))return e;throw new R("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!E||B(S,e)))return e;throw new R(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,A){if(o){if(r)for(var n in J){var i=s[n];if(i&&u(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}F[e]&&!r||f(F,e,r?t:U&&b[e]||t,A)}},exportTypedArrayStaticMethod:function(e,t,r){var A,n;if(o){if(E){if(r)for(A in J)if((n=s[A])&&u(n,e))try{delete n[e]}catch(e){}if(S[e]&&!r)return;try{return f(S,e,r?t:U&&S[e]||t)}catch(e){}}for(A in J)!(n=s[A])||n[e]&&!r||f(n,e,t)}},getTypedArrayConstructor:Y,isView:function(e){if(!g(e))return!1;var t=l(e);return"DataView"===t||u(J,t)||u(H,t)},isTypedArray:P,TypedArray:S,TypedArrayPrototype:F}},7226:(e,t,r)=>{var A=r(4032),n=r(2608),i=r(2444),a=r(387),o=r(2542),s=r(139),c=r(8986),g=r(4183),u=r(3455),l=r(3399),h=r(1211),I=r(5806),f=r(9088),C=r(3505),B=r(1306),Q=r(2611),E=r(9415),d=r(9557),y=r(4224),p=r(3951),v=r(2924),m=r(6911),w=r(8301),b=o.PROPER,k=o.CONFIGURABLE,D="ArrayBuffer",S="DataView",F="prototype",x="Wrong index",R=w.getterFor(D),G=w.getterFor(S),N=w.set,L=A[D],U=L,M=U&&U[F],J=A[S],H=J&&J[F],Y=Object.prototype,P=A.Array,O=A.RangeError,K=n(d),T=n([].reverse),q=B.pack,j=B.unpack,W=function(e){return[255&e]},Z=function(e){return[255&e,e>>8&255]},_=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},X=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},V=function(e){return q(C(e),23,4)},z=function(e){return q(e,52,8)},$=function(e,t,r){c(e[F],t,{configurable:!0,get:function(){return r(this)[t]}})},ee=function(e,t,r,A){var n=G(e),i=f(r),a=!!A;if(i+t>n.byteLength)throw new O(x);var o=n.bytes,s=i+n.byteOffset,c=y(o,s,s+t);return a?c:T(c)},te=function(e,t,r,A,n,i){var a=G(e),o=f(r),s=A(+n),c=!!i;if(o+t>a.byteLength)throw new O(x);for(var g=a.bytes,u=o+a.byteOffset,l=0;l>24)},setUint8:function(e,t){ne(this,e,t<<24>>24)}},{unsafe:!0})}else M=(U=function(e){l(this,M);var t=f(e);N(this,{type:D,bytes:K(P(t),0),byteLength:t}),i||(this.byteLength=t,this.detached=!1)})[F],H=(J=function(e,t,r){l(this,H),l(e,M);var A=R(e),n=A.byteLength,a=h(t);if(a<0||a>n)throw new O("Wrong offset");if(a+(r=void 0===r?n-a:I(r))>n)throw new O("Wrong length");N(this,{type:S,buffer:e,byteLength:r,byteOffset:a,bytes:A.bytes}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=a)})[F],i&&($(U,"byteLength",R),$(J,"buffer",G),$(J,"byteLength",G),$(J,"byteOffset",G)),g(H,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return X(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return X(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return j(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return j(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,W,t)},setUint8:function(e,t){te(this,1,e,W,t)},setInt16:function(e,t){te(this,2,e,Z,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,Z,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,_,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,_,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,V,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,z,t,arguments.length>2&&arguments[2])}});m(U,D),m(J,S),e.exports={ArrayBuffer:U,DataView:J}},6677:(e,t,r)=>{var A=r(4165),n=r(9002),i=r(7878),a=r(1870),o=Math.min;e.exports=[].copyWithin||function(e,t){var r=A(this),s=i(r),c=n(e,s),g=n(t,s),u=arguments.length>2?arguments[2]:void 0,l=o((void 0===u?s:n(u,s))-g,s-c),h=1;for(g0;)g in r?r[c]=r[g]:a(r,c),c+=h,g+=h;return r}},9557:(e,t,r)=>{var A=r(4165),n=r(9002),i=r(7878);e.exports=function(e){for(var t=A(this),r=i(t),a=arguments.length,o=n(a>1?arguments[1]:void 0,r),s=a>2?arguments[2]:void 0,c=void 0===s?r:n(s,r);c>o;)t[o++]=e;return t}},3147:(e,t,r)=>{var A=r(5645).forEach,n=r(1814)("forEach");e.exports=n?[].forEach:function(e){return A(this,e,arguments.length>1?arguments[1]:void 0)}},7434:(e,t,r)=>{var A=r(7878);e.exports=function(e,t,r){for(var n=0,i=arguments.length>2?r:A(t),a=new e(i);i>n;)a[n]=t[n++];return a}},3948:(e,t,r)=>{var A=r(4864),n=r(3453),i=r(4165),a=r(3535),o=r(993),s=r(8413),c=r(7878),g=r(3552),u=r(6961),l=r(7507),h=Array;e.exports=function(e){var t=i(e),r=s(this),I=arguments.length,f=I>1?arguments[1]:void 0,C=void 0!==f;C&&(f=A(f,I>2?arguments[2]:void 0));var B,Q,E,d,y,p,v=l(t),m=0;if(!v||this===h&&o(v))for(B=c(t),Q=r?new this(B):h(B);B>m;m++)p=C?f(t[m],m):t[m],g(Q,m,p);else for(Q=r?new this:[],y=(d=u(t,v)).next;!(E=n(y,d)).done;m++)p=C?a(d,f,[E.value,m],!0):E.value,g(Q,m,p);return Q.length=m,Q}},7921:(e,t,r)=>{var A=r(3637),n=r(9002),i=r(7878),a=function(e){return function(t,r,a){var o=A(t),s=i(o);if(0===s)return!e&&-1;var c,g=n(a,s);if(e&&r!=r){for(;s>g;)if((c=o[g++])!=c)return!0}else for(;s>g;g++)if((e||g in o)&&o[g]===r)return e||g||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},767:(e,t,r)=>{var A=r(4864),n=r(9455),i=r(4165),a=r(7878),o=function(e){var t=1===e;return function(r,o,s){for(var c,g=i(r),u=n(g),l=a(u),h=A(o,s);l-- >0;)if(h(c=u[l],l,g))switch(e){case 0:return c;case 1:return l}return t?-1:void 0}};e.exports={findLast:o(0),findLastIndex:o(1)}},5645:(e,t,r)=>{var A=r(4864),n=r(2608),i=r(9455),a=r(4165),o=r(7878),s=r(1453),c=n([].push),g=function(e){var t=1===e,r=2===e,n=3===e,g=4===e,u=6===e,l=7===e,h=5===e||u;return function(I,f,C,B){for(var Q,E,d=a(I),y=i(d),p=o(y),v=A(f,C),m=0,w=B||s,b=t?w(I,p):r||l?w(I,0):void 0;p>m;m++)if((h||m in y)&&(E=v(Q=y[m],m,d),e))if(t)b[m]=E;else if(E)switch(e){case 3:return!0;case 5:return Q;case 6:return m;case 2:c(b,Q)}else switch(e){case 4:return!1;case 7:c(b,Q)}return u?-1:n||g?g:b}};e.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterReject:g(7)}},3499:(e,t,r)=>{var A=r(3881),n=r(3637),i=r(1211),a=r(7878),o=r(1814),s=Math.min,c=[].lastIndexOf,g=!!c&&1/[1].lastIndexOf(1,-0)<0,u=o("lastIndexOf"),l=g||!u;e.exports=l?function(e){if(g)return A(c,this,arguments)||0;var t=n(this),r=a(t);if(0===r)return-1;var o=r-1;for(arguments.length>1&&(o=s(o,i(arguments[1]))),o<0&&(o=r+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c},9077:(e,t,r)=>{var A=r(3455),n=r(5811),i=r(6415),a=n("species");e.exports=function(e){return i>=51||!A((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},1814:(e,t,r)=>{var A=r(3455);e.exports=function(e,t){var r=[][e];return!!r&&A((function(){r.call(null,t||function(){return 1},1)}))}},4734:(e,t,r)=>{var A=r(4186),n=r(4165),i=r(9455),a=r(7878),o=TypeError,s="Reduce of empty array with no initial value",c=function(e){return function(t,r,c,g){var u=n(t),l=i(u),h=a(u);if(A(r),0===h&&c<2)throw new o(s);var I=e?h-1:0,f=e?-1:1;if(c<2)for(;;){if(I in l){g=l[I],I+=f;break}if(I+=f,e?I<0:h<=I)throw new o(s)}for(;e?I>=0:h>I;I+=f)I in l&&(g=r(g,l[I],I,u));return g}};e.exports={left:c(!1),right:c(!0)}},7375:(e,t,r)=>{var A=r(2444),n=r(5448),i=TypeError,a=Object.getOwnPropertyDescriptor,o=A&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(n(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4224:(e,t,r)=>{var A=r(2608);e.exports=A([].slice)},5272:(e,t,r)=>{var A=r(4224),n=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var a,o,s=1;s0;)e[o]=e[--o];o!==s++&&(e[o]=a)}else for(var c=n(r/2),g=i(A(e,0,c),t),u=i(A(e,c),t),l=g.length,h=u.length,I=0,f=0;I{var A=r(5448),n=r(8413),i=r(2674),a=r(5811)("species"),o=Array;e.exports=function(e){var t;return A(e)&&(t=e.constructor,(n(t)&&(t===o||A(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?o:t}},1453:(e,t,r)=>{var A=r(2329);e.exports=function(e,t){return new(A(e))(0===t?0:t)}},6444:(e,t,r)=>{var A=r(7878);e.exports=function(e,t){for(var r=A(e),n=new t(r),i=0;i{var A=r(7878),n=r(1211),i=RangeError;e.exports=function(e,t,r,a){var o=A(e),s=n(r),c=s<0?o+s:s;if(c>=o||c<0)throw new i("Incorrect index");for(var g=new t(o),u=0;u{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=t+"+/",A=t+"-_",n=function(e){for(var t={},r=0;r<64;r++)t[e.charAt(r)]=r;return t};e.exports={i2c:r,c2i:n(r),i2cUrl:A,c2iUrl:n(A)}},3535:(e,t,r)=>{var A=r(7447),n=r(5235);e.exports=function(e,t,r,i){try{return i?t(A(r)[0],r[1]):t(r)}catch(t){n(e,"throw",t)}}},4348:(e,t,r)=>{var A=r(5811)("iterator"),n=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){n=!0}};a[A]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!n)return!1}catch(e){return!1}var r=!1;try{var i={};i[A]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},9872:(e,t,r)=>{var A=r(2608),n=A({}.toString),i=A("".slice);e.exports=function(e){return i(n(e),8,-1)}},1179:(e,t,r)=>{var A=r(3724),n=r(3749),i=r(9872),a=r(5811)("toStringTag"),o=Object,s="Arguments"===i(function(){return arguments}());e.exports=A?i:function(e){var t,r,A;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=o(e),a))?r:s?i(t):"Object"===(A=i(t))&&n(t.callee)?"Arguments":A}},2042:(e,t,r)=>{var A=r(5304),n=r(8986),i=r(4183),a=r(4864),o=r(3399),s=r(6021),c=r(1804),g=r(656),u=r(9393),l=r(5409),h=r(2444),I=r(5227).fastKey,f=r(8301),C=f.set,B=f.getterFor;e.exports={getConstructor:function(e,t,r,g){var u=e((function(e,n){o(e,l),C(e,{type:t,index:A(null),first:null,last:null,size:0}),h||(e.size=0),s(n)||c(n,e[g],{that:e,AS_ENTRIES:r})})),l=u.prototype,f=B(t),Q=function(e,t,r){var A,n,i=f(e),a=E(e,t);return a?a.value=r:(i.last=a={index:n=I(t,!0),key:t,value:r,previous:A=i.last,next:null,removed:!1},i.first||(i.first=a),A&&(A.next=a),h?i.size++:e.size++,"F"!==n&&(i.index[n]=a)),e},E=function(e,t){var r,A=f(e),n=I(t);if("F"!==n)return A.index[n];for(r=A.first;r;r=r.next)if(r.key===t)return r};return i(l,{clear:function(){for(var e=f(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=A(null),h?e.size=0:this.size=0},delete:function(e){var t=this,r=f(t),A=E(t,e);if(A){var n=A.next,i=A.previous;delete r.index[A.index],A.removed=!0,i&&(i.next=n),n&&(n.previous=i),r.first===A&&(r.first=n),r.last===A&&(r.last=i),h?r.size--:t.size--}return!!A},forEach:function(e){for(var t,r=f(this),A=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(A(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!E(this,e)}}),i(l,r?{get:function(e){var t=E(this,e);return t&&t.value},set:function(e,t){return Q(this,0===e?0:e,t)}}:{add:function(e){return Q(this,e=0===e?0:e,e)}}),h&&n(l,"size",{configurable:!0,get:function(){return f(this).size}}),u},setStrong:function(e,t,r){var A=t+" Iterator",n=B(t),i=B(A);g(e,t,(function(e,t){C(this,{type:A,target:e,state:n(e),kind:t,last:null})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?u("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=null,u(void 0,!0))}),r?"entries":"values",!r,!0),l(t)}}},8153:(e,t,r)=>{var A=r(2608),n=r(4183),i=r(5227).getWeakData,a=r(3399),o=r(7447),s=r(6021),c=r(2674),g=r(1804),u=r(5645),l=r(9649),h=r(8301),I=h.set,f=h.getterFor,C=u.find,B=u.findIndex,Q=A([].splice),E=0,d=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},p=function(e,t){return C(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=p(this,e);if(t)return t[1]},has:function(e){return!!p(this,e)},set:function(e,t){var r=p(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=B(this.entries,(function(t){return t[0]===e}));return~t&&Q(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,r,A){var u=e((function(e,n){a(e,h),I(e,{type:t,id:E++,frozen:null}),s(n)||g(n,e[A],{that:e,AS_ENTRIES:r})})),h=u.prototype,C=f(t),B=function(e,t,r){var A=C(e),n=i(o(t),!0);return!0===n?d(A).set(t,r):n[A.id]=r,e};return n(h,{delete:function(e){var t=C(this);if(!c(e))return!1;var r=i(e);return!0===r?d(t).delete(e):r&&l(r,t.id)&&delete r[t.id]},has:function(e){var t=C(this);if(!c(e))return!1;var r=i(e);return!0===r?d(t).has(e):r&&l(r,t.id)}}),n(h,r?{get:function(e){var t=C(this);if(c(e)){var r=i(e);if(!0===r)return d(t).get(e);if(r)return r[t.id]}},set:function(e,t){return B(this,e,t)}}:{add:function(e){return B(this,e,!0)}}),u}}},9556:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(2608),a=r(5868),o=r(8552),s=r(5227),c=r(1804),g=r(3399),u=r(3749),l=r(6021),h=r(2674),I=r(3455),f=r(4348),C=r(6911),B=r(3951);e.exports=function(e,t,r){var Q=-1!==e.indexOf("Map"),E=-1!==e.indexOf("Weak"),d=Q?"set":"add",y=n[e],p=y&&y.prototype,v=y,m={},w=function(e){var t=i(p[e]);o(p,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(E&&!h(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return E&&!h(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(E&&!h(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!u(y)||!(E||p.forEach&&!I((function(){(new y).entries().next()})))))v=r.getConstructor(t,e,Q,d),s.enable();else if(a(e,!0)){var b=new v,k=b[d](E?{}:-0,1)!==b,D=I((function(){b.has(1)})),S=f((function(e){new y(e)})),F=!E&&I((function(){for(var e=new y,t=5;t--;)e[d](t,t);return!e.has(-0)}));S||((v=t((function(e,t){g(e,p);var r=B(new y,e,v);return l(t)||c(t,r[d],{that:r,AS_ENTRIES:Q}),r}))).prototype=p,p.constructor=v),(D||F)&&(w("delete"),w("has"),Q&&w("get")),(F||k)&&w(d),E&&p.clear&&delete p.clear}return m[e]=v,A({global:!0,constructor:!0,forced:v!==y},m),C(v,e),E||r.setStrong(v,e,Q),v}},2924:(e,t,r)=>{var A=r(9649),n=r(2919),i=r(1139),a=r(1601);e.exports=function(e,t,r){for(var o=n(t),s=a.f,c=i.f,g=0;g{var A=r(5811)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[A]=!1,"/./"[e](t)}catch(e){}}return!1}},5139:(e,t,r)=>{var A=r(3455);e.exports=!A((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},9393:e=>{e.exports=function(e,t){return{value:e,done:t}}},139:(e,t,r)=>{var A=r(2444),n=r(1601),i=r(4004);e.exports=A?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},4004:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3552:(e,t,r)=>{var A=r(2444),n=r(1601),i=r(4004);e.exports=function(e,t,r){A?n.f(e,t,i(0,r)):e[t]=r}},952:(e,t,r)=>{var A=r(7447),n=r(3118),i=TypeError;e.exports=function(e){if(A(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return n(this,e)}},8986:(e,t,r)=>{var A=r(1147),n=r(1601);e.exports=function(e,t,r){return r.get&&A(r.get,t,{getter:!0}),r.set&&A(r.set,t,{setter:!0}),n.f(e,t,r)}},8552:(e,t,r)=>{var A=r(3749),n=r(1601),i=r(1147),a=r(5801);e.exports=function(e,t,r,o){o||(o={});var s=o.enumerable,c=void 0!==o.name?o.name:t;if(A(r)&&i(r,c,o),o.global)s?e[t]=r:a(t,r);else{try{o.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=r:n.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},4183:(e,t,r)=>{var A=r(8552);e.exports=function(e,t,r){for(var n in t)A(e,n,t[n],r);return e}},5801:(e,t,r)=>{var A=r(4032),n=Object.defineProperty;e.exports=function(e,t){try{n(A,e,{value:t,configurable:!0,writable:!0})}catch(r){A[e]=t}return t}},1870:(e,t,r)=>{var A=r(8055),n=TypeError;e.exports=function(e,t){if(!delete e[t])throw new n("Cannot delete property "+A(t)+" of "+A(e))}},2444:(e,t,r)=>{var A=r(3455);e.exports=!A((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},7395:(e,t,r)=>{var A,n,i,a,o=r(4032),s=r(9685),c=r(6572),g=o.structuredClone,u=o.ArrayBuffer,l=o.MessageChannel,h=!1;if(c)h=function(e){g(e,{transfer:[e]})};else if(u)try{l||(A=s("worker_threads"))&&(l=A.MessageChannel),l&&(n=new l,i=new u(2),a=function(e){n.port1.postMessage(null,[e])},2===i.byteLength&&(a(i),0===i.byteLength&&(h=a)))}catch(e){}e.exports=h},5751:(e,t,r)=>{var A=r(4032),n=r(2674),i=A.document,a=n(i)&&n(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},9573:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},4090:e=>{e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},2760:e=>{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}},4784:(e,t,r)=>{var A=r(5751)("span").classList,n=A&&A.constructor&&A.constructor.prototype;e.exports=n===Object.prototype?void 0:n},5175:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7085:(e,t,r)=>{var A=r(7607).match(/firefox\\/(\\d+)/i);e.exports=!!A&&+A[1]},5123:(e,t,r)=>{var A=r(7607);e.exports=/MSIE|Trident/.test(A)},9081:(e,t,r)=>{var A=r(7607);e.exports=/ipad|iphone|ipod/i.test(A)&&"undefined"!=typeof Pebble},9352:(e,t,r)=>{var A=r(7607);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(A)},4529:(e,t,r)=>{var A=r(7351);e.exports="NODE"===A},628:(e,t,r)=>{var A=r(7607);e.exports=/web0s(?!.*chrome)/i.test(A)},7607:(e,t,r)=>{var A=r(4032).navigator,n=A&&A.userAgent;e.exports=n?String(n):""},6415:(e,t,r)=>{var A,n,i=r(4032),a=r(7607),o=i.process,s=i.Deno,c=o&&o.versions||s&&s.version,g=c&&c.v8;g&&(n=(A=g.split("."))[0]>0&&A[0]<4?1:+(A[0]+A[1])),!n&&a&&(!(A=a.match(/Edge\\/(\\d+)/))||A[1]>=74)&&(A=a.match(/Chrome\\/(\\d+)/))&&(n=+A[1]),e.exports=n},1911:(e,t,r)=>{var A=r(7607).match(/AppleWebKit\\/(\\d+)\\./);e.exports=!!A&&+A[1]},7351:(e,t,r)=>{var A=r(4032),n=r(7607),i=r(9872),a=function(e){return n.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":A.Bun&&"string"==typeof Bun.version?"BUN":A.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(A.process)?"NODE":A.window&&A.document?"BROWSER":"REST"},3633:(e,t,r)=>{var A=r(2608),n=Error,i=A("".replace),a=String(new n("zxcasd").stack),o=/\\n\\s*at [^:]*:[^\\n]*/,s=o.test(a);e.exports=function(e,t){if(s&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,o,"");return e}},4171:(e,t,r)=>{var A=r(139),n=r(3633),i=r(3427),a=Error.captureStackTrace;e.exports=function(e,t,r,o){i&&(a?a(e,t):A(e,"stack",n(r,o)))}},3427:(e,t,r)=>{var A=r(3455),n=r(4004);e.exports=!A((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},2912:(e,t,r)=>{var A=r(2444),n=r(3455),i=r(7447),a=r(8363),o=Error.prototype.toString,s=n((function(){if(A){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==o.call(e))return!0}return"2: 1"!==o.call({message:1,name:2})||"Error"!==o.call({})}));e.exports=s?function(){var e=i(this),t=a(e.name,"Error"),r=a(e.message);return t?r?t+": "+r:t:r}:o},5366:(e,t,r)=>{var A=r(4032),n=r(1139).f,i=r(139),a=r(8552),o=r(5801),s=r(2924),c=r(5868);e.exports=function(e,t){var r,g,u,l,h,I=e.target,f=e.global,C=e.stat;if(r=f?A:C?A[I]||o(I,{}):A[I]&&A[I].prototype)for(g in t){if(l=t[g],u=e.dontCallGetSet?(h=n(r,g))&&h.value:r[g],!c(f?g:I+(C?".":"#")+g,e.forced)&&void 0!==u){if(typeof l==typeof u)continue;s(l,u)}(e.sham||u&&u.sham)&&i(l,"sham",!0),a(r,g,l,e)}}},3455:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},4364:(e,t,r)=>{r(2823);var A=r(3453),n=r(8552),i=r(9867),a=r(3455),o=r(5811),s=r(139),c=o("species"),g=RegExp.prototype;e.exports=function(e,t,r,u){var l=o(e),h=!a((function(){var t={};return t[l]=function(){return 7},7!==""[e](t)})),I=h&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[l]=/./[l]),r.exec=function(){return t=!0,null},r[l](""),!t}));if(!h||!I||r){var f=/./[l],C=t(l,""[e],(function(e,t,r,n,a){var o=t.exec;return o===i||o===g.exec?h&&!a?{done:!0,value:A(f,t,r,n)}:{done:!0,value:A(e,r,t,n)}:{done:!1}}));n(String.prototype,e,C[0]),n(g,l,C[1])}u&&s(g[l],"sham",!0)}},2851:(e,t,r)=>{var A=r(5448),n=r(7878),i=r(9573),a=r(4864),o=function(e,t,r,s,c,g,u,l){for(var h,I,f=c,C=0,B=!!u&&a(u,l);C0&&A(h)?(I=n(h),f=o(e,t,h,I,f,g-1)-1):(i(f+1),e[f]=h),f++),C++;return f};e.exports=o},568:(e,t,r)=>{var A=r(3455);e.exports=!A((function(){return Object.isExtensible(Object.preventExtensions({}))}))},3881:(e,t,r)=>{var A=r(9128),n=Function.prototype,i=n.apply,a=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(A?a.bind(i):function(){return a.apply(i,arguments)})},4864:(e,t,r)=>{var A=r(2116),n=r(4186),i=r(9128),a=A(A.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},9128:(e,t,r)=>{var A=r(3455);e.exports=!A((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},2230:(e,t,r)=>{var A=r(2608),n=r(4186),i=r(2674),a=r(9649),o=r(4224),s=r(9128),c=Function,g=A([].concat),u=A([].join),l={};e.exports=s?c.bind:function(e){var t=n(this),r=t.prototype,A=o(arguments,1),s=function(){var r=g(A,o(arguments));return this instanceof s?function(e,t,r){if(!a(l,t)){for(var A=[],n=0;n{var A=r(9128),n=Function.prototype.call;e.exports=A?n.bind(n):function(){return n.apply(n,arguments)}},2542:(e,t,r)=>{var A=r(2444),n=r(9649),i=Function.prototype,a=A&&Object.getOwnPropertyDescriptor,o=n(i,"name"),s=o&&"something"===function(){}.name,c=o&&(!A||A&&a(i,"name").configurable);e.exports={EXISTS:o,PROPER:s,CONFIGURABLE:c}},5026:(e,t,r)=>{var A=r(2608),n=r(4186);e.exports=function(e,t,r){try{return A(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},2116:(e,t,r)=>{var A=r(9872),n=r(2608);e.exports=function(e){if("Function"===A(e))return n(e)}},2608:(e,t,r)=>{var A=r(9128),n=Function.prototype,i=n.call,a=A&&n.bind.bind(i,i);e.exports=A?a:function(e){return function(){return i.apply(e,arguments)}}},9685:(e,t,r)=>{var A=r(4032),n=r(4529);e.exports=function(e){if(n){try{return A.process.getBuiltinModule(e)}catch(e){}try{return Function('return require("'+e+'")')()}catch(e){}}}},8711:(e,t,r)=>{var A=r(4032),n=r(3749);e.exports=function(e,t){return arguments.length<2?(r=A[e],n(r)?r:void 0):A[e]&&A[e][t];var r}},3447:e=>{e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},7507:(e,t,r)=>{var A=r(1179),n=r(8622),i=r(6021),a=r(5597),o=r(5811)("iterator");e.exports=function(e){if(!i(e))return n(e,o)||n(e,"@@iterator")||a[A(e)]}},6961:(e,t,r)=>{var A=r(3453),n=r(4186),i=r(7447),a=r(8055),o=r(7507),s=TypeError;e.exports=function(e,t){var r=arguments.length<2?o(e):t;if(n(r))return i(A(r,e));throw new s(a(e)+" is not iterable")}},213:(e,t,r)=>{var A=r(2608),n=r(5448),i=r(3749),a=r(9872),o=r(687),s=A([].push);e.exports=function(e){if(i(e))return e;if(n(e)){for(var t=e.length,r=[],A=0;A{var A=r(4186),n=r(6021);e.exports=function(e,t){var r=e[t];return n(r)?void 0:A(r)}},3885:(e,t,r)=>{var A=r(4186),n=r(7447),i=r(3453),a=r(1211),o=r(3447),s="Invalid size",c=RangeError,g=TypeError,u=Math.max,l=function(e,t){this.set=e,this.size=u(t,0),this.has=A(e.has),this.keys=A(e.keys)};l.prototype={getIterator:function(){return o(n(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){n(e);var t=+e.size;if(t!=t)throw new g(s);var r=a(t);if(r<0)throw new c(s);return new l(e,r)}},3966:(e,t,r)=>{var A=r(2608),n=r(4165),i=Math.floor,a=A("".charAt),o=A("".replace),s=A("".slice),c=/\\$([$&'\`]|\\d{1,2}|<[^>]*>)/g,g=/\\$([$&'\`]|\\d{1,2})/g;e.exports=function(e,t,r,A,u,l){var h=r+e.length,I=A.length,f=g;return void 0!==u&&(u=n(u),f=c),o(l,f,(function(n,o){var c;switch(a(o,0)){case"$":return"$";case"&":return e;case"\`":return s(t,0,r);case"'":return s(t,h);case"<":c=u[s(o,1,-1)];break;default:var g=+o;if(0===g)return n;if(g>I){var l=i(g/10);return 0===l?n:l<=I?void 0===A[l-1]?a(o,1):A[l-1]+a(o,1):n}c=A[g-1]}return void 0===c?"":c}))}},4032:function(e){var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9649:(e,t,r)=>{var A=r(2608),n=r(4165),i=A({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},2645:e=>{e.exports={}},4885:e=>{e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},3085:(e,t,r)=>{var A=r(8711);e.exports=A("document","documentElement")},8829:(e,t,r)=>{var A=r(2444),n=r(3455),i=r(5751);e.exports=!A&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1306:e=>{var t=Array,r=Math.abs,A=Math.pow,n=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,o,s){var c,g,u,l=t(s),h=8*s-o-1,I=(1<>1,C=23===o?A(2,-24)-A(2,-77):0,B=e<0||0===e&&1/e<0?1:0,Q=0;for((e=r(e))!=e||e===1/0?(g=e!=e?1:0,c=I):(c=n(i(e)/a),e*(u=A(2,-c))<1&&(c--,u*=2),(e+=c+f>=1?C/u:C*A(2,1-f))*u>=2&&(c++,u/=2),c+f>=I?(g=0,c=I):c+f>=1?(g=(e*u-1)*A(2,o),c+=f):(g=e*A(2,f-1)*A(2,o),c=0));o>=8;)l[Q++]=255&g,g/=256,o-=8;for(c=c<0;)l[Q++]=255&c,c/=256,h-=8;return l[Q-1]|=128*B,l},unpack:function(e,t){var r,n=e.length,i=8*n-t-1,a=(1<>1,s=i-7,c=n-1,g=e[c--],u=127&g;for(g>>=7;s>0;)u=256*u+e[c--],s-=8;for(r=u&(1<<-s)-1,u>>=-s,s+=t;s>0;)r=256*r+e[c--],s-=8;if(0===u)u=1-o;else{if(u===a)return r?NaN:g?-1/0:1/0;r+=A(2,t),u-=o}return(g?-1:1)*r*A(2,u-t)}}},9455:(e,t,r)=>{var A=r(2608),n=r(3455),i=r(9872),a=Object,o=A("".split);e.exports=n((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?o(e,""):a(e)}:a},3951:(e,t,r)=>{var A=r(3749),n=r(2674),i=r(9415);e.exports=function(e,t,r){var a,o;return i&&A(a=t.constructor)&&a!==r&&n(o=a.prototype)&&o!==r.prototype&&i(e,o),e}},6906:(e,t,r)=>{var A=r(2608),n=r(3749),i=r(2205),a=A(Function.toString);n(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2483:(e,t,r)=>{var A=r(2674),n=r(139);e.exports=function(e,t){A(t)&&"cause"in t&&n(e,"cause",t.cause)}},5227:(e,t,r)=>{var A=r(5366),n=r(2608),i=r(2645),a=r(2674),o=r(9649),s=r(1601).f,c=r(3408),g=r(6442),u=r(8812),l=r(5936),h=r(568),I=!1,f=l("meta"),C=0,B=function(e){s(e,f,{value:{objectID:"O"+C++,weakData:{}}})},Q=e.exports={enable:function(){Q.enable=function(){},I=!0;var e=c.f,t=n([].splice),r={};r[f]=1,e(r).length&&(c.f=function(r){for(var A=e(r),n=0,i=A.length;n{var A,n,i,a=r(6206),o=r(4032),s=r(2674),c=r(139),g=r(9649),u=r(2205),l=r(2343),h=r(2645),I="Object already initialized",f=o.TypeError,C=o.WeakMap;if(a||u.state){var B=u.state||(u.state=new C);B.get=B.get,B.has=B.has,B.set=B.set,A=function(e,t){if(B.has(e))throw new f(I);return t.facade=e,B.set(e,t),t},n=function(e){return B.get(e)||{}},i=function(e){return B.has(e)}}else{var Q=l("state");h[Q]=!0,A=function(e,t){if(g(e,Q))throw new f(I);return t.facade=e,c(e,Q,t),t},n=function(e){return g(e,Q)?e[Q]:{}},i=function(e){return g(e,Q)}}e.exports={set:A,get:n,has:i,enforce:function(e){return i(e)?n(e):A(e,{})},getterFor:function(e){return function(t){var r;if(!s(t)||(r=n(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}},993:(e,t,r)=>{var A=r(5811),n=r(5597),i=A("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||a[i]===e)}},5448:(e,t,r)=>{var A=r(9872);e.exports=Array.isArray||function(e){return"Array"===A(e)}},5415:(e,t,r)=>{var A=r(1179);e.exports=function(e){var t=A(e);return"BigInt64Array"===t||"BigUint64Array"===t}},3749:e=>{var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8413:(e,t,r)=>{var A=r(2608),n=r(3455),i=r(3749),a=r(1179),o=r(8711),s=r(6906),c=function(){},g=o("Reflect","construct"),u=/^\\s*(?:class|function)\\b/,l=A(u.exec),h=!u.test(c),I=function(e){if(!i(e))return!1;try{return g(c,[],e),!0}catch(e){return!1}},f=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(u,s(e))}catch(e){return!0}};f.sham=!0,e.exports=!g||n((function(){var e;return I(I.call)||!I(Object)||!I((function(){e=!0}))||e}))?f:I},3007:(e,t,r)=>{var A=r(9649);e.exports=function(e){return void 0!==e&&(A(e,"value")||A(e,"writable"))}},5868:(e,t,r)=>{var A=r(3455),n=r(3749),i=/#|\\.prototype\\./,a=function(e,t){var r=s[o(e)];return r===g||r!==c&&(n(t)?A(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",g=a.POLYFILL="P";e.exports=a},2599:(e,t,r)=>{var A=r(2674),n=Math.floor;e.exports=Number.isInteger||function(e){return!A(e)&&isFinite(e)&&n(e)===e}},6021:e=>{e.exports=function(e){return null==e}},2674:(e,t,r)=>{var A=r(3749);e.exports=function(e){return"object"==typeof e?null!==e:A(e)}},4597:(e,t,r)=>{var A=r(2674);e.exports=function(e){return A(e)||null===e}},8507:e=>{e.exports=!1},6484:(e,t,r)=>{var A=r(2674),n=r(9872),i=r(5811)("match");e.exports=function(e){var t;return A(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===n(e))}},2277:(e,t,r)=>{var A=r(8711),n=r(3749),i=r(6921),a=r(4752),o=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=A("Symbol");return n(t)&&i(t.prototype,o(e))}},2939:(e,t,r)=>{var A=r(3453);e.exports=function(e,t,r){for(var n,i,a=r?e:e.iterator,o=e.next;!(n=A(o,a)).done;)if(void 0!==(i=t(n.value)))return i}},1804:(e,t,r)=>{var A=r(4864),n=r(3453),i=r(7447),a=r(8055),o=r(993),s=r(7878),c=r(6921),g=r(6961),u=r(7507),l=r(5235),h=TypeError,I=function(e,t){this.stopped=e,this.result=t},f=I.prototype;e.exports=function(e,t,r){var C,B,Q,E,d,y,p,v=r&&r.that,m=!(!r||!r.AS_ENTRIES),w=!(!r||!r.IS_RECORD),b=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),D=A(t,v),S=function(e){return C&&l(C,"normal",e),new I(!0,e)},F=function(e){return m?(i(e),k?D(e[0],e[1],S):D(e[0],e[1])):k?D(e,S):D(e)};if(w)C=e.iterator;else if(b)C=e;else{if(!(B=u(e)))throw new h(a(e)+" is not iterable");if(o(B)){for(Q=0,E=s(e);E>Q;Q++)if((d=F(e[Q]))&&c(f,d))return d;return new I(!1)}C=g(e,B)}for(y=w?e.next:C.next;!(p=n(y,C)).done;){try{d=F(p.value)}catch(e){l(C,"throw",e)}if("object"==typeof d&&d&&c(f,d))return d}return new I(!1)}},5235:(e,t,r)=>{var A=r(3453),n=r(7447),i=r(8622);e.exports=function(e,t,r){var a,o;n(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=A(a,e)}catch(e){o=!0,a=e}if("throw"===t)throw r;if(o)throw a;return n(a),r}},282:(e,t,r)=>{var A=r(2857).IteratorPrototype,n=r(5304),i=r(4004),a=r(6911),o=r(5597),s=function(){return this};e.exports=function(e,t,r,c){var g=t+" Iterator";return e.prototype=n(A,{next:i(+!c,r)}),a(e,g,!1,!0),o[g]=s,e}},2342:(e,t,r)=>{var A=r(3453),n=r(5304),i=r(139),a=r(4183),o=r(5811),s=r(8301),c=r(8622),g=r(2857).IteratorPrototype,u=r(9393),l=r(5235),h=o("toStringTag"),I="IteratorHelper",f="WrapForValidIterator",C=s.set,B=function(e){var t=s.getterFor(e?f:I);return a(n(g),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var A=r.done?void 0:r.nextHandler();return u(A,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var i=c(n,"return");return i?A(i,n):u(void 0,!0)}if(r.inner)try{l(r.inner.iterator,"normal")}catch(e){return l(n,"throw",e)}return l(n,"normal"),u(void 0,!0)}})},Q=B(!0),E=B(!1);i(E,h,"Iterator Helper"),e.exports=function(e,t){var r=function(r,A){A?(A.iterator=r.iterator,A.next=r.next):A=r,A.type=t?f:I,A.nextHandler=e,A.counter=0,A.done=!1,C(this,A)};return r.prototype=t?Q:E,r}},656:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(8507),a=r(2542),o=r(3749),s=r(282),c=r(2611),g=r(9415),u=r(6911),l=r(139),h=r(8552),I=r(5811),f=r(5597),C=r(2857),B=a.PROPER,Q=a.CONFIGURABLE,E=C.IteratorPrototype,d=C.BUGGY_SAFARI_ITERATORS,y=I("iterator"),p="keys",v="values",m="entries",w=function(){return this};e.exports=function(e,t,r,a,I,C,b){s(r,t,a);var k,D,S,F=function(e){if(e===I&&L)return L;if(!d&&e&&e in G)return G[e];switch(e){case p:case v:case m:return function(){return new r(this,e)}}return function(){return new r(this)}},x=t+" Iterator",R=!1,G=e.prototype,N=G[y]||G["@@iterator"]||I&&G[I],L=!d&&N||F(I),U="Array"===t&&G.entries||N;if(U&&(k=c(U.call(new e)))!==Object.prototype&&k.next&&(i||c(k)===E||(g?g(k,E):o(k[y])||h(k,y,w)),u(k,x,!0,!0),i&&(f[x]=w)),B&&I===v&&N&&N.name!==v&&(!i&&Q?l(G,"name",v):(R=!0,L=function(){return n(N,this)})),I)if(D={values:F(v),keys:C?L:F(p),entries:F(m)},b)for(S in D)(d||R||!(S in G))&&h(G,S,D[S]);else A({target:t,proto:!0,forced:d||R},D);return i&&!b||G[y]===L||h(G,y,L,{name:I}),f[t]=L,D}},4009:(e,t,r)=>{var A=r(3453),n=r(4186),i=r(7447),a=r(3447),o=r(2342),s=r(3535),c=o((function(){var e=this.iterator,t=i(A(this.next,e));if(!(this.done=!!t.done))return s(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return i(this),n(e),new c(a(this),{mapper:e})}},2857:(e,t,r)=>{var A,n,i,a=r(3455),o=r(3749),s=r(2674),c=r(5304),g=r(2611),u=r(8552),l=r(5811),h=r(8507),I=l("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(n=g(g(i)))!==Object.prototype&&(A=n):f=!0),!s(A)||a((function(){var e={};return A[I].call(e)!==e}))?A={}:h&&(A=c(A)),o(A[I])||u(A,I,(function(){return this})),e.exports={IteratorPrototype:A,BUGGY_SAFARI_ITERATORS:f}},5597:e=>{e.exports={}},7878:(e,t,r)=>{var A=r(5806);e.exports=function(e){return A(e.length)}},1147:(e,t,r)=>{var A=r(2608),n=r(3455),i=r(3749),a=r(9649),o=r(2444),s=r(2542).CONFIGURABLE,c=r(6906),g=r(8301),u=g.enforce,l=g.get,h=String,I=Object.defineProperty,f=A("".slice),C=A("".replace),B=A([].join),Q=o&&!n((function(){return 8!==I((function(){}),"length",{value:8}).length})),E=String(String).split("String"),d=e.exports=function(e,t,r){"Symbol("===f(h(t),0,7)&&(t="["+C(h(t),/^Symbol\\(([^)]*)\\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(o?I(e,"name",{value:t,configurable:!0}):e.name=t),Q&&r&&a(r,"arity")&&e.length!==r.arity&&I(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&I(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var A=u(e);return a(A,"source")||(A.source=B(E,"string"==typeof t?t:"")),e};Function.prototype.toString=d((function(){return i(this)&&l(this).source||c(this)}),"toString")},9676:(e,t,r)=>{var A=r(550),n=Math.abs,i=2220446049250313e-31,a=1/i;e.exports=function(e,t,r,o){var s=+e,c=n(s),g=A(s);if(cr||l!=l?g*(1/0):g*l}},3505:(e,t,r)=>{var A=r(9676);e.exports=Math.fround||function(e){return A(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},550:e=>{e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},2789:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var A=+e;return(A>0?r:t)(A)}},755:(e,t,r)=>{var A,n,i,a,o,s=r(4032),c=r(5725),g=r(4864),u=r(1369).set,l=r(3529),h=r(9352),I=r(9081),f=r(628),C=r(4529),B=s.MutationObserver||s.WebKitMutationObserver,Q=s.document,E=s.process,d=s.Promise,y=c("queueMicrotask");if(!y){var p=new l,v=function(){var e,t;for(C&&(e=E.domain)&&e.exit();t=p.get();)try{t()}catch(e){throw p.head&&A(),e}e&&e.enter()};h||C||f||!B||!Q?!I&&d&&d.resolve?((a=d.resolve(void 0)).constructor=d,o=g(a.then,a),A=function(){o(v)}):C?A=function(){E.nextTick(v)}:(u=g(u,s),A=function(){u(v)}):(n=!0,i=Q.createTextNode(""),new B(v).observe(i,{characterData:!0}),A=function(){i.data=n=!n}),y=function(e){p.head||A(),p.add(e)}}e.exports=y},9371:(e,t,r)=>{var A=r(4186),n=TypeError,i=function(e){var t,r;this.promise=new e((function(e,A){if(void 0!==t||void 0!==r)throw new n("Bad Promise constructor");t=e,r=A})),this.resolve=A(t),this.reject=A(r)};e.exports.f=function(e){return new i(e)}},8363:(e,t,r)=>{var A=r(687);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:A(e)}},3631:(e,t,r)=>{var A=r(6484),n=TypeError;e.exports=function(e){if(A(e))throw new n("The method doesn't accept regular expressions");return e}},8069:(e,t,r)=>{var A=r(2444),n=r(2608),i=r(3453),a=r(3455),o=r(496),s=r(6005),c=r(9221),g=r(4165),u=r(9455),l=Object.assign,h=Object.defineProperty,I=n([].concat);e.exports=!l||a((function(){if(A&&1!==l({b:1},l(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!==l({},e)[r]||o(l({},t)).join("")!==n}))?function(e,t){for(var r=g(e),n=arguments.length,a=1,l=s.f,h=c.f;n>a;)for(var f,C=u(arguments[a++]),B=l?I(o(C),l(C)):o(C),Q=B.length,E=0;Q>E;)f=B[E++],A&&!i(h,C,f)||(r[f]=C[f]);return r}:l},5304:(e,t,r)=>{var A,n=r(7447),i=r(9217),a=r(5175),o=r(2645),s=r(3085),c=r(5751),g=r(2343),u="prototype",l="script",h=g("IE_PROTO"),I=function(){},f=function(e){return"<"+l+">"+e+""},C=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},B=function(){try{A=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;B="undefined"!=typeof document?document.domain&&A?C(A):(t=c("iframe"),r="java"+l+":",t.style.display="none",s.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):C(A);for(var n=a.length;n--;)delete B[u][a[n]];return B()};o[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(I[u]=n(e),r=new I,I[u]=null,r[h]=e):r=B(),void 0===t?r:i.f(r,t)}},9217:(e,t,r)=>{var A=r(2444),n=r(782),i=r(1601),a=r(7447),o=r(3637),s=r(496);t.f=A&&!n?Object.defineProperties:function(e,t){a(e);for(var r,A=o(t),n=s(t),c=n.length,g=0;c>g;)i.f(e,r=n[g++],A[r]);return e}},1601:(e,t,r)=>{var A=r(2444),n=r(8829),i=r(782),a=r(7447),o=r(6201),s=TypeError,c=Object.defineProperty,g=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";t.f=A?i?function(e,t,r){if(a(e),t=o(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var A=g(e,t);A&&A[h]&&(e[t]=r.value,r={configurable:l in r?r[l]:A[l],enumerable:u in r?r[u]:A[u],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=o(t),a(r),n)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new s("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1139:(e,t,r)=>{var A=r(2444),n=r(3453),i=r(9221),a=r(4004),o=r(3637),s=r(6201),c=r(9649),g=r(8829),u=Object.getOwnPropertyDescriptor;t.f=A?u:function(e,t){if(e=o(e),t=s(t),g)try{return u(e,t)}catch(e){}if(c(e,t))return a(!n(i.f,e,t),e[t])}},6442:(e,t,r)=>{var A=r(9872),n=r(3637),i=r(3408).f,a=r(4224),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"Window"===A(e)?function(e){try{return i(e)}catch(e){return a(o)}}(e):i(n(e))}},3408:(e,t,r)=>{var A=r(2468),n=r(5175).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return A(e,n)}},6005:(e,t)=>{t.f=Object.getOwnPropertySymbols},2611:(e,t,r)=>{var A=r(9649),n=r(3749),i=r(4165),a=r(2343),o=r(5139),s=a("IE_PROTO"),c=Object,g=c.prototype;e.exports=o?c.getPrototypeOf:function(e){var t=i(e);if(A(t,s))return t[s];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof c?g:null}},8812:(e,t,r)=>{var A=r(3455),n=r(2674),i=r(9872),a=r(7060),o=Object.isExtensible,s=A((function(){o(1)}));e.exports=s||a?function(e){return!!n(e)&&(!a||"ArrayBuffer"!==i(e))&&(!o||o(e))}:o},6921:(e,t,r)=>{var A=r(2608);e.exports=A({}.isPrototypeOf)},2468:(e,t,r)=>{var A=r(2608),n=r(9649),i=r(3637),a=r(7921).indexOf,o=r(2645),s=A([].push);e.exports=function(e,t){var r,A=i(e),c=0,g=[];for(r in A)!n(o,r)&&n(A,r)&&s(g,r);for(;t.length>c;)n(A,r=t[c++])&&(~a(g,r)||s(g,r));return g}},496:(e,t,r)=>{var A=r(2468),n=r(5175);e.exports=Object.keys||function(e){return A(e,n)}},9221:(e,t)=>{var r={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,n=A&&!r.call({1:2},1);t.f=n?function(e){var t=A(this,e);return!!t&&t.enumerable}:r},9415:(e,t,r)=>{var A=r(5026),n=r(2674),i=r(7222),a=r(7330);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=A(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,A){return i(r),a(A),n(r)?(t?e(r,A):r.__proto__=A,r):r}}():void 0)},8885:(e,t,r)=>{var A=r(2444),n=r(3455),i=r(2608),a=r(2611),o=r(496),s=r(3637),c=i(r(9221).f),g=i([].push),u=A&&n((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),l=function(e){return function(t){for(var r,n=s(t),i=o(n),l=u&&null===a(n),h=i.length,I=0,f=[];h>I;)r=i[I++],A&&!(l?r in n:c(n,r))||g(f,e?[r,n[r]]:n[r]);return f}};e.exports={entries:l(!0),values:l(!1)}},3003:(e,t,r)=>{var A=r(3724),n=r(1179);e.exports=A?{}.toString:function(){return"[object "+n(this)+"]"}},3118:(e,t,r)=>{var A=r(3453),n=r(3749),i=r(2674),a=TypeError;e.exports=function(e,t){var r,o;if("string"===t&&n(r=e.toString)&&!i(o=A(r,e)))return o;if(n(r=e.valueOf)&&!i(o=A(r,e)))return o;if("string"!==t&&n(r=e.toString)&&!i(o=A(r,e)))return o;throw new a("Can't convert object to primitive value")}},2919:(e,t,r)=>{var A=r(8711),n=r(2608),i=r(3408),a=r(6005),o=r(7447),s=n([].concat);e.exports=A("Reflect","ownKeys")||function(e){var t=i.f(o(e)),r=a.f;return r?s(t,r(e)):t}},8799:(e,t,r)=>{var A=r(4032);e.exports=A},6703:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9492:(e,t,r)=>{var A=r(4032),n=r(5318),i=r(3749),a=r(5868),o=r(6906),s=r(5811),c=r(7351),g=r(8507),u=r(6415),l=n&&n.prototype,h=s("species"),I=!1,f=i(A.PromiseRejectionEvent),C=a("Promise",(function(){var e=o(n),t=e!==String(n);if(!t&&66===u)return!0;if(g&&(!l.catch||!l.finally))return!0;if(!u||u<51||!/native code/.test(e)){var r=new n((function(e){e(1)})),A=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=A,!(I=r.then((function(){}))instanceof A))return!0}return!(t||"BROWSER"!==c&&"DENO"!==c||f)}));e.exports={CONSTRUCTOR:C,REJECTION_EVENT:f,SUBCLASSING:I}},5318:(e,t,r)=>{var A=r(4032);e.exports=A.Promise},1774:(e,t,r)=>{var A=r(7447),n=r(2674),i=r(9371);e.exports=function(e,t){if(A(e),n(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},2041:(e,t,r)=>{var A=r(5318),n=r(4348),i=r(9492).CONSTRUCTOR;e.exports=i||!n((function(e){A.all(e).then(void 0,(function(){}))}))},2848:(e,t,r)=>{var A=r(1601).f;e.exports=function(e,t,r){r in e||A(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},3529:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},4410:(e,t,r)=>{var A=r(3453),n=r(7447),i=r(3749),a=r(9872),o=r(9867),s=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var c=A(r,e,t);return null!==c&&n(c),c}if("RegExp"===a(e))return A(o,e,t);throw new s("RegExp#exec called on incompatible receiver")}},9867:(e,t,r)=>{var A,n,i=r(3453),a=r(2608),o=r(687),s=r(747),c=r(1837),g=r(4593),u=r(5304),l=r(8301).get,h=r(3651),I=r(9502),f=g("native-string-replace",String.prototype.replace),C=RegExp.prototype.exec,B=C,Q=a("".charAt),E=a("".indexOf),d=a("".replace),y=a("".slice),p=(n=/b*/g,i(C,A=/a/,"a"),i(C,n,"a"),0!==A.lastIndex||0!==n.lastIndex),v=c.BROKEN_CARET,m=void 0!==/()??/.exec("")[1];(p||m||v||h||I)&&(B=function(e){var t,r,A,n,a,c,g,h=this,I=l(h),w=o(e),b=I.raw;if(b)return b.lastIndex=h.lastIndex,t=i(B,b,w),h.lastIndex=b.lastIndex,t;var k=I.groups,D=v&&h.sticky,S=i(s,h),F=h.source,x=0,R=w;if(D&&(S=d(S,"y",""),-1===E(S,"g")&&(S+="g"),R=y(w,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\\n"!==Q(w,h.lastIndex-1))&&(F="(?: "+F+")",R=" "+R,x++),r=new RegExp("^(?:"+F+")",S)),m&&(r=new RegExp("^"+F+"$(?!\\\\s)",S)),p&&(A=h.lastIndex),n=i(C,D?r:h,R),D?n?(n.input=y(n.input,x),n[0]=y(n[0],x),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:p&&n&&(h.lastIndex=h.global?n.index+n[0].length:A),m&&n&&n.length>1&&i(f,n[0],r,(function(){for(a=1;a{var A=r(7447);e.exports=function(){var e=A(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},4554:(e,t,r)=>{var A=r(3453),n=r(9649),i=r(6921),a=r(747),o=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in o||n(e,"flags")||!i(o,e)?t:A(a,e)}},1837:(e,t,r)=>{var A=r(3455),n=r(4032).RegExp,i=A((function(){var e=n("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||A((function(){return!n("a","y").sticky})),o=i||A((function(){var e=n("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:o,MISSED_STICKY:a,UNSUPPORTED_Y:i}},3651:(e,t,r)=>{var A=r(3455),n=r(4032).RegExp;e.exports=A((function(){var e=n(".","s");return!(e.dotAll&&e.test("\\n")&&"s"===e.flags)}))},9502:(e,t,r)=>{var A=r(3455),n=r(4032).RegExp;e.exports=A((function(){var e=n("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},7222:(e,t,r)=>{var A=r(6021),n=TypeError;e.exports=function(e){if(A(e))throw new n("Can't call method on "+e);return e}},5725:(e,t,r)=>{var A=r(4032),n=r(2444),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!n)return A[e];var t=i(A,e);return t&&t.value}},8550:(e,t,r)=>{var A=r(418),n=r(5605),i=A.Set,a=A.add;e.exports=function(e){var t=new i;return n(e,(function(e){a(t,e)})),t}},4656:(e,t,r)=>{var A=r(4376),n=r(418),i=r(8550),a=r(82),o=r(3885),s=r(5605),c=r(2939),g=n.has,u=n.remove;e.exports=function(e){var t=A(this),r=o(e),n=i(t);return a(t)<=r.size?s(t,(function(e){r.includes(e)&&u(n,e)})):c(r.getIterator(),(function(e){g(t,e)&&u(n,e)})),n}},418:(e,t,r)=>{var A=r(2608),n=Set.prototype;e.exports={Set,add:A(n.add),has:A(n.has),remove:A(n.delete),proto:n}},2446:(e,t,r)=>{var A=r(4376),n=r(418),i=r(82),a=r(3885),o=r(5605),s=r(2939),c=n.Set,g=n.add,u=n.has;e.exports=function(e){var t=A(this),r=a(e),n=new c;return i(t)>r.size?s(r.getIterator(),(function(e){u(t,e)&&g(n,e)})):o(t,(function(e){r.includes(e)&&g(n,e)})),n}},4545:(e,t,r)=>{var A=r(4376),n=r(418).has,i=r(82),a=r(3885),o=r(5605),s=r(2939),c=r(5235);e.exports=function(e){var t=A(this),r=a(e);if(i(t)<=r.size)return!1!==o(t,(function(e){if(r.includes(e))return!1}),!0);var g=r.getIterator();return!1!==s(g,(function(e){if(n(t,e))return c(g,"normal",!1)}))}},7918:(e,t,r)=>{var A=r(4376),n=r(82),i=r(5605),a=r(3885);e.exports=function(e){var t=A(this),r=a(e);return!(n(t)>r.size)&&!1!==i(t,(function(e){if(!r.includes(e))return!1}),!0)}},6111:(e,t,r)=>{var A=r(4376),n=r(418).has,i=r(82),a=r(3885),o=r(2939),s=r(5235);e.exports=function(e){var t=A(this),r=a(e);if(i(t){var A=r(2608),n=r(2939),i=r(418),a=i.Set,o=i.proto,s=A(o.forEach),c=A(o.keys),g=c(new a).next;e.exports=function(e,t,r){return r?n({iterator:c(e),next:g},t):s(e,t)}},1716:(e,t,r)=>{var A=r(8711),n=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=A("Set");try{(new t)[e](n(0));try{return(new t)[e](n(-1)),!1}catch(e){return!0}}catch(e){return!1}}},82:(e,t,r)=>{var A=r(5026),n=r(418);e.exports=A(n.proto,"size","get")||function(e){return e.size}},5409:(e,t,r)=>{var A=r(8711),n=r(8986),i=r(5811),a=r(2444),o=i("species");e.exports=function(e){var t=A(e);a&&t&&!t[o]&&n(t,o,{configurable:!0,get:function(){return this}})}},4498:(e,t,r)=>{var A=r(4376),n=r(418),i=r(8550),a=r(3885),o=r(2939),s=n.add,c=n.has,g=n.remove;e.exports=function(e){var t=A(this),r=a(e).getIterator(),n=i(t);return o(r,(function(e){c(t,e)?g(n,e):s(n,e)})),n}},6911:(e,t,r)=>{var A=r(1601).f,n=r(9649),i=r(5811)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!n(e,i)&&A(e,i,{configurable:!0,value:t})}},9500:(e,t,r)=>{var A=r(4376),n=r(418).add,i=r(8550),a=r(3885),o=r(2939);e.exports=function(e){var t=A(this),r=a(e).getIterator(),s=i(t);return o(r,(function(e){n(s,e)})),s}},2343:(e,t,r)=>{var A=r(4593),n=r(5936),i=A("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},2205:(e,t,r)=>{var A=r(8507),n=r(4032),i=r(5801),a="__core-js_shared__",o=e.exports=n[a]||i(a,{});(o.versions||(o.versions=[])).push({version:"3.38.1",mode:A?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},4593:(e,t,r)=>{var A=r(2205);e.exports=function(e,t){return A[e]||(A[e]=t||{})}},1365:(e,t,r)=>{var A=r(7447),n=r(9052),i=r(6021),a=r(5811)("species");e.exports=function(e,t){var r,o=A(e).constructor;return void 0===o||i(r=A(o)[a])?t:n(r)}},6903:(e,t,r)=>{var A=r(2608),n=r(1211),i=r(687),a=r(7222),o=A("".charAt),s=A("".charCodeAt),c=A("".slice),g=function(e){return function(t,r){var A,g,u=i(a(t)),l=n(r),h=u.length;return l<0||l>=h?e?"":void 0:(A=s(u,l))<55296||A>56319||l+1===h||(g=s(u,l+1))<56320||g>57343?e?o(u,l):A:e?c(u,l,l+2):g-56320+(A-55296<<10)+65536}};e.exports={codeAt:g(!1),charAt:g(!0)}},4903:(e,t,r)=>{var A=r(7607);e.exports=/Version\\/10(?:\\.\\d+){1,2}(?: [\\w./]+)?(?: Mobile\\/\\w+)? Safari\\//.test(A)},6437:(e,t,r)=>{var A=r(2608),n=r(5806),i=r(687),a=r(6605),o=r(7222),s=A(a),c=A("".slice),g=Math.ceil,u=function(e){return function(t,r,A){var a,u,l=i(o(t)),h=n(r),I=l.length,f=void 0===A?" ":i(A);return h<=I||""===f?l:((u=s(f,g((a=h-I)/f.length))).length>a&&(u=c(u,0,a)),e?l+u:u+l)}};e.exports={start:u(!1),end:u(!0)}},5141:(e,t,r)=>{var A=r(2608),n=2147483647,i=/[^\\0-\\u007E]/,a=/[.\\u3002\\uFF0E\\uFF61]/g,o="Overflow: input needs wider integers to process",s=RangeError,c=A(a.exec),g=Math.floor,u=String.fromCharCode,l=A("".charCodeAt),h=A([].join),I=A([].push),f=A("".replace),C=A("".split),B=A("".toLowerCase),Q=function(e){return e+22+75*(e<26)},E=function(e,t,r){var A=0;for(e=r?g(e/700):e>>1,e+=g(e/t);e>455;)e=g(e/35),A+=36;return g(A+36*e/(e+38))},d=function(e){var t=[];e=function(e){for(var t=[],r=0,A=e.length;r=55296&&n<=56319&&r=a&&Ag((n-c)/y))throw new s(o);for(c+=(d-a)*y,a=d,r=0;rn)throw new s(o);if(A===a){for(var p=c,v=36;;){var m=v<=f?1:v>=f+26?26:v-f;if(p{var A=r(1211),n=r(687),i=r(7222),a=RangeError;e.exports=function(e){var t=n(i(this)),r="",o=A(e);if(o<0||o===1/0)throw new a("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},2882:(e,t,r)=>{var A=r(9418).end,n=r(3794);e.exports=n("trimEnd")?function(){return A(this)}:"".trimEnd},3794:(e,t,r)=>{var A=r(2542).PROPER,n=r(3455),i=r(2284);e.exports=function(e){return n((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||A&&i[e].name!==e}))}},9418:(e,t,r)=>{var A=r(2608),n=r(7222),i=r(687),a=r(2284),o=A("".replace),s=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),g=function(e){return function(t){var r=i(n(t));return 1&e&&(r=o(r,s,"")),2&e&&(r=o(r,c,"$1")),r}};e.exports={start:g(1),end:g(2),trim:g(3)}},6572:(e,t,r)=>{var A=r(4032),n=r(3455),i=r(6415),a=r(7351),o=A.structuredClone;e.exports=!!o&&!n((function(){if("DENO"===a&&i>92||"NODE"===a&&i>94||"BROWSER"===a&&i>97)return!1;var e=new ArrayBuffer(8),t=o(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},6943:(e,t,r)=>{var A=r(6415),n=r(3455),i=r(4032).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&A&&A<41}))},3042:(e,t,r)=>{var A=r(3453),n=r(8711),i=r(5811),a=r(8552);e.exports=function(){var e=n("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,o=i("toPrimitive");t&&!t[o]&&a(t,o,(function(e){return A(r,this)}),{arity:1})}},8592:(e,t,r)=>{var A=r(6943);e.exports=A&&!!Symbol.for&&!!Symbol.keyFor},1369:(e,t,r)=>{var A,n,i,a,o=r(4032),s=r(3881),c=r(4864),g=r(3749),u=r(9649),l=r(3455),h=r(3085),I=r(4224),f=r(5751),C=r(7900),B=r(9352),Q=r(4529),E=o.setImmediate,d=o.clearImmediate,y=o.process,p=o.Dispatch,v=o.Function,m=o.MessageChannel,w=o.String,b=0,k={},D="onreadystatechange";l((function(){A=o.location}));var S=function(e){if(u(k,e)){var t=k[e];delete k[e],t()}},F=function(e){return function(){S(e)}},x=function(e){S(e.data)},R=function(e){o.postMessage(w(e),A.protocol+"//"+A.host)};E&&d||(E=function(e){C(arguments.length,1);var t=g(e)?e:v(e),r=I(arguments,1);return k[++b]=function(){s(t,void 0,r)},n(b),b},d=function(e){delete k[e]},Q?n=function(e){y.nextTick(F(e))}:p&&p.now?n=function(e){p.now(F(e))}:m&&!B?(a=(i=new m).port2,i.port1.onmessage=x,n=c(a.postMessage,a)):o.addEventListener&&g(o.postMessage)&&!o.importScripts&&A&&"file:"!==A.protocol&&!l(R)?(n=R,o.addEventListener("message",x,!1)):n=D in f("script")?function(e){h.appendChild(f("script"))[D]=function(){h.removeChild(this),S(e)}}:function(e){setTimeout(F(e),0)}),e.exports={set:E,clear:d}},9002:(e,t,r)=>{var A=r(1211),n=Math.max,i=Math.min;e.exports=function(e,t){var r=A(e);return r<0?n(r+t,0):i(r,t)}},1198:(e,t,r)=>{var A=r(8921),n=TypeError;e.exports=function(e){var t=A(e,"number");if("number"==typeof t)throw new n("Can't convert number to bigint");return BigInt(t)}},9088:(e,t,r)=>{var A=r(1211),n=r(5806),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=A(e),r=n(t);if(t!==r)throw new i("Wrong length or index");return r}},3637:(e,t,r)=>{var A=r(9455),n=r(7222);e.exports=function(e){return A(n(e))}},1211:(e,t,r)=>{var A=r(2789);e.exports=function(e){var t=+e;return t!=t||0===t?0:A(t)}},5806:(e,t,r)=>{var A=r(1211),n=Math.min;e.exports=function(e){var t=A(e);return t>0?n(t,9007199254740991):0}},4165:(e,t,r)=>{var A=r(7222),n=Object;e.exports=function(e){return n(A(e))}},8402:(e,t,r)=>{var A=r(5590),n=RangeError;e.exports=function(e,t){var r=A(e);if(r%t)throw new n("Wrong offset");return r}},5590:(e,t,r)=>{var A=r(1211),n=RangeError;e.exports=function(e){var t=A(e);if(t<0)throw new n("The argument can't be less than 0");return t}},8921:(e,t,r)=>{var A=r(3453),n=r(2674),i=r(2277),a=r(8622),o=r(3118),s=r(5811),c=TypeError,g=s("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,s=a(e,g);if(s){if(void 0===t&&(t="default"),r=A(s,e,t),!n(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},6201:(e,t,r)=>{var A=r(8921),n=r(2277);e.exports=function(e){var t=A(e,"string");return n(t)?t:t+""}},3724:(e,t,r)=>{var A={};A[r(5811)("toStringTag")]="z",e.exports="[object z]"===String(A)},687:(e,t,r)=>{var A=r(1179),n=String;e.exports=function(e){if("Symbol"===A(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},5215:e=>{var t=Math.round;e.exports=function(e){var r=t(e);return r<0?0:r>255?255:255&r}},8055:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},8975:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(3453),a=r(2444),o=r(949),s=r(4356),c=r(7226),g=r(3399),u=r(4004),l=r(139),h=r(2599),I=r(5806),f=r(9088),C=r(8402),B=r(5215),Q=r(6201),E=r(9649),d=r(1179),y=r(2674),p=r(2277),v=r(5304),m=r(6921),w=r(9415),b=r(3408).f,k=r(2291),D=r(5645).forEach,S=r(5409),F=r(8986),x=r(1601),R=r(1139),G=r(7434),N=r(8301),L=r(3951),U=N.get,M=N.set,J=N.enforce,H=x.f,Y=R.f,P=n.RangeError,O=c.ArrayBuffer,K=O.prototype,T=c.DataView,q=s.NATIVE_ARRAY_BUFFER_VIEWS,j=s.TYPED_ARRAY_TAG,W=s.TypedArray,Z=s.TypedArrayPrototype,_=s.isTypedArray,X="BYTES_PER_ELEMENT",V="Wrong length",z=function(e,t){F(e,t,{configurable:!0,get:function(){return U(this)[t]}})},$=function(e){var t;return m(K,e)||"ArrayBuffer"===(t=d(e))||"SharedArrayBuffer"===t},ee=function(e,t){return _(e)&&!p(t)&&t in e&&h(+t)&&t>=0},te=function(e,t){return t=Q(t),ee(e,t)?u(2,e[t]):Y(e,t)},re=function(e,t,r){return t=Q(t),!(ee(e,t)&&y(r)&&E(r,"value"))||E(r,"get")||E(r,"set")||r.configurable||E(r,"writable")&&!r.writable||E(r,"enumerable")&&!r.enumerable?H(e,t,r):(e[t]=r.value,e)};a?(q||(R.f=te,x.f=re,z(Z,"buffer"),z(Z,"byteOffset"),z(Z,"byteLength"),z(Z,"length")),A({target:"Object",stat:!0,forced:!q},{getOwnPropertyDescriptor:te,defineProperty:re}),e.exports=function(e,t,r){var a=e.match(/\\d+/)[0]/8,s=e+(r?"Clamped":"")+"Array",c="get"+e,u="set"+e,h=n[s],Q=h,E=Q&&Q.prototype,d={},p=function(e,t){H(e,t,{get:function(){return function(e,t){var r=U(e);return r.view[c](t*a+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,A){var n=U(e);n.view[u](t*a+n.byteOffset,r?B(A):A,!0)}(this,t,e)},enumerable:!0})};q?o&&(Q=t((function(e,t,r,A){return g(e,E),L(y(t)?$(t)?void 0!==A?new h(t,C(r,a),A):void 0!==r?new h(t,C(r,a)):new h(t):_(t)?G(Q,t):i(k,Q,t):new h(f(t)),e,Q)})),w&&w(Q,W),D(b(h),(function(e){e in Q||l(Q,e,h[e])})),Q.prototype=E):(Q=t((function(e,t,r,A){g(e,E);var n,o,s,c=0,u=0;if(y(t)){if(!$(t))return _(t)?G(Q,t):i(k,Q,t);n=t,u=C(r,a);var l=t.byteLength;if(void 0===A){if(l%a)throw new P(V);if((o=l-u)<0)throw new P(V)}else if((o=I(A)*a)+u>l)throw new P(V);s=o/a}else s=f(t),n=new O(o=s*a);for(M(e,{buffer:n,byteOffset:u,byteLength:o,length:s,view:new T(n)});c{var A=r(4032),n=r(3455),i=r(4348),a=r(4356).NATIVE_ARRAY_BUFFER_VIEWS,o=A.ArrayBuffer,s=A.Int8Array;e.exports=!a||!n((function(){s(1)}))||!n((function(){new s(-1)}))||!i((function(e){new s,new s(null),new s(1.5),new s(e)}),!0)||n((function(){return 1!==new s(new o(2),1,void 0).length}))},85:(e,t,r)=>{var A=r(7434),n=r(580);e.exports=function(e,t){return A(n(e),t)}},2291:(e,t,r)=>{var A=r(4864),n=r(3453),i=r(9052),a=r(4165),o=r(7878),s=r(6961),c=r(7507),g=r(993),u=r(5415),l=r(4356).aTypedArrayConstructor,h=r(1198);e.exports=function(e){var t,r,I,f,C,B,Q,E,d=i(this),y=a(e),p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v,w=c(y);if(w&&!g(w))for(E=(Q=s(y,w)).next,y=[];!(B=n(E,Q)).done;)y.push(B.value);for(m&&p>2&&(v=A(v,arguments[2])),r=o(y),I=new(l(d))(r),f=u(I),t=0;r>t;t++)C=m?v(y[t],t):y[t],I[t]=f?h(C):+C;return I}},580:(e,t,r)=>{var A=r(4356),n=r(1365),i=A.aTypedArrayConstructor,a=A.getTypedArrayConstructor;e.exports=function(e){return i(n(e,a(e)))}},5936:(e,t,r)=>{var A=r(2608),n=0,i=Math.random(),a=A(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++n+i,36)}},8200:(e,t,r)=>{var A=r(3455),n=r(5811),i=r(2444),a=r(8507),o=n("iterator");e.exports=!A((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),A="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),A+=r+e})),r.delete("a",2),r.delete("b",void 0),a&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(a||!i)||!t.sort||"https://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("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==A||"x"!==new URL("https://x",void 0).host}))},4752:(e,t,r)=>{var A=r(6943);e.exports=A&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},782:(e,t,r)=>{var A=r(2444),n=r(3455);e.exports=A&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7900:e=>{var t=TypeError;e.exports=function(e,r){if(e{var A=r(4032),n=r(3749),i=A.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},5343:(e,t,r)=>{var A=r(8799),n=r(9649),i=r(4559),a=r(1601).f;e.exports=function(e){var t=A.Symbol||(A.Symbol={});n(t,e)||a(t,e,{value:i.f(e)})}},4559:(e,t,r)=>{var A=r(5811);t.f=A},5811:(e,t,r)=>{var A=r(4032),n=r(4593),i=r(9649),a=r(5936),o=r(6943),s=r(4752),c=A.Symbol,g=n("wks"),u=s?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(g,e)||(g[e]=o&&i(c,e)?c[e]:u("Symbol."+e)),g[e]}},2284:e=>{e.exports="\\t\\n\\v\\f\\r                 \\u2028\\u2029\\ufeff"},9257:(e,t,r)=>{var A=r(8711),n=r(9649),i=r(139),a=r(6921),o=r(9415),s=r(2924),c=r(2848),g=r(3951),u=r(8363),l=r(2483),h=r(4171),I=r(2444),f=r(8507);e.exports=function(e,t,r,C){var B="stackTraceLimit",Q=C?2:1,E=e.split("."),d=E[E.length-1],y=A.apply(null,E);if(y){var p=y.prototype;if(!f&&n(p,"cause")&&delete p.cause,!r)return y;var v=A("Error"),m=t((function(e,t){var r=u(C?t:e,void 0),A=C?new y(e):new y;return void 0!==r&&i(A,"message",r),h(A,m,A.stack,2),this&&a(p,this)&&g(A,this,m),arguments.length>Q&&l(A,arguments[Q]),A}));if(m.prototype=p,"Error"!==d?o?o(m,v):s(m,v,{name:!0}):I&&B in y&&(c(m,y,B),c(m,y,"prepareStackTrace")),s(m,y),!f)try{p.name!==d&&i(p,"name",d),p.constructor=m}catch(e){}return m}}},5015:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(7226),a=r(5409),o="ArrayBuffer",s=i[o];A({global:!0,constructor:!0,forced:n[o]!==s},{ArrayBuffer:s}),a(o)},9261:(e,t,r)=>{var A=r(2444),n=r(8986),i=r(8102),a=ArrayBuffer.prototype;A&&!("detached"in a)&&n(a,"detached",{configurable:!0,get:function(){return i(this)}})},6209:(e,t,r)=>{var A=r(5366),n=r(2116),i=r(3455),a=r(7226),o=r(7447),s=r(9002),c=r(5806),g=r(1365),u=a.ArrayBuffer,l=a.DataView,h=l.prototype,I=n(u.prototype.slice),f=n(h.getUint8),C=n(h.setUint8);A({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new u(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(I&&void 0===t)return I(o(this),e);for(var r=o(this).byteLength,A=s(e,r),n=s(void 0===t?r:t,r),i=new(g(this,u))(c(n-A)),a=new l(this),h=new l(i),B=0;A{var A=r(5366),n=r(4676);n&&A({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return n(this,arguments.length?arguments[0]:void 0,!1)}})},3700:(e,t,r)=>{var A=r(5366),n=r(4676);n&&A({target:"ArrayBuffer",proto:!0},{transfer:function(){return n(this,arguments.length?arguments[0]:void 0,!0)}})},6347:(e,t,r)=>{var A=r(5366),n=r(4165),i=r(7878),a=r(1211),o=r(1458);A({target:"Array",proto:!0},{at:function(e){var t=n(this),r=i(t),A=a(e),o=A>=0?A:r+A;return o<0||o>=r?void 0:t[o]}}),o("at")},3234:(e,t,r)=>{var A=r(5366),n=r(3455),i=r(5448),a=r(2674),o=r(4165),s=r(7878),c=r(9573),g=r(3552),u=r(1453),l=r(9077),h=r(5811),I=r(6415),f=h("isConcatSpreadable"),C=I>=51||!n((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),B=function(e){if(!a(e))return!1;var t=e[f];return void 0!==t?!!t:i(e)};A({target:"Array",proto:!0,arity:1,forced:!C||!l("concat")},{concat:function(e){var t,r,A,n,i,a=o(this),l=u(a,0),h=0;for(t=-1,A=arguments.length;t{var A=r(5366),n=r(5645).filter;A({target:"Array",proto:!0,forced:!r(9077)("filter")},{filter:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},6497:(e,t,r)=>{var A=r(5366),n=r(2851),i=r(4165),a=r(7878),o=r(1211),s=r(1453);A({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),r=a(t),A=s(t,0);return A.length=n(A,t,t,r,0,void 0===e?1:o(e)),A}})},6746:(e,t,r)=>{var A=r(5366),n=r(3948);A({target:"Array",stat:!0,forced:!r(4348)((function(e){Array.from(e)}))},{from:n})},932:(e,t,r)=>{var A=r(5366),n=r(7921).includes,i=r(3455),a=r(1458);A({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},3276:(e,t,r)=>{var A=r(5366),n=r(2116),i=r(7921).indexOf,a=r(1814),o=n([].indexOf),s=!!o&&1/o([1],1,-0)<0;A({target:"Array",proto:!0,forced:s||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return s?o(this,e,t)||0:i(this,e,t)}})},9024:(e,t,r)=>{var A=r(3637),n=r(1458),i=r(5597),a=r(8301),o=r(1601).f,s=r(656),c=r(9393),g=r(8507),u=r(2444),l="Array Iterator",h=a.set,I=a.getterFor(l);e.exports=s(Array,"Array",(function(e,t){h(this,{type:l,target:A(e),index:0,kind:t})}),(function(){var e=I(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)}),"values");var f=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!g&&u&&"values"!==f.name)try{o(f,"name",{value:"values"})}catch(e){}},3177:(e,t,r)=>{var A=r(5366),n=r(3499);A({target:"Array",proto:!0,forced:n!==[].lastIndexOf},{lastIndexOf:n})},5550:(e,t,r)=>{var A=r(5366),n=r(5645).map;A({target:"Array",proto:!0,forced:!r(9077)("map")},{map:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},9138:(e,t,r)=>{var A=r(5366),n=r(4165),i=r(7878),a=r(7375),o=r(9573);A({target:"Array",proto:!0,arity:1,forced:r(3455)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=n(this),r=i(t),A=arguments.length;o(r+A);for(var s=0;s{var A=r(5366),n=r(4734).left,i=r(1814),a=r(6415);A({target:"Array",proto:!0,forced:!r(4529)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return n(this,e,t,t>1?arguments[1]:void 0)}})},6794:(e,t,r)=>{var A=r(5366),n=r(2608),i=r(5448),a=n([].reverse),o=[1,2];A({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},750:(e,t,r)=>{var A=r(5366),n=r(5448),i=r(8413),a=r(2674),o=r(9002),s=r(7878),c=r(3637),g=r(3552),u=r(5811),l=r(9077),h=r(4224),I=l("slice"),f=u("species"),C=Array,B=Math.max;A({target:"Array",proto:!0,forced:!I},{slice:function(e,t){var r,A,u,l=c(this),I=s(l),Q=o(e,I),E=o(void 0===t?I:t,I);if(n(l)&&(r=l.constructor,(i(r)&&(r===C||n(r.prototype))||a(r)&&null===(r=r[f]))&&(r=void 0),r===C||void 0===r))return h(l,Q,E);for(A=new(void 0===r?C:r)(B(E-Q,0)),u=0;Q{var A=r(5366),n=r(2608),i=r(4186),a=r(4165),o=r(7878),s=r(1870),c=r(687),g=r(3455),u=r(5272),l=r(1814),h=r(7085),I=r(5123),f=r(6415),C=r(1911),B=[],Q=n(B.sort),E=n(B.push),d=g((function(){B.sort(void 0)})),y=g((function(){B.sort(null)})),p=l("sort"),v=!g((function(){if(f)return f<70;if(!(h&&h>3)){if(I)return!0;if(C)return C<603;var e,t,r,A,n="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(A=0;A<47;A++)B.push({k:t+A,v:r})}for(B.sort((function(e,t){return t.v-e.v})),A=0;Ac(r)?1:-1}}(e)),r=o(n),A=0;A{var A=r(5366),n=r(4165),i=r(9002),a=r(1211),o=r(7878),s=r(7375),c=r(9573),g=r(1453),u=r(3552),l=r(1870),h=r(9077)("splice"),I=Math.max,f=Math.min;A({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var r,A,h,C,B,Q,E=n(this),d=o(E),y=i(e,d),p=arguments.length;for(0===p?r=A=0:1===p?(r=0,A=d-y):(r=p-2,A=f(I(a(t),0),d-y)),c(d+r-A),h=g(E,A),C=0;Cd-A+r;C--)l(E,C-1)}else if(r>A)for(C=d-A;C>y;C--)Q=C+r-1,(B=C+A-1)in E?E[Q]=E[B]:l(E,Q);for(C=0;C{r(1458)("flat")},8937:(e,t,r)=>{var A=r(5366),n=r(4165),i=r(7878),a=r(7375),o=r(1870),s=r(9573);A({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=n(this),r=i(t),A=arguments.length;if(A){s(r+A);for(var c=r;c--;){var g=c+A;c in t?t[g]=t[c]:o(t,g)}for(var u=0;u{var A=r(5366),n=r(3455),i=r(4165),a=r(8921);A({target:"Date",proto:!0,arity:1,forced:n((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=i(this),r=a(t,"number");return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},7316:(e,t,r)=>{var A=r(9649),n=r(8552),i=r(952),a=r(5811)("toPrimitive"),o=Date.prototype;A(o,a)||n(o,a,i)},184:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(3881),a=r(9257),o="WebAssembly",s=n[o],c=7!==new Error("e",{cause:7}).cause,g=function(e,t){var r={};r[e]=a(e,t,c),A({global:!0,constructor:!0,arity:1,forced:c},r)},u=function(e,t){if(s&&s[e]){var r={};r[e]=a(o+"."+e,t,c),A({target:o,stat:!0,constructor:!0,arity:1,forced:c},r)}};g("Error",(function(e){return function(t){return i(e,this,arguments)}})),g("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),g("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),g("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),g("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),g("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),g("URIError",(function(e){return function(t){return i(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},8169:(e,t,r)=>{var A=r(5366),n=r(4032);A({global:!0,forced:n.globalThis!==n},{globalThis:n})},9750:(e,t,r)=>{var A=r(5366),n=r(8711),i=r(3881),a=r(3453),o=r(2608),s=r(3455),c=r(3749),g=r(2277),u=r(4224),l=r(213),h=r(6943),I=String,f=n("JSON","stringify"),C=o(/./.exec),B=o("".charAt),Q=o("".charCodeAt),E=o("".replace),d=o(1..toString),y=/[\\uD800-\\uDFFF]/g,p=/^[\\uD800-\\uDBFF]$/,v=/^[\\uDC00-\\uDFFF]$/,m=!h||s((function(){var e=n("Symbol")("stringify detection");return"[null]"!==f([e])||"{}"!==f({a:e})||"{}"!==f(Object(e))})),w=s((function(){return'"\\\\udf06\\\\ud834"'!==f("\\udf06\\ud834")||'"\\\\udead"'!==f("\\udead")})),b=function(e,t){var r=u(arguments),A=l(t);if(c(A)||void 0!==e&&!g(e))return r[1]=function(e,t){if(c(A)&&(t=a(A,this,I(e),t)),!g(t))return t},i(f,null,r)},k=function(e,t,r){var A=B(r,t-1),n=B(r,t+1);return C(p,e)&&!C(v,n)||C(v,e)&&!C(p,A)?"\\\\u"+d(Q(e,0),16):e};f&&A({target:"JSON",stat:!0,arity:3,forced:m||w},{stringify:function(e,t,r){var A=u(arguments),n=i(m?b:f,null,A);return w&&"string"==typeof n?E(n,y,k):n}})},7531:(e,t,r)=>{var A=r(4032);r(6911)(A.JSON,"JSON",!0)},6539:(e,t,r)=>{r(9556)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(2042))},1425:(e,t,r)=>{r(6539)},3821:(e,t,r)=>{var A=r(5366),n=Math.hypot,i=Math.abs,a=Math.sqrt;A({target:"Math",stat:!0,arity:2,forced:!!n&&n(1/0,NaN)!==1/0},{hypot:function(e,t){for(var r,A,n=0,o=0,s=arguments.length,c=0;o0?(A=r/c)*A:r;return c===1/0?1/0:c*a(n)}})},1999:(e,t,r)=>{r(6911)(Math,"Math",!0)},8674:(e,t,r)=>{var A=r(5366),n=r(8885).entries;A({target:"Object",stat:!0},{entries:function(e){return n(e)}})},1309:(e,t,r)=>{var A=r(5366),n=r(6943),i=r(3455),a=r(6005),o=r(4165);A({target:"Object",stat:!0,forced:!n||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(o(e)):[]}})},3379:(e,t,r)=>{var A=r(3724),n=r(8552),i=r(3003);A||n(Object.prototype,"toString",i,{unsafe:!0})},482:(e,t,r)=>{var A=r(5366),n=r(8885).values;A({target:"Object",stat:!0},{values:function(e){return n(e)}})},5204:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(4186),a=r(9371),o=r(6703),s=r(1804);A({target:"Promise",stat:!0,forced:r(2041)},{allSettled:function(e){var t=this,r=a.f(t),A=r.resolve,c=r.reject,g=o((function(){var r=i(t.resolve),a=[],o=0,c=1;s(e,(function(e){var i=o++,s=!1;c++,n(r,t,e).then((function(e){s||(s=!0,a[i]={status:"fulfilled",value:e},--c||A(a))}),(function(e){s||(s=!0,a[i]={status:"rejected",reason:e},--c||A(a))}))})),--c||A(a)}));return g.error&&c(g.value),r.promise}})},6195:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(4186),a=r(9371),o=r(6703),s=r(1804);A({target:"Promise",stat:!0,forced:r(2041)},{all:function(e){var t=this,r=a.f(t),A=r.resolve,c=r.reject,g=o((function(){var r=i(t.resolve),a=[],o=0,g=1;s(e,(function(e){var i=o++,s=!1;g++,n(r,t,e).then((function(e){s||(s=!0,a[i]=e,--g||A(a))}),c)})),--g||A(a)}));return g.error&&c(g.value),r.promise}})},1459:(e,t,r)=>{var A=r(5366),n=r(8507),i=r(9492).CONSTRUCTOR,a=r(5318),o=r(8711),s=r(3749),c=r(8552),g=a&&a.prototype;if(A({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!n&&s(a)){var u=o("Promise").prototype.catch;g.catch!==u&&c(g,"catch",u,{unsafe:!0})}},9236:(e,t,r)=>{var A,n,i,a=r(5366),o=r(8507),s=r(4529),c=r(4032),g=r(3453),u=r(8552),l=r(9415),h=r(6911),I=r(5409),f=r(4186),C=r(3749),B=r(2674),Q=r(3399),E=r(1365),d=r(1369).set,y=r(755),p=r(4885),v=r(6703),m=r(3529),w=r(8301),b=r(5318),k=r(9492),D=r(9371),S="Promise",F=k.CONSTRUCTOR,x=k.REJECTION_EVENT,R=k.SUBCLASSING,G=w.getterFor(S),N=w.set,L=b&&b.prototype,U=b,M=L,J=c.TypeError,H=c.document,Y=c.process,P=D.f,O=P,K=!!(H&&H.createEvent&&c.dispatchEvent),T="unhandledrejection",q=function(e){var t;return!(!B(e)||!C(t=e.then))&&t},j=function(e,t){var r,A,n,i=t.value,a=1===t.state,o=a?e.ok:e.fail,s=e.resolve,c=e.reject,u=e.domain;try{o?(a||(2===t.rejection&&V(t),t.rejection=1),!0===o?r=i:(u&&u.enter(),r=o(i),u&&(u.exit(),n=!0)),r===e.promise?c(new J("Promise-chain cycle")):(A=q(r))?g(A,r,s,c):s(r)):c(i)}catch(e){u&&!n&&u.exit(),c(e)}},W=function(e,t){e.notified||(e.notified=!0,y((function(){for(var r,A=e.reactions;r=A.get();)j(r,e);e.notified=!1,t&&!e.rejection&&_(e)})))},Z=function(e,t,r){var A,n;K?((A=H.createEvent("Event")).promise=t,A.reason=r,A.initEvent(e,!1,!0),c.dispatchEvent(A)):A={promise:t,reason:r},!x&&(n=c["on"+e])?n(A):e===T&&p("Unhandled promise rejection",r)},_=function(e){g(d,c,(function(){var t,r=e.facade,A=e.value;if(X(e)&&(t=v((function(){s?Y.emit("unhandledRejection",A,r):Z(T,r,A)})),e.rejection=s||X(e)?2:1,t.error))throw t.value}))},X=function(e){return 1!==e.rejection&&!e.parent},V=function(e){g(d,c,(function(){var t=e.facade;s?Y.emit("rejectionHandled",t):Z("rejectionhandled",t,e.value)}))},z=function(e,t,r){return function(A){e(t,A,r)}},$=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,W(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new J("Promise can't be resolved itself");var A=q(t);A?y((function(){var r={done:!1};try{g(A,t,z(ee,r,e),z($,r,e))}catch(t){$(r,t,e)}})):(e.value=t,e.state=1,W(e,!1))}catch(t){$({done:!1},t,e)}}};if(F&&(M=(U=function(e){Q(this,M),f(e),g(A,this);var t=G(this);try{e(z(ee,t),z($,t))}catch(e){$(t,e)}}).prototype,(A=function(e){N(this,{type:S,done:!1,notified:!1,parent:!1,reactions:new m,rejection:!1,state:0,value:null})}).prototype=u(M,"then",(function(e,t){var r=G(this),A=P(E(this,U));return r.parent=!0,A.ok=!C(e)||e,A.fail=C(t)&&t,A.domain=s?Y.domain:void 0,0===r.state?r.reactions.add(A):y((function(){j(A,r)})),A.promise})),n=function(){var e=new A,t=G(e);this.promise=e,this.resolve=z(ee,t),this.reject=z($,t)},D.f=P=function(e){return e===U||void 0===e?new n(e):O(e)},!o&&C(b)&&L!==Object.prototype)){i=L.then,R||u(L,"then",(function(e,t){var r=this;return new U((function(e,t){g(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(e){}l&&l(L,M)}a({global:!0,constructor:!0,wrap:!0,forced:F},{Promise:U}),h(U,S,!1,!0),I(S)},2431:(e,t,r)=>{var A=r(5366),n=r(8507),i=r(5318),a=r(3455),o=r(8711),s=r(3749),c=r(1365),g=r(1774),u=r(8552),l=i&&i.prototype;if(A({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){l.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,o("Promise")),r=s(e);return this.then(r?function(r){return g(t,e()).then((function(){return r}))}:e,r?function(r){return g(t,e()).then((function(){throw r}))}:e)}}),!n&&s(i)){var h=o("Promise").prototype.finally;l.finally!==h&&u(l,"finally",h,{unsafe:!0})}},1234:(e,t,r)=>{r(9236),r(6195),r(1459),r(5167),r(5257),r(1128)},5167:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(4186),a=r(9371),o=r(6703),s=r(1804);A({target:"Promise",stat:!0,forced:r(2041)},{race:function(e){var t=this,r=a.f(t),A=r.reject,c=o((function(){var a=i(t.resolve);s(e,(function(e){n(a,t,e).then(r.resolve,A)}))}));return c.error&&A(c.value),r.promise}})},5257:(e,t,r)=>{var A=r(5366),n=r(9371);A({target:"Promise",stat:!0,forced:r(9492).CONSTRUCTOR},{reject:function(e){var t=n.f(this);return(0,t.reject)(e),t.promise}})},1128:(e,t,r)=>{var A=r(5366),n=r(8711),i=r(8507),a=r(5318),o=r(9492).CONSTRUCTOR,s=r(1774),c=n("Promise"),g=i&&!o;A({target:"Promise",stat:!0,forced:i||o},{resolve:function(e){return s(g&&this===c?a:this,e)}})},9732:(e,t,r)=>{var A=r(5366),n=r(9371);A({target:"Promise",stat:!0},{withResolvers:function(){var e=n.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},489:(e,t,r)=>{var A=r(5366),n=r(8711),i=r(3881),a=r(2230),o=r(9052),s=r(7447),c=r(2674),g=r(5304),u=r(3455),l=n("Reflect","construct"),h=Object.prototype,I=[].push,f=u((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),C=!u((function(){l((function(){}))})),B=f||C;A({target:"Reflect",stat:!0,forced:B,sham:B},{construct:function(e,t){o(e),s(t);var r=arguments.length<3?e:o(arguments[2]);if(C&&!f)return l(e,t,r);if(e===r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var A=[null];return i(I,A,t),new(i(a,e,A))}var n=r.prototype,u=g(c(n)?n:h),B=i(e,u,t);return c(B)?B:u}})},7288:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(2674),a=r(7447),o=r(3007),s=r(1139),c=r(2611);A({target:"Reflect",stat:!0},{get:function e(t,r){var A,g,u=arguments.length<3?t:arguments[2];return a(t)===u?t[r]:(A=s.f(t,r))?o(A)?A.value:void 0===A.get?void 0:n(A.get,u):i(g=c(t))?e(g,r,u):void 0}})},176:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(6911);A({global:!0},{Reflect:{}}),i(n.Reflect,"Reflect",!0)},4592:(e,t,r)=>{var A=r(2444),n=r(4032),i=r(2608),a=r(5868),o=r(3951),s=r(139),c=r(5304),g=r(3408).f,u=r(6921),l=r(6484),h=r(687),I=r(4554),f=r(1837),C=r(2848),B=r(8552),Q=r(3455),E=r(9649),d=r(8301).enforce,y=r(5409),p=r(5811),v=r(3651),m=r(9502),w=p("match"),b=n.RegExp,k=b.prototype,D=n.SyntaxError,S=i(k.exec),F=i("".charAt),x=i("".replace),R=i("".indexOf),G=i("".slice),N=/^\\?<[^\\s\\d!#%&*+<=>@^][^\\s!#%&*+<=>@^]*>/,L=/a/g,U=/a/g,M=new b(L)!==L,J=f.MISSED_STICKY,H=f.UNSUPPORTED_Y;if(a("RegExp",A&&(!M||J||v||m||Q((function(){return U[w]=!1,b(L)!==L||b(U)===U||"/a/i"!==String(b(L,"i"))}))))){for(var Y=function(e,t){var r,A,n,i,a,g,f=u(k,this),C=l(e),B=void 0===t,Q=[],y=e;if(!f&&C&&B&&e.constructor===Y)return e;if((C||u(k,e))&&(e=e.source,B&&(t=I(y))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),y=e,v&&"dotAll"in L&&(A=!!t&&R(t,"s")>-1)&&(t=x(t,/s/g,"")),r=t,J&&"sticky"in L&&(n=!!t&&R(t,"y")>-1)&&H&&(t=x(t,/y/g,"")),m&&(i=function(e){for(var t,r=e.length,A=0,n="",i=[],a=c(null),o=!1,s=!1,g=0,u="";A<=r;A++){if("\\\\"===(t=F(e,A)))t+=F(e,++A);else if("]"===t)o=!1;else if(!o)switch(!0){case"["===t:o=!0;break;case"("===t:if(n+=t,"?:"===G(e,A+1,A+3))continue;S(N,G(e,A+1))&&(A+=2,s=!0),g++;continue;case">"===t&&s:if(""===u||E(a,u))throw new D("Invalid capture group name");a[u]=!0,i[i.length]=[u,g],s=!1,u="";continue}s?u+=t:n+=t}return[n,i]}(e),e=i[0],Q=i[1]),a=o(b(e,t),f?this:k,Y),(A||n||Q.length)&&(g=d(a),A&&(g.dotAll=!0,g.raw=Y(function(e){for(var t,r=e.length,A=0,n="",i=!1;A<=r;A++)"\\\\"!==(t=F(e,A))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),n+=t):n+="[\\\\s\\\\S]":n+=t+F(e,++A);return n}(e),r)),n&&(g.sticky=!0),Q.length&&(g.groups=Q)),e!==y)try{s(a,"source",""===y?"(?:)":y)}catch(e){}return a},P=g(b),O=0;P.length>O;)C(Y,b,P[O++]);k.constructor=Y,Y.prototype=k,B(n,"RegExp",Y,{constructor:!0})}y("RegExp")},8345:(e,t,r)=>{var A=r(2444),n=r(3651),i=r(9872),a=r(8986),o=r(8301).get,s=RegExp.prototype,c=TypeError;A&&n&&a(s,"dotAll",{configurable:!0,get:function(){if(this!==s){if("RegExp"===i(this))return!!o(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},2823:(e,t,r)=>{var A=r(5366),n=r(9867);A({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},7879:(e,t,r)=>{var A=r(4032),n=r(2444),i=r(8986),a=r(747),o=r(3455),s=A.RegExp,c=s.prototype;n&&o((function(){var e=!0;try{s(".","d")}catch(t){e=!1}var t={},r="",A=e?"dgimsy":"gimsy",n=function(e,A){Object.defineProperty(t,e,{get:function(){return r+=A,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)n(a,i[a]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==A||r!==A}))&&i(c,"flags",{configurable:!0,get:a})},2865:(e,t,r)=>{var A=r(2444),n=r(1837).MISSED_STICKY,i=r(9872),a=r(8986),o=r(8301).get,s=RegExp.prototype,c=TypeError;A&&n&&a(s,"sticky",{configurable:!0,get:function(){if(this!==s){if("RegExp"===i(this))return!!o(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},5594:(e,t,r)=>{r(2823);var A,n,i=r(5366),a=r(3453),o=r(3749),s=r(7447),c=r(687),g=(A=!1,(n=/[ac]/).exec=function(){return A=!0,/./.exec.apply(this,arguments)},!0===n.test("abc")&&A),u=/./.test;i({target:"RegExp",proto:!0,forced:!g},{test:function(e){var t=s(this),r=c(e),A=t.exec;if(!o(A))return a(u,t,r);var n=a(A,t,r);return null!==n&&(s(n),!0)}})},8397:(e,t,r)=>{var A=r(2542).PROPER,n=r(8552),i=r(7447),a=r(687),o=r(3455),s=r(4554),c="toString",g=RegExp.prototype,u=g[c],l=o((function(){return"/a/b"!==u.call({source:"a",flags:"b"})})),h=A&&u.name!==c;(l||h)&&n(g,c,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(s(e))}),{unsafe:!0})},4645:(e,t,r)=>{r(9556)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(2042))},5130:(e,t,r)=>{var A=r(5366),n=r(4656);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("difference")},{difference:n})},5636:(e,t,r)=>{var A=r(5366),n=r(3455),i=r(2446);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("intersection")||n((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:i})},8509:(e,t,r)=>{var A=r(5366),n=r(4545);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("isDisjointFrom")},{isDisjointFrom:n})},7332:(e,t,r)=>{var A=r(5366),n=r(7918);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("isSubsetOf")},{isSubsetOf:n})},6555:(e,t,r)=>{var A=r(5366),n=r(6111);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("isSupersetOf")},{isSupersetOf:n})},9255:(e,t,r)=>{r(4645)},3296:(e,t,r)=>{var A=r(5366),n=r(4498);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("symmetricDifference")},{symmetricDifference:n})},4594:(e,t,r)=>{var A=r(5366),n=r(9500);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("union")},{union:n})},8653:(e,t,r)=>{var A=r(5366),n=r(2608),i=r(7222),a=r(1211),o=r(687),s=r(3455),c=n("".charAt);A({target:"String",proto:!0,forced:s((function(){return"\\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=o(i(this)),r=t.length,A=a(e),n=A>=0?A:r+A;return n<0||n>=r?void 0:c(t,n)}})},9657:(e,t,r)=>{var A,n=r(5366),i=r(2116),a=r(1139).f,o=r(5806),s=r(687),c=r(3631),g=r(7222),u=r(860),l=r(8507),h=i("".slice),I=Math.min,f=u("endsWith");n({target:"String",proto:!0,forced:!(!l&&!f&&(A=a(String.prototype,"endsWith"),A&&!A.writable)||f)},{endsWith:function(e){var t=s(g(this));c(e);var r=arguments.length>1?arguments[1]:void 0,A=t.length,n=void 0===r?A:I(o(r),A),i=s(e);return h(t,n-i.length,n)===i}})},2217:(e,t,r)=>{var A=r(5366),n=r(2608),i=r(9002),a=RangeError,o=String.fromCharCode,s=String.fromCodePoint,c=n([].join);A({target:"String",stat:!0,arity:1,forced:!!s&&1!==s.length},{fromCodePoint:function(e){for(var t,r=[],A=arguments.length,n=0;A>n;){if(t=+arguments[n++],i(t,1114111)!==t)throw new a(t+" is not a valid code point");r[n]=t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320)}return c(r,"")}})},2467:(e,t,r)=>{var A=r(5366),n=r(2608),i=r(3631),a=r(7222),o=r(687),s=r(860),c=n("".indexOf);A({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~c(o(a(this)),o(i(e)),arguments.length>1?arguments[1]:void 0)}})},7460:(e,t,r)=>{var A=r(6903).charAt,n=r(687),i=r(8301),a=r(656),o=r(9393),s="String Iterator",c=i.set,g=i.getterFor(s);a(String,"String",(function(e){c(this,{type:s,string:n(e),index:0})}),(function(){var e,t=g(this),r=t.string,n=t.index;return n>=r.length?o(void 0,!0):(e=A(r,n),t.index+=e.length,o(e,!1))}))},1281:(e,t,r)=>{var A=r(3453),n=r(4364),i=r(7447),a=r(6021),o=r(5806),s=r(687),c=r(7222),g=r(8622),u=r(8149),l=r(4410);n("match",(function(e,t,r){return[function(t){var r=c(this),n=a(t)?void 0:g(t,e);return n?A(n,t,r):new RegExp(t)[e](s(r))},function(e){var A=i(this),n=s(e),a=r(t,A,n);if(a.done)return a.value;if(!A.global)return l(A,n);var c=A.unicode;A.lastIndex=0;for(var g,h=[],I=0;null!==(g=l(A,n));){var f=s(g[0]);h[I]=f,""===f&&(A.lastIndex=u(n,o(A.lastIndex),c)),I++}return 0===I?null:h}]}))},9484:(e,t,r)=>{var A=r(5366),n=r(6437).start;A({target:"String",proto:!0,forced:r(4903)},{padStart:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},4413:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(2608),a=r(7222),o=r(3749),s=r(6021),c=r(6484),g=r(687),u=r(8622),l=r(4554),h=r(3966),I=r(5811),f=r(8507),C=I("replace"),B=TypeError,Q=i("".indexOf),E=i("".replace),d=i("".slice),y=Math.max;A({target:"String",proto:!0},{replaceAll:function(e,t){var r,A,i,I,p,v,m,w,b,k,D=a(this),S=0,F="";if(!s(e)){if((r=c(e))&&(A=g(a(l(e))),!~Q(A,"g")))throw new B("\`.replaceAll\` does not allow non-global regexes");if(i=u(e,C))return n(i,e,D,t);if(f&&r)return E(g(D),e,t)}for(I=g(D),p=g(e),(v=o(t))||(t=g(t)),m=p.length,w=y(1,m),b=Q(I,p);-1!==b;)k=v?g(t(p,b,I)):h(p,I,b,[],void 0,t),F+=d(I,S,b)+k,S=b+m,b=b+w>I.length?-1:Q(I,p,b+w);return S{var A=r(3881),n=r(3453),i=r(2608),a=r(4364),o=r(3455),s=r(7447),c=r(3749),g=r(6021),u=r(1211),l=r(5806),h=r(687),I=r(7222),f=r(8149),C=r(8622),B=r(3966),Q=r(4410),E=r(5811)("replace"),d=Math.max,y=Math.min,p=i([].concat),v=i([].push),m=i("".indexOf),w=i("".slice),b="$0"==="a".replace(/./,"$0"),k=!!/./[E]&&""===/./[E]("a","$0");a("replace",(function(e,t,r){var i=k?"$":"$0";return[function(e,r){var A=I(this),i=g(e)?void 0:C(e,E);return i?n(i,e,A,r):n(t,h(A),e,r)},function(e,n){var a=s(this),o=h(e);if("string"==typeof n&&-1===m(n,i)&&-1===m(n,"$<")){var g=r(t,a,o,n);if(g.done)return g.value}var I=c(n);I||(n=h(n));var C,E=a.global;E&&(C=a.unicode,a.lastIndex=0);for(var b,k=[];null!==(b=Q(a,o))&&(v(k,b),E);)""===h(b[0])&&(a.lastIndex=f(o,l(a.lastIndex),C));for(var D,S="",F=0,x=0;x=F&&(S+=w(o,F,N)+R,F=N+G.length)}return S+w(o,F)}]}),!!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!b||k)},4072:(e,t,r)=>{var A=r(3453),n=r(2608),i=r(4364),a=r(7447),o=r(6021),s=r(7222),c=r(1365),g=r(8149),u=r(5806),l=r(687),h=r(8622),I=r(4410),f=r(1837),C=r(3455),B=f.UNSUPPORTED_Y,Q=Math.min,E=n([].push),d=n("".slice),y=!C((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),p="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",(function(e,t,r){var n="0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:A(t,this,e,r)}:t;return[function(t,r){var i=s(this),a=o(t)?void 0:h(t,e);return a?A(a,t,i,r):A(n,l(i),t,r)},function(e,A){var i=a(this),o=l(e);if(!p){var s=r(n,i,o,A,n!==t);if(s.done)return s.value}var h=c(i,RegExp),f=i.unicode,C=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(B?"g":"y"),y=new h(B?"^(?:"+i.source+")":i,C),v=void 0===A?4294967295:A>>>0;if(0===v)return[];if(0===o.length)return null===I(y,o)?[o]:[];for(var m=0,w=0,b=[];w{var A,n=r(5366),i=r(2116),a=r(1139).f,o=r(5806),s=r(687),c=r(3631),g=r(7222),u=r(860),l=r(8507),h=i("".slice),I=Math.min,f=u("startsWith");n({target:"String",proto:!0,forced:!(!l&&!f&&(A=a(String.prototype,"startsWith"),A&&!A.writable)||f)},{startsWith:function(e){var t=s(g(this));c(e);var r=o(I(arguments.length>1?arguments[1]:void 0,t.length)),A=s(e);return h(t,r,r+A.length)===A}})},98:(e,t,r)=>{r(3185);var A=r(5366),n=r(2882);A({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==n},{trimEnd:n})},3185:(e,t,r)=>{var A=r(5366),n=r(2882);A({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==n},{trimRight:n})},9210:(e,t,r)=>{var A=r(5366),n=r(9418).trim;A({target:"String",proto:!0,forced:r(3794)("trim")},{trim:function(){return n(this)}})},4172:(e,t,r)=>{r(5343)("asyncIterator")},2873:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(3453),a=r(2608),o=r(8507),s=r(2444),c=r(6943),g=r(3455),u=r(9649),l=r(6921),h=r(7447),I=r(3637),f=r(6201),C=r(687),B=r(4004),Q=r(5304),E=r(496),d=r(3408),y=r(6442),p=r(6005),v=r(1139),m=r(1601),w=r(9217),b=r(9221),k=r(8552),D=r(8986),S=r(4593),F=r(2343),x=r(2645),R=r(5936),G=r(5811),N=r(4559),L=r(5343),U=r(3042),M=r(6911),J=r(8301),H=r(5645).forEach,Y=F("hidden"),P="Symbol",O="prototype",K=J.set,T=J.getterFor(P),q=Object[O],j=n.Symbol,W=j&&j[O],Z=n.RangeError,_=n.TypeError,X=n.QObject,V=v.f,z=m.f,$=y.f,ee=b.f,te=a([].push),re=S("symbols"),Ae=S("op-symbols"),ne=S("wks"),ie=!X||!X[O]||!X[O].findChild,ae=function(e,t,r){var A=V(q,t);A&&delete q[t],z(e,t,r),A&&e!==q&&z(q,t,A)},oe=s&&g((function(){return 7!==Q(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a}))?ae:z,se=function(e,t){var r=re[e]=Q(W);return K(r,{type:P,tag:e,description:t}),s||(r.description=t),r},ce=function(e,t,r){e===q&&ce(Ae,t,r),h(e);var A=f(t);return h(r),u(re,A)?(r.enumerable?(u(e,Y)&&e[Y][A]&&(e[Y][A]=!1),r=Q(r,{enumerable:B(0,!1)})):(u(e,Y)||z(e,Y,B(1,Q(null))),e[Y][A]=!0),oe(e,A,r)):z(e,A,r)},ge=function(e,t){h(e);var r=I(t),A=E(r).concat(Ie(r));return H(A,(function(t){s&&!i(ue,r,t)||ce(e,t,r[t])})),e},ue=function(e){var t=f(e),r=i(ee,this,t);return!(this===q&&u(re,t)&&!u(Ae,t))&&(!(r||!u(this,t)||!u(re,t)||u(this,Y)&&this[Y][t])||r)},le=function(e,t){var r=I(e),A=f(t);if(r!==q||!u(re,A)||u(Ae,A)){var n=V(r,A);return!n||!u(re,A)||u(r,Y)&&r[Y][A]||(n.enumerable=!0),n}},he=function(e){var t=$(I(e)),r=[];return H(t,(function(e){u(re,e)||u(x,e)||te(r,e)})),r},Ie=function(e){var t=e===q,r=$(t?Ae:I(e)),A=[];return H(r,(function(e){!u(re,e)||t&&!u(q,e)||te(A,re[e])})),A};c||(k(W=(j=function(){if(l(W,this))throw new _("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?C(arguments[0]):void 0,t=R(e),r=function(e){var A=void 0===this?n:this;A===q&&i(r,Ae,e),u(A,Y)&&u(A[Y],t)&&(A[Y][t]=!1);var a=B(1,e);try{oe(A,t,a)}catch(e){if(!(e instanceof Z))throw e;ae(A,t,a)}};return s&&ie&&oe(q,t,{configurable:!0,set:r}),se(t,e)})[O],"toString",(function(){return T(this).tag})),k(j,"withoutSetter",(function(e){return se(R(e),e)})),b.f=ue,m.f=ce,w.f=ge,v.f=le,d.f=y.f=he,p.f=Ie,N.f=function(e){return se(G(e),e)},s&&(D(W,"description",{configurable:!0,get:function(){return T(this).description}}),o||k(q,"propertyIsEnumerable",ue,{unsafe:!0}))),A({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:j}),H(E(ne),(function(e){L(e)})),A({target:P,stat:!0,forced:!c},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),A({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(e,t){return void 0===t?Q(e):ge(Q(e),t)},defineProperty:ce,defineProperties:ge,getOwnPropertyDescriptor:le}),A({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:he}),U(),M(j,P),x[Y]=!0},4551:(e,t,r)=>{var A=r(5366),n=r(2444),i=r(4032),a=r(2608),o=r(9649),s=r(3749),c=r(6921),g=r(687),u=r(8986),l=r(2924),h=i.Symbol,I=h&&h.prototype;if(n&&s(h)&&(!("description"in I)||void 0!==h().description)){var f={},C=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:g(arguments[0]),t=c(I,this)?new h(e):void 0===e?h():h(e);return""===e&&(f[t]=!0),t};l(C,h),C.prototype=I,I.constructor=C;var B="Symbol(description detection)"===String(h("description detection")),Q=a(I.valueOf),E=a(I.toString),d=/^Symbol\\((.*)\\)[^)]+$/,y=a("".replace),p=a("".slice);u(I,"description",{configurable:!0,get:function(){var e=Q(this);if(o(f,e))return"";var t=E(e),r=B?p(t,7,-1):y(t,d,"$1");return""===r?void 0:r}}),A({global:!0,constructor:!0,forced:!0},{Symbol:C})}},4182:(e,t,r)=>{var A=r(5366),n=r(8711),i=r(9649),a=r(687),o=r(4593),s=r(8592),c=o("string-to-symbol-registry"),g=o("symbol-to-string-registry");A({target:"Symbol",stat:!0,forced:!s},{for:function(e){var t=a(e);if(i(c,t))return c[t];var r=n("Symbol")(t);return c[t]=r,g[r]=t,r}})},7651:(e,t,r)=>{r(2873),r(4182),r(7876),r(9750),r(1309)},7876:(e,t,r)=>{var A=r(5366),n=r(9649),i=r(2277),a=r(8055),o=r(4593),s=r(8592),c=o("symbol-to-string-registry");A({target:"Symbol",stat:!0,forced:!s},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(n(c,e))return c[e]}})},5268:(e,t,r)=>{var A=r(5343),n=r(3042);A("toPrimitive"),n()},5997:(e,t,r)=>{var A=r(8711),n=r(5343),i=r(6911);n("toStringTag"),i(A("Symbol"),"Symbol")},3740:(e,t,r)=>{var A=r(4356),n=r(7878),i=r(1211),a=A.aTypedArray;(0,A.exportTypedArrayMethod)("at",(function(e){var t=a(this),r=n(t),A=i(e),o=A>=0?A:r+A;return o<0||o>=r?void 0:t[o]}))},6542:(e,t,r)=>{var A=r(2608),n=r(4356),i=A(r(6677)),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},5738:(e,t,r)=>{var A=r(4356),n=r(5645).every,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("every",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2900:(e,t,r)=>{var A=r(4356),n=r(9557),i=r(1198),a=r(1179),o=r(3453),s=r(2608),c=r(3455),g=A.aTypedArray,u=A.exportTypedArrayMethod,l=s("".slice);u("fill",(function(e){var t=arguments.length;g(this);var r="Big"===l(a(this),0,3)?i(e):+e;return o(n,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},2051:(e,t,r)=>{var A=r(4356),n=r(5645).filter,i=r(85),a=A.aTypedArray;(0,A.exportTypedArrayMethod)("filter",(function(e){var t=n(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},4211:(e,t,r)=>{var A=r(4356),n=r(5645).findIndex,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("findIndex",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},5294:(e,t,r)=>{var A=r(4356),n=r(767).findLastIndex,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("findLastIndex",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},9791:(e,t,r)=>{var A=r(4356),n=r(767).findLast,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("findLast",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},3198:(e,t,r)=>{var A=r(4356),n=r(5645).find,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("find",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},4306:(e,t,r)=>{r(8975)("Float32",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},6473:(e,t,r)=>{r(8975)("Float64",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},1526:(e,t,r)=>{var A=r(4356),n=r(5645).forEach,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("forEach",(function(e){n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2569:(e,t,r)=>{var A=r(949);(0,r(4356).exportTypedArrayStaticMethod)("from",r(2291),A)},6032:(e,t,r)=>{var A=r(4356),n=r(7921).includes,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("includes",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},3659:(e,t,r)=>{var A=r(4356),n=r(7921).indexOf,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("indexOf",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},3195:(e,t,r)=>{r(8975)("Int16",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},1237:(e,t,r)=>{r(8975)("Int32",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},4834:(e,t,r)=>{r(8975)("Int8",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},8551:(e,t,r)=>{var A=r(4032),n=r(3455),i=r(2608),a=r(4356),o=r(9024),s=r(5811)("iterator"),c=A.Uint8Array,g=i(o.values),u=i(o.keys),l=i(o.entries),h=a.aTypedArray,I=a.exportTypedArrayMethod,f=c&&c.prototype,C=!n((function(){f[s].call([1])})),B=!!f&&f.values&&f[s]===f.values&&"values"===f.values.name,Q=function(){return g(h(this))};I("entries",(function(){return l(h(this))}),C),I("keys",(function(){return u(h(this))}),C),I("values",Q,C||!B,{name:"values"}),I(s,Q,C||!B,{name:"values"})},8553:(e,t,r)=>{var A=r(4356),n=r(2608),i=A.aTypedArray,a=A.exportTypedArrayMethod,o=n([].join);a("join",(function(e){return o(i(this),e)}))},7612:(e,t,r)=>{var A=r(4356),n=r(3881),i=r(3499),a=A.aTypedArray;(0,A.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return n(i,a(this),t>1?[e,arguments[1]]:[e])}))},8579:(e,t,r)=>{var A=r(4356),n=r(5645).map,i=r(580),a=A.aTypedArray;(0,A.exportTypedArrayMethod)("map",(function(e){return n(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},7576:(e,t,r)=>{var A=r(4356),n=r(4734).right,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return n(i(this),e,t,t>1?arguments[1]:void 0)}))},7719:(e,t,r)=>{var A=r(4356),n=r(4734).left,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return n(i(this),e,t,t>1?arguments[1]:void 0)}))},2891:(e,t,r)=>{var A=r(4356),n=A.aTypedArray,i=A.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,r=n(t).length,A=a(r/2),i=0;i{var A=r(4032),n=r(3453),i=r(4356),a=r(7878),o=r(8402),s=r(4165),c=r(3455),g=A.RangeError,u=A.Int8Array,l=u&&u.prototype,h=l&&l.set,I=i.aTypedArray,f=i.exportTypedArrayMethod,C=!c((function(){var e=new Uint8ClampedArray(2);return n(h,e,{length:1,0:3},1),3!==e[1]})),B=C&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new u(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));f("set",(function(e){I(this);var t=o(arguments.length>1?arguments[1]:void 0,1),r=s(e);if(C)return n(h,this,r,t);var A=this.length,i=a(r),c=0;if(i+t>A)throw new g("Wrong length");for(;c{var A=r(4356),n=r(580),i=r(3455),a=r(4224),o=A.aTypedArray;(0,A.exportTypedArrayMethod)("slice",(function(e,t){for(var r=a(o(this),e,t),A=n(this),i=0,s=r.length,c=new A(s);s>i;)c[i]=r[i++];return c}),i((function(){new Int8Array(1).slice()})))},9637:(e,t,r)=>{var A=r(4356),n=r(5645).some,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("some",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2709:(e,t,r)=>{var A=r(4032),n=r(2116),i=r(3455),a=r(4186),o=r(5272),s=r(4356),c=r(7085),g=r(5123),u=r(6415),l=r(1911),h=s.aTypedArray,I=s.exportTypedArrayMethod,f=A.Uint16Array,C=f&&n(f.prototype.sort),B=!(!C||i((function(){C(new f(2),null)}))&&i((function(){C(new f(2),{})}))),Q=!!C&&!i((function(){if(u)return u<74;if(c)return c<67;if(g)return!0;if(l)return l<602;var e,t,r=new f(516),A=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,A[e]=e-2*t+3;for(C(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==A[e])return!0}));I("sort",(function(e){return void 0!==e&&a(e),Q?C(this,e):o(h(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!Q||B)},8941:(e,t,r)=>{var A=r(4032),n=r(3881),i=r(4356),a=r(3455),o=r(4224),s=A.Int8Array,c=i.aTypedArray,g=i.exportTypedArrayMethod,u=[].toLocaleString,l=!!s&&a((function(){u.call(new s(1))}));g("toLocaleString",(function(){return n(u,l?o(c(this)):c(this),o(arguments))}),a((function(){return[1,2].toLocaleString()!==new s([1,2]).toLocaleString()}))||!a((function(){s.prototype.toLocaleString.call([1,2])})))},1579:(e,t,r)=>{var A=r(6444),n=r(4356),i=n.aTypedArray,a=n.exportTypedArrayMethod,o=n.getTypedArrayConstructor;a("toReversed",(function(){return A(i(this),o(this))}))},6236:(e,t,r)=>{var A=r(4356),n=r(2608),i=r(4186),a=r(7434),o=A.aTypedArray,s=A.getTypedArrayConstructor,c=A.exportTypedArrayMethod,g=n(A.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&i(e);var t=o(this),r=a(s(t),t);return g(r,e)}))},7716:(e,t,r)=>{var A=r(4356).exportTypedArrayMethod,n=r(3455),i=r(4032),a=r(2608),o=i.Uint8Array,s=o&&o.prototype||{},c=[].toString,g=a([].join);n((function(){c.call({})}))&&(c=function(){return g(this)});var u=s.toString!==c;A("toString",c,u)},3034:(e,t,r)=>{r(8975)("Uint16",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},2044:(e,t,r)=>{r(8975)("Uint32",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},7329:(e,t,r)=>{r(8975)("Uint8",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},4262:(e,t,r)=>{r(8975)("Uint8",(function(e){return function(t,r,A){return e(this,t,r,A)}}),!0)},1913:(e,t,r)=>{var A=r(920),n=r(4356),i=r(5415),a=r(1211),o=r(1198),s=n.aTypedArray,c=n.getTypedArrayConstructor,g=n.exportTypedArrayMethod,u=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();g("with",{with:function(e,t){var r=s(this),n=a(e),g=i(r)?o(t):+t;return A(r,c(r),n,g)}}.with,!u)},6722:(e,t,r)=>{var A,n=r(568),i=r(4032),a=r(2608),o=r(4183),s=r(5227),c=r(9556),g=r(8153),u=r(2674),l=r(8301).enforce,h=r(3455),I=r(6206),f=Object,C=Array.isArray,B=f.isExtensible,Q=f.isFrozen,E=f.isSealed,d=f.freeze,y=f.seal,p=!i.ActiveXObject&&"ActiveXObject"in i,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=c("WeakMap",v,g),w=m.prototype,b=a(w.set);if(I)if(p){A=g.getConstructor(v,"WeakMap",!0),s.enable();var k=a(w.delete),D=a(w.has),S=a(w.get);o(w,{delete:function(e){if(u(e)&&!B(e)){var t=l(this);return t.frozen||(t.frozen=new A),k(this,e)||t.frozen.delete(e)}return k(this,e)},has:function(e){if(u(e)&&!B(e)){var t=l(this);return t.frozen||(t.frozen=new A),D(this,e)||t.frozen.has(e)}return D(this,e)},get:function(e){if(u(e)&&!B(e)){var t=l(this);return t.frozen||(t.frozen=new A),D(this,e)?S(this,e):t.frozen.get(e)}return S(this,e)},set:function(e,t){if(u(e)&&!B(e)){var r=l(this);r.frozen||(r.frozen=new A),D(this,e)?b(this,e,t):r.frozen.set(e,t)}else b(this,e,t);return this}})}else n&&h((function(){var e=d([]);return b(new m,e,1),!Q(e)}))&&o(w,{set:function(e,t){var r;return C(e)&&(Q(e)?r=d:E(e)&&(r=y)),b(this,e,t),r&&r(e),this}})},8492:(e,t,r)=>{r(6722)},1176:(e,t,r)=>{r(9556)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(8153))},7121:(e,t,r)=>{r(1176)},4192:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(3399),a=r(7447),o=r(3749),s=r(2611),c=r(8986),g=r(3552),u=r(3455),l=r(9649),h=r(5811),I=r(2857).IteratorPrototype,f=r(2444),C=r(8507),B="constructor",Q="Iterator",E=h("toStringTag"),d=TypeError,y=n[Q],p=C||!o(y)||y.prototype!==I||!u((function(){y({})})),v=function(){if(i(this,I),s(this)===I)throw new d("Abstract class Iterator not directly constructable")},m=function(e,t){f?c(I,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===I)throw new d("You can't redefine this property");l(this,e)?this[e]=t:g(this,e,t)}}):I[e]=t};l(I,E)||m(E,Q),!p&&l(I,B)&&I[B]!==Object||m(B,v),v.prototype=I,A({global:!0,constructor:!0,forced:p},{Iterator:v})},463:(e,t,r)=>{var A=r(5366),n=r(1804),i=r(4186),a=r(7447),o=r(3447);A({target:"Iterator",proto:!0,real:!0},{every:function(e){a(this),i(e);var t=o(this),r=0;return!n(t,(function(t,A){if(!e(t,r++))return A()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8856:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(4186),a=r(7447),o=r(3447),s=r(2342),c=r(3535),g=r(8507),u=s((function(){for(var e,t,r=this.iterator,A=this.predicate,i=this.next;;){if(e=a(n(i,r)),this.done=!!e.done)return;if(t=e.value,c(r,A,[t,this.counter++],!0))return t}}));A({target:"Iterator",proto:!0,real:!0,forced:g},{filter:function(e){return a(this),i(e),new u(o(this),{predicate:e})}})},4865:(e,t,r)=>{var A=r(5366),n=r(1804),i=r(4186),a=r(7447),o=r(3447);A({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),i(e);var t=o(this),r=0;return n(t,(function(t,A){if(e(t,r++))return A(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},1565:(e,t,r)=>{var A=r(5366),n=r(1804),i=r(4186),a=r(7447),o=r(3447);A({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),i(e);var t=o(this),r=0;n(t,(function(t){e(t,r++)}),{IS_RECORD:!0})}})},5342:(e,t,r)=>{var A=r(5366),n=r(4009);A({target:"Iterator",proto:!0,real:!0,forced:r(8507)},{map:n})},8075:(e,t,r)=>{var A=r(5366),n=r(1804),i=r(4186),a=r(7447),o=r(3447),s=TypeError;A({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),i(e);var t=o(this),r=arguments.length<2,A=r?void 0:arguments[1],c=0;if(n(t,(function(t){r?(r=!1,A=t):A=e(A,t,c),c++}),{IS_RECORD:!0}),r)throw new s("Reduce of empty iterator with no initial value");return A}})},9582:(e,t,r)=>{var A=r(5366),n=r(1804),i=r(4186),a=r(7447),o=r(3447);A({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),i(e);var t=o(this),r=0;return n(t,(function(t,A){if(e(t,r++))return A()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},7987:(e,t,r)=>{var A=r(5366),n=r(7447),i=r(1804),a=r(3447),o=[].push;A({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return i(a(n(this)),o,{that:e,IS_RECORD:!0}),e}})},6625:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(8711),a=r(2608),o=r(3453),s=r(3455),c=r(687),g=r(7900),u=r(2996).c2i,l=/[^\\d+/a-z]/i,h=/[\\t\\n\\f\\r ]+/g,I=/[=]{1,2}$/,f=i("atob"),C=String.fromCharCode,B=a("".charAt),Q=a("".replace),E=a(l.exec),d=!!f&&!s((function(){return"hi"!==f("aGk=")})),y=d&&s((function(){return""!==f(" ")})),p=d&&!s((function(){f("a")})),v=d&&!s((function(){f()})),m=d&&1!==f.length;A({global:!0,bind:!0,enumerable:!0,forced:!d||y||p||v||m},{atob:function(e){if(g(arguments.length,1),d&&!y&&!p)return o(f,n,e);var t,r,A,a=Q(c(e),h,""),s="",v=0,m=0;if(a.length%4==0&&(a=Q(a,I,"")),(t=a.length)%4==1||E(l,a))throw new(i("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;v>(-2*m&6)));return s}})},8316:(e,t,r)=>{var A=r(4032),n=r(2760),i=r(4784),a=r(3147),o=r(139),s=function(e){if(e&&e.forEach!==a)try{o(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in n)n[c]&&s(A[c]&&A[c].prototype);s(i)},3577:(e,t,r)=>{var A=r(4032),n=r(2760),i=r(4784),a=r(9024),o=r(139),s=r(6911),c=r(5811)("iterator"),g=a.values,u=function(e,t){if(e){if(e[c]!==g)try{o(e,c,g)}catch(t){e[c]=g}if(s(e,t,!0),n[t])for(var r in a)if(e[r]!==a[r])try{o(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var l in n)u(A[l]&&A[l].prototype,l);u(i,"DOMTokenList")},4967:(e,t,r)=>{var A=r(5366),n=r(8711),i=r(9685),a=r(3455),o=r(5304),s=r(4004),c=r(1601).f,g=r(8552),u=r(8986),l=r(9649),h=r(3399),I=r(7447),f=r(2912),C=r(8363),B=r(4090),Q=r(3633),E=r(8301),d=r(2444),y=r(8507),p="DOMException",v="DATA_CLONE_ERR",m=n("Error"),w=n(p)||function(){try{(new(n("MessageChannel")||i("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===v&&25===e.code)return e.constructor}}(),b=w&&w.prototype,k=m.prototype,D=E.set,S=E.getterFor(p),F="stack"in new m(p),x=function(e){return l(B,e)&&B[e].m?B[e].c:0},R=function(){h(this,G);var e=arguments.length,t=C(e<1?void 0:arguments[0]),r=C(e<2?void 0:arguments[1],"Error"),A=x(r);if(D(this,{type:p,name:r,message:t,code:A}),d||(this.name=r,this.message=t,this.code=A),F){var n=new m(t);n.name=p,c(this,"stack",s(1,Q(n.stack,1)))}},G=R.prototype=o(k),N=function(e){return{enumerable:!0,configurable:!0,get:e}},L=function(e){return N((function(){return S(this)[e]}))};d&&(u(G,"code",L("code")),u(G,"message",L("message")),u(G,"name",L("name"))),c(G,"constructor",s(1,R));var U=a((function(){return!(new w instanceof m)})),M=U||a((function(){return k.toString!==f||"2: 1"!==String(new w(1,2))})),J=U||a((function(){return 25!==new w(1,"DataCloneError").code})),H=U||25!==w[v]||25!==b[v],Y=y?M||J||H:U;A({global:!0,constructor:!0,forced:Y},{DOMException:Y?R:w});var P=n(p),O=P.prototype;for(var K in M&&(y||w===P)&&g(O,"toString",f),J&&d&&w===P&&u(O,"code",N((function(){return x(I(this).name)}))),B)if(l(B,K)){var T=B[K],q=T.s,j=s(6,T.c);l(P,q)||c(P,q,j),l(O,q)||c(O,q,j)}},6403:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(8711),a=r(4004),o=r(1601).f,s=r(9649),c=r(3399),g=r(3951),u=r(8363),l=r(4090),h=r(3633),I=r(2444),f=r(8507),C="DOMException",B=i("Error"),Q=i(C),E=function(){c(this,d);var e=arguments.length,t=u(e<1?void 0:arguments[0]),r=u(e<2?void 0:arguments[1],"Error"),A=new Q(t,r),n=new B(t);return n.name=C,o(A,"stack",a(1,h(n.stack,1))),g(A,this,E),A},d=E.prototype=Q.prototype,y="stack"in new B(C),p="stack"in new Q(1,2),v=Q&&I&&Object.getOwnPropertyDescriptor(n,C),m=!(!v||v.writable&&v.configurable),w=y&&!m&&!p;A({global:!0,constructor:!0,forced:f||w},{DOMException:w?E:Q});var b=i(C),k=b.prototype;if(k.constructor!==b)for(var D in f||o(k,"constructor",a(1,b)),l)if(s(l,D)){var S=l[D],F=S.s;s(b,F)||o(b,F,a(6,S.c))}},3355:(e,t,r)=>{var A=r(8711),n="DOMException";r(6911)(A(n),n)},8043:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(8986),a=r(2444),o=TypeError,s=Object.defineProperty,c=n.self!==n;try{if(a){var g=Object.getOwnPropertyDescriptor(n,"self");!c&&g&&g.get&&g.enumerable||i(n,"self",{get:function(){return n},set:function(e){if(this!==n)throw new o("Illegal invocation");s(n,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else A({global:!0,simple:!0,forced:c},{self:n})}catch(e){}},9734:(e,t,r)=>{r(9024),r(2217);var A=r(5366),n=r(4032),i=r(5725),a=r(8711),o=r(3453),s=r(2608),c=r(2444),g=r(8200),u=r(8552),l=r(8986),h=r(4183),I=r(6911),f=r(282),C=r(8301),B=r(3399),Q=r(3749),E=r(9649),d=r(4864),y=r(1179),p=r(7447),v=r(2674),m=r(687),w=r(5304),b=r(4004),k=r(6961),D=r(7507),S=r(9393),F=r(7900),x=r(5811),R=r(5272),G=x("iterator"),N="URLSearchParams",L=N+"Iterator",U=C.set,M=C.getterFor(N),J=C.getterFor(L),H=i("fetch"),Y=i("Request"),P=i("Headers"),O=Y&&Y.prototype,K=P&&P.prototype,T=n.TypeError,q=n.encodeURIComponent,j=String.fromCharCode,W=a("String","fromCodePoint"),Z=parseInt,_=s("".charAt),X=s([].join),V=s([].push),z=s("".replace),$=s([].shift),ee=s([].splice),te=s("".split),re=s("".slice),Ae=s(/./.exec),ne=/\\+/g,ie=/^[0-9a-f]+$/i,ae=function(e,t){var r=re(e,t,t+2);return Ae(ie,r)?Z(r,16):NaN},oe=function(e){for(var t=0,r=128;r>0&&0!=(e&r);r>>=1)t++;return t},se=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ce=function(e){for(var t=(e=z(e,ne," ")).length,r="",A=0;At){r+="%",A++;continue}var i=ae(e,A+1);if(i!=i){r+=n,A++;continue}A+=2;var a=oe(i);if(0===a)n=j(i);else{if(1===a||a>4){r+="�",A++;continue}for(var o=[i],s=1;st||"%"!==_(e,A));){var c=ae(e,A+1);if(c!=c){A+=3;break}if(c>191||c<128)break;V(o,c),A+=2,s++}if(o.length!==a){r+="�";continue}var g=se(o);null===g?r+="�":n=W(g)}}r+=n,A++}return r},ge=/[!'()~]|%20/g,ue={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return ue[e]},he=function(e){return z(q(e),ge,le)},Ie=f((function(e,t){U(this,{type:L,target:M(e).entries,index:0,kind:t})}),N,(function(){var e=J(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,S(void 0,!0);var A=t[r];switch(e.kind){case"keys":return S(A.key,!1);case"values":return S(A.value,!1)}return S([A.key,A.value],!1)}),!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(v(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===_(e,0)?re(e,1):e:m(e)))};fe.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,A,n,i,a,s,c=this.entries,g=D(e);if(g)for(r=(t=k(e,g)).next;!(A=o(r,t)).done;){if(i=(n=k(p(A.value))).next,(a=o(i,n)).done||(s=o(i,n)).done||!o(i,n).done)throw new T("Expected sequence with length 2");V(c,{key:m(a.value),value:m(s.value)})}else for(var u in e)E(e,u)&&V(c,{key:u,value:m(e[u])})},parseQuery:function(e){if(e)for(var t,r,A=this.entries,n=te(e,"&"),i=0;i0?arguments[0]:void 0));c||(this.size=e.entries.length)},Be=Ce.prototype;if(h(Be,{append:function(e,t){var r=M(this);F(arguments.length,2),V(r.entries,{key:m(e),value:m(t)}),c||this.length++,r.updateURL()},delete:function(e){for(var t=M(this),r=F(arguments.length,1),A=t.entries,n=m(e),i=r<2?void 0:arguments[1],a=void 0===i?i:m(i),o=0;ot.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=M(this).entries,A=d(e,arguments.length>1?arguments[1]:void 0),n=0;n1?de(arguments[1]):{})}}),Q(Y)){var ye=function(e){return B(this,O),new Y(e,arguments.length>1?de(arguments[1]):{})};O.constructor=ye,ye.prototype=O,A({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ye})}}e.exports={URLSearchParams:Ce,getState:M}},1531:(e,t,r)=>{var A=r(8552),n=r(2608),i=r(687),a=r(7900),o=URLSearchParams,s=o.prototype,c=n(s.append),g=n(s.delete),u=n(s.forEach),l=n([].push),h=new o("a=1&a=2&b=3");h.delete("a",1),h.delete("b",void 0),h+""!="a=2"&&A(s,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return g(this,e);var A=[];u(this,(function(e,t){l(A,{key:t,value:e})})),a(t,1);for(var n,o=i(e),s=i(r),h=0,I=0,f=!1,C=A.length;h{var A=r(8552),n=r(2608),i=r(687),a=r(7900),o=URLSearchParams,s=o.prototype,c=n(s.getAll),g=n(s.has),u=new o("a=1");!u.has("a",2)&&u.has("a",void 0)||A(s,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return g(this,e);var A=c(this,e);a(t,1);for(var n=i(r),o=0;o{r(9734)},4145:(e,t,r)=>{var A=r(2444),n=r(2608),i=r(8986),a=URLSearchParams.prototype,o=n(a.forEach);A&&!("size"in a)&&i(a,"size",{get:function(){var e=0;return o(this,(function(){e++})),e},configurable:!0,enumerable:!0})},161:(e,t,r)=>{r(7460);var A,n=r(5366),i=r(2444),a=r(8200),o=r(4032),s=r(4864),c=r(2608),g=r(8552),u=r(8986),l=r(3399),h=r(9649),I=r(8069),f=r(3948),C=r(4224),B=r(6903).codeAt,Q=r(5141),E=r(687),d=r(6911),y=r(7900),p=r(9734),v=r(8301),m=v.set,w=v.getterFor("URL"),b=p.URLSearchParams,k=p.getState,D=o.URL,S=o.TypeError,F=o.parseInt,x=Math.floor,R=Math.pow,G=c("".charAt),N=c(/./.exec),L=c([].join),U=c(1..toString),M=c([].pop),J=c([].push),H=c("".replace),Y=c([].shift),P=c("".split),O=c("".slice),K=c("".toLowerCase),T=c([].unshift),q="Invalid scheme",j="Invalid host",W="Invalid port",Z=/[a-z]/i,_=/[\\d+-.a-z]/i,X=/\\d/,V=/^0x/i,z=/^[0-7]+$/,$=/^\\d+$/,ee=/^[\\da-f]+$/i,te=/[\\0\\t\\n\\r #%/:<>?@[\\\\\\]^|]/,re=/[\\0\\t\\n\\r #/:<>?@[\\\\\\]^|]/,Ae=/^[\\u0000-\\u0020]+/,ne=/(^|[^\\u0000-\\u0020])[\\u0000-\\u0020]+$/,ie=/[\\t\\n\\r]/g,ae=function(e){var t,r,A,n;if("number"==typeof e){for(t=[],r=0;r<4;r++)T(t,e%256),e=x(e/256);return L(t,".")}if("object"==typeof e){for(t="",A=function(e){for(var t=null,r=1,A=null,n=0,i=0;i<8;i++)0!==e[i]?(n>r&&(t=A,r=n),A=null,n=0):(null===A&&(A=i),++n);return n>r?A:t}(e),r=0;r<8;r++)n&&0===e[r]||(n&&(n=!1),A===r?(t+=r?":":"::",n=!0):(t+=U(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},oe={},se=I({},oe,{" ":1,'"':1,"<":1,">":1,"\`":1}),ce=I({},se,{"#":1,"?":1,"{":1,"}":1}),ge=I({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\\\":1,"]":1,"^":1,"|":1}),ue=function(e,t){var r=B(e,0);return r>32&&r<127&&!h(t,e)?e:encodeURIComponent(e)},le={ftp:21,file:null,http:80,https:443,ws:80,wss:443},he=function(e,t){var r;return 2===e.length&&N(Z,G(e,0))&&(":"===(r=G(e,1))||!t&&"|"===r)},Ie=function(e){var t;return e.length>1&&he(O(e,0,2))&&(2===e.length||"/"===(t=G(e,2))||"\\\\"===t||"?"===t||"#"===t)},fe=function(e){return"."===e||"%2e"===K(e)},Ce={},Be={},Qe={},Ee={},de={},ye={},pe={},ve={},me={},we={},be={},ke={},De={},Se={},Fe={},xe={},Re={},Ge={},Ne={},Le={},Ue={},Me=function(e,t,r){var A,n,i,a=E(e);if(t){if(n=this.parse(a))throw new S(n);this.searchParams=null}else{if(void 0!==r&&(A=new Me(r,!0)),n=this.parse(a,null,A))throw new S(n);(i=k(new b)).bindURL(this),this.searchParams=i}};Me.prototype={type:"URL",parse:function(e,t,r){var n,i,a,o,s,c=this,g=t||Ce,u=0,l="",I=!1,B=!1,Q=!1;for(e=E(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=H(e,Ae,""),e=H(e,ne,"$1")),e=H(e,ie,""),n=f(e);u<=n.length;){switch(i=n[u],g){case Ce:if(!i||!N(Z,i)){if(t)return q;g=Qe;continue}l+=K(i),g=Be;break;case Be:if(i&&(N(_,i)||"+"===i||"-"===i||"."===i))l+=K(i);else{if(":"!==i){if(t)return q;l="",g=Qe,u=0;continue}if(t&&(c.isSpecial()!==h(le,l)||"file"===l&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=l,t)return void(c.isSpecial()&&le[c.scheme]===c.port&&(c.port=null));l="","file"===c.scheme?g=Se:c.isSpecial()&&r&&r.scheme===c.scheme?g=Ee:c.isSpecial()?g=ve:"/"===n[u+1]?(g=de,u++):(c.cannotBeABaseURL=!0,J(c.path,""),g=Ne)}break;case Qe:if(!r||r.cannotBeABaseURL&&"#"!==i)return q;if(r.cannotBeABaseURL&&"#"===i){c.scheme=r.scheme,c.path=C(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,g=Ue;break}g="file"===r.scheme?Se:ye;continue;case Ee:if("/"!==i||"/"!==n[u+1]){g=ye;continue}g=me,u++;break;case de:if("/"===i){g=we;break}g=Ge;continue;case ye:if(c.scheme=r.scheme,i===A)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=C(r.path),c.query=r.query;else if("/"===i||"\\\\"===i&&c.isSpecial())g=pe;else if("?"===i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=C(r.path),c.query="",g=Le;else{if("#"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=C(r.path),c.path.length--,g=Ge;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=C(r.path),c.query=r.query,c.fragment="",g=Ue}break;case pe:if(!c.isSpecial()||"/"!==i&&"\\\\"!==i){if("/"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,g=Ge;continue}g=we}else g=me;break;case ve:if(g=me,"/"!==i||"/"!==G(l,u+1))continue;u++;break;case me:if("/"!==i&&"\\\\"!==i){g=we;continue}break;case we:if("@"===i){I&&(l="%40"+l),I=!0,a=f(l);for(var d=0;d65535)return W;c.port=c.isSpecial()&&v===le[c.scheme]?null:v,l=""}if(t)return;g=Re;continue}return W}l+=i;break;case Se:if(c.scheme="file","/"===i||"\\\\"===i)g=Fe;else{if(!r||"file"!==r.scheme){g=Ge;continue}switch(i){case A:c.host=r.host,c.path=C(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=C(r.path),c.query="",g=Le;break;case"#":c.host=r.host,c.path=C(r.path),c.query=r.query,c.fragment="",g=Ue;break;default:Ie(L(C(n,u),""))||(c.host=r.host,c.path=C(r.path),c.shortenPath()),g=Ge;continue}}break;case Fe:if("/"===i||"\\\\"===i){g=xe;break}r&&"file"===r.scheme&&!Ie(L(C(n,u),""))&&(he(r.path[0],!0)?J(c.path,r.path[0]):c.host=r.host),g=Ge;continue;case xe:if(i===A||"/"===i||"\\\\"===i||"?"===i||"#"===i){if(!t&&he(l))g=Ge;else if(""===l){if(c.host="",t)return;g=Re}else{if(o=c.parseHost(l))return o;if("localhost"===c.host&&(c.host=""),t)return;l="",g=Re}continue}l+=i;break;case Re:if(c.isSpecial()){if(g=Ge,"/"!==i&&"\\\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==A&&(g=Ge,"/"!==i))continue}else c.fragment="",g=Ue;else c.query="",g=Le;break;case Ge:if(i===A||"/"===i||"\\\\"===i&&c.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(s=K(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"===i||"\\\\"===i&&c.isSpecial()||J(c.path,"")):fe(l)?"/"===i||"\\\\"===i&&c.isSpecial()||J(c.path,""):("file"===c.scheme&&!c.path.length&&he(l)&&(c.host&&(c.host=""),l=G(l,0)+":"),J(c.path,l)),l="","file"===c.scheme&&(i===A||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)Y(c.path);"?"===i?(c.query="",g=Le):"#"===i&&(c.fragment="",g=Ue)}else l+=ue(i,ce);break;case Ne:"?"===i?(c.query="",g=Le):"#"===i?(c.fragment="",g=Ue):i!==A&&(c.path[0]+=ue(i,oe));break;case Le:t||"#"!==i?i!==A&&("'"===i&&c.isSpecial()?c.query+="%27":c.query+="#"===i?"%23":ue(i,oe)):(c.fragment="",g=Ue);break;case Ue:i!==A&&(c.fragment+=ue(i,se))}u++}},parseHost:function(e){var t,r,A;if("["===G(e,0)){if("]"!==G(e,e.length-1))return j;if(t=function(e){var t,r,A,n,i,a,o,s=[0,0,0,0,0,0,0,0],c=0,g=null,u=0,l=function(){return G(e,u)};if(":"===l()){if(":"!==G(e,1))return;u+=2,g=++c}for(;l();){if(8===c)return;if(":"!==l()){for(t=r=0;r<4&&N(ee,l());)t=16*t+F(l(),16),u++,r++;if("."===l()){if(0===r)return;if(u-=r,c>6)return;for(A=0;l();){if(n=null,A>0){if(!("."===l()&&A<4))return;u++}if(!N(X,l()))return;for(;N(X,l());){if(i=F(l(),10),null===n)n=i;else{if(0===n)return;n=10*n+i}if(n>255)return;u++}s[c]=256*s[c]+n,2!=++A&&4!==A||c++}if(4!==A)return;break}if(":"===l()){if(u++,!l())return}else if(l())return;s[c++]=t}else{if(null!==g)return;u++,g=++c}}if(null!==g)for(a=c-g,c=7;0!==c&&a>0;)o=s[c],s[c--]=s[g+a-1],s[g+--a]=o;else if(8!==c)return;return s}(O(e,1,-1)),!t)return j;this.host=t}else if(this.isSpecial()){if(e=Q(e),N(te,e))return j;if(t=function(e){var t,r,A,n,i,a,o,s=P(e,".");if(s.length&&""===s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(r=[],A=0;A1&&"0"===G(n,0)&&(i=N(V,n)?16:8,n=O(n,8===i?1:2)),""===n)a=0;else{if(!N(10===i?$:8===i?z:ee,n))return e;a=F(n,i)}J(r,a)}for(A=0;A=R(256,5-t))return null}else if(a>255)return null;for(o=M(r),A=0;A1?arguments[1]:void 0,A=m(t,new Me(e,!1,r));i||(t.href=A.serialize(),t.origin=A.getOrigin(),t.protocol=A.getProtocol(),t.username=A.getUsername(),t.password=A.getPassword(),t.host=A.getHost(),t.hostname=A.getHostname(),t.port=A.getPort(),t.pathname=A.getPathname(),t.search=A.getSearch(),t.searchParams=A.getSearchParams(),t.hash=A.getHash())},He=Je.prototype,Ye=function(e,t){return{get:function(){return w(this)[e]()},set:t&&function(e){return w(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(u(He,"href",Ye("serialize","setHref")),u(He,"origin",Ye("getOrigin")),u(He,"protocol",Ye("getProtocol","setProtocol")),u(He,"username",Ye("getUsername","setUsername")),u(He,"password",Ye("getPassword","setPassword")),u(He,"host",Ye("getHost","setHost")),u(He,"hostname",Ye("getHostname","setHostname")),u(He,"port",Ye("getPort","setPort")),u(He,"pathname",Ye("getPathname","setPathname")),u(He,"search",Ye("getSearch","setSearch")),u(He,"searchParams",Ye("getSearchParams")),u(He,"hash",Ye("getHash","setHash"))),g(He,"toJSON",(function(){return w(this).serialize()}),{enumerable:!0}),g(He,"toString",(function(){return w(this).serialize()}),{enumerable:!0}),D){var Pe=D.createObjectURL,Oe=D.revokeObjectURL;Pe&&g(Je,"createObjectURL",s(Pe,D)),Oe&&g(Je,"revokeObjectURL",s(Oe,D))}d(Je,"URL"),n({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Je})},5728:(e,t,r)=>{r(161)},4136:(e,t,r)=>{var A=r(5366),n=r(3453);A({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return n(URL.prototype.toString,this)}})}},t={};function r(A){var n=t[A];if(void 0!==n)return n.exports;var i=t[A]={exports:{}};return e[A].call(i.exports,i,i.exports,r),i.exports}r.d=(e,t)=>{for(var A in t)r.o(t,A)&&!r.o(e,A)&&Object.defineProperty(e,A,{enumerable:!0,get:t[A]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var A,n=globalThis.pdfjsWorker={};function i(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function a(e,t){for(var r=0;riL}),r(7651),r(4551),r(4172),r(5268),r(5997),r(184),r(3234),r(6497),r(6746),r(9024),r(5550),r(9138),r(6794),r(750),r(9722),r(5015),r(6209),r(9261),r(3700),r(3632),r(7316),r(7531),r(1999),r(3379),r(1234),r(2431),r(9732),r(2823),r(5594),r(8397),r(9255),r(5130),r(5636),r(8509),r(7332),r(6555),r(3296),r(4594),r(7329),r(3740),r(6542),r(5738),r(2900),r(2051),r(3198),r(4211),r(9791),r(5294),r(1526),r(6032),r(3659),r(8551),r(8553),r(7612),r(8579),r(7719),r(7576),r(2891),r(2605),r(4863),r(9637),r(2709),r(8941),r(1579),r(6236),r(7716),r(1913),r(4192),r(1565),r(5342),r(9582),r(8316),r(3577),r(8043),r(932),r(8169),r(1425),r(489),r(2467),r(1281),r(9484),r(4672),r(4413),r(9264),r(2044),r(5728),r(4136),r(4520),r(1531),r(3678),r(4145);var f=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type),C=[1,0,0,1,0,0],B=[.001,0,0,.001,0,0],Q=1.35,E=.25925925925925924,d="pdfjs_internal_editor_",y={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},p="Group",v=32,m=8192,w=65536,b={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},k={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},D={O:"PageOpen",C:"PageClose"},S={ERRORS:0,WARNINGS:1,INFOS:5},F={NONE:0,BINARY:1},x=10,R=11,G=12,N=37,L=44,U=58,M=59,J=70,H=71,Y=83,P=85,O=S.WARNINGS;function K(){return O}function T(e){O>=S.INFOS&&console.log("Info: ".concat(e))}function q(e){O>=S.WARNINGS&&console.log("Warning: ".concat(e))}function j(e){throw new Error(e)}function W(e,t){e||j(t)}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(r&&"string"==typeof e){if(r.addDefaultProtocol&&e.startsWith("www.")){var A=e.match(/\\./g);(null==A?void 0:A.length)>=2&&(e="http://".concat(e))}if(r.tryConvertEncoding)try{e=fe(e)}catch(e){}}var n=t?new URL(e,t):new URL(e);if(function(e){switch(null==e?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(e){}return null}function _(e,t,r){var A=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:r,enumerable:!A,configurable:!0,writable:!1}),r}var X=function(){function e(e,t){this.message=e,this.name=t}return e.prototype=new Error,e.constructor=e,e}(),V=function(e){function t(e,r){var A;return c(this,t),(A=g(this,t,[e,"PasswordException"])).code=r,A}return h(t,X),o(t)}(),z=function(e){function t(e,r){var A;return c(this,t),(A=g(this,t,[e,"UnknownErrorException"])).details=r,A}return h(t,X),o(t)}(),$=function(e){function t(e){return c(this,t),g(this,t,[e,"InvalidPDFException"])}return h(t,X),o(t)}(),ee=function(e){function t(e){return c(this,t),g(this,t,[e,"MissingPDFException"])}return h(t,X),o(t)}(),te=function(e){function t(e,r){var A;return c(this,t),(A=g(this,t,[e,"UnexpectedResponseException"])).status=r,A}return h(t,X),o(t)}(),re=function(e){function t(e){return c(this,t),g(this,t,[e,"FormatError"])}return h(t,X),o(t)}(),Ae=function(e){function t(e){return c(this,t),g(this,t,[e,"AbortException"])}return h(t,X),o(t)}();function ne(e){"object"==typeof e&&void 0!==(null==e?void 0:e.length)||j("Invalid argument for bytesToString");var t=e.length,r=8192;if(t>24&255,e>>16&255,e>>8&255,255&e)}function oe(e){return Object.keys(e).length}var se=function(){return o((function e(){c(this,e)}),null,[{key:"isLittleEndian",get:function(){return _(this,"isLittleEndian",((e=new Uint8Array(4))[0]=1,1===new Uint32Array(e.buffer,0,1)[0]));var e}},{key:"isEvalSupported",get:function(){return _(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(e){return!1}}())}},{key:"isOffscreenCanvasSupported",get:function(){return _(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}},{key:"platform",get:function(){var e,t;return"undefined"!=typeof navigator&&"string"==typeof(null===(e=navigator)||void 0===e?void 0:e.platform)?_(this,"platform",{isMac:navigator.platform.includes("Mac"),isWindows:navigator.platform.includes("Win"),isFirefox:"string"==typeof(null===(t=navigator)||void 0===t?void 0:t.userAgent)&&navigator.userAgent.includes("Firefox")}):_(this,"platform",{isMac:!1,isWindows:!1,isFirefox:!1})}},{key:"isCSSRoundSupported",get:function(){var e,t;return _(this,"isCSSRoundSupported",null===(e=globalThis.CSS)||void 0===e||null===(t=e.supports)||void 0===t?void 0:t.call(e,"width: round(1.5px, 1px)"))}}])}(),ce=Array.from(Array(256).keys(),(function(e){return e.toString(16).padStart(2,"0")})),ge=function(){function e(){c(this,e)}return o(e,null,[{key:"makeHexColor",value:function(e,t,r){return"#".concat(ce[e]).concat(ce[t]).concat(ce[r])}},{key:"scaleMinMax",value:function(e,t){var r;e[0]?(e[0]<0&&(r=t[0],t[0]=t[2],t[2]=r),t[0]*=e[0],t[2]*=e[0],e[3]<0&&(r=t[1],t[1]=t[3],t[3]=r),t[1]*=e[3],t[3]*=e[3]):(r=t[0],t[0]=t[1],t[1]=r,r=t[2],t[2]=t[3],t[3]=r,e[1]<0&&(r=t[1],t[1]=t[3],t[3]=r),t[1]*=e[1],t[3]*=e[1],e[2]<0&&(r=t[0],t[0]=t[2],t[2]=r),t[0]*=e[2],t[2]*=e[2]),t[0]+=e[4],t[1]+=e[5],t[2]+=e[4],t[3]+=e[5]}},{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 r=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])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}},{key:"getAxialAlignedBoundingBox",value:function(e,t){var r=this.applyTransform(e,t),A=this.applyTransform(e.slice(2,4),t),n=this.applyTransform([e[0],e[3]],t),i=this.applyTransform([e[2],e[1]],t);return[Math.min(r[0],A[0],n[0],i[0]),Math.min(r[1],A[1],n[1],i[1]),Math.max(r[0],A[0],n[0],i[0]),Math.max(r[1],A[1],n[1],i[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:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],A=e[0]*t[1]+e[1]*t[3],n=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],a=(r+i)/2,o=Math.sqrt(Math.pow(r+i,2)-4*(r*i-n*A))/2,s=a+o||1,c=a-o||1;return[Math.sqrt(s),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(e,t){var r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),A=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(r>A)return null;var n=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return n>i?null:[r,n,A,i]}},{key:"bezierBoundingBox",value:function(t,r,A,n,a,o,s,c,g){return g?(g[0]=Math.min(g[0],t,s),g[1]=Math.min(g[1],r,c),g[2]=Math.max(g[2],t,s),g[3]=Math.max(g[3],r,c)):g=[Math.min(t,s),Math.min(r,c),Math.max(t,s),Math.max(r,c)],i(e,this,le).call(this,t,A,a,s,r,n,o,c,3*(3*(A-a)-t+s),6*(t-2*A+a),3*(A-t),g),i(e,this,le).call(this,t,A,a,s,r,n,o,c,3*(3*(n-o)-r+c),6*(r-2*n+o),3*(n-r),g),g}}])}();function ue(e,t,r,A,n,i,a,o,s,c){if(!(s<=0||s>=1)){var g=1-s,u=s*s,l=u*s,h=g*(g*(g*e+3*s*t)+3*u*r)+l*A,I=g*(g*(g*n+3*s*i)+3*u*a)+l*o;c[0]=Math.min(c[0],h),c[1]=Math.min(c[1],I),c[2]=Math.max(c[2],h),c[3]=Math.max(c[3],I)}}function le(e,t,r,n,a,o,s,c,g,u,l,h){if(Math.abs(g)<1e-12)Math.abs(u)>=1e-12&&i(A,this,ue).call(this,e,t,r,n,a,o,s,c,-l/u,h);else{var I=Math.pow(u,2)-4*l*g;if(!(I<0)){var f=Math.sqrt(I),C=2*g;i(A,this,ue).call(this,e,t,r,n,a,o,s,c,(-u+f)/C,h),i(A,this,ue).call(this,e,t,r,n,a,o,s,c,(-u-f)/C,h)}}}A=ge;var he=[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];function Ie(e){var t;if(e[0]>="ï"&&("þ"===e[0]&&"ÿ"===e[1]?(t="utf-16be",e.length%2==1&&(e=e.slice(0,-1))):"ÿ"===e[0]&&"þ"===e[1]?(t="utf-16le",e.length%2==1&&(e=e.slice(0,-1))):"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t))try{var r=new TextDecoder(t,{fatal:!0}),A=ie(e),n=r.decode(A);return n.includes("\x1B")?n.replaceAll(/\\x1b[^\\x1b]*(?:\\x1b|$)/g,""):n}catch(e){q('stringToPDFString: "'.concat(e,'".'))}for(var i=[],a=0,o=e.length;a0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")}var Ee=null,de=null;function ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||ve(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 pe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ve(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function ve(e,t){if(e){if("string"==typeof e)return me(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function be(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null;ke(this,e),this._map=Object.create(null),this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=Je}return Se(e,[{key:"assignXref",value:function(e){this.xref=e}},{key:"size",get:function(){return Object.keys(this._map).length}},{key:"get",value:function(e,t,r){var A=this._map[e];return void 0===A&&void 0!==t&&void 0===(A=this._map[t])&&void 0!==r&&(A=this._map[r]),A instanceof Ye&&this.xref?this.xref.fetch(A,this.suppressEncryption):A}},{key:"getAsync",value:(t=we().mark((function e(t,r,A){var n;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(n=this._map[t])&&void 0!==r&&void 0===(n=this._map[r])&&void 0!==A&&(n=this._map[A]),!(n instanceof Ye&&this.xref)){e.next=4;break}return e.abrupt("return",this.xref.fetchAsync(n,this.suppressEncryption));case 4:return e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})),r=function(){var e=this,r=arguments;return new Promise((function(A,n){var i=t.apply(e,r);function a(e){be(i,A,n,a,o,"next",e)}function o(e){be(i,A,n,a,o,"throw",e)}a(void 0)}))},function(e,t,A){return r.apply(this,arguments)})},{key:"getArray",value:function(e,t,r){var A=this._map[e];if(void 0===A&&void 0!==t&&void 0===(A=this._map[t])&&void 0!==r&&(A=this._map[r]),A instanceof Ye&&this.xref&&(A=this.xref.fetch(A,this.suppressEncryption)),Array.isArray(A))for(var n=0,i=(A=A.slice()).length;n0&&(o._map[d]=v)}else o._map[d]=y[0]}}catch(e){Q.e(e)}finally{Q.f()}return s.clear(),o.size>0?o:e.empty}}]);var t,r}(),Ye=function(){function e(t,r){ke(this,e),this.num=t,this.gen=r}return Se(e,[{key:"toString",value:function(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}}],[{key:"fromString",value:function(t){var r=Le[t];if(r)return r;var A=/^(\\d+)R(\\d*)$/.exec(t);return A&&"0"!==A[1]?Le[t]=new e(parseInt(A[1]),A[2]?parseInt(A[2]):0):null}},{key:"get",value:function(t,r){var A,n=0===r?"".concat(t,"R"):"".concat(t,"R").concat(r);return(A=Le)[n]||(A[n]=new e(t,r))}}])}(),Pe=function(){return Se((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;ke(this,e),this._set=new Set(null==t?void 0:t._set)}),[{key:"has",value:function(e){return this._set.has(e.toString())}},{key:"put",value:function(e){this._set.add(e.toString())}},{key:"remove",value:function(e){this._set.delete(e.toString())}},{key:Symbol.iterator,value:function(){return this._set.values()}},{key:"clear",value:function(){this._set.clear()}}])}(),Oe=function(){return Se((function e(){ke(this,e),this._map=new Map}),[{key:"size",get:function(){return this._map.size}},{key:"get",value:function(e){return this._map.get(e.toString())}},{key:"has",value:function(e){return this._map.has(e.toString())}},{key:"put",value:function(e,t){this._map.set(e.toString(),t)}},{key:"putAlias",value:function(e,t){this._map.set(e.toString(),this.get(t))}},{key:Symbol.iterator,value:function(){return this._map.values()}},{key:"clear",value:function(){this._map.clear()}},{key:"items",value:we().mark((function e(){var t,r,A,n,i;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=pe(this._map),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=9;break}return A=ye(r.value,2),n=A[0],i=A[1],e.next=7,[Ye.fromString(n),i];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))}])}();function Ke(e,t){return e instanceof Ue&&(void 0===t||e.name===t)}function Te(e,t){return e instanceof Me&&(void 0===t||e.cmd===t)}function qe(e,t){return e instanceof He&&(void 0===t||Ke(e.get("Type"),t))}function je(e,t){return e.num===t.num&&e.gen===t.gen}function We(){We=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function Ze(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function _e(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){Ze(i,A,n,a,o,"next",e)}function o(e){Ze(i,A,n,a,o,"throw",e)}a(void 0)}))}}function Xe(e,t){for(var r=0;r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}var tt=et().mark(Ht);function rt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=At(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function At(e,t){if(e){if("string"==typeof e)return nt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nt(e,t):void 0}}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r1&&void 0!==arguments[1]&&arguments[1];W(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var r,A=[];e>=1e3;)e-=1e3,A.push("M");r=e/100|0,e%=100,A.push(pt[r]),r=e/10|0,e%=10,A.push(pt[10+r]),A.push(pt[20+e]);var n=A.join("");return t?n.toLowerCase():n}function mt(e){return e<=0?0:Math.ceil(Math.log2(e))}function wt(e,t){return e[t]<<24>>24}function bt(e,t){return e[t]<<8|e[t+1]}function kt(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function Dt(e){return 32===e||9===e||13===e||10===e}function St(e,t){return Array.isArray(e)?(null===t||e.length===t)&&e.every((function(e){return"number"==typeof e})):ArrayBuffer.isView(e)&&(0===e.length||"number"==typeof e[0])&&(null===t||e.length===t)}function Ft(e,t){return St(e,6)?e:t}function xt(e,t){return St(e,4)?e:t}function Rt(e,t){return St(e,4)?ge.normalizeRect(e):t}function Gt(e){var t=/(.+)\\[(\\d+)\\]$/;return e.split(".").map((function(e){var r=e.match(t);return r?{name:r[1],pos:parseInt(r[2],10)}:{name:e,pos:0}}))}function Nt(e){for(var t=[],r=0,A=0,n=e.length;A126||35===i||40===i||41===i||60===i||62===i||91===i||93===i||123===i||125===i||47===i||37===i)&&(r=0;i--){var a=n[i];if(a instanceof He){var o,s=rt(a.getKeys());try{for(s.s();!(o=s.n()).done;){var c=o.value,g=r[c];if(g){var u=a.getRaw(c),l=new Pe,h=[];Ut(u,e,h,l),h.length>0&&(A[g]=h)}}}catch(e){s.e(e)}finally{s.f()}}}if(t.has("A")){var I=[];Ut(t.get("A"),e,I,new Pe),I.length>0&&(A.Action=I)}return oe(A)>0?A:null}var Jt={60:"<",62:">",38:"&",34:""",39:"'"};function Ht(e){var t,r,A;return et().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=0,r=e.length;case 1:if(!(t55295&&(A<57344||A>65533)&&t++,n.next=6,A;case 6:t++,n.next=1;break;case 9:case"end":return n.stop()}}),tt)}function Yt(e){for(var t=[],r=0,A=0,n=e.length;A55295&&(i<57344||i>65533)&&A++,r=A+1}return 0===t.length?e:(r1&&void 0!==arguments[1]&&arguments[1],r=/^("|').*("|')$/.exec(e);if(r&&r[1]===r[2]){if(new RegExp("[^\\\\\\\\]".concat(r[1])).test(e.slice(1,-1)))return t&&q("FontFamily contains unescaped ".concat(r[1],": ").concat(e,".")),!1}else{var A,n=rt(e.split(/[ \\t]+/));try{for(n.s();!(A=n.n()).done;){var i=A.value;if(/^(\\d|(-(\\d|-)))/.test(i)||!/^[\\w-\\\\]+$/.test(i))return t&&q("FontFamily contains invalid : ".concat(e,".")),!1}}catch(e){n.e(e)}finally{n.f()}}return!0}function Ot(e){var t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),r=e.fontFamily,A=e.fontWeight,n=e.italicAngle;if(!Pt(r,!0))return!1;var i=A?A.toString():"";e.fontWeight=t.has(i)?i:"400";var a=parseFloat(n);return e.italicAngle=isNaN(a)||a<-90||a>90?"14":n.toString(),!0}function Kt(e){var t=new RegExp("^\\\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\\\.")+")\\\\((?:'|\\")([^'\\"]*)(?:'|\\")(?:,\\\\s*(\\\\w+)\\\\)|\\\\))","i").exec(e);if(null!=t&&t[2]){var r=t[2],A=!1;return"true"===t[3]&&"app.launchURL"===t[1]&&(A=!0),{url:r,newWindow:A}}return null}function Tt(e){if(Number.isInteger(e))return e.toString();var t=Math.round(100*e);return t%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)}function qt(e){if(!e)return null;var t,r=new Map,A=rt(e);try{for(A.s();!(t=A.n()).done;){var n=$e(t.value,2),i=n[0],a=n[1];if(i.startsWith(d)){var o=r.get(a.pageIndex);o||(o=[],r.set(a.pageIndex,o)),o.push(a)}}}catch(e){A.e(e)}finally{A.f()}return r.size>0?r:null}function jt(e){return function(e){return/^[\\x00-\\x7F]*$/.test(e)}(e)?e:Zt(e,!0)}function Wt(e){for(var t=[],r=0,A=e.length;r>8&255).toString(16).padStart(2,"0"),(255&n).toString(16).padStart(2,"0"))}return t.join("")}function Zt(e){var t=[];arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&t.push("þÿ");for(var r=0,A=e.length;r>8&255),String.fromCharCode(255&n))}return t.join("")}function _t(e,t,r){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,r];case 270:return[0,-1,1,0,0,r];default:throw new Error("Invalid rotation")}}function Xt(e){return Math.ceil(Math.ceil(Math.log2(1+e))/8)}function Vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zt(e,t){for(var r=0;r=this.end?-1:this.bytes[this.pos++]}},{key:"getBytes",value:function(e){var t=this.bytes,r=this.pos,A=this.end;if(!e)return t.subarray(r,A);var n=r+e;return n>A&&(n=A),this.pos=n,t.subarray(r,n)}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}},{key:"reset",value:function(){this.pos=this.start}},{key:"moveStart",value:function(){this.start=this.pos}},{key:"makeSubStream",value:function(e,r){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new t(this.bytes.buffer,e,r,A)}}])}(),or=function(e){function t(e){return Vt(this,t),tr(this,t,[ie(e)])}return nr(t,ar),$t(t)}(),sr=function(e){function t(){return Vt(this,t),tr(this,t,[new Uint8Array(0)])}return nr(t,ar),$t(t)}();function cr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return gr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r=this.end?this.numChunks:Math.floor(t/this.chunkSize),n=r;nthis.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new Ct(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}}},{key:"ensureRange",value:function(e,t){if(!(e>=t||t<=this.progressiveDataLength)){var r=Math.floor(e/this.chunkSize);if(!(r>this.numChunks))for(var A=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks),n=r;n=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}},{key:"getBytes",value:function(e){var t=this.bytes,r=this.pos,A=this.end;if(!e)return A>this.progressiveDataLength&&this.ensureRange(r,A),t.subarray(r,A);var n=r+e;return n>A&&(n=A),n>this.progressiveDataLength&&this.ensureRange(r,n),this.pos=n,t.subarray(r,n)}},{key:"getByteRange",value:function(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)}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;function A(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),A.prototype=Object.create(this),A.prototype.getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,A=[],n=t;n0&&void 0!==arguments[0]&&arguments[0])){var e=this.stream.getMissingChunks();this._requestChunks(e)}return this._loadedStreamCapability.promise}},{key:"_requestChunks",value:function(e){var t=this,r=this.currRequestId++,A=new Set;this._chunksNeededByRequest.set(r,A);var n,i=cr(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;this.stream.hasChunk(a)||A.add(a)}}catch(e){i.e(e)}finally{i.f()}if(0===A.size)return Promise.resolve();var o=Promise.withResolvers();this._promisesByRequest.set(r,o);var s,c=[],g=cr(A);try{for(g.s();!(s=g.n()).done;){var u=s.value,l=this._requestsByChunk.get(u);l||(l=[],this._requestsByChunk.set(u,l),c.push(u)),l.push(r)}}catch(e){g.e(e)}finally{g.f()}if(c.length>0){var h,I=cr(this.groupChunks(c));try{for(I.s();!(h=I.n()).done;){var f=h.value,C=f.beginChunk*this.chunkSize,B=Math.min(f.endChunk*this.chunkSize,this.length);this.sendRequest(C,B).catch(o.reject)}}catch(e){I.e(e)}finally{I.f()}}return o.promise.catch((function(e){if(!t.aborted)throw e}))}},{key:"getStream",value:function(){return this.stream}},{key:"requestRange",value:function(e,t){t=Math.min(t,this.length);for(var r=this.getBeginChunk(e),A=this.getEndChunk(t),n=[],i=r;i0&&void 0!==arguments[0]?arguments[0]:[]);try{for(r.s();!(e=r.n()).done;)for(var A=e.value,n=this.getBeginChunk(A.begin),i=this.getEndChunk(A.end),a=n;a=0&&A+1!==a&&(t.push({beginChunk:r,endChunk:A+1}),r=a),n+1===e.length&&t.push({beginChunk:r,endChunk:a+1}),A=a}return t}},{key:"onProgress",value:function(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}},{key:"onReceiveData",value:function(e){var t=e.chunk,r=void 0===e.begin,A=r?this.progressiveDataLength:e.begin,n=A+t.byteLength,i=Math.floor(A/this.chunkSize),a=n0||o.push(l)}}catch(e){u.e(e)}finally{u.f()}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var I;if(1===this.stream.numChunksLoaded){var f=this.stream.numChunks-1;this.stream.hasChunk(f)||(I=f)}else I=this.stream.nextEmptyChunk(a);Number.isInteger(I)&&this._requestChunks([I])}for(var C=0,B=o;Ce.length)&&(t=e.length);for(var r=0,A=Array(t);r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function xr(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function Rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gr(e,t){for(var r=0;ru&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var h=a<=8?new Uint8Array(u):new Uint16Array(u),I=0;I2&&void 0!==arguments[2]?arguments[2]:null,A=arguments.length>3?arguments[3]:void 0;if((e=t.fetchIfRef(e))instanceof Ue)switch(e.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"DeviceRGBA":return this.singletons.rgba;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new Jr(null);default:if(r instanceof He){var n=r.get("ColorSpace");if(n instanceof He){var i=n.get(e.name);if(i){if(i instanceof Ue)return this._parse(i,t,r,A);e=i;break}}}return q("Unrecognized ColorSpace: ".concat(e.name)),this.singletons.gray}if(Array.isArray(e)){var a,o,s,c,g,u,l=t.fetchIfRef(e[0]).name;switch(l){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":return c=(a=t.fetchIfRef(e[1])).getArray("WhitePoint"),g=a.getArray("BlackPoint"),u=a.get("Gamma"),new Wr(c,g,u);case"CalRGB":c=(a=t.fetchIfRef(e[1])).getArray("WhitePoint"),g=a.getArray("BlackPoint"),u=a.getArray("Gamma");var h=a.getArray("Matrix");return new Xr(c,g,u,h);case"ICCBased":var I=t.fetchIfRef(e[1]).dict;o=I.get("N");var f=I.get("Alternate");if(f){var C=this._parse(f,t,r,A);if(C.numComps===o)return C;q("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===o)return this.singletons.gray;if(3===o)return this.singletons.rgb;if(4===o)return this.singletons.cmyk;break;case"Pattern":return(s=e[1]||null)&&(s=this._parse(s,t,r,A)),new Jr(s);case"I":case"Indexed":s=this._parse(e[1],t,r,A);var B=t.fetchIfRef(e[2])+1,Q=t.fetchIfRef(e[3]);return new Hr(s,B,Q);case"Separation":case"DeviceN":var E=t.fetchIfRef(e[1]);o=Array.isArray(E)?E.length:1,s=this._parse(e[2],t,r,A);var d=A.create(e[3]);return new Mr(o,s,d);case"Lab":c=(a=t.fetchIfRef(e[1])).getArray("WhitePoint"),g=a.getArray("BlackPoint");var y=a.getArray("Range");return new CA(c,g,y);default:return q("Unimplemented ColorSpace object: ".concat(l)),this.singletons.gray}}return q("Unrecognized ColorSpace object: ".concat(e)),this.singletons.gray}},{key:"isDefaultDecode",value:function(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return q("The decode map is not the correct length"),!0;for(var r=0,A=e.length;r=.99554525?1:mr(_r,this,tA).call(this,0,1,1.055*Math.pow(e,1/2.4)-.055)}function tA(e,t,r){return Math.max(e,Math.min(t,r))}function rA(e){return e<0?-mr(_r,this,rA).call(this,-e):e>8?Math.pow((e+16)/116,3):e*IA._}function AA(e,t,r){if(0===e[0]&&0===e[1]&&0===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2]);var A=mr(_r,this,rA).call(this,0),n=(1-A)/(1-mr(_r,this,rA).call(this,e[0])),i=1-n,a=(1-A)/(1-mr(_r,this,rA).call(this,e[1])),o=1-a,s=(1-A)/(1-mr(_r,this,rA).call(this,e[2])),c=1-s;r[0]=t[0]*n+i,r[1]=t[1]*a+o,r[2]=t[2]*s+c}function nA(e,t,r){if(1===e[0]&&1===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2]);var A=r;mr(_r,this,Vr).call(this,oA._,t,A);var n=uA._;mr(_r,this,zr).call(this,e,A,n),mr(_r,this,Vr).call(this,sA._,n,r)}function iA(e,t,r){var A=r;mr(_r,this,Vr).call(this,oA._,t,A);var n=uA._;mr(_r,this,$r).call(this,e,A,n),mr(_r,this,Vr).call(this,sA._,n,r)}function aA(e,t,r,A,n){var i=mr(_r,this,tA).call(this,0,1,e[t]*n),a=mr(_r,this,tA).call(this,0,1,e[t+1]*n),o=mr(_r,this,tA).call(this,0,1,e[t+2]*n),s=1===i?1:Math.pow(i,this.GR),c=1===a?1:Math.pow(a,this.GG),g=1===o?1:Math.pow(o,this.GB),u=this.MXA*s+this.MXB*c+this.MXC*g,l=this.MYA*s+this.MYB*c+this.MYC*g,h=this.MZA*s+this.MZB*c+this.MZC*g,I=lA._;I[0]=u,I[1]=l,I[2]=h;var f=hA._;mr(_r,this,nA).call(this,this.whitePoint,I,f);var C=lA._;mr(_r,this,AA).call(this,this.blackPoint,f,C);var B=hA._;mr(_r,this,iA).call(this,gA._,C,B);var Q=lA._;mr(_r,this,Vr).call(this,cA._,B,Q),r[A]=255*mr(_r,this,eA).call(this,Q[0]),r[A+1]=255*mr(_r,this,eA).call(this,Q[1]),r[A+2]=255*mr(_r,this,eA).call(this,Q[2])}var oA={_:new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296])},sA={_:new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867])},cA={_:new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252])},gA={_:new Float32Array([1,1,1])},uA={_:new Float32Array(3)},lA={_:new Float32Array(3)},hA={_:new Float32Array(3)},IA={_:Math.pow(24/116,3)/8},fA=new WeakSet,CA=function(e){function t(e,r,A){var n;if(Rr(this,t),vr(n=wr(this,t,["Lab",3]),fA),!e)throw new re("WhitePoint missing - required for color space Lab");var i=yr(e,3);n.XW=i[0],n.YW=i[1],n.ZW=i[2];var a=yr(A||[-100,100,-100,100],4);n.amin=a[0],n.amax=a[1],n.bmin=a[2],n.bmax=a[3];var o=yr(r||[0,0,0],3);if(n.XB=o[0],n.YB=o[1],n.ZB=o[2],n.XW<0||n.ZW<0||1!==n.YW)throw new re("Invalid WhitePoint components, no fallback available");return(n.XB<0||n.YB<0||n.ZB<0)&&(T("Invalid BlackPoint, falling back to default"),n.XB=n.YB=n.ZB=0),(n.amin>n.amax||n.bmin>n.bmax)&&(T("Invalid Range, falling back to defaults"),n.amin=-100,n.amax=100,n.bmin=-100,n.bmax=100),n}return Dr(t,Ur),Nr(t,[{key:"getRgbItem",value:function(e,t,r,A){mr(fA,this,EA).call(this,e,t,!1,r,A)}},{key:"getRgbBuffer",value:function(e,t,r,A,n,i,a){for(var o=(1<=6/29?Math.pow(e,3):108/841*(e-4/29)}function QA(e,t,r,A){return r+e*(A-r)/t}function EA(e,t,r,A,n){var i=e[t],a=e[t+1],o=e[t+2];!1!==r&&(i=mr(fA,this,QA).call(this,i,r,0,100),a=mr(fA,this,QA).call(this,a,r,this.amin,this.amax),o=mr(fA,this,QA).call(this,o,r,this.bmin,this.bmax)),a>this.amax?a=this.amax:athis.bmax?o=this.bmax:o=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function yA(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function pA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vA(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,A=Array(t);r>>0}function DA(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(String,function(e){return function(e){if(Array.isArray(e))return bA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return bA(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bA(e,t):void 0}}(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.")}()}(e.subarray(0,t+1)))}function SA(e,t,r){for(var A=0,n=r;n>=0;n--)A+=e[n]+t[n],e[n]=255&A,A>>=8}function FA(e,t){for(var r=1,A=t;A>=0&&r>0;A--)r+=e[A],e[A]=255&r,r>>=8}r(3276);var xA=16,RA=function(){return mA((function e(t){pA(this,e),this.buffer=t,this.pos=0,this.end=t.length,this.tmpBuf=new Uint8Array(19)}),[{key:"readByte",value:function(){return this.pos>=this.end?-1:this.buffer[this.pos++]}},{key:"readNumber",value:function(){var e,t=0;do{var r=this.readByte();if(r<0)throw new re("unexpected EOF in bcmap");e=!(128&r),t=t<<7|127&r}while(!e);return t}},{key:"readSigned",value:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1}},{key:"readHex",value:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}},{key:"readHexNumber",value:function(e,t){var r,A=this.tmpBuf,n=0;do{var i=this.readByte();if(i<0)throw new re("unexpected EOF in bcmap");r=!(128&i),A[n++]=127&i}while(!r);for(var a=t,o=0,s=0;a>=0;){for(;s<8&&A.length>0;)o|=A[--n]<>=8,s-=8}}},{key:"readHexSigned",value:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,A=0,n=0;n<=t;n++)A=(1&A)<<8|e[n],e[n]=A>>1^r}},{key:"readString",value:function(){for(var e=this.readNumber(),t=new Array(e),r=0;r=0)){e.next=68;break}if(7!=(I=h>>5)){e.next=20;break}e.t0=31&h,e.next=0===e.t0?15:1===e.t0?17:19;break;case 15:return n.readString(),e.abrupt("break",19);case 17:return a=n.readString(),e.abrupt("break",19);case 19:return e.abrupt("continue",9);case 20:if(f=!!(16&h),!(1+(C=15&h)>xA)){e.next=24;break}throw new Error("BinaryCMapReader.process: Invalid dataSize.");case 24:B=1,Q=n.readNumber(),e.t1=I,e.next=0===e.t1?29:1===e.t1?35:2===e.t1?41:3===e.t1?46:4===e.t1?53:5===e.t1?58:65;break;case 29:for(n.readHex(o,C),n.readHexNumber(s,C),SA(s,o,C),r.addCodespaceRange(C+1,kA(o,C),kA(s,C)),E=1;E=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function UA(e,t){if(e){if("string"==typeof e)return MA(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?MA(e,t):void 0}}function MA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function HA(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function YA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PA(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:null,A=this.pos;if(e){for(this.ensureBuffer(A+e),t=A+e;!this.eof&&this.bufferLengthn&&(t=n)}else{for(;!this.eof;)this.readBlock(r);t=this.bufferLength}return this.pos=t,this.buffer.subarray(A,t)}},{key:"getImageData",value:(r=JA().mark((function e(t){var r,A,n=arguments;return JA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.length>1&&void 0!==n[1]?n[1]:null,this.canAsyncDecodeImageFromBuffer){e.next=3;break}return e.abrupt("return",this.getBytes(t,r));case 3:return e.next=5,this.stream.asyncGetBytes();case 5:return A=e.sent,e.abrupt("return",this.decodeImage(A,r));case 7:case"end":return e.stop()}}),e,this)})),A=function(){var e=this,t=arguments;return new Promise((function(A,n){var i=r.apply(e,t);function a(e){HA(i,A,n,a,o,"next",e)}function o(e){HA(i,A,n,a,o,"throw",e)}a(void 0)}))},function(e){return A.apply(this,arguments)})},{key:"reset",value:function(){this.pos=0}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0===t)for(;!this.eof;)this.readBlock();else for(var A=e+t;this.bufferLength<=A&&!this.eof;)this.readBlock();return new ar(this.buffer,e,t,r)}},{key:"getBaseStreams",value:function(){return this.str?this.str.getBaseStreams():null}}]);var r,A}(),VA=function(e){function t(e){var r,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;YA(this,t);var n,i=0,a=LA(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;i+=o instanceof XA?o._rawMinBufferLength:o.length}}catch(e){a.e(e)}finally{a.f()}return(r=TA(this,t,[i])).streams=e,r._onError=A,r}return WA(t,XA),OA(t,[{key:"readBlock",value:function(){var e=this.streams;if(0!==e.length){var t,r=e.shift();try{t=r.getBytes()}catch(e){var A;if(this._onError)return void this._onError(e,null===(A=r.dict)||void 0===A?void 0:A.objId);throw e}var n=this.bufferLength,i=n+t.length;this.ensureBuffer(i).set(t,n),this.bufferLength=i}else this.eof=!0}},{key:"getBaseStreams",value:function(){var e,t=[],r=LA(this.streams);try{for(r.s();!(e=r.n()).done;){var A=e.value.getBaseStreams();A&&t.push.apply(t,NA(A))}}catch(e){r.e(e)}finally{r.f()}return t.length>0?t:null}}])}();function zA(e,t){for(var r=0;r=0;--A)r[n+A]=255&a,a>>=8}}else this.eof=!0}}],A&&zA(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A}();function an(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r>1,A=this.ensureBuffer(this.bufferLength+r),n=this.bufferLength,i=this.firstDigit,a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return an(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?an(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(e);try{for(a.s();!(t=a.n()).done;){var o=t.value,s=void 0;if(o>=48&&o<=57)s=15&o;else{if(!(o>=65&&o<=70||o>=97&&o<=102)){if(62===o){this.eof=!0;break}continue}s=9+(15&o)}i<0?i=s:(A[n++]=i<<4|s,i=-1)}}catch(e){a.e(e)}finally{a.f()}i>=0&&this.eof&&(A[n++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=n}else this.eof=!0}}])&&on(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A}();function In(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t||"function"!=typeof t.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');for(this.source=t,this.eof=!1,this.encoding=n.K||0,this.eoline=n.EndOfLine||!1,this.byteAlign=n.EncodedByteAlign||!1,this.columns=n.Columns||1728,this.rows=n.Rows||0,this.eoblock=null===(r=n.EndOfBlock)||void 0===r||r,this.black=n.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===(A=this._lookBits(12));)this._eatBits(1);1===A&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))},(t=[{key:"readNextChar",value:function(){if(this.eof)return-1;var e,t,r,A,n,i=this.refLine,a=this.codingLine,o=this.columns;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;var s,c,g;if(this.err=!1,this.nextLine2D){for(A=0;a[A]=64);do{c+=g=this._getWhiteCode()}while(g>=64)}else{do{s+=g=this._getWhiteCode()}while(g>=64);do{c+=g=this._getBlackCode()}while(g>=64)}for(this._addPixels(a[this.codingPos]+s,t),a[this.codingPos]0?--e:++e;i[e]<=a[this.codingPos]&&i[e]0?--e:++e;i[e]<=a[this.codingPos]&&i[e]0?--e:++e;i[e]<=a[this.codingPos]&&i[e]=64);else do{s+=g=this._getWhiteCode()}while(g>=64);this._addPixels(a[this.codingPos]+s,t),t^=1}var u=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(s=this._lookBits(12),this.eoline)for(;s!==Cn&&1!==s;)this._eatBits(1),s=this._lookBits(12);else for(;0===s;)this._eatBits(1),s=this._lookBits(12);1===s?(this._eatBits(12),u=!0):s===Cn&&(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===(s=this._lookBits(12))){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(A=0;A<4;++A)1!==(s=this._lookBits(12))&&T("bad rtc code: "+s),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((s=this._lookBits(13))===Cn)return this.eof=!0,-1;if(s>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&s))}this.outputBits=a[0]>0?a[this.codingPos=0]:a[this.codingPos=1],this.row++}if(this.outputBits>=8)n=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&a[this.codingPos]r?(n<<=r,1&this.codingPos||(n|=255>>8-r),this.outputBits-=r,r=0):(n<<=this.outputBits,1&this.codingPos||(n|=255>>8-this.outputBits),r-=this.outputBits,this.outputBits=0,a[this.codingPos]0&&(n<<=r,r=0))}while(r)}return this.black&&(n^=255),n}},{key:"_addPixels",value:function(e,t){var r=this.codingLine,A=this.codingPos;e>r[A]&&(e>this.columns&&(T("row is wrong length"),this.err=!0,e=this.columns),1&A^t&&++A,r[A]=e),this.codingPos=A}},{key:"_addPixelsNeg",value:function(e,t){var r=this.codingLine,A=this.codingPos;if(e>r[A])e>this.columns&&(T("row is wrong length"),this.err=!0,e=this.columns),1&A^t&&++A,r[A]=e;else if(e0&&e=n){var o=r[a-n];if(o[0]===i)return this._eatBits(i),[!0,o[1],!0]}}return[!1,0,!1]}},{key:"_getTwoDimCode",value:function(){var e,t=0;if(this.eoblock){var r;if(t=this._lookBits(7),(null===(r=e=Bn[t])||void 0===r?void 0:r[0])>0)return this._eatBits(e[0]),e[1]}else{var A=this._findTableCode(1,7,Bn);if(A[0]&&A[2])return A[1]}return T("Bad two dim code"),Cn}},{key:"_getWhiteCode",value:function(){var e,t=0;if(this.eoblock){if((t=this._lookBits(12))===Cn)return 1;if((e=t>>5==0?Qn[t]:En[t>>3])[0]>0)return this._eatBits(e[0]),e[1]}else{var r=this._findTableCode(1,9,En);if(r[0])return r[1];if((r=this._findTableCode(11,12,Qn))[0])return r[1]}return T("bad white code"),this._eatBits(1),1}},{key:"_getBlackCode",value:function(){var e,t;if(this.eoblock){if((e=this._lookBits(13))===Cn)return 1;if((t=e>>7==0?dn[e]:e>>9==0&&e>>7!=0?yn[(e>>1)-64]:pn[e>>7])[0]>0)return this._eatBits(t[0]),t[1]}else{var r=this._findTableCode(2,6,pn);if(r[0])return r[1];if((r=this._findTableCode(7,12,yn,64))[0])return r[1];if((r=this._findTableCode(10,13,dn))[0])return r[1]}return T("bad black code"),this._eatBits(1),1}},{key:"_lookBits",value:function(e){for(var t;this.inputBits>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}},{key:"_eatBits",value:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}])&&In(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function mn(e,t){for(var r=0;re.getByte()};return n.ccittFaxDecoder=new vn(i,{K:A.get("K"),EndOfLine:A.get("EndOfLine"),EncodedByteAlign:A.get("EncodedByteAlign"),Columns:A.get("Columns"),Rows:A.get("Rows"),EndOfBlock:A.get("EndOfBlock"),BlackIs1:A.get("BlackIs1")}),n}return 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sn(e,t)}(t,XA),r=t,(A=[{key:"readBlock",value:function(){for(;!this.eof;){var e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}}])&&mn(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A}();function xn(){xn=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function Rn(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function Gn(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){Rn(i,A,n,a,o,"next",e)}function o(e){Rn(i,A,n,a,o,"throw",e)}a(void 0)}))}}function Nn(e,t){for(var r=0;r>e,this.codeSize=A-=e,t}},{key:"getCode",value:function(e){for(var t,r=this.str,A=e[0],n=e[1],i=this.codeSize,a=this.codeBuf;i>16,c=65535&o;if(s<1||i>s,this.codeSize=i-s,c}},{key:"generateHuffmanTable",value:function(e){var t,r=e.length,A=0;for(t=0;tA&&(A=e[t]);for(var n=1<>=1;for(t=g;t>=1)){var n,i;if(1===t)n=jn,i=Wn;else{if(2!==t)throw new re("Unknown block type in flate stream");var a,o=this.getBits(5)+257,s=this.getBits(5)+1,c=this.getBits(4)+4,g=new Uint8Array(Kn.length);for(a=0;a0;)C[a++]=I}n=this.generateHuffmanTable(C.subarray(0,o)),i=this.generateHuffmanTable(C.subarray(o,f))}for(var E=(e=this.buffer)?e.length:0,d=this.bufferLength;;){var y=this.getCode(n);if(y<256)d+1>=E&&(E=(e=this.ensureBuffer(d+1)).length),e[d++]=y;else{if(256===y)return void(this.bufferLength=d);var p=(y=Tn[y-=257])>>16;p>0&&(p=this.getBits(p)),r=(65535&y)+p,y=this.getCode(i),(p=(y=qn[y])>>16)>0&&(p=this.getBits(p));var v=(65535&y)+p;d+r>=E&&(E=(e=this.ensureBuffer(d+r)).length);for(var m=0;m>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768},(t=[{key:"byteIn",value:function(){var e=this.data,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+=t65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}},{key:"readBit",value:function(e,t){var r,A=e[t]>>1,n=1&e[t],i=$n[A],a=i.qe,o=this.a-a;if(this.chigh>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0==(32768&o));return this.a=o,e[t]=A<<1|n,r}}])&&Vn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function ti(e){return function(e){if(Array.isArray(e))return ni(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ai(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 ri(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ai(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function Ai(e,t){if(e){if("string"==typeof e)return ni(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ni(e,t):void 0}}function ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r>>0}var a,o=i(1),s=i(1)?i(1)?i(1)?i(1)?i(1)?i(32)+4436:i(12)+340:i(8)+84:i(6)+20:i(4)+4:i(2);return 0===o?a=s:s>0&&(a=-s),a>=Bi&&a<=Ci?a:null}function Ei(e,t,r){for(var A=e.getContexts("IAID"),n=1,i=0;i=S&&m=F)for(J=J<<1&C,u=0;u=0&&b=0&&(k=N[w][b])&&(J|=k<=e?F<<=1:F=F<<1|y[D][S];for(g=0;g=E||S<0||S>=Q?F<<=1:F=F<<1|A[D][S];var x=p.readBit(v,F);b[k]=x}}return y}function ki(e,t,r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q){if(e&&t)throw new hi("refinement with Huffman is not supported");var E,d,y=[];for(E=0;E1&&(D=e?Q.readBits(B):Qi(m,"IAIT",v));var S=a*w+D,F=e?h.symbolIDTable.decode(Q):Ei(m,v,s),x=t&&(e?Q.readBit():Qi(m,"IARI",v)),R=o[F],G=R[0].length,N=R.length;if(x){var L=Qi(m,"IARDW",v),U=Qi(m,"IARDH",v);R=bi(G+=L,N+=U,I,R,(L>>1)+Qi(m,"IARDX",v),(U>>1)+Qi(m,"IARDY",v),!1,f,C)}var M=0;c?1&u?M=N-1:k+=N-1:u>1?k+=G-1:M=G-1;var J=S-(1&u?0:N-1),H=k-(2&u?G-1:0),Y=void 0,P=void 0,O=void 0;if(c){for(Y=0;Y>5&7,s=[31&a],c=t+6;if(7===a){o=536870911&kt(e,c-1),c+=3;var g=o+7>>3;for(s[0]=e[c++];--g>0;)s.push(e[c++])}else if(5===a||6===a)throw new hi("invalid referred-to flags");r.retainBits=s;var u=4;r.number<=256?u=1:r.number<=65536&&(u=2);var l,h,I=[];for(l=0;l>>24&255,Q[3]=C.height>>16&255,Q[4]=C.height>>8&255,Q[5]=255&C.height,l=c,h=e.length;l>2&3,g.huffmanDWSelector=u>>4&3,g.bitmapSizeSelector=u>>6&1,g.aggregationInstancesSelector=u>>7&1,g.bitmapCodingContextUsed=!!(256&u),g.bitmapCodingContextRetained=!!(512&u),g.template=u>>10&3,g.refinementTemplate=u>>12&1,c+=2,!g.huffman){for(i=0===g.template?4:1,A=[],n=0;n>2&3,l.stripSize=1<>4&3,l.transposed=!!(64&h),l.combinationOperator=h>>7&3,l.defaultPixelValue=h>>9&1,l.dsOffset=h<<17>>27,l.refinementTemplate=h>>15&1,l.huffman){var I=bt(o,c);c+=2,l.huffmanFS=3&I,l.huffmanDS=I>>2&3,l.huffmanDT=I>>4&3,l.huffmanRefinementDW=I>>6&3,l.huffmanRefinementDH=I>>8&3,l.huffmanRefinementDX=I>>10&3,l.huffmanRefinementDY=I>>12&3,l.huffmanRefinementSizeSelector=!!(16384&I)}if(l.refinement&&!l.refinementTemplate){for(A=[],n=0;n<2;n++)A.push({x:wt(o,c),y:wt(o,c+1)}),c+=2;l.refinementAt=A}l.numberOfSymbolInstances=kt(o,c),c+=4,r=[l,a.referredTo,o,c,s];break;case 16:var f={},C=o[c++];f.mmr=!!(1&C),f.template=C>>1&3,f.patternWidth=o[c++],f.patternHeight=o[c++],f.maxPatternIndex=kt(o,c),c+=4,r=[f,a.number,o,c,s];break;case 22:case 23:var B={};B.info=Fi(o,c),c+=xi;var Q=o[c++];B.mmr=!!(1&Q),B.template=Q>>1&3,B.enableSkip=!!(8&Q),B.combinationOperator=Q>>4&7,B.defaultPixelValue=Q>>7&1,B.gridWidth=kt(o,c),c+=4,B.gridHeight=kt(o,c),c+=4,B.gridOffsetX=4294967295&kt(o,c),c+=4,B.gridOffsetY=4294967295&kt(o,c),c+=4,B.gridVectorX=bt(o,c),c+=2,B.gridVectorY=bt(o,c),c+=2,r=[B,a.referredTo,o,c,s];break;case 38:case 39:var E={};E.info=Fi(o,c),c+=xi;var d=o[c++];if(E.mmr=!!(1&d),E.template=d>>1&3,E.prediction=!!(8&d),!E.mmr){for(i=0===E.template?4:1,A=[],n=0;n>2&1,y.combinationOperator=p>>3&3,y.requiresBuffer=!!(32&p),y.combinationOperatorOverride=!!(64&p),r=[y];break;case 49:case 50:case 51:case 62:break;case 53:r=[a.number,o,c,s];break;default:throw new hi("segment type ".concat(a.typeName,"(").concat(a.type,") is not implemented"))}var v="on"+a.typeName;v in t&&t[v].apply(t,r)}function Gi(e,t){for(var r=0,A=e.length;r>3,r=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&r.fill(255),this.buffer=r}},{key:"drawBitmap",value:function(e,t){var r,A,n,i,a=this.currentPageInfo,o=e.width,s=e.height,c=a.width+7>>3,g=a.combinationOperatorOverride?e.combinationOperator:a.combinationOperator,u=this.buffer,l=128>>(7&e.x),h=e.y*c+(e.x>>3);switch(g){case 0:for(r=0;r>=1)||(n=128,i++);h+=c}break;case 2:for(r=0;r>=1)||(n=128,i++);h+=c}break;default:throw new hi("operator ".concat(g," is not supported"))}}},{key:"onImmediateGenericRegion",value:function(e,t,r,A){var n=e.info,i=new fi(t,r,A),a=wi(e.mmr,n.width,n.height,e.template,e.prediction,null,e.at,i);this.drawBitmap(n,a)}},{key:"onImmediateLosslessGenericRegion",value:function(){this.onImmediateGenericRegion.apply(this,arguments)}},{key:"onSymbolDictionary",value:function(e,t,r,A,n,i){var a,o;e.huffman&&(a=function(e,t,r){var A,n,i,a=0;switch(e.huffmanDHSelector){case 0:case 1:A=Hi(e.huffmanDHSelector+4);break;case 3:A=Pi(a,t,r),a++;break;default:throw new hi("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:n=Hi(e.huffmanDWSelector+2);break;case 3:n=Pi(a,t,r),a++;break;default:throw new hi("invalid Huffman DW selector")}return e.bitmapSizeSelector?(i=Pi(a,t,r),a++):i=Hi(1),{tableDeltaHeight:A,tableDeltaWidth:n,tableBitmapSize:i,tableAggregateInstances:e.aggregationInstancesSelector?Pi(a,t,r):Hi(1)}}(e,r,this.customTables),o=new Yi(A,n,i));var s=this.symbols;s||(this.symbols=s={});var c,g=[],u=ri(r);try{for(u.s();!(c=u.n()).done;){var l=s[c.value];l&&g.push.apply(g,ti(l))}}catch(e){u.e(e)}finally{u.f()}var h=new fi(A,n,i);s[t]=function(e,t,r,A,n,i,a,o,s,c,g,u){if(e&&t)throw new hi("symbol refinement with Huffman is not supported");var l,h,I=[],f=0,C=mt(r.length+A),B=g.decoder,Q=g.contextCache;for(e&&(l=Hi(1),h=[],C=Math.max(C,1));I.length1)v=ki(e,t,E,f,0,m,1,r.concat(I),C,0,0,1,0,i,s,c,g,0,u);else{var w=Ei(Q,B,C),b=Qi(Q,"IARDX",B),k=Qi(Q,"IARDY",B);v=bi(E,f,s,w=32){var u=void 0,l=void 0,h=void 0;switch(g){case 32:if(0===c)throw new hi("no previous value in symbol ID table");l=n.readBits(2)+3,u=i[c-1].prefixLength;break;case 33:l=n.readBits(3)+3,u=0;break;case 34:l=n.readBits(7)+11,u=0;break;default:throw new hi("invalid code length in symbol ID table")}for(h=0;h=0;f--)b=e?Ki(w,s,c,!0):wi(!1,s,c,r,!1,null,m,I),U[f]=b;for(k=0;k=0;C--)F|=(S^=U[C][k][D])<>8,(R=g+k*h+D*l>>8)>=0&&R+y<=A&&G>=0&&G+p<=n)for(f=0;f=n))for(L=Q[J],N=x[f],C=0;C=0&&M>1&7),g=1+(i>>4&7),u=[],l=a;do{A=s.readBits(c),n=s.readBits(g),u.push(new Li([l,A,n,0])),l+=1<>r&1;if(r<=0)this.children[A]=new e(t);else{var n=this.children[A];n||(this.children[A]=n=new e(null)),n.buildTree(t,r-1)}}},{key:"decodeNode",value:function(e){if(this.isLeaf){if(this.isOOB)return null;var t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}var r=this.children[e.readBit()];if(!r)throw new hi("invalid Huffman data");return r.decodeNode(e)}}])}(),Mi=function(){return ai((function e(t,r){si(this,e),r||this.assignPrefixCodes(t),this.rootNode=new Ui(null);for(var A=0,n=t.length;A0&&this.rootNode.buildTree(i,i.prefixLength-1)}}),[{key:"decode",value:function(e){return this.rootNode.decodeNode(e)}},{key:"assignPrefixCodes",value:function(e){for(var t=e.length,r=0,A=0;A=this.end)throw new hi("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e}},{key:"readBits",value:function(e){var t,r=0;for(t=e-1;t>=0;t--)r|=this.readBit()<=this.end?-1:this.data[this.position++]}}])}();function Pi(e,t,r){for(var A=0,n=0,i=t.length;n>g&1,g--}if(A&&!o)for(var l=0;l<5&&-1!==i.readNextChar();l++);return a}var Ti=function(){return ai((function e(){si(this,e)}),[{key:"parseChunks",value:function(e){return function(e){for(var t=new Ni,r=0,A=e.length;re.length)&&(t=e.length);for(var r=0,A=Array(t);r>3,C=7&i,B=t.length;n=new Uint32Array(n.buffer);for(var Q=0,E=0;E=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function ta(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r0&&!e[i-1];)i--;var a,o=[{children:[],index:0}],s=o[0];for(r=0;r0;)s=o.pop();for(s.index++,o.push(s);o.length<=r;)o.push(a={children:[],index:0}),s.children[s.index]=a.children,s=a;n++}r+19&&void 0!==arguments[9]&&arguments[9],g=r.mcusPerLine,u=r.progressive,l=t,h=0,I=0;function f(){if(I>0)return I--,h>>I&1;if(255===(h=e[t++])){var A=e[t++];if(A){if(220===A&&c){var n=bt(e,t+=2);if(t+=2,n>0&&n!==r.scanLines)throw new la("Found DNL marker (0xFFDC) while parsing scan data",n)}else if(217===A){if(c){var i=p*(8===r.precision?8:0);if(i>0&&Math.round(r.scanLines/i)>=5)throw new la("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect \`scanLines\` parameter",i)}throw new ha("Found EOI marker (0xFFD9) while parsing scan data")}throw new ua("unexpected marker ".concat((h<<8|A).toString(16)))}}return I=7,h>>>7}function C(e){for(var t=e;;){switch(typeof(t=t[f()])){case"number":return t;case"object":continue}throw new ua("invalid huffman sequence")}}function B(e){for(var t=0;e>0;)t=t<<1|f(),e--;return t}function Q(e){if(1===e)return 1===f()?1:-1;var t=B(e);return t>=1<0)d--;else for(var r=i,A=a;r<=A;){var n=C(e.huffmanTableAC),o=15&n,c=n>>4;if(0!==o){var g=Ia[r+=c];e.blockData[t+g]=Q(o)*(1<>4,0==(r=15&A))c<15?(d=B(c)+(1<>4;if(0!==a){var s=Ia[n+=o];e.blockData[t+s]=Q(a),n++}else{if(o<15)break;n+=16}}};for(var R,G,N,L=0,U=1===x?A[0].blocksPerLine*A[0].blocksPerColumn:g*r.mcusPerColumn;L<=U;){var M=n?Math.min(U-L,n):U;if(M>0){for(b=0;b0?"unexpected":"excessive"," MCU data, current marker is: ").concat(R.invalid)),t=R.offset),!(R.marker>=65488&&R.marker<=65495))break;t+=2}return t-l}function ba(e,t,r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d=e.quantizationTable,y=e.blockData;if(!d)throw new ua("missing required Quantization Table.");for(var p=0;p<64;p+=8)u=y[t+p],l=y[t+p+1],h=y[t+p+2],I=y[t+p+3],f=y[t+p+4],C=y[t+p+5],B=y[t+p+6],Q=y[t+p+7],u*=d[p],0!=(l|h|I|f|C|B|Q)?(l*=d[p+1],h*=d[p+2],I*=d[p+3],f*=d[p+4],C*=d[p+5],B*=d[p+6],Q*=d[p+7],n=(A=(A=ya*u+128>>8)+(n=ya*f+128>>8)+1>>1)-n,E=(i=h)*da+(a=B)*Ea+128>>8,i=i*Ea-a*da+128>>8,c=(o=(o=pa*(l-Q)+128>>8)+(c=C<<4)+1>>1)-c,s=(g=(g=pa*(l+Q)+128>>8)+(s=I<<4)+1>>1)-s,a=(A=A+(a=E)+1>>1)-a,i=(n=n+i+1>>1)-i,E=o*Qa+g*Ba+2048>>12,o=o*Ba-g*Qa+2048>>12,g=E,E=s*Ca+c*fa+2048>>12,s=s*fa-c*Ca+2048>>12,c=E,r[p]=A+g,r[p+7]=A-g,r[p+1]=n+c,r[p+6]=n-c,r[p+2]=i+s,r[p+5]=i-s,r[p+3]=a+o,r[p+4]=a-o):(E=ya*u+512>>10,r[p]=E,r[p+1]=E,r[p+2]=E,r[p+3]=E,r[p+4]=E,r[p+5]=E,r[p+6]=E,r[p+7]=E);for(var v=0;v<8;++v)u=r[v],0!=((l=r[v+8])|(h=r[v+16])|(I=r[v+24])|(f=r[v+32])|(C=r[v+40])|(B=r[v+48])|(Q=r[v+56]))?(n=(A=4112+((A=ya*u+2048>>12)+(n=ya*f+2048>>12)+1>>1))-n,E=(i=h)*da+(a=B)*Ea+2048>>12,i=i*Ea-a*da+2048>>12,a=E,c=(o=(o=pa*(l-Q)+2048>>12)+(c=C)+1>>1)-c,s=(g=(g=pa*(l+Q)+2048>>12)+(s=I)+1>>1)-s,E=o*Qa+g*Ba+2048>>12,o=o*Ba-g*Qa+2048>>12,g=E,E=s*Ca+c*fa+2048>>12,s=s*fa-c*Ca+2048>>12,(u=(A=A+a+1>>1)+g)<16?u=0:u>=4080?u=255:u>>=4,(l=(n=n+i+1>>1)+(c=E))<16?l=0:l>=4080?l=255:l>>=4,(h=(i=n-i)+s)<16?h=0:h>=4080?h=255:h>>=4,(I=(a=A-a)+o)<16?I=0:I>=4080?I=255:I>>=4,(f=a-o)<16?f=0:f>=4080?f=255:f>>=4,(C=i-s)<16?C=0:C>=4080?C=255:C>>=4,(B=n-c)<16?B=0:B>=4080?B=255:B>>=4,(Q=A-g)<16?Q=0:Q>=4080?Q=255:Q>>=4,y[t+v]=u,y[t+v+8]=l,y[t+v+16]=h,y[t+v+24]=I,y[t+v+32]=f,y[t+v+40]=C,y[t+v+48]=B,y[t+v+56]=Q):(E=(E=ya*u+8192>>14)<-2040?0:E>=2024?255:E+2056>>4,y[t+v]=E,y[t+v+8]=E,y[t+v+16]=E,y[t+v+24]=E,y[t+v+32]=E,y[t+v+40]=E,y[t+v+48]=E,y[t+v+56]=E)}function ka(e,t){for(var r=t.blocksPerLine,A=t.blocksPerColumn,n=new Int16Array(64),i=0;i2&&void 0!==arguments[2]?arguments[2]:t,A=e.length-1,n=r=A)return null;var i=bt(e,t);if(i>=65472&&i<=65534)return{invalid:null,marker:i,offset:t};for(var a=bt(e,n);!(a>=65472&&a<=65534);){if(++n>=A)return null;a=bt(e,n)}return{invalid:i.toString(16),marker:a,offset:n}}var Sa=function(){return Aa((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.decodeTransform,A=void 0===r?null:r,n=t.colorTransform,i=void 0===n?-1:n;ia(this,e),this._decodeTransform=A,this._colorTransform=i}),[{key:"parse",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).dnlScanLines,r=void 0===t?null:t;function A(){var t=bt(e,o),r=(o+=2)+t-2,A=Da(e,r,o);null!=A&&A.invalid&&(q("readDataBlock - incorrect length, current marker is: "+A.invalid),r=A.offset);var n=e.subarray(o,r);return o+=n.length,n}function n(e){var t,r=Math.ceil(e.samplesPerLine/8/e.maxH),A=Math.ceil(e.scanLines/8/e.maxV),n=ea(e.components);try{for(n.s();!(t=n.n()).done;){var i=t.value,a=Math.ceil(Math.ceil(e.samplesPerLine/8)*i.h/e.maxH),o=Math.ceil(Math.ceil(e.scanLines/8)*i.v/e.maxV),s=r*i.h,c=A*i.v*64*(s+1);i.blockData=new Int16Array(c),i.blocksPerLine=a,i.blocksPerColumn=o}}catch(e){n.e(e)}finally{n.f()}e.mcusPerLine=r,e.mcusPerColumn=A}var i,a,o=0,s=null,c=null,g=0,u=[],l=[],h=[],I=bt(e,o);if(o+=2,65496!==I)throw new ua("SOI not found");I=bt(e,o),o+=2;e:for(;65497!==I;){var f=void 0,C=void 0,B=void 0;switch(I){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 Q=A();65504===I&&74===Q[0]&&70===Q[1]&&73===Q[2]&&70===Q[3]&&0===Q[4]&&(s={version:{major:Q[5],minor:Q[6]},densityUnits:Q[7],xDensity:Q[8]<<8|Q[9],yDensity:Q[10]<<8|Q[11],thumbWidth:Q[12],thumbHeight:Q[13],thumbData:Q.subarray(14,14+3*Q[12]*Q[13])}),65518===I&&65===Q[0]&&100===Q[1]&&111===Q[2]&&98===Q[3]&&101===Q[4]&&(c={version:Q[5]<<8|Q[6],flags0:Q[7]<<8|Q[8],flags1:Q[9]<<8|Q[10],transformCode:Q[11]});break;case 65499:for(var E=bt(e,o)+(o+=2)-2;o>4==0)for(C=0;C<64;C++)y[Ia[C]]=e[o++];else{if(d>>4!=1)throw new ua("DQT - invalid table spec");for(C=0;C<64;C++)y[Ia[C]]=bt(e,o),o+=2}u[15&d]=y}break;case 65472:case 65473:case 65474:if(i)throw new ua("Only single frame JPEGs supported");o+=2,(i={}).extended=65473===I,i.progressive=65474===I,i.precision=e[o++];var p=bt(e,o);o+=2,i.scanLines=r||p,i.samplesPerLine=bt(e,o),o+=2,i.components=[],i.componentIds={};var v=e[o++],m=0,w=0;for(f=0;f>4,D=15&e[o+1];m>4==0?h:l)[15&x]=va(R,N)}break;case 65501:a=bt(e,o+=2),o+=2;break;case 65498:var L=1==++g&&!r;o+=2;var U=e[o++],M=[];for(f=0;f>4],Y.huffmanTableAC=l[15&P],M.push(Y)}var O=e[o++],K=e[o++],T=e[o++];try{var j=wa(e,o,i,M,a,O,K,T>>4,15&T,L);o+=j}catch(t){if(t instanceof la)return q("".concat(t.message," -- attempting to re-parse the JPEG image.")),this.parse(e,{dnlScanLines:t.scanLines});if(t instanceof ha){q("".concat(t.message," -- ignoring the rest of the image data."));break e}throw t}break;case 65500:o+=4;break;case 65535:255!==e[o]&&o--;break;default:var W=Da(e,o-2,o-3);if(null!=W&&W.invalid){q("JpegImage.parse - unexpected data, current marker is: "+W.invalid),o=W.offset;break}if(!W||o>=e.length-1){q("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new ua("JpegImage.parse - unknown marker: "+I.toString(16))}I=bt(e,o),o+=2}if(!i)throw new ua("JpegImage.parse - no frame data found.");this.width=i.samplesPerLine,this.height=i.scanLines,this.jfif=s,this.adobe=c,this.components=[];var Z,_=ea(i.components);try{for(_.s();!(Z=_.n()).done;){var X=Z.value,V=u[X.quantizationId];V&&(X.quantizationTable=V),this.components.push({index:X.index,output:ka(0,X),scaleX:X.h/i.maxH,scaleY:X.v/i.maxV,blocksPerLine:X.blocksPerLine,blocksPerColumn:X.blocksPerColumn})}}catch(e){_.e(e)}finally{_.f()}this.numComponents=this.components.length}},{key:"_getLinearizedBlockData",value:function(e,t){var r,A,n,i,a,o,s,c,g,u,l,h,I=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=this.width/e,C=this.height/t,B=0,Q=this.components.length,E=e*t*Q,d=new Uint8ClampedArray(E),y=new Uint32Array(e),p=4294967288;for(s=0;s>8)+v[g+1];return d}},{key:"_isColorConversionNeeded",get:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}},{key:"_convertYccToRgb",value:function(e){for(var t,r,A,n=0,i=e.length;n4)throw new ua("Unsupported color mode");var c=this._getLinearizedBlockData(t,r,s);if(1===this.numComponents&&(n||a)){var g=c.length*(n?4:3),u=new Uint8ClampedArray(g),l=0;if(n)!function(e,t){if(se.isLittleEndian)for(var r=0,A=e.length;r0&&(e=e.subarray(t));break}var A={decodeTransform:void 0,colorTransform:void 0},n=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(n)){for(var i=this.dict.get("BPC","BitsPerComponent")||8,a=n.length,o=new Int32Array(a),s=!1,c=(1<0&&void 0!==arguments[0]?arguments[0]:{};new Promise((function(r,A){e=r,t=A})),r.decode=function(e,t){var A=t.numComponents,n=void 0===A?4:A,i=t.isIndexedColormap,a=void 0!==i&&i,o=t.smaskInData,s=void 0!==o&&o,c=e.length,g=r._malloc(c);r.HEAPU8.set(e,g);var u=r._jp2_decode(g,c,n>0?n:0,!!a,!!s);if(r._free(g),u){var l=r.errorMessages;return l?(delete r.errorMessages,l):"Unknown error"}var h=r.imageData;return r.imageData=null,h};var A=Object.assign({},r),n="./this.program",i="";"undefined"!=typeof document&&document.currentScript&&(i=document.currentScript.src),Ma&&(i=Ma),i=i.startsWith("blob:")?"":i.substr(0,i.replace(/[?#].*/,"").lastIndexOf("/")+1);var a,o,s,c,g,u=r.print||console.log.bind(console),l=r.printErr||console.error.bind(console);function h(){var e=o.buffer;r.HEAP8=s=new Int8Array(e),r.HEAP16=new Int16Array(e),r.HEAPU8=c=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAP32=new Int32Array(e),r.HEAPU32=g=new Uint32Array(e),r.HEAPF32=new Float32Array(e),r.HEAPF64=new Float64Array(e)}Object.assign(r,A),A=null,r.arguments&&r.arguments,r.thisProgram&&(n=r.thisProgram),r.quit&&r.quit,r.wasmBinary&&(a=r.wasmBinary);var I,f=[],C=[],B=[],Q=0,E=null,d=null,y="data:application/octet-stream;base64,",p=function(e){return e.startsWith(y)};function v(e,t){var r,A=function(e){if(e==I&&a)return new Uint8Array(a);var t=function(e){if(p(e))return function(e){for(var t=atob(e),r=new Uint8Array(t.length),A=0;A0;)e.shift()(r)};r.noExitRuntime;var w,b=function(e){var t=(e-o.buffer.byteLength+65535)/65536;try{return o.grow(t),h(),1}catch(e){}},k={},D=function(){if(!D.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:n||"./this.program"};for(var t in k)void 0===k[t]?delete e[t]:e[t]=k[t];var r=[];for(var t in e)r.push("".concat(t,"=").concat(e[t]));D.strings=r}return D.strings},S=[null,[],[]],F="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,x=function(e,t,r){for(var A=t+r,n=t;e[n]&&!(n>=A);)++n;if(n-t>16&&e.buffer&&F)return F.decode(e.subarray(t,n));for(var i="";t>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|o)}else i+=String.fromCharCode(a)}return i},R=function(e,t){return e?x(c,e,t):""},G={c:function(e,t,r){return c.copyWithin(e,t,t+r)},g:function(e,t){e>>=2;var A=r.imageData=new Uint8ClampedArray(t),n=r.HEAP32.subarray(e,e+t);A.set(n)},f:function(e,t,A,n){e>>=2,t>>=2,A>>=2;for(var i=r.imageData=new Uint8ClampedArray(3*n),a=r.HEAP32.subarray(e,e+n),o=r.HEAP32.subarray(t,t+n),s=r.HEAP32.subarray(A,A+n),c=0;c>=2,t>>=2,A>>=2,n>>=2;for(var a=r.imageData=new Uint8ClampedArray(4*i),o=r.HEAP32.subarray(e,e+i),s=r.HEAP32.subarray(t,t+i),c=r.HEAP32.subarray(A,A+i),g=r.HEAP32.subarray(n,n+i),u=0;u>>=0)>r)return!1;for(var A,n=1;n<=4;n*=2){var i=t*(1+.2/n);i=Math.min(i,e+100663296);var a=Math.min(r,(A=Math.max(e,i))+(65536-A%65536)%65536);if(b(a))return!0}return!1},l:function(e,t){var r=0;return D().forEach((function(A,n){var i=t+r;g[e+4*n>>2]=i,function(e,t){for(var r=0;r>2]=r.length;var A=0;return r.forEach((function(e){return A+=e.length+1})),g[t>>2]=A,0},n:function(e){return 52},j:function(e,t,r,A,n){return 70},b:function(e,t,r,A){for(var n,i,a,o=0,s=0;s>2],I=g[t+4>>2];t+=8;for(var f=0;f>2]=o,0},o:function(e,t){e>>=2;for(var A=r.imageData=new Uint8ClampedArray(4*t),n=r.HEAP32.subarray(e,e+t),i=0;i>=2,t>>=2;for(var n=r.imageData=new Uint8ClampedArray(4*A),i=r.HEAP32.subarray(e,e+A),a=r.HEAP32.subarray(t,t+A),o=0;o>=2,t>>=2,A>>=2;for(var i=r.imageData=new Uint8ClampedArray(4*n),a=r.HEAP32.subarray(e,e+n),o=r.HEAP32.subarray(t,t+n),s=r.HEAP32.subarray(A,A+n),c=0;c0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),f.unshift(e);var e;m(f)}(),Q>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}if(N.q,r._malloc=N.r,r._free=N.s,r._jp2_decode=N.u,d=function e(){w||L(),w||(d=e)},r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return L(),r});const Ya=Ha;function Pa(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function Oa(e,t){for(var r=0;r=0;)if(65361==(t<<8|(t=e.getByte()))){e.skip(4);var r=e.getInt32()>>>0,A=e.getInt32()>>>0,n=e.getInt32()>>>0,i=e.getInt32()>>>0;return e.skip(16),{width:r-n,height:A-i,bitsPerComponent:8,componentsCount:e.getUint16()}}throw new Xa("No size marker found in JPX stream")}}])}(),za={_:null};function $a(e,t){for(var r=0;r>>t&(1<0;if(B<256)l[0]=B,h=1;else{if(!(B>=258)){if(256===B){g=9,a=258,h=0;continue}this.eof=!0,delete this.lzwState;break}if(B=0;t--)l[t]=o[r],r=c[r];else l[h++]=l[0]}if(Q&&(c[a]=u,s[a]=s[u]+1,o[a]=l[0],g=++a+i&a+i-1?g:0|Math.min(Math.log(a+i)/.6931471805599453+1,12)),u=B,A<(I+=h)){do{A+=512}while(A15))throw new re("Unsupported predictor: ".concat(i));n.readBlock=2===i?n.readBlockTiff:n.readBlockPng,n.str=e,n.dict=e.dict;var a=n.colors=A.get("Colors")||1,o=n.bits=A.get("BPC","BitsPerComponent")||8,s=n.columns=A.get("Columns")||1;return n.pixBytes=a*o+7>>3,n.rowBytes=s*a*o+7>>3,Co(n,n)}return 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eo(e,t)}(t,XA),r=t,(A=[{key:"readBlockTiff",value:function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),A=this.bits,n=this.colors,i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var a,o=0,s=0,c=0,g=0,u=t;if(1===A&&1===n)for(a=0;a>1,l^=l>>2,o=(1&(l^=l>>4))<<7,r[u++]=l}else if(8===A){for(a=0;a>8&255,r[u++]=255&I}}else{var f=new Uint8Array(n+1),C=(1<>c-A)&C,c-=A,s=s<=8&&(r[Q++]=s>>g-8&255,g-=8);g>0&&(r[Q++]=(s<<8-g)+(o&(1<<8-g)-1))}this.bufferLength+=e}}},{key:"readBlockPng",value:function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),A=this.str.getBytes(e);if(this.eof=!A.length,!this.eof){var n=this.bufferLength,i=this.ensureBuffer(n+e),a=i.subarray(n-e,n);0===a.length&&(a=new Uint8Array(e));var o,s,c,g=n;switch(r){case 0:for(o=0;o>1)+A[o];for(;o>1)+A[o]&255,g++;break;case 4:for(o=0;o0){var n=this.str.getBytes(A);t.set(n,r),r+=A}}else{A=257-A;var i=e[1];t=this.ensureBuffer(r+A+1);for(var a=0;a=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function xo(e,t){if(e){if("string"==typeof e)return Ro(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ro(e,t):void 0}}function Ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r0&&void 0!==arguments[0]?arguments[0]:null,t=this.buf1;if(this.shift(),t instanceof Me)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":for(var r=[];!Te(this.buf1,"]")&&this.buf1!==Re;)r.push(this.getObj(e));if(this.buf1===Re){if(this.recoveryMode)return r;throw new Bt("End of file inside array.")}return this.shift(),r;case"<<":for(var A=new He(this.xref);!Te(this.buf1,">>")&&this.buf1!==Re;)if(this.buf1 instanceof Ue){var n=this.buf1.name;if(this.shift(),this.buf1===Re)break;A.set(n,this.getObj(e))}else T("Malformed dictionary: key must be a name object"),this.shift();if(this.buf1===Re){if(this.recoveryMode)return A;throw new Bt("End of file inside dictionary.")}return Te(this.buf2,"stream")?this.allowStreams?this.makeStream(A,e):A:(this.shift(),A);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&Te(this.buf2,"R")){var i=Ye.get(t,this.buf1);return this.shift(),this.shift(),i}return t}return"string"==typeof t&&e?e.decryptString(t):t}},{key:"findDefaultInlineStreamEnd",value:function(e){for(var t,r,A=this.lexer.knownCommands,n=e.pos,i=0;-1!==(t=e.getByte());)if(0===i)i=69===t?1:0;else if(1===i)i=73===t?2:0;else if(32===t||10===t||13===t){r=e.pos;var a=e.peekBytes(15),o=a.length;if(0===o)break;for(var s=0;s127)){i=0;break}if(2!==i)continue;if(!A){q("findDefaultInlineStreamEnd - \`lexer.knownCommands\` is undefined.");continue}var c=new Oo(new ar(a.slice()),A);c._hexStringWarn=function(){};for(var g=0;;){var u=c.getObj();if(u===Re){i=0;break}if(u instanceof Me){var l=A[u.cmd];if(!l){i=0;break}if(l.variableArgs?g<=l.numArgs:g===l.numArgs)break;g=0}else g++}if(2===i)break}else i=0;-1===t&&(q("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&(q('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-r))));var h=4;return e.skip(-h),t=e.peekByte(),e.skip(h),Dt(t)||h--,e.pos-h-n}},{key:"findDCTDecodeInlineStreamEnd",value:function(e){for(var t,r,A=e.pos,n=!1;-1!==(t=e.getByte());)if(255===t){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:n=!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(n)break}var i=e.pos-A;return-1===t?(q("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-i),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),i)}},{key:"findASCII85DecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte());)if(126===t){var A=e.pos;for(t=e.peekByte();Dt(t);)e.skip(),t=e.peekByte();if(62===t){e.skip();break}if(e.pos>A){var n=e.peekBytes(2);if(69===n[0]&&73===n[1])break}}var i=e.pos-r;return-1===t?(q("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-i),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),i)}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte())&&62!==t;);var A=e.pos-r;return-1===t?(q("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-A),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),A)}},{key:"inlineStreamSkipEI",value:function(e){for(var t,r=0;-1!==(t=e.getByte());)if(0===r)r=69===t?1:0;else if(1===r)r=73===t?2:0;else if(2===r)break}},{key:"makeInlineImage",value:function(e){for(var t,r=this.lexer,A=r.stream,n=Object.create(null);!Te(this.buf1,"ID")&&this.buf1!==Re;){if(!(this.buf1 instanceof Ue))throw new re("Dictionary key must be a name object");var i=this.buf1.name;if(this.shift(),this.buf1===Re)break;n[i]=this.getObj(e)}-1!==r.beginInlineImagePos&&(t=A.pos-r.beginInlineImagePos);var a,o=this.xref.fetchIfRef(n.F||n.Filter);if(o instanceof Ue)a=o.name;else if(Array.isArray(o)){var s=this.xref.fetchIfRef(o[0]);s instanceof Ue&&(a=s.name)}var c,g,u=A.pos;switch(a){case"DCT":case"DCTDecode":c=this.findDCTDecodeInlineStreamEnd(A);break;case"A85":case"ASCII85Decode":c=this.findASCII85DecodeInlineStreamEnd(A);break;case"AHx":case"ASCIIHexDecode":c=this.findASCIIHexDecodeInlineStreamEnd(A);break;default:c=this.findDefaultInlineStreamEnd(A)}if(c<1e3&&t>0){var l=A.pos;A.pos=r.beginInlineImagePos,g=function(e){for(var t=[],r=e.length,A=0;A=A){var g,u=!1,l=Fo(n);try{for(l.s();!(g=l.n()).done;){for(var h=g.value,I=h.length,f=0;f=i){u=!0;break}if(f>=I){Dt(a[s+c+f])&&(T('Found "'.concat(ne([].concat(So(r),So(h))),'" when ')+"searching for endstream command."),u=!0);break}}}catch(e){l.e(e)}finally{l.f()}if(u)return t.pos+=s,t.pos-e}s++}t.pos+=o}return-1}var Yo=[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 Po(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var Oo=function(){return Lo((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Go(this,e),this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=r,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}),[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function(){return this.stream.peekByte()}},{key:"getNumber",value:function(){var e=this.currentChar,t=!1,r=0,A=1;if(45===e?(A=-1,45===(e=this.nextChar())&&(e=this.nextChar())):43===e&&(e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(r=10,e=this.nextChar()),e<48||e>57){var n="Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")");if(Dt(e)||-1===e)return T('Lexer.getNumber - "'.concat(n,'".')),0;throw new re(n)}for(var i=e-48,a=0,o=1;(e=this.nextChar())>=0;)if(e>=48&&e<=57){var s=e-48;t?a=10*a+s:(0!==r&&(r*=10),i=10*i+s)}else if(46===e){if(0!==r)break;r=1}else if(45===e)q("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e)o=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==r&&(i/=r),t&&(i*=Math.pow(10,o*a)),A*i}},{key:"getString",value:function(){var e=1,t=!1,r=this.strBuf;r.length=0;for(var A=this.nextChar();;){var n=!1;switch(0|A){case-1:q("Unterminated string"),t=!0;break;case 40:++e,r.push("(");break;case 41:0==--e?(this.nextChar(),t=!0):r.push(")");break;case 92:switch(A=this.nextChar()){case-1:q("Unterminated string"),t=!0;break;case 110:r.push("\\n");break;case 114:r.push("\\r");break;case 116:r.push("\\t");break;case 98:r.push("\\b");break;case 102:r.push("\\f");break;case 92:case 40:case 41:r.push(String.fromCharCode(A));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var i=15&A;n=!0,(A=this.nextChar())>=48&&A<=55&&(i=(i<<3)+(15&A),(A=this.nextChar())>=48&&A<=55&&(n=!1,i=(i<<3)+(15&A))),r.push(String.fromCharCode(i));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(A))}break;default:r.push(String.fromCharCode(A))}if(t)break;n||(A=this.nextChar())}return r.join("")}},{key:"getName",value:function(){var e,t,r=this.strBuf;for(r.length=0;(e=this.nextChar())>=0&&!Yo[e];)if(35===e){if(e=this.nextChar(),Yo[e]){q("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),r.push("#");break}var A=Po(e);if(-1!==A){t=e;var n=Po(e=this.nextChar());if(-1===n){if(q("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") ")+"in hexadecimal number."),r.push("#",String.fromCharCode(t)),Yo[e])break;r.push(String.fromCharCode(e));continue}r.push(String.fromCharCode(A<<4|n))}else r.push("#",String.fromCharCode(e))}else r.push(String.fromCharCode(e));return r.length>127&&q("Name token is longer than allowed by the spec: ".concat(r.length)),Ue.get(r.join(""))}},{key:"_hexStringWarn",value:function(e){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||q("getHexString - ignoring invalid character: ".concat(e)):q("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function(){var e=this.strBuf;e.length=0;var t=this.currentChar,r=-1,A=-1;for(this._hexStringNumWarn=0;;){if(t<0){q("Unterminated hex string");break}if(62===t){this.nextChar();break}1!==Yo[t]?(-1===(A=Po(t))?this._hexStringWarn(t):-1===r?r=A:(e.push(String.fromCharCode(r<<4|A)),r=-1),t=this.nextChar()):t=this.nextChar()}return-1!==r&&e.push(String.fromCharCode(r<<4)),e.join("")}},{key:"getObj",value:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return Re;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==Yo[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(),Me.get("[");case 93:return this.nextChar(),Me.get("]");case 60:return 60===(t=this.nextChar())?(this.nextChar(),Me.get("<<")):this.getHexString();case 62:return 62===(t=this.nextChar())?(this.nextChar(),Me.get(">>")):Me.get(">");case 123:return this.nextChar(),Me.get("{");case 125:return this.nextChar(),Me.get("}");case 41:throw this.nextChar(),new re("Illegal character: ".concat(t))}var r=String.fromCharCode(t);if(t<32||t>127){var A=this.peekChar();if(A>=32&&A<=127)return this.nextChar(),Me.get(r)}for(var n=this.knownCommands,i=void 0!==(null==n?void 0:n[r]);(t=this.nextChar())>=0&&!Yo[t];){var a=r+String.fromCharCode(t);if(i&&void 0===n[a])break;if(128===r.length)throw new re("Command token too long: ".concat(r.length));r=a,i=void 0!==(null==n?void 0:n[r])}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),Me.get(r)))}},{key:"skipToNextLine",value:function(){for(var e=this.currentChar;e>=0;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}])}(),Ko=function(){return Lo((function e(){Go(this,e)}),null,[{key:"create",value:function(e){function t(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=e.get(t);if(Number.isInteger(A)&&(r?A>=0:A>0))return A;throw new Error('The "'.concat(t,'" parameter in the linearization ')+"dictionary is invalid.")}var r,A,n=new Jo({lexer:new Oo(e),xref:null}),i=n.getObj(),a=n.getObj(),o=n.getObj(),s=n.getObj();if(!(Number.isInteger(i)&&Number.isInteger(a)&&Te(o,"obj")&&s instanceof He&&"number"==typeof(r=s.get("Linearized"))&&r>0))return null;if((A=t(s,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:A,hints:function(e){var t,r=e.get("H");if(Array.isArray(r)&&(2===(t=r.length)||4===t)){for(var A=0;A0))throw new Error("Hint (".concat(A,") in the linearization dictionary is invalid."))}return r}throw new Error("Hint array in the linearization dictionary is invalid.")}(s),objectNumberFirst:t(s,"O"),endFirst:t(s,"E"),numPages:t(s,"N"),mainXRefEntriesOffset:t(s,"T"),pageFirst:s.has("P")?t(s,"P",!0):0}}}])}();function To(){To=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function qo(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function jo(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){qo(i,A,n,a,o,"next",e)}function o(e){qo(i,A,n,a,o,"throw",e)}a(void 0)}))}}function Wo(e,t,r){return t=_o(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Zo()?Reflect.construct(t,r||[],_o(e).constructor):t.apply(e,r))}function Zo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zo=function(){return!!e})()}function _o(e){return _o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_o(e)}function Xo(e,t){return Xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xo(e,t)}function Vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zo(e,t){for(var r=0;r0&&void 0!==arguments[0]&&arguments[0];Vo(this,e),this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}),[{key:"addCodespaceRange",value:function(e,t,r){this.codespaceRanges[e-1].push(t,r),this.numCodespaceRanges++}},{key:"mapCidRange",value:function(e,t,r){if(t-e>rs)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=r++}},{key:"mapBfRange",value:function(e,t,r){if(t-e>rs)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var A=r.length-1;e<=t;){this._map[e++]=r;var n=r.charCodeAt(A)+1;r=n>255?r.substring(0,A-1)+String.fromCharCode(r.charCodeAt(A-1)+1)+"\\0":r.substring(0,A)+String.fromCharCode(n)}}},{key:"mapBfRangeToArray",value:function(e,t,r){if(t-e>rs)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");for(var A=r.length,n=0;e<=t&&n>>0;for(var o=n[i],s=0,c=o.length;s=g&&A<=u)return r.charcode=A,void(r.length=i+1)}}r.charcode=0,r.length=1}},{key:"getCharCodeLength",value:function(e){for(var t=this.codespaceRanges,r=0,A=t.length;r=o&&e<=s)return r+1}return 1}},{key:"length",get:function(){return this._map.length}},{key:"isIdentityCMap",get:function(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}])}(),ns=function(e){function t(e,r){var A;return Vo(this,t),(A=Wo(this,t)).vertical=e,A.addCodespaceRange(r,0,65535),A}return 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xo(e,t)}(t,As),$o(t,[{key:"mapCidRange",value:function(e,t,r){j("should not call mapCidRange")}},{key:"mapBfRange",value:function(e,t,r){j("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function(e,t,r){j("should not call mapBfRangeToArray")}},{key:"mapOne",value:function(e,t){j("should not call mapCidOne")}},{key:"lookup",value:function(e){return Number.isInteger(e)&&e<=65535?e:void 0}},{key:"contains",value:function(e){return Number.isInteger(e)&&e<=65535}},{key:"forEach",value:function(e){for(var t=0;t<=65535;t++)e(t,t)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e<=65535?e:-1}},{key:"getMap",value:function(){for(var e=new Array(65536),t=0;t<=65535;t++)e[t]=t;return e}},{key:"length",get:function(){return 65536}},{key:"isIdentityCMap",get:function(){j("should not access .isIdentityCMap")}}])}();function is(e){for(var t=0,r=0;r>>0}function as(e){if("string"!=typeof e)throw new re("Malformed CMap: expected string.")}function os(e){if(!Number.isInteger(e))throw new re("Malformed CMap: expected int.")}function ss(e,t){for(;;){var r=t.getObj();if(r===Re)break;if(Te(r,"endbfchar"))return;as(r);var A=is(r);as(r=t.getObj());var n=r;e.mapOne(A,n)}}function cs(e,t){for(;;){var r=t.getObj();if(r===Re)break;if(Te(r,"endbfrange"))return;as(r);var A=is(r);as(r=t.getObj());var n=is(r);if(r=t.getObj(),Number.isInteger(r)||"string"==typeof r){var i=Number.isInteger(r)?String.fromCharCode(r):r;e.mapBfRange(A,n,i)}else{if(!Te(r,"["))break;r=t.getObj();for(var a=[];!Te(r,"]")&&r!==Re;)a.push(r),r=t.getObj();e.mapBfRangeToArray(A,n,a)}}throw new re("Invalid bf range.")}function gs(e,t){for(;;){var r=t.getObj();if(r===Re)break;if(Te(r,"endcidchar"))return;as(r);var A=is(r);os(r=t.getObj());var n=r;e.mapOne(A,n)}}function us(e,t){for(;;){var r=t.getObj();if(r===Re)break;if(Te(r,"endcidrange"))return;as(r);var A=is(r);as(r=t.getObj());var n=is(r);os(r=t.getObj());var i=r;e.mapCidRange(A,n,i)}}function ls(e,t){for(;;){var r=t.getObj();if(r===Re)break;if(Te(r,"endcodespacerange"))return;if("string"!=typeof r)break;var A=is(r);if("string"!=typeof(r=t.getObj()))break;var n=is(r);e.addCodespaceRange(r.length,A,n)}throw new re("Invalid codespace range.")}function hs(e,t){var r=t.getObj();Number.isInteger(r)&&(e.vertical=!!r)}function Is(e,t){var r=t.getObj();r instanceof Ue&&(e.name=r.name)}function fs(e,t,r,A){return Cs.apply(this,arguments)}function Cs(){return(Cs=jo(To().mark((function e(t,r,A,n){var i,a,o;return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=1,(o=r.getObj())!==Re){e.next=7;break}return e.abrupt("break",39);case 7:if(!(o instanceof Ue)){e.next=12;break}"WMode"===o.name?hs(t,r):"CMapName"===o.name&&Is(t,r),i=o,e.next=29;break;case 12:if(!(o instanceof Me)){e.next=29;break}e.t0=o.cmd,e.next="endcmap"===e.t0?16:"usecmap"===e.t0?17:"begincodespacerange"===e.t0?19:"beginbfchar"===e.t0?21:"begincidchar"===e.t0?23:"beginbfrange"===e.t0?25:"begincidrange"===e.t0?27:29;break;case 16:return e.abrupt("break",39);case 17:return i instanceof Ue&&(a=i.name),e.abrupt("break",29);case 19:return ls(t,r),e.abrupt("break",29);case 21:return ss(t,r),e.abrupt("break",29);case 23:return gs(t,r),e.abrupt("break",29);case 25:return cs(t,r),e.abrupt("break",29);case 27:return us(t,r),e.abrupt("break",29);case 29:e.next=37;break;case 31:if(e.prev=31,e.t1=e.catch(1),!(e.t1 instanceof Ct)){e.next=35;break}throw e.t1;case 35:return q("Invalid cMap data: "+e.t1),e.abrupt("continue",0);case 37:e.next=0;break;case 39:if(!n&&a&&(n=a),!n){e.next=42;break}return e.abrupt("return",Bs(t,A,n));case 42:return e.abrupt("return",t);case 43:case"end":return e.stop()}}),e,null,[[1,31]])})))).apply(this,arguments)}function Bs(e,t,r){return Qs.apply(this,arguments)}function Qs(){return(Qs=jo(To().mark((function e(t,r,A){var n,i;return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Es(A,r);case 2:if(t.useCMap=e.sent,0===t.numCodespaceRanges){for(n=t.useCMap.codespaceRanges,i=0;i=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function Ps(e,t){if(e){if("string"==typeof e)return Os(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Os(e,t):void 0}}function Os(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r=t)throw new re("Invalid CFF header");0!==r&&(T("cff data is shifted"),e=e.subarray(r),this.bytes=e);var A=e[0],n=e[1],i=e[2],a=e[3];return{obj:new zs(A,n,i,a),endPos:i}}},{key:"parseDict",value:function(e){var t=0;var r,A=[],n=[];t=0;for(var i=e.length;t>4,o=15&i;if(15===a)break;if(r+=A[a],15===o)break;r+=A[o]}return parseFloat(r)}():28===r?r=((r=e[t++])<<24|e[t++]<<16)>>16:29===r?r=(r=(r=(r=e[t++])<<8|e[t++])<<8|e[t++])<<8|e[t++]:r>=32&&r<=246?r-139:r>=247&&r<=250?256*(r-247)+e[t++]+108:r>=251&&r<=254?-256*(r-251)-e[t++]-108:(q('CFFParser_parseDict: "'+r+'" is a reserved command.'),NaN)))}return n}},{key:"parseIndex",value:function(e){var t,r,A=new ec,n=this.bytes,i=n[e++]<<8|n[e++],a=[],o=e;if(0!==i){var s=n[e++],c=e+(i+1)*s-1;for(t=0,r=i+1;t10)return!1;for(var n=e.stackSize,i=e.stack,a=t.length,o=0;o>16,o+=2,n++;else if(14===s){if(n>=4&&(n-=4,this.seacAnalysisEnabled))return e.seac=i.slice(n,n+4),!1;c=Zs[s]}else if(s>=32&&s<=246)i[n]=s-139,n++;else if(s>=247&&s<=254)i[n]=s<251?(s-247<<8)+t[o]+108:-(s-251<<8)-t[o]-108,o++,n++;else if(255===s)i[n]=(t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3])/65536,o+=4,n++;else if(19===s||20===s){if(e.hints+=n>>1,0===e.hints){t.copyWithin(o-1,o,-1),o-=1,a-=1;continue}o+=e.hints+7>>3,n%=2,c=Zs[s]}else{if(10===s||29===s){var u=10===s?r:A;if(!u)return q("Missing subrsIndex for "+(c=Zs[s]).id),!1;var l=32768;u.count<1240?l=107:u.count<33900&&(l=1131);var h=i[--n]+l;if(h<0||h>=u.count||isNaN(h))return q("Out of bounds subrIndex for "+(c=Zs[s]).id),!1;if(e.stackSize=n,e.callDepth++,!this.parseCharString(e,u.get(h),r,A))return!1;e.callDepth--,n=e.stackSize;continue}if(11===s)return e.stackSize=n,!0;if(0===s&&o===t.length)t[o-1]=14,c=Zs[14];else{if(9===s){t.copyWithin(o-1,o,-1),o-=1,a-=1;continue}c=Zs[s]}}if(c){if(c.stem&&(e.hints+=n>>1,3===s||23===s?e.hasVStems=!0:!e.hasVStems||1!==s&&18!==s||(q("CFF stem hints are in wrong order"),t[o-1]=1===s?3:23)),"min"in c&&!e.undefStack&&n=2&&c.stem?n%=2:n>1&&q("Found too many parameters for stack-clearing command"),n>0&&(e.width=i[n-1])),"stackDelta"in c?("stackFn"in c&&c.stackFn(i,n),n+=c.stackDelta):c.stackClearing?n=0:c.resetStack?(n=0,e.undefStack=!1):c.undefStack&&(n=0,e.undefStack=!0,e.firstStackClearing=!1)}}return a=i.length&&(q("Invalid fd index for glyph index."),h=!1),h&&(I=(f=i[C].privateDict).subrsIndex)}else r&&(I=r);if(h&&(h=this.parseCharString(l,u,I,A)),null!==l.width){var B=f.getByName("nominalWidthX");s[g]=B+l.width}else{var Q=f.getByName("defaultWidthX");s[g]=Q}null!==l.seac&&(o[g]=l.seac),h||t.set(g,new Uint8Array([14]))}return{charStrings:t,seacs:o,widths:s}}},{key:"emptyPrivateDictionary",value:function(e){var t=this.createDict(ic,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}},{key:"parsePrivateDict",value:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if(Array.isArray(t)&&2===t.length){var r=t[0],A=t[1];if(0===r||A>=this.bytes.length)this.emptyPrivateDictionary(e);else{var n=A+r,i=this.bytes.subarray(A,n),a=this.parseDict(i),o=this.createDict(ic,a,e.strings);if(e.privateDict=o,0===o.getByName("ExpansionFactor")&&o.setByName("ExpansionFactor",.06),o.getByName("Subrs")){var s=o.getByName("Subrs"),c=A+s;if(0===s||c>=this.bytes.length)this.emptyPrivateDictionary(e);else{var g=this.parseIndex(c);o.subrsIndex=g.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)}},{key:"parseCharsets",value:function(e,t,r,A){if(0===e)return new oc(!0,ac.ISO_ADOBE,ps);if(1===e)return new oc(!0,ac.EXPERT,vs);if(2===e)return new oc(!0,ac.EXPERT_SUBSET,ms);var n,i,a,o=this.bytes,s=e,c=o[e++],g=[A?0:".notdef"];switch(t-=1,c){case 0:for(a=0;a=65535)q("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])}}},{key:"hasGlyphId",value:function(e){return!(e<0||e>=this.charStrings.count)&&this.charStrings.get(e).length>0}}])}(),zs=qs((function e(t,r,A,n){Ks(this,e),this.major=t,this.minor=r,this.hdrSize=A,this.offSize=n})),$s=function(){return qs((function e(){Ks(this,e),this.strings=[]}),[{key:"get",value:function(e){return e>=0&&e<=390?Ws[e]:e-391<=this.strings.length?this.strings[e-391]:Ws[0]}},{key:"getSID",value:function(e){var t=Ws.indexOf(e);return-1!==t?t:-1!==(t=this.strings.indexOf(e))?t+391:-1}},{key:"add",value:function(e){this.strings.push(e)}},{key:"count",get:function(){return this.strings.length}}])}(),ec=function(){return qs((function e(){Ks(this,e),this.objects=[],this.length=0}),[{key:"add",value:function(e){this.length+=e.length,this.objects.push(e)}},{key:"set",value:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}},{key:"get",value:function(e){return this.objects[e]}},{key:"count",get:function(){return this.objects.length}}])}(),tc=function(){return qs((function e(t,r){Ks(this,e),this.keyToNameMap=t.keyToNameMap,this.nameToKeyMap=t.nameToKeyMap,this.defaults=t.defaults,this.types=t.types,this.opcodes=t.opcodes,this.order=t.order,this.strings=r,this.values=Object.create(null)}),[{key:"setByKey",value:function(e,t){if(!(e in this.keyToNameMap))return!1;if(0===t.length)return!0;var r,A=Ys(t);try{for(A.s();!(r=A.n()).done;){var n=r.value;if(isNaN(n))return q('Invalid CFFDict value: "'.concat(t,'" for key "').concat(e,'".')),!0}}catch(e){A.e(e)}finally{A.f()}var i=this.types[e];return"num"!==i&&"sid"!==i&&"offset"!==i||(t=t[0]),this.values[e]=t,!0}},{key:"setByName",value:function(e,t){if(!(e in this.nameToKeyMap))throw new re('Invalid dictionary name "'.concat(e,'"'));this.values[this.nameToKeyMap[e]]=t}},{key:"hasName",value:function(e){return this.nameToKeyMap[e]in this.values}},{key:"getByName",value:function(e){if(!(e in this.nameToKeyMap))throw new re("Invalid dictionary name ".concat(e,'"'));var t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]}},{key:"removeByName",value:function(e){delete this.values[this.nameToKeyMap[e]]}}],[{key:"createTables",value:function(e){var t,r={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},A=Ys(e);try{for(A.s();!(t=A.n()).done;){var n=t.value,i=Array.isArray(n[0])?(n[0][0]<<8)+n[0][1]:n[0];r.keyToNameMap[i]=n[1],r.nameToKeyMap[n[1]]=i,r.types[i]=n[2],r.defaults[i]=n[3],r.opcodes[i]=Array.isArray(n[0])?n[0]:[n[0]],r.order.push(i)}}catch(e){A.e(e)}finally{A.f()}return r}}])}(),rc=[[[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]],Ac=function(e){function t(e){var r;return Ks(this,t),(r=Ns(this,t,[t.tables,e])).privateDict=null,r}return Ms(t,tc),qs(t,null,[{key:"tables",get:function(){return _(this,"tables",this.createTables(rc))}}])}(),nc=[[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]],ic=function(e){function t(e){var r;return Ks(this,t),(r=Ns(this,t,[t.tables,e])).subrsIndex=null,r}return Ms(t,tc),qs(t,null,[{key:"tables",get:function(){return _(this,"tables",this.createTables(nc))}}])}(),ac={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},oc=qs((function e(t,r,A,n){Ks(this,e),this.predefined=t,this.format=r,this.charset=A,this.raw=n})),sc=qs((function e(t,r,A,n){Ks(this,e),this.predefined=t,this.format=r,this.encoding=A,this.raw=n})),cc=function(){return qs((function e(t,r){Ks(this,e),this.format=t,this.fdSelect=r}),[{key:"getFDIndex",value:function(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}])}(),gc=function(){return qs((function e(){Ks(this,e),this.offsets=Object.create(null)}),[{key:"isTracking",value:function(e){return e in this.offsets}},{key:"track",value:function(e,t){if(e in this.offsets)throw new re("Already tracking location of ".concat(e));this.offsets[e]=t}},{key:"offset",value:function(e){for(var t in this.offsets)this.offsets[t]+=e}},{key:"setEntryLocation",value:function(e,t,r){if(!(e in this.offsets))throw new re("Not tracking location of ".concat(e));for(var A=r.data,n=this.offsets[e],i=0,a=t.length;i>24&255,A[c]=l>>16&255,A[g]=l>>8&255,A[u]=255&l}}}])}(),uc=function(){function e(t){Ks(this,e),this.cff=t}return qs(e,[{key:"compile",value:function(){var e=this.cff,t={data:[],length:0,add(e){try{var t;(t=this.data).push.apply(t,Gs(e))}catch(t){this.data=this.data.concat(e)}this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var A=this.compileNameIndex(e.names);if(t.add(A),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var n=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");var i,a=Ys(e.fdArray);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=n.slice(0);o.hasName("FontMatrix")&&(s=ge.transform(s,o.getByName("FontMatrix"))),o.setByName("FontMatrix",s)}}catch(e){a.e(e)}finally{a.f()}}var c=e.topDict.getByName("XUID");(null==c?void 0:c.length)>16&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0);var g=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(g.output);var u=g.trackers[0],l=this.compileStringIndex(e.strings.strings);t.add(l);var h=this.compileIndex(e.globalSubrIndex);if(t.add(h),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)u.setEntryLocation("Encoding",[e.encoding.format],t);else{var I=this.compileEncoding(e.encoding);u.setEntryLocation("Encoding",[t.length],t),t.add(I)}var f=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);u.setEntryLocation("charset",[t.length],t),t.add(f);var C=this.compileCharStrings(e.charStrings);if(u.setEntryLocation("CharStrings",[t.length],t),t.add(C),e.isCIDFont){u.setEntryLocation("FDSelect",[t.length],t);var B=this.compileFDSelect(e.fdSelect);t.add(B),g=this.compileTopDicts(e.fdArray,t.length,!0),u.setEntryLocation("FDArray",[t.length],t),t.add(g.output);var Q=g.trackers;this.compilePrivateDicts(e.fdArray,Q,t)}return this.compilePrivateDicts([e.topDict],[u],t),t.add([0]),t.data}},{key:"encodeNumber",value:function(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}},{key:"encodeFloat",value:function(t){var r=t.toString(),A=e.EncodeFloatRegExp.exec(r);if(A){var n=parseFloat("1e"+((A[2]?+A[2]:0)+A[1].length));r=(Math.round(t*n)/n).toString()}var i,a,o="";for(i=0,a=r.length;i=-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]}},{key:"compileHeader",value:function(e){return[e.major,e.minor,4,e.offSize]}},{key:"compileNameIndex",value:function(e){var t,r=new ec,A=Ys(e);try{for(A.s();!(t=A.n()).done;){for(var n=t.value,i=Math.min(n.length,127),a=new Array(i),o=0;o"~"||"["===s||"]"===s||"("===s||")"===s||"{"===s||"}"===s||"<"===s||">"===s||"/"===s||"%"===s)&&(s="_"),a[o]=s}""===(a=a.join(""))&&(a="Bad_Font_Name"),r.add(ie(a))}}catch(e){A.e(e)}finally{A.f()}return this.compileIndex(r)}},{key:"compileTopDicts",value:function(e,t,r){var A,n=[],i=new ec,a=Ys(e);try{for(a.s();!(A=a.n()).done;){var o=A.value;r&&(o.removeByName("CIDFontVersion"),o.removeByName("CIDFontRevision"),o.removeByName("CIDFontType"),o.removeByName("CIDCount"),o.removeByName("UIDBase"));var s=new gc,c=this.compileDict(o,s);n.push(s),i.add(c),s.offset(t)}}catch(e){a.e(e)}finally{a.f()}return{trackers:n,output:i=this.compileIndex(i,n)}}},{key:"compilePrivateDicts",value:function(e,t,r){for(var A=0,n=e.length;A>8&255,255&i]);else{(n=new Uint8Array(1+2*i))[0]=0;for(var a=0,o=e.charset.length,s=!1,c=1;c>8&255,n[c+1]=255&g}}return this.compileTypedArray(n)}},{key:"compileEncoding",value:function(e){return this.compileTypedArray(e.raw)}},{key:"compileFDSelect",value:function(e){var t,r,A=e.format;switch(A){case 0:for((t=new Uint8Array(1+e.fdSelect.length))[0]=A,r=0;r>8&255,255&r,a),n=a)}var o=(i.length-3)/3;i[1]=o>>8&255,i[2]=255&o,i.push(r>>8&255,255&r),t=new Uint8Array(i)}return this.compileTypedArray(t)}},{key:"compileTypedArray",value:function(e){return Array.from(e)}},{key:"compileIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.objects,A=r.length;if(0===A)return[0,0];var n,i,a=[A>>8&255,255&A],o=1;for(n=0;n>8&255,255&s):3===i?a.push(s>>16&255,s>>8&255,255&s):a.push(s>>>24&255,s>>16&255,s>>8&255,255&s),r[n]&&(s+=r[n].length);for(n=0;n=5&&n<=7))return-1;A=e.substring(1)}if(A===A.toUpperCase()&&(r=parseInt(A,16))>=0)return r}return-1}var Cc=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]];function Bc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(-1!==t)for(var r=Cc[t],A=0,n=r.length;A=r[A]&&e<=r[A+1])return t;for(var i=0,a=Cc.length;i=o[s]&&e<=o[s+1])return i;return-1}var Qc=new RegExp("^(\\\\s)|(\\\\p{Mn})|(\\\\p{Cf})$","u"),Ec=new Map,dc=!0,yc=[".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 pc(e,t){if(void 0!==t[e])return e;var r=fc(e,t);if(-1!==r)for(var A in t)if(t[A]===r)return A;return T("Unable to recover a standard glyph name for: "+e),e}function vc(e,t,r){var A,n,i,a=Object.create(null),o=!!(4&e.flags);if(e.isInternalFont)for(i=t,n=0;n=0?A:0;else if(e.baseEncodingName)for(i=Rs(e.baseEncodingName),n=0;n=0?A:0;else if(o)for(n in t)a[n]=t[n];else for(i=Ds,n=0;n=0?A:0;var s,c=e.differences;if(c)for(n in c){var g=c[n];if(-1===(A=r.indexOf(g))){s||(s=lc());var u=pc(g,s);u!==g&&(A=r.indexOf(u))}a[n]=A>=0?A:0}return a}function mc(e){return e.replaceAll(/[,_]/g,"-").replaceAll(/\\s/g,"")}var wc=ft((function(e){e[8211]=65074,e[8212]=65073,e[8229]=65072,e[8230]=65049,e[12289]=65041,e[12290]=65042,e[12296]=65087,e[12297]=65088,e[12298]=65085,e[12299]=65086,e[12300]=65089,e[12301]=65090,e[12302]=65091,e[12303]=65092,e[12304]=65083,e[12305]=65084,e[12308]=65081,e[12309]=65082,e[12310]=65047,e[12311]=65048,e[65103]=65076,e[65281]=65045,e[65288]=65077,e[65289]=65078,e[65292]=65040,e[65306]=65043,e[65307]=65044,e[65311]=65046,e[65339]=65095,e[65341]=65096,e[65343]=65075,e[65371]=65079,e[65373]=65080})),bc=ft((function(e){e["Times-Roman"]="Times-Roman",e.Helvetica="Helvetica",e.Courier="Courier",e.Symbol="Symbol",e["Times-Bold"]="Times-Bold",e["Helvetica-Bold"]="Helvetica-Bold",e["Courier-Bold"]="Courier-Bold",e.ZapfDingbats="ZapfDingbats",e["Times-Italic"]="Times-Italic",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Courier-Oblique"]="Courier-Oblique",e["Times-BoldItalic"]="Times-BoldItalic",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Courier-BoldOblique"]="Courier-BoldOblique",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.ArialMT="Helvetica",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",e["Arial-BoldMT-Bold"]="Helvetica-Bold",e["Arial-ItalicMT-Italic"]="Helvetica-Oblique",e.ArialUnicodeMS="Helvetica",e["ArialUnicodeMS-Bold"]="Helvetica-Bold",e["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",e["ArialUnicodeMS-Italic"]="Helvetica-Oblique",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-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="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"})),kc=ft((function(e){e.Courier="FoxitFixed.pfb",e["Courier-Bold"]="FoxitFixedBold.pfb",e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",e["Courier-Oblique"]="FoxitFixedItalic.pfb",e.Helvetica="LiberationSans-Regular.ttf",e["Helvetica-Bold"]="LiberationSans-Bold.ttf",e["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",e["Helvetica-Oblique"]="LiberationSans-Italic.ttf",e["Times-Roman"]="FoxitSerif.pfb",e["Times-Bold"]="FoxitSerifBold.pfb",e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",e["Times-Italic"]="FoxitSerifItalic.pfb",e.Symbol="FoxitSymbol.pfb",e.ZapfDingbats="FoxitDingbats.pfb",e["LiberationSans-Regular"]="LiberationSans-Regular.ttf",e["LiberationSans-Bold"]="LiberationSans-Bold.ttf",e["LiberationSans-Italic"]="LiberationSans-Italic.ttf",e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"})),Dc=ft((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.GillSansMT="Helvetica",e["GillSansMT-Bold"]="Helvetica-Bold",e["GillSansMT-BoldItalic"]="Helvetica-BoldOblique",e["GillSansMT-Italic"]="Helvetica-Oblique",e.Impact="Helvetica",e["ItcSymbol-Bold"]="Helvetica-Bold",e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",e["ItcSymbol-Book"]="Helvetica",e["ItcSymbol-BookItalic"]="Helvetica-Oblique",e["ItcSymbol-Medium"]="Helvetica",e["ItcSymbol-MediumItalic"]="Helvetica-Oblique",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"})),Sc=ft((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.LiberationSerif=!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})),Fc=ft((function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0,e.Wingdings=!0,e["Wingdings-Bold"]=!0,e["Wingdings-Regular"]=!0})),xc=ft((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[179]=8220,e[180]=8221,e[181]=8216,e[182]=8217,e[200]=193,e[203]=205,e[207]=211,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,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[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,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[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507,e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,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})),Rc=ft((function(e){e[227]=322,e[264]=261,e[291]=346})),Gc=ft((function(e){e[1]=32,e[4]=65,e[5]=192,e[6]=193,e[9]=196,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[29]=200,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[48]=204,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[76]=210,e[80]=214,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[109]=220,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[259]=224,e[260]=225,e[263]=228,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[287]=232,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[350]=236,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[382]=242,e[383]=243,e[386]=246,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[442]=252,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,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}));function Nc(e){var t=mc(e);return bc()[t]}function Lc(e){var t=mc(e);return!!(bc()[t]||Dc()[t]||Sc()[t]||Fc()[t])}function Uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mc(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];Uc(this,e),this._map=t}),[{key:"length",get:function(){return this._map.length}},{key:"forEach",value:function(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))}},{key:"has",value:function(e){return void 0!==this._map[e]}},{key:"get",value:function(e){return this._map[e]}},{key:"charCodeOf",value:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1}},{key:"amend",value:function(e){for(var t in e)this._map[t]=e[t]}}])}(),Pc=function(){return Jc((function e(t,r){Uc(this,e),this.firstChar=t,this.lastChar=r}),[{key:"length",get:function(){return this.lastChar+1-this.firstChar}},{key:"forEach",value:function(e){for(var t=this.firstChar,r=this.lastChar;t<=r;t++)e(t,t)}},{key:"has",value:function(e){return this.firstChar<=e&&e<=this.lastChar}},{key:"get",value:function(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}},{key:"amend",value:function(e){j("Should not call amend()")}}])}();function Oc(e,t){for(var r=0;r0){o=Object.create(null);for(var c=0,g=n.length;c=0){var s=A[o];s&&(i[a]=s)}}i.length>0&&(this.properties.builtInEncoding=i)}}}])&&Oc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qc(e,t,r){return t=Wc(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jc()?Reflect.construct(t,r||[],Wc(e).constructor):t.apply(e,r))}function jc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jc=function(){return!!e})()}function Wc(e){return Wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wc(e)}function Zc(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_c(e,t)}function _c(e,t){return _c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_c(e,t)}function Xc(e){return function(e){if(Array.isArray(e))return Vc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Vc(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vc(e,t):void 0}}(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 Vc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r>>0}function Ag(e,t){return e[t]<<8|e[t+1]}function ng(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function ig(e,t){return e[t]<<24>>24}function ag(e,t){return ng(e,t)/16384}function og(e){var t=e.length,r=32768;return t<1240?r=107:t<33900&&(r=1131),r}function sg(e,t,r){var A,n,i,a=1===Ag(e,t+2)?rg(e,t+8):rg(e,t+16),o=Ag(e,t+a);if(4===o){Ag(e,t+a+2);var s=Ag(e,t+a+6)>>1;for(n=t+a+14,A=[],i=0;i>1;r0;)v.push({flags:a})}for(E=0;E>1,h=!0;break;case 4:c+=o.pop(),n(s,c),h=!0;break;case 5:for(;o.length>0;)s+=o.shift(),c+=o.shift(),i(s,c);break;case 6:for(;o.length>0&&(i(s+=o.shift(),c),0!==o.length);)c+=o.shift(),i(s,c);break;case 7:for(;o.length>0&&(c+=o.shift(),i(s,c),0!==o.length);)i(s+=o.shift(),c);break;case 8:for(;o.length>0;)f=s+o.shift(),B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s,c);break;case 10:if(y=o.pop(),p=null,r.isCFFCIDFont){var v=r.fdSelect.getFDIndex(A);if(v>=0&&vMath.abs(c-D)?s+=o.shift():c+=o.shift(),a(f,B,C,Q,s,c);break;default:throw new re("unknown operator: 12 ".concat(I))}break;case 14:if(o.length>=4){var S=o.pop(),F=o.pop();c=o.pop(),s=o.pop(),t.add(5),t.add(8,[s,c]);var x=gg(r.cmap,String.fromCharCode(r.glyphNameMap[Ds[S]]));lg(r.glyphs[x.glyphId],t,r,x.glyphId),t.add(4),x=gg(r.cmap,String.fromCharCode(r.glyphNameMap[Ds[F]])),lg(r.glyphs[x.glyphId],t,r,x.glyphId)}return;case 19:case 20:l+=(g+=o.length>>1)+7>>3,h=!0;break;case 21:c+=o.pop(),n(s+=o.pop(),c),h=!0;break;case 22:n(s+=o.pop(),c),h=!0;break;case 24:for(;o.length>2;)f=s+o.shift(),B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s,c);s+=o.shift(),c+=o.shift(),i(s,c);break;case 25:for(;o.length>6;)s+=o.shift(),c+=o.shift(),i(s,c);f=s+o.shift(),B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s,c);break;case 26:for(o.length%2&&(s+=o.shift());o.length>0;)f=s,B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C,c=Q+o.shift(),a(f,B,C,Q,s,c);break;case 27:for(o.length%2&&(c+=o.shift());o.length>0;)a(f=s+o.shift(),B=c,C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q);break;case 28:o.push((u[l]<<24|u[l+1]<<16)>>16),l+=2;break;case 29:y=o.pop()+r.gsubrsBias,(p=r.gsubrs[y])&&e(p);break;case 30:for(;o.length>0&&(f=s,B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+(1===o.length?o.shift():0),a(f,B,C,Q,s,c),0!==o.length);)f=s+o.shift(),B=c,C=f+o.shift(),Q=B+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s=C+(1===o.length?o.shift():0),c);break;case 31:for(;o.length>0&&(f=s+o.shift(),B=c,C=f+o.shift(),Q=B+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s=C+(1===o.length?o.shift():0),c),0!==o.length);)f=s,B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+(1===o.length?o.shift():0),a(f,B,C,Q,s,c);break;default:if(I<32)throw new re("unknown operator: ".concat(I));I<247?o.push(I-139):I<251?o.push(256*(I-247)+u[l++]+108):I<255?o.push(256*-(I-251)-u[l++]-108):(o.push((u[l]<<24|u[l+1]<<16|u[l+2]<<8|u[l+3])/65536),l+=4)}h&&(o.length=0)}}(e)}var hg=[],Ig=function(){return eg((function e(){var t,r,A;zc(this,e),t=this,A=[],(r=tg(r="cmds"))in t?Object.defineProperty(t,r,{value:A,enumerable:!0,configurable:!0,writable:!0}):t[r]=A}),[{key:"add",value:function(e,t){if(t)if(St(t,null)){var r;(r=this.cmds).push.apply(r,[e].concat(Xc(t)))}else{var A;q('Commands.add - "'.concat(e,'" has at least one non-number arg: "').concat(t,'".'));var n=t.map((function(e){return"number"==typeof e?e:0}));(A=this.cmds).push.apply(A,[e].concat(Xc(n)))}else this.cmds.push(e)}}])}(),fg=function(){return eg((function e(t){zc(this,e),this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}),[{key:"getPathJs",value:function(e){var t,r,A,n=gg(this.cmap,e),i=n.charCode,a=n.glyphId,o=this.compiledGlyphs[a];if(!o){try{o=this.compileGlyph(this.glyphs[a],a)}catch(e){o=hg,A=e}this.compiledGlyphs[a]=o}if(null!==(r=(t=this.compiledCharCodeToGlyphId)[i])&&void 0!==r||(t[i]=a),A)throw A;return o}},{key:"compileGlyph",value:function(e,t){if(!e||0===e.length||14===e[0])return hg;var r=this.fontMatrix;if(this.isCFFCIDFont){var A=this.fdSelect.getFDIndex(t);A>=0&&A=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function vg(e,t){if(e){if("string"==typeof e)return mg(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mg(e,t):void 0}}function mg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r131070,A=r?4:2,n=new DataView(new ArrayBuffer((this.glyphs.length+1)*A));r?n.setUint32(0,0):n.setUint16(0,0);var i,a=0,o=0,s=pg(this.glyphs);try{for(s.s();!(i=s.n()).done;)a=(a+=i.value.write(a,t))+3&-4,o+=A,r?n.setUint32(o,a):n.setUint16(o,a>>1)}catch(e){s.e(e)}finally{s.f()}return{isLocationLong:r,loca:new Uint8Array(n.buffer),glyf:new Uint8Array(t.buffer)}}},{key:"scale",value:function(e){for(var t=0,r=this.glyphs.length;t255?t+=2:g>0&&(t+=1),r=s,(g=Math.abs(c-A))>255?t+=2:g>0&&(t+=1),A=c}}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"write",value:function(e,t){var r,A=e,n=[],i=[],a=[],o=0,s=0,c=pg(this.contours);try{for(c.s();!(r=c.n()).done;){for(var g=r.value,u=0,l=g.xCoordinates.length;u=0?18:2,n.push(C)):n.push(f)}o=I;var B=g.yCoordinates[u];if(0==(f=B-s))h|=32,i.push(0);else{var Q=Math.abs(f);Q<=255?(h|=f>=0?36:4,i.push(Q)):i.push(f)}s=B,a.push(h)}t.setUint16(e,n.length-1),e+=2}}catch(e){c.e(e)}finally{c.f()}t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length);for(var E=0,d=a;E=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2),e}},{key:"write",value:function(e,t){var r=e;return 2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,1&this.flags?(2&this.flags?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),256&this.flags&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)),e-r}},{key:"scale",value:function(e,t){}}],[{key:"parse",value:function(t,r){var A,n,i=t,a=[],o=r.getUint16(t),s=r.getUint16(t+2);t+=4,1&o?(2&o?(A=r.getInt16(t),n=r.getInt16(t+2)):(A=r.getUint16(t),n=r.getUint16(t+2)),t+=4,o^=1):(2&o?(A=r.getInt8(t),n=r.getInt8(t+1)):(A=r.getUint8(t),n=r.getUint8(t+1)),t+=2),8&o?(a.push(r.getUint16(t)),t+=2):64&o?(a.push(r.getUint16(t),r.getUint16(t+2)),t+=4):128&o&&(a.push(r.getUint16(t),r.getUint16(t+2),r.getUint16(t+4),r.getUint16(t+6)),t+=8);var c=null;if(256&o){var g=r.getUint16(t);t+=2,c=new Uint8Array(r).slice(t,t+g),t+=g}return[t-i,new e({flags:o,glyphIndex:s,argument1:A,argument2:n,transf:a,instructions:c})]}}])}();function Lg(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,A=Array(t);r>8&255,e[t+1]=255&r}function Hg(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function Yg(e,t,r){if(r instanceof Uint8Array)e.set(r,t);else if("string"==typeof r)for(var A=0,n=r.length;A=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(r);try{for(a.s();!(i=a.n()).done;){var o=i.value;e[t++]=255&o}}catch(e){a.e(e)}finally{a.f()}}}var Pg=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sfnt=t,this.tables=Object.create(null)}return t=e,A=[{key:"getSearchParams",value:function(e,t){for(var r=1,A=0;(r^e)>r;)r<<=1,A++;var n=r*t;return{range:n,entry:A,rangeShift:t*e-n}}}],(r=[{key:"toArray",value:function(){var t=this.sfnt,r=this.tables,A=Object.keys(r);A.sort();var n,i,a,o,s,c=A.length,g=12+16*c,u=[g];for(n=0;n>>0,u.push(g);var l=new Uint8Array(g);for(n=0;n>>0;Hg(l,g+4,I),Hg(l,g+8,u[n]),Hg(l,g+12,r[s].length),g+=16}return l}},{key:"addTable",value:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}])&&Lg(t.prototype,r),A&&Lg(t,A),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,A}();function Og(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);rn)return!0;for(var i=n-e,a=i;a>8&255,255&o):(o=65536*o|0,this.output.push(255,o>>24&255,o>>16&255,o>>8&255,255&o))}return(A=this.output).push.apply(A,function(e){return function(e){if(Array.isArray(e))return Og(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Og(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Og(e,t):void 0}}(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.")}()}(t)),r?this.stack.splice(i,e):this.stack.length=0,!1}}])}();function iu(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function au(e,t,r){if(r>=e.length)return new Uint8Array(0);var A,n,i=0|t;for(A=0;A>8,i=52845*(s+i)+22719&65535}return o}function ou(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}var su=function(){return qg((function e(t,r,A){if(Kg(this,e),r){var n=t.getBytes(),i=!((iu(n[0])||Dt(n[0]))&&iu(n[1])&&iu(n[2])&&iu(n[3])&&iu(n[4])&&iu(n[5])&&iu(n[6])&&iu(n[7]));t=new ar(i?au(n,55665,4):function(e,t,r){var A,n,i=55665,a=e.length,o=new Uint8Array(a>>>1);for(A=0,n=0;A>8,i=52845*(g+i)+22719&65535}}}return o.slice(4,n)}(n))}this.seacAnalysisEnabled=!!A,this.stream=t,this.nextChar()}),[{key:"readNumberArray",value:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}},{key:"readNumber",value:function(){var e=this.getToken();return parseFloat(e||0)}},{key:"readInt",value:function(){var e=this.getToken();return 0|parseInt(e||0,10)}},{key:"readBoolean",value:function(){return"true"===this.getToken()?1:0}},{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"prevChar",value:function(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}},{key:"getToken",value: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(!Dt(t))break;t=this.nextChar()}if(ou(t))return this.nextChar(),String.fromCharCode(t);var r="";do{r+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!Dt(t)&&!ou(t));return r}},{key:"readCharStrings",value:function(e,t){return-1===t?e:au(e,4330,t)}},{key:"extractFontProgram",value:function(e){var t=this.stream,r=[],A=[],n=Object.create(null);n.lenIV=4;for(var i,a,o,s,c={subrs:[],charstrings:[],properties:{privateData:n}};null!==(i=this.getToken());)if("/"===i)switch(i=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(i=this.getToken())&&"end"!==i;)if("/"===i){var g=this.getToken();a=this.readInt(),this.getToken(),o=a>0?t.getBytes(a):new Uint8Array(0),s=c.properties.privateData.lenIV;var u=this.readCharStrings(o,s);this.nextChar(),"noaccess"===(i=this.getToken())?this.getToken():"/"===i&&this.prevChar(),A.push({glyph:g,encoded:u})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){var l=this.readInt();a=this.readInt(),this.getToken(),o=a>0?t.getBytes(a):new Uint8Array(0),s=c.properties.privateData.lenIV;var h=this.readCharStrings(o,s);this.nextChar(),"noaccess"===(i=this.getToken())&&this.getToken(),r[l]=h}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var I=this.readNumberArray();I.length>0&&I.length;break;case"StemSnapH":case"StemSnapV":c.properties.privateData[i]=this.readNumberArray();break;case"StdHW":case"StdVW":c.properties.privateData[i]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":c.properties.privateData[i]=this.readNumber();break;case"ExpansionFactor":c.properties.privateData[i]=this.readNumber()||.06;break;case"ForceBold":c.properties.privateData[i]=this.readBoolean()}for(var f=0,C=A;f-1&&void 0===e.widths[m]&&m>=e.firstChar&&m<=e.lastChar&&(e.widths[m]=d.width)}}return c}},{key:"extractFontHeader",value:function(e){for(var t;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken()){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":var A=this.getToken(),n=void 0;if(/^\\d+$/.test(A)){n=[];var i=0|parseInt(A,10);this.getToken();for(var a=0;a=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function gu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r=n){for(a+=s;a=0&&(i[c]=a);return vc(e,i,o)}},{key:"hasGlyphId",value:function(e){return!(e<0||e>=this.numGlyphs)&&(0===e||this.charstrings[e-1].charstring.length>0)}},{key:"getSeacs",value:function(e){for(var t=[],r=0,A=e.length;r0;Q--)B[Q]-=B[Q-1];I.setByName(C,B)}}i.topDict.privateDict=I;var E=new ec;for(s=0,c=A.length;s=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function pu(e,t){if(e){if("string"==typeof e)return vu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vu(e,t):void 0}}function vu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r0&&e.toUnicode.amend(t)}}var Fu=function(){return Eu((function e(t,r,A,n,i,a,o,s,c){Bu(this,e),this.originalCharCode=t,this.fontChar=r,this.unicode=A,this.accent=n,this.width=i,this.vmetric=a,this.operatorListId=o,this.isSpace=s,this.isInFont=c}),[{key:"category",get:function(){return _(this,"category",function(e){var t=Ec.get(e);if(t)return t;var r=e.match(Qc),A={isWhitespace:!(null==r||!r[1]),isZeroWidthDiacritic:!(null==r||!r[2]),isInvisibleFormatMark:!(null==r||!r[3])};return Ec.set(e,A),A}(this.unicode),!0)}}])}();function xu(e,t){return(e<<8)+t}function Ru(e,t,r){e[t+1]=r,e[t]=r>>>8}function Gu(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r}function Nu(e){return String.fromCharCode(e>>8&255,255&e)}function Lu(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function Uu(e){return"ttcf"===ne(e.peekBytes(4))}function Mu(e,t){for(var r in t)e[+r]=t[r]}function Ju(e,t,r){for(var A,n=[],i=0,a=e.length;i2&&void 0!==arguments[2]&&arguments[2];switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}var A="Unsupported CID string (charCode ".concat(e,'): "').concat(t,'".');if(r)throw new re(A);return q(A),t}function Ou(e,t,r,A){var n,i=Object.create(null),a=new Map,o=[],s=new Set,c=0,g=mu[c][0],u=mu[c][1];for(var l in e){var h=e[l];if(t(h)){if(g>u){if(++c>=mu.length){q("Ran out of space in font private use area.");break}g=mu[c][0],u=mu[c][1]}var I=g++;0===h&&(h=r);var f=A.get(l);"string"==typeof f&&(f=f.codePointAt(0)),!f||(n=f,mu[0][0]<=n&&n<=mu[0][1]||mu[1][0]<=n&&n<=mu[1][1])||s.has(h)||(a.set(f,h),s.add(h)),i[I]=h,o[l]=I}}return{toFontChar:o,charCodeToGlyphId:i,toUnicodeExtraMap:a,nextAvailableFontCharCode:g}}function Ku(e,t,r){var A,n,i,a,o=function(e,t,r){var A=[];for(var n in e)e[n]>=r||A.push({fontCharCode:0|n,glyphId:e[n]});if(t){var i,a=yu(t);try{for(a.s();!(i=a.n()).done;){var o=Cu(i.value,2),s=o[0],c=o[1];c>=r||A.push({fontCharCode:s,glyphId:c})}}catch(e){a.e(e)}finally{a.f()}}0===A.length&&A.push({fontCharCode:0,glyphId:0}),A.sort((function(e,t){return e.fontCharCode-t.fontCharCode}));for(var g=[],u=A.length,l=0;l65535?2:1,c="\\0\\0"+Nu(s)+"\\0\\0"+ae(4+8*s);for(A=o.length-1;A>=0&&!(o[A][0]<=65535);--A);var g=A+1;o[A][0]<65535&&65535===o[A][1]&&(o[A][1]=65534);var u,l,h,I,f=o[A][1]<65535?1:0,C=g+f,B=Pg.getSearchParams(C,2),Q="",E="",d="",y="",p="",v=0;for(A=0,n=g;A0&&(E+="ÿÿ",Q+="ÿÿ",d+="\\0",y+="\\0\\0");var b="\\0\\0"+Nu(2*C)+Nu(B.range)+Nu(B.entry)+Nu(B.rangeShift)+E+"\\0\\0"+Q+d+y+p,k="",D="";if(s>1){for(c+="\\0\\0\\n"+ae(4+8*s+4+b.length),k="",A=0,n=o.length;A(g|=0)||!o)&&(o=g),s 123 are reserved for internal usage");a|=1<65535&&(s=65535)}else o=0,s=255;var u=e.bbox||[0,0,0,0],l=r.unitsPerEm||(e.fontMatrix?1/Math.max.apply(Math,fu(e.fontMatrix.slice(0,4).map(Math.abs))):1e3),h=e.ascentScaled?1:l/wu,I=r.ascent||Math.round(h*(e.ascent||u[3])),f=r.descent||Math.round(h*(e.descent||u[1]));f>0&&e.descent>0&&u[1]<0&&(f=-f);var C=r.yMax||I,B=-r.yMin||-f;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"+ae(A)+ae(n)+ae(i)+ae(a)+"*21*"+Nu(e.italicAngle?1:0)+Nu(o||e.firstChar)+Nu(s||e.lastChar)+Nu(I)+Nu(f)+"\\0d"+Nu(C)+Nu(B)+"\\0\\0\\0\\0\\0\\0\\0\\0"+Nu(e.xHeight)+Nu(e.capHeight)+Nu(0)+Nu(o||e.firstChar)+"\\0"}function qu(e){return"\\0\\0\\0"+ae(Math.floor(e.italicAngle*Math.pow(2,16)))+"\\0\\0\\0\\0"+ae(e.fixedPitch?1:0)+"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0"}function ju(e){return e.replaceAll(/[^\\x21-\\x7E]|[[\\](){}<>/%]/g,"").slice(0,63)}function Wu(e,t){t||(t=[[],[]]);var r,A,n,i,a,o=[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]||ju(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],s=[];for(r=0,A=o.length;r=1&&t[3]>=1&&t[3]<=4}(e)?a?(r="CIDFontType0",A="CIDFontType0C"):(r="MMType1"===n?"MMType1":"Type1",A="Type1C"):(q("getFontFileType: Unable to detect correct font file Type/Subtype."),r=n,A=i),[r,A]}(r,A),2);g=I[0],u=I[1],g===this.type&&u===this.subtype||T("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(g,"/").concat(u,"."));try{switch(g){case"MMType1":T("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var f="Type1C"===u||"CIDFontType0C"===u?new Tc(r,A):new Iu(t,r,A);Du(A),h=this.convert(t,f,A);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",h=this.checkAndRepair(t,r,A),this.isOpenType&&(Du(A),g="OpenType");break;default:throw new re("Font ".concat(g," is not supported"))}}catch(e){return q(e),void this.fallbackToSystemFont(A)}Su(A),this.data=h,this.type=g,this.subtype=u,this.fontMatrix=A.fontMatrix,this.widths=A.widths,this.defaultWidth=A.defaultWidth,this.toUnicode=A.toUnicode,this.seacMap=A.seacMap}else for(var C=0;C<256;C++)this.toFontChar[C]=this.differences[C]||A.defaultEncoding[C]}),[{key:"renderer",get:function(){return _(this,"renderer",Qg.create(this,dc))}},{key:"exportData",value:function(){var e,t,r,A=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?[].concat(bu,ku):bu,n=Object.create(null),i=yu(A);try{for(i.s();!(r=i.n()).done;)void 0!==(t=this[e=r.value])&&(n[e]=t)}catch(e){i.e(e)}finally{i.f()}return n}},{key:"fallbackToSystemFont",value:function(e){var t=this;this.missingFile=!0;var r=this.name,A=this.type,n=mc(r),i=bc(),a=Dc(),o=!!i[n],s=!(!a[n]||!i[a[n]]);n=i[n]||a[n]||n;var c=dg()[n];c&&(isNaN(this.ascent)&&(this.ascent=c.ascent/wu),isNaN(this.descent)&&(this.descent=c.descent/wu),isNaN(this.capHeight)&&(this.capHeight=c.capHeight/wu)),this.bold=/bold/gi.test(n),this.italic=/oblique|italic/gi.test(n),this.black=/Black/g.test(r);var g=/Narrow/g.test(r);if(this.remeasure=(!o||g)&&Object.keys(this.widths).length>0,(o||s)&&"CIDFontType2"===A&&this.cidEncoding.startsWith("Identity-")){var u=e.cidToGidMap,l=[];if(Mu(l,xc()),/Arial-?Black/i.test(r)?Mu(l,Rc()):/Calibri/i.test(r)&&Mu(l,Gc()),u){for(var h in l){var I=l[h];void 0!==u[I]&&(l[+h]=u[I])}u.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof Pc&&this.toUnicode.forEach((function(e,t){var r=l[e];void 0===u[r]&&(l[+e]=t)}))}this.toUnicode instanceof Pc||this.toUnicode.forEach((function(e,t){l[+e]=t})),this.toFontChar=l,this.toUnicode=new Yc(l)}else if(/Symbol/i.test(n))this.toFontChar=Ju(Fs,lc(),this.differences);else if(/Dingbats/i.test(n))this.toFontChar=Ju(xs,hc(),this.differences);else if(o||s){var f=Ju(this.defaultEncoding,lc(),this.differences);"CIDFontType2"!==A||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof Pc||this.toUnicode.forEach((function(e,t){f[+e]=t})),this.toFontChar=f}else{var C=lc(),B=[];this.toUnicode.forEach((function(e,r){if(!t.composite){var A=fc(t.differences[e]||t.defaultEncoding[e],C);-1!==A&&(r=A)}B[+e]=r})),this.composite&&this.toUnicode instanceof Pc&&/Tahoma|Verdana/i.test(r)&&Mu(B,xc()),this.toFontChar=B}Su(e),this.loadedName=n.split("-",1)[0]}},{key:"checkAndRepair",value:function(e,t,r){var A,n,i=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function a(e,t){var r=Object.create(null);r["OS/2"]=null,r.cmap=null,r.head=null,r.hhea=null,r.hmtx=null,r.maxp=null,r.name=null,r.post=null;for(var A=0;A>>0,A=e.getInt32()>>>0,n=e.getInt32()>>>0,i=e.pos;e.pos=e.start||0,e.skip(A);var a=e.getBytes(n);return e.pos=i,"head"===t&&(a[8]=a[9]=a[10]=a[11]=0,a[17]|=32),{tag:t,checksum:r,length:n,offset:A,data:a}}function s(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function c(e,t,r,A,n,i){var a={length:0,sizeOfInstructions:0};if(t<0||t>=e.length||r>e.length||r-t<=12)return a;var o=e.subarray(t,r),s=Gu(o[2],o[3]),c=Gu(o[4],o[5]),g=Gu(o[6],o[7]),u=Gu(o[8],o[9]);s>g&&(Ru(o,2,g),Ru(o,6,s)),c>u&&(Ru(o,4,u),Ru(o,8,c));var l=Gu(o[0],o[1]);if(l<0)return l<-1||(A.set(o,n),a.length=o.length),a;var h,I=10,f=0;for(h=0;ho.length?a:!i&&B>0?(A.set(o.subarray(0,C),n),A.set([0,0],n+C),A.set(o.subarray(Q,w),n+C+2),w-=B,o.length-w>3&&(w=w+3&-4),a.length=w,a):o.length-w>3?(w=w+3&-4,A.set(o.subarray(0,w),n),a.length=w,a):(A.set(o,n),a.length=o.length,a)}function g(e){var r=(t.start||0)+e.offset;t.pos=r;var A=[[],[]],n=[],i=e.length,a=r+i;if(0!==t.getUint16()||i<6)return[A,n];var o,s,c=t.getUint16(),g=t.getUint16();for(o=0;oa)){t.pos=h;var I=l.name;if(l.encoding){for(var f="",C=0,B=l.length;C0&&(s+=y-1)}}else(C||Q)&&(q("TT: nested FDEFs not allowed"),I=!0),C=!0,g=s,i=u.pop(),t.functionsDefined[i]={data:o,i:s};else if(!C&&!Q)if(i=u.at(-1),isNaN(i))T("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[i]=!0,i in t.functionsStackDeltas){var p=u.length+t.functionsStackDeltas[i];if(p<0)return q("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);u.length=p}else if(i in t.functionsDefined&&!h.includes(i)){if(l.push({data:o,i:s,stackTop:u.length-1}),h.push(i),!(a=t.functionsDefined[i]))return q("TT: CALL non-existent function"),void(t.hintsValid=!1);o=a.data,s=a.i}if(!C&&!Q){var v=0;for(d<=142?v=f[d]:d>=192&&d<=223?v=-1:d>=224&&(v=-2),d>=113&&d<=117&&(A=u.pop(),isNaN(A)||(v=2*-A));v<0&&u.length>0;)u.pop(),v++;for(;v>0;)u.push(NaN),v--}}t.tooComplexToFollowFunctions=I;var m=[o];s>o.length&&m.push(new Uint8Array(s-o.length)),g>c&&(q("TT: complementing a missing function tail"),m.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){var r,A,n=0;for(r=0,A=t.length;r>>0,i=[],a=0;a>>0);var o={ttcTag:t,majorVersion:r,minorVersion:A,numFonts:n,offsetTable:i};switch(r){case 1:return o;case 2:return o.dsigTag=e.getInt32()>>>0,o.dsigLength=e.getInt32()>>>0,o.dsigOffset=e.getInt32()>>>0,o}throw new re("Invalid TrueType Collection majorVersion: ".concat(r,"."))}(e),n=A.numFonts,i=A.offsetTable,o=t.split("+"),c=0;c0||!(r.cMap instanceof ns));if("OTTO"===u.version&&!d||!l.head||!l.hhea||!l.maxp||!l.post)return I=new ar(l["CFF "].data),h=new Tc(I,r),Du(r),this.convert(e,h,r);delete l.glyf,delete l.loca,delete l.fpgm,delete l.prep,delete l["cvt "],this.isOpenType=!0}if(!l.maxp)throw new re('Required "maxp" table is not found');t.pos=(t.start||0)+l.maxp.offset;var y,p,v=t.getInt32(),m=t.getUint16();if(65536!==v&&20480!==v){if(6===l.maxp.length)v=20480;else{if(!(l.maxp.length>=32))throw new re('"maxp" table has a wrong version number');v=65536}p=v,(y=l.maxp.data)[3+0]=255&p,y[2]=p>>>8,y[1]=p>>>16,y[0]=p>>>24}if((null===(A=r.scaleFactors)||void 0===A?void 0:A.length)===m&&Q){var w=r.scaleFactors,b=xu(l.head.data[50],l.head.data[51]),k=new Sg({glyfTable:l.glyf.data,isGlyphLocationsLong:b,locaTable:l.loca.data,numGlyphs:m});k.scale(w);var D=k.write(),S=D.glyf,F=D.loca,x=D.isLocationLong;l.glyf.data=S,l.loca.data=F,x!==!!b&&(l.head.data[50]=0,l.head.data[51]=x?1:0);for(var R=l.hmtx.data,G=0;G>8&255,R[N+1]=255&L,Ru(R,N+2,Math.round(w[G]*Gu(R[N+2],R[N+3])))}}var U=m+1,M=!0;U>65535&&(M=!1,U=m,q("Not enough space in glyfs to duplicate first glyph."));var J=0,H=0;v>=65536&&l.maxp.length>=32&&(t.pos+=8,t.getUint16()>2&&(l.maxp.data[14]=0,l.maxp.data[15]=2),t.pos+=4,J=t.getUint16(),t.pos+=4,H=t.getUint16()),l.maxp.data[4]=U>>8,l.maxp.data[5]=255&U;var Y=function(e,t,r,A){var n={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&C(e,n),t&&C(t,n),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return q("TT: more functions defined than expected"),void(e.hintsValid=!1);for(var r=0,A=e.functionsUsed.length;rt)return q("TT: invalid function id: "+r),void(e.hintsValid=!1);if(e.functionsUsed[r]&&!e.functionsDefined[r])return q("TT: undefined function: "+r),void(e.hintsValid=!1)}}}(n,A),r&&1&r.length){var i=new Uint8Array(r.length+1);i.set(r.data),r.data=i}return n.hintsValid}(l.fpgm,l.prep,l["cvt "],J);if(Y||(delete l.fpgm,delete l.prep,delete l["cvt "]),function(e,t,r,A,n,i){if(t){e.pos=(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;var a=e.getUint16();e.pos+=8,e.pos+=2;var o=e.getUint16();0!==a&&(2&xu(A.data[44],A.data[45])||(t.data[22]=0,t.data[23]=0)),o>n&&(T("The numOfMetrics (".concat(o,") should not be ")+"greater than the numGlyphs (".concat(n,").")),o=n,t.data[34]=(65280&o)>>8,t.data[35]=255&o);var s=n-o-(r.length-4*o>>1);if(s>0){var c=new Uint8Array(r.length+2*s);c.set(r.data),i&&(c[r.length]=r.data[2],c[r.length+1]=r.data[3]),r.data=c}}else r&&(r.data=null)}(t,l.hhea,l.hmtx,l.head,U,M),!l.head)throw new re('Required "head" table is not found');!function(e,t,r){var A=e.data,n=(A[0]<<24)+(A[1]<<16)+(A[2]<<8)+A[3];n>>16!=1&&(T("Attempting to fix invalid version in head table: "+n),A[0]=0,A[1]=1,A[2]=0,A[3]=0);var i=xu(A[50],A[51]);if(i<0||i>1){T("Attempting to fix invalid indexToLocFormat in head table: "+i);var a=t+1;if(r===a<<1)A[50]=0,A[51]=0;else{if(r!==a<<2)throw new re("Could not fix indexToLocFormat: "+i);A[50]=0,A[51]=1}}}(l.head,m,Q?l.loca.length:0);var P=Object.create(null);if(Q){var O=xu(l.head.data[50],l.head.data[51]),K=function(e,t,r,A,n,i,a){var o,s,g;A?(o=4,s=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},g=function(e,t,r){e[t]=r>>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}):(o=2,s=function(e,t){return e[t]<<9|e[t+1]<<1},g=function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255});var u=i?r+1:r,l=o*(1+u),h=new Uint8Array(l);h.set(e.data.subarray(0,l)),e.data=h;var I,f,C=t.data,B=C.length,Q=new Uint8Array(B),E=[];for(I=0,f=0;IB&&(d=B),E.push({index:I,offset:d,endOffset:0})}for(E.sort((function(e,t){return e.offset-t.offset})),I=0;Ia&&(a=D.sizeOfInstructions),g(h,f,k+=S)}if(0===k){var F=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(I=0,f=o;Ix+k?t.data=Q.subarray(0,x+k):(t.data=new Uint8Array(x+k),t.data.set(Q.subarray(0,k))),t.data.set(Q.subarray(0,x),k),g(e.data,h.length-o,k+x)}else t.data=Q.subarray(0,k);return{missingGlyphs:b,maxSizeOfInstructions:a}}(l.loca,l.glyf,m,O,Y,M,H);P=K.missingGlyphs,v>=65536&&l.maxp.length>=32&&(l.maxp.data[26]=K.maxSizeOfInstructions>>8,l.maxp.data[27]=255&K.maxSizeOfInstructions)}if(!l.hhea)throw new re('Required "hhea" table is not found');0===l.hhea.data[10]&&0===l.hhea.data[11]&&(l.hhea.data[10]=255,l.hhea.data[11]=255);var j={unitsPerEm:xu(l.head.data[18],l.head.data[19]),yMax:Gu(l.head.data[42],l.head.data[43]),yMin:Gu(l.head.data[38],l.head.data[39]),ascent:Gu(l.hhea.data[4],l.hhea.data[5]),descent:Gu(l.hhea.data[6],l.hhea.data[7]),lineGap:Gu(l.hhea.data[8],l.hhea.data[9])};this.ascent=j.ascent/j.unitsPerEm,this.descent=j.descent/j.unitsPerEm,this.lineGap=j.lineGap/j.unitsPerEm,null!==(n=this.cssFontInfo)&&void 0!==n&&n.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,l.post&&function(e,r,A){var n=(t.start||0)+e.offset;t.pos=n;var i,a=n+e.length,o=t.getInt32();t.skip(28);var s,c=!0;switch(o){case 65536:i=yc;break;case 131072:var g=t.getUint16();if(g!==A){c=!1;break}var u=[];for(s=0;s=32768){c=!1;break}u.push(l)}if(!c)break;for(var h=[],I=[];t.pos65535)throw new re("Max size of CID is 65,535");var r=-1;V?r=t:void 0!==X[t]&&(r=X[t]),r>=0&&r>>0,f=!1;if((null===(g=a)||void 0===g?void 0:g.platformId)!==l||(null===(u=a)||void 0===u?void 0:u.encodingId)!==h){if(0!==l||0!==h&&1!==h&&3!==h)if(1===l&&0===h)f=!0;else if(3!==l||1!==h||!A&&a){if(r&&3===l&&0===h){f=!0;var C=!0;if(c>3;m.push(k),w=Math.max(k,w)}for(var D=[],S=0;S<=w;S++)D.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:Gu(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(var F=0;F<256;F++)if(0===m[F])t.pos=D[0].idRangePos+2*F,E=t.getUint16(),p.push({charCode:F,glyphId:E});else{var x=D[m[F]];for(Q=0;Q>1;t.skip(6);var N,L=[];for(N=0;N>1)-(G-N),n.offsetIndex=U,M=Math.max(M,U+n.end-n.start+1)):n.offsetIndex=-1}var H=[];for(Q=0;Q>>0;for(Q=0;Q>>0,Z=t.getInt32()>>>0,_=t.getInt32()>>>0,X=W;X<=Z;X++)p.push({charCode:X,glyphId:_++})}p.sort((function(e,t){return e.charCode-t.charCode}));for(var V=1;V=61440&&de<=61695&&(de&=255),Z[de]=Ee.glyphId}}catch(e){Qe.e(e)}finally{Qe.f()}}else{var ye,pe=yu(te);try{for(pe.s();!(ye=pe.n()).done;){var ve=ye.value;Z[ve.charCode]=ve.glyphId}}catch(e){pe.e(e)}finally{pe.f()}}if(r.glyphNames&&(Ae.length||this.differences.length))for(var me=0;me<256;++me)if(ne||void 0===Z[me]){var we=this.differences[me]||Ae[me];if(we){var be=r.glyphNames.indexOf(we);be>0&&_(be)&&(Z[me]=be)}}}0===Z.length&&(Z[0]=0);var ke=U-1;if(M||(ke=0),!r.cssFontInfo){var De=Ou(Z,_,ke,this.toUnicode);this.toFontChar=De.toFontChar,l.cmap={tag:"cmap",data:Ku(De.charCodeToGlyphId,De.toUnicodeExtraMap,U)},l["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset;var r=t.getUint16();t.skip(60);var A=t.getUint16();return!(r<4&&768&A||t.getUint16()>t.getUint16()||(t.skip(6),0===t.getUint16()||(e.data[8]=e.data[9]=0,0)))}(l["OS/2"],t)||(l["OS/2"]={tag:"OS/2",data:Tu(r,De.charCodeToGlyphId,j)})}if(!Q)try{I=new ar(l["CFF "].data),(h=new Xs(I,r,dc).parse()).duplicateFirstGlyph();var Se=new uc(h);l["CFF "].data=Se.compile()}catch(e){q("Failed to compile font "+r.loadedName)}if(l.name){var Fe=Cu(g(l.name),2),xe=Fe[0],Re=Fe[1];l.name.data=Wu(e,xe),this.psName=xe[0][6]||null,r.composite||function(e,t,r){if(!e.isInternalFont&&!e.hasIncludedToUnicodeMap&&!e.hasEncoding&&!(e.toUnicode instanceof Pc)&&t&&0!==r.length&&e.defaultEncoding!==Ss){var A,n=yu(r);try{for(n.s();!(A=n.n()).done;)if(!Yu(A.value))return}catch(e){n.e(e)}finally{n.f()}var i=Ss,a=[],o=lc();for(var s in i){var c=i[s];if(""!==c){var g=o[c];void 0!==g&&(a[s]=String.fromCharCode(g))}}a.length>0&&e.toUnicode.amend(a)}}(r,this.isSymbolicFont,Re)}else l.name={tag:"name",data:Wu(this.name)};var Ge=new Pg(u.version);for(var Ne in l)Ge.addTable(Ne,l[Ne].data);return Ge.toArray()}},{key:"convert",value:function(e,t,r){r.fixedPitch=!1,r.builtInEncoding&&function(e,t){if(!e.isInternalFont&&!(e.hasIncludedToUnicodeMap||t===e.defaultEncoding||e.toUnicode instanceof Pc)){var r=[],A=lc();for(var n in t)if(!e.hasEncoding||!e.baseEncodingName&&void 0===e.differences[n]){var i=fc(t[n],A);-1!==i&&(r[n]=String.fromCharCode(i))}r.length>0&&e.toUnicode.amend(r)}}(r,r.builtInEncoding);var A=1;t instanceof Tc&&(A=t.numGlyphs-1);var n=t.getGlyphMapping(r),i=null,a=n,o=null;r.cssFontInfo||(i=Ou(n,t.hasGlyphId.bind(t),A,this.toUnicode),this.toFontChar=i.toFontChar,a=i.charCodeToGlyphId,o=i.toUnicodeExtraMap);var s=t.numGlyphs;function c(e,t){var r=null;for(var A in e)t===e[A]&&(r||(r=[])).push(0|A);return r}function g(e,t){for(var r in e)if(t===e[r])return 0|r;return i.charCodeToGlyphId[i.nextAvailableFontCharCode]=t,i.nextAvailableFontCharCode++}var u=t.seacs;if(i&&null!=u&&u.length){var l=r.fontMatrix||B,h=t.getCharset(),I=Object.create(null);for(var f in u){var C=u[f|=0],Q=Ds[C[2]],E=Ds[C[3]],d=h.indexOf(Q),y=h.indexOf(E);if(!(d<0||y<0)){var p={x:C[0]*l[0]+C[1]*l[2]+l[4],y:C[0]*l[1]+C[1]*l[3]+l[5]},v=c(n,f);if(v){var m,w=yu(v);try{for(w.s();!(m=w.n()).done;){var b=m.value,k=i.charCodeToGlyphId,D=g(k,d),S=g(k,y);I[b]={baseFontCharCode:D,accentFontCharCode:S,accentOffset:p}}}catch(e){w.e(e)}finally{w.f()}}}}r.seacMap=I}var F=r.fontMatrix?1/Math.max.apply(Math,fu(r.fontMatrix.slice(0,4).map(Math.abs))):1e3,x=new Pg("OTTO");return x.addTable("CFF ",t.data),x.addTable("OS/2",Tu(r,a)),x.addTable("cmap",Ku(a,o,s)),x.addTable("head","\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0_<õ\\0\\0"+Lu(F)+"\\0\\0\\0\\0ž\\v~'\\0\\0\\0\\0ž\\v~'\\0\\0"+Lu(r.descent)+"ÿ"+Lu(r.ascent)+Nu(r.italicAngle?2:0)+"\\0\\0\\0\\0\\0\\0\\0"),x.addTable("hhea","\\0\\0\\0"+Lu(r.ascent)+Lu(r.descent)+"\\0\\0ÿÿ\\0\\0\\0\\0\\0\\0"+Lu(r.capHeight)+Lu(Math.tan(r.italicAngle)*r.xHeight)+"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0"+Nu(s)),x.addTable("hmtx",function(){for(var e=t.charstrings,r=t.cff?t.cff.widths:null,A="\\0\\0\\0\\0",n=1,i=s;n1&&void 0!==arguments[1]&&arguments[1],c=this._glyphCache[e];if((null===(t=c)||void 0===t?void 0:t.isSpace)===s)return c;var g=e;null!==(r=this.cMap)&&void 0!==r&&r.contains(e)&&"string"==typeof(g=this.cMap.lookup(e))&&(g=Pu(e,g)),"number"!=typeof(a=this.widths[g])&&(a=this.defaultWidth);var u=null===(A=this.vmetrics)||void 0===A?void 0:A[g],l=this.toUnicode.get(e)||e;"number"==typeof l&&(l=String.fromCharCode(l));var h,I=void 0!==this.toFontChar[e];if(i=this.toFontChar[e]||e,this.missingFile){var f=this.differences[e]||this.defaultEncoding[e];".notdef"!==f&&""!==f||"Type1"!==this.type||(i=32,""===f&&(a||(a=this._spaceWidth),l=String.fromCharCode(i))),i=(h=i)>=65520&&h<=65535?0:h>=62976&&h<=63743?Ic()[h]||h:173===h?45:h}this.isType3Font&&(o=i);var C=null;if(null!==(n=this.seacMap)&&void 0!==n&&n[e]){I=!0;var B=this.seacMap[e];i=B.baseFontCharCode,C={fontChar:String.fromCodePoint(B.accentFontCharCode),offset:B.accentOffset}}var Q="";if("number"==typeof i&&(i<=1114111?Q=String.fromCodePoint(i):q("charToGlyph - invalid fontCharCode: ".concat(i))),this.missingFile&&this.vertical&&1===Q.length){var E=wc()[Q.charCodeAt(0)];E&&(Q=l=String.fromCharCode(E))}return c=new Fu(e,Q,l,C,a,u,o,s,I),this._glyphCache[e]=c}},{key:"charsToGlyphs",value:function(e){var t=this._charsCache[e];if(t)return t;if(t=[],this.cMap)for(var r=Object.create(null),A=e.length,n=0;n55295&&(s<57344||s>65533)&&a++,this.toUnicode){var c=i(s);if(-1!==c){n()&&(r.push(A.join("")),A.length=0);for(var g=(this.cMap?this.cMap.getCharCodeLength(c):1)-1;g>=0;g--)A.push(String.fromCharCode(c>>8*g&255));continue}}n()||(r.push(A.join("")),A.length=0),A.push(String.fromCodePoint(s))}return r.push(A.join("")),r}}])}(),_u=function(){return Eu((function e(t){Bu(this,e),this.error=t,this.loadedName="g_font_error",this.missingFile=!0}),[{key:"charsToGlyphs",value:function(){return[]}},{key:"encodeString",value:function(e){return[e]}},{key:"exportData",value:function(){return{error:this.error}}}])}();function Xu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vu(e,t):void 0}}(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 Vu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r=g||D<=0)return T("Bad shading domain."),$u(a);var F,x=new Float32Array(s.numComps),R=new Float32Array(1),G=0;R[0]=c,k(R,0,x,0);var N=s.getRgb(x,0),L=ge.makeHexColor(N[0],N[1],N[2]);S.push([0,L]);var U=1;R[0]=c+D,k(R,0,x,0);for(var M=s.getRgb(x,0),J=M[0]-N[0]+1,H=M[1]-N[1]+1,Y=M[2]-N[2]+1,P=M[0]-N[0]-1,O=M[1]-N[1]-1,K=M[2]-N[2]-1,j=2;j<840;j++){R[0]=c+j*D,k(R,0,x,0),F=s.getRgb(x,0);var W=j-G;if(J=Math.min(J,(F[0]-N[0]+1)/W),H=Math.min(H,(F[1]-N[1]+1)/W),Y=Math.min(Y,(F[2]-N[2]+1)/W),P=Math.max(P,(F[0]-N[0]-1)/W),O=Math.max(O,(F[1]-N[1]-1)/W),K=Math.max(K,(F[2]-N[2]-1)/W),!(P<=J&&O<=H&&K<=Y)){var Z=ge.makeHexColor(M[0],M[1],M[2]);S.push([U/840,Z]),J=F[0]-M[0]+1,H=F[1]-M[1]+1,Y=F[2]-M[2]+1,P=F[0]-M[0]-1,O=F[1]-M[1]-1,K=F[2]-M[2]-1,G=U,N=M}U=j,M=F}var _=ge.makeHexColor(M[0],M[1],M[2]);S.push([1,_]);var X="transparent";return e.has("Background")&&(F=s.getRgb(e.get("Background"),0),X=ge.makeHexColor(F[0],F[1],F[2])),I||(S.unshift([0,X]),S[1][0]+=gl.SMALL_NUMBER),f||(S.at(-1)[0]-=gl.SMALL_NUMBER,S.push([1,X])),a.colorStops=S,a}return rl(t,gl),ol(t,[{key:"getIR",value:function(){var e,t,r,A,n,i=this.coordsArr,a=this.shadingType;return 2===a?(t=[i[0],i[1]],r=[i[2],i[3]],A=null,n=null,e="axial"):3===a?(t=[i[0],i[1]],r=[i[3],i[4]],A=i[2],n=i[5],e="radial"):j("getPattern type unknown: ".concat(a)),["RadialAxial",e,this.bbox,this.colorStops,t,r,A,n]}}])}(),ll=function(){return ol((function e(t,r){il(this,e),this.stream=t,this.context=r,this.buffer=0,this.bufferLength=0;var A=r.numComps;this.tmpCompsBuf=new Float32Array(A);var n=r.colorSpace.numComps;this.tmpCsCompsBuf=r.colorFn?new Float32Array(n):this.tmpCompsBuf}),[{key:"hasData",get:function(){if(this.stream.end)return this.stream.pos0)return!0;var e=this.stream.getByte();return!(e<0||(this.buffer=e,this.bufferLength=8,0))}},{key:"readBits",value:function(e){var t=this.buffer,r=this.bufferLength;if(32===e){if(0===r)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 A=this.stream.getByte();return this.buffer=A&(1<>r)>>>0}if(8===e&&0===r)return this.stream.getByte();for(;r>r}},{key:"align",value:function(){this.buffer=0,this.bufferLength=0}},{key:"readFlag",value:function(){return this.readBits(this.context.bitsPerFlag)}},{key:"readCoordinate",value:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),A=this.context.decode,n=e<32?1/((1<a?a:e,t=t>o?o:t,r=re.length)&&(t=e.length);for(var r=0,A=Array(t);r=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(i.map((function(e,t){return[e,t]})).sort((function(e,t){return nh(e,1)[0]-nh(t,1)[0]})));try{for(g.s();!(A=g.n()).done;){var u=nh(A.value,2),l=u[0],h=u[1];-1!==l&&(l===s+1?(r.push(o[h]),s+=1):(s=l,r=[o[h]],c.push(l,r)))}}catch(e){g.e(e)}finally{g.f()}return c}(e),r=new He(null);r.set("BaseFont",Ue.get(e)),r.set("Type",Ue.get("Font")),r.set("Subtype",Ue.get("CIDFontType2")),r.set("Encoding",Ue.get("Identity-H")),r.set("CIDToGIDMap",Ue.get("Identity")),r.set("W",t),r.set("FirstChar",t[0]),r.set("LastChar",t.at(-2)+t.at(-1).length-1);var A=new He(null);r.set("FontDescriptor",A);var n=new He(null);return n.set("Ordering","Identity"),n.set("Registry","Adobe"),n.set("Supplement",0),r.set("CIDSystemInfo",n),r}function gh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uh(e,t){for(var r=0;r=0&&(t>=65&&t<=90||t>=97&&t<=122);)r.push(String.fromCharCode(t));var A=r.join("");switch(A.toLowerCase()){case"if":return Bh.IF;case"ifelse":return Bh.IFELSE;default:return Bh.getOperator(A)}}},{key:"getNumber",value:function(){var e=this.currentChar,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));var r=parseFloat(t.join(""));if(isNaN(r))throw new re("Invalid floating point number: ".concat(r));return r}}])}();function Eh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof 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,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}])}(),Uh=function(e){function t(){return Fh(this,t),wh(this,t,arguments)}return Dh(t,Nh),Rh(t,[{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(t){if(this._imageCache.has(t))return;return null!==e&&this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}])}(),Mh=function(e){function t(e){return Fh(this,t),wh(this,t,[{onlyRefs:!0}])}return Dh(t,Nh),Rh(t,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}}])}(),Jh=function(e){function t(){return Fh(this,t),wh(this,t,arguments)}return Dh(t,Nh),Rh(t,[{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e)throw new Error('LocalGStateCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}])}(),Hh=function(e){function t(e){return Fh(this,t),wh(this,t,[{onlyRefs:!0}])}return Dh(t,Nh),Rh(t,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}}])}(),Yh=function(e){function t(e){return Fh(this,t),wh(this,t,[{onlyRefs:!0}])}return Dh(t,Nh),Rh(t,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}}])}(),Ph=new WeakMap,Oh=new WeakSet,Kh=function(){function e(){var t;Fh(this,e),dh(this,t=Oh),t.add(this),function(e,t,r){dh(e,t),t.set(e,r)}(this,Ph,new Pe),this._refCache=new Oe,this._imageCache=new Oe}return Rh(e,[{key:"shouldCache",value:function(t,r){var A=this._refCache.get(t);return A||(A=new Set,this._refCache.put(t,A)),A.add(r),!(A.size0&&void 0!==arguments[0]&&arguments[0]||(ph(Ph,this).clear(),this._refCache.clear()),this._imageCache.clear()}}])}();function Th(e){var t,r=0,A=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Eh(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Eh(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(e._imageCache);try{for(A.s();!(t=A.n()).done;)r+=t.value.byteSize}catch(e){A.e(e)}finally{A.f()}return r}function qh(e){return!(e._imageCache.size=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function $h(e,t){if(e){if("string"==typeof e)return eI(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eI(e,t):void 0}}function eI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r>s)*g,c&=(1<r?e=r:e0&&(l=c[i-1]);var h=n[1];i>1,g=n.length>>1,u=new lI(o),l=Object.create(null),h=8192,I=new Float32Array(g);return function(e,t,r,A){var n,a,o="",s=I;for(n=0;n(E=i[2*n+1]))&&(a=E),C[n]=a}h>0&&(h--,l[o]=C),r.set(C,A)}else r.set(f,A)}}}])}();function sI(e){var t;if(e instanceof He)t=e;else{if(!(e instanceof ze))return!1;t=e.dict}return t.has("FunctionType")}var cI,gI,uI=function(){function e(t){tI(this,e),this.stack=t?Array.from(t):[]}return AI(e,[{key:"push",value:function(t){if(this.stack.length>=e.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(t)}},{key:"pop",value:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}},{key:"copy",value:function(t){if(this.stack.length+t>=e.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");for(var r=this.stack,A=r.length-t,n=t-1;n>=0;n--,A++)r.push(r[A])}},{key:"index",value:function(e){this.push(this.stack[this.stack.length-e-1])}},{key:"roll",value:function(e,t){for(var r=this.stack,A=r.length-e,n=r.length-1,i=A+(t-Math.floor(t/e)*e),a=A,o=n;a0?n.push(r<>A);break;case"ceiling":r=n.pop(),n.push(Math.ceil(r));break;case"copy":r=n.pop(),n.copy(r);break;case"cos":r=n.pop(),n.push(Math.cos(r%360/180*Math.PI));break;case"cvi":r=0|n.pop(),n.push(r);break;case"cvr":break;case"div":A=n.pop(),r=n.pop(),n.push(r/A);break;case"dup":n.copy(1);break;case"eq":A=n.pop(),r=n.pop(),n.push(r===A);break;case"exch":n.roll(2,1);break;case"exp":A=n.pop(),r=n.pop(),n.push(Math.pow(r,A));break;case"false":n.push(!1);break;case"floor":r=n.pop(),n.push(Math.floor(r));break;case"ge":A=n.pop(),r=n.pop(),n.push(r>=A);break;case"gt":A=n.pop(),r=n.pop(),n.push(r>A);break;case"idiv":A=n.pop(),r=n.pop(),n.push(r/A|0);break;case"index":r=n.pop(),n.index(r);break;case"le":A=n.pop(),r=n.pop(),n.push(r<=A);break;case"ln":r=n.pop(),n.push(Math.log(r));break;case"log":r=n.pop(),n.push(Math.log10(r));break;case"lt":A=n.pop(),r=n.pop(),n.push(r=t?new fI(t):e.max<=t?e:new BI(e,t)}var wI=function(){return AI((function e(){tI(this,e)}),[{key:"compile",value:function(e,t,r){for(var A,n,i,a,o,s,c,g,u=[],l=[],h=t.length>>1,I=r.length>>1,f=0,C=0;Cb.min&&(F.unshift("Math.max(",D,", "),F.push(")")),S2&&void 0!==arguments[2]&&arguments[2]?r="ttb":t||(r="rtl"),{str:e,dir:r}}var NI=[],LI=[];function UI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=!0,n=e.length;if(0===n||r)return GI(e,A,r);NI.length=n,LI.length=n;var i,a,o=0;for(i=0;i4?(A=!0,t=0):(A=!1,t=1));var g=[];for(i=0;i=0&&"ET"===LI[C];--C)LI[C]="EN";for(var B=i+1;B0&&(E=LI[i-1]);var d=I;Q+1y&&DI(y)&&(v=y);for(y=p;y>=v;--y){var m=-1;for(i=0,a=g.length;i=0&&(RI(NI,m,i),m=-1):m<0&&(m=i);m>=0&&RI(NI,m,g.length)}for(i=0,a=NI.length;i"!==w||(NI[i]="")}return GI(NI.join(""),A)}function MI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||HI(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 JI(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=HI(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function HI(e,t){if(e){if("string"==typeof e)return YI(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?YI(e,t):void 0}}function YI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r3&&void 0!==arguments[3])||arguments[3],g=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",l={style:null,ultimate:null};if(n){var h,I=u?" ".concat(u):"",f=JI(n);try{for(f.s();!(h=f.n()).done;){var C=h.value;t.push("local(".concat(C).concat(I,")"))}}catch(e){f.e(e)}finally{f.f()}}if(A){var B=qI.get(A),Q=u||function(e){switch(e){case OI:return"Bold";case KI:return"Italic";case TI:return"Bold Italic";default:if("bold"===(null==e?void 0:e.weight))return"Bold";if("italic"===(null==e?void 0:e.style))return"Italic"}return""}(o);Object.assign(l,ZI(B,t,r,c&&!a,g&&!i,Q))}if(o&&(l.style=o),s&&(l.ultimate=s),c&&a){var E=ZI(qI.get(a),t,r,c,g&&!i,u).ultimate;l.ultimate||(l.ultimate=E)}return g&&i&&r&&t.push("url(".concat(r).concat(i,")")),l}function _I(e,t,r,A,n,i){if(A.startsWith("InvalidPDFjsFont_"))return null;"TrueType"!==i&&"Type1"!==i||!/^[A-Z]{6}\\+/.test(A)||(A=A.slice(7));var a=A=mc(A),o=e.get(a);if(o)return o;var s=qI.get(A);if(!s){var c,g=JI(jI);try{for(g.s();!(c=g.n()).done;){var u=MI(c.value,2),l=u[0],h=u[1];if(A.startsWith(l)){A="".concat(h).concat(A.substring(l.length)),s=qI.get(A);break}}}catch(e){g.e(e)}finally{g.f()}}var I=!1;s||(s=qI.get(n),I=!0);var f="".concat(t.getDocId(),"_s").concat(t.createFontId());if(!s){if(!Pt(A))return q("Cannot substitute the font because of its name: ".concat(A)),e.set(a,null),null;var C=/bold/gi.test(A),B=/oblique|italic/gi.test(A),Q=C&&B&&TI||C&&OI||B&&KI||PI;return o={css:'"'.concat(WI(A),'",').concat(f),guessFallback:!0,loadedName:f,baseFontName:A,src:"local(".concat(A,")"),style:Q},e.set(a,o),o}var E=[];I&&Pt(A)&&E.push("local(".concat(A,")"));var d=ZI(s,E,r),y=d.style,p=d.ultimate,v=null===p,m=v?"":",".concat(p);return o={css:'"'.concat(WI(A),'",').concat(f).concat(m),guessFallback:v,loadedName:f,baseFontName:A,src:E.join(","),style:y},e.set(a,o),o}function XI(){XI=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function VI(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return zI(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zI(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function zI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r>3,g=c+3&-4;if(c!==g){for(var u=new Uint8Array(g*A),l=0,h=0,I=A*c;hr||t>r)return!0;var A=e*t;return this._hasMaxArea?A>this.MAX_AREA:!(A(this.MAX_AREA=Math.pow(this._goodSquareLength,2))))}},{key:"MAX_DIM",get:function(){return _(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}},{key:"MAX_AREA",get:function(){return this._hasMaxArea=!0,_(this,"MAX_AREA",Math.pow(this._guessMax(e._goodSquareLength,this.MAX_DIM,128,0),2))},set:function(e){e>=0&&(this._hasMaxArea=!0,_(this,"MAX_AREA",e))}},{key:"setMaxArea",value:function(e){this._hasMaxArea||(this.MAX_AREA=e>>2)}},{key:"_areGoodDims",value:function(e,t){try{var r=new OffscreenCanvas(e,t),A=r.getContext("2d");A.fillRect(0,0,1,1);var n=A.getImageData(0,0,1,1).data[3];return r.width=r.height=1,0!==n}catch(e){return!1}}},{key:"_guessMax",value:function(e,t,r,A){for(;e+r+11&&void 0!==n[1]&&n[1],t.abrupt("return",new e(r,A)._createImage());case 2:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}]);var t,r}();function nf(e,t){for(var r=0;r>>8,t[r++]=255&i)}}else{if(!ArrayBuffer.isView(e))throw new Error("Invalid data format, must be a string or TypedArray.");r=(t=e.slice()).byteLength}for(var a=r>>2,o=r-4*a,s=new Uint32Array(t.buffer,0,a),c=0,g=0,u=this.h1,l=this.h2,h=3432918353,I=461845907,f=11601,C=13715,B=0;B>>17)*I&cf|c*C&gf)<<13|u>>>19)+3864292196:l=5*(l=(l^=g=(g=(g=(g=s[B])*h&cf|g*f&gf)<<15|g>>>17)*I&cf|g*C&gf)<<13|l>>>19)+3864292196;switch(c=0,o){case 3:c^=t[4*a+2]<<16;case 2:c^=t[4*a+1]<<8;case 1:c=(c=(c=(c^=t[4*a])*h&cf|c*f&gf)<<15|c>>>17)*I&cf|c*C&gf,1&a?u^=c:l^=c}this.h1=u,this.h2=l}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;return e=3981806797*(e^=t>>>1)&cf|36045*e&gf,e=444984403*(e^=(t=4283543511*t&cf|(2950163797*(t<<16|e>>>16)&cf)>>>16)>>>1)&cf|60499*e&gf,((e^=(t=3301882366*t&cf|(3120437893*(t<<16|e>>>16)&cf)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}])}();function lf(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return hf(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hf(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function hf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r1e3&&(c=Math.max(c,l),h+=u+2,l=0,u=0),g.push({transform:f,x:l,y:h,w:C.width,h:C.height}),l+=C.width+2,u=Math.max(u,C.height)}for(var B=Math.max(c,l)+1,Q=h+u+1,E=new Uint8Array(B*Q*4),d=B<<2,y=0;y=0;)p[w-4]=p[w],p[w-3]=p[w+1],p[w-2]=p[w+2],p[w-1]=p[w+3],p[w+v]=p[w+v-4],p[w+v+1]=p[w+v-3],p[w+v+2]=p[w+v-2],p[w+v+3]=p[w+v-1],w-=d}var D={width:B,height:Q};if(e.isOffscreenCanvasSupported){var S=new OffscreenCanvas(B,Q);S.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(E.buffer),B,Q),0,0),D.bitmap=S.transferToImageBitmap(),D.data=null}else D.kind=3,D.data=E;return r.splice(i,4*s,87),A.splice(i,4*s,[D,g]),i+1})),vf(mf,[x,G,Y,R],null,(function(e,t){var r=e.fnArray,A=(t-(e.iCurr-3))%4;switch(A){case 0:return r[t]===x;case 1:return r[t]===G;case 2:return r[t]===Y;case 3:return r[t]===R}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(A))}),(function(e,t){var r=e.fnArray,A=e.argsArray,n=e.iCurr,i=n-3,a=n-2,o=n-1,s=Math.floor((t-i)/4);if(s<10)return t-(t-i)%4;var c,g,u=!1,l=A[o][0],h=A[a][0],I=A[a][1],f=A[a][2],C=A[a][3];if(I===f){u=!0,c=a+4;for(var B=o+4,Q=1;Q=4&&r[i-4]===r[a]&&r[i-3]===r[o]&&r[i-2]===r[s]&&r[i-1]===r[c]&&A[i-4][0]===g&&A[i-4][1]===u&&(l++,h-=5);for(var I=h+4,f=1;f=(r=e.length))break}(A=(A||mf)[e[t]])&&!Array.isArray(A)?(i.iCurr=t,t++,!A.checkFn||(0,A.checkFn)(i)?(n=A,A=null):A=null):t++}this.state=A,this.match=n,this.lastProcessed=t}else this.lastProcessed=r}},{key:"flush",value:function(){for(;this.match;){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}},{key:"reset",value:function(){this.state=null,this.match=null,this.lastProcessed=0}}])}(),kf=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;Ef(this,e),this._streamSink=r,this.fnArray=[],this.argsArray=[],this.optimizer=!r||256&t?new wf(this):new bf(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=r?null:Promise.resolve()}return yf(e,[{key:"isOffscreenCanvasSupported",set:function(e){this.optimizer.isOffscreenCanvasSupported=e}},{key:"length",get:function(){return this.argsArray.length}},{key:"ready",get:function(){return this._resolved||this._streamSink.ready}},{key:"totalLength",get:function(){return this._totalLength+this.length}},{key:"addOp",value:function(t,r){this.optimizer.push(t,r),this.weight++,this._streamSink&&(this.weight>=e.CHUNK_SIZE||this.weight>=e.CHUNK_SIZE_ABOUT&&(t===R||32===t))&&this.flush()}},{key:"addImageOps",value:function(e,t,r){void 0!==r&&this.addOp(J,["OC",r]),this.addOp(e,t),void 0!==r&&this.addOp(H,[])}},{key:"addDependency",value:function(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(1,[e]))}},{key:"addDependencies",value:function(e){var t,r=lf(e);try{for(r.s();!(t=r.n()).done;){var A=t.value;this.addDependency(A)}}catch(e){r.e(e)}finally{r.f()}}},{key:"addOpList",value:function(t){if(t instanceof e){var r,A=lf(t.dependencies);try{for(A.s();!(r=A.n()).done;){var n=r.value;this.dependencies.add(n)}}catch(e){A.e(e)}finally{A.f()}for(var i=0,a=t.length;i0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.optimizer.flush();var r=this.length;this._totalLength+=r,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:r},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}])}();function Df(){Df=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function Sf(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function Ff(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){Sf(i,A,n,a,o,"next",e)}function o(e){Sf(i,A,n,a,o,"throw",e)}a(void 0)}))}}function xf(e,t){for(var r=0;rA&&(e=A),e}function Nf(e,t,r,A,n,i){var a,o=n*i;a=t<=8?new Uint8Array(o):t<=16?new Uint16Array(o):new Uint32Array(o);var s,c,g,u,l=r/n,h=A/i,I=0,f=new Uint16Array(n),C=r;for(s=0;s0&&Number.isInteger(n.height)&&n.height>0&&(n.width!==d||n.height!==y)&&(q("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),d=n.width,y=n.height),d<1||y<1)throw new re("Invalid image width: ".concat(d," or height: ").concat(y));this.width=d,this.height=y,this.interpolate=C.get("I","Interpolate"),this.imageMask=C.get("IM","ImageMask")||!1,this.matte=C.get("Matte")||!1;var p=n.bitsPerComponent;if(!p&&!(p=C.get("BPC","BitsPerComponent"))){if(!this.imageMask)throw new re("Bits per component missing in image: ".concat(this.imageMask));p=1}if(this.bpc=p,!this.imageMask){var v,m=C.getRaw("CS")||C.getRaw("ColorSpace"),w=!!m;if(w)null!==(v=this.jpxDecoderOptions)&&void 0!==v&&v.smaskInData&&(m=Ue.get("DeviceRGBA"));else if(this.jpxDecoderOptions)m=Ue.get("DeviceRGBA");else switch(n.numComps){case 1:m=Ue.get("DeviceGray");break;case 3:m=Ue.get("DeviceRGB");break;case 4:m=Ue.get("DeviceCMYK");break;default:throw new Error("Images with ".concat(n.numComps," color components not supported."))}this.colorSpace=Ur.parse({cs:m,xref:r,resources:a?A:null,pdfFunctionFactory:h,localColorSpaceCache:I}),this.numComps=this.colorSpace.numComps,this.jpxDecoderOptions&&(this.jpxDecoderOptions.numComponents=w?this.numComp:0,this.jpxDecoderOptions.isIndexedColormap="Indexed"===this.colorSpace.name)}if(this.decode=C.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,p)||l&&!Ur.isDefaultDecode(this.decode,1))){var b;this.needsDecode=!0;var k=(1<>7&1,r[l+1]=c>>6&1,r[l+2]=c>>5&1,r[l+3]=c>>4&1,r[l+4]=c>>3&1,r[l+5]=c>>2&1,r[l+6]=c>>1&1,r[l+7]=1&c,l+=8;if(l>=1}else{var B=0;for(c=0,l=0,s=a;l>Q;E<0?E=0:E>u&&(E=u),r[l]=E,c&=(1<s[E+1])){t.next=37;break}return C=255,t.abrupt("break",40);case 37:++I,t.next=31;break;case 40:c[l]=C;case 41:++l,t.next=27;break;case 44:t.next=47;break;case 46:throw new re("Unknown mask format.");case 47:if(c)for(l=0,I=3,h=A*i;l0&&void 0!==x[0]&&x[0],r=x.length>1&&void 0!==x[1]&&x[1],A=this.drawWidth,n=this.drawHeight,i={width:A,height:n,interpolate:this.interpolate,kind:0,data:null},a=this.numComps,o=this.width,s=this.height,c=this.bpc,g=o*a*c+7>>3,u=r&&Af.needsToBeResized(A,n),"DeviceRGBA"!==this.colorSpace.name){e.next=21;break}return i.kind=3,e.next=15,this.getImageBytes(s*o*4,{});case 15:if(l=i.data=e.sent,!r){e.next=20;break}if(u){e.next=19;break}return e.abrupt("return",this.createBitmap(3,A,n,l));case 19:return e.abrupt("return",Af.createImage(i,!1));case 20:return e.abrupt("return",i);case 21:if(t){e.next=68;break}if("DeviceGray"===this.colorSpace.name&&1===c?h=1:"DeviceRGB"!==this.colorSpace.name||8!==c||this.needsDecode||(h=2),!h||this.smask||this.mask||A!==o||n!==s){e.next=35;break}return e.next=26,this.getImageBytes(s*g,{});case 26:if(I=e.sent,!r){e.next=31;break}if(!u){e.next=30;break}return e.abrupt("return",Af.createImage({data:I,kind:h,width:A,height:n,interpolate:this.interpolate},this.needsDecode));case 30:return e.abrupt("return",this.createBitmap(h,o,s,I));case 31:if(i.kind=h,i.data=I,this.needsDecode)for(W(1===h,"PDFImage.createImageData: The image must be grayscale."),f=i.data,C=0,B=f.length;C>3,e.next=9,this.getImageBytes(n*a,{internal:!0});case 9:if(o=e.sent,s=this.getComponents(o),1!==i){e.next=15;break}if(g=A*n,this.needsDecode)for(c=0;c>2,c=new Uint32Array(t.buffer,A,s);if(se.isLittleEndian){for(;o>>24|u<<8|4278190080,n[a+2]=u>>>16|l<<16|4278190080,n[a+3]=l>>>8|4278190080}for(var h=4*o,I=t.length;h>>8|255,n[a+2]=C<<16|B>>>16|255,n[a+3]=B<<8|255}for(var Q=4*o,E=t.length;Q>3)*i,g=A.byteLength;if(!a||o&&c!==g?o?((t=new Uint8Array(c)).set(A),t.fill(255,g)):t=new Uint8Array(A):t=A,o)for(r=0;r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function Hf(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function Yf(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){Hf(i,A,n,a,o,"next",e)}function o(e){Hf(i,A,n,a,o,"throw",e)}a(void 0)}))}}function Pf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Of(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function Wf(e,t){if(e){if("string"==typeof e)return Zf(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zf(e,t):void 0}}function Zf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){var r,A=jf(e);try{for(A.s();!(r=A.n()).done;){var n=Vf(r.value,!0);if(n)return n}}catch(e){A.e(e)}finally{A.f()}return q("Unsupported blend mode Array: ".concat(e)),"source-over"}if(!(e instanceof Ue))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:(q("Unsupported blend mode: ".concat(e.name)),"source-over")}function zf(e,t){var r;t.objId&&e.addDependency(t.objId),e.addImageOps(t.fn,t.args,t.optionalContent),t.fn===Y&&(null===(r=t.args[0])||void 0===r?void 0:r.count)>0&&t.args[0].count++}var $f=function(){function e(){Pf(this,e),this.reset()}return Kf(e,[{key:"check",value:function(){return!(++this.checked0&&void 0!==arguments[0]?arguments[0]:null,t=Object.create(this);return t.options=Object.assign(Object.create(null),this.options,e),t}},{key:"hasBlendModes",value:function(e,t){if(!(e instanceof He))return!1;if(e.objId&&t.has(e.objId))return!1;var r=new Pe(t);e.objId&&r.put(e.objId);for(var A=[e],n=this.xref;A.length;){var i=A.shift(),a=i.get("ExtGState");if(a instanceof He){var o,s=jf(a.getRawValues());try{for(s.s();!(o=s.n()).done;){var c=o.value;if(c instanceof Ye){if(r.has(c))continue;try{c=n.fetch(c)}catch(e){r.put(c),T('hasBlendModes - ignoring ExtGState: "'.concat(e,'".'));continue}}if(c instanceof He){c.objId&&r.put(c.objId);var g=c.get("BM");if(g instanceof Ue){if("Normal"!==g.name)return!0}else if(void 0!==g&&Array.isArray(g)){var u,l=jf(g);try{for(l.s();!(u=l.n()).done;){var h=u.value;if(h instanceof Ue&&"Normal"!==h.name)return!0}}catch(e){l.e(e)}finally{l.f()}}}}}catch(e){s.e(e)}finally{s.f()}}var I=i.get("XObject");if(I instanceof He){var f,C=jf(I.getRawValues());try{for(C.s();!(f=C.n()).done;){var B=f.value;if(B instanceof Ye){if(r.has(B))continue;try{B=n.fetch(B)}catch(e){r.put(B),T('hasBlendModes - ignoring XObject: "'.concat(e,'".'));continue}}if(B instanceof ze){B.dict.objId&&r.put(B.dict.objId);var Q=B.dict.get("Resources");Q instanceof He&&(Q.objId&&r.has(Q.objId)||(A.push(Q),Q.objId&&r.put(Q.objId)))}}}catch(e){C.e(e)}finally{C.f()}}}var E,d=jf(r);try{for(d.s();!(E=d.n()).done;){var y=E.value;t.put(y)}}catch(e){d.e(e)}finally{d.f()}return!1}},{key:"fetchBuiltInCMap",value:(u=Yf(Jf().mark((function e(t){var r,A,n,i;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this.builtInCMapCache.get(t))){e.next=3;break}return e.abrupt("return",r);case 3:if(null===this.options.cMapUrl){e.next=19;break}return n="".concat(this.options.cMapUrl).concat(t,".bcmap"),e.next=7,fetch(n);case 7:if((i=e.sent).ok){e.next=10;break}throw new Error('fetchBuiltInCMap: failed to fetch file "'.concat(n,'" with "').concat(i.statusText,'".'));case 10:return e.t0=Uint8Array,e.next=13,i.arrayBuffer();case 13:e.t1=e.sent,e.t2=new e.t0(e.t1),e.t3=F.BINARY,A={cMapData:e.t2,compressionType:e.t3},e.next=22;break;case 19:return e.next=21,this.handler.sendWithPromise("FetchBuiltInCMap",{name:t});case 21:A=e.sent;case 22:return A.compressionType!==F.NONE&&this.builtInCMapCache.set(t,A),e.abrupt("return",A);case 24:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"fetchStandardFontData",value:(g=Yf(Jf().mark((function e(t){var r,A,n,i,a,o;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this.standardFontDataCache.get(t))){e.next=3;break}return e.abrupt("return",new ar(r));case 3:if(!this.options.useSystemFonts||"Symbol"===t||"ZapfDingbats"===t){e.next=5;break}return e.abrupt("return",null);case 5:if(A=kc(),n=A[t],null===this.options.standardFontDataUrl){e.next=22;break}return a="".concat(this.options.standardFontDataUrl).concat(n),e.next=10,fetch(a);case 10:if((o=e.sent).ok){e.next=15;break}q('fetchStandardFontData: failed to fetch file "'.concat(a,'" with "').concat(o.statusText,'".')),e.next=20;break;case 15:return e.t0=Uint8Array,e.next=18,o.arrayBuffer();case 18:e.t1=e.sent,i=new e.t0(e.t1);case 20:e.next=31;break;case 22:return e.prev=22,e.next=25,this.handler.sendWithPromise("FetchStandardFontData",{filename:n});case 25:i=e.sent,e.next=31;break;case 28:e.prev=28,e.t2=e.catch(22),q('fetchStandardFontData: failed to fetch file "'.concat(n,'" with "').concat(e.t2,'".'));case 31:if(i){e.next=33;break}return e.abrupt("return",null);case 33:return this.standardFontDataCache.set(t,i),e.abrupt("return",new ar(i));case 35:case"end":return e.stop()}}),e,this,[[22,28]])}))),function(e){return g.apply(this,arguments)})},{key:"buildFormXObject",value:(c=Yf(Jf().mark((function e(t,r,A,n,i,a,o){var s,c,g,u,l,h,I,f,C,B,Q;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=r.dict,c=Ft(s.getArray("Matrix"),null),g=Rt(s.getArray("BBox"),null),!s.has("OC")){e.next=7;break}return e.next=6,this.parseMarkedContentProps(s.get("OC"),t);case 6:u=e.sent;case 7:if(void 0!==u&&n.addOp(J,["OC",u]),!(h=s.get("Group"))){e.next=28;break}if(l={matrix:c,bbox:g,smask:A,isolated:!1,knockout:!1},I=h.get("S"),f=null,!Ke(I,"Transparency")){e.next=26;break}if(l.isolated=h.get("I")||!1,l.knockout=h.get("K")||!1,!h.has("CS")){e.next=26;break}if(C=h.getRaw("CS"),!(B=Ur.getCached(C,this.xref,o))){e.next=23;break}f=B,e.next=26;break;case 23:return e.next=25,this.parseColorSpace({cs:C,resources:t,localColorSpaceCache:o});case 25:f=e.sent;case 26:null!=A&&A.backdrop&&(f||(f=Ur.singletons.rgb),A.backdrop=f.getRgb(A.backdrop,0)),n.addOp(76,[l]);case 28:return Q=h?[c,null]:[c,g],n.addOp(74,Q),e.next=32,this.getOperatorList({stream:r,task:i,resources:s.get("Resources")||t,operatorList:n,initialState:a});case 32:n.addOp(75,[]),h&&n.addOp(77,[l]),void 0!==u&&n.addOp(H,[]);case 35:case"end":return e.stop()}}),e,this)}))),function(e,t,r,A,n,i,a){return c.apply(this,arguments)})},{key:"_sendImgData",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||r?this.handler.send("commonobj",[e,"Image",t],A):this.handler.send("obj",[e,this.pageIndex,"Image",t],A)}},{key:"buildPaintImageXObject",value:(s=Yf(Jf().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p,v,m,w,b,k,D,S,F,x,R,G=this;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.resources,A=t.image,n=t.isInline,i=void 0!==n&&n,a=t.operatorList,o=t.cacheKey,s=t.localImageCache,c=t.localColorSpaceCache,g=A.dict,u=g.objId,l=g.get("W","Width"),h=g.get("H","Height"),l&&"number"==typeof l&&h&&"number"==typeof h){e.next=8;break}return q("Image dimensions are missing, or not numbers."),e.abrupt("return");case 8:if(!(-1!==(I=this.options.maxImageSize)&&l*h>I)){e.next=15;break}if(f="Image exceeded maximum allowed size and was removed.",!this.options.ignoreErrors){e.next=14;break}return q(f),e.abrupt("return");case 14:throw new Error(f);case 15:if(!g.has("OC")){e.next=19;break}return e.next=18,this.parseMarkedContentProps(g.get("OC"),r);case 18:C=e.sent;case 19:if(!g.get("IM","ImageMask")){e.next=47;break}if(E=g.get("I","Interpolate"),d=l+7>>3,y=A.getBytes(d*h),p=g.getArray("D","Decode"),!this.parsingType3Font){e.next=32;break}return(B=Lf.createRawMask({imgArray:y,width:l,height:h,imageIsFromDecodeStream:A instanceof XA,inverseDecode:(null==p?void 0:p[0])>0,interpolate:E})).cached=!!o,Q=[B],a.addImageOps(Y,Q,C),o&&(v={fn:Y,args:Q,optionalContent:C},s.set(o,u,v),u&&this._regionalImageCache.set(null,u,v)),e.abrupt("return");case 32:return e.next=34,Lf.createMask({imgArray:y,width:l,height:h,imageIsFromDecodeStream:A instanceof XA,inverseDecode:(null==p?void 0:p[0])>0,interpolate:E,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported});case 34:if(!(B=e.sent).isSingleOpaquePixel){e.next=39;break}return a.addImageOps(90,[],C),o&&(m={fn:90,args:[],optionalContent:C},s.set(o,u,m),u&&this._regionalImageCache.set(null,u,m)),e.abrupt("return");case 39:return w="mask_".concat(this.idFactory.createObjId()),a.addDependency(w),B.dataLen=B.bitmap?B.width*B.height*4:B.data.length,this._sendImgData(w,B),Q=[{data:w,width:B.width,height:B.height,interpolate:B.interpolate,count:1}],a.addImageOps(Y,Q,C),o&&(b={objId:w,fn:Y,args:Q,optionalContent:C},s.set(o,u,b),u&&this._regionalImageCache.set(null,u,b)),e.abrupt("return");case 47:if(!(i&&l+h<200)||g.has("SMask")||g.has("Mask")){e.next=65;break}return e.prev=49,k=new Lf({xref:this.xref,res:r,image:A,isInline:i,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:c}),e.next=53,k.createImageData(!0,!1);case 53:B=e.sent,a.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported,a.addImageOps(86,[B],C),e.next=64;break;case 58:if(e.prev=58,e.t0=e.catch(49),D='Unable to decode inline image: "'.concat(e.t0,'".'),this.options.ignoreErrors){e.next=63;break}throw new Error(D);case 63:q(D);case 64:return e.abrupt("return");case 65:if(S="img_".concat(this.idFactory.createObjId()),F=!1,this.parsingType3Font?S="".concat(this.idFactory.getDocId(),"_type3_").concat(S):o&&u&&(F=this.globalImageCache.shouldCache(u,this.pageIndex))&&(W(!i,"Cannot cache an inline image globally."),S="".concat(this.idFactory.getDocId(),"_").concat(S)),a.addDependency(S),Q=[S,l,h],a.addImageOps(P,Q,C),!F){e.next=83;break}if(!this.globalImageCache.hasDecodeFailed(u)){e.next=75;break}return this.globalImageCache.setData(u,{objId:S,fn:P,args:Q,optionalContent:C,byteSize:0}),this._sendImgData(S,null,F),e.abrupt("return");case 75:if(!(l*h>25e4||g.has("SMask")||g.has("Mask"))){e.next=83;break}return e.next=78,this.handler.sendWithPromise("commonobj",[S,"CopyLocalImage",{imageRef:u}]);case 78:if(!(x=e.sent)){e.next=83;break}return this.globalImageCache.setData(u,{objId:S,fn:P,args:Q,optionalContent:C,byteSize:0}),this.globalImageCache.addByteSize(u,x),e.abrupt("return");case 83:Lf.buildImage({xref:this.xref,res:r,image:A,isInline:i,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:c}).then(function(){var e=Yf(Jf().mark((function e(t){return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.createImageData(!1,G.options.isOffscreenCanvasSupported);case 2:return(B=e.sent).dataLen=B.bitmap?B.width*B.height*4:B.data.length,B.ref=u,F&&G.globalImageCache.addByteSize(u,B.dataLen),e.abrupt("return",G._sendImgData(S,B,F));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){return q('Unable to decode image "'.concat(S,'": "').concat(e,'".')),u&&G.globalImageCache.addDecodeFailed(u),G._sendImgData(S,null,F)})),o&&(R={objId:S,fn:P,args:Q,optionalContent:C},s.set(o,u,R),u&&(this._regionalImageCache.set(null,u,R),F&&this.globalImageCache.setData(u,{objId:S,fn:P,args:Q,optionalContent:C,byteSize:0})));case 85:case"end":return e.stop()}}),e,this,[[49,58]])}))),function(e){return s.apply(this,arguments)})},{key:"handleSMask",value:function(e,t,r,A,n,i){var a=e.get("G"),o={subtype:e.get("S").name,backdrop:e.get("BC")},s=e.get("TR");if(sI(s)){for(var c=this._pdfFunctionFactory.create(s),g=new Uint8Array(256),u=new Float32Array(1),l=0;l<256;l++)u[0]=l/255,c(u,0,u,0),g[l]=255*u[0]|0;o.transferMap=g}return this.buildFormXObject(t,a,o,r,A,n.state.clone(),i)}},{key:"handleTransferFunction",value:function(e){var t;if(Array.isArray(e))t=e;else{if(!sI(e))return null;t=[e]}var r,A=[],n=0,i=0,a=jf(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=this.xref.fetchIfRef(o);if(n++,Ke(s,"Identity"))A.push(null);else{if(!sI(s))return null;for(var c=this._pdfFunctionFactory.create(s),g=new Uint8Array(256),u=new Float32Array(1),l=0;l<256;l++)u[0]=l/255,c(u,0,u,0),g[l]=255*u[0]|0;A.push(g),i++}}}catch(e){a.e(e)}finally{a.f()}return 1!==n&&4!==n||0===i?null:A}},{key:"handleTilingType",value:function(e,t,r,A,n,i,a,o){var s=this,c=new kf,g=He.merge({xref:this.xref,dictArray:[n.get("Resources"),r]});return this.getOperatorList({stream:A,task:a,resources:g,operatorList:c}).then((function(){var r=c.getIR(),A=Bl(r,n,t);i.addDependencies(c.dependencies),i.addOp(e,A),n.objId&&o.set(null,n.objId,{operatorListIR:r,dict:n})})).catch((function(e){if(!(e instanceof Ae)){if(!s.options.ignoreErrors)throw e;q('handleTilingType - ignoring pattern: "'.concat(e,'".'))}}))}},{key:"handleSetFont",value:(o=Yf(Jf().mark((function e(t,r,A,n,i,a){var o,s,c,g,u=arguments;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=u.length>6&&void 0!==u[6]?u[6]:null,s=u.length>7&&void 0!==u[7]?u[7]:null,c=(null==r?void 0:r[0])instanceof Ue?r[0].name:null,e.next=5,this.loadFont(c,A,t,o,s);case 5:if(!(g=e.sent).font.isType3Font){e.next=16;break}return e.prev=7,e.next=10,g.loadType3Data(this,t,i);case 10:n.addDependencies(g.type3Dependencies),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(7),g=new tC({loadedName:"g_font_error",font:new _u("Type3 font load error: ".concat(e.t0)),dict:g.font,evaluatorOptions:this.options});case 16:return a.font=g.font,g.send(this.handler),e.abrupt("return",g.loadedName);case 19:case"end":return e.stop()}}),e,this,[[7,13]])}))),function(e,t,r,A,n,i){return o.apply(this,arguments)})},{key:"handleText",value:function(t,r){var A=r.font,n=A.charsToGlyphs(t);return A.data&&(4&r.textRenderingMode||"Pattern"===r.fillColorSpace.name||A.disableFontFace||this.options.disableFontFace)&&e.buildFontPaths(A,n,this.handler,this.options),n}},{key:"ensureStateFont",value:function(e){if(!e.font){var t=new re("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw t;q('ensureStateFont: "'.concat(t,'".'))}}},{key:"setGState",value:(a=Yf(Jf().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B=this;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.resources,A=t.gState,n=t.operatorList,i=t.cacheKey,a=t.task,o=t.stateManager,s=t.localGStateCache,c=t.localColorSpaceCache,g=A.objId,u=!0,l=[],h=Promise.resolve(),I=jf(A.getKeys()),e.prev=6,C=Jf().mark((function e(){var t,i,s;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=f.value,i=A.get(t),e.t0=t,e.next="Type"===e.t0?5:"LW"===e.t0||"LC"===e.t0||"LJ"===e.t0||"ML"===e.t0||"D"===e.t0||"RI"===e.t0||"FL"===e.t0||"CA"===e.t0||"ca"===e.t0?6:"Font"===e.t0?8:"BM"===e.t0?11:"SMask"===e.t0?13:"TR"===e.t0?18:"OP"===e.t0||"op"===e.t0||"OPM"===e.t0||"BG"===e.t0||"BG2"===e.t0||"UCR"===e.t0||"UCR2"===e.t0||"TR2"===e.t0||"HT"===e.t0||"SM"===e.t0||"SA"===e.t0||"AIS"===e.t0||"TK"===e.t0?21:23;break;case 5:return e.abrupt("break",25);case 6:return l.push([t,i]),e.abrupt("break",25);case 8:return u=!1,h=h.then((function(){return B.handleSetFont(r,null,i[0],n,a,o.state).then((function(e){n.addDependency(e),l.push([t,[e,i[1]]])}))})),e.abrupt("break",25);case 11:return l.push([t,Vf(i)]),e.abrupt("break",25);case 13:if(!Ke(i,"None")){e.next=16;break}return l.push([t,!1]),e.abrupt("break",25);case 16:return i instanceof He?(u=!1,h=h.then((function(){return B.handleSMask(i,r,n,a,o,c)})),l.push([t,!0])):q("Unsupported SMask type"),e.abrupt("break",25);case 18:return s=B.handleTransferFunction(i),l.push([t,s]),e.abrupt("break",25);case 21:return T("graphic state operator "+t),e.abrupt("break",25);case 23:return T("Unknown graphic state operator "+t),e.abrupt("break",25);case 25:case"end":return e.stop()}}),e)})),I.s();case 9:if((f=I.n()).done){e.next=13;break}return e.delegateYield(C(),"t0",11);case 11:e.next=9;break;case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(6),I.e(e.t1);case 18:return e.prev=18,I.f(),e.finish(18);case 21:return e.next=23,h;case 23:l.length>0&&n.addOp(9,[l]),u&&s.set(i,g,l);case 25:case"end":return e.stop()}}),e,null,[[6,15,18,21]])}))),function(e){return a.apply(this,arguments)})},{key:"loadFont",value:function(t,r,A){var n,i,a=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,c=function(){var e=Yf(Jf().mark((function e(){return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new tC({loadedName:"g_font_error",font:new _u('Font "'.concat(t,'" is not available.')),dict:r,evaluatorOptions:a.options}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(r)r instanceof Ye&&(i=r);else{var g=A.get("Font");g&&(i=g.getRaw(t))}if(i){var u;if(null!==(u=this.type3FontRefs)&&void 0!==u&&u.has(i))return c();if(this.fontCache.has(i))return this.fontCache.get(i);try{r=this.xref.fetchIfRef(i)}catch(e){q('loadFont - lookup failed: "'.concat(e,'".'))}}if(!(r instanceof He)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return q('Font "'.concat(t,'" is not available.')),c();q('Font "'.concat(t,'" is not available -- attempting to fallback to a default font.')),r=o||e.fallbackFontDict}if(r.cacheKey&&this.fontCache.has(r.cacheKey))return this.fontCache.get(r.cacheKey);var l,h=Promise.withResolvers(),I=h.promise,f=h.resolve;try{(l=this.preEvaluateFont(r)).cssFontInfo=s}catch(e){return q('loadFont - preEvaluateFont failed: "'.concat(e,'".')),c()}var C,B=l,Q=B.descriptor,E=B.hash,d=i instanceof Ye;if(E&&Q instanceof He){var y=Q.fontAliases||(Q.fontAliases=Object.create(null));if(y[E]){var p=y[E].aliasRef;if(d&&p&&this.fontCache.has(p))return this.fontCache.putAlias(i,p),this.fontCache.get(i)}else y[E]={fontID:this.idFactory.createFontId()};d&&(y[E].aliasRef=i),C=y[E].fontID}else C=this.idFactory.createFontId();return W(null===(n=C)||void 0===n?void 0:n.startsWith("f"),'The "fontID" must be (correctly) defined.'),d?this.fontCache.put(i,I):(r.cacheKey="cacheKey_".concat(C),this.fontCache.put(r.cacheKey,I)),r.loadedName="".concat(this.idFactory.getDocId(),"_").concat(C),this.translateFont(l).then((function(e){f(new tC({loadedName:r.loadedName,font:e,dict:r,evaluatorOptions:a.options}))})).catch((function(e){q('loadFont - translateFont failed: "'.concat(e,'".')),f(new tC({loadedName:r.loadedName,font:new _u(e instanceof Error?e.message:e),dict:r,evaluatorOptions:a.options}))})),I}},{key:"buildPath",value:function(e,t,r){var A=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=e.length-1;if(r||(r=[]),n<0||91!==e.fnArray[n]){var i;switch(A&&(q('Encountered path operator "'.concat(t,'" inside of a text object.')),e.addOp(x,null)),t){case 19:var a=r[0]+r[2],o=r[1]+r[3];i=[Math.min(r[0],a),Math.min(r[1],o),Math.max(r[0],a),Math.max(r[1],o)];break;case 13:case 14:i=[r[0],r[1],r[0],r[1]];break;default:i=[1/0,1/0,-1/0,-1/0]}e.addOp(91,[[t],r,i]),A&&e.addOp(R,null)}else{var s,c=e.argsArray[n];c[0].push(t),(s=c[1]).push.apply(s,Mf(r));var g=c[2];switch(t){case 19:var u=r[0]+r[2],l=r[1]+r[3];g[0]=Math.min(g[0],r[0],u),g[1]=Math.min(g[1],r[1],l),g[2]=Math.max(g[2],r[0],u),g[3]=Math.max(g[3],r[1],l);break;case 13:case 14:g[0]=Math.min(g[0],r[0]),g[1]=Math.min(g[1],r[1]),g[2]=Math.max(g[2],r[0]),g[3]=Math.max(g[3],r[1])}}}},{key:"parseColorSpace",value:function(e){var t=this,r=e.cs,A=e.resources,n=e.localColorSpaceCache;return Ur.parseAsync({cs:r,xref:this.xref,resources:A,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:n}).catch((function(e){if(e instanceof Ae)return null;if(t.options.ignoreErrors)return q('parseColorSpace - ignoring ColorSpace: "'.concat(e,'".')),null;throw e}))}},{key:"parseShading",value:function(e){var t,r=e.shading,A=e.resources,n=e.localColorSpaceCache,i=e.localShadingPatternCache,a=i.get(r);if(a)return a;try{t=cl.parseShading(r,this.xref,A,this._pdfFunctionFactory,n).getIR()}catch(e){if(e instanceof Ae)return null;if(this.options.ignoreErrors)return q('parseShading - ignoring shading: "'.concat(e,'".')),i.set(r,null),null;throw e}return a="pattern_".concat(this.idFactory.createObjId()),this.parsingType3Font&&(a="".concat(this.idFactory.getDocId(),"_type3_").concat(a)),i.set(r,a),this.parsingType3Font?this.handler.send("commonobj",[a,"Pattern",t]):this.handler.send("obj",[a,this.pageIndex,"Pattern",t]),a}},{key:"handleColorN",value:function(e,t,r,A,n,i,a,o,s,c){var g=r.pop();if(g instanceof Ue){var u=n.getRaw(g.name),l=u instanceof Ye&&s.getByRef(u);if(l)try{var h=A.base?A.base.getRgb(r,0):null,I=Bl(l.operatorListIR,l.dict,h);return void e.addOp(t,I)}catch(e){}var f=this.xref.fetchIfRef(u);if(f){var C=f instanceof ze?f.dict:f,B=C.get("PatternType");if(1===B){var Q=A.base?A.base.getRgb(r,0):null;return this.handleTilingType(t,Q,i,f,C,e,a,s)}if(2===B){var E=C.get("Shading"),d=this.parseShading({shading:E,resources:i,localColorSpaceCache:o,localShadingPatternCache:c});if(d){var y=Ft(C.getArray("Matrix"),null);e.addOp(t,["Shading",d,y])}return}throw new re("Unknown PatternType: ".concat(B))}}throw new re("Unknown PatternName: ".concat(g))}},{key:"_parseVisibilityExpression",value:function(e,t,r){if(++t>10)q("Visibility expression is too deeply nested");else{var A=e.length,n=this.xref.fetchIfRef(e[0]);if(!(A<2)&&n instanceof Ue){switch(n.name){case"And":case"Or":case"Not":r.push(n.name);break;default:return void q("Invalid operator ".concat(n.name," in visibility expression"))}for(var i=1;i0)){e.next=22;break}return e.abrupt("return",{type:"OCMD",expression:s});case 22:if(c=n.get("OCGs"),!(Array.isArray(c)||c instanceof He)){e.next=29;break}if(g=[],Array.isArray(c)){u=jf(c);try{for(u.s();!(l=u.n()).done;)h=l.value,g.push(h.toString())}catch(e){u.e(e)}finally{u.f()}}else g.push(c.objId);return e.abrupt("return",{type:a,ids:g,policy:n.get("P")instanceof Ue?n.get("P").name:null,expression:null});case 29:if(!(c instanceof Ye)){e.next=31;break}return e.abrupt("return",{type:a,id:c.toString()});case 31:return e.abrupt("return",null);case 32:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"getOperatorList",value:function(e){var t=this,r=e.stream,A=e.task,n=e.resources,i=e.operatorList,a=e.initialState,o=void 0===a?null:a,s=e.fallbackFontDict,c=void 0===s?null:s;if(n||(n=He.empty),o||(o=new nC),!i)throw new Error('getOperatorList: missing "operatorList" parameter');var g=this,u=this.xref,l=!1,h=new Lh,I=new Uh,f=new Jh,C=new Hh,B=new Map,Q=n.get("XObject")||He.empty,E=n.get("Pattern")||He.empty,d=new rC(o),y=new iC(r,u,d),p=new $f;function v(e){for(var t=0,r=y.savedStatesDepth;t0&&i.addOp(9,[$]),S=null;continue}}return void a(new Promise((function(e,t){if(!k)throw new re("GState must be referred to by name.");var r=n.get("ExtGState");if(!(r instanceof He))throw new re("ExtGState should be a dictionary.");var a=r.get(b);if(!(a instanceof He))throw new re("GState should be a dictionary.");g.setGState({resources:n,gState:a,operatorList:i,cacheKey:b,task:A,stateManager:d,localGStateCache:f,localColorSpaceCache:I}).then(e,t)})).catch((function(e){if(!(e instanceof Ae)){if(!g.options.ignoreErrors)throw e;q('getOperatorList - ignoring ExtGState: "'.concat(e,'".'))}})));case 13:case 14:case 15:case 16:case 17:case 18:case 19:g.buildPath(i,F,S,l);continue;case 67:case 68:case 72:case 73:continue;case J:if(!(S[0]instanceof Ue)){q("Expected name for beginMarkedContentProps arg0=".concat(S[0])),i.addOp(J,["OC",null]);continue}if("OC"===S[0].name)return void a(g.parseMarkedContentProps(S[1],n).then((function(e){i.addOp(J,["OC",e])})).catch((function(e){if(!(e instanceof Ae)){if(g.options.ignoreErrors)return q('getOperatorList - ignoring beginMarkedContentProps: "'.concat(e,'".')),void i.addOp(J,["OC",null]);throw e}})));S=[S[0].name,S[1]instanceof He?S[1].get("MCID"):null];break;default:if(null!==S){for(s=0,m=S.length;s0&&(t[3]*=r*F.fontMatrix[3])}return ge.transform(F.ctm,ge.transform(F.textMatrix,t))}function z(){if(m.initialized)return m;var e=F,t=e.font,r=e.loadedName;if(!u.has(r)&&(u.add(r),v.styles[r]={fontFamily:t.fallbackName,ascent:t.ascent,descent:t.descent,vertical:t.vertical},O.options.fontExtraProperties&&t.systemFontInfo)){var A=v.styles[r];A.fontSubstitution=t.systemFontInfo.css,A.fontSubstitutionLoadedName=t.systemFontInfo.loadedName}m.fontName=r;var n=m.transform=V();t.vertical?(m.width=m.totalWidth=Math.hypot(n[0],n[1]),m.height=m.totalHeight=0,m.vertical=!0):(m.width=m.totalWidth=0,m.height=m.totalHeight=Math.hypot(n[2],n[3]),m.vertical=!1);var i=Math.hypot(F.textLineMatrix[0],F.textLineMatrix[1]),a=Math.hypot(F.ctm[0],F.ctm[1]);m.textAdvanceScale=a*i;var o=F.fontSize;return m.trackingSpaceMin=o*x,m.notASpace=o*G,m.negativeSpaceMax=o*U,m.spaceInFlowMin=o*M,m.spaceInFlowMax=o*Y,m.hasEOL=!1,m.initialized=!0,m}function $(){if(m.initialized){var e=Math.hypot(F.textLineMatrix[0],F.textLineMatrix[1]),t=Math.hypot(F.ctm[0],F.ctm[1])*e;t!==m.textAdvanceScale&&(m.vertical?(m.totalHeight+=m.height*m.textAdvanceScale,m.height=0):(m.totalWidth+=m.width*m.textAdvanceScale,m.width=0),m.textAdvanceScale=t)}}function ee(e,t){return te.apply(this,arguments)}function te(){return(te=Yf(Jf().mark((function e(t,r){var i;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.loadFont(t,r,n);case 2:if(!(i=e.sent).font.isType3Font){e.next=11;break}return e.prev=4,e.next=7,i.loadType3Data(O,n,A);case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(4);case 11:F.loadedName=i.loadedName,F.font=i.font,F.fontMatrix=i.font.fontMatrix||B;case 14:case"end":return e.stop()}}),e,null,[[4,9]])})))).apply(this,arguments)}function ne(e,t,r){var A=Math.hypot(r[0],r[1]);return[(r[0]*e+r[1]*t)/A,(r[2]*e+r[3]*t)/A]}function ie(e){var t,r=V(),A=r[4],n=r[5];if(null!==(t=F.font)&&void 0!==t&&t.vertical){if(Al[2]||n+el[3])return!1}else if(A+el[2]||nl[3])return!1;if(!F.font||!m.prevTransform)return!0;var i=m.prevTransform[4],a=m.prevTransform[5];if(i===A&&a===n)return!0;var o=-1;switch(r[0]&&0===r[1]&&0===r[2]?o=r[0]>0?0:180:r[1]&&0===r[0]&&0===r[3]&&(o=r[1]>0?90:270),o){case 0:break;case 90:var s=[n,A];A=s[0],n=s[1];var c=[a,i];i=c[0],a=c[1];break;case 180:var g=[-A,-n,-i,-a];A=g[0],n=g[1],i=g[2],a=g[3];break;case 270:var u=[-n,-A];A=u[0],n=u[1];var h=[-a,-i];i=h[0],a=h[1];break;default:var I=Uf(ne(A,n,r),2);A=I[0],n=I[1];var f=Uf(ne(i,a,m.prevTransform),2);i=f[0],a=f[1]}if(F.font.vertical){var C=(a-n)/m.textAdvanceScale,B=A-i,Q=Math.sign(m.height);return C.5*m.width?(oe(),!0):(S(),ce(),!0):Math.abs(B)>m.width?(oe(),!0):(C<=Q*m.notASpace&&S(),C<=Q*m.trackingSpaceMin?D()?(S(),ce(),X({height:Math.abs(C)})):m.height+=C:se(C,m.prevTransform,Q)||(0===m.str.length?(S(),X({height:Math.abs(C)})):m.height+=C),Math.abs(B)>m.width*P&&ce(),!0)}var E=(A-i)/m.textAdvanceScale,d=n-a,y=Math.sign(m.width);return E.5*m.height?(oe(),!0):(S(),ce(),!0):Math.abs(d)>m.height?(oe(),!0):(E<=y*m.notASpace&&S(),E<=y*m.trackingSpaceMin?D()?(S(),ce(),X({width:Math.abs(E)})):m.width+=E:se(E,m.prevTransform,y)||(0===m.str.length?(S(),X({width:Math.abs(E)})):m.width+=E),Math.abs(d)>m.height*P&&ce(),!0)}function ae(e){var t=e.chars,r=e.extraSpacing,A=F.font;if(!t){var n=F.charSpacing+r;return n&&(A.vertical?F.translateTextMatrix(0,-n):F.translateTextMatrix(n*F.textHScale,0)),void(p&&ie(0))}for(var i=A.charsToGlyphs(t),a=F.fontMatrix[0]*F.fontSize,o=0,s=i.length;o0&&void 0!==arguments[0]&&arguments[0],t=v.items.length;0!==t&&(e&&t<10||(c.enqueue(v,t),v.items=[],v.styles=Object.create(null)))}var le=new $f;return new Promise((function e(t,r){var i=function(A){ue(!0),Promise.all([A,c.ready]).then((function(){try{e(t,r)}catch(e){r(e)}}),r)};A.ensureNotTerminated(),le.reset();for(var o,g={},h=[];!(o=le.check())&&(h.length=0,g.args=h,_.read(g));){var f=F;F=a.state;var B=g.fn;switch(h=g.args,0|B){case N:var E=h[0].name,y=h[1];if(F.font&&E===F.fontName&&y===F.fontSize)break;return ce(),F.fontName=E,F.fontSize=y,void i(ee(E,null));case 39:F.textRise=h[0];break;case 35:F.textHScale=h[0]/100;break;case 36:F.leading=h[0];break;case 40:F.translateTextLineMatrix(h[0],h[1]),F.textMatrix=F.textLineMatrix.slice();break;case 41:F.leading=-h[1],F.translateTextLineMatrix(h[0],h[1]),F.textMatrix=F.textLineMatrix.slice();break;case 43:F.carriageReturn();break;case 42:F.setTextMatrix(h[0],h[1],h[2],h[3],h[4],h[5]),F.setTextLineMatrix(h[0],h[1],h[2],h[3],h[4],h[5]),$();break;case 33:F.charSpacing=h[0];break;case 34:F.wordSpacing=h[0];break;case 31:F.textMatrix=C.slice(),F.textLineMatrix=C.slice();break;case 45:if(!a.state.font){O.ensureStateFont(a.state);continue}for(var m=(F.font.vertical?1:-1)*F.fontSize/1e3,w=h[0],b=0,k=w.length;b0){var x=T.join("");T.length=0,ae({chars:x,extraSpacing:0})}break;case L:if(!a.state.font){O.ensureStateFont(a.state);continue}ae({chars:h[0],extraSpacing:0});break;case 46:if(!a.state.font){O.ensureStateFont(a.state);continue}F.carriageReturn(),ae({chars:h[0],extraSpacing:0});break;case 47:if(!a.state.font){O.ensureStateFont(a.state);continue}F.wordSpacing=h[0],F.charSpacing=h[1],F.carriageReturn(),ae({chars:h[2],extraSpacing:0});break;case 66:ce(),j||(j=n.get("XObject")||He.empty);var G=h[0]instanceof Ue,U=h[0].name;if(G&&W.getByName(U))break;return void i(new Promise((function(e,t){if(!G)throw new re("XObject must be referred to by name.");var r=j.getRaw(U);if(r instanceof Ye){if(W.getByRef(r))return void e();if(O.globalImageCache.getData(r,O.pageIndex))return void e();r=K.fetch(r)}if(!(r instanceof ze))throw new re("XObject should be a stream");var i=r.dict.get("Subtype");if(!(i instanceof Ue))throw new re("XObject should have a Name subtype");if("Form"!==i.name)return W.set(U,r.dict.objId,!0),void e();var o=a.state.clone(),g=new rC(o),h=Ft(r.dict.getArray("Matrix"),null);h&&g.transform(h),ue();var f={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0,c.enqueue(e,t)},get desiredSize(){return c.desiredSize},get ready(){return c.ready}};O.getTextContent({stream:r,task:A,resources:r.dict.get("Resources")||n,stateManager:g,includeMarkedContent:s,sink:f,seenStyles:u,viewBox:l,lang:I,markedContentData:Q,disableNormalization:d,keepWhiteSpace:p}).then((function(){f.enqueueInvoked||W.set(U,r.dict.objId,!0),e()}),t)})).catch((function(e){if(!(e instanceof Ae)){if(!O.options.ignoreErrors)throw e;q('getTextContent - ignoring XObject: "'.concat(e,'".'))}})));case 9:if(G=h[0]instanceof Ue,U=h[0].name,G&&Z.getByName(U))break;return void i(new Promise((function(e,t){if(!G)throw new re("GState must be referred to by name.");var r=n.get("ExtGState");if(!(r instanceof He))throw new re("ExtGState should be a dictionary.");var A=r.get(U);if(!(A instanceof He))throw new re("GState should be a dictionary.");var i=A.get("Font");if(!i)return Z.set(U,A.objId,!0),void e();ce(),F.fontName=null,F.fontSize=i[1],ee(null,i[0]).then(e,t)})).catch((function(e){if(!(e instanceof Ae)){if(!O.options.ignoreErrors)throw e;q('getTextContent - ignoring ExtGState: "'.concat(e,'".'))}})));case 69:ce(),s&&(Q.level++,v.items.push({type:"beginMarkedContent",tag:h[0]instanceof Ue?h[0].name:null}));break;case J:if(ce(),s){Q.level++;var M=null;h[1]instanceof He&&(M=h[1].get("MCID")),v.items.push({type:"beginMarkedContentProps",id:Number.isInteger(M)?"".concat(O.idFactory.getPageObjId(),"_mc").concat(M):null,tag:h[0]instanceof Ue?h[0].name:null})}break;case H:if(ce(),s){if(0===Q.level)break;Q.level--,v.items.push({type:"endMarkedContent"})}break;case R:!f||f.font===F.font&&f.fontSize===F.fontSize&&f.fontName===F.fontName||ce()}if(v.items.length>=c.desiredSize){o=!0;break}}o?i(Xf):(ce(),ue(),t())})).catch((function(e){if(!(e instanceof Ae)){if(t.options.ignoreErrors)return q('getTextContent - ignoring errors during "'.concat(A.name,'" ')+'task: "'.concat(e,'".')),ce(),void ue();throw e}}))}},{key:"extractDataStructures",value:(n=Yf(Jf().mark((function e(t,r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(A=this.xref,i=this.readToUnicode(r.toUnicode),!r.composite){e.next=15;break}(a=t.get("CIDSystemInfo"))instanceof He&&(r.cidSystemInfo={registry:Ie(a.get("Registry")),ordering:Ie(a.get("Ordering")),supplement:a.get("Supplement")}),e.prev=5,(o=t.get("CIDToGIDMap"))instanceof ze&&(n=o.getBytes()),e.next=15;break;case 10:if(e.prev=10,e.t0=e.catch(5),this.options.ignoreErrors){e.next=14;break}throw e.t0;case 14:q('extractDataStructures - ignoring CIDToGIDMap data: "'.concat(e.t0,'".'));case 15:if(s=[],c=null,!t.has("Encoding")){e.next=61;break}if(!((g=t.get("Encoding"))instanceof He)){e.next=52;break}if(c=(c=g.get("BaseEncoding"))instanceof Ue?c.name:null,!g.has("Differences")){e.next=50;break}u=g.get("Differences"),l=0,h=jf(u),e.prev=26,h.s();case 28:if((I=h.n()).done){e.next=42;break}if(f=I.value,"number"!=typeof(C=A.fetchIfRef(f))){e.next=35;break}l=C,e.next=40;break;case 35:if(!(C instanceof Ue)){e.next=39;break}s[l++]=C.name,e.next=40;break;case 39:throw new re("Invalid entry in 'Differences' array: ".concat(C));case 40:e.next=28;break;case 42:e.next=47;break;case 44:e.prev=44,e.t1=e.catch(26),h.e(e.t1);case 47:return e.prev=47,h.f(),e.finish(47);case 50:e.next=60;break;case 52:if(!(g instanceof Ue)){e.next=56;break}c=g.name,e.next=60;break;case 56:if(B="Encoding is not a Name nor a Dict",this.options.ignoreErrors){e.next=59;break}throw new re(B);case 59:q(B);case 60:"MacRomanEncoding"!==c&&"MacExpertEncoding"!==c&&"WinAnsiEncoding"!==c&&(c=null);case 61:return Q=!r.file||r.isInternalFont,E=Fc()[r.name],c&&Q&&E&&(c=null),c?r.defaultEncoding=Rs(c):(d=!!(4&r.flags),y=!!(32&r.flags),g=Ds,"TrueType"!==r.type||y||(g=Ss),(d||E)&&(g=ks,Q&&(/Symbol/i.test(r.name)?g=Fs:/Dingbats/i.test(r.name)?g=xs:/Wingdings/i.test(r.name)&&(g=Ss))),r.defaultEncoding=g),r.differences=s,r.baseEncodingName=c,r.hasEncoding=!!c||s.length>0,r.dict=t,e.next=70,i;case 70:return r.toUnicode=e.sent,e.next=73,this.buildToUnicode(r);case 73:return p=e.sent,r.toUnicode=p,n&&(r.cidToGidMap=this.readCidToGidMap(n,p)),e.abrupt("return",r);case 77:case"end":return e.stop()}}),e,this,[[5,10],[26,44,47,50]])}))),function(e,t){return n.apply(this,arguments)})},{key:"_simpleFontToUnicode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];W(!e.composite,"Must be a simple font.");var r=[],A=e.defaultEncoding.slice(),n=e.baseEncodingName,i=e.differences;for(var a in i){var o=i[a];".notdef"!==o&&(A[a]=o)}var s=lc();for(var c in A){var g=A[c];if(""!==g){var u=s[g];if(void 0===u){var l=0;switch(g[0]){case"G":3===g.length&&(l=parseInt(g.substring(1),16));break;case"g":5===g.length&&(l=parseInt(g.substring(1),16));break;case"C":case"c":if(g.length>=3&&g.length<=4){var h=g.substring(1);if(t){l=parseInt(h,16);break}if(l=+h,Number.isNaN(l)&&Number.isInteger(parseInt(h,16)))return this._simpleFontToUnicode(e,!0)}break;case"u":-1!==(u=fc(g,s))&&(l=u);break;default:switch(g){case"f_h":case"f_t":case"T_h":r[c]=g.replaceAll("_","");continue}}if(l>0&&l<=1114111&&Number.isInteger(l)){if(n&&l===+c){var I=Rs(n);if(I&&(g=I[c])){r[c]=String.fromCharCode(s[g]);continue}}r[c]=String.fromCodePoint(l)}}else r[c]=String.fromCharCode(u)}}return r}},{key:"buildToUnicode",value:(A=Yf(Jf().mark((function e(t){var r,A,n,i,a,o,s,c,g;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.hasIncludedToUnicodeMap=(null===(r=t.toUnicode)||void 0===r?void 0:r.length)>0,!t.hasIncludedToUnicodeMap){e.next=4;break}return!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._simpleFontToUnicode(t)),e.abrupt("return",t.toUnicode);case 4:if(t.composite){e.next=6;break}return e.abrupt("return",new Yc(this._simpleFontToUnicode(t)));case 6:if(!t.composite||(!t.cMap.builtInCMap||t.cMap instanceof ns)&&("Adobe"!==(null===(A=t.cidSystemInfo)||void 0===A?void 0:A.registry)||"GB1"!==t.cidSystemInfo.ordering&&"CNS1"!==t.cidSystemInfo.ordering&&"Japan1"!==t.cidSystemInfo.ordering&&"Korea1"!==t.cidSystemInfo.ordering)){e.next=15;break}return n=t.cidSystemInfo,i=n.registry,a=n.ordering,o=Ue.get("".concat(i,"-").concat(a,"-UCS2")),e.next=11,ys.create({encoding:o,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 11:return s=e.sent,c=[],g=[],t.cMap.forEach((function(e,t){if(t>65535)throw new re("Max size of CID is 65,535");var r=s.lookup(t);if(r){g.length=0;for(var A=0,n=r.length;A>1;(0!==i||t.has(a))&&(r[a]=i)}return r}},{key:"extractWidths",value:function(e,t,r){var A,n=this.xref,i=[],a=0,o=[];if(r.composite){var s=e.get("DW");a="number"==typeof s?Math.ceil(s):1e3;var c=e.get("W");if(Array.isArray(c))for(var g=0,u=c.length;g1&&void 0!==arguments[1]?arguments[1]:NaN,r=ge.normalizeRect(e.argsArray[0].slice(2)),A=r[2]-r[0],n=r[3]-r[1],i=Math.hypot(A,n);0===A||0===n?(e.fnArray.splice(0,1),e.argsArray.splice(0,1)):(0===t||Math.round(i/t)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],r[0]),this._bbox[1]=Math.min(this._bbox[1],r[1]),this._bbox[2]=Math.max(this._bbox[2],r[2]),this._bbox[3]=Math.max(this._bbox[3],r[3]));for(var a=0,o=e.length;a0&&void 0!==arguments[0]?arguments[0]:new nC;Pf(this,e),this.state=t,this.stateStack=[]}),[{key:"save",value:function(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()}},{key:"restore",value:function(){var e=this.stateStack.pop();e&&(this.state=e)}},{key:"transform",value:function(e){this.state.ctm=ge.transform(this.state.ctm,e)}}])}(),AC=function(){return Kf((function e(){Pf(this,e),this.ctm=new Float32Array(C),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=B,this.textMatrix=C.slice(),this.textLineMatrix=C.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}),[{key:"setTextMatrix",value:function(e,t,r,A,n,i){var a=this.textMatrix;a[0]=e,a[1]=t,a[2]=r,a[3]=A,a[4]=n,a[5]=i}},{key:"setTextLineMatrix",value:function(e,t,r,A,n,i){var a=this.textLineMatrix;a[0]=e,a[1]=t,a[2]=r,a[3]=A,a[4]=n,a[5]=i}},{key:"translateTextMatrix",value:function(e,t){var r=this.textMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}},{key:"translateTextLineMatrix",value:function(e,t){var r=this.textLineMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}},{key:"carriageReturn",value:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}},{key:"clone",value:function(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}}])}(),nC=function(){return Kf((function e(){Pf(this,e),this.ctm=new Float32Array(C),this.font=null,this.textRenderingMode=0,this._fillColorSpace=Ur.singletons.gray,this._strokeColorSpace=Ur.singletons.gray,this.patternFillColorSpace=null,this.patternStrokeColorSpace=null}),[{key:"fillColorSpace",get:function(){return this._fillColorSpace},set:function(e){this._fillColorSpace=this.patternFillColorSpace=e}},{key:"strokeColorSpace",get:function(){return this._strokeColorSpace},set:function(e){this._strokeColorSpace=this.patternStrokeColorSpace=e}},{key:"clone",value:function(){return Object.create(this)}}])}(),iC=function(){function e(t,r){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new rC;Pf(this,e),this.parser=new Jo({lexer:new Oo(t,e.opMap),xref:r}),this.stateManager=A,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}return Kf(e,[{key:"savedStatesDepth",get:function(){return this.stateManager.stateStack.length}},{key:"read",value:function(t){for(var r=t.args;;){var A=this.parser.getObj();if(A instanceof Me){var n=A.cmd,i=e.opMap[n];if(!i){q('Unknown command "'.concat(n,'".'));continue}var a=i.id,o=i.numArgs,s=null!==r?r.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=a>=13&&a<=28,i.variableArgs)s>o&&T("Command ".concat(n,": expected [0, ").concat(o,"] args, ")+"but received ".concat(s," args."));else{if(s!==o){for(var c=this.nonProcessedArgs;s>o;)c.push(r.shift()),s--;for(;se.MAX_INVALID_PATH_OPS)throw new re("Invalid ".concat(g));q("Skipping ".concat(g)),null!==r&&(r.length=0);continue}}return this.preprocessCommand(a,r),t.fn=a,t.args=r,!0}if(A===Re)return!1;if(null!==A&&(null===r&&(r=[]),r.push(A),r.length>33))throw new re("Too many arguments")}}},{key:"preprocessCommand",value:function(e,t){switch(0|e){case x:this.stateManager.save();break;case R:this.stateManager.restore();break;case G:this.stateManager.transform(t)}}}],[{key:"opMap",get:function(){return _(this,"opMap",Object.assign(Object.create(null),{w:{id:2,numArgs:1,variableArgs:!1},J:{id:3,numArgs:1,variableArgs:!1},j:{id:4,numArgs:1,variableArgs:!1},M:{id:5,numArgs:1,variableArgs:!1},d:{id:6,numArgs:2,variableArgs:!1},ri:{id:7,numArgs:1,variableArgs:!1},i:{id:8,numArgs:1,variableArgs:!1},gs:{id:9,numArgs:1,variableArgs:!1},q:{id:x,numArgs:0,variableArgs:!1},Q:{id:R,numArgs:0,variableArgs:!1},cm:{id:G,numArgs:6,variableArgs:!1},m:{id:13,numArgs:2,variableArgs:!1},l:{id:14,numArgs:2,variableArgs:!1},c:{id:15,numArgs:6,variableArgs:!1},v:{id:16,numArgs:4,variableArgs:!1},y:{id:17,numArgs:4,variableArgs:!1},h:{id:18,numArgs:0,variableArgs:!1},re:{id:19,numArgs:4,variableArgs:!1},S:{id:20,numArgs:0,variableArgs:!1},s:{id:21,numArgs:0,variableArgs:!1},f:{id:22,numArgs:0,variableArgs:!1},F:{id:22,numArgs:0,variableArgs:!1},"f*":{id:23,numArgs:0,variableArgs:!1},B:{id:24,numArgs:0,variableArgs:!1},"B*":{id:25,numArgs:0,variableArgs:!1},b:{id:26,numArgs:0,variableArgs:!1},"b*":{id:27,numArgs:0,variableArgs:!1},n:{id:28,numArgs:0,variableArgs:!1},W:{id:29,numArgs:0,variableArgs:!1},"W*":{id:30,numArgs:0,variableArgs:!1},BT:{id:31,numArgs:0,variableArgs:!1},ET:{id:32,numArgs:0,variableArgs:!1},Tc:{id:33,numArgs:1,variableArgs:!1},Tw:{id:34,numArgs:1,variableArgs:!1},Tz:{id:35,numArgs:1,variableArgs:!1},TL:{id:36,numArgs:1,variableArgs:!1},Tf:{id:N,numArgs:2,variableArgs:!1},Tr:{id:38,numArgs:1,variableArgs:!1},Ts:{id:39,numArgs:1,variableArgs:!1},Td:{id:40,numArgs:2,variableArgs:!1},TD:{id:41,numArgs:2,variableArgs:!1},Tm:{id:42,numArgs:6,variableArgs:!1},"T*":{id:43,numArgs:0,variableArgs:!1},Tj:{id:L,numArgs:1,variableArgs:!1},TJ:{id:45,numArgs:1,variableArgs:!1},"'":{id:46,numArgs:1,variableArgs:!1},'"':{id:47,numArgs:3,variableArgs:!1},d0:{id:48,numArgs:2,variableArgs:!1},d1:{id:49,numArgs:6,variableArgs:!1},CS:{id:50,numArgs:1,variableArgs:!1},cs:{id:51,numArgs:1,variableArgs:!1},SC:{id:52,numArgs:4,variableArgs:!0},SCN:{id:53,numArgs:33,variableArgs:!0},sc:{id:54,numArgs:4,variableArgs:!0},scn:{id:55,numArgs:33,variableArgs:!0},G:{id:56,numArgs:1,variableArgs:!1},g:{id:57,numArgs:1,variableArgs:!1},RG:{id:U,numArgs:3,variableArgs:!1},rg:{id:M,numArgs:3,variableArgs:!1},K:{id:60,numArgs:4,variableArgs:!1},k:{id:61,numArgs:4,variableArgs:!1},sh:{id:62,numArgs:1,variableArgs:!1},BI:{id:63,numArgs:0,variableArgs:!1},ID:{id:64,numArgs:0,variableArgs:!1},EI:{id:65,numArgs:1,variableArgs:!1},Do:{id:66,numArgs:1,variableArgs:!1},MP:{id:67,numArgs:1,variableArgs:!1},DP:{id:68,numArgs:2,variableArgs:!1},BMC:{id:69,numArgs:1,variableArgs:!1},BDC:{id:J,numArgs:2,variableArgs:!1},EMC:{id:H,numArgs:0,variableArgs:!1},BX:{id:72,numArgs:0,variableArgs:!1},EX:{id:73,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null}))}}])}();function aC(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=sC(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function oC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||sC(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 sC(e,t){if(e){if("string"==typeof e)return cC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cC(e,t):void 0}}function cC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r0&&(t.fontSize=a);break;case M:Ur.singletons.rgb.getRgbItem(A,0,t.fontColor,0);break;case 57:Ur.singletons.gray.getRgbItem(A,0,t.fontColor,0);break;case 61:Ur.singletons.cmyk.getRgbItem(A,0,t.fontColor,0)}}}catch(e){q('parseDefaultAppearance - ignoring errors: "'.concat(e,'".'))}return t}}])}();function dC(e){return new EC(e).parse()}var yC=function(e){function t(e,r,A){var n,i;return gC(this,t),(i=IC(this,t,[e])).stream=e,i.evaluatorOptions=r,i.xref=A,i.resources=null===(n=e.dict)||void 0===n?void 0:n.get("Resources"),i}return BC(t,iC),lC(t,[{key:"parse",value:function(){var e={fn:0,args:[]},t={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:Ur.singletons.gray},r=!1,A=[];try{for(;e.args.length=0,!r&&this.read(e);){var n=e.fn,i=e.args;switch(0|n){case x:A.push({scaleFactor:t.scaleFactor,fontSize:t.fontSize,fontName:t.fontName,fontColor:t.fontColor.slice(),fillColorSpace:t.fillColorSpace});break;case R:t=A.pop()||t;break;case 42:t.scaleFactor*=Math.hypot(i[0],i[1]);break;case N:var a=oC(i,2),o=a[0],s=a[1];o instanceof Ue&&(t.fontName=o.name),"number"==typeof s&&s>0&&(t.fontSize=s*t.scaleFactor);break;case 51:t.fillColorSpace=Ur.parse({cs:i[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:this._localColorSpaceCache});break;case 54:t.fillColorSpace.getRgbItem(i,0,t.fontColor,0);break;case M:Ur.singletons.rgb.getRgbItem(i,0,t.fontColor,0);break;case 57:Ur.singletons.gray.getRgbItem(i,0,t.fontColor,0);break;case 61:Ur.singletons.cmyk.getRgbItem(i,0,t.fontColor,0);break;case L:case 45:case 46:case 47:r=!0}}}catch(e){q('parseAppearanceStream - ignoring errors: "'.concat(e,'".'))}return this.stream.reset(),delete t.scaleFactor,delete t.fillColorSpace,t}},{key:"_localColorSpaceCache",get:function(){return _(this,"_localColorSpaceCache",new Uh)}},{key:"_pdfFunctionFactory",get:function(){return _(this,"_pdfFunctionFactory",new iI({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported}))}}])}();function pC(e,t){if(e[0]===e[1]&&e[1]===e[2]){var r=e[0]/255;return"".concat(Tt(r)," ").concat(t?"g":"G")}return Array.from(e,(function(e){return Tt(e/255)})).join(" ")+" ".concat(t?"rg":"RG")}var vC=function(){function e(t,r){gC(this,e),this.xref=t,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=r;var A=new OffscreenCanvas(1,1);this.ctxMeasure=A.getContext("2d",{willReadFrequently:!0}),e._fontNameId||(e._fontNameId=1),this.fontName=Ue.get("InvalidPDFjsFont_".concat(r,"_").concat(e._fontNameId++))}return lC(e,[{key:"fontDescriptorRef",get:function(){if(!e._fontDescriptorRef){var t=new He(this.xref);t.set("Type",Ue.get("FontDescriptor")),t.set("FontName",this.fontName),t.set("FontFamily","MyriadPro Regular"),t.set("FontBBox",[0,0,0,0]),t.set("FontStretch",Ue.get("Normal")),t.set("FontWeight",400),t.set("ItalicAngle",0),e._fontDescriptorRef=this.xref.getNewPersistentRef(t)}return e._fontDescriptorRef}},{key:"descendantFontRef",get:function(){var e=new He(this.xref);e.set("BaseFont",this.fontName),e.set("Type",Ue.get("Font")),e.set("Subtype",Ue.get("CIDFontType0")),e.set("CIDToGIDMap",Ue.get("Identity")),e.set("FirstChar",this.firstChar),e.set("LastChar",this.lastChar),e.set("FontDescriptor",this.fontDescriptorRef),e.set("DW",1e3);var t,r=[],A=null,n=null,i=aC(function(e){return function(e){if(Array.isArray(e))return cC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sC(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.")}()}(this.widths.entries()).sort());try{for(i.s();!(t=i.n()).done;){var a=oC(t.value,2),o=a[0],s=a[1];A?o===A+n.length?n.push(s):(r.push(A,n),A=o,n=[s]):(A=o,n=[s])}}catch(e){i.e(e)}finally{i.f()}A&&r.push(A,n),e.set("W",r);var c=new He(this.xref);return c.set("Ordering","Identity"),c.set("Registry","Adobe"),c.set("Supplement",0),e.set("CIDSystemInfo",c),this.xref.getNewPersistentRef(e)}},{key:"baseFontRef",get:function(){var e=new He(this.xref);return e.set("BaseFont",this.fontName),e.set("Type",Ue.get("Font")),e.set("Subtype",Ue.get("Type0")),e.set("Encoding",Ue.get("Identity-H")),e.set("DescendantFonts",[this.descendantFontRef]),e.set("ToUnicode",Ue.get("Identity-H")),this.xref.getNewPersistentRef(e)}},{key:"resources",get:function(){var e=new He(this.xref),t=new He(this.xref);return t.set(this.fontName.name,this.baseFontRef),e.set("Font",t),e}},{key:"_createContext",value:function(){return this.widths=new Map,this.ctxMeasure.font="1000px ".concat(this.fontFamily),this.ctxMeasure}},{key:"createFontResources",value:function(e){var t,r=this._createContext(),A=aC(e.split(/\\r\\n?|\\n/));try{for(A.s();!(t=A.n()).done;){var n,i=aC(t.value.split(""));try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.charCodeAt(0);if(!this.widths.has(o)){var s=r.measureText(a),c=Math.ceil(s.width);this.widths.set(o,c),this.firstChar=Math.min(o,this.firstChar),this.lastChar=Math.max(o,this.lastChar)}}}catch(e){i.e(e)}finally{i.f()}}}catch(e){A.e(e)}finally{A.f()}return this.resources}},{key:"createAppearance",value:function(e,t,r,A,n,i){var a,o=this._createContext(),s=[],c=-1/0,g=aC(e.split(/\\r\\n?|\\n/));try{for(g.s();!(a=g.n()).done;){var u=a.value;s.push(u);var l=o.measureText(u).width;c=Math.max(c,l);var h,I=aC(Ht(u));try{for(I.s();!(h=I.n()).done;){var f=h.value,C=String.fromCodePoint(f),B=this.widths.get(f);if(void 0===B){var E=o.measureText(C);B=Math.ceil(E.width),this.widths.set(f,B),this.firstChar=Math.min(f,this.firstChar),this.lastChar=Math.max(f,this.lastChar)}}}catch(e){I.e(e)}finally{I.f()}}}catch(e){g.e(e)}finally{g.f()}c*=A/1e3;var d=oC(t,4),y=d[0],p=d[1],v=d[2]-y,m=d[3]-p;if(r%180!=0){var w=[m,v];v=w[0],m=w[1]}var b=1;c>v&&(b=v/c);var k=1,D=Q*A,S=.35*A,F=D*s.length;F>m&&(k=m/F);var x=A*Math.min(b,k),R=["q","0 0 ".concat(Tt(v)," ").concat(Tt(m)," re W n"),"BT","1 0 0 1 0 ".concat(Tt(m+S)," Tm 0 Tc ").concat(pC(n,!0)),"/".concat(this.fontName.name," ").concat(Tt(x)," Tf")],G=this.resources;if(1!==(i="number"==typeof i&&i>=0&&i<=1?i:1)){R.push("/R0 gs");var N=new He(this.xref),L=new He(this.xref);L.set("ca",i),L.set("CA",i),L.set("Type",Ue.get("ExtGState")),N.set("R0",L),G.set("ExtGState",N)}for(var U=Tt(D),M=0,J=s;M Tj"))}R.push("ET","Q");var Y=R.join("\\n"),P=new He(this.xref);if(P.set("Subtype",Ue.get("Form")),P.set("Type",Ue.get("XObject")),P.set("BBox",[0,0,v,m]),P.set("Length",Y.length),P.set("Resources",G),r){var O=_t(r,v,m);P.set("Matrix",O)}var K=new or(Y);return K.dict=P,K}}],[{key:"getFirstPositionInfo",value:function(e,t,r){var A=oC(e,4),n=A[0],i=A[1],a=A[2]-n,o=A[3]-i;if(t%180!=0){var s=[o,a];a=s[0],o=s[1]}var c=Q*r;return{coords:[0,o+.35*r-c],bbox:[0,0,a,o],matrix:0!==t?_t(t,o,c):void 0}}}])}();function mC(e,t,r){return t=bC(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wC()?Reflect.construct(t,r||[],bC(e).constructor):t.apply(e,r))}function wC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wC=function(){return!!e})()}function bC(e){return bC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bC(e)}function kC(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DC(e,t)}function DC(e,t){return DC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DC(e,t)}function SC(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return FC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?FC(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function FC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r0;){var n=t.fetchIfRef(A.shift());if(n instanceof He)if(n.has("Kids")){var i=n.get("Kids");if(!Array.isArray(i))continue;var a,o=SC(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(r.has(s))throw new re('Duplicate entry in "'.concat(this._type,'" tree.'));A.push(s),r.put(s)}}catch(e){o.e(e)}finally{o.f()}}else{var c=n.get(this._type);if(Array.isArray(c))for(var g=0,u=c.length;g10)return q('Search depth limit reached for "'.concat(this._type,'" tree.')),null;var n=r.get("Kids");if(!Array.isArray(n))return null;for(var i=0,a=n.length-1;i<=a;){var o=i+a>>1,s=t.fetchIfRef(n[o]),c=s.get("Limits");if(et.fetchIfRef(c[1]))){r=s;break}i=o+1}}if(i>a)return null}var g=r.get(this._type);if(Array.isArray(g))for(var u=0,l=g.length-2;u<=l;){var h=u+l>>1,I=h+(1&h),f=t.fetchIfRef(g[I]);if(ef))return g[I+1];u=I+2}}return null}},{key:"get",value:function(e){return this.xref.fetchIfRef(this.getRaw(e))}}])}(),UC=function(e){function t(e,r){return xC(this,t),mC(this,t,[e,r,"Names"])}return kC(t,LC),GC(t)}(),MC=function(e){function t(e,r){return xC(this,t),mC(this,t,[e,r,"Nums"])}return kC(t,LC),GC(t)}();function JC(){hl=Object.create(null),Ge=Object.create(null),Ne=Object.create(null),Le=Object.create(null),Ec.clear(),Va.cleanup()}function HC(e,t){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}(this,KC,!1),t instanceof He&&(this.xref=r,this.root=t,t.has("FS")&&(this.fs=t.get("FS")),t.has("RF")&&q("Related file specifications are not supported"),i||(t.has("EF")?(n=this,(A=KC).set(PC(A,n),!0)):q("Non-embedded file specifications are not supported")))}),[{key:"filename",get:function(){var e="",t=OC(this.root);return t&&"string"==typeof t&&(e=Ie(t).replaceAll("\\\\\\\\","\\\\").replaceAll("\\\\/","/").replaceAll("\\\\","/")),_(this,"filename",e||"unnamed")}},{key:"content",get:function(){var e,t;if(this,!(t=KC).get(PC(t,this)))return null;this._contentRef||(this._contentRef=OC(null===(e=this.root)||void 0===e?void 0:e.get("EF")));var r=null;if(this._contentRef){var A=this.xref.fetchIfRef(this._contentRef);A instanceof ze?r=A.getBytes():q("Embedded file specification points to non-existing/invalid content")}else q("Embedded file specification does not have any content");return r}},{key:"description",get:function(){var e,t="",r=null===(e=this.root)||void 0===e?void 0:e.get("Desc");return r&&"string"==typeof r&&(t=Ie(r)),_(this,"description",t)}},{key:"serializable",get:function(){return{rawFilename:this.filename,filename:(e=this.filename,e.substring(e.lastIndexOf("/")+1)),content:this.content,description:this.description};var e}}])}();function qC(e,t,r){return t=WC(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jC()?Reflect.construct(t,r||[],WC(e).constructor):t.apply(e,r))}function jC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jC=function(){return!!e})()}function WC(e){return WC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WC(e)}function ZC(e,t){return ZC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZC(e,t)}function _C(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=VC(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function XC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||VC(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 VC(e,t){if(e){if("string"==typeof e)return zC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zC(e,t):void 0}}function zC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return t.onResolveEntity(r)}))}},{key:"_parseContent",value:function(e,t){var r=[],A=t;function n(){for(;A"!==e[A]&&"/"!==e[A];)++A;var i=e.substring(t,A);for(n();A"!==e[A]&&"/"!==e[A]&&"?"!==e[A];){n();for(var a,o="";A"!==e[r]&&"?"!==e[r]&&"/"!==e[r];)++r;var A=e.substring(t,r);!function(){for(;r"!==e[r+1]);)++r;return{name:A,value:e.substring(n,r),parsed:r-t}}},{key:"parseXml",value:function(e){for(var t=0;t",r))<0)return void this.onError(-9);this.onEndElement(e.substring(r,A)),r=A+1;break;case"?":++r;var n=this._parseProcessingInstruction(e,r);if("?>"!==e.substring(r+n.parsed,r+n.parsed+2))return void this.onError(-3);this.onPi(n.name,n.value),r+=n.parsed+2;break;case"!":if("--"===e.substring(r+1,r+3)){if((A=e.indexOf("--\\x3e",r+3))<0)return void this.onError(-5);this.onComment(e.substring(r+3,A)),r=A+3}else if("[CDATA["===e.substring(r+1,r+8)){if((A=e.indexOf("]]>",r+8))<0)return void this.onError(-2);this.onCdata(e.substring(r+8,A)),r=A+3}else{if("DOCTYPE"!==e.substring(r+1,r+8))return void this.onError(-6);var i=e.indexOf("[",r+8),a=!1;if((A=e.indexOf(">",r+8))<0)return void this.onError(-4);if(i>0&&A>i){if((A=e.indexOf("]>",r+8))<0)return void this.onError(-4);a=!0}var o=e.substring(r+8,A+(a?1:0));this.onDoctype(o),r=A+(a?2:1)}break;default:var s=this._parseContent(e,r);if(null===s)return void this.onError(-6);var c=!1;if("/>"===e.substring(r+s.parsed,r+s.parsed+2))c=!0;else if(">"!==e.substring(r+s.parsed,r+s.parsed+1))return void this.onError(-9);this.onBeginElement(s.name,s.attributes,c),r+=s.parsed+(c?2:1)}}else{for(;r0}},{key:"searchNode",value:function(e,t){if(t>=e.length)return this;var r=e[t];if(r.name.startsWith("#")&&t0)A.push([n,0]),n=n.childNodes[0];else{if(0===A.length)return null;for(;0!==A.length;){var u=XC(A.pop(),2),l=u[0],h=u[1]+1;if(h");var n,i=_C(this.childNodes);try{for(i.s();!(n=i.n()).done;)n.value.dump(e)}catch(e){i.e(e)}finally{i.f()}e.push(""))}else this.nodeValue?e.push(">".concat(Yt(this.nodeValue),"")):e.push("/>")}else e.push(Yt(this.nodeValue))}}])}(),aB=function(e){function t(e){var r,A=e.hasAttributes,n=void 0!==A&&A,i=e.lowerCaseName,a=void 0!==i&&i;return $C(this,t),(r=qC(this,t))._currentFragment=null,r._stack=null,r._errorCode=0,r._hasAttributes=n,r._lowerCaseName=a,r}return 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZC(e,t)}(t,nB),tB(t,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=0,this.parseXml(e),0===this._errorCode){var t=XC(this._currentFragment,1)[0];if(t)return{documentElement:t}}}},{key:"onText",value:function(e){if(!function(e){for(var t=0,r=e.length;t=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function sB(e,t){if(e){if("string"==typeof e)return cB(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cB(e,t):void 0}}function cB(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r\\\\376\\\\377([^<]+)/g,(function(e,t){for(var r=t.replaceAll(/\\\\([0-3])([0-7])([0-7])/g,(function(e,t,r,A){return String.fromCharCode(64*t+8*r+1*A)})).replaceAll(/&(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."))})),A=[">"],n=0,i=r.length;n=32&&a<127&&60!==a&&62!==a&&38!==a?A.push(String.fromCharCode(a)):A.push("&#x"+(65536+a).toString(16).substring(1)+";")}return A.join("")}))}},{key:"_getSequence",value:function(e){var t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter((function(e){return"rdf:li"===e.nodeName}))}},{key:"_parseArray",value:function(e){if(e.hasChildNodes()){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||sB(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.")}()}(e.childNodes,1)[0],r=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,r.map((function(e){return e.textContent.trim()})))}}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName)for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling;if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes()){var r,A=oB(t.childNodes);try{for(A.s();!(r=A.n()).done;){var n=r.value;if("rdf:description"===n.nodeName){var i,a=oB(n.childNodes);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.nodeName;switch(s){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(o);continue}this._metadataMap.set(s,o.textContent.trim())}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){A.e(e)}finally{A.f()}}}},{key:"serializable",get:function(){return{parsedData:this._metadataMap,rawData:this._data}}}])}();function hB(e,t){for(var r=0;r0;t=(0,this.decrypt)(t,!r);var A=this.bufferLength,n=A+t.length;this.ensureBuffer(n).set(t,A),this.bufferLength=n}else this.eof=!0}}])}();function dB(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function yB(e,t,r){return t=vB(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pB()?Reflect.construct(t,r||[],vB(e).constructor):t.apply(e,r))}function pB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pB=function(){return!!e})()}function vB(e){return vB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vB(e)}function mB(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wB(e,t)}function wB(e,t){return wB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wB(e,t)}function bB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kB(e,t){for(var r=0;r>5&255,l[i++]=n>>13&255,l[i++]=n>>21&255,l[i++]=n>>>29&255,l[i++]=0,l[i++]=0,l[i++]=0;var I=new Int32Array(16);for(i=0;i>>32-v)|0,f=y}o=o+f|0,s=s+C|0,c=c+B|0,g=g+Q|0}return new Uint8Array([255&o,o>>8&255,o>>16&255,o>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255,255&g,g>>8&255,g>>16&255,g>>>24&255])}}(),RB=function(){return DB((function e(t,r){bB(this,e),this.high=0|t,this.low=0|r}),[{key:"and",value:function(e){this.high&=e.high,this.low&=e.low}},{key:"xor",value:function(e){this.high^=e.high,this.low^=e.low}},{key:"or",value:function(e){this.high|=e.high,this.low|=e.low}},{key:"shiftRight",value: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)}},{key:"shiftLeft",value:function(e){e>=32?(this.high=this.low<>>32-e,this.low<<=e)}},{key:"rotateRight",value:function(e){var t,r;32&e?(r=this.low,t=this.high):(t=this.low,r=this.high),e&=31,this.low=t>>>e|r<<32-e,this.high=r>>>e|t<<32-e}},{key:"not",value:function(){this.high=~this.high,this.low=~this.low}},{key:"add",value:function(e){var t=(this.low>>>0)+(e.low>>>0),r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r}},{key:"copyTo",value: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}},{key:"assign",value:function(e){this.high=e.high,this.low=e.low}}])}(),GB=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function A(t){return e(t,2)^e(t,13)^e(t,22)}function n(t){return e(t,6)^e(t,11)^e(t,25)}function i(t){return e(t,7)^e(t,18)^t>>>3}var a=[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(o,s,c){var g,u,l=1779033703,h=3144134277,I=1013904242,f=2773480762,C=1359893119,B=2600822924,Q=528734635,E=1541459225,d=64*Math.ceil((c+9)/64),y=new Uint8Array(d);for(g=0;g>>29&255,y[g++]=c>>21&255,y[g++]=c>>13&255,y[g++]=c>>5&255,y[g++]=c<<3&255;var v,m=new Uint32Array(64);for(g=0;g>>10)+m[u-7]+i(m[u-15])+m[u-16];var w=l,b=h,k=I,D=f,S=C,F=B,x=Q,R=E,G=void 0,N=void 0;for(u=0;u<64;++u)G=R+n(S)+t(S,F,x)+a[u]+m[u],N=A(w)+r(w,b,k),R=x,x=F,F=S,S=D+G|0,D=k,k=b,b=w,w=G+N|0;l=l+w|0,h=h+b|0,I=I+k|0,f=f+D|0,C=C+S|0,B=B+F|0,Q=Q+x|0,E=E+R|0}return new Uint8Array([l>>24&255,l>>16&255,l>>8&255,255&l,h>>24&255,h>>16&255,h>>8&255,255&h,I>>24&255,I>>16&255,I>>8&255,255&I,f>>24&255,f>>16&255,f>>8&255,255&f,C>>24&255,C>>16&255,C>>8&255,255&C,B>>24&255,B>>16&255,B>>8&255,255&B,Q>>24&255,Q>>16&255,Q>>8&255,255&Q,E>>24&255,E>>16&255,E>>8&255,255&E])}}(),NB=function(){function e(e,t,r,A,n){e.assign(t),e.and(r),n.assign(t),n.not(),n.and(A),e.xor(n)}function t(e,t,r,A,n){e.assign(t),e.and(r),n.assign(t),n.and(A),e.xor(n),n.assign(r),n.and(A),e.xor(n)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function A(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function i(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}var a=[new RB(1116352408,3609767458),new RB(1899447441,602891725),new RB(3049323471,3964484399),new RB(3921009573,2173295548),new RB(961987163,4081628472),new RB(1508970993,3053834265),new RB(2453635748,2937671579),new RB(2870763221,3664609560),new RB(3624381080,2734883394),new RB(310598401,1164996542),new RB(607225278,1323610764),new RB(1426881987,3590304994),new RB(1925078388,4068182383),new RB(2162078206,991336113),new RB(2614888103,633803317),new RB(3248222580,3479774868),new RB(3835390401,2666613458),new RB(4022224774,944711139),new RB(264347078,2341262773),new RB(604807628,2007800933),new RB(770255983,1495990901),new RB(1249150122,1856431235),new RB(1555081692,3175218132),new RB(1996064986,2198950837),new RB(2554220882,3999719339),new RB(2821834349,766784016),new RB(2952996808,2566594879),new RB(3210313671,3203337956),new RB(3336571891,1034457026),new RB(3584528711,2466948901),new RB(113926993,3758326383),new RB(338241895,168717936),new RB(666307205,1188179964),new RB(773529912,1546045734),new RB(1294757372,1522805485),new RB(1396182291,2643833823),new RB(1695183700,2343527390),new RB(1986661051,1014477480),new RB(2177026350,1206759142),new RB(2456956037,344077627),new RB(2730485921,1290863460),new RB(2820302411,3158454273),new RB(3259730800,3505952657),new RB(3345764771,106217008),new RB(3516065817,3606008344),new RB(3600352804,1432725776),new RB(4094571909,1467031594),new RB(275423344,851169720),new RB(430227734,3100823752),new RB(506948616,1363258195),new RB(659060556,3750685593),new RB(883997877,3785050280),new RB(958139571,3318307427),new RB(1322822218,3812723403),new RB(1537002063,2003034995),new RB(1747873779,3602036899),new RB(1955562222,1575990012),new RB(2024104815,1125592928),new RB(2227730452,2716904306),new RB(2361852424,442776044),new RB(2428436474,593698344),new RB(2756734187,3733110249),new RB(3204031479,2999351573),new RB(3329325298,3815920427),new RB(3391569614,3928383900),new RB(3515267271,566280711),new RB(3940187606,3454069534),new RB(4118630271,4000239992),new RB(116418474,1914138554),new RB(174292421,2731055270),new RB(289380356,3203993006),new RB(460393269,320620315),new RB(685471733,587496836),new RB(852142971,1086792851),new RB(1017036298,365543100),new RB(1126000580,2618297676),new RB(1288033470,3409855158),new RB(1501505948,4234509866),new RB(1607167915,987167468),new RB(1816402316,1246189591)];return function(o,s,c){var g,u,l,h,I,f,C,B,Q=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Q?(g=new RB(3418070365,3238371032),u=new RB(1654270250,914150663),l=new RB(2438529370,812702999),h=new RB(355462360,4144912697),I=new RB(1731405415,4290775857),f=new RB(2394180231,1750603025),C=new RB(3675008525,1694076839),B=new RB(1203062813,3204075428)):(g=new RB(1779033703,4089235720),u=new RB(3144134277,2227873595),l=new RB(1013904242,4271175723),h=new RB(2773480762,1595750129),I=new RB(1359893119,2917565137),f=new RB(2600822924,725511199),C=new RB(528734635,4215389547),B=new RB(1541459225,327033209));var E,d,y=128*Math.ceil((c+17)/128),p=new Uint8Array(y);for(E=0;E>>29&255,p[E++]=c>>21&255,p[E++]=c>>13&255,p[E++]=c>>5&255,p[E++]=c<<3&255;var m=new Array(80);for(E=0;E<80;E++)m[E]=new RB(0,0);var w,b,k=new RB(0,0),D=new RB(0,0),S=new RB(0,0),F=new RB(0,0),x=new RB(0,0),R=new RB(0,0),G=new RB(0,0),N=new RB(0,0),L=new RB(0,0),U=new RB(0,0),M=new RB(0,0),J=new RB(0,0);for(E=0;E=1;--s){r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],A=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=A,r=i[15],A=i[11],n=i[7],i[15]=i[3],i[11]=r,i[7]=A,i[3]=n;for(var c=0;c<16;++c)i[c]=this._inv_s[i[c]];for(var g=0,u=16*s;g<16;++g,++u)i[g]^=t[u];for(var l=0;l<16;l+=4){var h=this._mix[i[l]],I=this._mix[i[l+1]],f=this._mix[i[l+2]],C=this._mix[i[l+3]];r=h^I>>>8^I<<24^f>>>16^f<<16^C>>>24^C<<8,i[l]=r>>>24&255,i[l+1]=r>>16&255,i[l+2]=r>>8&255,i[l+3]=255&r}}r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],A=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=A,r=i[15],A=i[11],n=i[7],i[15]=i[3],i[11]=r,i[7]=A,i[3]=n;for(var B=0;B<16;++B)i[B]=this._inv_s[i[B]],i[B]^=t[B];return i}},{key:"_encrypt",value:function(e,t){var r,A,n,i=this._s,a=new Uint8Array(16);a.set(e);for(var o=0;o<16;++o)a[o]^=t[o];for(var s=1;s=I;--h)if(u[h]!==l){l=0;break}g-=l,i[i.length-1]=u.subarray(0,16-l)}}for(var f=new Uint8Array(g),C=0,B=0,Q=i.length;C2&&void 0!==arguments[2]?arguments[2]:null,A=e.length,n=this.buffer,i=this.bufferPosition;if(r)this.iv=r;else{for(var a=0;i<16&&a=256&&(o=255&(27^o)));for(var g=0;g<4;++g)r[s]=A^=r[s-32],r[++s]=n^=r[s-32],r[++s]=i^=r[s-32],r[++s]=a^=r[s-32],s++}return r}}])}(),HB=function(){return DB((function e(){bB(this,e)}),[{key:"checkOwnerPassword",value:function(e,t,r,A){var n=new Uint8Array(e.length+56);return n.set(e,0),n.set(t,e.length),n.set(r,e.length+t.length),Be(GB(n,0,n.length),A)}},{key:"checkUserPassword",value:function(e,t,r){var A=new Uint8Array(e.length+8);return A.set(e,0),A.set(t,e.length),Be(GB(A,0,A.length),r)}},{key:"getOwnerKey",value:function(e,t,r,A){var n=new Uint8Array(e.length+56);n.set(e,0),n.set(t,e.length),n.set(r,e.length+t.length);var i=GB(n,0,n.length);return new JB(i).decryptBlock(A,!1,new Uint8Array(16))}},{key:"getUserKey",value:function(e,t,r){var A=new Uint8Array(e.length+8);A.set(e,0),A.set(t,e.length);var n=GB(A,0,A.length);return new JB(n).decryptBlock(r,!1,new Uint8Array(16))}}])}(),YB=function(){return DB((function e(){bB(this,e)}),[{key:"_hash",value:function(e,t,r){for(var A,n,i=GB(t,0,t.length).subarray(0,32),a=[0],o=0;o<64||a.at(-1)>o-32;){var s=e.length+i.length+r.length,c=new Uint8Array(s),g=0;c.set(e,g),g+=e.length,c.set(i,g),g+=i.length,c.set(r,g);for(var u=new Uint8Array(64*s),l=0,h=0;l<64;l++,h+=s)u.set(c,h);var I=(a=new MB(i.subarray(0,16)).encrypt(u,i.subarray(16,32))).slice(0,16).reduce((function(e,t){return e+t}),0)%3;0===I?i=GB(a,0,a.length):1===I?(A=a,0,n=a.length,i=NB(A,0,n,!0)):2===I&&(i=NB(a,0,a.length)),o++}return i.subarray(0,32)}},{key:"checkOwnerPassword",value:function(e,t,r,A){var n=new Uint8Array(e.length+56);return n.set(e,0),n.set(t,e.length),n.set(r,e.length+t.length),Be(this._hash(e,n,r),A)}},{key:"checkUserPassword",value:function(e,t,r){var A=new Uint8Array(e.length+8);return A.set(e,0),A.set(t,e.length),Be(this._hash(e,A,[]),r)}},{key:"getOwnerKey",value:function(e,t,r,A){var n=new Uint8Array(e.length+56);n.set(e,0),n.set(t,e.length),n.set(r,e.length+t.length);var i=this._hash(e,n,r);return new JB(i).decryptBlock(A,!1,new Uint8Array(16))}},{key:"getUserKey",value:function(e,t,r){var A=new Uint8Array(e.length+8);A.set(e,0),A.set(t,e.length);var n=this._hash(e,A,[]);return new JB(n).decryptBlock(r,!1,new Uint8Array(16))}}])}(),PB=function(){return DB((function e(t,r){bB(this,e),this.StringCipherConstructor=t,this.StreamCipherConstructor=r}),[{key:"createStream",value:function(e,t){var r=new this.StreamCipherConstructor;return new EB(e,t,(function(e,t){return r.decryptBlock(e,t)}))}},{key:"decryptString",value:function(e){var t=new this.StringCipherConstructor,r=ie(e);return ne(r=t.decryptBlock(r,!0))}},{key:"encryptString",value:function(e){var t=new this.StringCipherConstructor;if(t instanceof UB){var r=16-e.length%16;e+=String.fromCharCode(r).repeat(r);var A=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(A);else for(var n=0;n<16;n++)A[n]=Math.floor(256*Math.random());var i=ie(e);i=t.encrypt(i,A);var a=new Uint8Array(16+i.length);return a.set(A),a.set(i,16),ne(a)}var o=ie(e);return ne(o=t.encrypt(o))}}])}(),OB=new WeakSet,KB=function(){return DB((function e(t,r,A){bB(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,OB);var n=t.get("Filter");if(!Ke(n,"Standard"))throw new re("unknown encryption method");this.filterName=n.name,this.dict=t;var i=t.get("V");if(!Number.isInteger(i)||1!==i&&2!==i&&4!==i&&5!==i)throw new re("unsupported encryption algorithm");this.algorithm=i;var a=t.get("Length");if(!a)if(i<=3)a=40;else{var o=t.get("CF"),s=t.get("StmF");if(o instanceof He&&s instanceof Ue){o.suppressEncryption=!0;var c=o.get(s.name);(a=(null==c?void 0:c.get("Length"))||128)<40&&(a<<=3)}}if(!Number.isInteger(a)||a<40||a%8!=0)throw new re("invalid key length");var g=ie(t.get("O")),u=ie(t.get("U")),l=g.subarray(0,32),h=u.subarray(0,32),I=t.get("P"),f=t.get("R"),C=(4===i||5===i)&&!1!==t.get("EncryptMetadata");this.encryptMetadata=C;var B,Q,E=ie(r);if(A){if(6===f)try{A=Ce(A)}catch(e){q("CipherTransformFactory: Unable to convert UTF8 encoded password.")}B=ie(A)}if(5!==i)Q=dB(OB,this,qB).call(this,E,B,l,h,I,f,a,C);else{var d=g.subarray(32,40),y=g.subarray(40,48),p=u.subarray(0,48),v=u.subarray(32,40),m=u.subarray(40,48),w=ie(t.get("OE")),b=ie(t.get("UE")),k=ie(t.get("Perms"));Q=dB(OB,this,TB).call(this,f,B,l,d,y,p,h,v,m,w,b,k)}if(!Q&&!A)throw new V("No password given",1);if(!Q&&A){var D=dB(OB,this,jB).call(this,B,l,f,a);Q=dB(OB,this,qB).call(this,E,D,l,h,I,f,a,C)}if(!Q)throw new V("Incorrect Password",2);if(this.encryptionKey=Q,i>=4){var S=t.get("CF");S instanceof He&&(S.suppressEncryption=!0),this.cf=S,this.stmf=t.get("StmF")||Ue.get("Identity"),this.strf=t.get("StrF")||Ue.get("Identity"),this.eff=t.get("EFF")||this.stmf}}),[{key:"createCipherTransform",value:function(e,t){if(4===this.algorithm||5===this.algorithm)return new PB(dB(OB,this,ZB).call(this,this.cf,this.strf,e,t,this.encryptionKey),dB(OB,this,ZB).call(this,this.cf,this.stmf,e,t,this.encryptionKey));var r=dB(OB,this,WB).call(this,e,t,this.encryptionKey,!1),A=function(){return new FB(r)};return new PB(A,A)}}])}();function TB(e,t,r,A,n,i,a,o,s,c,g,u){if(t){var l=Math.min(127,t.length);t=t.subarray(0,l)}else t=[];var h=6===e?new YB:new HB;return h.checkUserPassword(t,o,a)?h.getUserKey(t,s,g):t.length&&h.checkOwnerPassword(t,A,i,r)?h.getOwnerKey(t,n,i,c):null}function qB(e,t,r,A,n,i,a,o){var s,c,g=40+r.length+e.length,u=new Uint8Array(g),l=0;if(t)for(c=Math.min(32,t.length);l>8&255,u[l++]=n>>16&255,u[l++]=n>>>24&255,s=0,c=e.length;s=4&&!o&&(u[l++]=255,u[l++]=255,u[l++]=255,u[l++]=255);var h=xB(u,0,l),I=a>>3;if(i>=3)for(s=0;s<50;++s)h=xB(h,0,I);var f,C=h.subarray(0,I);if(i>=3){for(l=0;l<32;++l)u[l]=XB._[l];for(s=0,c=e.length;s>3;if(r>=3)for(o=0;o<50;++o)c=xB(c,0,c.length);if(r>=3){s=t;var u=new Uint8Array(g);for(o=19;o>=0;o--){for(var l=0;l3&&void 0!==arguments[3]&&arguments[3],i=new Uint8Array(r.length+9),a=r.length;for(A=0;A>8&255,i[A++]=e>>16&255,i[A++]=255&t,i[A++]=t>>8&255,n&&(i[A++]=115,i[A++]=65,i[A++]=108,i[A++]=84),xB(i,0,A).subarray(0,Math.min(r.length+5,16))}function ZB(e,t,r,A,n){if(!(t instanceof Ue))throw new re("Invalid crypt filter name.");var i=this,a=e.get(t.name),o=null==a?void 0:a.get("CFM");if(!o||"None"===o.name)return function(){return new LB};if("V2"===o.name)return function(){return new FB(dB(OB,i,WB).call(i,r,A,n,!1))};if("AESV2"===o.name)return function(){return new MB(dB(OB,i,WB).call(i,r,A,n,!0))};if("AESV3"===o.name)return function(){return new JB(n)};throw new re("Unknown crypto method")}var _B,XB={_: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 VB(e){return function(e){if(Array.isArray(e))return rQ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tQ(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 zB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||tQ(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 $B(){$B=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function eQ(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=tQ(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function tQ(e,t){if(e){if("string"==typeof e)return rQ(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rQ(e,t):void 0}}function rQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r>");case 20:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})))).apply(this,arguments)}function cQ(e,t,r){return gQ.apply(this,arguments)}function gQ(){return(gQ=nQ($B().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I,f,C,B;return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.getBytes(),i=t.dict,e.next=4,Promise.all([i.getAsync("Filter"),i.getAsync("DecodeParms")]);case 4:if(a=e.sent,o=zB(a,2),s=o[0],c=o[1],!Array.isArray(s)){e.next=14;break}return e.next=11,i.xref.fetchIfRefAsync(s[0]);case 11:e.t0=e.sent,e.next=15;break;case 14:e.t0=s;case 15:if(g=e.t0,u=Ke(g,"FlateDecode"),!(n.length>=256||u)){e.next=37;break}return e.prev=19,l=new CompressionStream("deflate"),h=l.writable.getWriter(),e.next=24,h.ready;case 24:return h.write(n).then(nQ($B().mark((function e(){return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.ready;case 2:return e.next=4,h.close();case 4:case"end":return e.stop()}}),e)})))).catch((function(){})),e.next=27,new Response(l.readable).arrayBuffer();case 27:I=e.sent,n=new Uint8Array(I),s?u||(f=Array.isArray(s)?[Ue.get("FlateDecode")].concat(VB(s)):[Ue.get("FlateDecode"),s],c&&(C=Array.isArray(c)?[null].concat(VB(c)):[null,c])):f=Ue.get("FlateDecode"),f&&i.set("Filter",f),C&&i.set("DecodeParms",C),e.next=37;break;case 34:e.prev=34,e.t1=e.catch(19),T('writeStream - cannot compress data: "'.concat(e.t1,'".'));case 37:return B=ne(n),A&&(B=A.encryptString(B)),i.set("Length",B.length),e.next=42,oQ(i,r,A);case 42:r.push(" stream\\n",B,"\\nendstream");case 43:case"end":return e.stop()}}),e,null,[[19,34]])})))).apply(this,arguments)}function uQ(e,t,r){return lQ.apply(this,arguments)}function lQ(){return(lQ=nQ($B().mark((function e(t,r,A){var n,i,a,o;return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.push("["),n=!0,i=eQ(t),e.prev=3,i.s();case 5:if((a=i.n()).done){e.next=12;break}return o=a.value,n?n=!1:r.push(" "),e.next=10,hQ(o,r,A);case 10:e.next=5;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:r.push("]");case 21:case"end":return e.stop()}}),e,null,[[3,14,17,20]])})))).apply(this,arguments)}function hQ(e,t,r){return IQ.apply(this,arguments)}function IQ(){return(IQ=nQ($B().mark((function e(t,r,A){return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof Ue)){e.next=4;break}r.push("/".concat(Nt(t.name))),e.next=37;break;case 4:if(!(t instanceof Ye)){e.next=8;break}r.push("".concat(t.num," ").concat(t.gen," R")),e.next=37;break;case 8:if(!Array.isArray(t)&&!ArrayBuffer.isView(t)){e.next=13;break}return e.next=11,uQ(t,r,A);case 11:e.next=37;break;case 13:if("string"!=typeof t){e.next=18;break}A&&(t=A.encryptString(t)),r.push("(".concat(Lt(t),")")),e.next=37;break;case 18:if("number"!=typeof t){e.next=22;break}r.push(Tt(t)),e.next=37;break;case 22:if("boolean"!=typeof t){e.next=26;break}r.push(t.toString()),e.next=37;break;case 26:if(!(t instanceof He)){e.next=31;break}return e.next=29,oQ(t,r,A);case 29:e.next=37;break;case 31:if(!(t instanceof ze)){e.next=36;break}return e.next=34,cQ(t,r,A);case 34:e.next=37;break;case 36:null===t?r.push("null"):q("Unhandled value in writer: ".concat(typeof t,", please file a bug."));case 37:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fQ(e,t,r,A){for(var n=t+r-1;n>r-1;n--)A[n]=255&e,e>>=8;return r+t}function CQ(e,t,r){for(var A=0,n=e.length;A1&&(c=A.documentElement.searchNode([s.at(-1)],0)),c?c.childNodes=Array.isArray(o)?o.map((function(e){return new iB("value",e)})):[new iB("#text",o)]:q("Node not found for path: ".concat(a))}}}}catch(e){n.e(e)}finally{n.f()}var g=[];return A.documentElement.dump(g),g.join("")}(n.fetchIfRef(r).getString(),A));var i=n.encrypt;i&&(t=i.createCipherTransform(r.num,r.gen).encryptString(t));var a="".concat(r.num," ").concat(r.gen," obj\\n")+"<< /Type /EmbeddedFile /Length ".concat(t.length,">>\\nstream\\n")+t+"\\nendstream\\nendobj\\n";A.push({ref:r,data:a})}function dQ(e,t,r,A,n){return yQ.apply(this,arguments)}function yQ(){return(yQ=nQ($B().mark((function e(t,r,A,n,i){var a,o,s,c,g,u,l;return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i.push("xref\\n"),a=pQ(A),o=0,s=eQ(A);try{for(s.s();!(c=s.n()).done;)g=c.value,u=g.ref,l=g.data,u.num===a[o]&&(i.push("".concat(a[o]," ").concat(a[o+1],"\\n")),o+=2),null!==l?(i.push("".concat(r.toString().padStart(10,"0")," ").concat(Math.min(u.gen,65535).toString().padStart(5,"0")," n\\r\\n")),r+=l.length):i.push("0000000000 ".concat(Math.min(u.gen+1,65535).toString().padStart(5,"0")," f\\r\\n"))}catch(e){s.e(e)}finally{s.f()}return wQ(r,t,n),i.push("trailer\\n"),e.next=9,oQ(n,i);case 9:i.push("\\nstartxref\\n",r.toString(),"\\n%%EOF\\n");case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pQ(e){var t,r=[],A=eQ(e);try{for(A.s();!(t=A.n()).done;){var n=t.value.ref;n.num===r.at(-2)+r.at(-1)?r[r.length-1]+=1:r.push(n.num,1)}}catch(e){A.e(e)}finally{A.f()}return r}function vQ(e,t,r,A,n){return mQ.apply(this,arguments)}function mQ(){return(mQ=nQ($B().mark((function e(t,r,A,n,i){var a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p,v,m,w,b,k;return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],o=0,s=0,c=eQ(A);try{for(c.s();!(g=c.n()).done;)u=g.value,l=u.ref,h=u.data,I=void 0,o=Math.max(o,r),null!==h?(I=Math.min(l.gen,65535),a.push([1,r,I]),r+=h.length):(I=Math.min(l.gen+1,65535),a.push([0,0,I])),s=Math.max(s,I)}catch(e){c.e(e)}finally{c.f()}for(n.set("Index",pQ(A)),f=Xt(o),C=Xt(s),B=[1,f,C],n.set("W",B),wQ(r,t,n),Q=B.reduce((function(e,t){return e+t}),0),E=new Uint8Array(Q*a.length),(d=new ar(E)).dict=n,y=0,p=0,v=a;p0){var A=function(e,t){for(var r=Math.floor(Date.now()/1e3),A=t.filename||"",n=[r.toString(),A,e.toString()],i=n.reduce((function(e,t){return e+t.length}),0),a=0,o=Object.values(t.info);a=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function FQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||RQ(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 xQ(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=RQ(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function RQ(e,t){if(e){if("string"==typeof e)return GQ(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?GQ(e,t):void 0}}function GQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r=0||(k.parentTreeId=a++),C=!1)}catch(e){m.e(e)}finally{m.f()}case 55:t.next=46;break;case 57:t.next=62;break;case 59:t.prev=59,t.t1=t.catch(44),B.e(t.t1);case 62:return t.prev=62,B.f(),t.finish(62);case 65:if(!C){t.next=69;break}D=xQ(i.values());try{for(D.s();!(S=D.n()).done;){F=S.value,x=xQ(F);try{for(x.s();!(R=x.n()).done;)delete(G=R.value).parentTreeId,delete G.structTreeParent}catch(e){x.e(e)}finally{x.f()}}}catch(e){D.e(e)}finally{D.f()}return t.abrupt("return",!1);case 69:return t.abrupt("return",!0);case 70:case"end":return t.stop()}}),t,this,[[18,36,39,42],[44,59,62,65]])}))),function(e){return n.apply(this,arguments)})},{key:"updateStructureTree",value:(A=LQ(SQ().mark((function t(r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d;return SQ().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return A=r.newAnnotationsByPage,n=r.pdfManager,i=r.newRefs,a=this.dict.xref,o=this.dict.clone(),s=this.ref,(c=new Oe).put(s,o),(g=o.getRaw("ParentTree"))instanceof Ye?u=a.fetch(g):(u=g,g=a.getNewTemporaryRef(),o.set("ParentTree",g)),u=u.clone(),c.put(g,u),l=u.getRaw("Nums"),h=null,l instanceof Ye&&(h=l,l=a.fetch(h)),l=l.slice(),h||u.set("Nums",l),t.next=17,TQ.call(e,{newAnnotationsByPage:A,structTreeRootRef:s,structTreeRoot:this,kids:null,nums:l,xref:a,pdfManager:n,newRefs:i,cache:c});case 17:if(-1!==(I=t.sent)){t.next=20;break}return t.abrupt("return");case 20:o.set("ParentTreeNextKey",I),h&&c.put(h,l),f=[],C=xQ(c.items()),t.prev=24,C.s();case 26:if((B=C.n()).done){t.next=34;break}return Q=FQ(B.value,2),E=Q[0],d=Q[1],f.length=0,t.next=31,iQ(E,d,f,a);case 31:i.push({ref:E,data:f.join("")});case 32:t.next=26;break;case 34:t.next=39;break;case 36:t.prev=36,t.t0=t.catch(24),C.e(t.t0);case 39:return t.prev=39,C.f(),t.finish(39);case 42:case"end":return t.stop()}}),t,this,[[24,36,39,42]])}))),function(e){return A.apply(this,arguments)})}],[{key:"canCreateStructureTree",value:(r=LQ(SQ().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d;return SQ().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.catalogRef,A=t.pdfManager,n=t.newAnnotationsByPage,r instanceof Ye){e.next=4;break}return q("Cannot save the struct tree: no catalog reference."),e.abrupt("return",!1);case 4:i=0,a=!0,o=xQ(n),e.prev=7,o.s();case 9:if((s=o.n()).done){e.next=23;break}return c=FQ(s.value,2),g=c[0],u=c[1],e.next=13,A.getPage(g);case 13:if(e.sent.ref instanceof Ye){e.next=19;break}return q("Cannot save the struct tree: page ".concat(g," has no ref.")),a=!0,e.abrupt("break",23);case 19:l=xQ(u);try{for(l.s();!(h=l.n()).done;)f=h.value,null!==(I=f.accessibilityData)&&void 0!==I&&I.type&&(f.parentTreeId=i++,a=!1)}catch(e){l.e(e)}finally{l.f()}case 21:e.next=9;break;case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(7),o.e(e.t0);case 28:return e.prev=28,o.f(),e.finish(28);case 31:if(!a){e.next=35;break}C=xQ(n.values());try{for(C.s();!(B=C.n()).done;){Q=B.value,E=xQ(Q);try{for(E.s();!(d=E.n()).done;)delete d.value.parentTreeId}catch(e){E.e(e)}finally{E.f()}}}catch(e){C.e(e)}finally{C.f()}return e.abrupt("return",!1);case 35:return e.abrupt("return",!0);case 36:case"end":return e.stop()}}),e,null,[[7,25,28,31]])}))),function(e){return r.apply(this,arguments)})},{key:"createStructureTree",value:(t=LQ(SQ().mark((function t(r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p;return SQ().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return A=r.newAnnotationsByPage,n=r.xref,i=r.catalogRef,a=r.pdfManager,o=r.newRefs,s=a.catalog.cloneDict(),(c=new Oe).put(i,s),g=n.getNewTemporaryRef(),s.set("StructTreeRoot",g),(u=new He(n)).set("Type",Ue.get("StructTreeRoot")),l=n.getNewTemporaryRef(),u.set("ParentTree",l),h=[],u.set("K",h),c.put(g,u),I=new He(n),f=[],I.set("Nums",f),t.next=18,YQ(e,this,TQ).call(this,{newAnnotationsByPage:A,structTreeRootRef:g,structTreeRoot:null,kids:h,nums:f,xref:n,pdfManager:a,newRefs:o,cache:c});case 18:C=t.sent,u.set("ParentTreeNextKey",C),c.put(l,I),B=[],Q=xQ(c.items()),t.prev=23,Q.s();case 25:if((E=Q.n()).done){t.next=33;break}return d=FQ(E.value,2),y=d[0],p=d[1],B.length=0,t.next=30,iQ(y,p,B,n);case 30:o.push({ref:y,data:B.join("")});case 31:t.next=25;break;case 33:t.next=38;break;case 35:t.prev=35,t.t0=t.catch(23),Q.e(t.t0);case 38:return t.prev=38,Q.f(),t.finish(38);case 41:case"end":return t.stop()}}),t,this,[[23,35,38,41]])}))),function(e){return t.apply(this,arguments)})}]);var t,r,A,n}();function KQ(e,t,r){if(e instanceof Ye&&!(t<0)){this.structParentIds||(this.structParentIds=new Oe);var A=this.structParentIds.get(e);A||(A=[],this.structParentIds.put(e,A)),A.push([t,r])}}function TQ(e){return qQ.apply(this,arguments)}function qQ(){return(qQ=LQ(SQ().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p,v,m,w,b,k,D,S,F,x,R,G,N,L,U,M,J;return SQ().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.newAnnotationsByPage,A=t.structTreeRootRef,n=t.structTreeRoot,i=t.kids,a=t.nums,o=t.xref,s=t.pdfManager,c=t.newRefs,g=t.cache,u=Ue.get("OBJR"),l=-1,I=[],f=xQ(r),e.prev=5,f.s();case 7:if((C=f.n()).done){e.next=59;break}return B=FQ(C.value,2),Q=B[0],E=B[1],e.next=11,s.getPage(Q);case 11:d=e.sent,y=d.ref,p=y instanceof Ye,v=xQ(E),e.prev=15,v.s();case 17:if((m=v.n()).done){e.next=49;break}if(w=m.value,b=w.accessibilityData,k=w.ref,D=w.parentTreeId,S=w.structTreeParent,null!=b&&b.type){e.next=21;break}return e.abrupt("continue",47);case 21:if(F=b.structParent,!(n&&Number.isInteger(F)&&F>=0)){e.next=34;break}if(void 0===(R=(h||(h=new Map)).get(Q))&&(G=new zQ(n,d.pageDict),R=G.collectObjects(y),h.set(Q,R)),!(N=null===(x=R)||void 0===x?void 0:x.get(F))){e.next=34;break}return L=o.fetch(N).clone(),jQ.call(_B,L,b),I.length=0,e.next=32,iQ(N,L,I,o);case 32:return c.push({ref:N,data:I.join("")}),e.abrupt("continue",47);case 34:return l=Math.max(l,D),U=o.getNewTemporaryRef(),M=new He(o),jQ.call(_B,M,b),e.next=40,YQ(_B,this,ZQ).call(this,{structTreeParent:S,tagDict:M,newTagRef:U,structTreeRootRef:A,fallbackKids:i,xref:o,cache:g});case 40:J=new He(o),M.set("K",J),J.set("Type",u),p&&J.set("Pg",y),J.set("Obj",k),g.put(U,M),a.push(D,U);case 47:e.next=17;break;case 49:e.next=54;break;case 51:e.prev=51,e.t0=e.catch(15),v.e(e.t0);case 54:return e.prev=54,v.f(),e.finish(54);case 57:e.next=7;break;case 59:e.next=64;break;case 61:e.prev=61,e.t1=e.catch(5),f.e(e.t1);case 64:return e.prev=64,f.f(),e.finish(64);case 67:return e.abrupt("return",l+1);case 68:case"end":return e.stop()}}),e,this,[[5,61,64,67],[15,51,54,57]])})))).apply(this,arguments)}function jQ(e,t){var r=t.type,A=t.title,n=t.lang,i=t.alt,a=t.expanded,o=t.actualText;e.set("S",Ue.get(r)),A&&e.set("T",jt(A)),n&&e.set("Lang",jt(n)),i&&e.set("Alt",jt(i)),a&&e.set("E",jt(a)),o&&e.set("ActualText",jt(o))}function WQ(e){var t,r=e.elements,A=e.xref,n=e.pageDict,i=e.numberTree,a=new Map,o=xQ(r);try{for(o.s();!(t=o.n()).done;){var s=t.value;if(s.structTreeParentId){var c=parseInt(s.structTreeParentId.split("_mc")[1],10),g=a.get(c);g||(g=[],a.set(c,g)),g.push(s)}}}catch(e){o.e(e)}finally{o.f()}var u=n.get("StructParents");if(Number.isInteger(u)){var l,h=function(e,t,r){var n=a.get(e);if(n){var i=t.getRaw("P"),o=A.fetchIfRef(i);if(i instanceof Ye&&o instanceof He){var s,c={ref:r,dict:t},g=xQ(n);try{for(g.s();!(s=g.n()).done;)s.value.structTreeParent=c}catch(e){g.e(e)}finally{g.f()}}return!0}return!1},I=xQ(i.get(u));try{for(I.s();!(l=I.n()).done;){var f=l.value;if(f instanceof Ye){var C=A.fetch(f),B=C.get("K");if(Number.isInteger(B))h(B,C,f);else if(Array.isArray(B)){var Q,E=xQ(B);try{for(E.s();!(Q=E.n()).done;){var d=Q.value;if(d=A.fetchIfRef(d),Number.isInteger(d)&&h(d,C,f))break;if(d instanceof He){if(!Ke(d.get("Type"),"MCR"))break;var y=d.get("MCID");if(Number.isInteger(y)&&h(y,C,f))break}}}catch(e){E.e(e)}finally{E.f()}}}}}catch(e){I.e(e)}finally{I.f()}}}function ZQ(e){return _Q.apply(this,arguments)}function _Q(){return(_Q=LQ(SQ().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C;return SQ().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.structTreeParent,A=t.tagDict,n=t.newTagRef,i=t.structTreeRootRef,a=t.fallbackKids,o=t.xref,s=t.cache,c=null,r?(c=r.ref,g=r.dict.getRaw("P")||i):g=i,A.set("P",g),u=o.fetchIfRef(g)){e.next=8;break}return a.push(n),e.abrupt("return");case 8:(l=s.get(g))||(l=u.clone(),s.put(g,l)),h=l.getRaw("K"),(I=h instanceof Ye?s.get(h):null)||(I=o.fetchIfRef(h),I=Array.isArray(I)?I.slice():[h],f=o.getNewTemporaryRef(),l.set("K",f),s.put(f,I)),C=I.indexOf(c),I.splice(C>=0?C+1:I.length,0,n);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}_B=OQ;var XQ=function(){return JQ((function e(t,r){UQ(this,e),this.tree=t,this.dict=r,this.kids=[],this.parseKids()}),[{key:"role",get:function(){var e=this.dict.get("S"),t=e instanceof Ue?e.name:"",r=this.tree.root;return r.roleMap.has(t)?r.roleMap.get(t):t}},{key:"parseKids",value:function(){var e=null,t=this.dict.getRaw("Pg");t instanceof Ye&&(e=t.toString());var r=this.dict.get("K");if(Array.isArray(r)){var A,n=xQ(r);try{for(n.s();!(A=n.n()).done;){var i=A.value,a=this.parseKid(e,i);a&&this.kids.push(a)}}catch(e){n.e(e)}finally{n.f()}}else{var o=this.parseKid(e,r);o&&this.kids.push(o)}}},{key:"parseKid",value:function(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new VQ({type:1,mcid:t,pageObjId:e});var r=null;if(t instanceof Ye?r=this.dict.xref.fetch(t):t instanceof He&&(r=t),!r)return null;var A=r.getRaw("Pg");A instanceof Ye&&(e=A.toString());var n=r.get("Type")instanceof Ue?r.get("Type").name:null;if("MCR"===n){if(this.tree.pageDict.objId!==e)return null;var i=r.getRaw("Stm");return new VQ({type:2,refObjId:i instanceof Ye?i.toString():null,pageObjId:e,mcid:r.get("MCID")})}if("OBJR"===n){if(this.tree.pageDict.objId!==e)return null;var a=r.getRaw("Obj");return new VQ({type:3,refObjId:a instanceof Ye?a.toString():null,pageObjId:e})}return new VQ({type:5,dict:r})}}])}(),VQ=JQ((function e(t){var r=t.type,A=t.dict,n=void 0===A?null:A,i=t.mcid,a=void 0===i?null:i,o=t.pageObjId,s=void 0===o?null:o,c=t.refObjId,g=void 0===c?null:c;UQ(this,e),this.type=r,this.dict=n,this.mcid=a,this.pageObjId=s,this.refObjId=g,this.parentNode=null})),zQ=function(){return JQ((function e(t,r){UQ(this,e),this.root=t,this.rootDict=t?t.dict:null,this.pageDict=r,this.nodes=[]}),[{key:"collectObjects",value:function(e){var t;if(!(this.root&&this.rootDict&&e instanceof Ye))return null;var r=this.rootDict.get("ParentTree");if(!r)return null;var A=null===(t=this.root.structParentIds)||void 0===t?void 0:t.get(e);if(!A)return null;var n,i=new Map,a=new MC(r,this.rootDict.xref),o=xQ(A);try{for(o.s();!(n=o.n()).done;){var s=FQ(n.value,1)[0],c=a.getRaw(s);c instanceof Ye&&i.set(s,c)}}catch(e){o.e(e)}finally{o.f()}return i}},{key:"parse",value:function(e){var t;if(this.root&&this.rootDict&&e instanceof Ye){var r=this.rootDict.get("ParentTree");if(r){var A=this.pageDict.get("StructParents"),n=null===(t=this.root.structParentIds)||void 0===t?void 0:t.get(e);if(Number.isInteger(A)||n){var i=new Map,a=new MC(r,this.rootDict.xref);if(Number.isInteger(A)){var o=a.get(A);if(Array.isArray(o)){var s,c=xQ(o);try{for(c.s();!(s=c.n()).done;){var g=s.value;g instanceof Ye&&this.addNode(this.rootDict.xref.fetch(g),i)}}catch(e){c.e(e)}finally{c.f()}}}if(n){var u,l=xQ(n);try{for(l.s();!(u=l.n()).done;){var h=FQ(u.value,2),I=h[0],f=h[1],C=a.get(I);if(C){var B,Q=this.addNode(this.rootDict.xref.fetchIfRef(C),i);1===(null==Q||null===(B=Q.kids)||void 0===B?void 0:B.length)&&3===Q.kids[0].type&&(Q.kids[0].type=f)}}}catch(e){l.e(e)}finally{l.f()}}}}}}},{key:"addNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r>40)return q("StructTree MAX_DEPTH reached."),null;if(!(e instanceof He))return null;if(t.has(e))return t.get(e);var A=new XQ(this,e);t.set(e,A);var n=e.get("P");if(!n||Ke(n.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(e,A)||t.delete(e),A;var i=this.addNode(n,t,r+1);if(!i)return A;var a,o=!1,s=xQ(i.kids);try{for(s.s();!(a=s.n()).done;){var c=a.value;5===c.type&&c.dict===e&&(c.parentNode=A,o=!0)}}catch(e){s.e(e)}finally{s.f()}return o||t.delete(e),A}},{key:"addTopLevelNode",value:function(e,t){var r=this.rootDict.get("K");if(!r)return!1;if(r instanceof He)return r.objId===e.objId&&(this.nodes[0]=t,!0);if(!Array.isArray(r))return!0;for(var A=!1,n=0;n2&&void 0!==arguments[2]?arguments[2]:0;if(A>40)q("StructTree too deep to be fully serialized.");else{var n=Object.create(null);n.role=t.role,n.children=[],r.children.push(n);var i=t.dict.get("Alt");"string"!=typeof i&&(i=t.dict.get("ActualText")),"string"==typeof i&&(n.alt=Ie(i));var a=t.dict.get("A");if(a instanceof He){var o=Rt(a.getArray("BBox"),null);if(o)n.bbox=o;else{var s=a.get("Width"),c=a.get("Height");"number"==typeof s&&s>0&&"number"==typeof c&&c>0&&(n.bbox=[0,0,s,c])}}var g=t.dict.get("Lang");"string"==typeof g&&(n.lang=Ie(g));var u,l=xQ(t.kids);try{for(l.s();!(u=l.n()).done;){var h=u.value,I=5===h.type?h.parentNode:null;I?e(I,n,A+1):1===h.type||2===h.type?n.children.push({type:"content",id:"p".concat(h.pageObjId,"_mc").concat(h.mcid)}):3===h.type?n.children.push({type:"object",id:h.refObjId}):4===h.type&&n.children.push({type:"annotation",id:"".concat("pdfjs_internal_id_").concat(h.refObjId)})}}catch(e){l.e(e)}finally{l.f()}}}var t=Object.create(null);t.children=[],t.role="Root";var r,A=xQ(this.nodes);try{for(A.s();!(r=A.n()).done;){var n=r.value;n&&e(n,t)}}catch(e){A.e(e)}finally{A.f()}return t}}])}();function $Q(){$Q=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function eE(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function tE(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){eE(i,A,n,a,o,"next",e)}function o(e){eE(i,A,n,a,o,"throw",e)}a(void 0)}))}}function rE(e,t){return gE(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||sE(e,t)||oE()}function AE(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function oE(){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 sE(e,t){if(e){if("string"==typeof e)return cE(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cE(e,t):void 0}}function cE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r3)return!1;break;case"Fit":case"FitB":return 0===i;case"FitH":case"FitBH":case"FitV":case"FitBV":if(i>1)return!1;break;case"FitR":if(4!==i)return!1;a=!1;break;default:return!1}var o,s=aE(n);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(!("number"==typeof c||a&&null===c))return!1}}catch(e){s.e(e)}finally{s.f()}return!0}function lE(e){return e instanceof He&&(e=e.get("D")),uE(e)?e:null}function hE(e){var t=e.get("D");if(t){if(t instanceof Ue&&(t=t.name),"string"==typeof t)return Ie(t);if(uE(t))return JSON.stringify(t)}return null}var IE=new WeakSet,fE=function(){function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,IE),this.pdfManager=t,this.xref=r,this._catDict=r.getCatalogObj(),!(this._catDict instanceof He))throw new re("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new Oe,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new Kh,this.pageKidsCountCache=new Oe,this.pageIndexCache=new Oe,this.pageDictCache=new Oe,this.nonBlendModesSet=new Pe,this.systemFontCache=new Map}return function(e,t,r){return t&&AE(e.prototype,t),r&&AE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"cloneDict",value:function(){return this._catDict.clone()}},{key:"version",get:function(){var e=this._catDict.get("Version");if(e instanceof Ue){if(It.test(e.name))return _(this,"version",e.name);q("Invalid PDF catalog version: ".concat(e.name))}return _(this,"version",null)}},{key:"lang",get:function(){var e=this._catDict.get("Lang");return _(this,"lang",e&&"string"==typeof e?Ie(e):null)}},{key:"needsRendering",get:function(){var e=this._catDict.get("NeedsRendering");return _(this,"needsRendering","boolean"==typeof e&&e)}},{key:"collection",get:function(){var e=null;try{var t=this._catDict.get("Collection");t instanceof He&&t.size>0&&(e=t)}catch(e){if(e instanceof Ct)throw e;T("Cannot fetch Collection entry; assuming no collection is present.")}return _(this,"collection",e)}},{key:"acroForm",get:function(){var e=null;try{var t=this._catDict.get("AcroForm");t instanceof He&&t.size>0&&(e=t)}catch(e){if(e instanceof Ct)throw e;T("Cannot fetch AcroForm entry; assuming no forms are present.")}return _(this,"acroForm",e)}},{key:"acroFormRef",get:function(){var e=this._catDict.getRaw("AcroForm");return _(this,"acroFormRef",e instanceof Ye?e:null)}},{key:"metadata",get:function(){var e=this._catDict.getRaw("Metadata");if(!(e instanceof Ye))return _(this,"metadata",null);var t=null;try{var r,A=this.xref.fetch(e,!(null!==(r=this.xref.encrypt)&&void 0!==r&&r.encryptMetadata));if(A instanceof ze&&A.dict instanceof He){var n=A.dict.get("Type"),i=A.dict.get("Subtype");if(Ke(n,"Metadata")&&Ke(i,"XML")){var a=fe(A.getString());a&&(t=new lB(a).serializable)}}}catch(e){if(e instanceof Ct)throw e;T('Skipping invalid Metadata: "'.concat(e,'".'))}return _(this,"metadata",t)}},{key:"markInfo",get:function(){var e=null;try{e=this._readMarkInfo()}catch(e){if(e instanceof Ct)throw e;q("Unable to read mark info.")}return _(this,"markInfo",e)}},{key:"_readMarkInfo",value:function(){var e=this._catDict.get("MarkInfo");if(!(e instanceof He))return null;var t={Marked:!1,UserProperties:!1,Suspects:!1};for(var r in t){var A=e.get(r);"boolean"==typeof A&&(t[r]=A)}return t}},{key:"structTreeRoot",get:function(){var e=null;try{e=this._readStructTreeRoot()}catch(e){if(e instanceof Ct)throw e;q("Unable read to structTreeRoot info.")}return _(this,"structTreeRoot",e)}},{key:"_readStructTreeRoot",value:function(){var e=this._catDict.getRaw("StructTreeRoot"),t=this.xref.fetchIfRef(e);if(!(t instanceof He))return null;var r=new OQ(t,e);return r.init(),r}},{key:"toplevelPagesDict",get:function(){var e=this._catDict.get("Pages");if(!(e instanceof He))throw new re("Invalid top-level pages dictionary.");return _(this,"toplevelPagesDict",e)}},{key:"documentOutline",get:function(){var e=null;try{e=this._readDocumentOutline()}catch(e){if(e instanceof Ct)throw e;q("Unable to read document outline.")}return _(this,"documentOutline",e)}},{key:"_readDocumentOutline",value:function(){var t=this._catDict.get("Outlines");if(!(t instanceof He))return null;if(!((t=t.getRaw("First"))instanceof Ye))return null;var r={items:[]},A=[{obj:t,parent:r}],n=new Pe;n.put(t);for(var i=this.xref,a=new Uint8ClampedArray(3);A.length>0;){var o=A.shift(),s=i.fetchIfRef(o.obj);if(null!==s){s.has("Title")||q("Invalid outline item encountered.");var c={url:null,dest:null,action:null};e.parseDestDictionary({destDict:s,resultObj:c,docBaseUrl:this.baseUrl,docAttachments:this.attachments});var g=s.get("Title"),u=s.get("F")||0,l=s.getArray("C"),h=s.get("Count"),I=a;!St(l,3)||0===l[0]&&0===l[1]&&0===l[2]||(I=Ur.singletons.rgb.getRgb(l,0));var f={action:c.action,attachment:c.attachment,dest:c.dest,url:c.url,unsafeUrl:c.unsafeUrl,newWindow:c.newWindow,setOCGState:c.setOCGState,title:"string"==typeof g?Ie(g):"",color:I,count:Number.isInteger(h)?h:void 0,bold:!!(2&u),italic:!!(1&u),items:[]};o.parent.items.push(f),(t=s.getRaw("First"))instanceof Ye&&!n.has(t)&&(A.push({obj:t,parent:f}),n.put(t)),(t=s.getRaw("Next"))instanceof Ye&&!n.has(t)&&(A.push({obj:t,parent:o.parent}),n.put(t))}}return r.items.length>0?r.items:null}},{key:"permissions",get:function(){var e=null;try{e=this._readPermissions()}catch(e){if(e instanceof Ct)throw e;q("Unable to read permissions.")}return _(this,"permissions",e)}},{key:"_readPermissions",value:function(){var e=this.xref.trailer.get("Encrypt");if(!(e instanceof He))return null;var t=e.get("P");if("number"!=typeof t)return null;t+=Math.pow(2,32);var r=[];for(var A in y){var n=y[A];t&n&&r.push(n)}return r}},{key:"optionalContentConfig",get:function(){var e=null;try{var t=this._catDict.get("OCProperties");if(!t)return _(this,"optionalContentConfig",null);var r=t.get("D");if(!r)return _(this,"optionalContentConfig",null);var A=t.get("OCGs");if(!Array.isArray(A))return _(this,"optionalContentConfig",null);var n,i=[],a=new Pe,o=aE(A);try{for(o.s();!(n=o.n()).done;){var s=n.value;s instanceof Ye&&!a.has(s)&&(a.put(s),i.push(iE(IE,this,CE).call(this,s)))}}catch(e){o.e(e)}finally{o.f()}(e=iE(IE,this,BE).call(this,r,a)).groups=i}catch(e){if(e instanceof Ct)throw e;q("Unable to read optional content config: ".concat(e))}return _(this,"optionalContentConfig",e)}},{key:"setActualNumPages",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._actualNumPages=e}},{key:"hasActualNumPages",get:function(){return null!==this._actualNumPages}},{key:"_pagesCount",get:function(){var e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new re("Page count in top-level pages dictionary is not an integer.");return _(this,"_pagesCount",e)}},{key:"numPages",get:function(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}},{key:"destinations",get:function(){var e=this._readDests(),t=Object.create(null);if(e instanceof UC){var r,A=aE(e.getAll());try{for(A.s();!(r=A.n()).done;){var n=rE(r.value,2),i=n[0],a=lE(n[1]);a&&(t[Ie(i)]=a)}}catch(e){A.e(e)}finally{A.f()}}else e instanceof He&&e.forEach((function(e,r){var A=lE(r);A&&(t[e]=A)}));return _(this,"destinations",t)}},{key:"getDestination",value:function(e){var t=this._readDests();if(t instanceof UC){var r=lE(t.get(e));if(r)return r;var A=this.destinations[e];if(A)return q('Found "'.concat(e,'" at an incorrect position in the NameTree.')),A}else if(t instanceof He){var n=lE(t.get(e));if(n)return n}return null}},{key:"_readDests",value:function(){var e=this._catDict.get("Names");return null!=e&&e.has("Dests")?new UC(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}},{key:"pageLabels",get:function(){var e=null;try{e=this._readPageLabels()}catch(e){if(e instanceof Ct)throw e;q("Unable to read page labels.")}return _(this,"pageLabels",e)}},{key:"_readPageLabels",value:function(){var e=this._catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),r=null,A="",n=new MC(e,this.xref).getAll(),i="",a=1,o=0,s=this.numPages;o=1))throw new re("Invalid start in PageLabel dictionary.");a=l}else a=1}switch(r){case"D":i=a;break;case"R":case"r":i=vt(a,"r"===r);break;case"A":case"a":var h="a"===r?97:65,I=a-1;i=String.fromCharCode(h+I%26).repeat(Math.floor(I/26)+1);break;default:if(r)throw new re('Invalid style "'.concat(r,'" in PageLabel dictionary.'));i=""}t[o]=A+i,a++}return t}},{key:"pageLayout",get:function(){var e=this._catDict.get("PageLayout"),t="";if(e instanceof Ue)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return _(this,"pageLayout",t)}},{key:"pageMode",get:function(){var e=this._catDict.get("PageMode"),t="UseNone";if(e instanceof Ue)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return _(this,"pageMode",t)}},{key:"viewerPreferences",get:function(){var e=this,t=this._catDict.get("ViewerPreferences");if(!(t instanceof He))return _(this,"viewerPreferences",null);var r,A=null,n=aE(t.getKeys());try{for(n.s();!(r=n.n()).done;){var i=r.value,a=t.get(i),o=void 0;switch(i){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof a&&(o=a);break;case"NonFullScreenPageMode":if(a instanceof Ue)switch(a.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":o=a.name;break;default:o="UseNone"}break;case"Direction":if(a instanceof Ue)switch(a.name){case"L2R":case"R2L":o=a.name;break;default:o="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(a instanceof Ue)switch(a.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":o=a.name;break;default:o="CropBox"}break;case"PrintScaling":if(a instanceof Ue)switch(a.name){case"None":case"AppDefault":o=a.name;break;default:o="AppDefault"}break;case"Duplex":if(a instanceof Ue)switch(a.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":o=a.name;break;default:o="None"}break;case"PrintPageRange":Array.isArray(a)&&a.length%2==0&&a.every((function(t,r,A){return Number.isInteger(t)&&t>0&&(0===r||t>=A[r-1])&&t<=e.numPages}))&&(o=a);break;case"NumCopies":Number.isInteger(a)&&a>0&&(o=a);break;default:q("Ignoring non-standard key in ViewerPreferences: ".concat(i,"."));continue}void 0!==o?(A||(A=Object.create(null)),A[i]=o):q('Bad value, for key "'.concat(i,'", in ViewerPreferences: ').concat(a,"."))}}catch(e){n.e(e)}finally{n.f()}return _(this,"viewerPreferences",A)}},{key:"openAction",get:function(){var t=this._catDict.get("OpenAction"),r=Object.create(null);if(t instanceof He){var A=new He(this.xref);A.set("A",t);var n={url:null,dest:null,action:null};e.parseDestDictionary({destDict:A,resultObj:n}),Array.isArray(n.dest)?r.dest=n.dest:n.action&&(r.action=n.action)}else Array.isArray(t)&&(r.dest=t);return _(this,"openAction",oe(r)>0?r:null)}},{key:"attachments",get:function(){var e=this._catDict.get("Names"),t=null;if(e instanceof He&&e.has("EmbeddedFiles")){var r,A=aE(new UC(e.getRaw("EmbeddedFiles"),this.xref).getAll());try{for(A.s();!(r=A.n()).done;){var n=rE(r.value,2),i=n[0],a=n[1],o=new TC(a,this.xref);t||(t=Object.create(null)),t[Ie(i)]=o.serializable}}catch(e){A.e(e)}finally{A.f()}}return _(this,"attachments",t)}},{key:"xfaImages",get:function(){var e=this._catDict.get("Names"),t=null;if(e instanceof He&&e.has("XFAImages")){var r,A=aE(new UC(e.getRaw("XFAImages"),this.xref).getAll());try{for(A.s();!(r=A.n()).done;){var n=rE(r.value,2),i=n[0],a=n[1];t||(t=new He(this.xref)),t.set(Ie(i),a)}}catch(e){A.e(e)}finally{A.f()}}return _(this,"xfaImages",t)}},{key:"_collectJavaScript",value:function(){var e=this._catDict.get("Names"),t=null;function r(e,r){if(r instanceof He&&Ke(r.get("S"),"JavaScript")){var A=r.get("JS");if(A instanceof ze)A=A.getString();else if("string"!=typeof A)return;(A=Ie(A).replaceAll("\\0",""))&&(t||(t=new Map)).set(e,A)}}if(e instanceof He&&e.has("JavaScript")){var A,n=aE(new UC(e.getRaw("JavaScript"),this.xref).getAll());try{for(n.s();!(A=n.n()).done;){var i=rE(A.value,2),a=i[0],o=i[1];r(Ie(a),o)}}catch(e){n.e(e)}finally{n.f()}}var s=this._catDict.get("OpenAction");return s&&r("OpenAction",s),t}},{key:"jsActions",get:function(){var e=this._collectJavaScript(),t=Mt(this.xref,this._catDict,k);if(e){t||(t=Object.create(null));var r,A=aE(e);try{for(A.s();!(r=A.n()).done;){var n=rE(r.value,2),i=n[0],a=n[1];i in t?t[i].push(a):t[i]=[a]}}catch(e){A.e(e)}finally{A.f()}}return _(this,"jsActions",t)}},{key:"fontFallback",value:(n=tE($Q().mark((function e(t,r){var A,n,i,a;return $Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.fontCache);case 2:A=e.sent,n=aE(A),e.prev=4,n.s();case 6:if((i=n.n()).done){e.next=13;break}if((a=i.value).loadedName!==t){e.next=11;break}return a.fallback(r),e.abrupt("return");case 11:e.next=6;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(4),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[4,15,18,21]])}))),function(e,t){return n.apply(this,arguments)})},{key:"cleanup",value:(A=tE($Q().mark((function e(){var t,r,A,n,i=arguments;return $Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]&&i[0],JC(),this.globalImageCache.clear(t),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.pageDictCache.clear(),this.nonBlendModesSet.clear(),e.next=9,Promise.all(this.fontCache);case 9:r=e.sent,A=aE(r);try{for(A.s();!(n=A.n()).done;)delete n.value.dict.cacheKey}catch(e){A.e(e)}finally{A.f()}this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear();case 16:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"getPageDict",value:(r=tE($Q().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E;return $Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[this.toplevelPagesDict],A=new Pe,(n=this._catDict.getRaw("Pages"))instanceof Ye&&A.put(n),i=this.xref,a=this.pageKidsCountCache,o=this.pageIndexCache,s=this.pageDictCache,c=0;case 6:if(!r.length){e.next=67;break}if(!((g=r.pop())instanceof Ye)){e.next=34;break}if(!((u=a.get(g))>=0&&c+u<=t)){e.next=13;break}return c+=u,e.abrupt("continue",6);case 13:if(!A.has(g)){e.next=15;break}throw new re("Pages tree contains circular reference.");case 15:return A.put(g),e.next=18,s.get(g)||i.fetchAsync(g);case 18:if(!((l=e.sent)instanceof He)){e.next=32;break}if(!((h=l.getRaw("Type"))instanceof Ye)){e.next=25;break}return e.next=24,i.fetchAsync(h);case 24:h=e.sent;case 25:if(!Ke(h,"Page")&&l.has("Kids")){e.next=32;break}if(a.has(g)||a.put(g,1),o.has(g)||o.put(g,c),c!==t){e.next=30;break}return e.abrupt("return",[l,g]);case 30:return c++,e.abrupt("continue",6);case 32:return r.push(l),e.abrupt("continue",6);case 34:if(g instanceof He){e.next=36;break}throw new re("Page dictionary kid reference points to wrong type of object.");case 36:if(I=g.objId,!((f=g.getRaw("Count"))instanceof Ye)){e.next=42;break}return e.next=41,i.fetchAsync(f);case 41:f=e.sent;case 42:if(!(Number.isInteger(f)&&f>=0)){e.next=47;break}if(I&&!a.has(I)&&a.put(I,f),!(c+f<=t)){e.next=47;break}return c+=f,e.abrupt("continue",6);case 47:if(!((C=g.getRaw("Kids"))instanceof Ye)){e.next=52;break}return e.next=51,i.fetchAsync(C);case 51:C=e.sent;case 52:if(Array.isArray(C)){e.next=64;break}if(!((B=g.getRaw("Type"))instanceof Ye)){e.next=58;break}return e.next=57,i.fetchAsync(B);case 57:B=e.sent;case 58:if(!Ke(B,"Page")&&g.has("Kids")){e.next=63;break}if(c!==t){e.next=61;break}return e.abrupt("return",[g,null]);case 61:return c++,e.abrupt("continue",6);case 63:throw new re("Page dictionary kids object is not an array.");case 64:for(Q=C.length-1;Q>=0;Q--)E=C[Q],r.push(E),g===this.toplevelPagesDict&&E instanceof Ye&&!s.has(E)&&s.put(E,i.fetchAsync(E));e.next=6;break;case 67:throw new Error("Page index ".concat(t," not found."));case 68:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getAllPageDicts",value:(t=tE($Q().mark((function e(){var t,r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E=arguments;return $Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=function(e){if(e instanceof Qt&&!t)throw e;t&&r&&0===c&&(q('getAllPageDicts - Skipping invalid first page: "'.concat(e,'".')),e=He.empty),a.set(c++,[e,null])},g=function(e,t){t&&!s.has(t)&&s.put(t,c),a.set(c++,[e,t])},t=E.length>0&&void 0!==E[0]&&E[0],r=this.pdfManager.evaluatorOptions.ignoreErrors,A=[{currentNode:this.toplevelPagesDict,posInKids:0}],n=new Pe,(i=this._catDict.getRaw("Pages"))instanceof Ye&&n.put(i),a=new Map,o=this.xref,s=this.pageIndexCache,c=0;case 10:if(!(A.length>0)){e.next=70;break}if(l=A.at(-1),h=l.currentNode,I=l.posInKids,!((f=h.getRaw("Kids"))instanceof Ye)){e.next=25;break}return e.prev=15,e.next=18,o.fetchAsync(f);case 18:f=e.sent,e.next=25;break;case 21:return e.prev=21,e.t0=e.catch(15),u(e.t0),e.abrupt("break",70);case 25:if(Array.isArray(f)){e.next=28;break}return u(new re("Page dictionary kids object is not an array.")),e.abrupt("break",70);case 28:if(!(I>=f.length)){e.next=31;break}return A.pop(),e.abrupt("continue",10);case 31:if(C=f[I],B=void 0,!(C instanceof Ye)){e.next=50;break}if(!n.has(C)){e.next=37;break}return u(new re("Pages tree contains circular reference.")),e.abrupt("break",70);case 37:return n.put(C),e.prev=38,e.next=41,o.fetchAsync(C);case 41:B=e.sent,e.next=48;break;case 44:return e.prev=44,e.t1=e.catch(38),u(e.t1),e.abrupt("break",70);case 48:e.next=51;break;case 50:B=C;case 51:if(B instanceof He){e.next=54;break}return u(new re("Page dictionary kid reference points to wrong type of object.")),e.abrupt("break",70);case 54:if(!((Q=B.getRaw("Type"))instanceof Ye)){e.next=66;break}return e.prev=56,e.next=59,o.fetchAsync(Q);case 59:Q=e.sent,e.next=66;break;case 62:return e.prev=62,e.t2=e.catch(56),u(e.t2),e.abrupt("break",70);case 66:Ke(Q,"Page")||!B.has("Kids")?g(B,C instanceof Ye?C:null):A.push({currentNode:B,posInKids:0}),l.posInKids++,e.next=10;break;case 70:return e.abrupt("return",a);case 71:case"end":return e.stop()}}),e,this,[[15,21],[38,44],[56,62]])}))),function(){return t.apply(this,arguments)})},{key:"getPageIndex",value:function(e){var t=this,r=this.pageIndexCache.get(e);if(void 0!==r)return Promise.resolve(r);var A=this.xref,n=0,i=function(r){return function(t){var r,n=0;return A.fetchAsync(t).then((function(A){if(je(t,e)&&!qe(A,"Page")&&!(A instanceof He&&!A.has("Type")&&A.has("Contents")))throw new re("The reference does not point to a /Page dictionary.");if(!A)return null;if(!(A instanceof He))throw new re("Node must be a dictionary.");return r=A.getRaw("Parent"),A.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(e instanceof He))throw new re("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;var i,a=[],o=!1,s=aE(e);try{for(s.s();!(i=s.n()).done;){var c=i.value;if(!(c instanceof Ye))throw new re("Kid must be a reference.");if(je(c,t)){o=!0;break}a.push(A.fetchAsync(c).then((function(e){if(!(e instanceof He))throw new re("Kid node must be a dictionary.");e.has("Count")?n+=e.get("Count"):n++})))}}catch(e){s.e(e)}finally{s.f()}if(!o)throw new re("Kid reference not found in parent's kids.");return Promise.all(a).then((function(){return[n,r]}))}))}(r).then((function(r){if(!r)return t.pageIndexCache.put(e,n),n;var A=rE(r,2),a=A[0],o=A[1];return n+=a,i(o)}))};return i(e)}},{key:"baseUrl",get:function(){var e=this._catDict.get("URI");if(e instanceof He){var t=e.get("Base");if("string"==typeof t){var r=Z(t,null,{tryConvertEncoding:!0});if(r)return _(this,"baseUrl",r.href)}}return _(this,"baseUrl",this.pdfManager.docBaseUrl)}}],[{key:"parseDestDictionary",value:function(e){var t=e.destDict,r=e.resultObj,A=e.docBaseUrl,n=void 0===A?null:A,i=e.docAttachments,a=void 0===i?null:i;if(t instanceof He){var o,s,c=t.get("A");if(c instanceof He||(t.has("Dest")?c=t.get("Dest"):(c=t.get("AA"))instanceof He&&(c.has("D")?c=c.get("D"):c.has("U")&&(c=c.get("U")))),c instanceof He){var g=c.get("S");if(!(g instanceof Ue))return void q("parseDestDictionary: Invalid type in Action dictionary.");var u=g.name;switch(u){case"ResetForm":var l,h=c.get("Flags"),I=0==(1&("number"==typeof h?h:0)),f=[],C=[],B=aE(c.get("Fields")||[]);try{for(B.s();!(l=B.n()).done;){var Q=l.value;Q instanceof Ye?C.push(Q.toString()):"string"==typeof Q&&f.push(Ie(Q))}}catch(e){B.e(e)}finally{B.f()}r.resetForm={fields:f,refs:C,include:I};break;case"URI":(o=c.get("URI"))instanceof Ue&&(o="/"+o.name);break;case"GoTo":s=c.get("D");break;case"Launch":case"GoToR":var E=c.get("F");E instanceof He?o=new TC(E,null,!0).serializable.rawFilename:"string"==typeof E&&(o=E);var d=hE(c);d&&"string"==typeof o&&(o=o.split("#",1)[0]+"#"+d);var y=c.get("NewWindow");"boolean"==typeof y&&(r.newWindow=y);break;case"GoToE":var p,v=c.get("T");if(a&&v instanceof He){var m=v.get("R"),w=v.get("N");Ke(m,"C")&&"string"==typeof w&&(p=a[Ie(w)])}if(p){r.attachment=p;var b=hE(c);b&&(r.attachmentDest=b)}else q('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":var k=c.get("N");k instanceof Ue&&(r.action=k.name);break;case"SetOCGState":var D=c.get("State"),S=c.get("PreserveRB");if(!Array.isArray(D)||0===D.length)break;var F,x=[],R=aE(D);try{for(R.s();!(F=R.n()).done;){var G=F.value;if(G instanceof Ue)switch(G.name){case"ON":case"OFF":case"Toggle":x.push(G.name)}else G instanceof Ye&&x.push(G.toString())}}catch(e){R.e(e)}finally{R.f()}if(x.length!==D.length)break;r.setOCGState={state:x,preserveRB:"boolean"!=typeof S||S};break;case"JavaScript":var N,L=c.get("JS");L instanceof ze?N=L.getString():"string"==typeof L&&(N=L);var U=N&&Kt(Ie(N));if(U){o=U.url,r.newWindow=U.newWindow;break}default:if("JavaScript"===u||"SubmitForm"===u)break;q('parseDestDictionary - unsupported action: "'.concat(u,'".'))}}else t.has("Dest")&&(s=t.get("Dest"));if("string"==typeof o){var M=Z(o,n,{addDefaultProtocol:!0,tryConvertEncoding:!0});M&&(r.url=M.href),r.unsafeUrl=o}s&&(s instanceof Ue&&(s=s.name),"string"==typeof s?r.dest=Ie(s):uE(s)&&(r.dest=s))}else q("parseDestDictionary: \`destDict\` must be a dictionary.")}}]);var t,r,A,n}();function CE(e){var t=this.xref.fetch(e),r={id:e.toString(),name:null,intent:null,usage:{print:null,view:null}},A=t.get("Name");"string"==typeof A&&(r.name=Ie(A));var n=t.getArray("Intent");Array.isArray(n)||(n=[n]),n.every((function(e){return e instanceof Ue}))&&(r.intent=n.map((function(e){return e.name})));var i=t.get("Usage");if(!(i instanceof He))return r;var a=r.usage,o=i.get("Print");if(o instanceof He){var s=o.get("PrintState");if(s instanceof Ue)switch(s.name){case"ON":case"OFF":a.print={printState:s.name}}}var c=i.get("View");if(c instanceof He){var g=c.get("ViewState");if(g instanceof Ue)switch(g.name){case"ON":case"OFF":a.view={viewState:g.name}}}return r}function BE(e,t){function r(e){var r=[];if(Array.isArray(e)){var A,n=aE(e);try{for(n.s();!(A=n.n()).done;){var i=A.value;i instanceof Ye&&t.has(i)&&r.push(i.toString())}}catch(e){n.e(e)}finally{n.f()}}return r}function A(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(e))return null;var A,i=[],o=aE(e);try{for(o.s();!(A=o.n()).done;){var s=A.value;if(s instanceof Ye&&t.has(s))a.put(s),i.push(s.toString());else{var c=n(s,r);c&&i.push(c)}}}catch(e){o.e(e)}finally{o.f()}if(r>0)return i;var g,u=[],l=aE(t);try{for(l.s();!(g=l.n()).done;){var h=g.value;a.has(h)||u.push(h.toString())}}catch(e){l.e(e)}finally{l.f()}return u.length&&i.push({name:null,order:u}),i}function n(e,t){if(++t>o)return q("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;var r=i.fetchIfRef(e);if(!Array.isArray(r))return null;var n=i.fetchIfRef(r[0]);if("string"!=typeof n)return null;var a=A(r.slice(1),t);return a&&a.length?{name:Ie(n),order:a}:null}var i=this.xref,a=new Pe,o=10;return{name:"string"==typeof e.get("Name")?Ie(e.get("Name")):null,creator:"string"==typeof e.get("Creator")?Ie(e.get("Creator")):null,baseState:e.get("BaseState")instanceof Ue?e.get("BaseState").name:null,on:r(e.get("ON")),off:r(e.get("OFF")),order:A(e.get("Order")),groups:null}}function QE(){QE=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function EE(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function dE(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){EE(i,A,n,a,o,"next",e)}function o(e){EE(i,A,n,a,o,"throw",e)}a(void 0)}))}}function yE(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function mE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);re.length)&&(t=e.length);for(var r=0,A=Array(t);r1&&void 0!==arguments[1]?arguments[1]:"0";if(t||(t="0"),!e)return ey(t);var r=e.trim().match(Zd);if(!r)return ey(t);var A=qd(r,3),n=A[1],i=A[2],a=parseFloat(n);if(isNaN(a))return ey(t);if(0===a)return 0;var o=Wd[i];return o?o(a):a}function ty(e){if(!e)return{num:1,den:1};var t=e.trim().split(/\\s*:\\s*/).map((function(e){return parseFloat(e)})).filter((function(e){return!isNaN(e)}));if(1===t.length&&t.push(1),0===t.length)return{num:1,den:1};var r=qd(t,2);return{num:r[0],den:r[1]}}function ry(e){return e?e.trim().split(/\\s+/).map((function(e){return{excluded:"-"===e[0],viewname:e.substring(1)}})):[]}var Ay=function(){function e(t,r,A,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.success=t,this.html=r,this.bbox=A,this.breakNode=n}return function(e,t,r){return t&&Kd(e.prototype,t),r&&Kd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"isBreak",value:function(){return!!this.breakNode}}],[{key:"FAILURE",get:function(){return _(this,"FAILURE",new e(!1,null,null,null))}},{key:"EMPTY",get:function(){return _(this,"EMPTY",new e(!0,null,null,null))}},{key:"breakNode",value:function(t){return new e(!1,null,null,t)}},{key:"success",value:function(t){return new e(!0,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,null)}}])}();function ny(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||ay(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 iy(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ay(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function ay(e,t){if(e){if("string"==typeof e)return oy(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oy(e,t):void 0}}function oy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r1&&void 0!==arguments[1]?arguments[1]:null,A=iy(e);try{for(A.s();!(t=A.n()).done;){var n=t.value;this.addPdfFont(n)}}catch(e){A.e(e)}finally{A.f()}var i,a=iy(this.fonts.values());try{for(a.s();!(i=a.n()).done;){var o=i.value;o.regular||(o.regular=o.italic||o.bold||o.bolditalic)}}catch(e){a.e(e)}finally{a.f()}if(r&&0!==r.size){var s,c=this.fonts.get("PdfJS-Fallback-PdfJS-XFA"),g=iy(r);try{for(g.s();!(s=g.n()).done;){var u=s.value;this.fonts.set(u,c)}}catch(e){g.e(e)}finally{g.f()}}}},{key:"addPdfFont",value:function(e){var t=e.cssFontInfo,r=t.fontFamily,A=this.fonts.get(r);A||(A=Object.create(null),this.fonts.set(r,A),this.defaultFont||(this.defaultFont=A));var n,i,a,o="",s=parseFloat(t.fontWeight);0!==parseFloat(t.italicAngle)?o=s>=700?"bolditalic":"italic":s>=700&&(o="bold"),o||((e.name.includes("Bold")||null!==(n=e.psName)&&void 0!==n&&n.includes("Bold"))&&(o="bold"),(e.name.includes("Italic")||e.name.endsWith("It")||null!==(i=e.psName)&&void 0!==i&&i.includes("Italic")||null!==(a=e.psName)&&void 0!==a&&a.endsWith("It"))&&(o+="italic")),o||(o="regular"),A[o]=e}},{key:"getDefault",value:function(){return this.defaultFont}},{key:"find",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.fonts.get(e)||this.cache.get(e);if(r)return r;var A=/,|-|_| |bolditalic|bold|italic|regular|it/gi,n=e.replaceAll(A,"");if(r=this.fonts.get(n))return this.cache.set(e,r),r;n=n.toLowerCase();var i,a=[],o=iy(this.fonts.entries());try{for(o.s();!(i=o.n()).done;){var s=ny(i.value,2),c=s[0],g=s[1];c.replaceAll(A,"").toLowerCase().startsWith(n)&&a.push(g)}}catch(e){o.e(e)}finally{o.f()}if(0===a.length){var u,l=iy(this.fonts.entries());try{for(l.s();!(u=l.n()).done;){var h,I=ny(u.value,2)[1];null!==(h=I.regular.name)&&void 0!==h&&h.replaceAll(A,"").toLowerCase().startsWith(n)&&a.push(I)}}catch(e){l.e(e)}finally{l.f()}}if(0===a.length){n=n.replaceAll(/psmt|mt/gi,"");var f,C=iy(this.fonts.entries());try{for(C.s();!(f=C.n()).done;){var B=ny(f.value,2),Q=B[0],E=B[1];Q.replaceAll(A,"").toLowerCase().startsWith(n)&&a.push(E)}}catch(e){C.e(e)}finally{C.f()}}if(0===a.length){var d,y=iy(this.fonts.values());try{for(y.s();!(d=y.n()).done;){var p,v=d.value;null!==(p=v.regular.name)&&void 0!==p&&p.replaceAll(A,"").toLowerCase().startsWith(n)&&a.push(v)}}catch(e){y.e(e)}finally{y.f()}}return a.length>=1?(1!==a.length&&t&&q("XFA - Too many choices to guess the correct font: ".concat(e)),this.cache.set(e,a[0]),a[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),q("XFA - Cannot find the font: ".concat(e))),null)}}])}();function uy(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}function ly(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Iy(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function hy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||Iy(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 Iy(e,t){if(e){if("string"==typeof e)return fy(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fy(e,t):void 0}}function fy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);re?(A=Math.max(A,i),i=0,n+=a,a=C,t=-1,r=0,o=!0,s=!1):(a=Math.max(C,a),r=i,i+=l,t=c):i+l>e?(n+=a,a=C,-1!==t?(c=t,A=Math.max(A,r),i=0,t=-1,r=0):(A=Math.max(A,i),i=l),o=!0,s=!1):(i+=l,a=Math.max(C,a))}return{width:1.02*(A=Math.max(A,i)),height:n+=a+this.extraHeight,isBroken:o}}}])}();function vy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||my(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 my(e,t){if(e){if("string"==typeof e)return wy(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wy(e,t):void 0}}function wy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r2&&void 0!==arguments[2])||arguments[2],A=e.match(by);if(!A)return null;for(var n,i=vy(A,1)[0],a=[{name:i,cacheName:"."+i,index:0,js:null,formCalc:null,operator:Dy.dot}],o=i.length;o4&&void 0!==arguments[4])||arguments[4],n=xy(r,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]);if(!n)return null;var i,a=Sy.get(n[0].name),o=0;a?(i=!0,e=[a(e,t)],o=1):(i=null===t,e=[t||e]);for(var s,c=function(){var r,a=n[o],s=a.name,c=a.cacheName,g=a.operator,u=a.index,l=[],h=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=my(e))){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(e);try{for(h.s();!(r=h.n()).done;){var I=r.value;if(I.isXFAObject){var f=void 0,C=void 0;if(A&&((C=Fy.get(I))||(C=new Map,Fy.set(I,C)),f=C.get(c)),!f){switch(g){case Dy.dot:f=I[jE](s,!1);break;case Dy.dotDot:f=I[jE](s,!0);break;case Dy.dotHash:f=(f=I[qE](s)).isXFAObjectArray?f.children:[f]}A&&C.set(c,f)}f.length>0&&l.push(f)}}}catch(e){h.e(e)}finally{h.f()}if(0===l.length&&!i&&0===o){var B=t[td]();return(t=B)?(o=-1,e=[t],0):{v:null}}e=isFinite(u)?l.filter((function(e){return u=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function Ky(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ty(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function Ty(e,t){if(e){if("string"==typeof e)return qy(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qy(e,t):void 0}}function qy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r2&&void 0!==arguments[2]&&arguments[2];jy(this,e),this[Qd]=t,this[Ed]=r,this[ap]=A,this[cp]=null,this[$y]=[],this[Yd]="".concat(r).concat(hp++),this[Ad]=null}return Zy(e,[{key:"isXFAObject",get:function(){return!0}},{key:"isXFAObjectArray",get:function(){return!1}},{key:"createNodes",value:function(e){var t,r=this,A=null,n=Ky(e);try{for(n.s();!(t=n.n()).done;){for(var i=t.value,a=i.name,o=i.index,s=0,c=isFinite(o)?o:0;s<=c;s++){var g=r[Qd]===Ip?-1:r[Qd];A=new Qp(g,a),r[SE](A)}r=A}}catch(e){n.e(e)}finally{n.f()}return A}},{key:yd,value:function(e){if(!this[ap]||!this[pd](e))return!1;var t=e[Ed],r=this[t];if(!(r instanceof Cp))return null!==r&&this[kd](r),this[t]=e,this[SE](e),!0;if(r.push(e))return this[SE](e),!0;var A="";return this.id?A=" (id: ".concat(this.id,")"):this.name&&(A=" (name: ".concat(this.name," ").concat(this.h.value,")")),q('XFA - node "'.concat(this[Ed],'"').concat(A,' has already enough "').concat(t,'"!')),!1}},{key:pd,value:function(e){return this.hasOwnProperty(e[Ed])&&e[Qd]===this[Qd]}},{key:ld,value:function(){return!1}},{key:kE,value:function(){return!1}},{key:sd,value:function(){return!1}},{key:cd,value:function(){return!1}},{key:wd,value:function(){this.para&&this[rd]()[HE].paraStack.pop()}},{key:bd,value:function(){this[rd]()[HE].paraStack.push(this.para)}},{key:xd,value:function(e){this.id&&this[Qd]===Od.template.id&&e.set(this.id,this)}},{key:rd,value:function(){return this[Ad].template}},{key:hd,value:function(){return!1}},{key:Id,value:function(){return!1}},{key:SE,value:function(e){e[cp]=this,this[$y].push(e),!e[Ad]&&this[Ad]&&(e[Ad]=this[Ad])}},{key:kd,value:function(e){var t=this[$y].indexOf(e);this[$y].splice(t,1)}},{key:nd,value:function(){return this.hasOwnProperty("value")}},{key:Gd,value:function(e){}},{key:vd,value:function(e){}},{key:YE,value:function(){}},{key:xE,value:function(e){delete this[ap],this[GE]&&(e.clean(this[GE]),delete this[GE])}},{key:ad,value:function(e){return this[$y].indexOf(e)}},{key:od,value:function(e,t){t[cp]=this,this[$y].splice(e,0,t),!t[Ad]&&this[Ad]&&(t[Ad]=this[Ad])}},{key:fd,value:function(){return!this.name}},{key:Bd,value:function(){return""}},{key:Ld,value:function(){return 0===this[$y].length?this[UE]:this[$y].map((function(e){return e[Ld]()})).join("")}},{key:zy,get:function(){var t=Object.getPrototypeOf(this);if(!t._attributes){var r,A=t._attributes=new Set,n=Ky(Object.getOwnPropertyNames(this));try{for(n.s();!(r=n.n()).done;){var i=r.value;if(null===this[i]||this[i]instanceof e||this[i]instanceof Cp)break;A.add(i)}}catch(e){n.e(e)}finally{n.f()}}return _(this,zy,t._attributes)}},{key:ud,value:function(e){for(var t=this;t;){if(t===e)return!0;t=t[td]()}return!1}},{key:td,value:function(){return this[cp]}},{key:ed,value:function(){return this[td]()}},{key:VE,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[e]:this[$y]}},{key:JE,value:function(){var t=Object.create(null);this[UE]&&(t.$content=this[UE]);var r,A=Ky(Object.getOwnPropertyNames(this));try{for(A.s();!(r=A.n()).done;){var n=r.value,i=this[n];null!==i&&(i instanceof e?t[n]=i[JE]():i instanceof Cp?i.isEmpty()||(t[n]=i.dump()):t[n]=i)}}catch(e){A.e(e)}finally{A.f()}return t}},{key:Hd,value:function(){return null}},{key:Md,value:function(){return Ay.EMPTY}},{key:zE,value:Oy().mark((function e(){var t,r,A;return Oy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ky(this[VE]()),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=9;break}return A=r.value,e.next=7,A;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:Ap,value:Oy().mark((function e(t,r){var A,n,i,a,o;return Oy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A=Ky(this[zE]()),e.prev=1,A.s();case 3:if((n=A.n()).done){e.next=13;break}if(i=n.value,t&&r!==t.has(i[Ed])){e.next=11;break}return a=this[TE](),(o=i[Md](a)).success||(this[HE].failingNode=i),e.next=11,o;case 11:e.next=3;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),A.e(e.t0);case 18:return e.prev=18,A.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[1,15,18,21]])}))},{key:PE,value:function(){return null}},{key:DE,value:function(e,t){this[HE].children.push(e)}},{key:TE,value:function(){}},{key:FE,value:function(e){var t=e.filter,r=void 0===t?null:t,A=e.include,n=void 0===A||A;if(this[HE].generator){var i=this[TE](),a=this[HE].failingNode[Md](i);if(!a.success)return a;a.html&&this[DE](a.html,a.bbox),delete this[HE].failingNode}else this[HE].generator=this[Ap](r,n);for(;;){var o=this[HE].generator.next();if(o.done)break;var s=o.value;if(!s.success)return s;s.html&&this[DE](s.html,s.bbox)}return this[HE].generator=null,Ay.EMPTY}},{key:Rd,value:function(e){this[up]=new Set(Object.keys(e))}},{key:ip,value:function(e){var t=this[zy],r=this[up];return function(e){return function(e){if(Array.isArray(e))return qy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ty(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.")}()}(e).filter((function(e){return t.has(e)&&!r.has(e)}))}},{key:Sd,value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,A=Ky(this[$y]);try{for(A.s();!(t=A.n()).done;)t.value[gp](e,r)}catch(e){A.e(e)}finally{A.f()}}},{key:gp,value:function(e,t){var r=this[np](e,t);r?this[Xy](r,e,t):this[Sd](e,t)}},{key:np,value:function(e,t){var r=this.use,A=this.usehref;if(!r&&!A)return null;var n=null,i=null,a=null,o=r;if(A?(o=A,A.startsWith("#som(")&&A.endsWith(")")?i=A.slice(5,-1):A.startsWith(".#som(")&&A.endsWith(")")?i=A.slice(6,-1):A.startsWith("#")?a=A.slice(1):A.startsWith(".#")&&(a=A.slice(2))):r.startsWith("#")?a=r.slice(1):i=r,this.use=this.usehref="",a?n=e.get(a):(n=Ry(e.get(Dd),this,i,!0,!1))&&(n=n[0]),!n)return q("XFA - Invalid prototype reference: ".concat(o,".")),null;if(n[Ed]!==this[Ed])return q("XFA - Incompatible prototype: ".concat(n[Ed]," !== ").concat(this[Ed],".")),null;if(t.has(n))return q("XFA - Cycle detected in prototypes use."),null;t.add(n);var s=n[np](e,t);return s&&n[Xy](s,e,t),n[Sd](e,t),t.delete(n),n}},{key:Xy,value:function(e,t,r){if(r.has(e))q("XFA - Cycle detected in prototypes use.");else{!this[UE]&&e[UE]&&(this[UE]=e[UE]),new Set(r).add(e);var A,n=Ky(this[ip](e[up]));try{for(n.s();!(A=n.n()).done;){var i=A.value;this[i]=e[i],this[up]&&this[up].add(i)}}catch(e){n.e(e)}finally{n.f()}var a,o=Ky(Object.getOwnPropertyNames(this));try{for(o.s();!(a=o.n()).done;){var s=a.value;if(!this[zy].has(s)){var c=this[s],g=e[s];if(c instanceof Cp){var u,l=Ky(c[$y]);try{for(l.s();!(u=l.n()).done;)u.value[gp](t,r)}catch(e){l.e(e)}finally{l.f()}for(var h=c[$y].length,I=g[$y].length;h0&&void 0!==arguments[0]?arguments[0]:null;return e?this[$y].filter((function(t){return t[Ed]===e})):this[$y]}},{key:qE,value:function(e){return this[e]}},{key:jE,value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[WE](e,t,r))}},{key:WE,value:function(e,t){var r=this,A=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Oy().mark((function n(){var i,a,o;return Oy().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("parent"!==e){n.next=4;break}return n.next=3,r[cp];case 3:return n.abrupt("return");case 4:i=Ky(r[$y]),n.prev=5,i.s();case 7:if((a=i.n()).done){n.next=19;break}if((o=a.value)[Ed]!==e){n.next=12;break}return n.next=12,o;case 12:if(o.name!==e){n.next=15;break}return n.next=15,o;case 15:if(!t&&!o[fd]()){n.next=17;break}return n.delegateYield(o[WE](e,t,!1),"t0",17);case 17:n.next=7;break;case 19:n.next=24;break;case 21:n.prev=21,n.t1=n.catch(5),i.e(n.t1);case 24:return n.prev=24,i.f(),n.finish(24);case 27:if(!A||!r[zy].has(e)){n.next=30;break}return n.next=30,new Bp(r,e,r[e]);case 30:case"end":return n.stop()}}),n,null,[[5,21,24,27]])}))()}}],[{key:ep,value:function(t){return Array.isArray(t)?t.map((function(t){return e[ep](t)})):"object"==typeof t&&null!==t?Object.assign({},t):t}}])}(),Cp=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;jy(this,e),this[op]=t,this[$y]=[]}return Zy(e,[{key:"isXFAObject",get:function(){return!1}},{key:"isXFAObjectArray",get:function(){return!0}},{key:"push",value:function(e){return this[$y].length<=this[op]?(this[$y].push(e),!0):(q('XFA - node "'.concat(e[Ed],'" accepts no more than ').concat(this[op]," children")),!1)}},{key:"isEmpty",value:function(){return 0===this[$y].length}},{key:"dump",value:function(){return 1===this[$y].length?this[$y][0][JE]():this[$y].map((function(e){return e[JE]()}))}},{key:NE,value:function(){var t=new e(this[op]);return t[$y]=this[$y].map((function(e){return e[NE]()})),t}},{key:"children",get:function(){return this[$y]}},{key:"clear",value:function(){this[$y].length=0}}])}(),Bp=function(){return Zy((function e(t,r,A){jy(this,e),this[cp]=t,this[Ed]=r,this[UE]=A,this[LE]=!1,this[Yd]="attribute".concat(hp++)}),[{key:td,value:function(){return this[cp]}},{key:gd,value:function(){return!0}},{key:ZE,value:function(){return this[UE].trim()}},{key:Gd,value:function(e){e=e.value||"",this[UE]=e.toString()}},{key:Ld,value:function(){return this[UE]}},{key:ud,value:function(e){return this[cp]===e||this[cp][ud](e)}}])}(),Qp=function(e){function t(e,r){var A,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(jy(this,t),(A=My(this,t,[e,r]))[UE]="",A[tp]=null,"#text"!==r){var i=new Map;A[Vy]=i;for(var a=0,o=Object.entries(n);a"),this[UE])"string"==typeof this[UE]?e.push(Yt(this[UE])):this[UE][Jd](e);else{var g,u=Ky(this[$y]);try{for(u.s();!(g=u.n()).done;)g.value[Jd](e)}catch(e){u.e(e)}finally{u.f()}}e.push(""))}else e.push("/>")}else e.push(Yt(this[UE]))}},{key:yd,value:function(e){if(this[UE]){var r=new t(this[Qd],"#text");this[SE](r),r[UE]=this[UE],this[UE]=""}return this[SE](e),!0}},{key:vd,value:function(e){this[UE]+=e}},{key:YE,value:function(){if(this[UE]&&this[$y].length>0){var e=new t(this[Qd],"#text");this[SE](e),e[UE]=this[UE],delete this[UE]}}},{key:Md,value:function(){return"#text"===this[Ed]?Ay.success({name:"#text",value:this[UE]}):Ay.EMPTY}},{key:VE,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[$y].filter((function(t){return t[Ed]===e})):this[$y]}},{key:KE,value:function(){return this[Vy]}},{key:qE,value:function(e){var t=this[Vy].get(e);return void 0!==t?t:this[VE](e)}},{key:WE,value:Oy().mark((function(e,t){var r,A,n,i;return Oy().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!(r=this[Vy].get(e))){a.next=4;break}return a.next=4,r;case 4:A=Ky(this[$y]),a.prev=5,A.s();case 7:if((n=A.n()).done){a.next=16;break}if((i=n.value)[Ed]!==e){a.next=12;break}return a.next=12,i;case 12:if(!t){a.next=14;break}return a.delegateYield(i[WE](e,t),"t0",14);case 14:a.next=7;break;case 16:a.next=21;break;case 18:a.prev=18,a.t1=a.catch(5),A.e(a.t1);case 21:return a.prev=21,A.f(),a.finish(21);case 24:case"end":return a.stop()}}),r,this,[[5,18,21,24]])}))},{key:OE,value:Oy().mark((function(e,t){var r,A,n,i;return Oy().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!(r=this[Vy].get(e))||t&&r[LE]){a.next=4;break}return a.next=4,r;case 4:A=Ky(this[$y]),a.prev=5,A.s();case 7:if((n=A.n()).done){a.next=12;break}return i=n.value,a.delegateYield(i[OE](e,t),"t0",10);case 10:a.next=7;break;case 12:a.next=17;break;case 14:a.prev=14,a.t1=a.catch(5),A.e(a.t1);case 17:return a.prev=17,A.f(),a.finish(17);case 20:case"end":return a.stop()}}),r,this,[[5,14,17,20]])}))},{key:XE,value:Oy().mark((function e(t,r,A){var n,i,a;return Oy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Ky(this[$y]),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=12;break}if((a=i.value)[Ed]!==t||A&&a[LE]){e.next=8;break}return e.next=8,a;case 8:if(!r){e.next=10;break}return e.delegateYield(a[XE](t,r,A),"t0",10);case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t1=e.catch(1),n.e(e.t1);case 17:return e.prev=17,n.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[1,14,17,20]])}))},{key:gd,value:function(){return null===this[tp]?0===this[$y].length||this[$y][0][Qd]===Od.xhtml.id:this[tp]}},{key:ZE,value:function(){return null===this[tp]?0===this[$y].length?this[UE].trim():this[$y][0][Qd]===Od.xhtml.id?this[$y][0][Ld]().trim():null:this[UE].trim()}},{key:Gd,value:function(e){e=e.value||"",this[UE]=e.toString()}},{key:JE,value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object.create(null);e&&(t.$ns=this[Qd]),this[UE]&&(t.$content=this[UE]),t.$name=this[Ed],t.children=[];var r,A=Ky(this[$y]);try{for(A.s();!(r=A.n()).done;){var n=r.value;t.children.push(n[JE](e))}}catch(e){A.e(e)}finally{A.f()}t.attributes=Object.create(null);var i,a=Ky(this[Vy]);try{for(a.s();!(i=a.n()).done;){var o=Uy(i.value,2),s=o[0],c=o[1];t.attributes[s]=c[UE]}}catch(e){a.e(e)}finally{a.f()}return t}}])}(),Ep=function(e){function t(e,r){var A;return jy(this,t),(A=My(this,t,[e,r]))[UE]="",A}return Yy(t,fp),Zy(t,[{key:vd,value:function(e){this[UE]+=e}},{key:YE,value:function(){}}])}(),dp=function(e){function t(e,r,A){var n;return jy(this,t),(n=My(this,t,[e,r]))[sp]=A,n}return Yy(t,Ep),Zy(t,[{key:YE,value:function(){var e=this;this[UE]=zd({data:this[UE],defaultValue:this[sp][0],validate:function(t){return e[sp].includes(t)}})}},{key:xE,value:function(e){Ny(t,xE,this,3)([e]),delete this[sp]}}])}(),yp=function(e){function t(){return jy(this,t),My(this,t,arguments)}return Yy(t,Ep),Zy(t,[{key:YE,value:function(){this[UE]=this[UE].trim()}}])}(),pp=function(e){function t(e,r,A,n){var i;return jy(this,t),(i=My(this,t,[e,r]))[rp]=A,i[lp]=n,i}return Yy(t,Ep),Zy(t,[{key:YE,value:function(){this[UE]=Xd({data:this[UE],defaultValue:this[rp],validate:this[lp]})}},{key:xE,value:function(e){Ny(t,xE,this,3)([e]),delete this[rp],delete this[lp]}}])}(),vp=function(e){function t(e,r){return jy(this,t),My(this,t,[e,r,0,function(e){return 1===e}])}return Yy(t,pp),Zy(t)}(),mp=function(e){function t(e,r){return jy(this,t),My(this,t,[e,r,1,function(e){return 0===e}])}return Yy(t,pp),Zy(t)}();function wp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bp(e,t):void 0}}(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 bp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r0&&(t.minWidth=kp(e.minW)),e.maxW>0&&(t.maxWidth=kp(e.maxW)),e.minH>0&&(t.minHeight=kp(e.minH)),e.maxH>0&&(t.maxHeight=kp(e.maxH)))}function Fp(e,t,r,A,n,i){var a=new py(t,r,A,n);return"string"==typeof e?a.addString(e):e[md](a),a.compute(i)}function xp(e,t){var r=null,A=null,n=!1;if((!e.w||!e.h)&&e.value){var i=0,a=0;e.margin&&(i=e.margin.leftInset+e.margin.rightInset,a=e.margin.topInset+e.margin.bottomInset);var o=null,s=null;e.para&&(s=Object.create(null),o=""===e.para.lineHeight?null:e.para.lineHeight,s.top=""===e.para.spaceAbove?0:e.para.spaceAbove,s.bottom=""===e.para.spaceBelow?0:e.para.spaceBelow,s.left=""===e.para.marginLeft?0:e.para.marginLeft,s.right=""===e.para.marginRight?0:e.para.marginRight);var c=e.font;if(!c)for(var g=e[rd](),u=e[td]();u&&u!==g;){if(u.font){c=u.font;break}u=u[td]()}var l=(e.w||t.width)-i,h=e[Ad].fontFinder;if(e.value.exData&&e.value.exData[UE]&&"text/html"===e.value.exData.contentType){var I=Fp(e.value.exData[UE],c,s,o,h,l);A=I.width,r=I.height,n=I.isBroken}else{var f=e.value[Ld]();if(f){var C=Fp(f,c,s,o,h,l);A=C.width,r=C.height,n=C.isBroken}}null===A||e.w||(A+=i),null===r||e.h||(r+=a)}return{w:A,h:r,isBroken:n}}function Rp(e,t,r){var A;if(""!==e.w&&""!==e.h)A=[e.x,e.y,e.w,e.h];else{if(!r)return null;var n=e.w;if(""===n){if(0===e.maxW){var i=e[ed]();n="position"===i.layout&&""!==i.w?0:e.minW}else n=Math.min(e.maxW,r.width);t.attributes.style.width=kp(n)}var a=e.h;if(""===a){if(0===e.maxH){var o=e[ed]();a="position"===o.layout&&""!==o.h?0:e.minH}else a=Math.min(e.maxH,r.height);t.attributes.style.height=kp(a)}A=[e.x,e.y,n,a]}return A}function Gp(e){var t,r=e[ed]();if(null!==(t=r.layout)&&void 0!==t&&t.includes("row")){var A,n=r[HE],i=e.colSpan;A=-1===i?n.columnWidths.slice(n.currentColumn).reduce((function(e,t){return e+t}),0):n.columnWidths.slice(n.currentColumn,n.currentColumn+i).reduce((function(e,t){return e+t}),0),isNaN(A)||(e.w=A)}r.layout&&"position"!==r.layout&&(e.x=e.y=0),"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=e.columnWidths.reduce((function(e,t){return e+t}),0))}function Np(e){switch(e.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}}function Lp(e){for(var t=Object.create(null),r=arguments.length,A=new Array(r>1?r-1:0),n=1;n=0)){var r="padding"+("left"==("right"===e.textAlign?"right":"left")?"Left":"Right"),A=ey(e[r],"0px");e[r]="".concat(A-t,"px")}}function Jp(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}}function Hp(e){return e.relevant.length>0&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function Yp(e){var t=e[rd]()[HE].paraStack;return t.length?t.at(-1):null}function Pp(e,t,r){var A;if(null!==(A=r.attributes.class)&&void 0!==A&&A.includes("xfaRich")){t&&(""===e.h&&(t.height="auto"),""===e.w&&(t.width="auto"));var n=Yp(e);if(n){var i=r.attributes.style;switch(i.display="flex",i.flexDirection="column",n.vAlign){case"top":i.justifyContent="start";break;case"bottom":i.justifyContent="end";break;case"middle":i.justifyContent="center"}for(var a=n[Hd](),o=0,s=Object.entries(a);oe.length)&&(t=e.length);for(var r=0,A=Array(t);r=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(A.children);try{for(l.s();!(g=l.n()).done;)g.value.attributes.style.height=u}catch(e){l.e(e)}finally{l.f()}break;case"table":case"tb":A.width=Math.min(n.width,Math.max(A.width,s)),A.height+=c,A.children.push(t)}}function Xp(e){var t=e[HE].availableSpace,r=e.margin?e.margin.topInset+e.margin.bottomInset:0,A=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[HE].attempt?{width:t.width-A-e[HE].currentWidth,height:t.height-r-e[HE].prevHeight}:{width:t.width-A,height:t.height-r-e[HE].height};case"rl-row":case"row":return{width:e[HE].columnWidths.slice(e[HE].currentColumn).reduce((function(e,t){return e+t})),height:t.height-A};case"table":case"tb":return{width:t.width-A,height:t.height-r-e[HE].height};default:return t}}function Vp(e,t){var r;if(null===e[rd]()[HE].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;var A=e[ed](),n=(null===(r=A[HE])||void 0===r?void 0:r.attempt)||0,i=function(e){var t,r,A=""===e.w?NaN:e.w,n=""===e.h?NaN:e.h,i=0,a=0;switch(e.anchorType||""){case"bottomCenter":i=A/2,a=n;break;case"bottomLeft":i=0,a=n;break;case"bottomRight":i=A,a=n;break;case"middleCenter":i=A/2,a=n/2;break;case"middleLeft":i=0,a=n/2;break;case"middleRight":i=A,a=n/2;break;case"topCenter":i=A/2,a=0;break;case"topRight":i=A,a=0}switch(e.rotate||0){case 0:t=-i,r=-a;break;case 90:t=-a,r=i;var o=[n,-A];A=o[0],n=o[1];break;case 180:t=i,r=a;var s=[-A,-n];A=s[0],n=s[1];break;case 270:t=a,r=-i;var c=[-n,A];A=c[0],n=c[1]}return[e.x+t+Math.min(0,A),e.y+r+Math.min(0,n),Math.abs(A),Math.abs(n)]}(e),a=Tp(i,4),o=a[1],s=a[2],c=a[3];switch(A.layout){case"lr-tb":case"rl-tb":return 0===n?e[rd]()[HE].noLayoutFailure?""!==e.w?Math.round(s-t.width)<=2:t.width>2:!(""!==e.h&&Math.round(c-t.height)>2)&&(""!==e.w?Math.round(s-t.width)<=2||0===A[HE].numberInLine&&t.height>2:t.width>2):!!e[rd]()[HE].noLayoutFailure||!(""!==e.h&&Math.round(c-t.height)>2)&&(""===e.w||Math.round(s-t.width)<=2||!A[Id]())&&t.height>2;case"table":case"tb":return!!e[rd]()[HE].noLayoutFailure||(""===e.h||e[hd]()?(""===e.w||Math.round(s-t.width)<=2||!A[Id]())&&t.height>2:Math.round(c-t.height)<=2);case"position":return!!e[rd]()[HE].noLayoutFailure||""===e.h||Math.round(c+o-t.height)<=2||c+o>e[rd]()[HE].currentContentArea.h;case"rl-row":case"row":return!!e[rd]()[HE].noLayoutFailure||""===e.h||Math.round(c-t.height)<=2;default:return!0}}function zp(e,t,r,A){var n=$p(ov(1&A?e.prototype:e),t,r);return 2&A&&"function"==typeof n?function(e){return n.apply(r,e)}:n}function $p(){return $p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var A=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=ov(e)););return e}(e,t);if(A){var n=Object.getOwnPropertyDescriptor(A,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},$p.apply(null,arguments)}function ev(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||hv(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 tv(e,t){for(var r=0;r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}var uv=gv().mark(vv);function lv(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=hv(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function hv(e,t){if(e){if("string"==typeof e)return Iv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Iv(e,t):void 0}}function Iv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r180?1:0,c=50*(1+Math.cos(a)),g=50*(1-Math.sin(a)),u=50*(1+Math.cos(a+o)),l=50*(1-Math.sin(a+o));t={name:"path",attributes:{xmlns:Cv,d:"M ".concat(c," ").concat(g," A 50 50 0 ").concat(s," 0 ").concat(u," ").concat(l),vectorEffect:"non-scaling-stroke",style:n}},Object.assign(i,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}var h={name:"svg",children:[t],attributes:i};return yv(this[td]()[td]())?Ay.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[h]}):(h.attributes.style.position="absolute",Ay.success(h))}}])}(),Lv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"area",!0])).colSpan=Xd({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),r.id=e.id||"",r.name=e.name||"",r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.x=ey(e.x,"0pt"),r.y=ey(e.y,"0pt"),r.desc=null,r.extras=null,r.area=new Cp,r.draw=new Cp,r.exObject=new Cp,r.exclGroup=new Cp,r.field=new Cp,r.subform=new Cp,r.subformSet=new Cp,r}return sv(t,fp),rv(t,[{key:zE,value:gv().mark((function e(){return gv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(vv(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:fd,value:function(){return!0}},{key:cd,value:function(){return!0}},{key:DE,value:function(e,t){var r=ev(t,4),A=r[0],n=r[1],i=r[2],a=r[3];this[HE].width=Math.max(this[HE].width,A+i),this[HE].height=Math.max(this[HE].height,n+a),this[HE].children.push(e)}},{key:TE,value:function(){return this[HE].availableSpace}},{key:Md,value:function(e){var t=Lp(this,"position"),r={style:t,id:this[Yd],class:["xfaArea"]};Hp(this)&&r.class.push("xfaPrintOnly"),this.name&&(r.xfaName=this.name);var A=[];this[HE]={children:A,width:0,height:0,availableSpace:e};var n=this[FE]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!n.success)return n.isBreak()?n:(delete this[HE],Ay.FAILURE);t.width=kp(this[HE].width),t.height=kp(this[HE].height);var i={name:"div",attributes:r,children:A},a=[this.x,this.y,this[HE].width,this[HE].height];return delete this[HE],Ay.success(i,a)}}])}(),Uv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"assist",!0])).id=e.id||"",r.role=e.role||"",r.use=e.use||"",r.usehref=e.usehref||"",r.speak=null,r.toolTip=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(){var e;return(null===(e=this.toolTip)||void 0===e?void 0:e[UE])||null}}])}(),Mv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"barcode",!0])).charEncoding=zd({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:function(e){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\\d{2}/)}}),r.checksum=$d(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),r.dataColumnCount=Xd({data:e.dataColumnCount,defaultValue:-1,validate:function(e){return e>=0}}),r.dataLength=Xd({data:e.dataLength,defaultValue:-1,validate:function(e){return e>=0}}),r.dataPrep=$d(e.dataPrep,["none","flateCompress"]),r.dataRowCount=Xd({data:e.dataRowCount,defaultValue:-1,validate:function(e){return e>=0}}),r.endChar=e.endChar||"",r.errorCorrectionLevel=Xd({data:e.errorCorrectionLevel,defaultValue:-1,validate:function(e){return e>=0&&e<=8}}),r.id=e.id||"",r.moduleHeight=ey(e.moduleHeight,"5mm"),r.moduleWidth=ey(e.moduleWidth,"0.25mm"),r.printCheckDigit=Xd({data:e.printCheckDigit,defaultValue:0,validate:function(e){return 1===e}}),r.rowColumnRatio=ty(e.rowColumnRatio),r.startChar=e.startChar||"",r.textLocation=$d(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),r.truncate=Xd({data:e.truncate,defaultValue:0,validate:function(e){return 1===e}}),r.type=$d(e.type?e.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),r.upsMode=$d(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),r.use=e.use||"",r.usehref=e.usehref||"",r.wideNarrowRatio=ty(e.wideNarrowRatio),r.encrypt=null,r.extras=null,r}return sv(t,fp),rv(t)}(),Jv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"bind",!0])).match=$d(e.match,["once","dataRef","global","none"]),r.ref=e.ref||"",r.picture=null,r}return sv(t,fp),rv(t)}(),Hv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"bindItems"])).connection=e.connection||"",r.labelRef=e.labelRef||"",r.ref=e.ref||"",r.valueRef=e.valueRef||"",r}return sv(t,fp),rv(t)}(),Yv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"bookend"])).id=e.id||"",r.leader=e.leader||"",r.trailer=e.trailer||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),Pv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"boolean"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,vp),rv(t,[{key:Md,value:function(e){return Dv(1===this[UE]?"1":"0")}}])}(),Ov=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"border",!0])).break=$d(e.break,["close","open"]),r.hand=$d(e.hand,["even","left","right"]),r.id=e.id||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.corner=new Cp(4),r.edge=new Cp(4),r.extras=null,r.fill=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:_E,value:function(){if(!this[HE]){var e=this.edge.children.slice();if(e.length<4)for(var t=e.at(-1)||new hm({}),r=e.length;r<4;r++)e.push(t);var A=e.map((function(e){return e.thickness})),n=[0,0,0,0];this.margin&&(n[0]=this.margin.topInset,n[1]=this.margin.rightInset,n[2]=this.margin.bottomInset,n[3]=this.margin.leftInset),this[HE]={widths:A,insets:n,edges:e}}return this[HE]}},{key:Hd,value:function(){var e,t=this[_E]().edges.map((function(e){var t=e[Hd]();return t.color||(t.color="#000000"),t})),r=Object.create(null);if(this.margin&&Object.assign(r,this.margin[Hd]()),"visible"===(null===(e=this.fill)||void 0===e?void 0:e.presence)&&Object.assign(r,this.fill[Hd]()),this.corner.children.some((function(e){return 0!==e.radius}))){var A=this.corner.children.map((function(e){return e[Hd]()}));if(2===A.length||3===A.length)for(var n=A.at(-1),i=A.length;i<4;i++)A.push(n);r.borderRadius=A.map((function(e){return e.radius})).join(" ")}switch(this.presence){case"invisible":case"hidden":r.borderStyle="";break;case"inactive":r.borderStyle="none";break;default:r.borderStyle=t.map((function(e){return e.style})).join(" ")}return r.borderWidth=t.map((function(e){return e.width})).join(" "),r.borderColor=t.map((function(e){return e.color})).join(" "),r}}])}(),Kv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"break",!0])).after=$d(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),r.afterTarget=e.afterTarget||"",r.before=$d(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),r.beforeTarget=e.beforeTarget||"",r.bookendLeader=e.bookendLeader||"",r.bookendTrailer=e.bookendTrailer||"",r.id=e.id||"",r.overflowLeader=e.overflowLeader||"",r.overflowTarget=e.overflowTarget||"",r.overflowTrailer=e.overflowTrailer||"",r.startNew=Xd({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t)}(),Tv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"breakAfter",!0])).id=e.id||"",r.leader=e.leader||"",r.startNew=Xd({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),r.target=e.target||"",r.targetType=$d(e.targetType,["auto","contentArea","pageArea"]),r.trailer=e.trailer||"",r.use=e.use||"",r.usehref=e.usehref||"",r.script=null,r}return sv(t,fp),rv(t)}(),qv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"breakBefore",!0])).id=e.id||"",r.leader=e.leader||"",r.startNew=Xd({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),r.target=e.target||"",r.targetType=$d(e.targetType,["auto","contentArea","pageArea"]),r.trailer=e.trailer||"",r.use=e.use||"",r.usehref=e.usehref||"",r.script=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){return this[HE]={},Ay.FAILURE}}])}(),jv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"button",!0])).highlight=$d(e.highlight,["inverted","none","outline","push"]),r.id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t,r=this[td]()[td](),A={name:"button",attributes:{id:this[Yd],class:["xfaButton"],style:{}},children:[]},n=lv(r.event.children);try{for(n.s();!(t=n.n()).done;){var i=t.value;if("click"===i.activity&&i.script){var a=Kt(i.script[UE]);if(a){var o=Kp(a.url);o&&A.children.push({name:"a",attributes:{id:"link"+this[Yd],href:o,newWindow:a.newWindow,class:["xfaLink"],style:{}},children:[]})}}}}catch(e){n.e(e)}finally{n.f()}return Ay.success(A)}}])}(),Wv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"calculate",!0])).id=e.id||"",r.override=$d(e.override,["disabled","error","ignore","warning"]),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.message=null,r.script=null,r}return sv(t,fp),rv(t)}(),Zv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"caption",!0])).id=e.id||"",r.placement=$d(e.placement,["left","bottom","inline","right","top"]),r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.reserve=Math.ceil(ey(e.reserve)),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.font=null,r.margin=null,r.para=null,r.value=null,r}return sv(t,fp),rv(t,[{key:Gd,value:function(e){pv(this,e)}},{key:_E,value:function(e){if(!this[HE]){var t=e.width,r=e.height;switch(this.placement){case"left":case"right":case"inline":t=this.reserve<=0?t:this.reserve;break;case"top":case"bottom":r=this.reserve<=0?r:this.reserve}this[HE]=xp(this,{width:t,height:r})}return this[HE]}},{key:Md,value:function(e){if(!this.value)return Ay.EMPTY;this[bd]();var t=this.value[Md](e).html;if(!t)return this[wd](),Ay.EMPTY;var r=this.reserve;if(this.reserve<=0){var A=this[_E](e),n=A.w,i=A.h;switch(this.placement){case"left":case"right":case"inline":this.reserve=n;break;case"top":case"bottom":this.reserve=i}}var a=[];"string"==typeof t?a.push({name:"#text",value:t}):a.push(t);var o=Lp(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(o.width=kp(this.reserve));break;case"top":case"bottom":this.reserve>0&&(o.height=kp(this.reserve))}return Pp(this,null,t),this[wd](),this.reserve=r,Ay.success({name:"div",attributes:{style:o,class:["xfaCaption"]},children:a})}}])}(),_v=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"certificate"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),Xv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"certificates",!0])).credentialServerPolicy=$d(e.credentialServerPolicy,["optional","required"]),r.id=e.id||"",r.url=e.url||"",r.urlPolicy=e.urlPolicy||"",r.use=e.use||"",r.usehref=e.usehref||"",r.encryption=null,r.issuers=null,r.keyUsage=null,r.oids=null,r.signing=null,r.subjectDNs=null,r}return sv(t,fp),rv(t)}(),Vv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"checkButton",!0])).id=e.id||"",r.mark=$d(e.mark,["default","check","circle","cross","diamond","square","star"]),r.shape=$d(e.shape,["square","round"]),r.size=ey(e.size,"10pt"),r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t,r,A,n,i=Lp("margin"),a=kp(this.size);i.width=i.height=a;var o,s,c,g=this[td]()[td](),u=g.items.children.length&&g.items.children[0][Md]().html||[],l={on:(void 0!==u[0]?u[0]:"on").toString(),off:(void 0!==u[1]?u[1]:"off").toString()},h=((null===(t=g.value)||void 0===t?void 0:t[Ld]())||"off")===l.on||void 0,I=g[ed](),f=g[Yd];I instanceof mm?(n=I[Yd],r="radio",A="xfaRadio",o=(null===(s=I[ME])||void 0===s?void 0:s[Yd])||I[Yd]):(r="checkbox",A="xfaCheckbox",o=(null===(c=g[ME])||void 0===c?void 0:c[Yd])||g[Yd]);var C={name:"input",attributes:{class:[A],style:i,fieldId:f,dataId:o,type:r,checked:h,xfaOn:l.on,xfaOff:l.off,"aria-label":kv(g),"aria-required":!1}};return n&&(C.attributes.name=n),mv(g)&&(C.attributes["aria-required"]=!0,C.attributes.required=!0),Ay.success({name:"label",attributes:{class:["xfaLabel"]},children:[C]})}}])}(),zv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"choiceList",!0])).commitOn=$d(e.commitOn,["select","exit"]),r.id=e.id||"",r.open=$d(e.open,["userControl","always","multiSelect","onEntry"]),r.textEntry=Xd({data:e.textEntry,defaultValue:0,validate:function(e){return 1===e}}),r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t,r,A=Lp(this,"border","margin"),n=this[td]()[td](),i=(null===(t=n.font)||void 0===t?void 0:t.size)||10,a={fontSize:"calc(".concat(i,"px * var(--scale-factor))")},o=[];if(n.items.children.length>0){var s,c=n.items,g=0,u=0;2===c.children.length&&(u=1-(g=c.children[0].save));for(var l=c.children[g][Md]().html,h=c.children[u][Md]().html,I=!1,f=(null===(s=n.value)||void 0===s?void 0:s[Ld]())||"",C=0,B=l.length;C1&&void 0!==arguments[1]?arguments[1]:[0,0,0],3),r=t[0],A=t[1],n=t[2];if(!e)return{r,g:A,b:n};var i=e.trim().split(/\\s*,\\s*/).map((function(e){return Math.min(Math.max(0,parseInt(e.trim(),10)),255)})).map((function(e){return isNaN(e)?0:e}));if(i.length<3)return{r,g:A,b:n};var a=qd(i,3);return{r:r=a[0],g:A=a[1],b:n=a[2]}}(e.value):"",r.extras=null,r}return sv(t,fp),rv(t,[{key:nd,value:function(){return!1}},{key:Hd,value:function(){return this.value?ge.makeHexColor(this.value.r,this.value.g,this.value.b):null}}])}(),em=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"comb"])).id=e.id||"",r.numberOfCells=Xd({data:e.numberOfCells,defaultValue:0,validate:function(e){return e>=0}}),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),tm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"connect",!0])).connection=e.connection||"",r.id=e.id||"",r.ref=e.ref||"",r.usage=$d(e.usage,["exportAndImport","exportOnly","importOnly"]),r.use=e.use||"",r.usehref=e.usehref||"",r.picture=null,r}return sv(t,fp),rv(t)}(),rm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"contentArea",!0])).h=ey(e.h),r.id=e.id||"",r.name=e.name||"",r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.w=ey(e.w),r.x=ey(e.x,"0pt"),r.y=ey(e.y,"0pt"),r.desc=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t={left:kp(this.x),top:kp(this.y),width:kp(this.w),height:kp(this.h)},r=["xfaContentarea"];return Hp(this)&&r.push("xfaPrintOnly"),Ay.success({name:"div",children:[],attributes:{style:t,class:r,id:this[Yd]}})}}])}(),Am=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"corner",!0])).id=e.id||"",r.inverted=Xd({data:e.inverted,defaultValue:0,validate:function(e){return 1===e}}),r.join=$d(e.join,["square","round"]),r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.radius=ey(e.radius),r.stroke=$d(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),r.thickness=ey(e.thickness,"0.5pt"),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(){var e=Lp(this,"visibility");return e.radius=kp("square"===this.join?0:this.radius),e}}])}(),nm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"date"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){var e=this[UE].trim();this[UE]=e?new Date(e):null}},{key:Md,value:function(e){return Dv(this[UE]?this[UE].toString():"")}}])}(),im=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"dateTime"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){var e=this[UE].trim();this[UE]=e?new Date(e):null}},{key:Md,value:function(e){return Dv(this[UE]?this[UE].toString():"")}}])}(),am=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"dateTimeEdit",!0])).hScrollPolicy=$d(e.hScrollPolicy,["auto","off","on"]),r.id=e.id||"",r.picker=$d(e.picker,["host","none"]),r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.comb=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t,r=Lp(this,"border","font","margin"),A=this[td]()[td](),n={name:"input",attributes:{type:"text",fieldId:A[Yd],dataId:(null===(t=A[ME])||void 0===t?void 0:t[Yd])||A[Yd],class:["xfaTextfield"],style:r,"aria-label":kv(A),"aria-required":!1}};return mv(A)&&(n.attributes["aria-required"]=!0,n.attributes.required=!0),Ay.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}])}(),om=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"decimal"])).fracDigits=Xd({data:e.fracDigits,defaultValue:2,validate:function(e){return!0}}),r.id=e.id||"",r.leadDigits=Xd({data:e.leadDigits,defaultValue:-1,validate:function(e){return!0}}),r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){var e=parseFloat(this[UE].trim());this[UE]=isNaN(e)?null:e}},{key:Md,value:function(e){return Dv(null!==this[UE]?this[UE].toString():"")}}])}(),sm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"defaultUi",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t)}(),cm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"desc",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.boolean=new Cp,r.date=new Cp,r.dateTime=new Cp,r.decimal=new Cp,r.exData=new Cp,r.float=new Cp,r.image=new Cp,r.integer=new Cp,r.text=new Cp,r.time=new Cp,r}return sv(t,fp),rv(t)}(),gm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,dp),rv(t)}(),um=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"digestMethods",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.digestMethod=new Cp,r}return sv(t,fp),rv(t)}(),lm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"draw",!0])).anchorType=$d(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),r.colSpan=Xd({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),r.h=e.h?ey(e.h):"",r.hAlign=$d(e.hAlign,["left","center","justify","justifyAll","radix","right"]),r.id=e.id||"",r.locale=e.locale||"",r.maxH=ey(e.maxH,"0pt"),r.maxW=ey(e.maxW,"0pt"),r.minH=ey(e.minH,"0pt"),r.minW=ey(e.minW,"0pt"),r.name=e.name||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.relevant=ry(e.relevant),r.rotate=Xd({data:e.rotate,defaultValue:0,validate:function(e){return e%90==0}}),r.use=e.use||"",r.usehref=e.usehref||"",r.w=e.w?ey(e.w):"",r.x=ey(e.x,"0pt"),r.y=ey(e.y,"0pt"),r.assist=null,r.border=null,r.caption=null,r.desc=null,r.extras=null,r.font=null,r.keep=null,r.margin=null,r.para=null,r.traversal=null,r.ui=null,r.value=null,r.setProperty=new Cp,r}return sv(t,fp),rv(t,[{key:Gd,value:function(e){pv(this,e)}},{key:Md,value:function(e){if(wv(this),"hidden"===this.presence||"inactive"===this.presence)return Ay.EMPTY;Gp(this),this[bd]();var t=this.w,r=this.h,A=xp(this,e),n=A.w,i=A.h,a=A.isBroken;if(n&&""===this.w){if(a&&this[ed]()[Id]())return this[wd](),Ay.FAILURE;this.w=n}if(i&&""===this.h&&(this.h=i),Sv(this),!Vp(this,e))return this.w=t,this.h=r,this[wd](),Ay.FAILURE;Fv(this);var o=Lp(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");Sp(this,o),o.margin&&(o.padding=o.margin,delete o.margin);var s=["xfaDraw"];this.font&&s.push("xfaFont"),Hp(this)&&s.push("xfaPrintOnly");var c={style:o,id:this[Yd],class:s};this.name&&(c.xfaName=this.name);var g={name:"div",attributes:c,children:[]};bv(this,c);var u=Rp(this,g,e),l=this.value?this.value[Md](e).html:null;return null===l?(this.w=t,this.h=r,this[wd](),Ay.success(Up(this,g),u)):(g.children.push(l),Pp(this,o,l),this.w=t,this.h=r,this[wd](),Ay.success(Up(this,g),u))}}])}(),hm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"edge",!0])).cap=$d(e.cap,["square","butt","round"]),r.id=e.id||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.stroke=$d(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),r.thickness=ey(e.thickness,"0.5pt"),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(){var e=Lp(this,"visibility");if(Object.assign(e,{linecap:this.cap,width:kp(this.thickness),color:this.color?this.color[Hd]():"#000000",style:""}),"visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset"}return e}}])}(),Im=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,dp),rv(t)}(),fm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encodings",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.encoding=new Cp,r}return sv(t,fp),rv(t)}(),Cm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encrypt",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.certificate=null,r}return sv(t,fp),rv(t)}(),Bm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encryptData",!0])).id=e.id||"",r.operation=$d(e.operation,["encrypt","decrypt"]),r.target=e.target||"",r.use=e.use||"",r.usehref=e.usehref||"",r.filter=null,r.manifest=null,r}return sv(t,fp),rv(t)}(),Qm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encryption",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.certificate=new Cp,r}return sv(t,fp),rv(t)}(),Em=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,dp),rv(t)}(),dm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encryptionMethods",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.encryptionMethod=new Cp,r}return sv(t,fp),rv(t)}(),ym=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"event",!0])).activity=$d(e.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),r.id=e.id||"",r.listen=$d(e.listen,["refOnly","refAndDescendents"]),r.name=e.name||"",r.ref=e.ref||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.encryptData=null,r.execute=null,r.script=null,r.signData=null,r.submit=null,r}return sv(t,fp),rv(t)}(),pm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"exData"])).contentType=e.contentType||"",r.href=e.href||"",r.id=e.id||"",r.maxLength=Xd({data:e.maxLength,defaultValue:-1,validate:function(e){return e>=-1}}),r.name=e.name||"",r.rid=e.rid||"",r.transferEncoding=$d(e.transferEncoding,["none","base64","package"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:sd,value:function(){return"text/html"===this.contentType}},{key:yd,value:function(e){return("text/html"===this.contentType&&e[Qd]===Od.xhtml.id||"text/xml"===this.contentType)&&(this[UE]=e,!0)}},{key:Md,value:function(e){return"text/html"===this.contentType&&this[UE]?this[UE][Md](e):Ay.EMPTY}}])}(),vm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"exObject",!0])).archive=e.archive||"",r.classId=e.classId||"",r.codeBase=e.codeBase||"",r.codeType=e.codeType||"",r.id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.boolean=new Cp,r.date=new Cp,r.dateTime=new Cp,r.decimal=new Cp,r.exData=new Cp,r.exObject=new Cp,r.float=new Cp,r.image=new Cp,r.integer=new Cp,r.text=new Cp,r.time=new Cp,r}return sv(t,fp),rv(t)}(),mm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"exclGroup",!0])).access=$d(e.access,["open","nonInteractive","protected","readOnly"]),r.accessKey=e.accessKey||"",r.anchorType=$d(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),r.colSpan=Xd({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),r.h=e.h?ey(e.h):"",r.hAlign=$d(e.hAlign,["left","center","justify","justifyAll","radix","right"]),r.id=e.id||"",r.layout=$d(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),r.maxH=ey(e.maxH,"0pt"),r.maxW=ey(e.maxW,"0pt"),r.minH=ey(e.minH,"0pt"),r.minW=ey(e.minW,"0pt"),r.name=e.name||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.w=e.w?ey(e.w):"",r.x=ey(e.x,"0pt"),r.y=ey(e.y,"0pt"),r.assist=null,r.bind=null,r.border=null,r.calculate=null,r.caption=null,r.desc=null,r.extras=null,r.margin=null,r.para=null,r.traversal=null,r.validate=null,r.connect=new Cp,r.event=new Cp,r.field=new Cp,r.setProperty=new Cp,r}return sv(t,fp),rv(t,[{key:cd,value:function(){return!0}},{key:nd,value:function(){return!0}},{key:Gd,value:function(e){var t,r=lv(this.field.children);try{for(r.s();!(t=r.n()).done;){var A=t.value;if(!A.value){var n=new Uw({});A[SE](n),A.value=n}A.value[Gd](e)}}catch(e){r.e(e)}finally{r.f()}}},{key:Id,value:function(){return this.layout.endsWith("-tb")&&0===this[HE].attempt&&this[HE].numberInLine>0||this[td]()[Id]()}},{key:hd,value:function(){var e,t=this[ed]();return!!t[hd]()&&(void 0!==this[HE]._isSplittable?this[HE]._isSplittable:"position"===this.layout||this.layout.includes("row")?(this[HE]._isSplittable=!1,!1):!(null!==(e=t.layout)&&void 0!==e&&e.endsWith("-tb")&&0!==t[HE].numberInLine||(this[HE]._isSplittable=!0,0)))}},{key:PE,value:function(){return Zp(this)}},{key:DE,value:function(e,t){_p(this,e,t)}},{key:TE,value:function(){return Xp(this)}},{key:Md,value:function(e){if(wv(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return Ay.EMPTY;Gp(this);var t=[],r={id:this[Yd],class:[]};Jp(this,r.class),this[HE]||(this[HE]=Object.create(null)),Object.assign(this[HE],{children:t,attributes:r,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});var A=this[hd]();if(A||Sv(this),!Vp(this,e))return Ay.FAILURE;var n=new Set(["field"]);if(this.layout.includes("row")){var i=this[ed]().columnWidths;Array.isArray(i)&&i.length>0&&(this[HE].columnWidths=i,this[HE].currentColumn=0)}var a=Lp(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),o=["xfaExclgroup"],s=Np(this);s&&o.push(s),Hp(this)&&o.push("xfaPrintOnly"),r.style=a,r.class=o,this.name&&(r.xfaName=this.name),this[bd]();for(var c="lr-tb"===this.layout||"rl-tb"===this.layout,g=c?2:1;this[HE].attempt=1||-1===e}}),r.h=e.h?ey(e.h):"",r.hAlign=$d(e.hAlign,["left","center","justify","justifyAll","radix","right"]),r.id=e.id||"",r.locale=e.locale||"",r.maxH=ey(e.maxH,"0pt"),r.maxW=ey(e.maxW,"0pt"),r.minH=ey(e.minH,"0pt"),r.minW=ey(e.minW,"0pt"),r.name=e.name||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.relevant=ry(e.relevant),r.rotate=Xd({data:e.rotate,defaultValue:0,validate:function(e){return e%90==0}}),r.use=e.use||"",r.usehref=e.usehref||"",r.w=e.w?ey(e.w):"",r.x=ey(e.x,"0pt"),r.y=ey(e.y,"0pt"),r.assist=null,r.bind=null,r.border=null,r.calculate=null,r.caption=null,r.desc=null,r.extras=null,r.font=null,r.format=null,r.items=new Cp(2),r.keep=null,r.margin=null,r.para=null,r.traversal=null,r.ui=null,r.validate=null,r.value=null,r.bindItems=new Cp,r.connect=new Cp,r.event=new Cp,r.setProperty=new Cp,r}return sv(t,fp),rv(t,[{key:cd,value:function(){return!0}},{key:Gd,value:function(e){pv(this,e)}},{key:Md,value:function(e){var t;if(wv(this),!this.ui){var r;switch(this.ui=new Nw({}),this.ui[Ad]=this[Ad],this[SE](this.ui),this.items.children.length){case 0:r=new Dw({}),this.ui.textEdit=r;break;case 1:r=new Vv({}),this.ui.checkButton=r;break;case 2:r=new zv({}),this.ui.choiceList=r}this.ui[SE](r)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return Ay.EMPTY;this.caption&&delete this.caption[HE],this[bd]();var A=this.caption?this.caption[Md](e).html:null,n=this.w,i=this.h,a=0,o=0;this.margin&&(a=this.margin.leftInset+this.margin.rightInset,o=this.margin.topInset+this.margin.bottomInset);var s=null;if(""===this.w||""===this.h){var c=null,g=null,u=0,l=0;if(this.ui.checkButton)u=l=this.ui.checkButton.size;else{var h=xp(this,e),I=h.w,f=h.h;null!==I?(u=I,l=f):l=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;if(e){var A=_d(e.typeface),n=e[Ad].fontFinder.find(A);r=uy(e,n)}if(!r)return{lineHeight:12,lineGap:2,lineNoGap:10};var i=e.size||10,a=r.lineHeight?Math.max(t?0:1.2,r.lineHeight):1.2,o=void 0===r.lineGap?.2:r.lineGap;return{lineHeight:a*i,lineGap:o*i,lineNoGap:Math.max(1,a-o)*i}}(this.font,!0).lineNoGap}if(u+=(s=dv(this.ui[_E]())).w,l+=s.h,this.caption){var C=this.caption[_E](e),B=C.w,Q=C.h;if(C.isBroken&&this[ed]()[Id]())return this[wd](),Ay.FAILURE;switch(c=B,g=Q,this.caption.placement){case"left":case"right":case"inline":c+=u;break;case"top":case"bottom":g+=l}}else c=u,g=l;c&&""===this.w&&(c+=a,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1=1&&e<=5}}),r.appearanceFilter=null,r.certificates=null,r.digestMethods=null,r.encodings=null,r.encryptionMethods=null,r.handler=null,r.lockDocument=null,r.mdp=null,r.reasons=null,r.timeStamp=null,r}return sv(t,fp),rv(t)}(),Fm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"float"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){var e=parseFloat(this[UE].trim());this[UE]=isNaN(e)?null:e}},{key:Md,value:function(e){return Dv(null!==this[UE]?this[UE].toString():"")}}])}(),xm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"font",!0])).baselineShift=ey(e.baselineShift),r.fontHorizontalScale=Vd({data:e.fontHorizontalScale,defaultValue:100,validate:function(e){return e>=0}}),r.fontVerticalScale=Vd({data:e.fontVerticalScale,defaultValue:100,validate:function(e){return e>=0}}),r.id=e.id||"",r.kerningMode=$d(e.kerningMode,["none","pair"]),r.letterSpacing=ey(e.letterSpacing,"0"),r.lineThrough=Xd({data:e.lineThrough,defaultValue:0,validate:function(e){return 1===e||2===e}}),r.lineThroughPeriod=$d(e.lineThroughPeriod,["all","word"]),r.overline=Xd({data:e.overline,defaultValue:0,validate:function(e){return 1===e||2===e}}),r.overlinePeriod=$d(e.overlinePeriod,["all","word"]),r.posture=$d(e.posture,["normal","italic"]),r.size=ey(e.size,"10pt"),r.typeface=e.typeface||"Courier",r.underline=Xd({data:e.underline,defaultValue:0,validate:function(e){return 1===e||2===e}}),r.underlinePeriod=$d(e.underlinePeriod,["all","word"]),r.use=e.use||"",r.usehref=e.usehref||"",r.weight=$d(e.weight,["normal","bold"]),r.extras=null,r.fill=null,r}return sv(t,fp),rv(t,[{key:xE,value:function(e){zp(t,xE,this,3)([e]),this[Ad].usedTypefaces.add(this.typeface)}},{key:Hd,value:function(){var e=Lp(this,"fill"),t=e.color;return t&&("#000000"===t?delete e.color:t.startsWith("#")||(e.background=t,e.backgroundClip="text",e.color="transparent")),this.baselineShift&&(e.verticalAlign=kp(this.baselineShift)),e.fontKerning="none"===this.kerningMode?"none":"normal",e.letterSpacing=kp(this.letterSpacing),0!==this.lineThrough&&(e.textDecoration="line-through",2===this.lineThrough&&(e.textDecorationStyle="double")),0!==this.overline&&(e.textDecoration="overline",2===this.overline&&(e.textDecorationStyle="double")),e.fontStyle=this.posture,e.fontSize=kp(.99*this.size),Op(this,this,this[Ad].fontFinder,e),0!==this.underline&&(e.textDecoration="underline",2===this.underline&&(e.textDecorationStyle="double")),e.fontWeight=this.weight,e}}])}(),Rm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"format",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.picture=null,r}return sv(t,fp),rv(t)}(),Gm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"handler"])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),Nm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"hyphenation"])).excludeAllCaps=Xd({data:e.excludeAllCaps,defaultValue:0,validate:function(e){return 1===e}}),r.excludeInitialCap=Xd({data:e.excludeInitialCap,defaultValue:0,validate:function(e){return 1===e}}),r.hyphenate=Xd({data:e.hyphenate,defaultValue:0,validate:function(e){return 1===e}}),r.id=e.id||"",r.pushCharacterCount=Xd({data:e.pushCharacterCount,defaultValue:3,validate:function(e){return e>=0}}),r.remainCharacterCount=Xd({data:e.remainCharacterCount,defaultValue:3,validate:function(e){return e>=0}}),r.use=e.use||"",r.usehref=e.usehref||"",r.wordCharacterCount=Xd({data:e.wordCharacterCount,defaultValue:7,validate:function(e){return e>=0}}),r}return sv(t,fp),rv(t)}(),Lm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"image"])).aspect=$d(e.aspect,["fit","actual","height","none","width"]),r.contentType=e.contentType||"",r.href=e.href||"",r.id=e.id||"",r.name=e.name||"",r.transferEncoding=$d(e.transferEncoding,["base64","none","package"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t,[{key:Md,value:function(){if(this.contentType&&!Qv.has(this.contentType.toLowerCase()))return Ay.EMPTY;var e=this[Ad].images&&this[Ad].images.get(this.href);if(!e&&(this.href||!this[UE]))return Ay.EMPTY;if(e||"base64"!==this.transferEncoding||(e=ie(atob(this[UE]))),!e)return Ay.EMPTY;if(!this.contentType){for(var t=0,r=Ev;tn.length&&n.every((function(t,r){return t===e[r]}))){this.contentType=i;break}}if(!this.contentType)return Ay.EMPTY}var a,o=new Blob([e],{type:this.contentType});switch(this.aspect){case"fit":case"actual":break;case"height":a={height:"100%",objectFit:"fill"};break;case"none":a={width:"100%",height:"100%",objectFit:"fill"};break;case"width":a={width:"100%",objectFit:"fill"}}var s=this[td]();return Ay.success({name:"img",attributes:{class:["xfaImage"],style:a,src:URL.createObjectURL(o),alt:s?kv(s[td]()):null}})}}])}(),Um=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"imageEdit",!0])).data=$d(e.data,["link","embed"]),r.id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){return"embed"===this.data?Ay.success({name:"div",children:[],attributes:{}}):Ay.EMPTY}}])}(),Mm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"integer"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){var e=parseInt(this[UE].trim(),10);this[UE]=isNaN(e)?null:e}},{key:Md,value:function(e){return Dv(null!==this[UE]?this[UE].toString():"")}}])}(),Jm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"issuers",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.certificate=new Cp,r}return sv(t,fp),rv(t)}(),Hm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"items",!0])).id=e.id||"",r.name=e.name||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.ref=e.ref||"",r.save=Xd({data:e.save,defaultValue:0,validate:function(e){return 1===e}}),r.use=e.use||"",r.usehref=e.usehref||"",r.boolean=new Cp,r.date=new Cp,r.dateTime=new Cp,r.decimal=new Cp,r.exData=new Cp,r.float=new Cp,r.image=new Cp,r.integer=new Cp,r.text=new Cp,r.time=new Cp,r}return sv(t,fp),rv(t,[{key:Md,value:function(){var e,t=[],r=lv(this[VE]());try{for(r.s();!(e=r.n()).done;){var A=e.value;t.push(A[Ld]())}}catch(e){r.e(e)}finally{r.f()}return Ay.success(t)}}])}(),Ym=function(e){function t(e){var r;nv(this,t),(r=iv(this,t,[fv,"keep",!0])).id=e.id||"";var A=["none","contentArea","pageArea"];return r.intact=$d(e.intact,A),r.next=$d(e.next,A),r.previous=$d(e.previous,A),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t)}(),Pm=function(e){function t(e){var r;nv(this,t);var A=["","yes","no"];return(r=iv(this,t,[fv,"keyUsage"])).crlSign=$d(e.crlSign,A),r.dataEncipherment=$d(e.dataEncipherment,A),r.decipherOnly=$d(e.decipherOnly,A),r.digitalSignature=$d(e.digitalSignature,A),r.encipherOnly=$d(e.encipherOnly,A),r.id=e.id||"",r.keyAgreement=$d(e.keyAgreement,A),r.keyCertSign=$d(e.keyCertSign,A),r.keyEncipherment=$d(e.keyEncipherment,A),r.nonRepudiation=$d(e.nonRepudiation,A),r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),Om=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"line",!0])).hand=$d(e.hand,["even","left","right"]),r.id=e.id||"",r.slope=$d(e.slope,["\\\\","/"]),r.use=e.use||"",r.usehref=e.usehref||"",r.edge=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(){var e,t,r,A,n=this[td]()[td](),i=this.edge||new hm({}),a=i[Hd](),o=Object.create(null),s="visible"===i.presence?i.thickness:0;o.strokeWidth=kp(s),o.stroke=a.color;var c="100%",g="100%";n.w<=s?(e="50%",t=0,r="50%",A="100%",c=o.strokeWidth):n.h<=s?(e=0,t="50%",r="100%",A="50%",g=o.strokeWidth):"\\\\"===this.slope?(e=0,t=0,r="100%",A="100%"):(e=0,t="100%",r="100%",A=0);var u={name:"svg",children:[{name:"line",attributes:{xmlns:Cv,x1:e,y1:t,x2:r,y2:A,style:o}}],attributes:{xmlns:Cv,width:c,height:g,style:{overflow:"visible"}}};return yv(n)?Ay.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[u]}):(u.attributes.style.position="absolute",Ay.success(u))}}])}(),Km=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"linear",!0])).id=e.id||"",r.type=$d(e.type,["toRight","toBottom","toLeft","toTop"]),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(e){e=e?e[Hd]():"#FFFFFF";var t=this.type.replace(/([RBLT])/," $1").toLowerCase(),r=this.color?this.color[Hd]():"#000000";return"linear-gradient(".concat(t,", ").concat(e,", ").concat(r,")")}}])}(),Tm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"lockDocument"])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){this[UE]=$d(this[UE],["auto","0","1"])}}])}(),qm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"manifest",!0])).action=$d(e.action,["include","all","exclude"]),r.id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.ref=new Cp,r}return sv(t,fp),rv(t)}(),jm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"margin",!0])).bottomInset=ey(e.bottomInset,"0"),r.id=e.id||"",r.leftInset=ey(e.leftInset,"0"),r.rightInset=ey(e.rightInset,"0"),r.topInset=ey(e.topInset,"0"),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(){return{margin:kp(this.topInset)+" "+kp(this.rightInset)+" "+kp(this.bottomInset)+" "+kp(this.leftInset)}}}])}(),Wm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"mdp"])).id=e.id||"",r.permissions=Xd({data:e.permissions,defaultValue:2,validate:function(e){return 1===e||3===e}}),r.signatureType=$d(e.signatureType,["filler","author"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),Zm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"medium"])).id=e.id||"",r.imagingBBox=function(e){var t=-1;if(!e)return{x:t,y:t,width:t,height:t};var r=e.trim().split(/\\s*,\\s*/).map((function(e){return ey(e,"-1")}));if(r.length<4||r[2]<0||r[3]<0)return{x:t,y:t,width:t,height:t};var A=qd(r,4);return{x:A[0],y:A[1],width:A[2],height:A[3]}}(e.imagingBBox),r.long=ey(e.long),r.orientation=$d(e.orientation,["portrait","landscape"]),r.short=ey(e.short),r.stock=e.stock||"",r.trayIn=$d(e.trayIn,["auto","delegate","pageFront"]),r.trayOut=$d(e.trayOut,["auto","delegate"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),_m=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"message",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.text=new Cp,r}return sv(t,fp),rv(t)}(),Xm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"numericEdit",!0])).hScrollPolicy=$d(e.hScrollPolicy,["auto","off","on"]),r.id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.comb=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t,r=Lp(this,"border","font","margin"),A=this[td]()[td](),n={name:"input",attributes:{type:"text",fieldId:A[Yd],dataId:(null===(t=A[ME])||void 0===t?void 0:t[Yd])||A[Yd],class:["xfaTextfield"],style:r,"aria-label":kv(A),"aria-required":!1}};return mv(A)&&(n.attributes["aria-required"]=!0,n.attributes.required=!0),Ay.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}])}(),Vm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"occur",!0])).id=e.id||"",r.initial=""!==e.initial?Xd({data:e.initial,defaultValue:"",validate:function(e){return!0}}):"",r.max=""!==e.max?Xd({data:e.max,defaultValue:1,validate:function(e){return!0}}):"",r.min=""!==e.min?Xd({data:e.min,defaultValue:1,validate:function(e){return!0}}):"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t,[{key:xE,value:function(){var e=this[td](),t=this.min;""===this.min&&(this.min=e instanceof tw||e instanceof rw?0:1),""===this.max&&(this.max=""===t?e instanceof tw||e instanceof rw?-1:1:this.min),-1!==this.max&&this.max=0}}),r.preserve=e.preserve||"",r.radixOffset=e.radixOffset?ey(e.radixOffset,"0pt"):"",r.spaceAbove=e.spaceAbove?ey(e.spaceAbove,"0pt"):"",r.spaceBelow=e.spaceBelow?ey(e.spaceBelow,"0pt"):"",r.tabDefault=e.tabDefault?ey(r.tabDefault):"",r.tabStops=(e.tabStops||"").trim().split(/\\s+/).map((function(e,t){return t%2==1?ey(e):e})),r.textIndent=e.textIndent?ey(e.textIndent,"0pt"):"",r.use=e.use||"",r.usehref=e.usehref||"",r.vAlign=$d(e.vAlign,["top","bottom","middle"]),r.widows=Xd({data:e.widows,defaultValue:0,validate:function(e){return e>=0}}),r.hyphenation=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(){var e=Lp(this,"hAlign");return""!==this.marginLeft&&(e.paddingLeft=kp(this.marginLeft)),""!==this.marginRight&&(e.paddingight=kp(this.marginRight)),""!==this.spaceAbove&&(e.paddingTop=kp(this.spaceAbove)),""!==this.spaceBelow&&(e.paddingBottom=kp(this.spaceBelow)),""!==this.textIndent&&(e.textIndent=kp(this.textIndent),Mp(e)),this.lineHeight>0&&(e.lineHeight=kp(this.lineHeight)),""!==this.tabDefault&&(e.tabSize=kp(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[Hd]()),e}}])}(),nw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"passwordEdit",!0])).hScrollPolicy=$d(e.hScrollPolicy,["auto","off","on"]),r.id=e.id||"",r.passwordChar=e.passwordChar||"*",r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t)}(),iw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"pattern",!0])).id=e.id||"",r.type=$d(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(e){e=e?e[Hd]():"#FFFFFF";var t=this.color?this.color[Hd]():"#000000",r="repeating-linear-gradient",A="".concat(e,",").concat(e," ").concat(5,"px,").concat(t," ").concat(5,"px,").concat(t," ").concat(10,"px");switch(this.type){case"crossHatch":return"".concat(r,"(to top,").concat(A,") ").concat(r,"(to right,").concat(A,")");case"crossDiagonal":return"".concat(r,"(45deg,").concat(A,") ").concat(r,"(-45deg,").concat(A,")");case"diagonalLeft":return"".concat(r,"(45deg,").concat(A,")");case"diagonalRight":return"".concat(r,"(-45deg,").concat(A,")");case"horizontal":return"".concat(r,"(to top,").concat(A,")");case"vertical":return"".concat(r,"(to right,").concat(A,")")}return""}}])}(),aw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"picture"])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),ow=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"proto",!0])).appearanceFilter=new Cp,r.arc=new Cp,r.area=new Cp,r.assist=new Cp,r.barcode=new Cp,r.bindItems=new Cp,r.bookend=new Cp,r.boolean=new Cp,r.border=new Cp,r.break=new Cp,r.breakAfter=new Cp,r.breakBefore=new Cp,r.button=new Cp,r.calculate=new Cp,r.caption=new Cp,r.certificate=new Cp,r.certificates=new Cp,r.checkButton=new Cp,r.choiceList=new Cp,r.color=new Cp,r.comb=new Cp,r.connect=new Cp,r.contentArea=new Cp,r.corner=new Cp,r.date=new Cp,r.dateTime=new Cp,r.dateTimeEdit=new Cp,r.decimal=new Cp,r.defaultUi=new Cp,r.desc=new Cp,r.digestMethod=new Cp,r.digestMethods=new Cp,r.draw=new Cp,r.edge=new Cp,r.encoding=new Cp,r.encodings=new Cp,r.encrypt=new Cp,r.encryptData=new Cp,r.encryption=new Cp,r.encryptionMethod=new Cp,r.encryptionMethods=new Cp,r.event=new Cp,r.exData=new Cp,r.exObject=new Cp,r.exclGroup=new Cp,r.execute=new Cp,r.extras=new Cp,r.field=new Cp,r.fill=new Cp,r.filter=new Cp,r.float=new Cp,r.font=new Cp,r.format=new Cp,r.handler=new Cp,r.hyphenation=new Cp,r.image=new Cp,r.imageEdit=new Cp,r.integer=new Cp,r.issuers=new Cp,r.items=new Cp,r.keep=new Cp,r.keyUsage=new Cp,r.line=new Cp,r.linear=new Cp,r.lockDocument=new Cp,r.manifest=new Cp,r.margin=new Cp,r.mdp=new Cp,r.medium=new Cp,r.message=new Cp,r.numericEdit=new Cp,r.occur=new Cp,r.oid=new Cp,r.oids=new Cp,r.overflow=new Cp,r.pageArea=new Cp,r.pageSet=new Cp,r.para=new Cp,r.passwordEdit=new Cp,r.pattern=new Cp,r.picture=new Cp,r.radial=new Cp,r.reason=new Cp,r.reasons=new Cp,r.rectangle=new Cp,r.ref=new Cp,r.script=new Cp,r.setProperty=new Cp,r.signData=new Cp,r.signature=new Cp,r.signing=new Cp,r.solid=new Cp,r.speak=new Cp,r.stipple=new Cp,r.subform=new Cp,r.subformSet=new Cp,r.subjectDN=new Cp,r.subjectDNs=new Cp,r.submit=new Cp,r.text=new Cp,r.textEdit=new Cp,r.time=new Cp,r.timeStamp=new Cp,r.toolTip=new Cp,r.traversal=new Cp,r.traverse=new Cp,r.ui=new Cp,r.validate=new Cp,r.value=new Cp,r.variables=new Cp,r}return sv(t,fp),rv(t)}(),sw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"radial",!0])).id=e.id||"",r.type=$d(e.type,["toEdge","toCenter"]),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(e){e=e?e[Hd]():"#FFFFFF";var t=this.color?this.color[Hd]():"#000000",r="toEdge"===this.type?"".concat(e,",").concat(t):"".concat(t,",").concat(e);return"radial-gradient(circle at center, ".concat(r,")")}}])}(),cw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"reason"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),gw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"reasons",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.reason=new Cp,r}return sv(t,fp),rv(t)}(),uw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"rectangle",!0])).hand=$d(e.hand,["even","left","right"]),r.id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.corner=new Cp(4),r.edge=new Cp(4),r.fill=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(){var e,t=this.edge.children.length?this.edge.children[0]:new hm({}),r=t[Hd](),A=Object.create(null);"visible"===(null===(e=this.fill)||void 0===e?void 0:e.presence)?Object.assign(A,this.fill[Hd]()):A.fill="transparent",A.strokeWidth=kp("visible"===t.presence?t.thickness:0),A.stroke=r.color;var n=(this.corner.children.length?this.corner.children[0]:new Am({}))[Hd](),i={name:"svg",children:[{name:"rect",attributes:{xmlns:Cv,width:"100%",height:"100%",x:0,y:0,rx:n.radius,ry:n.radius,style:A}}],attributes:{xmlns:Cv,style:{overflow:"visible"},width:"100%",height:"100%"}};return yv(this[td]()[td]())?Ay.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[i]}):(i.attributes.style.position="absolute",Ay.success(i))}}])}(),lw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"ref"])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),hw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"script"])).binding=e.binding||"",r.contentType=e.contentType||"",r.id=e.id||"",r.name=e.name||"",r.runAt=$d(e.runAt,["client","both","server"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),Iw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"setProperty"])).connection=e.connection||"",r.ref=e.ref||"",r.target=e.target||"",r}return sv(t,fp),rv(t)}(),fw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"signData",!0])).id=e.id||"",r.operation=$d(e.operation,["sign","clear","verify"]),r.ref=e.ref||"",r.target=e.target||"",r.use=e.use||"",r.usehref=e.usehref||"",r.filter=null,r.manifest=null,r}return sv(t,fp),rv(t)}(),Cw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"signature",!0])).id=e.id||"",r.type=$d(e.type,["PDF1.3","PDF1.6"]),r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.extras=null,r.filter=null,r.manifest=null,r.margin=null,r}return sv(t,fp),rv(t)}(),Bw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"signing",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.certificate=new Cp,r}return sv(t,fp),rv(t)}(),Qw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"solid",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(e){return e?e[Hd]():"#FFFFFF"}}])}(),Ew=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"speak"])).disable=Xd({data:e.disable,defaultValue:0,validate:function(e){return 1===e}}),r.id=e.id||"",r.priority=$d(e.priority,["custom","caption","name","toolTip"]),r.rid=e.rid||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),dw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"stipple",!0])).id=e.id||"",r.rate=Xd({data:e.rate,defaultValue:50,validate:function(e){return e>=0&&e<=100}}),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(e){var t=this.rate/100;return ge.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}])}(),yw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"subform",!0])).access=$d(e.access,["open","nonInteractive","protected","readOnly"]),r.allowMacro=Xd({data:e.allowMacro,defaultValue:0,validate:function(e){return 1===e}}),r.anchorType=$d(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),r.colSpan=Xd({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),r.columnWidths=(e.columnWidths||"").trim().split(/\\s+/).map((function(e){return"-1"===e?-1:ey(e)})),r.h=e.h?ey(e.h):"",r.hAlign=$d(e.hAlign,["left","center","justify","justifyAll","radix","right"]),r.id=e.id||"",r.layout=$d(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),r.locale=e.locale||"",r.maxH=ey(e.maxH,"0pt"),r.maxW=ey(e.maxW,"0pt"),r.mergeMode=$d(e.mergeMode,["consumeData","matchTemplate"]),r.minH=ey(e.minH,"0pt"),r.minW=ey(e.minW,"0pt"),r.name=e.name||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.relevant=ry(e.relevant),r.restoreState=$d(e.restoreState,["manual","auto"]),r.scope=$d(e.scope,["name","none"]),r.use=e.use||"",r.usehref=e.usehref||"",r.w=e.w?ey(e.w):"",r.x=ey(e.x,"0pt"),r.y=ey(e.y,"0pt"),r.assist=null,r.bind=null,r.bookend=null,r.border=null,r.break=null,r.calculate=null,r.desc=null,r.extras=null,r.keep=null,r.margin=null,r.occur=null,r.overflow=null,r.pageSet=null,r.para=null,r.traversal=null,r.validate=null,r.variables=null,r.area=new Cp,r.breakAfter=new Cp,r.breakBefore=new Cp,r.connect=new Cp,r.draw=new Cp,r.event=new Cp,r.exObject=new Cp,r.exclGroup=new Cp,r.field=new Cp,r.proto=new Cp,r.setProperty=new Cp,r.subform=new Cp,r.subformSet=new Cp,r}return sv(t,fp),rv(t,[{key:ed,value:function(){var e=this[td]();return e instanceof pw?e[ed]():e}},{key:cd,value:function(){return!0}},{key:Id,value:function(){return this.layout.endsWith("-tb")&&0===this[HE].attempt&&this[HE].numberInLine>0||this[td]()[Id]()}},{key:zE,value:gv().mark((function e(){return gv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(vv(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:PE,value:function(){return Zp(this)}},{key:DE,value:function(e,t){_p(this,e,t)}},{key:TE,value:function(){return Xp(this)}},{key:hd,value:function(){var e,t=this[ed]();return!!t[hd]()&&(void 0!==this[HE]._isSplittable?this[HE]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?(this[HE]._isSplittable=!1,!1):!(null!==(e=t.layout)&&void 0!==e&&e.endsWith("-tb")&&0!==t[HE].numberInLine||(this[HE]._isSplittable=!0,0)))}},{key:Md,value:function(e){var t;if(wv(this),this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){var r=new Tv({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});r[Ad]=this[Ad],this[SE](r),this.breakAfter.push(r)}if("auto"!==this.break.before||""!==this.break.beforeTarget){var A=new qv({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});A[Ad]=this[Ad],this[SE](A),this.breakBefore.push(A)}if(""!==this.break.overflowTarget){var n=new ew({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});n[Ad]=this[Ad],this[SE](n),this.overflow.push(n)}this[kd](this.break),this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return Ay.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&q("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){var i=this.breakBefore.children[0];if(xv(i))return Ay.breakNode(i)}if(null!==(t=this[HE])&&void 0!==t&&t.afterBreakAfter)return Ay.EMPTY;Gp(this);var a=[],o={id:this[Yd],class:[]};Jp(this,o.class),this[HE]||(this[HE]=Object.create(null)),Object.assign(this[HE],{children:a,line:null,attributes:o,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});var s=this[rd](),c=s[HE].noLayoutFailure,g=this[hd]();if(g||Sv(this),!Vp(this,e))return Ay.FAILURE;var u=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){var l=this[ed]().columnWidths;Array.isArray(l)&&l.length>0&&(this[HE].columnWidths=l,this[HE].currentColumn=0)}var h=Lp(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),I=["xfaSubform"],f=Np(this);if(f&&I.push(f),o.style=h,o.class=I,this.name&&(o.xfaName=this.name),this.overflow){var C=this.overflow[_E]();C.addLeader&&(C.addLeader=!1,Rv(this,C.leader,e))}this[bd]();for(var B="lr-tb"===this.layout||"rl-tb"===this.layout,Q=B?2:1;this[HE].attempt=1){var D=this.breakAfter.children[0];if(xv(D))return this[HE].afterBreakAfter=k,Ay.breakNode(D)}return delete this[HE],k}}])}(),pw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"subformSet",!0])).id=e.id||"",r.name=e.name||"",r.relation=$d(e.relation,["ordered","choice","unordered"]),r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.bookend=null,r.break=null,r.desc=null,r.extras=null,r.occur=null,r.overflow=null,r.breakAfter=new Cp,r.breakBefore=new Cp,r.subform=new Cp,r.subformSet=new Cp,r}return sv(t,fp),rv(t,[{key:zE,value:gv().mark((function e(){return gv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(vv(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:ed,value:function(){for(var e=this[td]();!(e instanceof yw);)e=e[td]();return e}},{key:cd,value:function(){return!0}}])}(),vw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"subjectDN"])).delimiter=e.delimiter||",",r.id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){this[UE]=new Map(this[UE].split(this.delimiter).map((function(e){return(e=e.split("=",2))[0]=e[0].trim(),e})))}}])}(),mw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"subjectDNs",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.subjectDN=new Cp,r}return sv(t,fp),rv(t)}(),ww=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"submit",!0])).embedPDF=Xd({data:e.embedPDF,defaultValue:0,validate:function(e){return 1===e}}),r.format=$d(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),r.id=e.id||"",r.target=e.target||"",r.textEncoding=zd({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:function(e){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\\d{2}/)}}),r.use=e.use||"",r.usehref=e.usehref||"",r.xdpContent=e.xdpContent||"",r.encrypt=null,r.encryptData=new Cp,r.signData=new Cp,r}return sv(t,fp),rv(t)}(),bw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"template",!0])).baseProfile=$d(e.baseProfile,["full","interactiveForms"]),r.extras=null,r.subform=new Cp,r}return sv(t,fp),rv(t,[{key:YE,value:function(){0===this.subform.children.length&&q("XFA - No subforms in template node."),this.subform.children.length>=2&&q("XFA - Several subforms in template node: please file a bug."),this[Nd]=5e3}},{key:hd,value:function(){return!0}},{key:Fd,value:function(e,t){return e.startsWith("#")?[this[id].get(e.slice(1))]:Ry(this,t,e,!0,!0)}},{key:Ud,value:gv().mark((function e(){var t,r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E=this;return gv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.subform.children.length){e.next=2;break}return e.abrupt("return",Ay.success({name:"div",children:[]}));case 2:this[HE]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]},(A=this.subform.children[0]).pageSet[RE](),n=A.pageSet.pageArea.children,i={name:"div",children:[]},a=null,o=null,s=null,A.breakBefore.children.length>=1?(o=A.breakBefore.children[0],s=o.target):A.subform.children.length>=1&&A.subform.children[0].breakBefore.children.length>=1?(o=A.subform.children[0].breakBefore.children[0],s=o.target):null!==(t=A.break)&&void 0!==t&&t.beforeTarget?(o=A.break,s=o.beforeTarget):A.subform.children.length>=1&&null!==(r=A.subform.children[0].break)&&void 0!==r&&r.beforeTarget&&(o=A.subform.children[0].break,s=o.beforeTarget),o&&(c=this[Fd](s,o[td]()))instanceof tw&&(a=c,o[HE]={}),a||(a=n[0]),a[HE]={numberOfUse:1},(g=a[td]())[HE]={numberOfUse:1,pageIndex:g.pageArea.children.indexOf(a),pageSetIndex:0},l=null,h=null,I=!0,f=0,C=0,B=gv().mark((function e(){var t,r,n,o,s,c,g,B,Q,d,y,p,v,m,w,b;return gv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=7;break}if(i.children.pop(),3!=++f){e.next=5;break}return q("XFA - Something goes wrong: please file a bug."),e.abrupt("return",{v:i});case 5:e.next=8;break;case 7:f=0;case 8:u=null,E[HE].currentPageArea=a,t=a[Md]().html,i.children.push(t),l&&(E[HE].noLayoutFailure=!0,t.children.push(l[Md](a[HE].space).html),l=null),h&&(E[HE].noLayoutFailure=!0,t.children.push(h[Md](a[HE].space).html),h=null),r=a.contentArea.children,n=t.children.filter((function(e){return e.attributes.class.includes("xfaContentarea")})),I=!1,E[HE].firstUnsplittable=null,E[HE].noLayoutFailure=!1,o=function(e){var t,r=A[PE]();r&&(I||(I=(null===(t=r.children)||void 0===t?void 0:t.length)>0),n[e].children.push(r))},s=C,c=r.length;case 21:if(!(s0),n[s].children.push(Q.html)):!I&&i.children.length>1&&i.children.pop(),e.abrupt("return",{v:i});case 31:if(!Q.isBreak()){e.next=40;break}if(y=Q.breakNode,o(s),"auto"!==y.targetType){e.next=36;break}return e.abrupt("continue",53);case 36:return y.leader&&(l=(l=E[Fd](y.leader,y[td]()))?l[0]:null),y.trailer&&(h=(h=E[Fd](y.trailer,y[td]()))?h[0]:null),"pageArea"===y.targetType?(u=y[HE].target,s=1/0):y[HE].target?(u=y[HE].target,C=y[HE].index+1,s=1/0):s=y[HE].index,e.abrupt("continue",53);case 40:if(!E[HE].overflowNode){e.next=52;break}return p=E[HE].overflowNode,E[HE].overflowNode=null,v=p[_E](),m=v.target,v.addLeader=null!==v.leader,v.addTrailer=null!==v.trailer,o(s),w=s,s=1/0,m instanceof tw?u=m:m instanceof rm&&(-1!==(b=r.indexOf(m))?b>w?s=b-1:C=b:(u=m[td](),C=u.contentArea.children.indexOf(m))),e.abrupt("continue",53);case 52:o(s);case 53:s++,e.next=21;break;case 56:return E[HE].pageNumber+=1,u&&(u[Cd]()?u[HE].numberOfUse+=1:u=null),a=u||a[$E](),e.next=61,null;case 61:case"end":return e.stop()}}),e)}));case 22:return e.delegateYield(B(),"t0",24);case 24:if(!(Q=e.t0)){e.next=27;break}return e.abrupt("return",Q.v);case 27:e.next=22;break;case 29:case"end":return e.stop()}}),e,this)}))}])}(),kw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"text"])).id=e.id||"",r.maxChars=Xd({data:e.maxChars,defaultValue:0,validate:function(e){return e>=0}}),r.name=e.name||"",r.rid=e.rid||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:kE,value:function(){return!0}},{key:yd,value:function(e){return e[Qd]===Od.xhtml.id?(this[UE]=e,!0):(q("XFA - Invalid content in Text: ".concat(e[Ed],".")),!1)}},{key:vd,value:function(e){this[UE]instanceof fp||zp(t,vd,this,3)([e])}},{key:YE,value:function(){"string"==typeof this[UE]&&(this[UE]=this[UE].replaceAll("\\r\\n","\\n"))}},{key:_E,value:function(){return"string"==typeof this[UE]?this[UE].split(/[\\u2029\\u2028\\n]/).reduce((function(e,t){return t&&e.push(t),e}),[]).join("\\n"):this[UE][Ld]()}},{key:Md,value:function(e){if("string"==typeof this[UE]){var t=Dv(this[UE]).html;return this[UE].includes("\\u2029")?(t.name="div",t.children=[],this[UE].split("\\u2029").map((function(e){return e.split(/[\\u2028\\n]/).reduce((function(e,t){return e.push({name:"span",value:t},{name:"br"}),e}),[])})).forEach((function(e){t.children.push({name:"p",children:e})}))):/[\\u2028\\n]/.test(this[UE])&&(t.name="div",t.children=[],this[UE].split(/[\\u2028\\n]/).forEach((function(e){t.children.push({name:"span",value:e},{name:"br"})}))),Ay.success(t)}return this[UE][Md](e)}}])}(),Dw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"textEdit",!0])).allowRichText=Xd({data:e.allowRichText,defaultValue:0,validate:function(e){return 1===e}}),r.hScrollPolicy=$d(e.hScrollPolicy,["auto","off","on"]),r.id=e.id||"",r.multiLine=Xd({data:e.multiLine,defaultValue:"",validate:function(e){return 0===e||1===e}}),r.use=e.use||"",r.usehref=e.usehref||"",r.vScrollPolicy=$d(e.vScrollPolicy,["auto","off","on"]),r.border=null,r.comb=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t,r,A,n=Lp(this,"border","font","margin"),i=this[td]()[td]();return""===this.multiLine&&(this.multiLine=i instanceof lm?1:0),t=1===this.multiLine?{name:"textarea",attributes:{dataId:(null===(r=i[ME])||void 0===r?void 0:r[Yd])||i[Yd],fieldId:i[Yd],class:["xfaTextfield"],style:n,"aria-label":kv(i),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:(null===(A=i[ME])||void 0===A?void 0:A[Yd])||i[Yd],fieldId:i[Yd],class:["xfaTextfield"],style:n,"aria-label":kv(i),"aria-required":!1}},mv(i)&&(t.attributes["aria-required"]=!0,t.attributes.required=!0),Ay.success({name:"label",attributes:{class:["xfaLabel"]},children:[t]})}}])}(),Sw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"time"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t,[{key:YE,value:function(){var e=this[UE].trim();this[UE]=e?new Date(e):null}},{key:Md,value:function(e){return Dv(this[UE]?this[UE].toString():"")}}])}(),Fw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"timeStamp"])).id=e.id||"",r.server=e.server||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),xw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"toolTip"])).id=e.id||"",r.rid=e.rid||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),Rw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"traversal",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.traverse=new Cp,r}return sv(t,fp),rv(t)}(),Gw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"traverse",!0])).id=e.id||"",r.operation=$d(e.operation,["next","back","down","first","left","right","up"]),r.ref=e.ref||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.script=null,r}return sv(t,fp),rv(t,[{key:"name",get:function(){return this.operation}},{key:fd,value:function(){return!1}}])}(),Nw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"ui",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.picture=null,r.barcode=null,r.button=null,r.checkButton=null,r.choiceList=null,r.dateTimeEdit=null,r.defaultUi=null,r.imageEdit=null,r.numericEdit=null,r.passwordEdit=null,r.signature=null,r.textEdit=null,r}return sv(t,fp),rv(t,[{key:_E,value:function(){if(void 0===this[HE]){var e,t=lv(Object.getOwnPropertyNames(this));try{for(t.s();!(e=t.n()).done;){var r=e.value;if("extras"!==r&&"picture"!==r){var A=this[r];if(A instanceof fp)return this[HE]=A,A}}}catch(e){t.e(e)}finally{t.f()}this[HE]=null}return this[HE]}},{key:Md,value:function(e){var t=this[_E]();return t?t[Md](e):Ay.EMPTY}}])}(),Lw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"validate",!0])).formatTest=$d(e.formatTest,["warning","disabled","error"]),r.id=e.id||"",r.nullTest=$d(e.nullTest,["disabled","error","warning"]),r.scriptTest=$d(e.scriptTest,["error","disabled","warning"]),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.message=null,r.picture=null,r.script=null,r}return sv(t,fp),rv(t)}(),Uw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"value",!0])).id=e.id||"",r.override=Xd({data:e.override,defaultValue:0,validate:function(e){return 1===e}}),r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.arc=null,r.boolean=null,r.date=null,r.dateTime=null,r.decimal=null,r.exData=null,r.float=null,r.image=null,r.integer=null,r.line=null,r.rectangle=null,r.text=null,r.time=null,r}return sv(t,fp),rv(t,[{key:Gd,value:function(e){var t,r=this[td]();if(r instanceof km&&null!==(t=r.ui)&&void 0!==t&&t.imageEdit)return this.image||(this.image=new Lm({}),this[SE](this.image)),void(this.image[UE]=e[UE]);var A=e[Ed];if(null===this[A]){var n,i=lv(Object.getOwnPropertyNames(this));try{for(i.s();!(n=i.n()).done;){var a=n.value,o=this[a];o instanceof fp&&(this[a]=null,this[kd](o))}}catch(e){i.e(e)}finally{i.f()}this[e[Ed]]=e,this[SE](e)}else this[A][UE]=e[UE]}},{key:Ld,value:function(){if(this.exData)return"string"==typeof this.exData[UE]?this.exData[UE].trim():this.exData[UE][Ld]().trim();var e,t=lv(Object.getOwnPropertyNames(this));try{for(t.s();!(e=t.n()).done;){var r=e.value;if("image"!==r){var A=this[r];if(A instanceof fp)return(A[UE]||"").toString().trim()}}}catch(e){t.e(e)}finally{t.f()}return null}},{key:Md,value:function(e){var t,r=lv(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var A=this[t.value];if(A instanceof fp)return A[Md](e)}}catch(e){r.e(e)}finally{r.f()}return Ay.EMPTY}}])}(),Mw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"variables",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.boolean=new Cp,r.date=new Cp,r.dateTime=new Cp,r.decimal=new Cp,r.exData=new Cp,r.float=new Cp,r.image=new Cp,r.integer=new Cp,r.manifest=new Cp,r.script=new Cp,r.text=new Cp,r.time=new Cp,r}return sv(t,fp),rv(t,[{key:fd,value:function(){return!0}}])}(),Jw=function(){function e(){nv(this,e)}return rv(e,null,[{key:Pd,value:function(t,r){if(e.hasOwnProperty(t)){var A=e[t](r);return A[Rd](r),A}}},{key:"appearanceFilter",value:function(e){return new Gv(e)}},{key:"arc",value:function(e){return new Nv(e)}},{key:"area",value:function(e){return new Lv(e)}},{key:"assist",value:function(e){return new Uv(e)}},{key:"barcode",value:function(e){return new Mv(e)}},{key:"bind",value:function(e){return new Jv(e)}},{key:"bindItems",value:function(e){return new Hv(e)}},{key:"bookend",value:function(e){return new Yv(e)}},{key:"boolean",value:function(e){return new Pv(e)}},{key:"border",value:function(e){return new Ov(e)}},{key:"break",value:function(e){return new Kv(e)}},{key:"breakAfter",value:function(e){return new Tv(e)}},{key:"breakBefore",value:function(e){return new qv(e)}},{key:"button",value:function(e){return new jv(e)}},{key:"calculate",value:function(e){return new Wv(e)}},{key:"caption",value:function(e){return new Zv(e)}},{key:"certificate",value:function(e){return new _v(e)}},{key:"certificates",value:function(e){return new Xv(e)}},{key:"checkButton",value:function(e){return new Vv(e)}},{key:"choiceList",value:function(e){return new zv(e)}},{key:"color",value:function(e){return new $v(e)}},{key:"comb",value:function(e){return new em(e)}},{key:"connect",value:function(e){return new tm(e)}},{key:"contentArea",value:function(e){return new rm(e)}},{key:"corner",value:function(e){return new Am(e)}},{key:"date",value:function(e){return new nm(e)}},{key:"dateTime",value:function(e){return new im(e)}},{key:"dateTimeEdit",value:function(e){return new am(e)}},{key:"decimal",value:function(e){return new om(e)}},{key:"defaultUi",value:function(e){return new sm(e)}},{key:"desc",value:function(e){return new cm(e)}},{key:"digestMethod",value:function(e){return new gm(e)}},{key:"digestMethods",value:function(e){return new um(e)}},{key:"draw",value:function(e){return new lm(e)}},{key:"edge",value:function(e){return new hm(e)}},{key:"encoding",value:function(e){return new Im(e)}},{key:"encodings",value:function(e){return new fm(e)}},{key:"encrypt",value:function(e){return new Cm(e)}},{key:"encryptData",value:function(e){return new Bm(e)}},{key:"encryption",value:function(e){return new Qm(e)}},{key:"encryptionMethod",value:function(e){return new Em(e)}},{key:"encryptionMethods",value:function(e){return new dm(e)}},{key:"event",value:function(e){return new ym(e)}},{key:"exData",value:function(e){return new pm(e)}},{key:"exObject",value:function(e){return new vm(e)}},{key:"exclGroup",value:function(e){return new mm(e)}},{key:"execute",value:function(e){return new wm(e)}},{key:"extras",value:function(e){return new bm(e)}},{key:"field",value:function(e){return new km(e)}},{key:"fill",value:function(e){return new Dm(e)}},{key:"filter",value:function(e){return new Sm(e)}},{key:"float",value:function(e){return new Fm(e)}},{key:"font",value:function(e){return new xm(e)}},{key:"format",value:function(e){return new Rm(e)}},{key:"handler",value:function(e){return new Gm(e)}},{key:"hyphenation",value:function(e){return new Nm(e)}},{key:"image",value:function(e){return new Lm(e)}},{key:"imageEdit",value:function(e){return new Um(e)}},{key:"integer",value:function(e){return new Mm(e)}},{key:"issuers",value:function(e){return new Jm(e)}},{key:"items",value:function(e){return new Hm(e)}},{key:"keep",value:function(e){return new Ym(e)}},{key:"keyUsage",value:function(e){return new Pm(e)}},{key:"line",value:function(e){return new Om(e)}},{key:"linear",value:function(e){return new Km(e)}},{key:"lockDocument",value:function(e){return new Tm(e)}},{key:"manifest",value:function(e){return new qm(e)}},{key:"margin",value:function(e){return new jm(e)}},{key:"mdp",value:function(e){return new Wm(e)}},{key:"medium",value:function(e){return new Zm(e)}},{key:"message",value:function(e){return new _m(e)}},{key:"numericEdit",value:function(e){return new Xm(e)}},{key:"occur",value:function(e){return new Vm(e)}},{key:"oid",value:function(e){return new zm(e)}},{key:"oids",value:function(e){return new $m(e)}},{key:"overflow",value:function(e){return new ew(e)}},{key:"pageArea",value:function(e){return new tw(e)}},{key:"pageSet",value:function(e){return new rw(e)}},{key:"para",value:function(e){return new Aw(e)}},{key:"passwordEdit",value:function(e){return new nw(e)}},{key:"pattern",value:function(e){return new iw(e)}},{key:"picture",value:function(e){return new aw(e)}},{key:"proto",value:function(e){return new ow(e)}},{key:"radial",value:function(e){return new sw(e)}},{key:"reason",value:function(e){return new cw(e)}},{key:"reasons",value:function(e){return new gw(e)}},{key:"rectangle",value:function(e){return new uw(e)}},{key:"ref",value:function(e){return new lw(e)}},{key:"script",value:function(e){return new hw(e)}},{key:"setProperty",value:function(e){return new Iw(e)}},{key:"signData",value:function(e){return new fw(e)}},{key:"signature",value:function(e){return new Cw(e)}},{key:"signing",value:function(e){return new Bw(e)}},{key:"solid",value:function(e){return new Qw(e)}},{key:"speak",value:function(e){return new Ew(e)}},{key:"stipple",value:function(e){return new dw(e)}},{key:"subform",value:function(e){return new yw(e)}},{key:"subformSet",value:function(e){return new pw(e)}},{key:"subjectDN",value:function(e){return new vw(e)}},{key:"subjectDNs",value:function(e){return new mw(e)}},{key:"submit",value:function(e){return new ww(e)}},{key:"template",value:function(e){return new bw(e)}},{key:"text",value:function(e){return new kw(e)}},{key:"textEdit",value:function(e){return new Dw(e)}},{key:"time",value:function(e){return new Sw(e)}},{key:"timeStamp",value:function(e){return new Fw(e)}},{key:"toolTip",value:function(e){return new xw(e)}},{key:"traversal",value:function(e){return new Rw(e)}},{key:"traverse",value:function(e){return new Gw(e)}},{key:"ui",value:function(e){return new Nw(e)}},{key:"validate",value:function(e){return new Lw(e)}},{key:"value",value:function(e){return new Uw(e)}},{key:"variables",value:function(e){return new Mw(e)}}])}();function Hw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||Pw(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 Yw(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Pw(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function Pw(e,t){if(e){if("string"==typeof e)return Ow(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ow(e,t):void 0}}function Ow(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r1&&((A=e[NE]())[kd](A.occur),A.occur=null),this._bindValue(e,t[0],r),this._setProperties(e,t[0]),this._bindItems(e,t[0]),1!==t.length)for(var n=e[td](),i=e[Ed],a=n[ad](e),o=1,s=t.length;ol?c=c.slice(0,l):0===c.length&&(c=null),c&&this._isConsumeData()&&c.forEach((function(e){e[LE]=!0}))}else{if(!i.name){this._setAndBind(i,t);continue}if(this._isConsumeData()){for(var h=[];h.length0?h:null}else{if(!(c=t[XE](i.name,!1,this.emptyMerge).next().value)){if(0===u){r.push(i);continue}var f=t[Qd]===qw?-1:t[Qd];c=i[ME]=new Qp(f,i.name),this.emptyMerge&&(c[LE]=!0),t[SE](c),this._setAndBind(i,c);continue}this.emptyMerge&&(c[LE]=!0),c=[c]}}c?this._bindOccurrences(i,c,o):u>0?this._setAndBind(i,t):r.push(i)}}else{this._mergeMode="consumeData"===i.mergeMode;var C=t[VE]();if(C.length>0)this._bindOccurrences(i,[C[0]],null);else if(this.emptyMerge){var B=t[Qd]===qw?-1:t[Qd],Q=i[ME]=new Qp(B,i.name||"root");t[SE](Q),this._bindElement(i,Q)}}}}catch(e){n.e(e)}finally{n.f()}r.forEach((function(e){return e[td]()[kd](e)}))}}])}();function Zw(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Xw(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function _w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||Xw(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 Xw(e,t){if(e){if("string"==typeof e)return Vw(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vw(e,t):void 0}}function Vw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r0;){var r=t.at(-1),A=_w(r,2),n=A[0],i=A[1];if(n+1!==i.length){var a=i[++r[0]],o=e.get(a[Yd]);if(o)a[Gd](o);else{var s,c=Zw(a[KE]().values());try{for(c.s();!(s=c.n()).done;){var g=s.value,u=e.get(g[Yd]);if(u){g[Gd](u);break}}}catch(e){c.e(e)}finally{c.f()}}var l=a[VE]();l.length>0&&t.push([-1,l])}else t.pop()}var h=[''];if(this.dataset){var I,f=Zw(this.dataset[VE]());try{for(f.s();!(I=f.n()).done;){var C=I.value;"data"!==C[Ed]&&C[Jd](h)}}catch(e){f.e(e)}finally{f.f()}}return this.data[Jd](h),h.push(""),h.join("")}}])}();function tb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r=1&&e<=8}])}return cb(t,pp),Ab(t)}(),db=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"agent",!0])).name=e.name?e.name.trim():"",r.common=new Cp,r}return cb(t,fp),Ab(t)}(),yb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"alwaysEmbed"])}return cb(t,Ep),Ab(t)}(),pb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"amd"])}return cb(t,yp),Ab(t)}(),vb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"area"])).level=Xd({data:e.level,defaultValue:0,validate:function(e){return e>=1&&e<=3}}),r.name=$d(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"]),r}return cb(t,fp),Ab(t)}(),mb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"attributes",["preserve","delegate","ignore"]])}return cb(t,dp),Ab(t)}(),wb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"autoSave",["disabled","enabled"]])}return cb(t,dp),Ab(t)}(),bb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"base"])}return cb(t,yp),Ab(t)}(),kb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"batchOutput"])).format=$d(e.format,["none","concat","zip","zipCompress"]),r}return cb(t,fp),Ab(t)}(),Db=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"behaviorOverride"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){this[UE]=new Map(this[UE].trim().split(/\\s+/).filter((function(e){return e.includes(":")})).map((function(e){return e.split(":",2)})))}}])}(),Sb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"cache",!0])).templateCache=null,r}return cb(t,fp),Ab(t)}(),Fb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"change"])}return cb(t,vp),Ab(t)}(),xb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"common",!0])).data=null,r.locale=null,r.localeSet=null,r.messaging=null,r.suppressBanner=null,r.template=null,r.validationMessaging=null,r.versionControl=null,r.log=new Cp,r}return cb(t,fp),Ab(t)}(),Rb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"compress"])).scope=$d(e.scope,["imageOnly","document"]),r}return cb(t,fp),Ab(t)}(),Gb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"compressLogicalStructure"])}return cb(t,vp),Ab(t)}(),Nb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"compressObjectStream"])}return cb(t,mp),Ab(t)}(),Lb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"compression",!0])).compressLogicalStructure=null,r.compressObjectStream=null,r.level=null,r.type=null,r}return cb(t,fp),Ab(t)}(),Ub=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"config",!0])).acrobat=null,r.present=null,r.trace=null,r.agent=new Cp,r}return cb(t,fp),Ab(t)}(),Mb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"conformance",["A","B"]])}return cb(t,dp),Ab(t)}(),Jb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"contentCopy"])}return cb(t,vp),Ab(t)}(),Hb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"copies",1,function(e){return e>=1}])}return cb(t,pp),Ab(t)}(),Yb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"creator"])}return cb(t,yp),Ab(t)}(),Pb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"currentPage",0,function(e){return e>=0}])}return cb(t,pp),Ab(t)}(),Ob=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"data",!0])).adjustData=null,r.attributes=null,r.incrementalLoad=null,r.outputXSL=null,r.range=null,r.record=null,r.startNode=null,r.uri=null,r.window=null,r.xsl=null,r.excludeNS=new Cp,r.transform=new Cp,r}return cb(t,fp),Ab(t)}(),Kb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"debug",!0])).uri=null,r}return cb(t,fp),Ab(t)}(),Tb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"defaultTypeface"])).writingScript=$d(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"]),r}return cb(t,Ep),Ab(t)}(),qb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"destination",["pdf","pcl","ps","webClient","zpl"]])}return cb(t,dp),Ab(t)}(),jb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"documentAssembly"])}return cb(t,vp),Ab(t)}(),Wb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"driver",!0])).name=e.name?e.name.trim():"",r.fontInfo=null,r.xdc=null,r}return cb(t,fp),Ab(t)}(),Zb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"]])}return cb(t,dp),Ab(t)}(),_b=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"dynamicRender",["forbidden","required"]])}return cb(t,dp),Ab(t)}(),Xb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"embed"])}return cb(t,vp),Ab(t)}(),Vb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"encrypt"])}return cb(t,vp),Ab(t)}(),zb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"encryption",!0])).encrypt=null,r.encryptionLevel=null,r.permissions=null,r}return cb(t,fp),Ab(t)}(),$b=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"encryptionLevel",["40bit","128bit"]])}return cb(t,dp),Ab(t)}(),ek=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"enforce"])}return cb(t,yp),Ab(t)}(),tk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"equate"])).force=Xd({data:e.force,defaultValue:1,validate:function(e){return 0===e}}),r.from=e.from||"",r.to=e.to||"",r}return cb(t,fp),Ab(t)}(),rk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"equateRange"])).from=e.from||"",r.to=e.to||"",r._unicodeRange=e.unicodeRange||"",r}return cb(t,fp),Ab(t,[{key:"unicodeRange",get:function(){var e,t=[],r=/U\\+([0-9a-fA-F]+)/,A=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return tb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tb(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(this._unicodeRange.split(",").map((function(e){return e.trim()})).filter((function(e){return!!e})));try{for(A.s();!(e=A.n()).done;){var n=e.value;1===(n=n.split("-",2).map((function(e){var t=e.match(r);return t?parseInt(t[1],16):0}))).length&&n.push(n[0]),t.push(n)}}catch(e){A.e(e)}finally{A.f()}return _(this,"unicodeRange",t)}}])}(),Ak=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"exclude"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){this[UE]=this[UE].trim().split(/\\s+/).filter((function(e){return e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e)}))}}])}(),nk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"excludeNS"])}return cb(t,yp),Ab(t)}(),ik=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"flipLabel",["usePrinterSetting","on","off"]])}return cb(t,dp),Ab(t)}(),ak=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"fontInfo",!0])).embed=null,r.map=null,r.subsetBelow=null,r.alwaysEmbed=new Cp,r.defaultTypeface=new Cp,r.neverEmbed=new Cp,r}return cb(t,fp),Ab(t)}(),ok=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"formFieldFilling"])}return cb(t,vp),Ab(t)}(),sk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"groupParent"])}return cb(t,yp),Ab(t)}(),ck=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"ifEmpty",["dataValue","dataGroup","ignore","remove"]])}return cb(t,dp),Ab(t)}(),gk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"includeXDPContent"])}return cb(t,yp),Ab(t)}(),uk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"incrementalLoad",["none","forwardOnly"]])}return cb(t,dp),Ab(t)}(),lk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"incrementalMerge"])}return cb(t,vp),Ab(t)}(),hk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"interactive"])}return cb(t,vp),Ab(t)}(),Ik=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"jog",["usePrinterSetting","none","pageSet"]])}return cb(t,dp),Ab(t)}(),fk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"labelPrinter",!0])).name=$d(e.name,["zpl","dpl","ipl","tcpl"]),r.batchOutput=null,r.flipLabel=null,r.fontInfo=null,r.xdc=null,r}return cb(t,fp),Ab(t)}(),Ck=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"layout",["paginate","panel"]])}return cb(t,dp),Ab(t)}(),Bk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"level",0,function(e){return e>0}])}return cb(t,pp),Ab(t)}(),Qk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"linearized"])}return cb(t,vp),Ab(t)}(),Ek=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"locale"])}return cb(t,yp),Ab(t)}(),dk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"localeSet"])}return cb(t,yp),Ab(t)}(),yk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"log",!0])).mode=null,r.threshold=null,r.to=null,r.uri=null,r}return cb(t,fp),Ab(t)}(),pk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"map",!0])).equate=new Cp,r.equateRange=new Cp,r}return cb(t,fp),Ab(t)}(),vk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"mediumInfo",!0])).map=null,r}return cb(t,fp),Ab(t)}(),mk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"message",!0])).msgId=null,r.severity=null,r}return cb(t,fp),Ab(t)}(),wk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"messaging",!0])).message=new Cp,r}return cb(t,fp),Ab(t)}(),bk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"mode",["append","overwrite"]])}return cb(t,dp),Ab(t)}(),kk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"modifyAnnots"])}return cb(t,vp),Ab(t)}(),Dk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"msgId",1,function(e){return e>=1}])}return cb(t,pp),Ab(t)}(),Sk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"nameAttr"])}return cb(t,yp),Ab(t)}(),Fk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"neverEmbed"])}return cb(t,Ep),Ab(t)}(),xk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"numberOfCopies",null,function(e){return e>=2&&e<=5}])}return cb(t,pp),Ab(t)}(),Rk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"openAction",!0])).destination=null,r}return cb(t,fp),Ab(t)}(),Gk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"output",!0])).to=null,r.type=null,r.uri=null,r}return cb(t,fp),Ab(t)}(),Nk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"outputBin"])}return cb(t,yp),Ab(t)}(),Lk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"outputXSL",!0])).uri=null,r}return cb(t,fp),Ab(t)}(),Uk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"overprint",["none","both","draw","field"]])}return cb(t,dp),Ab(t)}(),Mk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"packets"])}return cb(t,yp),Ab(t,[{key:YE,value:function(){"*"!==this[UE]&&(this[UE]=this[UE].trim().split(/\\s+/).filter((function(e){return["config","datasets","template","xfdf","xslt"].includes(e)})))}}])}(),Jk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"pageOffset"])).x=Xd({data:e.x,defaultValue:"useXDCSetting",validate:function(e){return!0}}),r.y=Xd({data:e.y,defaultValue:"useXDCSetting",validate:function(e){return!0}}),r}return cb(t,fp),Ab(t)}(),Hk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"pageRange"])}return cb(t,yp),Ab(t,[{key:YE,value:function(){for(var e=this[UE].trim().split(/\\s+/).map((function(e){return parseInt(e,10)})),t=[],r=0,A=e.length;r=0&&(this[UE]=e)}}])}(),aD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"relevant"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){this[UE]=this[UE].trim().split(/\\s+/)}}])}(),oD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"rename"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){this[UE]=this[UE].trim(),(this[UE].toLowerCase().startsWith("xml")||new RegExp("[\\\\p{L}_][\\\\p{L}\\\\d._\\\\p{M}-]*","u").test(this[UE]))&&q("XFA - Rename: invalid XFA name")}}])}(),sD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"renderPolicy",["server","client"]])}return cb(t,dp),Ab(t)}(),cD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"runScripts",["both","client","none","server"]])}return cb(t,dp),Ab(t)}(),gD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"script",!0])).currentPage=null,r.exclude=null,r.runScripts=null,r}return cb(t,fp),Ab(t)}(),uD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"scriptModel",["XFA","none"]])}return cb(t,dp),Ab(t)}(),lD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"severity",["ignore","error","information","trace","warning"]])}return cb(t,dp),Ab(t)}(),hD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"silentPrint",!0])).addSilentPrint=null,r.printerName=null,r}return cb(t,fp),Ab(t)}(),ID=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"staple"])).mode=$d(e.mode,["usePrinterSetting","on","off"]),r}return cb(t,fp),Ab(t)}(),fD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"startNode"])}return cb(t,yp),Ab(t)}(),CD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"startPage",0,function(e){return!0}])}return cb(t,pp),Ab(t)}(),BD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"submitFormat",["html","delegate","fdf","xml","pdf"]])}return cb(t,dp),Ab(t)}(),QD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"submitUrl"])}return cb(t,yp),Ab(t)}(),ED=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"subsetBelow",100,function(e){return e>=0&&e<=100}])}return cb(t,pp),Ab(t)}(),dD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"suppressBanner"])}return cb(t,vp),Ab(t)}(),yD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"tagged"])}return cb(t,vp),Ab(t)}(),pD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"template",!0])).base=null,r.relevant=null,r.startPage=null,r.uri=null,r.xsl=null,r}return cb(t,fp),Ab(t)}(),vD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"threshold",["trace","error","information","warning"]])}return cb(t,dp),Ab(t)}(),mD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"to",["null","memory","stderr","stdout","system","uri"]])}return cb(t,dp),Ab(t)}(),wD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"templateCache"])).maxEntries=Xd({data:e.maxEntries,defaultValue:5,validate:function(e){return e>=0}}),r}return cb(t,fp),Ab(t)}(),bD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"trace",!0])).area=new Cp,r}return cb(t,fp),Ab(t)}(),kD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"transform",!0])).groupParent=null,r.ifEmpty=null,r.nameAttr=null,r.picture=null,r.presence=null,r.rename=null,r.whitespace=null,r}return cb(t,fp),Ab(t)}(),DD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"]])}return cb(t,dp),Ab(t)}(),SD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"uri"])}return cb(t,yp),Ab(t)}(),FD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"validate",["preSubmit","prePrint","preExecute","preSave"]])}return cb(t,dp),Ab(t)}(),xD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"validateApprovalSignatures"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){this[UE]=this[UE].trim().split(/\\s+/).filter((function(e){return["docReady","postSign"].includes(e)}))}}])}(),RD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"]])}return cb(t,dp),Ab(t)}(),GD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"version",["1.7","1.6","1.5","1.4","1.3","1.2"]])}return cb(t,dp),Ab(t)}(),ND=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"VersionControl"])).outputBelow=$d(e.outputBelow,["warn","error","update"]),r.sourceAbove=$d(e.sourceAbove,["warn","error"]),r.sourceBelow=$d(e.sourceBelow,["update","maintain"]),r}return cb(t,fp),Ab(t)}(),LD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"viewerPreferences",!0])).ADBE_JSConsole=null,r.ADBE_JSDebugger=null,r.addViewerPreferences=null,r.duplexOption=null,r.enforce=null,r.numberOfCopies=null,r.pageRange=null,r.pickTrayByPDFSize=null,r.printScaling=null,r}return cb(t,fp),Ab(t)}(),UD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"webClient",!0])).name=e.name?e.name.trim():"",r.fontInfo=null,r.xdc=null,r}return cb(t,fp),Ab(t)}(),MD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"whitespace",["preserve","ltrim","normalize","rtrim","trim"]])}return cb(t,dp),Ab(t)}(),JD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"window"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){var e=this[UE].trim().split(/\\s*,\\s*/,2).map((function(e){return parseInt(e,10)}));e.some((function(e){return isNaN(e)}))?this[UE]=[0,0]:(1===e.length&&e.push(e[0]),this[UE]=e)}}])}(),HD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"xdc",!0])).uri=new Cp,r.xsl=new Cp,r}return cb(t,fp),Ab(t)}(),YD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"xdp",!0])).packets=null,r}return cb(t,fp),Ab(t)}(),PD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"xsl",!0])).debug=null,r.uri=null,r}return cb(t,fp),Ab(t)}(),OD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"zpl",!0])).name=e.name?e.name.trim():"",r.batchOutput=null,r.flipLabel=null,r.fontInfo=null,r.xdc=null,r}return cb(t,fp),Ab(t)}(),KD=function(){function e(){ib(this,e)}return Ab(e,null,[{key:Pd,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"acrobat",value:function(e){return new lb(e)}},{key:"acrobat7",value:function(e){return new hb(e)}},{key:"ADBE_JSConsole",value:function(e){return new Ib(e)}},{key:"ADBE_JSDebugger",value:function(e){return new fb(e)}},{key:"addSilentPrint",value:function(e){return new Cb(e)}},{key:"addViewerPreferences",value:function(e){return new Bb(e)}},{key:"adjustData",value:function(e){return new Qb(e)}},{key:"adobeExtensionLevel",value:function(e){return new Eb(e)}},{key:"agent",value:function(e){return new db(e)}},{key:"alwaysEmbed",value:function(e){return new yb(e)}},{key:"amd",value:function(e){return new pb(e)}},{key:"area",value:function(e){return new vb(e)}},{key:"attributes",value:function(e){return new mb(e)}},{key:"autoSave",value:function(e){return new wb(e)}},{key:"base",value:function(e){return new bb(e)}},{key:"batchOutput",value:function(e){return new kb(e)}},{key:"behaviorOverride",value:function(e){return new Db(e)}},{key:"cache",value:function(e){return new Sb(e)}},{key:"change",value:function(e){return new Fb(e)}},{key:"common",value:function(e){return new xb(e)}},{key:"compress",value:function(e){return new Rb(e)}},{key:"compressLogicalStructure",value:function(e){return new Gb(e)}},{key:"compressObjectStream",value:function(e){return new Nb(e)}},{key:"compression",value:function(e){return new Lb(e)}},{key:"config",value:function(e){return new Ub(e)}},{key:"conformance",value:function(e){return new Mb(e)}},{key:"contentCopy",value:function(e){return new Jb(e)}},{key:"copies",value:function(e){return new Hb(e)}},{key:"creator",value:function(e){return new Yb(e)}},{key:"currentPage",value:function(e){return new Pb(e)}},{key:"data",value:function(e){return new Ob(e)}},{key:"debug",value:function(e){return new Kb(e)}},{key:"defaultTypeface",value:function(e){return new Tb(e)}},{key:"destination",value:function(e){return new qb(e)}},{key:"documentAssembly",value:function(e){return new jb(e)}},{key:"driver",value:function(e){return new Wb(e)}},{key:"duplexOption",value:function(e){return new Zb(e)}},{key:"dynamicRender",value:function(e){return new _b(e)}},{key:"embed",value:function(e){return new Xb(e)}},{key:"encrypt",value:function(e){return new Vb(e)}},{key:"encryption",value:function(e){return new zb(e)}},{key:"encryptionLevel",value:function(e){return new $b(e)}},{key:"enforce",value:function(e){return new ek(e)}},{key:"equate",value:function(e){return new tk(e)}},{key:"equateRange",value:function(e){return new rk(e)}},{key:"exclude",value:function(e){return new Ak(e)}},{key:"excludeNS",value:function(e){return new nk(e)}},{key:"flipLabel",value:function(e){return new ik(e)}},{key:"fontInfo",value:function(e){return new ak(e)}},{key:"formFieldFilling",value:function(e){return new ok(e)}},{key:"groupParent",value:function(e){return new sk(e)}},{key:"ifEmpty",value:function(e){return new ck(e)}},{key:"includeXDPContent",value:function(e){return new gk(e)}},{key:"incrementalLoad",value:function(e){return new uk(e)}},{key:"incrementalMerge",value:function(e){return new lk(e)}},{key:"interactive",value:function(e){return new hk(e)}},{key:"jog",value:function(e){return new Ik(e)}},{key:"labelPrinter",value:function(e){return new fk(e)}},{key:"layout",value:function(e){return new Ck(e)}},{key:"level",value:function(e){return new Bk(e)}},{key:"linearized",value:function(e){return new Qk(e)}},{key:"locale",value:function(e){return new Ek(e)}},{key:"localeSet",value:function(e){return new dk(e)}},{key:"log",value:function(e){return new yk(e)}},{key:"map",value:function(e){return new pk(e)}},{key:"mediumInfo",value:function(e){return new vk(e)}},{key:"message",value:function(e){return new mk(e)}},{key:"messaging",value:function(e){return new wk(e)}},{key:"mode",value:function(e){return new bk(e)}},{key:"modifyAnnots",value:function(e){return new kk(e)}},{key:"msgId",value:function(e){return new Dk(e)}},{key:"nameAttr",value:function(e){return new Sk(e)}},{key:"neverEmbed",value:function(e){return new Fk(e)}},{key:"numberOfCopies",value:function(e){return new xk(e)}},{key:"openAction",value:function(e){return new Rk(e)}},{key:"output",value:function(e){return new Gk(e)}},{key:"outputBin",value:function(e){return new Nk(e)}},{key:"outputXSL",value:function(e){return new Lk(e)}},{key:"overprint",value:function(e){return new Uk(e)}},{key:"packets",value:function(e){return new Mk(e)}},{key:"pageOffset",value:function(e){return new Jk(e)}},{key:"pageRange",value:function(e){return new Hk(e)}},{key:"pagination",value:function(e){return new Yk(e)}},{key:"paginationOverride",value:function(e){return new Pk(e)}},{key:"part",value:function(e){return new Ok(e)}},{key:"pcl",value:function(e){return new Kk(e)}},{key:"pdf",value:function(e){return new Tk(e)}},{key:"pdfa",value:function(e){return new qk(e)}},{key:"permissions",value:function(e){return new jk(e)}},{key:"pickTrayByPDFSize",value:function(e){return new Wk(e)}},{key:"picture",value:function(e){return new Zk(e)}},{key:"plaintextMetadata",value:function(e){return new _k(e)}},{key:"presence",value:function(e){return new Xk(e)}},{key:"present",value:function(e){return new Vk(e)}},{key:"print",value:function(e){return new zk(e)}},{key:"printHighQuality",value:function(e){return new $k(e)}},{key:"printScaling",value:function(e){return new eD(e)}},{key:"printerName",value:function(e){return new tD(e)}},{key:"producer",value:function(e){return new rD(e)}},{key:"ps",value:function(e){return new AD(e)}},{key:"range",value:function(e){return new nD(e)}},{key:"record",value:function(e){return new iD(e)}},{key:"relevant",value:function(e){return new aD(e)}},{key:"rename",value:function(e){return new oD(e)}},{key:"renderPolicy",value:function(e){return new sD(e)}},{key:"runScripts",value:function(e){return new cD(e)}},{key:"script",value:function(e){return new gD(e)}},{key:"scriptModel",value:function(e){return new uD(e)}},{key:"severity",value:function(e){return new lD(e)}},{key:"silentPrint",value:function(e){return new hD(e)}},{key:"staple",value:function(e){return new ID(e)}},{key:"startNode",value:function(e){return new fD(e)}},{key:"startPage",value:function(e){return new CD(e)}},{key:"submitFormat",value:function(e){return new BD(e)}},{key:"submitUrl",value:function(e){return new QD(e)}},{key:"subsetBelow",value:function(e){return new ED(e)}},{key:"suppressBanner",value:function(e){return new dD(e)}},{key:"tagged",value:function(e){return new yD(e)}},{key:"template",value:function(e){return new pD(e)}},{key:"templateCache",value:function(e){return new wD(e)}},{key:"threshold",value:function(e){return new vD(e)}},{key:"to",value:function(e){return new mD(e)}},{key:"trace",value:function(e){return new bD(e)}},{key:"transform",value:function(e){return new kD(e)}},{key:"type",value:function(e){return new DD(e)}},{key:"uri",value:function(e){return new SD(e)}},{key:"validate",value:function(e){return new FD(e)}},{key:"validateApprovalSignatures",value:function(e){return new xD(e)}},{key:"validationMessaging",value:function(e){return new RD(e)}},{key:"version",value:function(e){return new GD(e)}},{key:"versionControl",value:function(e){return new ND(e)}},{key:"viewerPreferences",value:function(e){return new LD(e)}},{key:"webClient",value:function(e){return new UD(e)}},{key:"whitespace",value:function(e){return new MD(e)}},{key:"window",value:function(e){return new JD(e)}},{key:"xdc",value:function(e){return new HD(e)}},{key:"xdp",value:function(e){return new YD(e)}},{key:"xsl",value:function(e){return new PD(e)}},{key:"zpl",value:function(e){return new OD(e)}}])}();function TD(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function $F(e,t){if(e){if("string"==typeof e)return ex(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ex(e,t):void 0}}function ex(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r1&&void 0!==arguments[1]&&arguments[1]?this[rx]=!0:(e=e.replaceAll(ax,""),this.style.includes("xfa-spacerun:yes")||(e=e.replaceAll(ix," "))),e&&(this[UE]+=e)}},{key:md,value:function(e){var t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],A=Object.create(null),n={top:NaN,bottom:NaN,left:NaN,right:NaN},i=null,a=zF(this.style.split(";").map((function(e){return e.split(":",2)})));try{for(a.s();!(t=a.n()).done;){var o=VF(t.value,2),s=o[0],c=o[1];switch(s){case"font-family":A.typeface=_d(c);break;case"font-size":A.size=ey(c);break;case"font-weight":A.weight=c;break;case"font-style":A.posture=c;break;case"letter-spacing":A.letterSpacing=ey(c);break;case"margin":var g=c.split(/ \\t/).map((function(e){return ey(e)}));switch(g.length){case 1:n.top=n.bottom=n.left=n.right=g[0];break;case 2:n.top=n.bottom=g[0],n.left=n.right=g[1];break;case 3:n.top=g[0],n.bottom=g[2],n.left=n.right=g[1];break;case 4:n.top=g[0],n.left=g[1],n.bottom=g[2],n.right=g[3]}break;case"margin-top":n.top=ey(c);break;case"margin-bottom":n.bottom=ey(c);break;case"margin-left":n.left=ey(c);break;case"margin-right":n.right=ey(c);break;case"line-height":i=ey(c)}}}catch(e){a.e(e)}finally{a.f()}if(e.pushData(A,n,i),this[UE])e.addString(this[UE]);else{var u,l=zF(this[VE]());try{for(l.s();!(u=l.n()).done;){var h=u.value;"#text"!==h[Ed]?h[md](e):e.addString(h[UE])}}catch(e){l.e(e)}finally{l.f()}}r&&e.popFont()}},{key:Md,value:function(e){var t,r=[];return this[HE]={children:r},this[FE]({}),0!==r.length||this[UE]?(t=this[rx]?this[UE]?this[UE].replaceAll(ox,"\\n"):void 0:this[UE]||void 0,Ay.success({name:this[Ed],attributes:{href:this.href,style:sx(this.style,this,this[rx])},children:r,value:t})):Ay.EMPTY}}])}(),ux=function(e){function t(e){var r;return YF(this,t),(r=TF(this,t,[e,"a"])).href=Kp(e.href)||"",r}return _F(t,gx),OF(t)}(),lx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"b"])}return _F(t,gx),OF(t,[{key:md,value:function(e){e.pushFont({weight:"bold"}),jF(t,md,this,3)([e]),e.popFont()}}])}(),hx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"body"])}return _F(t,gx),OF(t,[{key:Md,value:function(e){var r=jF(t,Md,this,3)([e]),A=r.html;return A?(A.name="div",A.attributes.class=["xfaRich"],r):Ay.EMPTY}}])}(),Ix=function(e){function t(e){return YF(this,t),TF(this,t,[e,"br"])}return _F(t,gx),OF(t,[{key:Ld,value:function(){return"\\n"}},{key:md,value:function(e){e.addString("\\n")}},{key:Md,value:function(e){return Ay.success({name:"br"})}}])}(),fx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"html"])}return _F(t,gx),OF(t,[{key:Md,value:function(e){var t=[];if(this[HE]={children:t},this[FE]({}),0===t.length)return Ay.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[UE]||""});if(1===t.length){var r,A=t[0];if(null!==(r=A.attributes)&&void 0!==r&&r.class.includes("xfaRich"))return Ay.success(A)}return Ay.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}])}(),Cx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"i"])}return _F(t,gx),OF(t,[{key:md,value:function(e){e.pushFont({posture:"italic"}),jF(t,md,this,3)([e]),e.popFont()}}])}(),Bx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"li"])}return _F(t,gx),OF(t)}(),Qx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"ol"])}return _F(t,gx),OF(t)}(),Ex=function(e){function t(e){return YF(this,t),TF(this,t,[e,"p"])}return _F(t,gx),OF(t,[{key:md,value:function(e){jF(t,md,this,3)([e,!1]),e.addString("\\n"),e.addPara(),e.popFont()}},{key:Ld,value:function(){return this[td]()[VE]().at(-1)===this?jF(t,Ld,this,3)([]):jF(t,Ld,this,3)([])+"\\n"}}])}(),dx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"span"])}return _F(t,gx),OF(t)}(),yx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"sub"])}return _F(t,gx),OF(t)}(),px=function(e){function t(e){return YF(this,t),TF(this,t,[e,"sup"])}return _F(t,gx),OF(t)}(),vx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"ul"])}return _F(t,gx),OF(t)}(),mx=function(){function e(){YF(this,e)}return OF(e,null,[{key:Pd,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"a",value:function(e){return new ux(e)}},{key:"b",value:function(e){return new lx(e)}},{key:"body",value:function(e){return new hx(e)}},{key:"br",value:function(e){return new Ix(e)}},{key:"html",value:function(e){return new fx(e)}},{key:"i",value:function(e){return new Cx(e)}},{key:"li",value:function(e){return new Bx(e)}},{key:"ol",value:function(e){return new Qx(e)}},{key:"p",value:function(e){return new Ex(e)}},{key:"span",value:function(e){return new dx(e)}},{key:"sub",value:function(e){return new yx(e)}},{key:"sup",value:function(e){return new px(e)}},{key:"ul",value:function(e){return new vx(e)}}])}(),wx={config:KD,connection:lS,datasets:wS,localeSet:aF,signature:BF,stylesheet:DF,template:Jw,xdp:HF,xhtml:mx};function bx(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,A=Array(t);r0&&void 0!==arguments[0]?arguments[0]:null;Rx(this,e),this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max.apply(Math,function(e){return function(e){if(Array.isArray(e))return xx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Fx(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.")}()}(Object.values(Od).map((function(e){return e.id})))),this._currentNamespace=t||new Dx(++this._nextNsId)}),[{key:"buildRoot",value:function(e){return new Ox(e)}},{key:"build",value:function(e){var t=e.nsPrefix,r=e.name,A=e.attributes,n=e.namespace,i=e.prefixes,a=null!==n;if(a&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(n)),i&&this._addNamespacePrefix(i),A.hasOwnProperty(dd)){for(var o=wx.datasets,s=A[dd],c=null,g=0,u=Object.entries(s);g0}},{key:"_searchNamespace",value:function(e){var t=this._namespaces.get(e);if(t)return t;for(var r=0,A=Object.entries(Od);r=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var A=t.value,n=A.prefix,i=A.value,a=this._searchNamespace(i),o=this._namespacePrefixes.get(n);o||(o=[],this._namespacePrefixes.set(n,o)),o.push(a)}}catch(e){r.e(e)}finally{r.f()}}},{key:"_getNamespaceToUse",value:function(e){if(!e)return this._currentNamespace;var t=this._namespacePrefixes.get(e);return(null==t?void 0:t.length)>0?t.at(-1):(q("Unknown namespace prefix: ".concat(e,".")),null)}},{key:"clean",value:function(e){var t=this,r=e.hasNamespace,A=e.prefixes,n=e.nsAgnostic;r&&(this._currentNamespace=this._namespaceStack.pop()),A&&A.forEach((function(e){var r=e.prefix;t._namespacePrefixes.get(r).pop()})),n&&this._nsAgnosticLevel--}}])}();function qx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||jx(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 jx(e,t){if(e){if("string"==typeof e)return Wx(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wx(e,t):void 0}}function Wx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r0&&void 0!==arguments[0]?arguments[0]:null,A=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Xx(this,t))._builder=new Tx(r),e._stack=[],e._globalData={usedTypefaces:new Set},e._ids=new Map,e._current=e._builder.buildRoot(e._ids),e._errorCode=0,e._whiteRegex=/^\\s+$/,e._nbsps=/\\xa0+/g,e._richText=A,e}return 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$x(e,t)}(t,nB),function(e,t,r){return t&&Zx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:function(e){if(this.parseXml(e),0===this._errorCode)return this._current[YE](),this._current.element}},{key:"onText",value:function(e){e=e.replace(this._nbsps,(function(e){return e.slice(1)+" "})),this._richText||this._current[kE]()?this._current[vd](e,this._richText):this._whiteRegex.test(e)||this._current[vd](e.trim())}},{key:"onCdata",value:function(e){this._current[vd](e)}},{key:"_mkAttributes",value:function(e,t){var r,A=null,n=null,i=Object.create({}),a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=jx(e))){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(e);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=o.name,c=o.value;if("xmlns"===s)A?q("XFA - multiple namespace definition in <".concat(t,">")):A=c;else if(s.startsWith("xmlns:")){var g=s.substring(6);n||(n=[]),n.push({prefix:g,value:c})}else{var u=s.indexOf(":");if(-1===u)i[s]=c;else{var l,h=i[dd];h||(h=i[dd]=Object.create(null));var I=[s.slice(0,u),s.slice(u+1)],f=I[0],C=I[1];((l=h)[f]||(l[f]=Object.create(null)))[C]=c}}}}catch(e){a.e(e)}finally{a.f()}return[A,n,i]}},{key:"_getNameAndPrefix",value:function(e,t){var r=e.indexOf(":");return-1===r?[e,null]:[e.substring(r+1),t?"":e.substring(0,r)]}},{key:"onBeginElement",value:function(e,t,r){var A=qx(this._mkAttributes(t,e),3),n=A[0],i=A[1],a=A[2],o=qx(this._getNameAndPrefix(e,this._builder.isNsAgnostic()),2),s=o[0],c=o[1],g=this._builder.build({nsPrefix:c,name:s,attributes:a,namespace:n,prefixes:i});if(g[Ad]=this._globalData,r)return g[YE](),this._current[yd](g)&&g[xd](this._ids),void g[xE](this._builder);this._stack.push(this._current),this._current=g}},{key:"onEndElement",value:function(e){var r=this._current;if(r[sd]()&&"string"==typeof r[UE]){var A=new t;A._globalData=this._globalData;var n=A.parse(r[UE]);r[UE]=null,r[yd](n)}r[YE](),this._current=this._stack.pop(),this._current[yd](r)&&r[xd](this._ids),r[xE](this._builder)}},{key:"onError",value:function(e){this._errorCode=e}}])}();function tR(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function AR(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function nR(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){AR(i,A,n,a,o,"next",e)}function o(e){AR(i,A,n,a,o,"throw",e)}a(void 0)}))}}function iR(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(this.form[Ad].usedTypefaces);try{for(A.s();!(t=A.n()).done;){var n=t.value;n=_d(n),this.form[Ad].fontFinder.find(n)||r.push(n)}}catch(e){A.e(e)}finally{A.f()}return r.length>0?r:null}},{key:"appendFonts",value:function(e,t){this.form[Ad].fontFinder.add(e,t)}},{key:"getPages",value:(e=nR(rR().mark((function e(){var t;return rR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.pages){e.next=3;break}return e.next=3,this._createPages();case 3:return t=this.pages,this.pages=null,e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"serializeData",value:function(e){return this.dataHandler.serialize(e)}}],[{key:"_createDocument",value:function(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}},{key:"getRichTextAsHtml",value:function(e){if(!e||"string"!=typeof e)return null;try{var t=new eR(mx,!0).parse(e);if(!["body","xhtml"].includes(t[Ed])){var r=mx.body({});r[SE](t),t=r}var A=t[Md]();if(!A.success)return null;var n=A.html,i=n.attributes;return i&&(i.class&&(i.class=i.class.filter((function(e){return!e.startsWith("xfa")}))),i.dir="auto"),{html:n,str:t[Ld]()}}catch(e){q("XFA - an error occurred during parsing of rich text: ".concat(e))}return null}}]);var e,t,r}();function sR(e,t,r){return e.set(cR(e,t),r),r}function cR(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function gR(e,t,r,A){var n=uR(fR(1&A?e.prototype:e),t,r);return 2&A&&"function"==typeof n?function(e){return n.apply(r,e)}:n}function uR(){return uR="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var A=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=fR(e)););return e}(e,t);if(A){var n=Object.getOwnPropertyDescriptor(A,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},uR.apply(null,arguments)}function lR(e,t,r){return t=fR(t),hR(e,IR()?Reflect.construct(t,r||[],fR(e).constructor):t.apply(e,r))}function hR(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function IR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(IR=function(){return!!e})()}function fR(e){return fR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fR(e)}function CR(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BR(e,t)}function BR(e,t){return BR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BR(e,t)}function QR(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=vR(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function ER(){ER=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function dR(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function yR(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){dR(i,A,n,a,o,"next",e)}function o(e){dR(i,A,n,a,o,"throw",e)}a(void 0)}))}}function pR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||vR(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 vR(e,t){if(e){if("string"==typeof e)return mR(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mR(e,t):void 0}}function mR(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,s=e.fetchIfRef(t);if(s instanceof He){var c=r.acroForm,g=r.pdfManager,u=t instanceof Ye?t.toString():"annot_".concat(A.createObjId()),l=s.get("Subtype"),h={xref:e,ref:t,dict:s,subtype:l=l instanceof Ue?l.name:null,id:u,annotationGlobals:r,collectFields:n,orphanFields:i,needAppearances:!n&&!0===c.get("NeedAppearances"),pageIndex:a,evaluatorOptions:g.evaluatorOptions,pageRef:o};switch(l){case"Link":return new KR(h);case"Text":return new OR(h);case"Widget":var I=yt({dict:s,key:"FT"});switch(I=I instanceof Ue?I.name:null){case"Tx":return new JR(h);case"Btn":return new HR(h);case"Ch":return new YR(h);case"Sig":return new PR(h)}return q('Unimplemented widget field type "'.concat(I,'", ')+"falling back to base field type."),new MR(h);case"Popup":return new TR(h);case"FreeText":return new qR(h);case"Line":return new jR(h);case"Square":return new WR(h);case"Circle":return new ZR(h);case"PolyLine":return new _R(h);case"Polygon":return new XR(h);case"Caret":return new VR(h);case"Ink":return new zR(h);case"Highlight":return new $R(h);case"Underline":return new eG(h);case"Squiggly":return new tG(h);case"StrikeOut":return new rG(h);case"Stamp":return new nG(h);case"FileAttachment":return new iG(h);default:return n||q(l?'Unimplemented annotation type "'.concat(l,'", ')+"falling back to base annotation.":"Annotation is missing the required /Subtype."),new NR(h)}}}},{key:"_getPageIndex",value:(r=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.fetchIfRefAsync(r);case 3:if((n=e.sent)instanceof He){e.next=6;break}return e.abrupt("return",-1);case 6:if(!((i=n.getRaw("P"))instanceof Ye)){e.next=18;break}return e.prev=8,e.next=11,A.ensureCatalog("getPageIndex",[i]);case 11:return a=e.sent,e.abrupt("return",a);case 15:e.prev=15,e.t0=e.catch(8),T('_getPageIndex -- not a valid page reference: "'.concat(e.t0,'".'));case 18:if(!n.has("Kids")){e.next=20;break}return e.abrupt("return",-1);case 20:return e.next=22,A.ensureDoc("numPages");case 22:o=e.sent,s=0;case 24:if(!(s1&&void 0!==arguments[1]?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(e))return t;var r=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:return Ur.singletons.gray.getRgbItem(e,0,r,0),r;case 3:return Ur.singletons.rgb.getRgbItem(e,0,r,0),r;case 4:return Ur.singletons.cmyk.getRgbItem(e,0,r,0),r;default:return t}}function xR(e){return Array.from(e,(function(e){return e/255}))}function RR(e,t){var r=e.getArray("QuadPoints");if(!St(r,null)||0===r.length||r.length%8>0)return null;for(var A=new Float32Array(r.length),n=0,i=r.length;nt[2]||Bt[3]))return null;A.set([f,Q,C,Q,f,B,C,B],n)}return A}function GR(e,t,r){var A=pR(ge.getAxialAlignedBoundingBox(t,r),4),n=A[0],i=A[1],a=A[2],o=A[3];if(n===a||i===o)return[1,0,0,1,e[0],e[1]];var s=(e[2]-e[0])/(a-n),c=(e[3]-e[1])/(o-i);return[s,0,0,c,e[0]-n*s,e[1]-i*c]}var NR=function(){return kR((function e(t){wR(this,e);var r=t.dict,A=t.xref,n=t.annotationGlobals,i=t.ref,a=t.orphanFields,o=null==a?void 0:a.get(i);o&&r.set("Parent",o),this.setTitle(r.get("T")),this.setContents(r.get("Contents")),this.setModificationDate(r.get("M")),this.setFlags(r.get("F")),this.setRectangle(r.getArray("Rect")),this.setColor(r.getArray("C")),this.setBorderStyle(r),this.setAppearance(r),this.setOptionalContent(r);var s=r.get("MK");this.setBorderAndBackgroundColors(s),this.setRotation(s,r),this.ref=t.ref instanceof Ye?t.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance);var c=!!(128&this.flags),g=!!(512&this.flags);if(this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype,hasOwnCanvas:!1,noRotate:!!(16&this.flags),noHTML:c&&g,isEditable:!1,structParent:-1},n.structTreeRoot){var u=r.get("StructParent");this.data.structParent=u=Number.isInteger(u)&&u>=0?u:-1,n.structTreeRoot.addAnnotationIdToPage(t.pageRef,u)}if(t.collectFields){var l=r.get("Kids");if(Array.isArray(l)){var h,I=[],f=QR(l);try{for(f.s();!(h=f.n()).done;){var C=h.value;C instanceof Ye&&I.push(C.toString())}}catch(e){f.e(e)}finally{f.f()}0!==I.length&&(this.data.kidIds=I)}this.data.actions=Mt(A,r,b),this.data.fieldName=this._constructFieldName(r),this.data.pageIndex=t.pageIndex}var B=r.get("IT");B instanceof Ue&&(this.data.it=B.name),this._isOffscreenCanvasSupported=t.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}),[{key:"_hasFlag",value:function(e,t){return!!(e&t)}},{key:"_buildFlags",value:function(e,t){var r=this.flags;if(void 0===e){if(void 0===t)return;return t?-5&r:-3&r|4}return e?(r|=4,t?-33&r|2:-3&r|v):(r&=-35,t?-5&r:4|r)}},{key:"_isViewable",value:function(e){return!this._hasFlag(e,1)&&!this._hasFlag(e,v)}},{key:"_isPrintable",value:function(e){return this._hasFlag(e,4)&&!this._hasFlag(e,2)&&!this._hasFlag(e,1)}},{key:"mustBeViewed",value:function(e,t){var r,A=null==e||null===(r=e.get(this.data.id))||void 0===r?void 0:r.noView;return void 0!==A?!A:this.viewable&&!this._hasFlag(this.flags,2)}},{key:"mustBePrinted",value:function(e){var t,r=null==e||null===(t=e.get(this.data.id))||void 0===t?void 0:t.noPrint;return void 0!==r?!r:this.printable}},{key:"mustBeViewedWhenEditing",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?!this.data.isEditable:!(null!=t&&t.has(this.data.id))}},{key:"viewable",get:function(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}},{key:"printable",get:function(){return null!==this.data.quadPoints&&0!==this.flags&&this._isPrintable(this.flags)}},{key:"_parseStringHelper",value:function(e){var t="string"==typeof e?Ie(e):"";return{str:t,dir:t&&"rtl"===UI(t).dir?"rtl":"ltr"}}},{key:"setDefaultAppearance",value:function(e){var t=e.dict,r=e.annotationGlobals,A=yt({dict:t,key:"DA"})||r.acroForm.get("DA");this._defaultAppearance="string"==typeof A?A:"",this.data.defaultAppearanceData=dC(this._defaultAppearance)}},{key:"setTitle",value:function(e){this._title=this._parseStringHelper(e)}},{key:"setContents",value:function(e){this._contents=this._parseStringHelper(e)}},{key:"setModificationDate",value:function(e){this.modificationDate="string"==typeof e?e:null}},{key:"setFlags",value:function(e){this.flags=Number.isInteger(e)&&e>0?e:0,1&this.flags&&"Annotation"!==this.constructor.name&&(this.flags^=1)}},{key:"hasFlag",value:function(e){return this._hasFlag(this.flags,e)}},{key:"setRectangle",value:function(e){this.rectangle=Rt(e,[0,0,0,0])}},{key:"setColor",value:function(e){this.color=FR(e)}},{key:"setLineEndings",value:function(e){if(this.lineEndings=["None","None"],Array.isArray(e)&&2===e.length)for(var t=0;t<2;t++){var r=e[t];if(r instanceof Ue)switch(r.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[t]=r.name;continue}q("Ignoring invalid lineEnding: ".concat(r))}}},{key:"setRotation",value:function(e,t){this.rotation=0;var r=e instanceof He?e.get("R")||0:t.get("Rotate")||0;Number.isInteger(r)&&0!==r&&((r%=360)<0&&(r+=360),r%90==0&&(this.rotation=r))}},{key:"setBorderAndBackgroundColors",value:function(e){e instanceof He?(this.borderColor=FR(e.getArray("BC"),null),this.backgroundColor=FR(e.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}},{key:"setBorderStyle",value:function(e){if(this.borderStyle=new LR,e instanceof He)if(e.has("BS")){var t=e.get("BS");if(t instanceof He){var r=t.get("Type");r&&!Ke(r,"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")){var A=e.getArray("Border");Array.isArray(A)&&A.length>=3&&(this.borderStyle.setHorizontalCornerRadius(A[0]),this.borderStyle.setVerticalCornerRadius(A[1]),this.borderStyle.setWidth(A[2],this.rectangle),4===A.length&&this.borderStyle.setDashArray(A[3],!0))}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function(e){this.appearance=null;var t=e.get("AP");if(t instanceof He){var r=t.get("N");if(r instanceof ze)this.appearance=r;else if(r instanceof He){var A=e.get("AS");if(A instanceof Ue&&r.has(A.name)){var n=r.get(A.name);n instanceof ze&&(this.appearance=n)}}}}},{key:"setOptionalContent",value:function(e){this.oc=null;var t=e.get("OC");t instanceof Ue?q("setOptionalContent: Support for /Name-entry is not implemented."):t instanceof He&&(this.oc=t)}},{key:"loadResources",value:function(e,t){return t.dict.getAsync("Resources").then((function(t){if(t)return new bE(t,e,t.xref).load().then((function(){return t}))}))}},{key:"getOperatorList",value:(r=yR(ER().mark((function e(t,r,A,n){var i,a,o,s,c,g,u,l,h,I,f,B,Q;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.data,a=i.hasOwnCanvas,o=i.id,s=i.rect,c=this.appearance,!(g=!!(a&&2&A))||s[0]!==s[2]&&s[1]!==s[3]){e.next=6;break}return this.data.hasOwnCanvas=!1,e.abrupt("return",{opList:new kf,separateForm:!1,separateCanvas:!1});case 6:if(c){e.next=11;break}if(g){e.next=9;break}return e.abrupt("return",{opList:new kf,separateForm:!1,separateCanvas:!1});case 9:(c=new or("")).dict=new He;case 11:return u=c.dict,e.next=14,this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],c);case 14:if(l=e.sent,h=xt(u.getArray("BBox"),[0,0,1,1]),I=Ft(u.getArray("Matrix"),C),f=GR(s,h,I),B=new kf,!this.oc){e.next=23;break}return e.next=22,t.parseMarkedContentProps(this.oc,null);case 22:Q=e.sent;case 23:return void 0!==Q&&B.addOp(J,["OC",Q]),B.addOp(80,[o,s,f,I,g]),e.next=27,t.getOperatorList({stream:c,task:r,resources:l,operatorList:B,fallbackFontDict:this._fallbackFontDict});case 27:return B.addOp(81,[]),void 0!==Q&&B.addOp(H,[]),this.reset(),e.abrupt("return",{opList:B,separateForm:!1,separateCanvas:g});case 31:case"end":return e.stop()}}),e,this)}))),function(e,t,A,n){return r.apply(this,arguments)})},{key:"save",value:(t=yR(ER().mark((function e(t,r,A){return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)}))),function(e,r,A){return t.apply(this,arguments)})},{key:"hasTextContent",get:function(){return!1}},{key:"extractTextContent",value:(e=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.appearance){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance);case 4:return n=e.sent,i=[],a=[],o=null,e.t0=Math.Infinity,u={desiredSize:e.t0,ready:!0,enqueue(e,t){s=QR(e.items);try{for(s.s();!(c=s.n()).done;)void 0!==(g=c.value).str&&(o||(o=g.transform.slice(-2)),a.push(g.str),g.hasEOL&&(i.push(a.join("").trimEnd()),a.length=0))}catch(e){s.e(e)}finally{s.f()}}},e.next=12,t.getTextContent({stream:this.appearance,task:r,resources:n,includeMarkedContent:!0,keepWhiteSpace:!0,sink:u,viewBox:A});case 12:this.reset(),a.length&&i.push(a.join("").trimEnd()),(i.length>1||i[0])&&(l=this.appearance.dict,h=xt(l.getArray("BBox"),null),I=Ft(l.getArray("Matrix"),null),this.data.textPosition=this._transformPoint(o,h,I),this.data.textContent=i);case 15:case"end":return e.stop()}}),e,this)}))),function(t,r,A){return e.apply(this,arguments)})},{key:"_transformPoint",value:function(e,t,r){var A=this.data.rect;t||(t=[0,0,1,1]),r||(r=[1,0,0,1,0,0]);var n=GR(A,t,r);return n[4]-=A[0],n[5]-=A[1],e=ge.applyTransform(e,n),ge.applyTransform(e,r)}},{key:"getFieldObject",value:function(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}},{key:"reset",value:function(){var e,t=QR(this._streams);try{for(t.s();!(e=t.n()).done;)e.value.reset()}catch(e){t.e(e)}finally{t.f()}}},{key:"_constructFieldName",value:function(e){if(!e.has("T")&&!e.has("Parent"))return q("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return Ie(e.get("T"));var t=[];e.has("T")&&t.unshift(Ie(e.get("T")));var r=e,A=new Pe;for(e.objId&&A.put(e.objId);r.has("Parent")&&(r=r.get("Parent"))instanceof He&&(!r.objId||!A.has(r.objId));)r.objId&&A.put(r.objId),r.has("T")&&t.unshift(Ie(r.get("T")));return t.join(".")}}]);var e,t,r}(),LR=function(){return kR((function e(){wR(this,e),this.width=1,this.rawWidth=1,this.style=1,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}),[{key:"setWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if(e instanceof Ue)this.width=0;else if("number"==typeof e){if(e>0){this.rawWidth=e;var r=(t[2]-t[0])/2,A=(t[3]-t[1])/2;r>0&&A>0&&(e>r||e>A)&&(q("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}},{key:"setStyle",value:function(e){if(e instanceof Ue)switch(e.name){case"S":this.style=1;break;case"D":this.style=2;break;case"B":this.style=3;break;case"I":this.style=4;break;case"U":this.style=5}}},{key:"setDashArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){var r,A=!0,n=!0,i=QR(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!(+a>=0)){A=!1;break}a>0&&(n=!1)}}catch(e){i.e(e)}finally{i.f()}0===e.length||A&&!n?(this.dashArray=e,t&&this.setStyle(Ue.get("D"))):this.width=0}else e&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}},{key:"setVerticalCornerRadius",value:function(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}])}(),UR=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict;if(A.has("IRT")){var n=A.getRaw("IRT");r.data.inReplyTo=n instanceof Ye?n.toString():null;var i=A.get("RT");r.data.replyType=i instanceof Ue?i.name:"R"}var a=null;if(r.data.replyType===p){var o=A.get("IRT");r.setTitle(o.get("T")),r.data.titleObj=r._title,r.setContents(o.get("Contents")),r.data.contentsObj=r._contents,o.has("CreationDate")?(r.setCreationDate(o.get("CreationDate")),r.data.creationDate=r.creationDate):r.data.creationDate=null,o.has("M")?(r.setModificationDate(o.get("M")),r.data.modificationDate=r.modificationDate):r.data.modificationDate=null,a=o.getRaw("Popup"),o.has("C")?(r.setColor(o.getArray("C")),r.data.color=r.color):r.data.color=null}else r.data.titleObj=r._title,r.setCreationDate(A.get("CreationDate")),r.data.creationDate=r.creationDate,a=A.getRaw("Popup"),A.has("C")||(r.data.color=null);return r.data.popupRef=a instanceof Ye?a.toString():null,A.has("RC")&&(r.data.richText=oR.getRichTextAsHtml(A.get("RC"))),r}return CR(t,NR),kR(t,[{key:"setCreationDate",value:function(e){this.creationDate="string"==typeof e?e:null}},{key:"_setDefaultAppearance",value:function(e){var t=e.xref,r=e.extra,A=e.strokeColor,n=e.fillColor,i=e.blendMode,a=e.strokeAlpha,o=e.fillAlpha,s=e.pointsCallback,c=Number.MAX_VALUE,g=Number.MAX_VALUE,u=Number.MIN_VALUE,l=Number.MIN_VALUE,h=["q"];r&&h.push(r),A&&h.push("".concat(A[0]," ").concat(A[1]," ").concat(A[2]," RG")),n&&h.push("".concat(n[0]," ").concat(n[1]," ").concat(n[2]," rg"));var I=this.data.quadPoints;I||(I=Float32Array.from([this.rectangle[0],this.rectangle[3],this.rectangle[2],this.rectangle[3],this.rectangle[0],this.rectangle[1],this.rectangle[2],this.rectangle[1]]));for(var f=0,C=I.length;f0?t:null}},{key:"amendSavedDict",value:function(e,t){}},{key:"save",value:(n=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I,f,B,Q,E,d,y,p,v,m,w,b,k,D;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=null==A?void 0:A.get(this.data.id),a=this._buildFlags(null==i?void 0:i.noView,null==i?void 0:i.noPrint),o=null==i?void 0:i.value,s=null==i?void 0:i.rotation,o!==this.data.fieldValue&&void 0!==o){e.next=7;break}if(this._hasValueFromXFA||void 0!==s||void 0!==a){e.next=6;break}return e.abrupt("return",null);case 6:o||(o=this.data.fieldValue);case 7:if(void 0!==s||this._hasValueFromXFA||!Array.isArray(o)||!Array.isArray(this.data.fieldValue)||!Be(o,this.data.fieldValue)||void 0!==a){e.next=9;break}return e.abrupt("return",null);case 9:if(void 0===s&&(s=this.rotation),c=null,this._needAppearances){e.next=19;break}return e.next=14,this._getAppearance(t,r,8,A);case 14:if(null!==(c=e.sent)||void 0!==a){e.next=17;break}return e.abrupt("return",null);case 17:e.next=19;break;case 19:if(g=!1,null!==(n=c)&&void 0!==n&&n.needAppearances&&(g=!0,c=null),u=t.xref,(l=u.fetchIfRef(this.ref))instanceof He){e.next=25;break}return e.abrupt("return",null);case 25:h=new He(u),I=QR(l.getKeys());try{for(I.s();!(f=I.n()).done;)"AP"!==(B=f.value)&&h.set(B,l.getRaw(B))}catch(e){I.e(e)}finally{I.f()}if(void 0!==a&&(h.set("F",a),null!==c||g||(Q=l.getRaw("AP"))&&h.set("AP",Q)),E={path:this.data.fieldName,value:o},h.set("V",Array.isArray(o)?o.map(jt):jt(o)),this.amendSavedDict(A,h),(d=this._getMKDict(s))&&h.set("MK",d),y=[],p=[{ref:this.ref,data:"",xfa:E,needAppearances:g}],null===c){e.next=53;break}return v=u.getNewTemporaryRef(),m=new He(u),h.set("AP",m),m.set("N",v),w=this._getSaveFieldResources(u),b=new or(c),(k=b.dict=new He(u)).set("Subtype",Ue.get("Form")),k.set("Resources",w),k.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]),(D=this.getRotationMatrix(A))!==C&&k.set("Matrix",D),e.next=51,iQ(v,b,y,u);case 51:p.push({ref:v,data:y.join(""),xfa:null,needAppearances:!1}),y.length=0;case 53:return h.set("M","D:".concat(Qe())),e.next=56,iQ(this.ref,h,y,u);case 56:return p[0].data=y.join(""),e.abrupt("return",p);case 58:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"_getAppearance",value:(A=yR(ER().mark((function e(r,A,n,i){var a,o,s,c,g,u,l,h,I,f,C,B,Q,d,y,p,v,w,b,k,D,S,F,x,R,G,N,L,U,M,J,H,Y,P,O,K,T,j,Z,_,X,V,z,$;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.hasFieldFlag(m)){e.next=3;break}return e.abrupt("return",null);case 3:if((a=null==i?void 0:i.get(this.data.id))&&(o=a.formattedValue||a.value,s=a.rotation),void 0!==s||void 0!==o||this._needAppearances){e.next=8;break}if(this._hasValueFromXFA&&!this.appearance){e.next=8;break}return e.abrupt("return",null);case 8:if(c=this.getBorderAndBackgroundAppearances(i),void 0!==o){e.next=13;break}if(o=this.data.fieldValue){e.next=13;break}return e.abrupt("return","/Tx BMC q ".concat(c,"Q EMC"));case 13:if(Array.isArray(o)&&1===o.length&&(o=o[0]),W("string"==typeof o,"Expected \`value\` to be a string."),o=o.trimEnd(),this.data.combo&&(g=this.data.options.find((function(e){var t=e.exportValue;return o===t})),o=(null==g?void 0:g.displayValue)||o),""!==o){e.next=19;break}return e.abrupt("return","/Tx BMC q ".concat(c,"Q EMC"));case 19:return void 0===s&&(s=this.rotation),u=-1,this.data.multiLine?(l=o.split(/\\r\\n?|\\n/).map((function(e){return e.normalize("NFC")})),u=l.length):l=[o.replace(/\\r\\n?|\\n/,"").normalize("NFC")],h=1,I=2,f=this.data.rect[3]-this.data.rect[1],C=this.data.rect[2]-this.data.rect[0],90!==s&&270!==s||(C=(B=[f,C])[0],f=B[1]),this._defaultAppearance||(this.data.defaultAppearanceData=dC(this._defaultAppearance="/Helvetica 0 Tf 0 g")),e.next=30,t._getFontData(r,A,this.data.defaultAppearanceData,this._fieldResources.mergedResources);case 30:Q=e.sent,v=[],w=!1,b=QR(l);try{for(b.s();!(k=b.n()).done;)D=k.value,(S=Q.encodeString(D)).length>1&&(w=!0),v.push(S.join(""))}catch(e){b.e(e)}finally{b.f()}if(!(w&&8&n)){e.next=37;break}return e.abrupt("return",{needAppearances:!0});case 37:if(!w||!this._isOffscreenCanvasSupported){e.next=59;break}if(F=this.data.comb?"monospace":"sans-serif",x=new vC(r.xref,F),R=x.createFontResources(l.join("")),G=R.getRaw("Font"),this._fieldResources.mergedResources.has("Font")){N=this._fieldResources.mergedResources.get("Font"),L=QR(G.getKeys());try{for(L.s();!(U=L.n()).done;)M=U.value,N.set(M,G.getRaw(M))}catch(e){L.e(e)}finally{L.f()}}else this._fieldResources.mergedResources.set("Font",G);return J=x.fontName.name,e.next=46,t._getFontData(r,A,{fontName:J,fontSize:0},R);case 46:for(Q=e.sent,H=0,Y=v.length;H2)){e.next=76;break}return e.abrupt("return","/Tx BMC q ".concat(c,"BT ")+d+" 1 0 0 1 ".concat(Tt(I)," ").concat(Tt(V)," Tm (").concat(Lt(v[0]),") Tj")+" ET Q EMC");case 76:return z={shift:0},$=this._renderText(v[0],Q,y,C,X,z,I,V),e.abrupt("return","/Tx BMC q ".concat(c,"BT ")+d+" 1 0 0 1 0 0 Tm ".concat($)+" ET Q EMC");case 79:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return A.apply(this,arguments)})},{key:"_getTextWidth",value:function(e,t){return t.charsToGlyphs(e).reduce((function(e,t){return e+t.width}),0)/1e3}},{key:"_computeFontSize",value:function(e,t,r,A,n){var i=this,a=this.data.defaultAppearanceData.fontSize,o=(a||12)*Q,s=Math.round(e/o);if(!a){var c=function(e){return Math.floor(100*e)/100};if(-1===n){var g=this._getTextWidth(r,A);a=c(Math.min(e/Q,t/g)),s=1}else{var u,l=r.split(/\\r\\n?|\\n/),h=[],I=QR(l);try{for(I.s();!(u=I.n()).done;){var f=u.value,C=A.encodeString(f).join(""),B=A.charsToGlyphs(C),E=A.getCharPositions(C);h.push({line:C,glyphs:B,positions:E})}}catch(e){I.e(e)}finally{I.f()}var d=function(r){for(var n=0,a=0,o=h;ae)return!0}return!1};for(s=Math.max(s,n);d(a=c((o=e/s)/Q));)s++}var y=this.data.defaultAppearanceData,p=y.fontName,v=y.fontColor;this._defaultAppearance=function(e){var t=e.fontSize,r=e.fontColor;return"/".concat(Nt(e.fontName)," ").concat(t," Tf ").concat(pC(r,!0))}({fontSize:a,fontName:p,fontColor:v})}return[this._defaultAppearance,a,e/s]}},{key:"_renderText",value:function(e,t,r,A,n,i,a,o){var s,c=Tt((s=1===n?(A-this._getTextWidth(e,t)*r)/2:2===n?A-this._getTextWidth(e,t)*r-a:a)-i.shift);return i.shift=s,o=Tt(o),"".concat(c," ").concat(o," Td (").concat(Lt(e),") Tj")}},{key:"_getSaveFieldResources",value:function(e){var t,r=this._fieldResources,A=r.localResources,n=r.appearanceResources,i=r.acroFormResources,a=null===(t=this.data.defaultAppearanceData)||void 0===t?void 0:t.fontName;if(!a)return A||He.empty;for(var o=0,s=[A,n];o2)&&(n=null),r.data.textAlignment=n;var i=yt({dict:A,key:"MaxLen"});return(!Number.isInteger(i)||i<0)&&(i=0),r.data.maxLen=i,r.data.multiLine=r.hasFieldFlag(4096),r.data.comb=r.hasFieldFlag(16777216)&&!r.hasFieldFlag(4096)&&!r.hasFieldFlag(m)&&!r.hasFieldFlag(1048576)&&0!==r.data.maxLen,r.data.doNotScroll=r.hasFieldFlag(8388608),r}return CR(t,MR),kR(t,[{key:"hasTextContent",get:function(){return!!this.appearance&&!this._needAppearances}},{key:"_getCombAppearance",value:function(e,t,r,A,n,i,a,o,s,c,g){var u,l=n/this.data.maxLen,h=this.getBorderAndBackgroundAppearances(g),I=[],f=QR(t.getCharPositions(r));try{for(f.s();!(u=f.n()).done;){var C=pR(u.value,2),B=C[0],Q=C[1];I.push("(".concat(Lt(r.substring(B,Q)),") Tj"))}}catch(e){f.e(e)}finally{f.f()}var E=I.join(" ".concat(Tt(l)," 0 Td "));return"/Tx BMC q ".concat(h,"BT ")+e+" 1 0 0 1 ".concat(Tt(a)," ").concat(Tt(o+s)," Tm ").concat(E)+" ET Q EMC"}},{key:"_getMultilineAppearance",value:function(e,t,r,A,n,i,a,o,s,c,g,u){for(var l=[],h=n-2*o,I={shift:0},f=0,C=t.length;f4&&void 0!==arguments[4]?arguments[4]:{};e=n.line||e;var i=n.glyphs||t.charsToGlyphs(e);if(i.length<=1)return[e];for(var a=n.positions||t.getCharPositions(e),o=r/1e3,s=[],c=-1,g=-1,u=-1,l=0,h=0,I=0,f=i.length;IA?(s.push(e.substring(l,B)),l=B,h=d,c=-1,u=-1):(h+=d,c=B,g=Q,u=I):h+d>A?-1!==c?(s.push(e.substring(l,g)),l=g,I=u+1,c=-1,h=0):(s.push(e.substring(l,B)),l=B,h=d):h+=d}return l0,r.data.options=[];var i=yt({dict:A,key:"Opt"});if(Array.isArray(i))for(var a=0,o=i.length;a=0&&h0?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:e}}},{key:"amendSavedDict",value:function(e,t){var r;if(this.hasIndices){var A=null==e||null===(r=e.get(this.data.id))||void 0===r?void 0:r.value;Array.isArray(A)||(A=[A]);for(var n=[],i=this.data.options,a=0,o=0,s=i.length;av&&(v=D,m=k)}catch(e){w.e(e)}finally{w.f()}S=this._computeFontSize(p,l-2*g,m,E,-1),F=pR(S,2),d=F[0],y=F[1]}if(R=((x=y*Q)-y)/2,G=Math.floor(u/x),N=0,f.length>0&&(L=Math.min.apply(Math,f),U=Math.max.apply(Math,f),(N=Math.max(0,U-G+1))>L&&(N=L)),M=Math.min(N+G+1,I),J=["/Tx BMC q","1 1 ".concat(l," ").concat(u," re W n")],f.length){J.push("0.600006 0.756866 0.854904 rg"),H=QR(f);try{for(H.s();!(Y=H.n()).done;)P=Y.value,N<=P&&P1)){e.next=25;break}return e.abrupt("return",null);case 25:x=R.join(""),D.push(x),G=0,N=f.charsToGlyphs(x),L=QR(N);try{for(L.s();!(U=L.n()).done;)M=U.value,G+=M.width*b}catch(e){L.e(e)}finally{L.f()}k=Math.max(k,G);case 32:e.next=20;break;case 34:e.next=39;break;case 36:e.prev=36,e.t0=e.catch(18),S.e(e.t0);case 39:return e.prev=39,S.f(),e.finish(39);case 42:J=1,k>p&&(J=p/k),H=1,P=1*s,(O=(Y=Q*s)*w.length)>v&&(H=v/O),K=Math.min(J,H),T=s*K,e.t1=g,e.next=0===e.t1?54:90===e.t1?58:180===e.t1?62:270===e.t1?66:70;break;case 54:return W=[1,0,0,1],j=[c[0],c[1],p,v],q=[c[0],c[3]-P],e.abrupt("break",70);case 58:return W=[0,1,-1,0],j=[c[1],-c[2],p,v],q=[c[1],-c[0]-P],e.abrupt("break",70);case 62:return W=[-1,0,0,-1],j=[-c[2],-c[3],p,v],q=[-c[2],-c[1]-P],e.abrupt("break",70);case 66:return W=[0,-1,1,0],j=[-c[3],c[0],p,v],q=[-c[3],c[2]-P],e.abrupt("break",70);case 70:for((Z=["q","".concat(W.join(" ")," 0 0 cm"),"".concat(j.join(" ")," re W n"),"BT","".concat(pC(o,!0)),"0 Tc /Helv ".concat(Tt(T)," Tf")]).push("".concat(q.join(" ")," Td (").concat(Lt(D[0]),") Tj")),_=Tt(Y),X=1,V=D.length;X1&&void 0!==arguments[1]?arguments[1]:null;return e?!!this.data.isEditable&&(sR(AG,this,this.data.hasOwnCanvas),this.data.hasOwnCanvas=!0,!0):(this.data.hasOwnCanvas=(this,(t=AG).get(cR(t,this))),!(null!=r&&r.has(this.data.id)))}}],[{key:"createImage",value:(A=yR(ER().mark((function e(t,r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(A=t.width,n=t.height,i=new OffscreenCanvas(A,n),(a=i.getContext("2d",{alpha:!0})).drawImage(t,0,0),o=a.getImageData(0,0,A,n).data,s=new Uint32Array(o.buffer),(c=s.some(se.isLittleEndian?function(e){return e>>>24!=255}:function(e){return 255!=(255&e)}))&&(a.fillStyle="white",a.fillRect(0,0,A,n),a.drawImage(t,0,0)),g=i.convertToBlob({type:"image/jpeg",quality:1}).then((function(e){return e.arrayBuffer()})),u=Ue.get("XObject"),l=Ue.get("Image"),(h=new He(r)).set("Type",u),h.set("Subtype",l),h.set("BitsPerComponent",8),h.set("ColorSpace",Ue.get("DeviceRGB")),h.set("Filter",Ue.get("DCTDecode")),h.set("BBox",[0,0,A,n]),h.set("Width",A),h.set("Height",n),I=null,c){if(f=new Uint8Array(s.length),se.isLittleEndian)for(C=0,B=s.length;C>>24;else for(Q=0,E=s.length;Q=0&&o<=1?o:null,r}return CR(t,UR),kR(t)}();function aG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oG(e,t){for(var r=0;r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function EG(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function dG(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){EG(i,A,n,a,o,"next",e)}function o(e){EG(i,A,n,a,o,"throw",e)}a(void 0)}))}}function yG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||pG(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 pG(e,t){if(e){if("string"==typeof e)return vG(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vG(e,t):void 0}}function vG(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(this._persistentRefsCache);try{for(t.s();!(e=t.n()).done;){var r=yG(e.value,2),A=r[0],n=r[1];this._cacheMap.set(A,n)}}catch(e){t.e(e)}finally{t.f()}}this._persistentRefsCache=null}},{key:"setStartXRef",value:function(e){this.startXRefQueue=[e]}},{key:"parse",value:function(){var e,t,r,A=arguments.length>0&&void 0!==arguments[0]&&arguments[0];A?(q("Indexing all PDF objects"),e=this.indexObjects()):e=this.readXRef(),e.assignXref(this),this.trailer=e;try{t=e.get("Encrypt")}catch(e){if(e instanceof Ct)throw e;q('XRef.parse - Invalid "Encrypt" reference: "'.concat(e,'".'))}if(t instanceof He){var n=e.get("ID"),i=null!=n&&n.length?n[0]:"";t.suppressEncryption=!0,this.encrypt=new KB(t,i,this.pdfManager.password)}try{r=e.get("Root")}catch(e){if(e instanceof Ct)throw e;q('XRef.parse - Invalid "Root" reference: "'.concat(e,'".'))}if(r instanceof He)try{if(r.get("Pages")instanceof He)return void(this.root=r)}catch(e){if(e instanceof Ct)throw e;q('XRef.parse - Invalid "Pages" reference: "'.concat(e,'".'))}if(!A)throw new Et;throw new $("Invalid Root reference.")}},{key:"processXRefTable",value:function(e){if("tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2}),!Te(this.readXRefTable(e),"trailer"))throw new re("Invalid XRef table: could not find trailer dictionary");var t=e.getObj();if(t instanceof He||!t.dict||(t=t.dict),!(t instanceof He))throw new re("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,t}},{key:"readXRefTable",value:function(e){var t,r=e.lexer.stream,A=this.tableState;for(r.pos=A.streamPos,e.buf1=A.parserBuf1,e.buf2=A.parserBuf2;;){if(!("firstEntryNum"in A)||!("entryCount"in A)){if(Te(t=e.getObj(),"trailer"))break;A.firstEntryNum=t,A.entryCount=e.getObj()}var n=A.firstEntryNum,i=A.entryCount;if(!Number.isInteger(n)||!Number.isInteger(i))throw new re("Invalid XRef table: wrong types in subsection header");for(var a=A.entryNum;a0;){var o=yG(a,2),s=o[0],c=o[1];if(!Number.isInteger(s)||!Number.isInteger(c))throw new re("Invalid XRef range fields: ".concat(s,", ").concat(c));if(!Number.isInteger(A)||!Number.isInteger(n)||!Number.isInteger(i))throw new re("Invalid XRef entry fields length: ".concat(s,", ").concat(c));for(var g=t.entryNum;g=e.length);)r+=String.fromCharCode(A),A=e[t];return r}function t(e,t,r){for(var A=r.length,n=e.length,i=0;t=A)break;t++,i++}return i}var r=/\\b(endobj|\\d+\\s+\\d+\\s+obj|xref|trailer\\s*<<)\\b/g,A=/\\b(startxref|\\d+\\s+\\d+\\s+obj)\\b/g,n=/^(\\d+)\\s+(\\d+)\\s+obj\\b/,i=new Uint8Array([116,114,97,105,108,101,114]),a=new Uint8Array([115,116,97,114,116,120,114,101,102]),o=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();var s=this.stream;s.pos=0;for(var c=s.getBytes(),g=ne(c),u=c.length,l=s.start,h=[],I=[];l=u)break;f=c[l]}while(10!==f&&13!==f);else++l}for(var S=0,F=I;S0&&void 0!==arguments[0]&&arguments[0],t=this.stream,r=new Set;this.startXRefQueue.length;){try{var A=this.startXRefQueue[0];if(r.has(A)){q("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}r.add(A),t.pos=A+t.start;var n=new Jo({lexer:new Oo(t),xref:this,allowStreams:!0}),i=n.getObj(),a=void 0;if(Te(i,"xref")){var o;a=this.processXRefTable(n),this.topDict||(this.topDict=a),i=a.get("XRefStm"),Number.isInteger(i)&&!this._xrefStms.has(i)&&(this._xrefStms.add(i),this.startXRefQueue.push(i),null!==(o=kG(SG,this))&&void 0!==o||bG(SG,this,i))}else{if(!Number.isInteger(i))throw new re("Invalid XRef stream header");if(!(Number.isInteger(n.getObj())&&Te(n.getObj(),"obj")&&(i=n.getObj())instanceof ze))throw new re("Invalid XRef stream");if(a=this.processXRefStream(i),this.topDict||(this.topDict=a),!a)throw new re("Failed to read XRef stream")}i=a.get("Prev"),Number.isInteger(i)?this.startXRefQueue.push(i):i instanceof Ye&&this.startXRefQueue.push(i.num)}catch(e){if(e instanceof Ct)throw e;T("(while reading XRef): "+e)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!e)throw new Et}},{key:"lastXRefStreamPos",get:function(){var e;return null!==(e=kG(SG,this))&&void 0!==e?e:this._xrefStms.size>0?Math.max.apply(Math,function(e){return function(e){if(Array.isArray(e))return vG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pG(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.")}()}(this._xrefStms)):null}},{key:"getEntry",value:function(e){var t=this.entries[e];return t&&!t.free&&t.offset?t:null}},{key:"fetchIfRef",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof Ye?this.fetch(e,t):e}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof Ye))throw new Error("ref object is not a reference");var r=e.num,A=this._cacheMap.get(r);if(void 0!==A)return A instanceof He&&!A.objId&&(A.objId=e.toString()),A;var n=this.getEntry(r);if(null===n)return this._cacheMap.set(r,n),n;if(this._pendingRefs.has(e))return this._pendingRefs.remove(e),q("Ignoring circular reference: ".concat(e,".")),xe;this._pendingRefs.put(e);try{n=n.uncompressed?this.fetchUncompressed(e,n,t):this.fetchCompressed(e,n,t),this._pendingRefs.remove(e)}catch(t){throw this._pendingRefs.remove(e),t}return n instanceof He?n.objId=e.toString():n instanceof ze&&(n.dict.objId=e.toString()),n}},{key:"fetchUncompressed",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=e.gen,n=e.num;if(t.gen!==A){var i="Inconsistent generation in XRef: ".concat(e);if(this._generationFallback&&t.gen=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function GG(e){return function(e){if(Array.isArray(e))return UG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||LG(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 NG(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=LG(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function LG(e,t){if(e){if("string"==typeof e)return UG(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?UG(e,t):void 0}}function UG(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r1&&void 0!==arguments[1]&&arguments[1],r=yt({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(r)?1!==r.length&&r[0]instanceof He?He.merge({xref:this.xref,dictArray:r}):r[0]:r}},{key:"content",get:function(){return this.pageDict.getArray("Contents")}},{key:"resources",get:function(){var e=this._getInheritableProperty("Resources");return _(this,"resources",e instanceof He?e:He.empty)}},{key:"_getBoundingBox",value:function(e){if(this.xfaData)return this.xfaData.bbox;var t=Rt(this._getInheritableProperty(e,!0),null);if(t){if(t[2]-t[0]>0&&t[3]-t[1]>0)return t;q("Empty, or invalid, /".concat(e," entry."))}return null}},{key:"mediaBox",get:function(){return _(this,"mediaBox",this._getBoundingBox("MediaBox")||_G)}},{key:"cropBox",get:function(){return _(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function(){var e=this.pageDict.get("UserUnit");return("number"!=typeof e||e<=0)&&(e=1),_(this,"userUnit",e)}},{key:"view",get:function(){var e=this.cropBox,t=this.mediaBox;if(e!==t&&!Be(e,t)){var r=ge.intersect(e,t);if(r&&r[2]-r[0]>0&&r[3]-r[1]>0)return _(this,"view",r);q("Empty /CropBox and /MediaBox intersection.")}return _(this,"view",t)}},{key:"rotate",get:function(){var e=this._getInheritableProperty("Rotate")||0;return e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),_(this,"rotate",e)}},{key:"_onSubStreamError",value:function(e,t){if(!this.evaluatorOptions.ignoreErrors)throw e;q("getContentStream - ignoring sub-stream (".concat(t,'): "').concat(e,'".'))}},{key:"getContentStream",value:function(){var e=this;return this.pdfManager.ensure(this,"content").then((function(t){return t instanceof ze?t:Array.isArray(t)?new VA(t,e._onSubStreamError.bind(e)):new sr}))}},{key:"xfaData",get:function(){return _(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}},{key:"saveNewAnnotations",value:(A=JG(RG().mark((function e(t,r,A,n){var i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.xfaFactory){e.next=2;break}throw new Error("XFA: Cannot save new annotations.");case 2:return i=new eC({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),a=new Oe,o=new Pe,e.next=7,ZG(XG,this,zG).call(this,A,a,o);case 7:return s=this.pageDict,c=this.annotations.filter((function(e){return!(e instanceof Ye&&a.has(e))})),e.next=11,SR.saveNewAnnotations(i,r,A,n);case 11:g=e.sent,u=NG(g.annotations);try{for(u.s();!(l=u.n()).done;)(h=l.value.ref)instanceof Ye&&!o.has(h)&&c.push(h)}catch(e){u.e(e)}finally{u.f()}return I=s.get("Annots"),s.set("Annots",c),f=[],e.next=19,iQ(this.ref,s,f,this.xref);case 19:I&&s.set("Annots",I),(C=g.dependencies).push.apply(C,[{ref:this.ref,data:f.join("")}].concat(GG(g.annotations))),B=NG(a);try{for(B.s();!(Q=B.n()).done;)E=Q.value,C.push({ref:E,data:null})}catch(e){B.e(e)}finally{B.f()}return e.abrupt("return",C);case 25:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return A.apply(this,arguments)})},{key:"save",value:function(e,t,r){var A=new eC({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(e){var n,i=[],a=NG(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;i.push(o.save(A,t,r).catch((function(e){return q("save - ignoring annotation data during "+'"'.concat(t.name,'" task: "').concat(e,'".')),null})))}}catch(e){a.e(e)}finally{a.f()}return Promise.all(i).then((function(e){return e.filter((function(e){return!!e}))}))}))}},{key:"loadResources",value:function(e){var t=this;return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((function(){return new bE(t.resources,e,t.xref).load()}))}},{key:"getOperatorList",value:function(e){var t=this,r=e.handler,A=e.sink,n=e.task,i=e.intent,a=e.cacheKey,o=e.annotationStorage,s=void 0===o?null:o,c=e.modifiedIds,g=void 0===c?null:c,u=this.getContentStream(),l=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),h=new eC({xref:this.xref,handler:r,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),I=this.xfaFactory?null:qt(s),f=null==I?void 0:I.get(this.pageIndex),C=Promise.resolve(null),B=null;if(f){var Q,E,y=this.pdfManager.ensureDoc("annotationGlobals"),p=new Set,v=NG(f);try{for(v.s();!(E=v.n()).done;){var m=E.value,w=m.bitmapId,b=m.bitmap;!w||b||p.has(w)||p.add(w)}}catch(e){v.e(e)}finally{v.f()}var k=this.evaluatorOptions.isOffscreenCanvasSupported;if(p.size>0){var D,S=f.slice(),F=NG(s);try{for(F.s();!(D=F.n()).done;){var x=xG(D.value,2),R=x[0],G=x[1];R.startsWith(d)&&G.bitmap&&p.has(G.bitmapId)&&S.push(G)}}catch(e){F.e(e)}finally{F.f()}Q=SR.generateImages(S,this.xref,k)}else Q=SR.generateImages(f,this.xref,k);B=new Pe,C=Promise.all([y,ZG(XG,this,zG).call(this,f,B,null)]).then((function(e){var t=xG(e,1)[0];return t?SR.printNewAnnotations(t,h,n,f,Q):null}))}var N=Promise.all([u,l]).then((function(e){var o=xG(e,1)[0],s=new kf(i,A);return r.send("StartRenderPage",{transparency:h.hasBlendModes(t.resources,t.nonBlendModesSet),pageIndex:t.pageIndex,cacheKey:a}),h.getOperatorList({stream:o,task:n,resources:t.resources,operatorList:s}).then((function(){return s}))}));return Promise.all([N,this._parsedAnnotations,C]).then((function(e){var t=xG(e,3),r=t[0],A=t[1],a=t[2];if(a){A=A.filter((function(e){return!(e.ref&&B.has(e.ref))}));for(var o=function(e,t){var r=a[e];if(r.refToReplace){var n=A.findIndex((function(e){return e.ref&&je(e.ref,r.refToReplace)}));n>=0&&(A.splice(n,1,r),a.splice(e--,1),t--)}c=e,u=t},c=0,u=a.length;c2&&void 0!==arguments[2]?arguments[2]:1024,A=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=t.length,i=e.peekBytes(r),a=i.length-n;if(a<=0)return!1;if(A)for(var o=n-1,s=i.length-1;s>=o;){for(var c=0;c=n)return e.pos+=s-o,!0;s--}else for(var g=0;g<=a;){for(var u=0;u=n)return e.pos+=g,!0;g++}return!1}var nN=new WeakSet,iN=function(){return qG((function e(t,r){if(KG(this,e),WG(this,nN),r.length<=0)throw new $("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=r,this.xref=new FG(r,t),this._pagePromises=new Map,this._version=null;var A={font:0};this._globalIdFactory=function(){return qG((function e(){KG(this,e)}),null,[{key:"getDocId",value:function(){return"g_".concat(t.docId)}},{key:"createFontId",value:function(){return"f".concat(++A.font)}},{key:"createObjId",value:function(){j("Abstract method \`createObjId\` called.")}},{key:"getPageObjId",value:function(){j("Abstract method \`getPageObjId\` called.")}}])}()}),[{key:"parse",value:function(e){this.xref.parse(e),this.catalog=new fE(this.pdfManager,this.xref)}},{key:"linearization",get:function(){var e=null;try{e=Ko.create(this.stream)}catch(e){if(e instanceof Ct)throw e;T(e)}return _(this,"linearization",e)}},{key:"startXRef",get:function(){var e=this.stream,t=0;if(this.linearization){if(e.reset(),AN(e,rN)){e.skip(6);for(var r=e.peekByte();Dt(r);)e.pos++,r=e.peekByte();t=e.pos-e.start}}else{for(var A=tN.length,n=!1,i=e.end;!n&&i>0;)(i-=1024-A)<0&&(i=0),e.pos=i,n=AN(e,tN,1024,!0);if(n){var a;e.skip(9);do{a=e.getByte()}while(Dt(a));for(var o="";a>=32&&a<=57;)o+=String.fromCharCode(a),a=e.getByte();t=parseInt(o,10),isNaN(t)&&(t=0)}}return _(this,"startXRef",t)}},{key:"checkHeader",value:function(){var e=this.stream;if(e.reset(),AN(e,eN)){e.moveStart(),e.skip(eN.length);for(var t,r="";(t=e.getByte())>32&&r.length<7;)r+=String.fromCharCode(t);It.test(r)?this._version=r:q("Invalid PDF header version: ".concat(r))}}},{key:"parseStartXRef",value:function(){this.xref.setStartXRef(this.startXRef)}},{key:"numPages",get:function(){return _(this,"numPages",this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages)}},{key:"_hasOnlyDocumentSignatures",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!!Array.isArray(e)&&e.every((function(e){if(!((e=t.xref.fetchIfRef(e))instanceof He))return!1;if(e.has("Kids"))return++r>10?(q("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):t._hasOnlyDocumentSignatures(e.get("Kids"),r);var A=Ke(e.get("FT"),"Sig"),n=e.get("Rect"),i=Array.isArray(n)&&n.every((function(e){return 0===e}));return A&&i}))}},{key:"_xfaStreams",get:function(){var e=this.catalog.acroForm;if(!e)return null;var t=e.get("XFA"),r={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(t instanceof ze&&!t.isEmpty)return r["xdp:xdp"]=t,r;if(!Array.isArray(t)||0===t.length)return null;for(var A=0,n=t.length;A0;e.hasFields=A;var n=t.get("XFA");e.hasXfa=Array.isArray(n)&&n.length>0||n instanceof ze&&!n.isEmpty;var i=!!(1&t.get("SigFlags")),a=i&&this._hasOnlyDocumentSignatures(r);e.hasAcroForm=A&&!a,e.hasSignatures=i}catch(e){if(e instanceof Ct)throw e;q('Cannot fetch form information: "'.concat(e,'".'))}return _(this,"formInfo",e)}},{key:"documentInfo",get:function(){var e,t={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};try{e=this.xref.trailer.get("Info")}catch(e){if(e instanceof Ct)throw e;T("The document information dictionary is invalid.")}if(!(e instanceof He))return _(this,"documentInfo",t);var r,A=NG(e.getKeys());try{for(A.s();!(r=A.n()).done;){var n=r.value,i=e.get(n);switch(n){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"==typeof i){t[n]=Ie(i);continue}break;case"Trapped":if(i instanceof Ue){t[n]=i;continue}break;default:var a=void 0;switch(typeof i){case"string":a=Ie(i);break;case"number":case"boolean":a=i;break;default:i instanceof Ue&&(a=i)}if(void 0===a){q('Bad value, for custom key "'.concat(n,'", in Info: ').concat(i,"."));continue}t.Custom||(t.Custom=Object.create(null)),t.Custom[n]=a;continue}q('Bad value, for key "'.concat(n,'", in Info: ').concat(i,"."))}}catch(e){A.e(e)}finally{A.f()}return _(this,"documentInfo",t)}},{key:"fingerprints",get:function(){function e(e){return"string"==typeof e&&e.length>0&&"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0"!==e}function t(e){var t,r=[],A=NG(e);try{for(A.s();!(t=A.n()).done;){var n=t.value.toString(16);r.push(n.padStart(2,"0"))}}catch(e){A.e(e)}finally{A.f()}return r.join("")}var r,A,n=this.xref.trailer.get("ID");return Array.isArray(n)&&e(n[0])?(r=ie(n[0]),n[1]!==n[0]&&e(n[1])&&(A=ie(n[1]))):r=xB(this.stream.getByteRange(0,1024),0,1024),_(this,"fingerprints",[t(r),A?t(A):null])}},{key:"_getLinearizationPage",value:(n=JG(RG().mark((function e(t){var r,A,n,i,a,o;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.catalog,A=this.linearization,n=this.xref,i=Ye.get(A.objectNumberFirst,0),e.prev=2,e.next=5,n.fetchAsync(i);case 5:if(!((a=e.sent)instanceof He)){e.next=16;break}if(!((o=a.getRaw("Type"))instanceof Ye)){e.next=12;break}return e.next=11,n.fetchAsync(o);case 11:o=e.sent;case 12:if(!Ke(o,"Page")&&(a.has("Type")||a.has("Kids")||!a.has("Contents"))){e.next=16;break}return r.pageKidsCountCache.has(i)||r.pageKidsCountCache.put(i,1),r.pageIndexCache.has(i)||r.pageIndexCache.put(i,0),e.abrupt("return",[a,i]);case 16:throw new re("The Linearization dictionary doesn't point to a valid Page dictionary.");case 19:return e.prev=19,e.t0=e.catch(2),q('_getLinearizationPage: "'.concat(e.t0.message,'".')),e.abrupt("return",r.getPageDict(t));case 23:case"end":return e.stop()}}),e,this,[[2,19]])}))),function(e){return n.apply(this,arguments)})},{key:"getPage",value:function(e){var t=this,r=this._pagePromises.get(e);if(r)return r;var A,n=this.catalog,i=this.linearization,a=this.xfaFactory;return A=(A=a?Promise.resolve([He.empty,null]):(null==i?void 0:i.pageFirst)===e?this._getLinearizationPage(e):n.getPageDict(e)).then((function(r){var A=xG(r,2),i=A[0],o=A[1];return new VG({pdfManager:t.pdfManager,xref:t.xref,pageIndex:e,pageDict:i,ref:o,globalIdFactory:t._globalIdFactory,fontCache:n.fontCache,builtInCMapCache:n.builtInCMapCache,standardFontDataCache:n.standardFontDataCache,globalImageCache:n.globalImageCache,systemFontCache:n.systemFontCache,nonBlendModesSet:n.nonBlendModesSet,xfaFactory:a})})),this._pagePromises.set(e,A),A}},{key:"checkFirstPage",value:(A=JG(RG().mark((function e(){var t=arguments;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length>0&&void 0!==t[0]&&t[0])){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,this.getPage(0);case 6:e.next=15;break;case 8:if(e.prev=8,e.t0=e.catch(3),!(e.t0 instanceof Qt)){e.next=15;break}return this._pagePromises.delete(0),e.next=14,this.cleanup();case 14:throw new Et;case 15:case"end":return e.stop()}}),e,this,[[3,8]])}))),function(){return A.apply(this,arguments)})},{key:"checkLastPage",value:(r=JG(RG().mark((function e(){var t,r,A,n,i,a,o,s,c,g,u,l,h,I=arguments;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=I.length>0&&void 0!==I[0]&&I[0],r=this.catalog,A=this.pdfManager,r.setActualNumPages(),e.prev=3,e.next=6,Promise.all([A.ensureDoc("xfaFactory"),A.ensureDoc("linearization"),A.ensureCatalog("numPages")]);case 6:if(!this.xfaFactory){e.next=10;break}return e.abrupt("return");case 10:n=this.linearization?this.linearization.numPages:r.numPages;case 11:if(Number.isInteger(n)){e.next=15;break}throw new re("Page count is not an integer.");case 15:if(!(n<=1)){e.next=17;break}return e.abrupt("return");case 17:return e.next=19,this.getPage(n-1);case 19:e.next=44;break;case 21:return e.prev=21,e.t0=e.catch(3),this._pagePromises.delete(n-1),e.next=26,this.cleanup();case 26:if(!(e.t0 instanceof Qt)||t){e.next=28;break}throw new Et;case 28:return q("checkLastPage - invalid /Pages tree /Count: ".concat(n,".")),e.prev=29,e.next=32,r.getAllPageDicts(t);case 32:i=e.sent,e.next=41;break;case 35:if(e.prev=35,e.t1=e.catch(29),!(e.t1 instanceof Qt)||t){e.next=39;break}throw new Et;case 39:return r.setActualNumPages(1),e.abrupt("return");case 41:a=NG(i);try{for(a.s();!(o=a.n()).done;)s=xG(o.value,2),c=s[0],g=xG(s[1],2),u=g[0],l=g[1],h=void 0,u instanceof Error?(h=Promise.reject(u)).catch((function(){})):h=Promise.resolve(new VG({pdfManager:A,xref:this.xref,pageIndex:c,pageDict:u,ref:l,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,systemFontCache:r.systemFontCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(c,h)}catch(e){a.e(e)}finally{a.f()}r.setActualNumPages(i.size);case 44:case"end":return e.stop()}}),e,this,[[3,21],[29,35]])}))),function(){return r.apply(this,arguments)})},{key:"fontFallback",value:function(e,t){return this.catalog.fontFallback(e,t)}},{key:"cleanup",value:(t=JG(RG().mark((function e(){var t,r=arguments;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],e.abrupt("return",this.catalog?this.catalog.cleanup(t):JC());case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"fieldObjects",get:function(){var e=this,t=this.pdfManager.ensureDoc("formInfo").then(function(){var t=JG(RG().mark((function t(r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B;return RG().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.hasFields){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,Promise.all([e.pdfManager.ensureDoc("annotationGlobals"),e.pdfManager.ensureCatalog("acroForm")]);case 4:if(A=t.sent,n=xG(A,2),i=n[0],a=n[1],i){t.next=10;break}return t.abrupt("return",null);case 10:return o=new Pe,s=Object.create(null),c=new Map,g=new Oe,t.t0=NG,t.next=17,a.getAsync("Fields");case 17:t.t1=t.sent,u=(0,t.t0)(t.t1),t.prev=19,u.s();case 21:if((l=u.n()).done){t.next=27;break}return h=l.value,t.next=25,ZG(nN,e,aN).call(e,"",null,h,c,i,o,g);case 25:t.next=21;break;case 27:t.next=32;break;case 29:t.prev=29,t.t2=t.catch(19),u.e(t.t2);case 32:return t.prev=32,u.f(),t.finish(32);case 35:I=[],f=NG(c),t.prev=37,B=RG().mark((function e(){var t,r,A;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=xG(C.value,2),r=t[0],A=t[1],I.push(Promise.all(A).then((function(e){(e=e.filter((function(e){return!!e}))).length>0&&(s[r]=e)})));case 2:case"end":return e.stop()}}),e)})),f.s();case 40:if((C=f.n()).done){t.next=44;break}return t.delegateYield(B(),"t3",42);case 42:t.next=40;break;case 44:t.next=49;break;case 46:t.prev=46,t.t4=t.catch(37),f.e(t.t4);case 49:return t.prev=49,f.f(),t.finish(49);case 52:return t.next=54,Promise.all(I);case 54:return t.abrupt("return",{allFields:s,orphanFields:g});case 55:case"end":return t.stop()}}),t,null,[[19,29,32,35],[37,46,49,52]])})));return function(e){return t.apply(this,arguments)}}());return _(this,"fieldObjects",t)}},{key:"hasJSActions",get:function(){return _(this,"hasJSActions",this.pdfManager.ensureDoc("_parseHasJSActions"))}},{key:"_parseHasJSActions",value:(e=JG(RG().mark((function e(){var t,r,A,n;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);case 2:if(t=e.sent,r=xG(t,2),A=r[0],n=r[1],!A){e.next=8;break}return e.abrupt("return",!0);case 8:if(!n){e.next=10;break}return e.abrupt("return",Object.values(n.allFields).some((function(e){return e.some((function(e){return null!==e.actions}))})));case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"calculationOrderIds",get:function(){var e,t=null===(e=this.catalog.acroForm)||void 0===e?void 0:e.get("CO");if(!Array.isArray(t)||0===t.length)return _(this,"calculationOrderIds",null);var r,A=[],n=NG(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;i instanceof Ye&&A.push(i.toString())}}catch(e){n.e(e)}finally{n.f()}return _(this,"calculationOrderIds",A.length?A:null)}},{key:"annotationGlobals",get:function(){return _(this,"annotationGlobals",SR.createGlobals(this.pdfManager))}}]);var e,t,r,A,n,i,a,o}();function aN(e,t,r,A,n,i,a){return oN.apply(this,arguments)}function oN(){return(oN=JG(RG().mark((function e(t,r,A,n,i,a,o){var s,c,g,u,l,h,I,f,C;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=this.xref,A instanceof Ye&&!a.has(A)){e.next=3;break}return e.abrupt("return");case 3:return a.put(A),e.next=6,s.fetchAsync(A);case 6:if((c=e.sent)instanceof He){e.next=9;break}return e.abrupt("return");case 9:if(!c.has("T")){e.next=18;break}return e.t0=Ie,e.next=13,c.getAsync("T");case 13:e.t1=e.sent,g=(0,e.t0)(e.t1),t=""===t?g:"".concat(t,".").concat(g),e.next=39;break;case 18:u=c;case 19:if(!((u=u.getRaw("Parent")||r)instanceof Ye)){e.next=27;break}if(!a.has(u)){e.next=24;break}return e.abrupt("break",39);case 24:return e.next=26,s.fetchAsync(u);case 26:u=e.sent;case 27:if(u instanceof He){e.next=29;break}return e.abrupt("break",39);case 29:if(!u.has("T")){e.next=37;break}return e.t2=Ie,e.next=33,u.getAsync("T");case 33:return e.t3=e.sent,l=(0,e.t2)(e.t3),t=""===t?l:"".concat(t,".").concat(l),e.abrupt("break",39);case 37:e.next=19;break;case 39:if(r&&!c.has("Parent")&&Ke(c.get("Subtype"),"Widget")&&o.put(A,r),n.has(t)||n.set(t,[]),n.get(t).push(SR.create(s,A,i,null,!0,o,null).then((function(e){return null==e?void 0:e.getFieldObject()})).catch((function(e){return q('#collectFieldObjects: "'.concat(e,'".')),null}))),c.has("Kids")){e.next=44;break}return e.abrupt("return");case 44:return e.next=46,c.getAsync("Kids");case 46:if(h=e.sent,!Array.isArray(h)){e.next=65;break}I=NG(h),e.prev=49,I.s();case 51:if((f=I.n()).done){e.next=57;break}return C=f.value,e.next=55,ZG(nN,this,aN).call(this,t,A,C,n,i,a,o);case 55:e.next=51;break;case 57:e.next=62;break;case 59:e.prev=59,e.t4=e.catch(49),I.e(e.t4);case 62:return e.prev=62,I.f(),e.finish(62);case 65:case"end":return e.stop()}}),e,this,[[49,59,62,65]])})))).apply(this,arguments)}function sN(e,t,r){return t=gN(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,cN()?Reflect.construct(t,r||[],gN(e).constructor):t.apply(e,r))}function cN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cN=function(){return!!e})()}function gN(e){return gN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gN(e)}function uN(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lN(e,t)}function lN(e,t){return lN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lN(e,t)}function hN(){hN=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function IN(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function fN(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){IN(i,A,n,a,o,"next",e)}function o(e){IN(i,A,n,a,o,"throw",e)}a(void 0)}))}}function CN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BN(e,t){for(var r=0;r0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(e)}},{key:"ensure",value:(e=fN(hN().mark((function e(t,r,A){return hN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j("Abstract method \`ensure\` called");case 1:case"end":return e.stop()}}),e)}))),function(t,r,A){return e.apply(this,arguments)})},{key:"requestRange",value:function(e,t){j("Abstract method \`requestRange\` called")}},{key:"requestLoadedStream",value:function(){j("Abstract method \`requestLoadedStream\` called")}},{key:"sendProgressiveData",value:function(e){j("Abstract method \`sendProgressiveData\` called")}},{key:"updatePassword",value:function(e){this._password=e}},{key:"terminate",value:function(e){j("Abstract method \`terminate\` called")}}]);var e}(),yN=function(e){function t(e){var r;CN(this,t),r=sN(this,t,[e]);var A=new ar(e.source);return r.pdfDocument=new iN(r,A),r._loadedStreamPromise=Promise.resolve(A),r}return uN(t,dN),QN(t,[{key:"ensure",value:(r=fN(hN().mark((function e(t,r,A){var n;return hN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(n=t[r])){e.next=3;break}return e.abrupt("return",n.apply(t,A));case 3:return e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),function(e,t,A){return r.apply(this,arguments)})},{key:"requestRange",value:function(e,t){return Promise.resolve()}},{key:"requestLoadedStream",value:function(){return this._loadedStreamPromise}},{key:"terminate",value:function(e){}}]);var r}(),pN=function(e){function t(e){var r;return CN(this,t),(r=sN(this,t,[e])).streamManager=new dr(e.source,{msgHandler:e.handler,length:e.length,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize}),r.pdfDocument=new iN(r,r.streamManager.getStream()),r}return uN(t,dN),QN(t,[{key:"ensure",value:(r=fN(hN().mark((function e(t,r,A){var n;return hN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"function"!=typeof(n=t[r])){e.next=4;break}return e.abrupt("return",n.apply(t,A));case 4:return e.abrupt("return",n);case 7:if(e.prev=7,e.t0=e.catch(0),e.t0 instanceof Ct){e.next=11;break}throw e.t0;case 11:return e.next=13,this.requestRange(e.t0.begin,e.t0.end);case 13:return e.abrupt("return",this.ensure(t,r,A));case 14:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e,t,A){return r.apply(this,arguments)})},{key:"requestRange",value:function(e,t){return this.streamManager.requestRange(e,t)}},{key:"requestLoadedStream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.streamManager.requestAllChunks(e)}},{key:"sendProgressiveData",value:function(e){this.streamManager.onReceiveData({chunk:e})}},{key:"terminate",value:function(e){this.streamManager.abort(e)}}]);var r}();function vN(){vN=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function mN(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function wN(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var o=this.desiredSize;this.desiredSize-=i,o>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),n.postMessage({sourceName:r,targetName:A,stream:4,streamId:t,chunk:e},a)}},close(){this.isCancelled||(this.isCancelled=!0,n.postMessage({sourceName:r,targetName:A,stream:3,streamId:t}),delete i.streamSinks[t])},error(e){W(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,n.postMessage({sourceName:r,targetName:A,stream:5,streamId:t,reason:DN(e)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};o.sinkCapability.resolve(),o.ready=o.sinkCapability.promise,this.streamSinks[t]=o,new Promise((function(t){t(a(e.data,o))})).then((function(){n.postMessage({sourceName:r,targetName:A,stream:8,streamId:t,success:!0})}),(function(e){n.postMessage({sourceName:r,targetName:A,stream:8,streamId:t,reason:DN(e)})}))}function RN(e){var t=e.streamId,r=this.sourceName,A=e.sourceName,n=this.comObj,i=this.streamControllers[t],a=this.streamSinks[t];switch(e.stream){case 8:e.success?i.startCall.resolve():i.startCall.reject(DN(e.reason));break;case 7:e.success?i.pullCall.resolve():i.pullCall.reject(DN(e.reason));break;case 6:if(!a){n.postMessage({sourceName:r,targetName:A,stream:7,streamId:t,success:!0});break}a.desiredSize<=0&&e.desiredSize>0&&a.sinkCapability.resolve(),a.desiredSize=e.desiredSize,new Promise((function(e){var t;e(null===(t=a.onPull)||void 0===t?void 0:t.call(a))})).then((function(){n.postMessage({sourceName:r,targetName:A,stream:7,streamId:t,success:!0})}),(function(e){n.postMessage({sourceName:r,targetName:A,stream:7,streamId:t,reason:DN(e)})}));break;case 4:if(W(i,"enqueue should have stream controller"),i.isClosed)break;i.controller.enqueue(e.chunk);break;case 3:if(W(i,"close should have stream controller"),i.isClosed)break;i.isClosed=!0,i.controller.close(),kN(SN,this,GN).call(this,i,t);break;case 5:W(i,"error should have stream controller"),i.controller.error(DN(e.reason)),kN(SN,this,GN).call(this,i,t);break;case 2:e.success?i.cancelCall.resolve():i.cancelCall.reject(DN(e.reason)),kN(SN,this,GN).call(this,i,t);break;case 1:if(!a)break;new Promise((function(t){var r;t(null===(r=a.onCancel)||void 0===r?void 0:r.call(a,DN(e.reason)))})).then((function(){n.postMessage({sourceName:r,targetName:A,stream:2,streamId:t,success:!0})}),(function(e){n.postMessage({sourceName:r,targetName:A,stream:2,streamId:t,reason:DN(e)})})),a.sinkCapability.reject(DN(e.reason)),a.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}function GN(e,t){return NN.apply(this,arguments)}function NN(){var e;return e=vN().mark((function e(t,r){var A,n,i;return vN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([null===(A=t.startCall)||void 0===A?void 0:A.promise,null===(n=t.pullCall)||void 0===n?void 0:n.promise,null===(i=t.cancelCall)||void 0===i?void 0:i.promise]);case 2:delete this.streamControllers[r];case 3:case"end":return e.stop()}}),e,this)})),NN=function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){mN(i,A,n,a,o,"next",e)}function o(e){mN(i,A,n,a,o,"throw",e)}a(void 0)}))},NN.apply(this,arguments)}function LN(){LN=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function UN(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function MN(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){UN(i,A,n,a,o,"next",e)}function o(e){UN(i,A,n,a,o,"throw",e)}a(void 0)}))}}function JN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(this._rangeRequestReaders.slice(0));try{for(A.s();!(r=A.n()).done;)r.value.cancel(e)}catch(e){A.e(e)}finally{A.f()}}}])}(),TN=function(){return PN((function e(t){var r=this;HN(this,e),this._msgHandler=t,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;var A=this._msgHandler.sendWithStream("GetReader");this._reader=A.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(e){r._isStreamingSupported=e.isStreamingSupported,r._isRangeSupported=e.isRangeSupported,r._contentLength=e.contentLength}))}),[{key:"headersReady",get:function(){return this._headersReady}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"read",value:(e=MN(LN().mark((function e(){var t,r;return LN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,!t.done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader.cancel(e)}}]);var e}(),qN=function(){return PN((function e(t,r,A){HN(this,e),this._msgHandler=A,this.onProgress=null;var n=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=n.getReader()}),[{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(e=MN(LN().mark((function e(){var t,r;return LN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,!t.done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader.cancel(e)}}]);var e}();function jN(){jN=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+A+"' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function WN(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_N(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function ZN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||_N(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 _N(e,t){if(e){if("string"==typeof e)return XN(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?XN(e,t):void 0}}function XN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r=S.INFOS?Date.now():0;r.getOperatorList({handler:I,sink:t,task:n,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage,modifiedIds:e.modifiedIds}).then((function(e){B(n),i&&T("page=".concat(A+1," - getOperatorList: time=")+"".concat(Date.now()-i,"ms, len=").concat(e.length)),t.close()}),(function(e){B(n),n.terminated||t.error(e)}))}))})),I.on("GetTextContent",(function(e,t){var A=e.pageIndex,n=e.includeMarkedContent,i=e.disableNormalization;r.getPage(A).then((function(e){var r=new nL("GetTextContent: page "+A);C(r);var o=a>=S.INFOS?Date.now():0;e.extractTextContent({handler:I,task:r,sink:t,includeMarkedContent:n,disableNormalization:i}).then((function(){B(r),o&&T("page=".concat(A+1," - getTextContent: time=")+"".concat(Date.now()-o,"ms")),t.close()}),(function(e){B(r),r.terminated||t.error(e)}))}))})),I.on("GetStructTree",(function(e){return r.getPage(e.pageIndex).then((function(e){return r.ensure(e,"getStructTree")}))})),I.on("FontFallback",(function(e){return r.fontFallback(e.id,I)})),I.on("Cleanup",(function(e){return r.cleanup(!0)})),I.on("Terminate",(function(e){A=!0;var t=[];if(r){r.terminate(new Ae("Worker was terminated."));var a=r.cleanup();t.push(a),r=null}else JC();n&&n(new Ae("Worker was terminated."));var o,s=WN(i);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.push(c.finished),c.terminate()}}catch(e){s.e(e)}finally{s.f()}return Promise.all(t).then((function(){I.destroy(),I=null}))})),I.on("Ready",(function(t){!function(e){function t(e){f(),I.send("GetDoc",{pdfInfo:e})}function i(e){if(f(),e instanceof V){var t=new nL("PasswordException: response ".concat(e.code));C(t),I.sendWithPromise("PasswordRequest",e).then((function(e){var A=e.password;B(t),r.updatePassword(A),a()})).catch((function(){B(t),I.send("DocException",e)}))}else e instanceof $||e instanceof ee||e instanceof te||e instanceof z?I.send("DocException",e):I.send("DocException",new z(e.message,e.toString()))}function a(){f(),Q(!1).then(t,(function(e){f(),e instanceof Et?r.requestLoadedStream().then((function(){f(),Q(!0).then(t,i)})):i(e)}))}f(),function(e){var t,r=e.data,A=e.password,i=e.disableAutoFetch,a=e.rangeChunkSize,o=e.length,c=e.docBaseUrl,g=e.enableXfa,u=e.evaluatorOptions,l={source:null,disableAutoFetch:i,docBaseUrl:c,docId:s,enableXfa:g,evaluatorOptions:u,handler:I,length:o,password:A,rangeChunkSize:a},h=Promise.withResolvers();if(r){try{l.source=r,t=new yN(l),h.resolve(t)}catch(e){h.reject(e)}return h.promise}var C,B=[];try{C=new KN(I)}catch(e){return h.reject(e),h.promise}var Q=C.getFullReader();Q.headersReady.then((function(){if(Q.isRangeSupported){l.source=C,l.length=Q.contentLength,l.disableAutoFetch||(l.disableAutoFetch=Q.isStreamingSupported),t=new pN(l);for(var e=0,r=B;e{var n=r(3749),i=r(8055),a=TypeError;t.exports=function(t){if(n(t))return t;throw new a(i(t)+" is not a function")}},9052:(t,e,r)=>{var n=r(8413),i=r(8055),a=TypeError;t.exports=function(t){if(n(t))return t;throw new a(i(t)+" is not a constructor")}},7330:(t,e,r)=>{var n=r(4597),i=String,a=TypeError;t.exports=function(t){if(n(t))return t;throw new a("Can't set "+i(t)+" as a prototype")}},4376:(t,e,r)=>{var n=r(418).has;t.exports=function(t){return n(t),t}},1458:(t,e,r)=>{var n=r(5811),i=r(5304),a=r(1601).f,o=n("unscopables"),s=Array.prototype;void 0===s[o]&&a(s,o,{configurable:!0,value:i(null)}),t.exports=function(t){s[o][t]=!0}},8149:(t,e,r)=>{var n=r(6903).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},3399:(t,e,r)=>{var n=r(6921),i=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new i("Incorrect invocation")}},7447:(t,e,r)=>{var n=r(2674),i=String,a=TypeError;t.exports=function(t){if(n(t))return t;throw new a(i(t)+" is not an object")}},387:t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},8242:(t,e,r)=>{var n=r(4032),i=r(5026),a=r(9872),o=n.ArrayBuffer,s=n.TypeError;t.exports=o&&i(o.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==a(t))throw new s("ArrayBuffer expected");return t.byteLength}},8102:(t,e,r)=>{var n=r(4032),i=r(2116),a=r(8242),o=n.ArrayBuffer,s=o&&o.prototype,u=s&&i(s.slice);t.exports=function(t){if(0!==a(t))return!1;if(!u)return!1;try{return u(t,0,0),!1}catch(t){return!0}}},7060:(t,e,r)=>{var n=r(3455);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},6033:(t,e,r)=>{var n=r(8102),i=TypeError;t.exports=function(t){if(n(t))throw new i("ArrayBuffer is detached");return t}},4676:(t,e,r)=>{var n=r(4032),i=r(2608),a=r(5026),o=r(9088),s=r(6033),u=r(8242),c=r(7395),l=r(6572),h=n.structuredClone,f=n.ArrayBuffer,d=n.DataView,v=Math.min,p=f.prototype,y=d.prototype,g=i(p.slice),m=a(p,"resizable","get"),b=a(p,"maxByteLength","get"),w=i(y.getInt8),k=i(y.setInt8);t.exports=(l||c)&&function(t,e,r){var n,i=u(t),a=void 0===e?i:o(e),p=!m||!m(t);if(s(t),l&&(t=h(t,{transfer:[t]}),i===a&&(r||p)))return t;if(i>=a&&(!r||p))n=g(t,0,a);else{var y=r&&!p&&b?{maxByteLength:b(t)}:void 0;n=new f(a,y);for(var x=new d(t),A=new d(n),_=v(a,i),E=0;E<_;E++)k(A,E,w(x,E))}return l||c(t),n}},4356:(t,e,r)=>{var n,i,a,o=r(387),s=r(2444),u=r(4032),c=r(3749),l=r(2674),h=r(9649),f=r(1179),d=r(8055),v=r(139),p=r(8552),y=r(8986),g=r(6921),m=r(2611),b=r(9415),w=r(5811),k=r(5936),x=r(8301),A=x.enforce,_=x.get,E=u.Int8Array,S=E&&E.prototype,O=u.Uint8ClampedArray,T=O&&O.prototype,P=E&&m(E),L=S&&m(S),M=Object.prototype,C=u.TypeError,j=w("toStringTag"),I=k("TYPED_ARRAY_TAG"),R="TypedArrayConstructor",F=o&&!!b&&"Opera"!==f(u.opera),D=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},W={BigInt64Array:8,BigUint64Array:8},B=function(t){var e=m(t);if(l(e)){var r=_(e);return r&&h(r,R)?r[R]:B(e)}},G=function(t){if(!l(t))return!1;var e=f(t);return h(N,e)||h(W,e)};for(n in N)(a=(i=u[n])&&i.prototype)?A(a)[R]=i:F=!1;for(n in W)(a=(i=u[n])&&i.prototype)&&(A(a)[R]=i);if((!F||!c(P)||P===Function.prototype)&&(P=function(){throw new C("Incorrect invocation")},F))for(n in N)u[n]&&b(u[n],P);if((!F||!L||L===M)&&(L=P.prototype,F))for(n in N)u[n]&&b(u[n].prototype,L);if(F&&m(T)!==L&&b(T,L),s&&!h(L,j))for(n in D=!0,y(L,j,{configurable:!0,get:function(){return l(this)?this[I]:void 0}}),N)u[n]&&v(u[n],I,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:F,TYPED_ARRAY_TAG:D&&I,aTypedArray:function(t){if(G(t))return t;throw new C("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!b||g(P,t)))return t;throw new C(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r,n){if(s){if(r)for(var i in N){var a=u[i];if(a&&h(a.prototype,t))try{delete a.prototype[t]}catch(r){try{a.prototype[t]=e}catch(t){}}}L[t]&&!r||p(L,t,r?e:F&&S[t]||e,n)}},exportTypedArrayStaticMethod:function(t,e,r){var n,i;if(s){if(b){if(r)for(n in N)if((i=u[n])&&h(i,t))try{delete i[t]}catch(t){}if(P[t]&&!r)return;try{return p(P,t,r?e:F&&P[t]||e)}catch(t){}}for(n in N)!(i=u[n])||i[t]&&!r||p(i,t,e)}},getTypedArrayConstructor:B,isView:function(t){if(!l(t))return!1;var e=f(t);return"DataView"===e||h(N,e)||h(W,e)},isTypedArray:G,TypedArray:P,TypedArrayPrototype:L}},7226:(t,e,r)=>{var n=r(4032),i=r(2608),a=r(2444),o=r(387),s=r(2542),u=r(139),c=r(8986),l=r(4183),h=r(3455),f=r(3399),d=r(1211),v=r(5806),p=r(9088),y=r(3505),g=r(1306),m=r(2611),b=r(9415),w=r(9557),k=r(4224),x=r(3951),A=r(2924),_=r(6911),E=r(8301),S=s.PROPER,O=s.CONFIGURABLE,T="ArrayBuffer",P="DataView",L="prototype",M="Wrong index",C=E.getterFor(T),j=E.getterFor(P),I=E.set,R=n[T],F=R,D=F&&F[L],N=n[P],W=N&&N[L],B=Object.prototype,G=n.Array,H=n.RangeError,U=i(w),z=i([].reverse),V=g.pack,q=g.unpack,Y=function(t){return[255&t]},X=function(t){return[255&t,t>>8&255]},K=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Q=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},J=function(t){return V(y(t),23,4)},$=function(t){return V(t,52,8)},Z=function(t,e,r){c(t[L],e,{configurable:!0,get:function(){return r(this)[e]}})},tt=function(t,e,r,n){var i=j(t),a=p(r),o=!!n;if(a+e>i.byteLength)throw new H(M);var s=i.bytes,u=a+i.byteOffset,c=k(s,u,u+e);return o?c:z(c)},et=function(t,e,r,n,i,a){var o=j(t),s=p(r),u=n(+i),c=!!a;if(s+e>o.byteLength)throw new H(M);for(var l=o.bytes,h=s+o.byteOffset,f=0;f>24)},setUint8:function(t,e){it(this,t,e<<24>>24)}},{unsafe:!0})}else D=(F=function(t){f(this,D);var e=p(t);I(this,{type:T,bytes:U(G(e),0),byteLength:e}),a||(this.byteLength=e,this.detached=!1)})[L],W=(N=function(t,e,r){f(this,W),f(t,D);var n=C(t),i=n.byteLength,o=d(e);if(o<0||o>i)throw new H("Wrong offset");if(o+(r=void 0===r?i-o:v(r))>i)throw new H("Wrong length");I(this,{type:P,buffer:t,byteLength:r,byteOffset:o,bytes:n.bytes}),a||(this.buffer=t,this.byteLength=r,this.byteOffset=o)})[L],a&&(Z(F,"byteLength",C),Z(N,"buffer",j),Z(N,"byteLength",j),Z(N,"byteOffset",j)),l(W,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return Q(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return Q(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return q(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return q(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){et(this,1,t,Y,e)},setUint8:function(t,e){et(this,1,t,Y,e)},setInt16:function(t,e){et(this,2,t,X,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){et(this,2,t,X,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){et(this,4,t,K,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){et(this,4,t,K,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){et(this,4,t,J,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){et(this,8,t,$,e,arguments.length>2&&arguments[2])}});_(F,T),_(N,P),t.exports={ArrayBuffer:F,DataView:N}},6677:(t,e,r)=>{var n=r(4165),i=r(9002),a=r(7878),o=r(1870),s=Math.min;t.exports=[].copyWithin||function(t,e){var r=n(this),u=a(r),c=i(t,u),l=i(e,u),h=arguments.length>2?arguments[2]:void 0,f=s((void 0===h?u:i(h,u))-l,u-c),d=1;for(l0;)l in r?r[c]=r[l]:o(r,c),c+=d,l+=d;return r}},9557:(t,e,r)=>{var n=r(4165),i=r(9002),a=r(7878);t.exports=function(t){for(var e=n(this),r=a(e),o=arguments.length,s=i(o>1?arguments[1]:void 0,r),u=o>2?arguments[2]:void 0,c=void 0===u?r:i(u,r);c>s;)e[s++]=t;return e}},3147:(t,e,r)=>{var n=r(5645).forEach,i=r(1814)("forEach");t.exports=i?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},7434:(t,e,r)=>{var n=r(7878);t.exports=function(t,e,r){for(var i=0,a=arguments.length>2?r:n(e),o=new t(a);a>i;)o[i]=e[i++];return o}},3948:(t,e,r)=>{var n=r(4864),i=r(3453),a=r(4165),o=r(3535),s=r(993),u=r(8413),c=r(7878),l=r(3552),h=r(6961),f=r(7507),d=Array;t.exports=function(t){var e=a(t),r=u(this),v=arguments.length,p=v>1?arguments[1]:void 0,y=void 0!==p;y&&(p=n(p,v>2?arguments[2]:void 0));var g,m,b,w,k,x,A=f(e),_=0;if(!A||this===d&&s(A))for(g=c(e),m=r?new this(g):d(g);g>_;_++)x=y?p(e[_],_):e[_],l(m,_,x);else for(m=r?new this:[],k=(w=h(e,A)).next;!(b=i(k,w)).done;_++)x=y?o(w,p,[b.value,_],!0):b.value,l(m,_,x);return m.length=_,m}},7921:(t,e,r)=>{var n=r(3637),i=r(9002),a=r(7878),o=function(t){return function(e,r,o){var s=n(e),u=a(s);if(0===u)return!t&&-1;var c,l=i(o,u);if(t&&r!=r){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},767:(t,e,r)=>{var n=r(4864),i=r(9455),a=r(4165),o=r(7878),s=function(t){var e=1===t;return function(r,s,u){for(var c,l=a(r),h=i(l),f=o(h),d=n(s,u);f-- >0;)if(d(c=h[f],f,l))switch(t){case 0:return c;case 1:return f}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},5645:(t,e,r)=>{var n=r(4864),i=r(2608),a=r(9455),o=r(4165),s=r(7878),u=r(1453),c=i([].push),l=function(t){var e=1===t,r=2===t,i=3===t,l=4===t,h=6===t,f=7===t,d=5===t||h;return function(v,p,y,g){for(var m,b,w=o(v),k=a(w),x=s(k),A=n(p,y),_=0,E=g||u,S=e?E(v,x):r||f?E(v,0):void 0;x>_;_++)if((d||_ in k)&&(b=A(m=k[_],_,w),t))if(e)S[_]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:c(S,m)}else switch(t){case 4:return!1;case 7:c(S,m)}return h?-1:i||l?l:S}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},3499:(t,e,r)=>{var n=r(3881),i=r(3637),a=r(1211),o=r(7878),s=r(1814),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,h=s("lastIndexOf"),f=l||!h;t.exports=f?function(t){if(l)return n(c,this,arguments)||0;var e=i(this),r=o(e);if(0===r)return-1;var s=r-1;for(arguments.length>1&&(s=u(s,a(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},9077:(t,e,r)=>{var n=r(3455),i=r(5811),a=r(6415),o=i("species");t.exports=function(t){return a>=51||!n((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},1814:(t,e,r)=>{var n=r(3455);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},4734:(t,e,r)=>{var n=r(4186),i=r(4165),a=r(9455),o=r(7878),s=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,r,c,l){var h=i(e),f=a(h),d=o(h);if(n(r),0===d&&c<2)throw new s(u);var v=t?d-1:0,p=t?-1:1;if(c<2)for(;;){if(v in f){l=f[v],v+=p;break}if(v+=p,t?v<0:d<=v)throw new s(u)}for(;t?v>=0:d>v;v+=p)v in f&&(l=r(l,f[v],v,h));return l}};t.exports={left:c(!1),right:c(!0)}},7375:(t,e,r)=>{var n=r(2444),i=r(5448),a=TypeError,o=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!o(t,"length").writable)throw new a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4224:(t,e,r)=>{var n=r(2608);t.exports=n([].slice)},5272:(t,e,r)=>{var n=r(4224),i=Math.floor,a=function(t,e){var r=t.length;if(r<8)for(var o,s,u=1;u0;)t[s]=t[--s];s!==u++&&(t[s]=o)}else for(var c=i(r/2),l=a(n(t,0,c),e),h=a(n(t,c),e),f=l.length,d=h.length,v=0,p=0;v{var n=r(5448),i=r(8413),a=r(2674),o=r(5811)("species"),s=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(i(e)&&(e===s||n(e.prototype))||a(e)&&null===(e=e[o]))&&(e=void 0)),void 0===e?s:e}},1453:(t,e,r)=>{var n=r(2329);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},6444:(t,e,r)=>{var n=r(7878);t.exports=function(t,e){for(var r=n(t),i=new e(r),a=0;a{var n=r(7878),i=r(1211),a=RangeError;t.exports=function(t,e,r,o){var s=n(t),u=i(r),c=u<0?s+u:u;if(c>=s||c<0)throw new a("Incorrect index");for(var l=new e(s),h=0;h{var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=e+"+/",n=e+"-_",i=function(t){for(var e={},r=0;r<64;r++)e[t.charAt(r)]=r;return e};t.exports={i2c:r,c2i:i(r),i2cUrl:n,c2iUrl:i(n)}},3535:(t,e,r)=>{var n=r(7447),i=r(5235);t.exports=function(t,e,r,a){try{return a?e(n(r)[0],r[1]):e(r)}catch(e){i(t,"throw",e)}}},4348:(t,e,r)=>{var n=r(5811)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!i)return!1}catch(t){return!1}var r=!1;try{var a={};a[n]=function(){return{next:function(){return{done:r=!0}}}},t(a)}catch(t){}return r}},9872:(t,e,r)=>{var n=r(2608),i=n({}.toString),a=n("".slice);t.exports=function(t){return a(i(t),8,-1)}},1179:(t,e,r)=>{var n=r(3724),i=r(3749),a=r(9872),o=r(5811)("toStringTag"),s=Object,u="Arguments"===a(function(){return arguments}());t.exports=n?a:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=s(t),o))?r:u?a(e):"Object"===(n=a(e))&&i(e.callee)?"Arguments":n}},2042:(t,e,r)=>{var n=r(5304),i=r(8986),a=r(4183),o=r(4864),s=r(3399),u=r(6021),c=r(1804),l=r(656),h=r(9393),f=r(5409),d=r(2444),v=r(5227).fastKey,p=r(8301),y=p.set,g=p.getterFor;t.exports={getConstructor:function(t,e,r,l){var h=t((function(t,i){s(t,f),y(t,{type:e,index:n(null),first:null,last:null,size:0}),d||(t.size=0),u(i)||c(i,t[l],{that:t,AS_ENTRIES:r})})),f=h.prototype,p=g(e),m=function(t,e,r){var n,i,a=p(t),o=b(t,e);return o?o.value=r:(a.last=o={index:i=v(e,!0),key:e,value:r,previous:n=a.last,next:null,removed:!1},a.first||(a.first=o),n&&(n.next=o),d?a.size++:t.size++,"F"!==i&&(a.index[i]=o)),t},b=function(t,e){var r,n=p(t),i=v(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key===e)return r};return a(f,{clear:function(){for(var t=p(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=n(null),d?t.size=0:this.size=0},delete:function(t){var e=this,r=p(e),n=b(e,t);if(n){var i=n.next,a=n.previous;delete r.index[n.index],n.removed=!0,a&&(a.next=i),i&&(i.previous=a),r.first===n&&(r.first=i),r.last===n&&(r.last=a),d?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=p(this),n=o(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),a(f,r?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),d&&i(f,"size",{configurable:!0,get:function(){return p(this).size}}),h},setStrong:function(t,e,r){var n=e+" Iterator",i=g(e),a=g(n);l(t,e,(function(t,e){y(this,{type:n,target:t,state:i(t),kind:e,last:null})}),(function(){for(var t=a(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?h("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,h(void 0,!0))}),r?"entries":"values",!r,!0),f(e)}}},8153:(t,e,r)=>{var n=r(2608),i=r(4183),a=r(5227).getWeakData,o=r(3399),s=r(7447),u=r(6021),c=r(2674),l=r(1804),h=r(5645),f=r(9649),d=r(8301),v=d.set,p=d.getterFor,y=h.find,g=h.findIndex,m=n([].splice),b=0,w=function(t){return t.frozen||(t.frozen=new k)},k=function(){this.entries=[]},x=function(t,e){return y(t.entries,(function(t){return t[0]===e}))};k.prototype={get:function(t){var e=x(this,t);if(e)return e[1]},has:function(t){return!!x(this,t)},set:function(t,e){var r=x(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,(function(e){return e[0]===t}));return~e&&m(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,r,n){var h=t((function(t,i){o(t,d),v(t,{type:e,id:b++,frozen:null}),u(i)||l(i,t[n],{that:t,AS_ENTRIES:r})})),d=h.prototype,y=p(e),g=function(t,e,r){var n=y(t),i=a(s(e),!0);return!0===i?w(n).set(e,r):i[n.id]=r,t};return i(d,{delete:function(t){var e=y(this);if(!c(t))return!1;var r=a(t);return!0===r?w(e).delete(t):r&&f(r,e.id)&&delete r[e.id]},has:function(t){var e=y(this);if(!c(t))return!1;var r=a(t);return!0===r?w(e).has(t):r&&f(r,e.id)}}),i(d,r?{get:function(t){var e=y(this);if(c(t)){var r=a(t);if(!0===r)return w(e).get(t);if(r)return r[e.id]}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),h}}},9556:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(2608),o=r(5868),s=r(8552),u=r(5227),c=r(1804),l=r(3399),h=r(3749),f=r(6021),d=r(2674),v=r(3455),p=r(4348),y=r(6911),g=r(3951);t.exports=function(t,e,r){var m=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),w=m?"set":"add",k=i[t],x=k&&k.prototype,A=k,_={},E=function(t){var e=a(x[t]);s(x,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(o(t,!h(k)||!(b||x.forEach&&!v((function(){(new k).entries().next()})))))A=r.getConstructor(e,t,m,w),u.enable();else if(o(t,!0)){var S=new A,O=S[w](b?{}:-0,1)!==S,T=v((function(){S.has(1)})),P=p((function(t){new k(t)})),L=!b&&v((function(){for(var t=new k,e=5;e--;)t[w](e,e);return!t.has(-0)}));P||((A=e((function(t,e){l(t,x);var r=g(new k,t,A);return f(e)||c(e,r[w],{that:r,AS_ENTRIES:m}),r}))).prototype=x,x.constructor=A),(T||L)&&(E("delete"),E("has"),m&&E("get")),(L||O)&&E(w),b&&x.clear&&delete x.clear}return _[t]=A,n({global:!0,constructor:!0,forced:A!==k},_),y(A,t),b||r.setStrong(A,t,m),A}},2924:(t,e,r)=>{var n=r(9649),i=r(2919),a=r(1139),o=r(1601);t.exports=function(t,e,r){for(var s=i(e),u=o.f,c=a.f,l=0;l{var n=r(5811)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},5139:(t,e,r)=>{var n=r(3455);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},9393:t=>{t.exports=function(t,e){return{value:t,done:e}}},139:(t,e,r)=>{var n=r(2444),i=r(1601),a=r(4004);t.exports=n?function(t,e,r){return i.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},4004:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},3552:(t,e,r)=>{var n=r(2444),i=r(1601),a=r(4004);t.exports=function(t,e,r){n?i.f(t,e,a(0,r)):t[e]=r}},952:(t,e,r)=>{var n=r(7447),i=r(3118),a=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new a("Incorrect hint");return i(this,t)}},8986:(t,e,r)=>{var n=r(1147),i=r(1601);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),i.f(t,e,r)}},8552:(t,e,r)=>{var n=r(3749),i=r(1601),a=r(1147),o=r(5801);t.exports=function(t,e,r,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(n(r)&&a(r,c,s),s.global)u?t[e]=r:o(e,r);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},4183:(t,e,r)=>{var n=r(8552);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},5801:(t,e,r)=>{var n=r(4032),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},1870:(t,e,r)=>{var n=r(8055),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw new i("Cannot delete property "+n(e)+" of "+n(t))}},2444:(t,e,r)=>{var n=r(3455);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},7395:(t,e,r)=>{var n,i,a,o,s=r(4032),u=r(9685),c=r(6572),l=s.structuredClone,h=s.ArrayBuffer,f=s.MessageChannel,d=!1;if(c)d=function(t){l(t,{transfer:[t]})};else if(h)try{f||(n=u("worker_threads"))&&(f=n.MessageChannel),f&&(i=new f,a=new h(2),o=function(t){i.port1.postMessage(null,[t])},2===a.byteLength&&(o(a),0===a.byteLength&&(d=o)))}catch(t){}t.exports=d},5751:(t,e,r)=>{var n=r(4032),i=r(2674),a=n.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},9573:t=>{var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},4090:t=>{t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},2760:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},4784:(t,e,r)=>{var n=r(5751)("span").classList,i=n&&n.constructor&&n.constructor.prototype;t.exports=i===Object.prototype?void 0:i},5175:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7085:(t,e,r)=>{var n=r(7607).match(/firefox\\/(\\d+)/i);t.exports=!!n&&+n[1]},5123:(t,e,r)=>{var n=r(7607);t.exports=/MSIE|Trident/.test(n)},9081:(t,e,r)=>{var n=r(7607);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},9352:(t,e,r)=>{var n=r(7607);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},4529:(t,e,r)=>{var n=r(7351);t.exports="NODE"===n},628:(t,e,r)=>{var n=r(7607);t.exports=/web0s(?!.*chrome)/i.test(n)},7607:(t,e,r)=>{var n=r(4032).navigator,i=n&&n.userAgent;t.exports=i?String(i):""},6415:(t,e,r)=>{var n,i,a=r(4032),o=r(7607),s=a.process,u=a.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&o&&(!(n=o.match(/Edge\\/(\\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\\/(\\d+)/))&&(i=+n[1]),t.exports=i},1911:(t,e,r)=>{var n=r(7607).match(/AppleWebKit\\/(\\d+)\\./);t.exports=!!n&&+n[1]},7351:(t,e,r)=>{var n=r(4032),i=r(7607),a=r(9872),o=function(t){return i.slice(0,t.length)===t};t.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===a(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},3633:(t,e,r)=>{var n=r(2608),i=Error,a=n("".replace),o=String(new i("zxcasd").stack),s=/\\n\\s*at [^:]*:[^\\n]*/,u=s.test(o);t.exports=function(t,e){if(u&&"string"==typeof t&&!i.prepareStackTrace)for(;e--;)t=a(t,s,"");return t}},4171:(t,e,r)=>{var n=r(139),i=r(3633),a=r(3427),o=Error.captureStackTrace;t.exports=function(t,e,r,s){a&&(o?o(t,e):n(t,"stack",i(r,s)))}},3427:(t,e,r)=>{var n=r(3455),i=r(4004);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},2912:(t,e,r)=>{var n=r(2444),i=r(3455),a=r(7447),o=r(8363),s=Error.prototype.toString,u=i((function(){if(n){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==s.call(t))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));t.exports=u?function(){var t=a(this),e=o(t.name,"Error"),r=o(t.message);return e?r?e+": "+r:e:r}:s},5366:(t,e,r)=>{var n=r(4032),i=r(1139).f,a=r(139),o=r(8552),s=r(5801),u=r(2924),c=r(5868);t.exports=function(t,e){var r,l,h,f,d,v=t.target,p=t.global,y=t.stat;if(r=p?n:y?n[v]||s(v,{}):n[v]&&n[v].prototype)for(l in e){if(f=e[l],h=t.dontCallGetSet?(d=i(r,l))&&d.value:r[l],!c(p?l:v+(y?".":"#")+l,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(t.sham||h&&h.sham)&&a(f,"sham",!0),o(r,l,f,t)}}},3455:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},4364:(t,e,r)=>{r(2823);var n=r(3453),i=r(8552),a=r(9867),o=r(3455),s=r(5811),u=r(139),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,r,h){var f=s(t),d=!o((function(){var e={};return e[f]=function(){return 7},7!==""[t](e)})),v=d&&!o((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return e=!0,null},r[f](""),!e}));if(!d||!v||r){var p=/./[f],y=e(f,""[t],(function(t,e,r,i,o){var s=e.exec;return s===a||s===l.exec?d&&!o?{done:!0,value:n(p,e,r,i)}:{done:!0,value:n(t,r,e,i)}:{done:!1}}));i(String.prototype,t,y[0]),i(l,f,y[1])}h&&u(l[f],"sham",!0)}},2851:(t,e,r)=>{var n=r(5448),i=r(7878),a=r(9573),o=r(4864),s=function(t,e,r,u,c,l,h,f){for(var d,v,p=c,y=0,g=!!h&&o(h,f);y0&&n(d)?(v=i(d),p=s(t,e,d,v,p,l-1)-1):(a(p+1),t[p]=d),p++),y++;return p};t.exports=s},568:(t,e,r)=>{var n=r(3455);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},3881:(t,e,r)=>{var n=r(9128),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(a):function(){return o.apply(a,arguments)})},4864:(t,e,r)=>{var n=r(2116),i=r(4186),a=r(9128),o=n(n.bind);t.exports=function(t,e){return i(t),void 0===e?t:a?o(t,e):function(){return t.apply(e,arguments)}}},9128:(t,e,r)=>{var n=r(3455);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},2230:(t,e,r)=>{var n=r(2608),i=r(4186),a=r(2674),o=r(9649),s=r(4224),u=r(9128),c=Function,l=n([].concat),h=n([].join),f={};t.exports=u?c.bind:function(t){var e=i(this),r=e.prototype,n=s(arguments,1),u=function(){var r=l(n,s(arguments));return this instanceof u?function(t,e,r){if(!o(f,e)){for(var n=[],i=0;i{var n=r(9128),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},2542:(t,e,r)=>{var n=r(2444),i=r(9649),a=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=i(a,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},5026:(t,e,r)=>{var n=r(2608),i=r(4186);t.exports=function(t,e,r){try{return n(i(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},2116:(t,e,r)=>{var n=r(9872),i=r(2608);t.exports=function(t){if("Function"===n(t))return i(t)}},2608:(t,e,r)=>{var n=r(9128),i=Function.prototype,a=i.call,o=n&&i.bind.bind(a,a);t.exports=n?o:function(t){return function(){return a.apply(t,arguments)}}},9685:(t,e,r)=>{var n=r(4032),i=r(4529);t.exports=function(t){if(i){try{return n.process.getBuiltinModule(t)}catch(t){}try{return Function('return require("'+t+'")')()}catch(t){}}}},8711:(t,e,r)=>{var n=r(4032),i=r(3749);t.exports=function(t,e){return arguments.length<2?(r=n[t],i(r)?r:void 0):n[t]&&n[t][e];var r}},3447:t=>{t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1750:(t,e,r)=>{var n=r(3453),i=r(7447),a=r(3447),o=r(7507);t.exports=function(t,e){e&&"string"==typeof t||i(t);var r=o(t);return a(i(void 0!==r?n(r,t):t))}},7507:(t,e,r)=>{var n=r(1179),i=r(8622),a=r(6021),o=r(5597),s=r(5811)("iterator");t.exports=function(t){if(!a(t))return i(t,s)||i(t,"@@iterator")||o[n(t)]}},6961:(t,e,r)=>{var n=r(3453),i=r(4186),a=r(7447),o=r(8055),s=r(7507),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?s(t):e;if(i(r))return a(n(r,t));throw new u(o(t)+" is not iterable")}},213:(t,e,r)=>{var n=r(2608),i=r(5448),a=r(3749),o=r(9872),s=r(687),u=n([].push);t.exports=function(t){if(a(t))return t;if(i(t)){for(var e=t.length,r=[],n=0;n{var n=r(4186),i=r(6021);t.exports=function(t,e){var r=t[e];return i(r)?void 0:n(r)}},3885:(t,e,r)=>{var n=r(4186),i=r(7447),a=r(3453),o=r(1211),s=r(3447),u="Invalid size",c=RangeError,l=TypeError,h=Math.max,f=function(t,e){this.set=t,this.size=h(e,0),this.has=n(t.has),this.keys=n(t.keys)};f.prototype={getIterator:function(){return s(i(a(this.keys,this.set)))},includes:function(t){return a(this.has,this.set,t)}},t.exports=function(t){i(t);var e=+t.size;if(e!=e)throw new l(u);var r=o(e);if(r<0)throw new c(u);return new f(t,r)}},3966:(t,e,r)=>{var n=r(2608),i=r(4165),a=Math.floor,o=n("".charAt),s=n("".replace),u=n("".slice),c=/\\$([$&'\`]|\\d{1,2}|<[^>]*>)/g,l=/\\$([$&'\`]|\\d{1,2})/g;t.exports=function(t,e,r,n,h,f){var d=r+t.length,v=n.length,p=l;return void 0!==h&&(h=i(h),p=c),s(f,p,(function(i,s){var c;switch(o(s,0)){case"$":return"$";case"&":return t;case"\`":return u(e,0,r);case"'":return u(e,d);case"<":c=h[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>v){var f=a(l/10);return 0===f?i:f<=v?void 0===n[f-1]?o(s,1):n[f-1]+o(s,1):i}c=n[l-1]}return void 0===c?"":c}))}},4032:function(t){var e=function(t){return t&&t.Math===Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||e("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9649:(t,e,r)=>{var n=r(2608),i=r(4165),a=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(i(t),e)}},2645:t=>{t.exports={}},4885:t=>{t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},3085:(t,e,r)=>{var n=r(8711);t.exports=n("document","documentElement")},8829:(t,e,r)=>{var n=r(2444),i=r(3455),a=r(5751);t.exports=!n&&!i((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},1306:t=>{var e=Array,r=Math.abs,n=Math.pow,i=Math.floor,a=Math.log,o=Math.LN2;t.exports={pack:function(t,s,u){var c,l,h,f=e(u),d=8*u-s-1,v=(1<>1,y=23===s?n(2,-24)-n(2,-77):0,g=t<0||0===t&&1/t<0?1:0,m=0;for((t=r(t))!=t||t===1/0?(l=t!=t?1:0,c=v):(c=i(a(t)/o),t*(h=n(2,-c))<1&&(c--,h*=2),(t+=c+p>=1?y/h:y*n(2,1-p))*h>=2&&(c++,h/=2),c+p>=v?(l=0,c=v):c+p>=1?(l=(t*h-1)*n(2,s),c+=p):(l=t*n(2,p-1)*n(2,s),c=0));s>=8;)f[m++]=255&l,l/=256,s-=8;for(c=c<0;)f[m++]=255&c,c/=256,d-=8;return f[m-1]|=128*g,f},unpack:function(t,e){var r,i=t.length,a=8*i-e-1,o=(1<>1,u=a-7,c=i-1,l=t[c--],h=127&l;for(l>>=7;u>0;)h=256*h+t[c--],u-=8;for(r=h&(1<<-u)-1,h>>=-u,u+=e;u>0;)r=256*r+t[c--],u-=8;if(0===h)h=1-s;else{if(h===o)return r?NaN:l?-1/0:1/0;r+=n(2,e),h-=s}return(l?-1:1)*r*n(2,h-e)}}},9455:(t,e,r)=>{var n=r(2608),i=r(3455),a=r(9872),o=Object,s=n("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===a(t)?s(t,""):o(t)}:o},3951:(t,e,r)=>{var n=r(3749),i=r(2674),a=r(9415);t.exports=function(t,e,r){var o,s;return a&&n(o=e.constructor)&&o!==r&&i(s=o.prototype)&&s!==r.prototype&&a(t,s),t}},6906:(t,e,r)=>{var n=r(2608),i=r(3749),a=r(2205),o=n(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},2483:(t,e,r)=>{var n=r(2674),i=r(139);t.exports=function(t,e){n(e)&&"cause"in e&&i(t,"cause",e.cause)}},5227:(t,e,r)=>{var n=r(5366),i=r(2608),a=r(2645),o=r(2674),s=r(9649),u=r(1601).f,c=r(3408),l=r(6442),h=r(8812),f=r(5936),d=r(568),v=!1,p=f("meta"),y=0,g=function(t){u(t,p,{value:{objectID:"O"+y++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},v=!0;var t=c.f,e=i([].splice),r={};r[p]=1,t(r).length&&(c.f=function(r){for(var n=t(r),i=0,a=n.length;i{var n,i,a,o=r(6206),s=r(4032),u=r(2674),c=r(139),l=r(9649),h=r(2205),f=r(2343),d=r(2645),v="Object already initialized",p=s.TypeError,y=s.WeakMap;if(o||h.state){var g=h.state||(h.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw new p(v);return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},a=function(t){return g.has(t)}}else{var m=f("state");d[m]=!0,n=function(t,e){if(l(t,m))throw new p(v);return e.facade=t,c(t,m,e),e},i=function(t){return l(t,m)?t[m]:{}},a=function(t){return l(t,m)}}t.exports={set:n,get:i,has:a,enforce:function(t){return a(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw new p("Incompatible receiver, "+t+" required");return r}}}},993:(t,e,r)=>{var n=r(5811),i=r(5597),a=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[a]===t)}},5448:(t,e,r)=>{var n=r(9872);t.exports=Array.isArray||function(t){return"Array"===n(t)}},5415:(t,e,r)=>{var n=r(1179);t.exports=function(t){var e=n(t);return"BigInt64Array"===e||"BigUint64Array"===e}},3749:t=>{var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},8413:(t,e,r)=>{var n=r(2608),i=r(3455),a=r(3749),o=r(1179),s=r(8711),u=r(6906),c=function(){},l=s("Reflect","construct"),h=/^\\s*(?:class|function)\\b/,f=n(h.exec),d=!h.test(c),v=function(t){if(!a(t))return!1;try{return l(c,[],t),!0}catch(t){return!1}},p=function(t){if(!a(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!f(h,u(t))}catch(t){return!0}};p.sham=!0,t.exports=!l||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?p:v},3007:(t,e,r)=>{var n=r(9649);t.exports=function(t){return void 0!==t&&(n(t,"value")||n(t,"writable"))}},5868:(t,e,r)=>{var n=r(3455),i=r(3749),a=/#|\\.prototype\\./,o=function(t,e){var r=u[s(t)];return r===l||r!==c&&(i(e)?n(e):!!e)},s=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},2599:(t,e,r)=>{var n=r(2674),i=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&i(t)===t}},6021:t=>{t.exports=function(t){return null==t}},2674:(t,e,r)=>{var n=r(3749);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},4597:(t,e,r)=>{var n=r(2674);t.exports=function(t){return n(t)||null===t}},8507:t=>{t.exports=!1},6484:(t,e,r)=>{var n=r(2674),i=r(9872),a=r(5811)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"===i(t))}},2277:(t,e,r)=>{var n=r(8711),i=r(3749),a=r(6921),o=r(4752),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&a(e.prototype,s(t))}},2939:(t,e,r)=>{var n=r(3453);t.exports=function(t,e,r){for(var i,a,o=r?t:t.iterator,s=t.next;!(i=n(s,o)).done;)if(void 0!==(a=e(i.value)))return a}},1804:(t,e,r)=>{var n=r(4864),i=r(3453),a=r(7447),o=r(8055),s=r(993),u=r(7878),c=r(6921),l=r(6961),h=r(7507),f=r(5235),d=TypeError,v=function(t,e){this.stopped=t,this.result=e},p=v.prototype;t.exports=function(t,e,r){var y,g,m,b,w,k,x,A=r&&r.that,_=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),S=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),T=n(e,A),P=function(t){return y&&f(y,"normal",t),new v(!0,t)},L=function(t){return _?(a(t),O?T(t[0],t[1],P):T(t[0],t[1])):O?T(t,P):T(t)};if(E)y=t.iterator;else if(S)y=t;else{if(!(g=h(t)))throw new d(o(t)+" is not iterable");if(s(g)){for(m=0,b=u(t);b>m;m++)if((w=L(t[m]))&&c(p,w))return w;return new v(!1)}y=l(t,g)}for(k=E?t.next:y.next;!(x=i(k,y)).done;){try{w=L(x.value)}catch(t){f(y,"throw",t)}if("object"==typeof w&&w&&c(p,w))return w}return new v(!1)}},5235:(t,e,r)=>{var n=r(3453),i=r(7447),a=r(8622);t.exports=function(t,e,r){var o,s;i(t);try{if(!(o=a(t,"return"))){if("throw"===e)throw r;return r}o=n(o,t)}catch(t){s=!0,o=t}if("throw"===e)throw r;if(s)throw o;return i(o),r}},282:(t,e,r)=>{var n=r(2857).IteratorPrototype,i=r(5304),a=r(4004),o=r(6911),s=r(5597),u=function(){return this};t.exports=function(t,e,r,c){var l=e+" Iterator";return t.prototype=i(n,{next:a(+!c,r)}),o(t,l,!1,!0),s[l]=u,t}},2342:(t,e,r)=>{var n=r(3453),i=r(5304),a=r(139),o=r(4183),s=r(5811),u=r(8301),c=r(8622),l=r(2857).IteratorPrototype,h=r(9393),f=r(5235),d=s("toStringTag"),v="IteratorHelper",p="WrapForValidIterator",y=u.set,g=function(t){var e=u.getterFor(t?p:v);return o(i(l),{next:function(){var r=e(this);if(t)return r.nextHandler();try{var n=r.done?void 0:r.nextHandler();return h(n,r.done)}catch(t){throw r.done=!0,t}},return:function(){var r=e(this),i=r.iterator;if(r.done=!0,t){var a=c(i,"return");return a?n(a,i):h(void 0,!0)}if(r.inner)try{f(r.inner.iterator,"normal")}catch(t){return f(i,"throw",t)}return f(i,"normal"),h(void 0,!0)}})},m=g(!0),b=g(!1);a(b,d,"Iterator Helper"),t.exports=function(t,e){var r=function(r,n){n?(n.iterator=r.iterator,n.next=r.next):n=r,n.type=e?p:v,n.nextHandler=t,n.counter=0,n.done=!1,y(this,n)};return r.prototype=e?m:b,r}},656:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(8507),o=r(2542),s=r(3749),u=r(282),c=r(2611),l=r(9415),h=r(6911),f=r(139),d=r(8552),v=r(5811),p=r(5597),y=r(2857),g=o.PROPER,m=o.CONFIGURABLE,b=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,k=v("iterator"),x="keys",A="values",_="entries",E=function(){return this};t.exports=function(t,e,r,o,v,y,S){u(r,e,o);var O,T,P,L=function(t){if(t===v&&R)return R;if(!w&&t&&t in j)return j[t];switch(t){case x:case A:case _:return function(){return new r(this,t)}}return function(){return new r(this)}},M=e+" Iterator",C=!1,j=t.prototype,I=j[k]||j["@@iterator"]||v&&j[v],R=!w&&I||L(v),F="Array"===e&&j.entries||I;if(F&&(O=c(F.call(new t)))!==Object.prototype&&O.next&&(a||c(O)===b||(l?l(O,b):s(O[k])||d(O,k,E)),h(O,M,!0,!0),a&&(p[M]=E)),g&&v===A&&I&&I.name!==A&&(!a&&m?f(j,"name",A):(C=!0,R=function(){return i(I,this)})),v)if(T={values:L(A),keys:y?R:L(x),entries:L(_)},S)for(P in T)(w||C||!(P in j))&&d(j,P,T[P]);else n({target:e,proto:!0,forced:w||C},T);return a&&!S||j[k]===R||d(j,k,R,{name:v}),p[e]=R,T}},4009:(t,e,r)=>{var n=r(3453),i=r(4186),a=r(7447),o=r(3447),s=r(2342),u=r(3535),c=s((function(){var t=this.iterator,e=a(n(this.next,t));if(!(this.done=!!e.done))return u(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return a(this),i(t),new c(o(this),{mapper:t})}},2857:(t,e,r)=>{var n,i,a,o=r(3455),s=r(3749),u=r(2674),c=r(5304),l=r(2611),h=r(8552),f=r(5811),d=r(8507),v=f("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(i=l(l(a)))!==Object.prototype&&(n=i):p=!0),!u(n)||o((function(){var t={};return n[v].call(t)!==t}))?n={}:d&&(n=c(n)),s(n[v])||h(n,v,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},5597:t=>{t.exports={}},7878:(t,e,r)=>{var n=r(5806);t.exports=function(t){return n(t.length)}},1147:(t,e,r)=>{var n=r(2608),i=r(3455),a=r(3749),o=r(9649),s=r(2444),u=r(2542).CONFIGURABLE,c=r(6906),l=r(8301),h=l.enforce,f=l.get,d=String,v=Object.defineProperty,p=n("".slice),y=n("".replace),g=n([].join),m=s&&!i((function(){return 8!==v((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===p(d(e),0,7)&&(e="["+y(d(e),/^Symbol\\(([^)]*)\\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!o(t,"name")||u&&t.name!==e)&&(s?v(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&o(r,"arity")&&t.length!==r.arity&&v(t,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?s&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=h(t);return o(n,"source")||(n.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return a(this)&&f(this).source||c(this)}),"toString")},9676:(t,e,r)=>{var n=r(550),i=Math.abs,a=2220446049250313e-31,o=1/a;t.exports=function(t,e,r,s){var u=+t,c=i(u),l=n(u);if(cr||f!=f?l*(1/0):l*f}},3505:(t,e,r)=>{var n=r(9676);t.exports=Math.fround||function(t){return n(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},550:t=>{t.exports=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1}},2789:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},755:(t,e,r)=>{var n,i,a,o,s,u=r(4032),c=r(5725),l=r(4864),h=r(1369).set,f=r(3529),d=r(9352),v=r(9081),p=r(628),y=r(4529),g=u.MutationObserver||u.WebKitMutationObserver,m=u.document,b=u.process,w=u.Promise,k=c("queueMicrotask");if(!k){var x=new f,A=function(){var t,e;for(y&&(t=b.domain)&&t.exit();e=x.get();)try{e()}catch(t){throw x.head&&n(),t}t&&t.enter()};d||y||p||!g||!m?!v&&w&&w.resolve?((o=w.resolve(void 0)).constructor=w,s=l(o.then,o),n=function(){s(A)}):y?n=function(){b.nextTick(A)}:(h=l(h,u),n=function(){h(A)}):(i=!0,a=m.createTextNode(""),new g(A).observe(a,{characterData:!0}),n=function(){a.data=i=!i}),k=function(t){x.head||n(),x.add(t)}}t.exports=k},9371:(t,e,r)=>{var n=r(4186),i=TypeError,a=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw new i("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new a(t)}},8363:(t,e,r)=>{var n=r(687);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},821:t=>{var e=RangeError;t.exports=function(t){if(t==t)return t;throw new e("NaN is not allowed")}},3631:(t,e,r)=>{var n=r(6484),i=TypeError;t.exports=function(t){if(n(t))throw new i("The method doesn't accept regular expressions");return t}},8069:(t,e,r)=>{var n=r(2444),i=r(2608),a=r(3453),o=r(3455),s=r(496),u=r(6005),c=r(9221),l=r(4165),h=r(9455),f=Object.assign,d=Object.defineProperty,v=i([].concat);t.exports=!f||o((function(){if(n&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[r]=7,i.split("").forEach((function(t){e[t]=t})),7!==f({},t)[r]||s(f({},e)).join("")!==i}))?function(t,e){for(var r=l(t),i=arguments.length,o=1,f=u.f,d=c.f;i>o;)for(var p,y=h(arguments[o++]),g=f?v(s(y),f(y)):s(y),m=g.length,b=0;m>b;)p=g[b++],n&&!a(d,y,p)||(r[p]=y[p]);return r}:f},5304:(t,e,r)=>{var n,i=r(7447),a=r(9217),o=r(5175),s=r(2645),u=r(3085),c=r(5751),l=r(2343),h="prototype",f="script",d=l("IE_PROTO"),v=function(){},p=function(t){return"<"+f+">"+t+""},y=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;g="undefined"!=typeof document?document.domain&&n?y(n):(e=c("iframe"),r="java"+f+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):y(n);for(var i=o.length;i--;)delete g[h][o[i]];return g()};s[d]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(v[h]=i(t),r=new v,v[h]=null,r[d]=t):r=g(),void 0===e?r:a.f(r,e)}},9217:(t,e,r)=>{var n=r(2444),i=r(782),a=r(1601),o=r(7447),s=r(3637),u=r(496);e.f=n&&!i?Object.defineProperties:function(t,e){o(t);for(var r,n=s(e),i=u(e),c=i.length,l=0;c>l;)a.f(t,r=i[l++],n[r]);return t}},1601:(t,e,r)=>{var n=r(2444),i=r(8829),a=r(782),o=r(7447),s=r(6201),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";e.f=n?a?function(t,e,r){if(o(t),e=s(e),o(r),"function"==typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]){var n=l(t,e);n&&n[d]&&(t[e]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:h in r?r[h]:n[h],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(o(t),e=s(e),o(r),i)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},1139:(t,e,r)=>{var n=r(2444),i=r(3453),a=r(9221),o=r(4004),s=r(3637),u=r(6201),c=r(9649),l=r(8829),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=s(t),e=u(e),l)try{return h(t,e)}catch(t){}if(c(t,e))return o(!i(a.f,t,e),t[e])}},6442:(t,e,r)=>{var n=r(9872),i=r(3637),a=r(3408).f,o=r(4224),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===n(t)?function(t){try{return a(t)}catch(t){return o(s)}}(t):a(i(t))}},3408:(t,e,r)=>{var n=r(2468),i=r(5175).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},6005:(t,e)=>{e.f=Object.getOwnPropertySymbols},2611:(t,e,r)=>{var n=r(9649),i=r(3749),a=r(4165),o=r(2343),s=r(5139),u=o("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=a(t);if(n(e,u))return e[u];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof c?l:null}},8812:(t,e,r)=>{var n=r(3455),i=r(2674),a=r(9872),o=r(7060),s=Object.isExtensible,u=n((function(){s(1)}));t.exports=u||o?function(t){return!!i(t)&&(!o||"ArrayBuffer"!==a(t))&&(!s||s(t))}:s},6921:(t,e,r)=>{var n=r(2608);t.exports=n({}.isPrototypeOf)},2468:(t,e,r)=>{var n=r(2608),i=r(9649),a=r(3637),o=r(7921).indexOf,s=r(2645),u=n([].push);t.exports=function(t,e){var r,n=a(t),c=0,l=[];for(r in n)!i(s,r)&&i(n,r)&&u(l,r);for(;e.length>c;)i(n,r=e[c++])&&(~o(l,r)||u(l,r));return l}},496:(t,e,r)=>{var n=r(2468),i=r(5175);t.exports=Object.keys||function(t){return n(t,i)}},9221:(t,e)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},9415:(t,e,r)=>{var n=r(5026),i=r(2674),a=r(7222),o=r(7330);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return a(r),o(n),i(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},8885:(t,e,r)=>{var n=r(2444),i=r(3455),a=r(2608),o=r(2611),s=r(496),u=r(3637),c=a(r(9221).f),l=a([].push),h=n&&i((function(){var t=Object.create(null);return t[2]=2,!c(t,2)})),f=function(t){return function(e){for(var r,i=u(e),a=s(i),f=h&&null===o(i),d=a.length,v=0,p=[];d>v;)r=a[v++],n&&!(f?r in i:c(i,r))||l(p,t?[r,i[r]]:i[r]);return p}};t.exports={entries:f(!0),values:f(!1)}},3003:(t,e,r)=>{var n=r(3724),i=r(1179);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},3118:(t,e,r)=>{var n=r(3453),i=r(3749),a=r(2674),o=TypeError;t.exports=function(t,e){var r,s;if("string"===e&&i(r=t.toString)&&!a(s=n(r,t)))return s;if(i(r=t.valueOf)&&!a(s=n(r,t)))return s;if("string"!==e&&i(r=t.toString)&&!a(s=n(r,t)))return s;throw new o("Can't convert object to primitive value")}},2919:(t,e,r)=>{var n=r(8711),i=r(2608),a=r(3408),o=r(6005),s=r(7447),u=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=a.f(s(t)),r=o.f;return r?u(e,r(t)):e}},1448:(t,e,r)=>{var n=r(2608),i=r(9649),a=SyntaxError,o=parseInt,s=String.fromCharCode,u=n("".charAt),c=n("".slice),l=n(/./.exec),h={'\\\\"':'"',"\\\\\\\\":"\\\\","\\\\/":"/","\\\\b":"\\b","\\\\f":"\\f","\\\\n":"\\n","\\\\r":"\\r","\\\\t":"\\t"},f=/^[\\da-f]{4}$/i,d=/^[\\u0000-\\u001F]$/;t.exports=function(t,e){for(var r=!0,n="";e{var n=r(4032);t.exports=n},6703:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9492:(t,e,r)=>{var n=r(4032),i=r(5318),a=r(3749),o=r(5868),s=r(6906),u=r(5811),c=r(7351),l=r(8507),h=r(6415),f=i&&i.prototype,d=u("species"),v=!1,p=a(n.PromiseRejectionEvent),y=o("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===h)return!0;if(l&&(!f.catch||!f.finally))return!0;if(!h||h<51||!/native code/.test(t)){var r=new i((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[d]=n,!(v=r.then((function(){}))instanceof n))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||p)}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:p,SUBCLASSING:v}},5318:(t,e,r)=>{var n=r(4032);t.exports=n.Promise},1774:(t,e,r)=>{var n=r(7447),i=r(2674),a=r(9371);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=a.f(t);return(0,r.resolve)(e),r.promise}},2041:(t,e,r)=>{var n=r(5318),i=r(4348),a=r(9492).CONSTRUCTOR;t.exports=a||!i((function(t){n.all(t).then(void 0,(function(){}))}))},2848:(t,e,r)=>{var n=r(1601).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},3529:t=>{var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},4410:(t,e,r)=>{var n=r(3453),i=r(7447),a=r(3749),o=r(9872),s=r(9867),u=TypeError;t.exports=function(t,e){var r=t.exec;if(a(r)){var c=n(r,t,e);return null!==c&&i(c),c}if("RegExp"===o(t))return n(s,t,e);throw new u("RegExp#exec called on incompatible receiver")}},9867:(t,e,r)=>{var n,i,a=r(3453),o=r(2608),s=r(687),u=r(747),c=r(1837),l=r(4593),h=r(5304),f=r(8301).get,d=r(3651),v=r(9502),p=l("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,m=o("".charAt),b=o("".indexOf),w=o("".replace),k=o("".slice),x=(i=/b*/g,a(y,n=/a/,"a"),a(y,i,"a"),0!==n.lastIndex||0!==i.lastIndex),A=c.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(x||_||A||d||v)&&(g=function(t){var e,r,n,i,o,c,l,d=this,v=f(d),E=s(t),S=v.raw;if(S)return S.lastIndex=d.lastIndex,e=a(g,S,E),d.lastIndex=S.lastIndex,e;var O=v.groups,T=A&&d.sticky,P=a(u,d),L=d.source,M=0,C=E;if(T&&(P=w(P,"y",""),-1===b(P,"g")&&(P+="g"),C=k(E,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\\n"!==m(E,d.lastIndex-1))&&(L="(?: "+L+")",C=" "+C,M++),r=new RegExp("^(?:"+L+")",P)),_&&(r=new RegExp("^"+L+"$(?!\\\\s)",P)),x&&(n=d.lastIndex),i=a(y,T?r:d,C),T?i?(i.input=k(i.input,M),i[0]=k(i[0],M),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:x&&i&&(d.lastIndex=d.global?i.index+i[0].length:n),_&&i&&i.length>1&&a(p,i[0],r,(function(){for(o=1;o{var n=r(7447);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},4554:(t,e,r)=>{var n=r(3453),i=r(9649),a=r(6921),o=r(747),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!a(s,t)?e:n(o,t)}},1837:(t,e,r)=>{var n=r(3455),i=r(4032).RegExp,a=n((function(){var t=i("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),o=a||n((function(){return!i("a","y").sticky})),s=a||n((function(){var t=i("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},3651:(t,e,r)=>{var n=r(3455),i=r(4032).RegExp;t.exports=n((function(){var t=i(".","s");return!(t.dotAll&&t.test("\\n")&&"s"===t.flags)}))},9502:(t,e,r)=>{var n=r(3455),i=r(4032).RegExp;t.exports=n((function(){var t=i("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},7222:(t,e,r)=>{var n=r(6021),i=TypeError;t.exports=function(t){if(n(t))throw new i("Can't call method on "+t);return t}},5725:(t,e,r)=>{var n=r(4032),i=r(2444),a=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!i)return n[t];var e=a(n,t);return e&&e.value}},8550:(t,e,r)=>{var n=r(418),i=r(5605),a=n.Set,o=n.add;t.exports=function(t){var e=new a;return i(t,(function(t){o(e,t)})),e}},4656:(t,e,r)=>{var n=r(4376),i=r(418),a=r(8550),o=r(82),s=r(3885),u=r(5605),c=r(2939),l=i.has,h=i.remove;t.exports=function(t){var e=n(this),r=s(t),i=a(e);return o(e)<=r.size?u(e,(function(t){r.includes(t)&&h(i,t)})):c(r.getIterator(),(function(t){l(e,t)&&h(i,t)})),i}},418:(t,e,r)=>{var n=r(2608),i=Set.prototype;t.exports={Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}},2446:(t,e,r)=>{var n=r(4376),i=r(418),a=r(82),o=r(3885),s=r(5605),u=r(2939),c=i.Set,l=i.add,h=i.has;t.exports=function(t){var e=n(this),r=o(t),i=new c;return a(e)>r.size?u(r.getIterator(),(function(t){h(e,t)&&l(i,t)})):s(e,(function(t){r.includes(t)&&l(i,t)})),i}},4545:(t,e,r)=>{var n=r(4376),i=r(418).has,a=r(82),o=r(3885),s=r(5605),u=r(2939),c=r(5235);t.exports=function(t){var e=n(this),r=o(t);if(a(e)<=r.size)return!1!==s(e,(function(t){if(r.includes(t))return!1}),!0);var l=r.getIterator();return!1!==u(l,(function(t){if(i(e,t))return c(l,"normal",!1)}))}},7918:(t,e,r)=>{var n=r(4376),i=r(82),a=r(5605),o=r(3885);t.exports=function(t){var e=n(this),r=o(t);return!(i(e)>r.size)&&!1!==a(e,(function(t){if(!r.includes(t))return!1}),!0)}},6111:(t,e,r)=>{var n=r(4376),i=r(418).has,a=r(82),o=r(3885),s=r(2939),u=r(5235);t.exports=function(t){var e=n(this),r=o(t);if(a(e){var n=r(2608),i=r(2939),a=r(418),o=a.Set,s=a.proto,u=n(s.forEach),c=n(s.keys),l=c(new o).next;t.exports=function(t,e,r){return r?i({iterator:c(t),next:l},e):u(t,e)}},1716:(t,e,r)=>{var n=r(8711),i=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};t.exports=function(t){var e=n("Set");try{(new e)[t](i(0));try{return(new e)[t](i(-1)),!1}catch(t){return!0}}catch(t){return!1}}},82:(t,e,r)=>{var n=r(5026),i=r(418);t.exports=n(i.proto,"size","get")||function(t){return t.size}},5409:(t,e,r)=>{var n=r(8711),i=r(8986),a=r(5811),o=r(2444),s=a("species");t.exports=function(t){var e=n(t);o&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},4498:(t,e,r)=>{var n=r(4376),i=r(418),a=r(8550),o=r(3885),s=r(2939),u=i.add,c=i.has,l=i.remove;t.exports=function(t){var e=n(this),r=o(t).getIterator(),i=a(e);return s(r,(function(t){c(e,t)?l(i,t):u(i,t)})),i}},6911:(t,e,r)=>{var n=r(1601).f,i=r(9649),a=r(5811)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!i(t,a)&&n(t,a,{configurable:!0,value:e})}},9500:(t,e,r)=>{var n=r(4376),i=r(418).add,a=r(8550),o=r(3885),s=r(2939);t.exports=function(t){var e=n(this),r=o(t).getIterator(),u=a(e);return s(r,(function(t){i(u,t)})),u}},2343:(t,e,r)=>{var n=r(4593),i=r(5936),a=n("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},2205:(t,e,r)=>{var n=r(8507),i=r(4032),a=r(5801),o="__core-js_shared__",s=t.exports=i[o]||a(o,{});(s.versions||(s.versions=[])).push({version:"3.38.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},4593:(t,e,r)=>{var n=r(2205);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},1365:(t,e,r)=>{var n=r(7447),i=r(9052),a=r(6021),o=r(5811)("species");t.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||a(r=n(s)[o])?e:i(r)}},6903:(t,e,r)=>{var n=r(2608),i=r(1211),a=r(687),o=r(7222),s=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(t){return function(e,r){var n,l,h=a(o(e)),f=i(r),d=h.length;return f<0||f>=d?t?"":void 0:(n=u(h,f))<55296||n>56319||f+1===d||(l=u(h,f+1))<56320||l>57343?t?s(h,f):n:t?c(h,f,f+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},4903:(t,e,r)=>{var n=r(7607);t.exports=/Version\\/10(?:\\.\\d+){1,2}(?: [\\w./]+)?(?: Mobile\\/\\w+)? Safari\\//.test(n)},6437:(t,e,r)=>{var n=r(2608),i=r(5806),a=r(687),o=r(6605),s=r(7222),u=n(o),c=n("".slice),l=Math.ceil,h=function(t){return function(e,r,n){var o,h,f=a(s(e)),d=i(r),v=f.length,p=void 0===n?" ":a(n);return d<=v||""===p?f:((h=u(p,l((o=d-v)/p.length))).length>o&&(h=c(h,0,o)),t?f+h:h+f)}};t.exports={start:h(!1),end:h(!0)}},5141:(t,e,r)=>{var n=r(2608),i=2147483647,a=/[^\\0-\\u007E]/,o=/[.\\u3002\\uFF0E\\uFF61]/g,s="Overflow: input needs wider integers to process",u=RangeError,c=n(o.exec),l=Math.floor,h=String.fromCharCode,f=n("".charCodeAt),d=n([].join),v=n([].push),p=n("".replace),y=n("".split),g=n("".toLowerCase),m=function(t){return t+22+75*(t<26)},b=function(t,e,r){var n=0;for(t=r?l(t/700):t>>1,t+=l(t/e);t>455;)t=l(t/35),n+=36;return l(n+36*t/(t+38))},w=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r=55296&&i<=56319&&r=o&&nl((i-c)/k))throw new u(s);for(c+=(w-o)*k,o=w,r=0;ri)throw new u(s);if(n===o){for(var x=c,A=36;;){var _=A<=p?1:A>=p+26?26:A-p;if(x<_)break;var E=x-_,S=36-_;v(e,h(m(_+E%S))),x=l(E/S),A+=36}v(e,h(m(x))),p=b(c,k,g===y),c=0,g++}}c++,o++}return d(e,"")};t.exports=function(t){var e,r,n=[],i=y(p(g(t),o,"."),".");for(e=0;e{var n=r(1211),i=r(687),a=r(7222),o=RangeError;t.exports=function(t){var e=i(a(this)),r="",s=n(t);if(s<0||s===1/0)throw new o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(r+=e);return r}},2882:(t,e,r)=>{var n=r(9418).end,i=r(3794);t.exports=i("trimEnd")?function(){return n(this)}:"".trimEnd},3794:(t,e,r)=>{var n=r(2542).PROPER,i=r(3455),a=r(2284);t.exports=function(t){return i((function(){return!!a[t]()||"​…᠎"!=="​…᠎"[t]()||n&&a[t].name!==t}))}},9418:(t,e,r)=>{var n=r(2608),i=r(7222),a=r(687),o=r(2284),s=n("".replace),u=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),l=function(t){return function(e){var r=a(i(e));return 1&t&&(r=s(r,u,"")),2&t&&(r=s(r,c,"$1")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},6572:(t,e,r)=>{var n=r(4032),i=r(3455),a=r(6415),o=r(7351),s=n.structuredClone;t.exports=!!s&&!i((function(){if("DENO"===o&&a>92||"NODE"===o&&a>94||"BROWSER"===o&&a>97)return!1;var t=new ArrayBuffer(8),e=s(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},6943:(t,e,r)=>{var n=r(6415),i=r(3455),a=r(4032).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3042:(t,e,r)=>{var n=r(3453),i=r(8711),a=r(5811),o=r(8552);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,s=a("toPrimitive");e&&!e[s]&&o(e,s,(function(t){return n(r,this)}),{arity:1})}},8592:(t,e,r)=>{var n=r(6943);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},1369:(t,e,r)=>{var n,i,a,o,s=r(4032),u=r(3881),c=r(4864),l=r(3749),h=r(9649),f=r(3455),d=r(3085),v=r(4224),p=r(5751),y=r(7900),g=r(9352),m=r(4529),b=s.setImmediate,w=s.clearImmediate,k=s.process,x=s.Dispatch,A=s.Function,_=s.MessageChannel,E=s.String,S=0,O={},T="onreadystatechange";f((function(){n=s.location}));var P=function(t){if(h(O,t)){var e=O[t];delete O[t],e()}},L=function(t){return function(){P(t)}},M=function(t){P(t.data)},C=function(t){s.postMessage(E(t),n.protocol+"//"+n.host)};b&&w||(b=function(t){y(arguments.length,1);var e=l(t)?t:A(t),r=v(arguments,1);return O[++S]=function(){u(e,void 0,r)},i(S),S},w=function(t){delete O[t]},m?i=function(t){k.nextTick(L(t))}:x&&x.now?i=function(t){x.now(L(t))}:_&&!g?(o=(a=new _).port2,a.port1.onmessage=M,i=c(o.postMessage,o)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(C)?(i=C,s.addEventListener("message",M,!1)):i=T in p("script")?function(t){d.appendChild(p("script"))[T]=function(){d.removeChild(this),P(t)}}:function(t){setTimeout(L(t),0)}),t.exports={set:b,clear:w}},9002:(t,e,r)=>{var n=r(1211),i=Math.max,a=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):a(r,e)}},1198:(t,e,r)=>{var n=r(8921),i=TypeError;t.exports=function(t){var e=n(t,"number");if("number"==typeof e)throw new i("Can't convert number to bigint");return BigInt(e)}},9088:(t,e,r)=>{var n=r(1211),i=r(5806),a=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=i(e);if(e!==r)throw new a("Wrong length or index");return r}},3637:(t,e,r)=>{var n=r(9455),i=r(7222);t.exports=function(t){return n(i(t))}},1211:(t,e,r)=>{var n=r(2789);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},5806:(t,e,r)=>{var n=r(1211),i=Math.min;t.exports=function(t){var e=n(t);return e>0?i(e,9007199254740991):0}},4165:(t,e,r)=>{var n=r(7222),i=Object;t.exports=function(t){return i(n(t))}},8402:(t,e,r)=>{var n=r(5590),i=RangeError;t.exports=function(t,e){var r=n(t);if(r%e)throw new i("Wrong offset");return r}},5590:(t,e,r)=>{var n=r(1211),i=RangeError;t.exports=function(t){var e=n(t);if(e<0)throw new i("The argument can't be less than 0");return e}},8921:(t,e,r)=>{var n=r(3453),i=r(2674),a=r(2277),o=r(8622),s=r(3118),u=r(5811),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||a(t))return t;var r,u=o(t,l);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!i(r)||a(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},6201:(t,e,r)=>{var n=r(8921),i=r(2277);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},3724:(t,e,r)=>{var n={};n[r(5811)("toStringTag")]="z",t.exports="[object z]"===String(n)},687:(t,e,r)=>{var n=r(1179),i=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},5215:t=>{var e=Math.round;t.exports=function(t){var r=e(t);return r<0?0:r>255?255:255&r}},8055:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},8975:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(3453),o=r(2444),s=r(949),u=r(4356),c=r(7226),l=r(3399),h=r(4004),f=r(139),d=r(2599),v=r(5806),p=r(9088),y=r(8402),g=r(5215),m=r(6201),b=r(9649),w=r(1179),k=r(2674),x=r(2277),A=r(5304),_=r(6921),E=r(9415),S=r(3408).f,O=r(2291),T=r(5645).forEach,P=r(5409),L=r(8986),M=r(1601),C=r(1139),j=r(7434),I=r(8301),R=r(3951),F=I.get,D=I.set,N=I.enforce,W=M.f,B=C.f,G=i.RangeError,H=c.ArrayBuffer,U=H.prototype,z=c.DataView,V=u.NATIVE_ARRAY_BUFFER_VIEWS,q=u.TYPED_ARRAY_TAG,Y=u.TypedArray,X=u.TypedArrayPrototype,K=u.isTypedArray,Q="BYTES_PER_ELEMENT",J="Wrong length",$=function(t,e){L(t,e,{configurable:!0,get:function(){return F(this)[e]}})},Z=function(t){var e;return _(U,t)||"ArrayBuffer"===(e=w(t))||"SharedArrayBuffer"===e},tt=function(t,e){return K(t)&&!x(e)&&e in t&&d(+e)&&e>=0},et=function(t,e){return e=m(e),tt(t,e)?h(2,t[e]):B(t,e)},rt=function(t,e,r){return e=m(e),!(tt(t,e)&&k(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?W(t,e,r):(t[e]=r.value,t)};o?(V||(C.f=et,M.f=rt,$(X,"buffer"),$(X,"byteOffset"),$(X,"byteLength"),$(X,"length")),n({target:"Object",stat:!0,forced:!V},{getOwnPropertyDescriptor:et,defineProperty:rt}),t.exports=function(t,e,r){var o=t.match(/\\d+/)[0]/8,u=t+(r?"Clamped":"")+"Array",c="get"+t,h="set"+t,d=i[u],m=d,b=m&&m.prototype,w={},x=function(t,e){W(t,e,{get:function(){return function(t,e){var r=F(t);return r.view[c](e*o+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,n){var i=F(t);i.view[h](e*o+i.byteOffset,r?g(n):n,!0)}(this,e,t)},enumerable:!0})};V?s&&(m=e((function(t,e,r,n){return l(t,b),R(k(e)?Z(e)?void 0!==n?new d(e,y(r,o),n):void 0!==r?new d(e,y(r,o)):new d(e):K(e)?j(m,e):a(O,m,e):new d(p(e)),t,m)})),E&&E(m,Y),T(S(d),(function(t){t in m||f(m,t,d[t])})),m.prototype=b):(m=e((function(t,e,r,n){l(t,b);var i,s,u,c=0,h=0;if(k(e)){if(!Z(e))return K(e)?j(m,e):a(O,m,e);i=e,h=y(r,o);var f=e.byteLength;if(void 0===n){if(f%o)throw new G(J);if((s=f-h)<0)throw new G(J)}else if((s=v(n)*o)+h>f)throw new G(J);u=s/o}else u=p(e),i=new H(s=u*o);for(D(t,{buffer:i,byteOffset:h,byteLength:s,length:u,view:new z(i)});c{var n=r(4032),i=r(3455),a=r(4348),o=r(4356).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,u=n.Int8Array;t.exports=!o||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!a((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},85:(t,e,r)=>{var n=r(7434),i=r(580);t.exports=function(t,e){return n(i(t),e)}},2291:(t,e,r)=>{var n=r(4864),i=r(3453),a=r(9052),o=r(4165),s=r(7878),u=r(6961),c=r(7507),l=r(993),h=r(5415),f=r(4356).aTypedArrayConstructor,d=r(1198);t.exports=function(t){var e,r,v,p,y,g,m,b,w=a(this),k=o(t),x=arguments.length,A=x>1?arguments[1]:void 0,_=void 0!==A,E=c(k);if(E&&!l(E))for(b=(m=u(k,E)).next,k=[];!(g=i(b,m)).done;)k.push(g.value);for(_&&x>2&&(A=n(A,arguments[2])),r=s(k),v=new(f(w))(r),p=h(v),e=0;r>e;e++)y=_?A(k[e],e):k[e],v[e]=p?d(y):+y;return v}},580:(t,e,r)=>{var n=r(4356),i=r(1365),a=n.aTypedArrayConstructor,o=n.getTypedArrayConstructor;t.exports=function(t){return a(i(t,o(t)))}},5936:(t,e,r)=>{var n=r(2608),i=0,a=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+a,36)}},8200:(t,e,r)=>{var n=r(3455),i=r(5811),a=r(2444),o=r(8507),s=i("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),r.delete("a",2),r.delete("b",void 0),o&&(!t.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!e.size&&(o||!a)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}))},4752:(t,e,r)=>{var n=r(6943);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},782:(t,e,r)=>{var n=r(2444),i=r(3455);t.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7900:t=>{var e=TypeError;t.exports=function(t,r){if(t{var n=r(4032),i=r(3749),a=n.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},5343:(t,e,r)=>{var n=r(8799),i=r(9649),a=r(4559),o=r(1601).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},4559:(t,e,r)=>{var n=r(5811);e.f=n},5811:(t,e,r)=>{var n=r(4032),i=r(4593),a=r(9649),o=r(5936),s=r(6943),u=r(4752),c=n.Symbol,l=i("wks"),h=u?c.for||c:c&&c.withoutSetter||o;t.exports=function(t){return a(l,t)||(l[t]=s&&a(c,t)?c[t]:h("Symbol."+t)),l[t]}},2284:t=>{t.exports="\\t\\n\\v\\f\\r                 \\u2028\\u2029\\ufeff"},9257:(t,e,r)=>{var n=r(8711),i=r(9649),a=r(139),o=r(6921),s=r(9415),u=r(2924),c=r(2848),l=r(3951),h=r(8363),f=r(2483),d=r(4171),v=r(2444),p=r(8507);t.exports=function(t,e,r,y){var g="stackTraceLimit",m=y?2:1,b=t.split("."),w=b[b.length-1],k=n.apply(null,b);if(k){var x=k.prototype;if(!p&&i(x,"cause")&&delete x.cause,!r)return k;var A=n("Error"),_=e((function(t,e){var r=h(y?e:t,void 0),n=y?new k(t):new k;return void 0!==r&&a(n,"message",r),d(n,_,n.stack,2),this&&o(x,this)&&l(n,this,_),arguments.length>m&&f(n,arguments[m]),n}));if(_.prototype=x,"Error"!==w?s?s(_,A):u(_,A,{name:!0}):v&&g in k&&(c(_,k,g),c(_,k,"prepareStackTrace")),u(_,k),!p)try{x.name!==w&&a(x,"name",w),x.constructor=_}catch(t){}return _}}},5015:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(7226),o=r(5409),s="ArrayBuffer",u=a[s];n({global:!0,constructor:!0,forced:i[s]!==u},{ArrayBuffer:u}),o(s)},9261:(t,e,r)=>{var n=r(2444),i=r(8986),a=r(8102),o=ArrayBuffer.prototype;n&&!("detached"in o)&&i(o,"detached",{configurable:!0,get:function(){return a(this)}})},6209:(t,e,r)=>{var n=r(5366),i=r(2116),a=r(3455),o=r(7226),s=r(7447),u=r(9002),c=r(5806),l=r(1365),h=o.ArrayBuffer,f=o.DataView,d=f.prototype,v=i(h.prototype.slice),p=i(d.getUint8),y=i(d.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new h(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(v&&void 0===e)return v(s(this),t);for(var r=s(this).byteLength,n=u(t,r),i=u(void 0===e?r:e,r),a=new(l(this,h))(c(i-n)),o=new f(this),d=new f(a),g=0;n{var n=r(5366),i=r(4676);i&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},3700:(t,e,r)=>{var n=r(5366),i=r(4676);i&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},6347:(t,e,r)=>{var n=r(5366),i=r(4165),a=r(7878),o=r(1211),s=r(1458);n({target:"Array",proto:!0},{at:function(t){var e=i(this),r=a(e),n=o(t),s=n>=0?n:r+n;return s<0||s>=r?void 0:e[s]}}),s("at")},3234:(t,e,r)=>{var n=r(5366),i=r(3455),a=r(5448),o=r(2674),s=r(4165),u=r(7878),c=r(9573),l=r(3552),h=r(1453),f=r(9077),d=r(5811),v=r(6415),p=d("isConcatSpreadable"),y=v>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),g=function(t){if(!o(t))return!1;var e=t[p];return void 0!==e?!!e:a(t)};n({target:"Array",proto:!0,arity:1,forced:!y||!f("concat")},{concat:function(t){var e,r,n,i,a,o=s(this),f=h(o,0),d=0;for(e=-1,n=arguments.length;e{var n=r(5366),i=r(5645).filter;n({target:"Array",proto:!0,forced:!r(9077)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},4302:(t,e,r)=>{var n=r(5366),i=r(2851),a=r(4186),o=r(4165),s=r(7878),u=r(1453);n({target:"Array",proto:!0},{flatMap:function(t){var e,r=o(this),n=s(r);return a(t),(e=u(r,0)).length=i(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},6746:(t,e,r)=>{var n=r(5366),i=r(3948);n({target:"Array",stat:!0,forced:!r(4348)((function(t){Array.from(t)}))},{from:i})},8551:(t,e,r)=>{var n=r(5366),i=r(7921).includes,a=r(3455),o=r(1458);n({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},3276:(t,e,r)=>{var n=r(5366),i=r(2116),a=r(7921).indexOf,o=r(1814),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0;n({target:"Array",proto:!0,forced:u||!o("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:a(this,t,e)}})},9024:(t,e,r)=>{var n=r(3637),i=r(1458),a=r(5597),o=r(8301),s=r(1601).f,u=r(656),c=r(9393),l=r(8507),h=r(2444),f="Array Iterator",d=o.set,v=o.getterFor(f);t.exports=u(Array,"Array",(function(t,e){d(this,{type:f,target:n(t),index:0,kind:e})}),(function(){var t=v(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)}),"values");var p=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!l&&h&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(t){}},3177:(t,e,r)=>{var n=r(5366),i=r(3499);n({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},5550:(t,e,r)=>{var n=r(5366),i=r(5645).map;n({target:"Array",proto:!0,forced:!r(9077)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},9138:(t,e,r)=>{var n=r(5366),i=r(4165),a=r(7878),o=r(7375),s=r(9573);n({target:"Array",proto:!0,arity:1,forced:r(3455)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=i(this),r=a(e),n=arguments.length;s(r+n);for(var u=0;u{var n=r(5366),i=r(4734).left,a=r(1814),o=r(6415);n({target:"Array",proto:!0,forced:!r(4529)&&o>79&&o<83||!a("reduce")},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},4413:(t,e,r)=>{var n=r(5366),i=r(2608),a=r(5448),o=i([].reverse),s=[1,2];n({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},750:(t,e,r)=>{var n=r(5366),i=r(5448),a=r(8413),o=r(2674),s=r(9002),u=r(7878),c=r(3637),l=r(3552),h=r(5811),f=r(9077),d=r(4224),v=f("slice"),p=h("species"),y=Array,g=Math.max;n({target:"Array",proto:!0,forced:!v},{slice:function(t,e){var r,n,h,f=c(this),v=u(f),m=s(t,v),b=s(void 0===e?v:e,v);if(i(f)&&(r=f.constructor,(a(r)&&(r===y||i(r.prototype))||o(r)&&null===(r=r[p]))&&(r=void 0),r===y||void 0===r))return d(f,m,b);for(n=new(void 0===r?y:r)(g(b-m,0)),h=0;m{var n=r(5366),i=r(2608),a=r(4186),o=r(4165),s=r(7878),u=r(1870),c=r(687),l=r(3455),h=r(5272),f=r(1814),d=r(7085),v=r(5123),p=r(6415),y=r(1911),g=[],m=i(g.sort),b=i(g.push),w=l((function(){g.sort(void 0)})),k=l((function(){g.sort(null)})),x=f("sort"),A=!l((function(){if(p)return p<70;if(!(d&&d>3)){if(v)return!0;if(y)return y<603;var t,e,r,n,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)g.push({k:e+n,v:r})}for(g.sort((function(t,e){return e.v-t.v})),n=0;nc(r)?1:-1}}(t)),r=s(i),n=0;n{var n=r(5366),i=r(4165),a=r(9002),o=r(1211),s=r(7878),u=r(7375),c=r(9573),l=r(1453),h=r(3552),f=r(1870),d=r(9077)("splice"),v=Math.max,p=Math.min;n({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var r,n,d,y,g,m,b=i(this),w=s(b),k=a(t,w),x=arguments.length;for(0===x?r=n=0:1===x?(r=0,n=w-k):(r=x-2,n=p(v(o(e),0),w-k)),c(w+r-n),d=l(b,n),y=0;yw-n+r;y--)f(b,y-1)}else if(r>n)for(y=w-n;y>k;y--)m=y+r-1,(g=y+n-1)in b?b[m]=b[g]:f(b,m);for(y=0;y{r(1458)("flatMap")},6851:(t,e,r)=>{var n=r(5366),i=r(3455),a=r(4165),o=r(8921);n({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=a(this),r=o(e,"number");return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},7316:(t,e,r)=>{var n=r(9649),i=r(8552),a=r(952),o=r(5811)("toPrimitive"),s=Date.prototype;n(s,o)||i(s,o,a)},184:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(3881),o=r(9257),s="WebAssembly",u=i[s],c=7!==new Error("e",{cause:7}).cause,l=function(t,e){var r={};r[t]=o(t,e,c),n({global:!0,constructor:!0,arity:1,forced:c},r)},h=function(t,e){if(u&&u[t]){var r={};r[t]=o(s+"."+t,e,c),n({target:s,stat:!0,constructor:!0,arity:1,forced:c},r)}};l("Error",(function(t){return function(e){return a(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return a(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return a(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return a(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return a(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return a(t,this,arguments)}})),l("URIError",(function(t){return function(e){return a(t,this,arguments)}})),h("CompileError",(function(t){return function(e){return a(t,this,arguments)}})),h("LinkError",(function(t){return function(e){return a(t,this,arguments)}})),h("RuntimeError",(function(t){return function(e){return a(t,this,arguments)}}))},8169:(t,e,r)=>{var n=r(5366),i=r(4032);n({global:!0,forced:i.globalThis!==i},{globalThis:i})},9750:(t,e,r)=>{var n=r(5366),i=r(8711),a=r(3881),o=r(3453),s=r(2608),u=r(3455),c=r(3749),l=r(2277),h=r(4224),f=r(213),d=r(6943),v=String,p=i("JSON","stringify"),y=s(/./.exec),g=s("".charAt),m=s("".charCodeAt),b=s("".replace),w=s(1..toString),k=/[\\uD800-\\uDFFF]/g,x=/^[\\uD800-\\uDBFF]$/,A=/^[\\uDC00-\\uDFFF]$/,_=!d||u((function(){var t=i("Symbol")("stringify detection");return"[null]"!==p([t])||"{}"!==p({a:t})||"{}"!==p(Object(t))})),E=u((function(){return'"\\\\udf06\\\\ud834"'!==p("\\udf06\\ud834")||'"\\\\udead"'!==p("\\udead")})),S=function(t,e){var r=h(arguments),n=f(e);if(c(n)||void 0!==t&&!l(t))return r[1]=function(t,e){if(c(n)&&(e=o(n,this,v(t),e)),!l(e))return e},a(p,null,r)},O=function(t,e,r){var n=g(r,e-1),i=g(r,e+1);return y(x,t)&&!y(A,i)||y(A,t)&&!y(x,n)?"\\\\u"+w(m(t,0),16):t};p&&n({target:"JSON",stat:!0,arity:3,forced:_||E},{stringify:function(t,e,r){var n=h(arguments),i=a(_?S:p,null,n);return E&&"string"==typeof i?b(i,k,O):i}})},7531:(t,e,r)=>{var n=r(4032);r(6911)(n.JSON,"JSON",!0)},6539:(t,e,r)=>{r(9556)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(2042))},1425:(t,e,r)=>{r(6539)},3821:(t,e,r)=>{var n=r(5366),i=Math.hypot,a=Math.abs,o=Math.sqrt;n({target:"Math",stat:!0,arity:2,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(t,e){for(var r,n,i=0,s=0,u=arguments.length,c=0;s0?(n=r/c)*n:r;return c===1/0?1/0:c*o(i)}})},1999:(t,e,r)=>{r(6911)(Math,"Math",!0)},8674:(t,e,r)=>{var n=r(5366),i=r(8885).entries;n({target:"Object",stat:!0},{entries:function(t){return i(t)}})},4129:(t,e,r)=>{var n=r(5366),i=r(1804),a=r(3552);n({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,r){a(e,t,r)}),{AS_ENTRIES:!0}),e}})},702:(t,e,r)=>{var n=r(5366),i=r(2444),a=r(2919),o=r(3637),s=r(1139),u=r(3552);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=o(t),i=s.f,c=a(n),l={},h=0;c.length>h;)void 0!==(r=i(n,e=c[h++]))&&u(l,e,r);return l}})},1309:(t,e,r)=>{var n=r(5366),i=r(6943),a=r(3455),o=r(6005),s=r(4165);n({target:"Object",stat:!0,forced:!i||a((function(){o.f(1)}))},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(s(t)):[]}})},3379:(t,e,r)=>{var n=r(3724),i=r(8552),a=r(3003);n||i(Object.prototype,"toString",a,{unsafe:!0})},482:(t,e,r)=>{var n=r(5366),i=r(8885).values;n({target:"Object",stat:!0},{values:function(t){return i(t)}})},5204:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(4186),o=r(9371),s=r(6703),u=r(1804);n({target:"Promise",stat:!0,forced:r(2041)},{allSettled:function(t){var e=this,r=o.f(e),n=r.resolve,c=r.reject,l=s((function(){var r=a(e.resolve),o=[],s=0,c=1;u(t,(function(t){var a=s++,u=!1;c++,i(r,e,t).then((function(t){u||(u=!0,o[a]={status:"fulfilled",value:t},--c||n(o))}),(function(t){u||(u=!0,o[a]={status:"rejected",reason:t},--c||n(o))}))})),--c||n(o)}));return l.error&&c(l.value),r.promise}})},6195:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(4186),o=r(9371),s=r(6703),u=r(1804);n({target:"Promise",stat:!0,forced:r(2041)},{all:function(t){var e=this,r=o.f(e),n=r.resolve,c=r.reject,l=s((function(){var r=a(e.resolve),o=[],s=0,l=1;u(t,(function(t){var a=s++,u=!1;l++,i(r,e,t).then((function(t){u||(u=!0,o[a]=t,--l||n(o))}),c)})),--l||n(o)}));return l.error&&c(l.value),r.promise}})},1459:(t,e,r)=>{var n=r(5366),i=r(8507),a=r(9492).CONSTRUCTOR,o=r(5318),s=r(8711),u=r(3749),c=r(8552),l=o&&o.prototype;if(n({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&u(o)){var h=s("Promise").prototype.catch;l.catch!==h&&c(l,"catch",h,{unsafe:!0})}},9236:(t,e,r)=>{var n,i,a,o=r(5366),s=r(8507),u=r(4529),c=r(4032),l=r(3453),h=r(8552),f=r(9415),d=r(6911),v=r(5409),p=r(4186),y=r(3749),g=r(2674),m=r(3399),b=r(1365),w=r(1369).set,k=r(755),x=r(4885),A=r(6703),_=r(3529),E=r(8301),S=r(5318),O=r(9492),T=r(9371),P="Promise",L=O.CONSTRUCTOR,M=O.REJECTION_EVENT,C=O.SUBCLASSING,j=E.getterFor(P),I=E.set,R=S&&S.prototype,F=S,D=R,N=c.TypeError,W=c.document,B=c.process,G=T.f,H=G,U=!!(W&&W.createEvent&&c.dispatchEvent),z="unhandledrejection",V=function(t){var e;return!(!g(t)||!y(e=t.then))&&e},q=function(t,e){var r,n,i,a=e.value,o=1===e.state,s=o?t.ok:t.fail,u=t.resolve,c=t.reject,h=t.domain;try{s?(o||(2===e.rejection&&J(e),e.rejection=1),!0===s?r=a:(h&&h.enter(),r=s(a),h&&(h.exit(),i=!0)),r===t.promise?c(new N("Promise-chain cycle")):(n=V(r))?l(n,r,u,c):u(r)):c(a)}catch(t){h&&!i&&h.exit(),c(t)}},Y=function(t,e){t.notified||(t.notified=!0,k((function(){for(var r,n=t.reactions;r=n.get();)q(r,t);t.notified=!1,e&&!t.rejection&&K(t)})))},X=function(t,e,r){var n,i;U?((n=W.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},!M&&(i=c["on"+t])?i(n):t===z&&x("Unhandled promise rejection",r)},K=function(t){l(w,c,(function(){var e,r=t.facade,n=t.value;if(Q(t)&&(e=A((function(){u?B.emit("unhandledRejection",n,r):X(z,r,n)})),t.rejection=u||Q(t)?2:1,e.error))throw e.value}))},Q=function(t){return 1!==t.rejection&&!t.parent},J=function(t){l(w,c,(function(){var e=t.facade;u?B.emit("rejectionHandled",e):X("rejectionhandled",e,t.value)}))},$=function(t,e,r){return function(n){t(e,n,r)}},Z=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Y(t,!0))},tt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new N("Promise can't be resolved itself");var n=V(e);n?k((function(){var r={done:!1};try{l(n,e,$(tt,r,t),$(Z,r,t))}catch(e){Z(r,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){Z({done:!1},e,t)}}};if(L&&(D=(F=function(t){m(this,D),p(t),l(n,this);var e=j(this);try{t($(tt,e),$(Z,e))}catch(t){Z(e,t)}}).prototype,(n=function(t){I(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:null})}).prototype=h(D,"then",(function(t,e){var r=j(this),n=G(b(this,F));return r.parent=!0,n.ok=!y(t)||t,n.fail=y(e)&&e,n.domain=u?B.domain:void 0,0===r.state?r.reactions.add(n):k((function(){q(n,r)})),n.promise})),i=function(){var t=new n,e=j(t);this.promise=t,this.resolve=$(tt,e),this.reject=$(Z,e)},T.f=G=function(t){return t===F||void 0===t?new i(t):H(t)},!s&&y(S)&&R!==Object.prototype)){a=R.then,C||h(R,"then",(function(t,e){var r=this;return new F((function(t,e){l(a,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete R.constructor}catch(t){}f&&f(R,D)}o({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:F}),d(F,P,!1,!0),v(P)},2431:(t,e,r)=>{var n=r(5366),i=r(8507),a=r(5318),o=r(3455),s=r(8711),u=r(3749),c=r(1365),l=r(1774),h=r(8552),f=a&&a.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),r=u(t);return this.then(r?function(r){return l(e,t()).then((function(){return r}))}:t,r?function(r){return l(e,t()).then((function(){throw r}))}:t)}}),!i&&u(a)){var d=s("Promise").prototype.finally;f.finally!==d&&h(f,"finally",d,{unsafe:!0})}},1234:(t,e,r)=>{r(9236),r(6195),r(1459),r(5167),r(5257),r(1128)},5167:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(4186),o=r(9371),s=r(6703),u=r(1804);n({target:"Promise",stat:!0,forced:r(2041)},{race:function(t){var e=this,r=o.f(e),n=r.reject,c=s((function(){var o=a(e.resolve);u(t,(function(t){i(o,e,t).then(r.resolve,n)}))}));return c.error&&n(c.value),r.promise}})},5257:(t,e,r)=>{var n=r(5366),i=r(9371);n({target:"Promise",stat:!0,forced:r(9492).CONSTRUCTOR},{reject:function(t){var e=i.f(this);return(0,e.reject)(t),e.promise}})},1128:(t,e,r)=>{var n=r(5366),i=r(8711),a=r(8507),o=r(5318),s=r(9492).CONSTRUCTOR,u=r(1774),c=i("Promise"),l=a&&!s;n({target:"Promise",stat:!0,forced:a||s},{resolve:function(t){return u(l&&this===c?o:this,t)}})},9732:(t,e,r)=>{var n=r(5366),i=r(9371);n({target:"Promise",stat:!0},{withResolvers:function(){var t=i.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}})},489:(t,e,r)=>{var n=r(5366),i=r(8711),a=r(3881),o=r(2230),s=r(9052),u=r(7447),c=r(2674),l=r(5304),h=r(3455),f=i("Reflect","construct"),d=Object.prototype,v=[].push,p=h((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),y=!h((function(){f((function(){}))})),g=p||y;n({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){s(t),u(e);var r=arguments.length<3?t:s(arguments[2]);if(y&&!p)return f(t,e,r);if(t===r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return a(v,n,e),new(a(o,t,n))}var i=r.prototype,h=l(c(i)?i:d),g=a(t,h,e);return c(g)?g:h}})},7288:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(2674),o=r(7447),s=r(3007),u=r(1139),c=r(2611);n({target:"Reflect",stat:!0},{get:function t(e,r){var n,l,h=arguments.length<3?e:arguments[2];return o(e)===h?e[r]:(n=u.f(e,r))?s(n)?n.value:void 0===n.get?void 0:i(n.get,h):a(l=c(e))?t(l,r,h):void 0}})},176:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(6911);n({global:!0},{Reflect:{}}),a(i.Reflect,"Reflect",!0)},4592:(t,e,r)=>{var n=r(2444),i=r(4032),a=r(2608),o=r(5868),s=r(3951),u=r(139),c=r(5304),l=r(3408).f,h=r(6921),f=r(6484),d=r(687),v=r(4554),p=r(1837),y=r(2848),g=r(8552),m=r(3455),b=r(9649),w=r(8301).enforce,k=r(5409),x=r(5811),A=r(3651),_=r(9502),E=x("match"),S=i.RegExp,O=S.prototype,T=i.SyntaxError,P=a(O.exec),L=a("".charAt),M=a("".replace),C=a("".indexOf),j=a("".slice),I=/^\\?<[^\\s\\d!#%&*+<=>@^][^\\s!#%&*+<=>@^]*>/,R=/a/g,F=/a/g,D=new S(R)!==R,N=p.MISSED_STICKY,W=p.UNSUPPORTED_Y;if(o("RegExp",n&&(!D||N||A||_||m((function(){return F[E]=!1,S(R)!==R||S(F)===F||"/a/i"!==String(S(R,"i"))}))))){for(var B=function(t,e){var r,n,i,a,o,l,p=h(O,this),y=f(t),g=void 0===e,m=[],k=t;if(!p&&y&&g&&t.constructor===B)return t;if((y||h(O,t))&&(t=t.source,g&&(e=v(k))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),k=t,A&&"dotAll"in R&&(n=!!e&&C(e,"s")>-1)&&(e=M(e,/s/g,"")),r=e,N&&"sticky"in R&&(i=!!e&&C(e,"y")>-1)&&W&&(e=M(e,/y/g,"")),_&&(a=function(t){for(var e,r=t.length,n=0,i="",a=[],o=c(null),s=!1,u=!1,l=0,h="";n<=r;n++){if("\\\\"===(e=L(t,n)))e+=L(t,++n);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:if(i+=e,"?:"===j(t,n+1,n+3))continue;P(I,j(t,n+1))&&(n+=2,u=!0),l++;continue;case">"===e&&u:if(""===h||b(o,h))throw new T("Invalid capture group name");o[h]=!0,a[a.length]=[h,l],u=!1,h="";continue}u?h+=e:i+=e}return[i,a]}(t),t=a[0],m=a[1]),o=s(S(t,e),p?this:O,B),(n||i||m.length)&&(l=w(o),n&&(l.dotAll=!0,l.raw=B(function(t){for(var e,r=t.length,n=0,i="",a=!1;n<=r;n++)"\\\\"!==(e=L(t,n))?a||"."!==e?("["===e?a=!0:"]"===e&&(a=!1),i+=e):i+="[\\\\s\\\\S]":i+=e+L(t,++n);return i}(t),r)),i&&(l.sticky=!0),m.length&&(l.groups=m)),t!==k)try{u(o,"source",""===k?"(?:)":k)}catch(t){}return o},G=l(S),H=0;G.length>H;)y(B,S,G[H++]);O.constructor=B,B.prototype=O,g(i,"RegExp",B,{constructor:!0})}k("RegExp")},8345:(t,e,r)=>{var n=r(2444),i=r(3651),a=r(9872),o=r(8986),s=r(8301).get,u=RegExp.prototype,c=TypeError;n&&i&&o(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!s(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},2823:(t,e,r)=>{var n=r(5366),i=r(9867);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},2865:(t,e,r)=>{var n=r(2444),i=r(1837).MISSED_STICKY,a=r(9872),o=r(8986),s=r(8301).get,u=RegExp.prototype,c=TypeError;n&&i&&o(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!s(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},5594:(t,e,r)=>{r(2823);var n,i,a=r(5366),o=r(3453),s=r(3749),u=r(7447),c=r(687),l=(n=!1,(i=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&n),h=/./.test;a({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=u(this),r=c(t),n=e.exec;if(!s(n))return o(h,e,r);var i=o(n,e,r);return null!==i&&(u(i),!0)}})},8397:(t,e,r)=>{var n=r(2542).PROPER,i=r(8552),a=r(7447),o=r(687),s=r(3455),u=r(4554),c="toString",l=RegExp.prototype,h=l[c],f=s((function(){return"/a/b"!==h.call({source:"a",flags:"b"})})),d=n&&h.name!==c;(f||d)&&i(l,c,(function(){var t=a(this);return"/"+o(t.source)+"/"+o(u(t))}),{unsafe:!0})},4645:(t,e,r)=>{r(9556)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(2042))},5130:(t,e,r)=>{var n=r(5366),i=r(4656);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("difference")},{difference:i})},5636:(t,e,r)=>{var n=r(5366),i=r(3455),a=r(2446);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("intersection")||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:a})},8509:(t,e,r)=>{var n=r(5366),i=r(4545);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("isDisjointFrom")},{isDisjointFrom:i})},7332:(t,e,r)=>{var n=r(5366),i=r(7918);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("isSubsetOf")},{isSubsetOf:i})},6555:(t,e,r)=>{var n=r(5366),i=r(6111);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("isSupersetOf")},{isSupersetOf:i})},9255:(t,e,r)=>{r(4645)},3296:(t,e,r)=>{var n=r(5366),i=r(4498);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("symmetricDifference")},{symmetricDifference:i})},4594:(t,e,r)=>{var n=r(5366),i=r(9500);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("union")},{union:i})},8653:(t,e,r)=>{var n=r(5366),i=r(2608),a=r(7222),o=r(1211),s=r(687),u=r(3455),c=i("".charAt);n({target:"String",proto:!0,forced:u((function(){return"\\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=s(a(this)),r=e.length,n=o(t),i=n>=0?n:r+n;return i<0||i>=r?void 0:c(e,i)}})},9657:(t,e,r)=>{var n,i=r(5366),a=r(2116),o=r(1139).f,s=r(5806),u=r(687),c=r(3631),l=r(7222),h=r(860),f=r(8507),d=a("".slice),v=Math.min,p=h("endsWith");i({target:"String",proto:!0,forced:!(!f&&!p&&(n=o(String.prototype,"endsWith"),n&&!n.writable)||p)},{endsWith:function(t){var e=u(l(this));c(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,i=void 0===r?n:v(s(r),n),a=u(t);return d(e,i-a.length,i)===a}})},2217:(t,e,r)=>{var n=r(5366),i=r(2608),a=r(9002),o=RangeError,s=String.fromCharCode,u=String.fromCodePoint,c=i([].join);n({target:"String",stat:!0,arity:1,forced:!!u&&1!==u.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,i=0;n>i;){if(e=+arguments[i++],a(e,1114111)!==e)throw new o(e+" is not a valid code point");r[i]=e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320)}return c(r,"")}})},2467:(t,e,r)=>{var n=r(5366),i=r(2608),a=r(3631),o=r(7222),s=r(687),u=r(860),c=i("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(o(this)),s(a(t)),arguments.length>1?arguments[1]:void 0)}})},7460:(t,e,r)=>{var n=r(6903).charAt,i=r(687),a=r(8301),o=r(656),s=r(9393),u="String Iterator",c=a.set,l=a.getterFor(u);o(String,"String",(function(t){c(this,{type:u,string:i(t),index:0})}),(function(){var t,e=l(this),r=e.string,i=e.index;return i>=r.length?s(void 0,!0):(t=n(r,i),e.index+=t.length,s(t,!1))}))},1281:(t,e,r)=>{var n=r(3453),i=r(4364),a=r(7447),o=r(6021),s=r(5806),u=r(687),c=r(7222),l=r(8622),h=r(8149),f=r(4410);i("match",(function(t,e,r){return[function(e){var r=c(this),i=o(e)?void 0:l(e,t);return i?n(i,e,r):new RegExp(e)[t](u(r))},function(t){var n=a(this),i=u(t),o=r(e,n,i);if(o.done)return o.value;if(!n.global)return f(n,i);var c=n.unicode;n.lastIndex=0;for(var l,d=[],v=0;null!==(l=f(n,i));){var p=u(l[0]);d[v]=p,""===p&&(n.lastIndex=h(i,s(n.lastIndex),c)),v++}return 0===v?null:d}]}))},4853:(t,e,r)=>{var n=r(5366),i=r(6437).end;n({target:"String",proto:!0,forced:r(4903)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},9484:(t,e,r)=>{var n=r(5366),i=r(6437).start;n({target:"String",proto:!0,forced:r(4903)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},6794:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(2608),o=r(7222),s=r(3749),u=r(6021),c=r(6484),l=r(687),h=r(8622),f=r(4554),d=r(3966),v=r(5811),p=r(8507),y=v("replace"),g=TypeError,m=a("".indexOf),b=a("".replace),w=a("".slice),k=Math.max;n({target:"String",proto:!0},{replaceAll:function(t,e){var r,n,a,v,x,A,_,E,S,O,T=o(this),P=0,L="";if(!u(t)){if((r=c(t))&&(n=l(o(f(t))),!~m(n,"g")))throw new g("\`.replaceAll\` does not allow non-global regexes");if(a=h(t,y))return i(a,t,T,e);if(p&&r)return b(l(T),t,e)}for(v=l(T),x=l(t),(A=s(e))||(e=l(e)),_=x.length,E=k(1,_),S=m(v,x);-1!==S;)O=A?l(e(x,S,v)):d(x,v,S,[],void 0,e),L+=w(v,P,S)+O,P=S+_,S=S+E>v.length?-1:m(v,x,S+E);return P{var n=r(3881),i=r(3453),a=r(2608),o=r(4364),s=r(3455),u=r(7447),c=r(3749),l=r(6021),h=r(1211),f=r(5806),d=r(687),v=r(7222),p=r(8149),y=r(8622),g=r(3966),m=r(4410),b=r(5811)("replace"),w=Math.max,k=Math.min,x=a([].concat),A=a([].push),_=a("".indexOf),E=a("".slice),S="$0"==="a".replace(/./,"$0"),O=!!/./[b]&&""===/./[b]("a","$0");o("replace",(function(t,e,r){var a=O?"$":"$0";return[function(t,r){var n=v(this),a=l(t)?void 0:y(t,b);return a?i(a,t,n,r):i(e,d(n),t,r)},function(t,i){var o=u(this),s=d(t);if("string"==typeof i&&-1===_(i,a)&&-1===_(i,"$<")){var l=r(e,o,s,i);if(l.done)return l.value}var v=c(i);v||(i=d(i));var y,b=o.global;b&&(y=o.unicode,o.lastIndex=0);for(var S,O=[];null!==(S=m(o,s))&&(A(O,S),b);)""===d(S[0])&&(o.lastIndex=p(s,f(o.lastIndex),y));for(var T,P="",L=0,M=0;M=L&&(P+=E(s,L,I)+C,L=I+j.length)}return P+E(s,L)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!S||O)},4072:(t,e,r)=>{var n=r(3453),i=r(2608),a=r(4364),o=r(7447),s=r(6021),u=r(7222),c=r(1365),l=r(8149),h=r(5806),f=r(687),d=r(8622),v=r(4410),p=r(1837),y=r(3455),g=p.UNSUPPORTED_Y,m=Math.min,b=i([].push),w=i("".slice),k=!y((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),x="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;a("split",(function(t,e,r){var i="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:n(e,this,t,r)}:e;return[function(e,r){var a=u(this),o=s(e)?void 0:d(e,t);return o?n(o,e,a,r):n(i,f(a),e,r)},function(t,n){var a=o(this),s=f(t);if(!x){var u=r(i,a,s,n,i!==e);if(u.done)return u.value}var d=c(a,RegExp),p=a.unicode,y=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(g?"g":"y"),k=new d(g?"^(?:"+a.source+")":a,y),A=void 0===n?4294967295:n>>>0;if(0===A)return[];if(0===s.length)return null===v(k,s)?[s]:[];for(var _=0,E=0,S=[];E{var n,i=r(5366),a=r(2116),o=r(1139).f,s=r(5806),u=r(687),c=r(3631),l=r(7222),h=r(860),f=r(8507),d=a("".slice),v=Math.min,p=h("startsWith");i({target:"String",proto:!0,forced:!(!f&&!p&&(n=o(String.prototype,"startsWith"),n&&!n.writable)||p)},{startsWith:function(t){var e=u(l(this));c(t);var r=s(v(arguments.length>1?arguments[1]:void 0,e.length)),n=u(t);return d(e,r,r+n.length)===n}})},98:(t,e,r)=>{r(3185);var n=r(5366),i=r(2882);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},3185:(t,e,r)=>{var n=r(5366),i=r(2882);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},9210:(t,e,r)=>{var n=r(5366),i=r(9418).trim;n({target:"String",proto:!0,forced:r(3794)("trim")},{trim:function(){return i(this)}})},4172:(t,e,r)=>{r(5343)("asyncIterator")},2873:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(3453),o=r(2608),s=r(8507),u=r(2444),c=r(6943),l=r(3455),h=r(9649),f=r(6921),d=r(7447),v=r(3637),p=r(6201),y=r(687),g=r(4004),m=r(5304),b=r(496),w=r(3408),k=r(6442),x=r(6005),A=r(1139),_=r(1601),E=r(9217),S=r(9221),O=r(8552),T=r(8986),P=r(4593),L=r(2343),M=r(2645),C=r(5936),j=r(5811),I=r(4559),R=r(5343),F=r(3042),D=r(6911),N=r(8301),W=r(5645).forEach,B=L("hidden"),G="Symbol",H="prototype",U=N.set,z=N.getterFor(G),V=Object[H],q=i.Symbol,Y=q&&q[H],X=i.RangeError,K=i.TypeError,Q=i.QObject,J=A.f,$=_.f,Z=k.f,tt=S.f,et=o([].push),rt=P("symbols"),nt=P("op-symbols"),it=P("wks"),at=!Q||!Q[H]||!Q[H].findChild,ot=function(t,e,r){var n=J(V,e);n&&delete V[e],$(t,e,r),n&&t!==V&&$(V,e,n)},st=u&&l((function(){return 7!==m($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?ot:$,ut=function(t,e){var r=rt[t]=m(Y);return U(r,{type:G,tag:t,description:e}),u||(r.description=e),r},ct=function(t,e,r){t===V&&ct(nt,e,r),d(t);var n=p(e);return d(r),h(rt,n)?(r.enumerable?(h(t,B)&&t[B][n]&&(t[B][n]=!1),r=m(r,{enumerable:g(0,!1)})):(h(t,B)||$(t,B,g(1,m(null))),t[B][n]=!0),st(t,n,r)):$(t,n,r)},lt=function(t,e){d(t);var r=v(e),n=b(r).concat(vt(r));return W(n,(function(e){u&&!a(ht,r,e)||ct(t,e,r[e])})),t},ht=function(t){var e=p(t),r=a(tt,this,e);return!(this===V&&h(rt,e)&&!h(nt,e))&&(!(r||!h(this,e)||!h(rt,e)||h(this,B)&&this[B][e])||r)},ft=function(t,e){var r=v(t),n=p(e);if(r!==V||!h(rt,n)||h(nt,n)){var i=J(r,n);return!i||!h(rt,n)||h(r,B)&&r[B][n]||(i.enumerable=!0),i}},dt=function(t){var e=Z(v(t)),r=[];return W(e,(function(t){h(rt,t)||h(M,t)||et(r,t)})),r},vt=function(t){var e=t===V,r=Z(e?nt:v(t)),n=[];return W(r,(function(t){!h(rt,t)||e&&!h(V,t)||et(n,rt[t])})),n};c||(O(Y=(q=function(){if(f(Y,this))throw new K("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=C(t),r=function(t){var n=void 0===this?i:this;n===V&&a(r,nt,t),h(n,B)&&h(n[B],e)&&(n[B][e]=!1);var o=g(1,t);try{st(n,e,o)}catch(t){if(!(t instanceof X))throw t;ot(n,e,o)}};return u&&at&&st(V,e,{configurable:!0,set:r}),ut(e,t)})[H],"toString",(function(){return z(this).tag})),O(q,"withoutSetter",(function(t){return ut(C(t),t)})),S.f=ht,_.f=ct,E.f=lt,A.f=ft,w.f=k.f=dt,x.f=vt,I.f=function(t){return ut(j(t),t)},u&&(T(Y,"description",{configurable:!0,get:function(){return z(this).description}}),s||O(V,"propertyIsEnumerable",ht,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),W(b(it),(function(t){R(t)})),n({target:G,stat:!0,forced:!c},{useSetter:function(){at=!0},useSimple:function(){at=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?m(t):lt(m(t),e)},defineProperty:ct,defineProperties:lt,getOwnPropertyDescriptor:ft}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:dt}),F(),D(q,G),M[B]=!0},4551:(t,e,r)=>{var n=r(5366),i=r(2444),a=r(4032),o=r(2608),s=r(9649),u=r(3749),c=r(6921),l=r(687),h=r(8986),f=r(2924),d=a.Symbol,v=d&&d.prototype;if(i&&u(d)&&(!("description"in v)||void 0!==d().description)){var p={},y=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(v,this)?new d(t):void 0===t?d():d(t);return""===t&&(p[e]=!0),e};f(y,d),y.prototype=v,v.constructor=y;var g="Symbol(description detection)"===String(d("description detection")),m=o(v.valueOf),b=o(v.toString),w=/^Symbol\\((.*)\\)[^)]+$/,k=o("".replace),x=o("".slice);h(v,"description",{configurable:!0,get:function(){var t=m(this);if(s(p,t))return"";var e=b(t),r=g?x(e,7,-1):k(e,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}},4182:(t,e,r)=>{var n=r(5366),i=r(8711),a=r(9649),o=r(687),s=r(4593),u=r(8592),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=o(t);if(a(c,e))return c[e];var r=i("Symbol")(e);return c[e]=r,l[r]=e,r}})},7651:(t,e,r)=>{r(2873),r(4182),r(7876),r(9750),r(1309)},7876:(t,e,r)=>{var n=r(5366),i=r(9649),a=r(2277),o=r(8055),s=r(4593),u=r(8592),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!a(t))throw new TypeError(o(t)+" is not a symbol");if(i(c,t))return c[t]}})},5268:(t,e,r)=>{var n=r(5343),i=r(3042);n("toPrimitive"),i()},5997:(t,e,r)=>{var n=r(8711),i=r(5343),a=r(6911);i("toStringTag"),a(n("Symbol"),"Symbol")},3740:(t,e,r)=>{var n=r(4356),i=r(7878),a=r(1211),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",(function(t){var e=o(this),r=i(e),n=a(t),s=n>=0?n:r+n;return s<0||s>=r?void 0:e[s]}))},6542:(t,e,r)=>{var n=r(2608),i=r(4356),a=n(r(6677)),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,e){return a(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},5738:(t,e,r)=>{var n=r(4356),i=r(5645).every,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},2900:(t,e,r)=>{var n=r(4356),i=r(9557),a=r(1198),o=r(1179),s=r(3453),u=r(2608),c=r(3455),l=n.aTypedArray,h=n.exportTypedArrayMethod,f=u("".slice);h("fill",(function(t){var e=arguments.length;l(this);var r="Big"===f(o(this),0,3)?a(t):+t;return s(i,this,r,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},2051:(t,e,r)=>{var n=r(4356),i=r(5645).filter,a=r(85),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(t){var e=i(o(this),t,arguments.length>1?arguments[1]:void 0);return a(this,e)}))},4211:(t,e,r)=>{var n=r(4356),i=r(5645).findIndex,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},5294:(t,e,r)=>{var n=r(4356),i=r(767).findLastIndex,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},9791:(t,e,r)=>{var n=r(4356),i=r(767).findLast,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},3198:(t,e,r)=>{var n=r(4356),i=r(5645).find,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},4306:(t,e,r)=>{r(8975)("Float32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},6473:(t,e,r)=>{r(8975)("Float64",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},1526:(t,e,r)=>{var n=r(4356),i=r(5645).forEach,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(t){i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},6032:(t,e,r)=>{var n=r(4356),i=r(7921).includes,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},3659:(t,e,r)=>{var n=r(4356),i=r(7921).indexOf,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},1237:(t,e,r)=>{r(8975)("Int32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},932:(t,e,r)=>{var n=r(4032),i=r(3455),a=r(2608),o=r(4356),s=r(9024),u=r(5811)("iterator"),c=n.Uint8Array,l=a(s.values),h=a(s.keys),f=a(s.entries),d=o.aTypedArray,v=o.exportTypedArrayMethod,p=c&&c.prototype,y=!i((function(){p[u].call([1])})),g=!!p&&p.values&&p[u]===p.values&&"values"===p.values.name,m=function(){return l(d(this))};v("entries",(function(){return f(d(this))}),y),v("keys",(function(){return h(d(this))}),y),v("values",m,y||!g,{name:"values"}),v(u,m,y||!g,{name:"values"})},8553:(t,e,r)=>{var n=r(4356),i=r(2608),a=n.aTypedArray,o=n.exportTypedArrayMethod,s=i([].join);o("join",(function(t){return s(a(this),t)}))},7612:(t,e,r)=>{var n=r(4356),i=r(3881),a=r(3499),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(a,o(this),e>1?[t,arguments[1]]:[t])}))},8579:(t,e,r)=>{var n=r(4356),i=r(5645).map,a=r(580),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(t))(e)}))}))},7576:(t,e,r)=>{var n=r(4356),i=r(4734).right,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},7719:(t,e,r)=>{var n=r(4356),i=r(4734).left,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},2891:(t,e,r)=>{var n=r(4356),i=n.aTypedArray,a=n.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var t,e=this,r=i(e).length,n=o(r/2),a=0;a{var n=r(4032),i=r(3453),a=r(4356),o=r(7878),s=r(8402),u=r(4165),c=r(3455),l=n.RangeError,h=n.Int8Array,f=h&&h.prototype,d=f&&f.set,v=a.aTypedArray,p=a.exportTypedArrayMethod,y=!c((function(){var t=new Uint8ClampedArray(2);return i(d,t,{length:1,0:3},1),3!==t[1]})),g=y&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));p("set",(function(t){v(this);var e=s(arguments.length>1?arguments[1]:void 0,1),r=u(t);if(y)return i(d,this,r,e);var n=this.length,a=o(r),c=0;if(a+e>n)throw new l("Wrong length");for(;c{var n=r(4356),i=r(580),a=r(3455),o=r(4224),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(t,e){for(var r=o(s(this),t,e),n=i(this),a=0,u=r.length,c=new n(u);u>a;)c[a]=r[a++];return c}),a((function(){new Int8Array(1).slice()})))},9637:(t,e,r)=>{var n=r(4356),i=r(5645).some,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},2709:(t,e,r)=>{var n=r(4032),i=r(2116),a=r(3455),o=r(4186),s=r(5272),u=r(4356),c=r(7085),l=r(5123),h=r(6415),f=r(1911),d=u.aTypedArray,v=u.exportTypedArrayMethod,p=n.Uint16Array,y=p&&i(p.prototype.sort),g=!(!y||a((function(){y(new p(2),null)}))&&a((function(){y(new p(2),{})}))),m=!!y&&!a((function(){if(h)return h<74;if(c)return c<67;if(l)return!0;if(f)return f<602;var t,e,r=new p(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(y(r,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(r[t]!==n[t])return!0}));v("sort",(function(t){return void 0!==t&&o(t),m?y(this,t):s(d(this),function(t){return function(e,r){return void 0!==t?+t(e,r)||0:r!=r?-1:e!=e?1:0===e&&0===r?1/e>0&&1/r<0?1:-1:e>r}}(t))}),!m||g)},8941:(t,e,r)=>{var n=r(4032),i=r(3881),a=r(4356),o=r(3455),s=r(4224),u=n.Int8Array,c=a.aTypedArray,l=a.exportTypedArrayMethod,h=[].toLocaleString,f=!!u&&o((function(){h.call(new u(1))}));l("toLocaleString",(function(){return i(h,f?s(c(this)):c(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!o((function(){u.prototype.toLocaleString.call([1,2])})))},1579:(t,e,r)=>{var n=r(6444),i=r(4356),a=i.aTypedArray,o=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;o("toReversed",(function(){return n(a(this),s(this))}))},6236:(t,e,r)=>{var n=r(4356),i=r(2608),a=r(4186),o=r(7434),s=n.aTypedArray,u=n.getTypedArrayConstructor,c=n.exportTypedArrayMethod,l=i(n.TypedArrayPrototype.sort);c("toSorted",(function(t){void 0!==t&&a(t);var e=s(this),r=o(u(e),e);return l(r,t)}))},7716:(t,e,r)=>{var n=r(4356).exportTypedArrayMethod,i=r(3455),a=r(4032),o=r(2608),s=a.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=o([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var h=u.toString!==c;n("toString",c,h)},2044:(t,e,r)=>{r(8975)("Uint32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},7329:(t,e,r)=>{r(8975)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},1913:(t,e,r)=>{var n=r(920),i=r(4356),a=r(5415),o=r(1211),s=r(1198),u=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();l("with",{with:function(t,e){var r=u(this),i=o(t),l=a(r)?s(e):+e;return n(r,c(r),i,l)}}.with,!h)},6722:(t,e,r)=>{var n,i=r(568),a=r(4032),o=r(2608),s=r(4183),u=r(5227),c=r(9556),l=r(8153),h=r(2674),f=r(8301).enforce,d=r(3455),v=r(6206),p=Object,y=Array.isArray,g=p.isExtensible,m=p.isFrozen,b=p.isSealed,w=p.freeze,k=p.seal,x=!a.ActiveXObject&&"ActiveXObject"in a,A=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},_=c("WeakMap",A,l),E=_.prototype,S=o(E.set);if(v)if(x){n=l.getConstructor(A,"WeakMap",!0),u.enable();var O=o(E.delete),T=o(E.has),P=o(E.get);s(E,{delete:function(t){if(h(t)&&!g(t)){var e=f(this);return e.frozen||(e.frozen=new n),O(this,t)||e.frozen.delete(t)}return O(this,t)},has:function(t){if(h(t)&&!g(t)){var e=f(this);return e.frozen||(e.frozen=new n),T(this,t)||e.frozen.has(t)}return T(this,t)},get:function(t){if(h(t)&&!g(t)){var e=f(this);return e.frozen||(e.frozen=new n),T(this,t)?P(this,t):e.frozen.get(t)}return P(this,t)},set:function(t,e){if(h(t)&&!g(t)){var r=f(this);r.frozen||(r.frozen=new n),T(this,t)?S(this,t,e):r.frozen.set(t,e)}else S(this,t,e);return this}})}else i&&d((function(){var t=w([]);return S(new _,t,1),!m(t)}))&&s(E,{set:function(t,e){var r;return y(t)&&(m(t)?r=w:b(t)&&(r=k)),S(this,t,e),r&&r(t),this}})},8492:(t,e,r)=>{r(6722)},1176:(t,e,r)=>{r(9556)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(8153))},7121:(t,e,r)=>{r(1176)},4192:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(3399),o=r(7447),s=r(3749),u=r(2611),c=r(8986),l=r(3552),h=r(3455),f=r(9649),d=r(5811),v=r(2857).IteratorPrototype,p=r(2444),y=r(8507),g="constructor",m="Iterator",b=d("toStringTag"),w=TypeError,k=i[m],x=y||!s(k)||k.prototype!==v||!h((function(){k({})})),A=function(){if(a(this,v),u(this)===v)throw new w("Abstract class Iterator not directly constructable")},_=function(t,e){p?c(v,t,{configurable:!0,get:function(){return e},set:function(e){if(o(this),this===v)throw new w("You can't redefine this property");f(this,t)?this[t]=e:l(this,t,e)}}):v[t]=e};f(v,b)||_(b,m),!x&&f(v,g)&&v[g]!==Object||_(g,A),A.prototype=v,n({global:!0,constructor:!0,forced:x},{Iterator:A})},7895:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(7447),o=r(3447),s=r(821),u=r(5590),c=r(2342),l=r(8507),h=c((function(){for(var t,e=this.iterator,r=this.next;this.remaining;)if(this.remaining--,t=a(i(r,e)),this.done=!!t.done)return;if(t=a(i(r,e)),!(this.done=!!t.done))return t.value}));n({target:"Iterator",proto:!0,real:!0,forced:l},{drop:function(t){a(this);var e=u(s(+t));return new h(o(this),{remaining:e})}})},463:(t,e,r)=>{var n=r(5366),i=r(1804),a=r(4186),o=r(7447),s=r(3447);n({target:"Iterator",proto:!0,real:!0},{every:function(t){o(this),a(t);var e=s(this),r=0;return!i(e,(function(e,n){if(!t(e,r++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8856:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(4186),o=r(7447),s=r(3447),u=r(2342),c=r(3535),l=r(8507),h=u((function(){for(var t,e,r=this.iterator,n=this.predicate,a=this.next;;){if(t=o(i(a,r)),this.done=!!t.done)return;if(e=t.value,c(r,n,[e,this.counter++],!0))return e}}));n({target:"Iterator",proto:!0,real:!0,forced:l},{filter:function(t){return o(this),a(t),new h(s(this),{predicate:t})}})},9166:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(4186),o=r(7447),s=r(3447),u=r(1750),c=r(2342),l=r(5235),h=r(8507),f=c((function(){for(var t,e,r=this.iterator,n=this.mapper;;){if(e=this.inner)try{if(!(t=o(i(e.next,e.iterator))).done)return t.value;this.inner=null}catch(t){l(r,"throw",t)}if(t=o(i(this.next,r)),this.done=!!t.done)return;try{this.inner=u(n(t.value,this.counter++),!1)}catch(t){l(r,"throw",t)}}}));n({target:"Iterator",proto:!0,real:!0,forced:h},{flatMap:function(t){return o(this),a(t),new f(s(this),{mapper:t,inner:null})}})},1565:(t,e,r)=>{var n=r(5366),i=r(1804),a=r(4186),o=r(7447),s=r(3447);n({target:"Iterator",proto:!0,real:!0},{forEach:function(t){o(this),a(t);var e=s(this),r=0;i(e,(function(e){t(e,r++)}),{IS_RECORD:!0})}})},5342:(t,e,r)=>{var n=r(5366),i=r(4009);n({target:"Iterator",proto:!0,real:!0,forced:r(8507)},{map:i})},9582:(t,e,r)=>{var n=r(5366),i=r(1804),a=r(4186),o=r(7447),s=r(3447);n({target:"Iterator",proto:!0,real:!0},{some:function(t){o(this),a(t);var e=s(this),r=0;return i(e,(function(e,n){if(t(e,r++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},31:(t,e,r)=>{var n=r(5366),i=r(2444),a=r(4032),o=r(8711),s=r(2608),u=r(3453),c=r(3749),l=r(2674),h=r(5448),f=r(9649),d=r(687),v=r(7878),p=r(3552),y=r(3455),g=r(1448),m=r(6943),b=a.JSON,w=a.Number,k=a.SyntaxError,x=b&&b.parse,A=o("Object","keys"),_=Object.getOwnPropertyDescriptor,E=s("".charAt),S=s("".slice),O=s(/./.exec),T=s([].push),P=/^\\d$/,L=/^[1-9]$/,M=/^[\\d-]$/,C=/^[\\t\\n\\r ]$/,j=function(t,e,r,n){var i,a,o,s,c,d=t[e],p=n&&d===n.value,y=p&&"string"==typeof n.source?{source:n.source}:{};if(l(d)){var g=h(d),m=p?n.nodes:g?[]:{};if(g)for(i=m.length,o=v(d),s=0;s{var n=r(5366),i=r(4032),a=r(8711),o=r(2608),s=r(3453),u=r(3455),c=r(687),l=r(7900),h=r(2996).c2i,f=/[^\\d+/a-z]/i,d=/[\\t\\n\\f\\r ]+/g,v=/[=]{1,2}$/,p=a("atob"),y=String.fromCharCode,g=o("".charAt),m=o("".replace),b=o(f.exec),w=!!p&&!u((function(){return"hi"!==p("aGk=")})),k=w&&u((function(){return""!==p(" ")})),x=w&&!u((function(){p("a")})),A=w&&!u((function(){p()})),_=w&&1!==p.length;n({global:!0,bind:!0,enumerable:!0,forced:!w||k||x||A||_},{atob:function(t){if(l(arguments.length,1),w&&!k&&!x)return s(p,i,t);var e,r,n,o=m(c(t),d,""),u="",A=0,_=0;if(o.length%4==0&&(o=m(o,v,"")),(e=o.length)%4==1||b(f,o))throw new(a("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;A>(-2*_&6)));return u}})},8316:(t,e,r)=>{var n=r(4032),i=r(2760),a=r(4784),o=r(3147),s=r(139),u=function(t){if(t&&t.forEach!==o)try{s(t,"forEach",o)}catch(e){t.forEach=o}};for(var c in i)i[c]&&u(n[c]&&n[c].prototype);u(a)},3577:(t,e,r)=>{var n=r(4032),i=r(2760),a=r(4784),o=r(9024),s=r(139),u=r(6911),c=r(5811)("iterator"),l=o.values,h=function(t,e){if(t){if(t[c]!==l)try{s(t,c,l)}catch(e){t[c]=l}if(u(t,e,!0),i[e])for(var r in o)if(t[r]!==o[r])try{s(t,r,o[r])}catch(e){t[r]=o[r]}}};for(var f in i)h(n[f]&&n[f].prototype,f);h(a,"DOMTokenList")},4967:(t,e,r)=>{var n=r(5366),i=r(8711),a=r(9685),o=r(3455),s=r(5304),u=r(4004),c=r(1601).f,l=r(8552),h=r(8986),f=r(9649),d=r(3399),v=r(7447),p=r(2912),y=r(8363),g=r(4090),m=r(3633),b=r(8301),w=r(2444),k=r(8507),x="DOMException",A="DATA_CLONE_ERR",_=i("Error"),E=i(x)||function(){try{(new(i("MessageChannel")||a("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name===A&&25===t.code)return t.constructor}}(),S=E&&E.prototype,O=_.prototype,T=b.set,P=b.getterFor(x),L="stack"in new _(x),M=function(t){return f(g,t)&&g[t].m?g[t].c:0},C=function(){d(this,j);var t=arguments.length,e=y(t<1?void 0:arguments[0]),r=y(t<2?void 0:arguments[1],"Error"),n=M(r);if(T(this,{type:x,name:r,message:e,code:n}),w||(this.name=r,this.message=e,this.code=n),L){var i=new _(e);i.name=x,c(this,"stack",u(1,m(i.stack,1)))}},j=C.prototype=s(O),I=function(t){return{enumerable:!0,configurable:!0,get:t}},R=function(t){return I((function(){return P(this)[t]}))};w&&(h(j,"code",R("code")),h(j,"message",R("message")),h(j,"name",R("name"))),c(j,"constructor",u(1,C));var F=o((function(){return!(new E instanceof _)})),D=F||o((function(){return O.toString!==p||"2: 1"!==String(new E(1,2))})),N=F||o((function(){return 25!==new E(1,"DataCloneError").code})),W=F||25!==E[A]||25!==S[A],B=k?D||N||W:F;n({global:!0,constructor:!0,forced:B},{DOMException:B?C:E});var G=i(x),H=G.prototype;for(var U in D&&(k||E===G)&&l(H,"toString",p),N&&w&&E===G&&h(H,"code",I((function(){return M(v(this).name)}))),g)if(f(g,U)){var z=g[U],V=z.s,q=u(6,z.c);f(G,V)||c(G,V,q),f(H,V)||c(H,V,q)}},6403:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(8711),o=r(4004),s=r(1601).f,u=r(9649),c=r(3399),l=r(3951),h=r(8363),f=r(4090),d=r(3633),v=r(2444),p=r(8507),y="DOMException",g=a("Error"),m=a(y),b=function(){c(this,w);var t=arguments.length,e=h(t<1?void 0:arguments[0]),r=h(t<2?void 0:arguments[1],"Error"),n=new m(e,r),i=new g(e);return i.name=y,s(n,"stack",o(1,d(i.stack,1))),l(n,this,b),n},w=b.prototype=m.prototype,k="stack"in new g(y),x="stack"in new m(1,2),A=m&&v&&Object.getOwnPropertyDescriptor(i,y),_=!(!A||A.writable&&A.configurable),E=k&&!_&&!x;n({global:!0,constructor:!0,forced:p||E},{DOMException:E?b:m});var S=a(y),O=S.prototype;if(O.constructor!==S)for(var T in p||s(O,"constructor",o(1,S)),f)if(u(f,T)){var P=f[T],L=P.s;u(S,L)||s(S,L,o(6,P.c))}},3355:(t,e,r)=>{var n=r(8711),i="DOMException";r(6911)(n(i),i)},9734:(t,e,r)=>{r(9024),r(2217);var n=r(5366),i=r(4032),a=r(5725),o=r(8711),s=r(3453),u=r(2608),c=r(2444),l=r(8200),h=r(8552),f=r(8986),d=r(4183),v=r(6911),p=r(282),y=r(8301),g=r(3399),m=r(3749),b=r(9649),w=r(4864),k=r(1179),x=r(7447),A=r(2674),_=r(687),E=r(5304),S=r(4004),O=r(6961),T=r(7507),P=r(9393),L=r(7900),M=r(5811),C=r(5272),j=M("iterator"),I="URLSearchParams",R=I+"Iterator",F=y.set,D=y.getterFor(I),N=y.getterFor(R),W=a("fetch"),B=a("Request"),G=a("Headers"),H=B&&B.prototype,U=G&&G.prototype,z=i.TypeError,V=i.encodeURIComponent,q=String.fromCharCode,Y=o("String","fromCodePoint"),X=parseInt,K=u("".charAt),Q=u([].join),J=u([].push),$=u("".replace),Z=u([].shift),tt=u([].splice),et=u("".split),rt=u("".slice),nt=u(/./.exec),it=/\\+/g,at=/^[0-9a-f]+$/i,ot=function(t,e){var r=rt(t,e,e+2);return nt(at,r)?X(r,16):NaN},st=function(t){for(var e=0,r=128;r>0&&0!=(t&r);r>>=1)e++;return e},ut=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},ct=function(t){for(var e=(t=$(t,it," ")).length,r="",n=0;ne){r+="%",n++;continue}var a=ot(t,n+1);if(a!=a){r+=i,n++;continue}n+=2;var o=st(a);if(0===o)i=q(a);else{if(1===o||o>4){r+="�",n++;continue}for(var s=[a],u=1;ue||"%"!==K(t,n));){var c=ot(t,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;J(s,c),n+=2,u++}if(s.length!==o){r+="�";continue}var l=ut(s);null===l?r+="�":i=Y(l)}}r+=i,n++}return r},lt=/[!'()~]|%20/g,ht={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ft=function(t){return ht[t]},dt=function(t){return $(V(t),lt,ft)},vt=p((function(t,e){F(this,{type:R,target:D(t).entries,index:0,kind:e})}),I,(function(){var t=N(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,P(void 0,!0);var n=e[r];switch(t.kind){case"keys":return P(n.key,!1);case"values":return P(n.value,!1)}return P([n.key,n.value],!1)}),!0),pt=function(t){this.entries=[],this.url=null,void 0!==t&&(A(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===K(t,0)?rt(t,1):t:_(t)))};pt.prototype={type:I,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,i,a,o,u,c=this.entries,l=T(t);if(l)for(r=(e=O(t,l)).next;!(n=s(r,e)).done;){if(a=(i=O(x(n.value))).next,(o=s(a,i)).done||(u=s(a,i)).done||!s(a,i).done)throw new z("Expected sequence with length 2");J(c,{key:_(o.value),value:_(u.value)})}else for(var h in t)b(t,h)&&J(c,{key:h,value:_(t[h])})},parseQuery:function(t){if(t)for(var e,r,n=this.entries,i=et(t,"&"),a=0;a0?arguments[0]:void 0));c||(this.size=t.entries.length)},gt=yt.prototype;if(d(gt,{append:function(t,e){var r=D(this);L(arguments.length,2),J(r.entries,{key:_(t),value:_(e)}),c||this.length++,r.updateURL()},delete:function(t){for(var e=D(this),r=L(arguments.length,1),n=e.entries,i=_(t),a=r<2?void 0:arguments[1],o=void 0===a?a:_(a),s=0;se.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=D(this).entries,n=w(t,arguments.length>1?arguments[1]:void 0),i=0;i1?wt(arguments[1]):{})}}),m(B)){var kt=function(t){return g(this,H),new B(t,arguments.length>1?wt(arguments[1]):{})};H.constructor=kt,kt.prototype=H,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:kt})}}t.exports={URLSearchParams:yt,getState:D}},1531:(t,e,r)=>{var n=r(8552),i=r(2608),a=r(687),o=r(7900),s=URLSearchParams,u=s.prototype,c=i(u.append),l=i(u.delete),h=i(u.forEach),f=i([].push),d=new s("a=1&a=2&b=3");d.delete("a",1),d.delete("b",void 0),d+""!="a=2"&&n(u,"delete",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return l(this,t);var n=[];h(this,(function(t,e){f(n,{key:e,value:t})})),o(e,1);for(var i,s=a(t),u=a(r),d=0,v=0,p=!1,y=n.length;d{var n=r(8552),i=r(2608),a=r(687),o=r(7900),s=URLSearchParams,u=s.prototype,c=i(u.getAll),l=i(u.has),h=new s("a=1");!h.has("a",2)&&h.has("a",void 0)||n(u,"has",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return l(this,t);var n=c(this,t);o(e,1);for(var i=a(r),s=0;s{r(9734)},4145:(t,e,r)=>{var n=r(2444),i=r(2608),a=r(8986),o=URLSearchParams.prototype,s=i(o.forEach);n&&!("size"in o)&&a(o,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},161:(t,e,r)=>{r(7460);var n,i=r(5366),a=r(2444),o=r(8200),s=r(4032),u=r(4864),c=r(2608),l=r(8552),h=r(8986),f=r(3399),d=r(9649),v=r(8069),p=r(3948),y=r(4224),g=r(6903).codeAt,m=r(5141),b=r(687),w=r(6911),k=r(7900),x=r(9734),A=r(8301),_=A.set,E=A.getterFor("URL"),S=x.URLSearchParams,O=x.getState,T=s.URL,P=s.TypeError,L=s.parseInt,M=Math.floor,C=Math.pow,j=c("".charAt),I=c(/./.exec),R=c([].join),F=c(1..toString),D=c([].pop),N=c([].push),W=c("".replace),B=c([].shift),G=c("".split),H=c("".slice),U=c("".toLowerCase),z=c([].unshift),V="Invalid scheme",q="Invalid host",Y="Invalid port",X=/[a-z]/i,K=/[\\d+-.a-z]/i,Q=/\\d/,J=/^0x/i,$=/^[0-7]+$/,Z=/^\\d+$/,tt=/^[\\da-f]+$/i,et=/[\\0\\t\\n\\r #%/:<>?@[\\\\\\]^|]/,rt=/[\\0\\t\\n\\r #/:<>?@[\\\\\\]^|]/,nt=/^[\\u0000-\\u0020]+/,it=/(^|[^\\u0000-\\u0020])[\\u0000-\\u0020]+$/,at=/[\\t\\n\\r]/g,ot=function(t){var e,r,n,i;if("number"==typeof t){for(e=[],r=0;r<4;r++)z(e,t%256),t=M(t/256);return R(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,i=0,a=0;a<8;a++)0!==t[a]?(i>r&&(e=n,r=i),n=null,i=0):(null===n&&(n=a),++i);return i>r?n:e}(t),r=0;r<8;r++)i&&0===t[r]||(i&&(i=!1),n===r?(e+=r?":":"::",i=!0):(e+=F(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},st={},ut=v({},st,{" ":1,'"':1,"<":1,">":1,"\`":1}),ct=v({},ut,{"#":1,"?":1,"{":1,"}":1}),lt=v({},ct,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\\\":1,"]":1,"^":1,"|":1}),ht=function(t,e){var r=g(t,0);return r>32&&r<127&&!d(e,t)?t:encodeURIComponent(t)},ft={ftp:21,file:null,http:80,https:443,ws:80,wss:443},dt=function(t,e){var r;return 2===t.length&&I(X,j(t,0))&&(":"===(r=j(t,1))||!e&&"|"===r)},vt=function(t){var e;return t.length>1&&dt(H(t,0,2))&&(2===t.length||"/"===(e=j(t,2))||"\\\\"===e||"?"===e||"#"===e)},pt=function(t){return"."===t||"%2e"===U(t)},yt={},gt={},mt={},bt={},wt={},kt={},xt={},At={},_t={},Et={},St={},Ot={},Tt={},Pt={},Lt={},Mt={},Ct={},jt={},It={},Rt={},Ft={},Dt=function(t,e,r){var n,i,a,o=b(t);if(e){if(i=this.parse(o))throw new P(i);this.searchParams=null}else{if(void 0!==r&&(n=new Dt(r,!0)),i=this.parse(o,null,n))throw new P(i);(a=O(new S)).bindURL(this),this.searchParams=a}};Dt.prototype={type:"URL",parse:function(t,e,r){var i,a,o,s,u,c=this,l=e||yt,h=0,f="",v=!1,g=!1,m=!1;for(t=b(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=W(t,nt,""),t=W(t,it,"$1")),t=W(t,at,""),i=p(t);h<=i.length;){switch(a=i[h],l){case yt:if(!a||!I(X,a)){if(e)return V;l=mt;continue}f+=U(a),l=gt;break;case gt:if(a&&(I(K,a)||"+"===a||"-"===a||"."===a))f+=U(a);else{if(":"!==a){if(e)return V;f="",l=mt,h=0;continue}if(e&&(c.isSpecial()!==d(ft,f)||"file"===f&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=f,e)return void(c.isSpecial()&&ft[c.scheme]===c.port&&(c.port=null));f="","file"===c.scheme?l=Pt:c.isSpecial()&&r&&r.scheme===c.scheme?l=bt:c.isSpecial()?l=At:"/"===i[h+1]?(l=wt,h++):(c.cannotBeABaseURL=!0,N(c.path,""),l=It)}break;case mt:if(!r||r.cannotBeABaseURL&&"#"!==a)return V;if(r.cannotBeABaseURL&&"#"===a){c.scheme=r.scheme,c.path=y(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,l=Ft;break}l="file"===r.scheme?Pt:kt;continue;case bt:if("/"!==a||"/"!==i[h+1]){l=kt;continue}l=_t,h++;break;case wt:if("/"===a){l=Et;break}l=jt;continue;case kt:if(c.scheme=r.scheme,a===n)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=y(r.path),c.query=r.query;else if("/"===a||"\\\\"===a&&c.isSpecial())l=xt;else if("?"===a)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=y(r.path),c.query="",l=Rt;else{if("#"!==a){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=y(r.path),c.path.length--,l=jt;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=y(r.path),c.query=r.query,c.fragment="",l=Ft}break;case xt:if(!c.isSpecial()||"/"!==a&&"\\\\"!==a){if("/"!==a){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,l=jt;continue}l=Et}else l=_t;break;case At:if(l=_t,"/"!==a||"/"!==j(f,h+1))continue;h++;break;case _t:if("/"!==a&&"\\\\"!==a){l=Et;continue}break;case Et:if("@"===a){v&&(f="%40"+f),v=!0,o=p(f);for(var w=0;w65535)return Y;c.port=c.isSpecial()&&A===ft[c.scheme]?null:A,f=""}if(e)return;l=Ct;continue}return Y}f+=a;break;case Pt:if(c.scheme="file","/"===a||"\\\\"===a)l=Lt;else{if(!r||"file"!==r.scheme){l=jt;continue}switch(a){case n:c.host=r.host,c.path=y(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=y(r.path),c.query="",l=Rt;break;case"#":c.host=r.host,c.path=y(r.path),c.query=r.query,c.fragment="",l=Ft;break;default:vt(R(y(i,h),""))||(c.host=r.host,c.path=y(r.path),c.shortenPath()),l=jt;continue}}break;case Lt:if("/"===a||"\\\\"===a){l=Mt;break}r&&"file"===r.scheme&&!vt(R(y(i,h),""))&&(dt(r.path[0],!0)?N(c.path,r.path[0]):c.host=r.host),l=jt;continue;case Mt:if(a===n||"/"===a||"\\\\"===a||"?"===a||"#"===a){if(!e&&dt(f))l=jt;else if(""===f){if(c.host="",e)return;l=Ct}else{if(s=c.parseHost(f))return s;if("localhost"===c.host&&(c.host=""),e)return;f="",l=Ct}continue}f+=a;break;case Ct:if(c.isSpecial()){if(l=jt,"/"!==a&&"\\\\"!==a)continue}else if(e||"?"!==a)if(e||"#"!==a){if(a!==n&&(l=jt,"/"!==a))continue}else c.fragment="",l=Ft;else c.query="",l=Rt;break;case jt:if(a===n||"/"===a||"\\\\"===a&&c.isSpecial()||!e&&("?"===a||"#"===a)){if(".."===(u=U(u=f))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"===a||"\\\\"===a&&c.isSpecial()||N(c.path,"")):pt(f)?"/"===a||"\\\\"===a&&c.isSpecial()||N(c.path,""):("file"===c.scheme&&!c.path.length&&dt(f)&&(c.host&&(c.host=""),f=j(f,0)+":"),N(c.path,f)),f="","file"===c.scheme&&(a===n||"?"===a||"#"===a))for(;c.path.length>1&&""===c.path[0];)B(c.path);"?"===a?(c.query="",l=Rt):"#"===a&&(c.fragment="",l=Ft)}else f+=ht(a,ct);break;case It:"?"===a?(c.query="",l=Rt):"#"===a?(c.fragment="",l=Ft):a!==n&&(c.path[0]+=ht(a,st));break;case Rt:e||"#"!==a?a!==n&&("'"===a&&c.isSpecial()?c.query+="%27":c.query+="#"===a?"%23":ht(a,st)):(c.fragment="",l=Ft);break;case Ft:a!==n&&(c.fragment+=ht(a,ut))}h++}},parseHost:function(t){var e,r,n;if("["===j(t,0)){if("]"!==j(t,t.length-1))return q;if(e=function(t){var e,r,n,i,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,h=0,f=function(){return j(t,h)};if(":"===f()){if(":"!==j(t,1))return;h+=2,l=++c}for(;f();){if(8===c)return;if(":"!==f()){for(e=r=0;r<4&&I(tt,f());)e=16*e+L(f(),16),h++,r++;if("."===f()){if(0===r)return;if(h-=r,c>6)return;for(n=0;f();){if(i=null,n>0){if(!("."===f()&&n<4))return;h++}if(!I(Q,f()))return;for(;I(Q,f());){if(a=L(f(),10),null===i)i=a;else{if(0===i)return;i=10*i+a}if(i>255)return;h++}u[c]=256*u[c]+i,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===f()){if(h++,!f())return}else if(f())return;u[c++]=e}else{if(null!==l)return;h++,l=++c}}if(null!==l)for(o=c-l,c=7;0!==c&&o>0;)s=u[c],u[c--]=u[l+o-1],u[l+--o]=s;else if(8!==c)return;return u}(H(t,1,-1)),!e)return q;this.host=e}else if(this.isSpecial()){if(t=m(t),I(et,t))return q;if(e=function(t){var e,r,n,i,a,o,s,u=G(t,".");if(u.length&&""===u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(r=[],n=0;n1&&"0"===j(i,0)&&(a=I(J,i)?16:8,i=H(i,8===a?1:2)),""===i)o=0;else{if(!I(10===a?Z:8===a?$:tt,i))return t;o=L(i,a)}N(r,o)}for(n=0;n=C(256,5-e))return null}else if(o>255)return null;for(s=D(r),n=0;n1?arguments[1]:void 0,n=_(e,new Dt(t,!1,r));a||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Wt=Nt.prototype,Bt=function(t,e){return{get:function(){return E(this)[t]()},set:e&&function(t){return E(this)[e](t)},configurable:!0,enumerable:!0}};if(a&&(h(Wt,"href",Bt("serialize","setHref")),h(Wt,"origin",Bt("getOrigin")),h(Wt,"protocol",Bt("getProtocol","setProtocol")),h(Wt,"username",Bt("getUsername","setUsername")),h(Wt,"password",Bt("getPassword","setPassword")),h(Wt,"host",Bt("getHost","setHost")),h(Wt,"hostname",Bt("getHostname","setHostname")),h(Wt,"port",Bt("getPort","setPort")),h(Wt,"pathname",Bt("getPathname","setPathname")),h(Wt,"search",Bt("getSearch","setSearch")),h(Wt,"searchParams",Bt("getSearchParams")),h(Wt,"hash",Bt("getHash","setHash"))),l(Wt,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),l(Wt,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),T){var Gt=T.createObjectURL,Ht=T.revokeObjectURL;Gt&&l(Nt,"createObjectURL",u(Gt,T)),Ht&&l(Nt,"revokeObjectURL",u(Ht,T))}w(Nt,"URL"),i({global:!0,constructor:!0,forced:!o,sham:!a},{URL:Nt})},5728:(t,e,r)=>{r(161)},4136:(t,e,r)=>{var n=r(5366),i=r(3453);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n].call(a.exports,a,a.exports,r),a.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n,i=globalThis.pdfjsLib={};function a(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||s(t,e)||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 s(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);rY,AnnotationEditorLayer:()=>Ak,AnnotationEditorParamsType:()=>_,AnnotationEditorType:()=>A,AnnotationEditorUIManager:()=>Kn,AnnotationLayer:()=>np,AnnotationMode:()=>x,CMapCompressionType:()=>T,ColorPicker:()=>Tg,DOMSVGFactory:()=>me,DrawLayer:()=>Vk,FeatureTest:()=>J,GlobalWorkerOptions:()=>mu,ImageKind:()=>S,InvalidPDFException:()=>U,MissingPDFException:()=>z,OPS:()=>P,OutputScale:()=>Fe,PDFDataRangeTransport:()=>rf,PDFDateString:()=>Le,PDFWorker:()=>pf,PasswordResponses:()=>L,PermissionFlag:()=>E,PixelsPerInch:()=>Vt,RenderingCancelledException:()=>we,TextLayer:()=>uh,UnexpectedResponseException:()=>V,Util:()=>Z,VerbosityLevel:()=>O,XfaLayer:()=>td,build:()=>Bf,createValidAbsoluteUrl:()=>N,fetchData:()=>ve,getDocument:()=>$h,getFilenameFromUrl:()=>Ae,getPdfFilenameFromUrl:()=>_e,getXfaPageViewport:()=>Me,isDataScheme:()=>ke,isPdfFile:()=>xe,noContextMenu:()=>Te,normalizeUnicode:()=>it,setLayerDimensions:()=>Re,shadow:()=>W,version:()=>Wf}),r(8169),r(7651),r(4551),r(5268),r(184),r(3234),r(6746),r(8551),r(9024),r(9138),r(750),r(5015),r(6209),r(9261),r(3700),r(3632),r(7316),r(1425),r(3379),r(489),r(2823),r(5594),r(8397),r(2467),r(1281),r(9484),r(4672),r(6794),r(9264),r(7329),r(2044),r(3740),r(6542),r(5738),r(2900),r(2051),r(3198),r(4211),r(9791),r(5294),r(1526),r(6032),r(3659),r(932),r(8553),r(7612),r(8579),r(7719),r(7576),r(2891),r(2605),r(4863),r(9637),r(2709),r(8941),r(1579),r(6236),r(7716),r(1913),r(3577),r(5728),r(4136),r(4520),r(1531),r(3678),r(4145);var m=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type),b=[1,0,0,1,0,0],w=[.001,0,0,.001,0,0],k=1.35,x={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},A={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},_={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},E={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},S={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},O={ERRORS:0,WARNINGS:1,INFOS:5},T={NONE:0,BINARY:1},P={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,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93},L={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},M=O.WARNINGS;function C(t){Number.isInteger(t)&&(M=t)}function j(){return M}function I(t){M>=O.INFOS&&console.log("Info: ".concat(t))}function R(t){M>=O.WARNINGS&&console.log("Warning: ".concat(t))}function F(t){throw new Error(t)}function D(t,e){t||F(e)}function N(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return null;try{if(r&&"string"==typeof t){if(r.addDefaultProtocol&&t.startsWith("www.")){var n=t.match(/\\./g);(null==n?void 0:n.length)>=2&&(t="http://".concat(t))}if(r.tryConvertEncoding)try{t=decodeURIComponent(escape(t))}catch(t){}}var i=e?new URL(t,e):new URL(t);if(function(t){switch(null==t?void 0:t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i))return i}catch(t){}return null}function W(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!0,writable:!1}),r}var B=function(){function t(t,e){this.message=t,this.name=e}return t.prototype=new Error,t.constructor=t,t}(),G=function(t){function e(t,r){var n;return f(this,e),(n=d(this,e,[t,"PasswordException"])).code=r,n}return y(e,B),l(e)}(),H=function(t){function e(t,r){var n;return f(this,e),(n=d(this,e,[t,"UnknownErrorException"])).details=r,n}return y(e,B),l(e)}(),U=function(t){function e(t){return f(this,e),d(this,e,[t,"InvalidPDFException"])}return y(e,B),l(e)}(),z=function(t){function e(t){return f(this,e),d(this,e,[t,"MissingPDFException"])}return y(e,B),l(e)}(),V=function(t){function e(t,r){var n;return f(this,e),(n=d(this,e,[t,"UnexpectedResponseException"])).status=r,n}return y(e,B),l(e)}(),q=function(t){function e(t){return f(this,e),d(this,e,[t,"FormatError"])}return y(e,B),l(e)}(),Y=function(t){function e(t){return f(this,e),d(this,e,[t,"AbortException"])}return y(e,B),l(e)}();function X(t){"object"==typeof t&&void 0!==(null==t?void 0:t.length)||F("Invalid argument for bytesToString");var e=t.length,r=8192;if(e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){u=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw a}}}}(t);try{for(n.s();!(e=n.n()).done;){var i=o(e.value,2),a=i[0],u=i[1];r[a]=u}}catch(t){n.e(t)}finally{n.f()}return r}var J=function(){return l((function t(){f(this,t)}),null,[{key:"isLittleEndian",get:function(){return W(this,"isLittleEndian",((t=new Uint8Array(4))[0]=1,1===new Uint32Array(t.buffer,0,1)[0]));var t}},{key:"isEvalSupported",get:function(){return W(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(t){return!1}}())}},{key:"isOffscreenCanvasSupported",get:function(){return W(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}},{key:"platform",get:function(){var t,e;return"undefined"!=typeof navigator&&"string"==typeof(null===(t=navigator)||void 0===t?void 0:t.platform)?W(this,"platform",{isMac:navigator.platform.includes("Mac"),isWindows:navigator.platform.includes("Win"),isFirefox:"string"==typeof(null===(e=navigator)||void 0===e?void 0:e.userAgent)&&navigator.userAgent.includes("Firefox")}):W(this,"platform",{isMac:!1,isWindows:!1,isFirefox:!1})}},{key:"isCSSRoundSupported",get:function(){var t,e;return W(this,"isCSSRoundSupported",null===(t=globalThis.CSS)||void 0===t||null===(e=t.supports)||void 0===e?void 0:e.call(t,"width: round(1.5px, 1px)"))}}])}(),$=Array.from(Array(256).keys(),(function(t){return t.toString(16).padStart(2,"0")})),Z=function(){function t(){f(this,t)}return l(t,null,[{key:"makeHexColor",value:function(t,e,r){return"#".concat($[t]).concat($[e]).concat($[r])}},{key:"scaleMinMax",value:function(t,e){var r;t[0]?(t[0]<0&&(r=e[0],e[0]=e[2],e[2]=r),e[0]*=t[0],e[2]*=t[0],t[3]<0&&(r=e[1],e[1]=e[3],e[3]=r),e[1]*=t[3],e[3]*=t[3]):(r=e[0],e[0]=e[1],e[1]=r,r=e[2],e[2]=e[3],e[3]=r,t[1]<0&&(r=e[1],e[1]=e[3],e[3]=r),e[1]*=t[1],e[3]*=t[1],t[2]<0&&(r=e[0],e[0]=e[2],e[2]=r),e[0]*=t[2],e[2]*=t[2]),e[0]+=t[4],e[1]+=t[5],e[2]+=t[4],e[3]+=t[5]}},{key:"transform",value:function(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}},{key:"applyTransform",value:function(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]}},{key:"applyInverseTransform",value:function(t,e){var r=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/r,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/r]}},{key:"getAxialAlignedBoundingBox",value:function(t,e){var r=this.applyTransform(t,e),n=this.applyTransform(t.slice(2,4),e),i=this.applyTransform([t[0],t[3]],e),a=this.applyTransform([t[2],t[1]],e);return[Math.min(r[0],n[0],i[0],a[0]),Math.min(r[1],n[1],i[1],a[1]),Math.max(r[0],n[0],i[0],a[0]),Math.max(r[1],n[1],i[1],a[1])]}},{key:"inverseTransform",value:function(t){var e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}},{key:"singularValueDecompose2dScale",value:function(t){var e=[t[0],t[2],t[1],t[3]],r=t[0]*e[0]+t[1]*e[2],n=t[0]*e[1]+t[1]*e[3],i=t[2]*e[0]+t[3]*e[2],a=t[2]*e[1]+t[3]*e[3],o=(r+a)/2,s=Math.sqrt(Math.pow(r+a,2)-4*(r*a-i*n))/2,u=o+s||1,c=o-s||1;return[Math.sqrt(u),Math.sqrt(c)]}},{key:"normalizeRect",value:function(t){var e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}},{key:"intersect",value:function(t,e){var r=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),n=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(r>n)return null;var i=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),a=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return i>a?null:[r,i,n,a]}},{key:"bezierBoundingBox",value:function(e,r,n,i,o,s,u,c,l){return l?(l[0]=Math.min(l[0],e,u),l[1]=Math.min(l[1],r,c),l[2]=Math.max(l[2],e,u),l[3]=Math.max(l[3],r,c)):l=[Math.min(e,u),Math.min(r,c),Math.max(e,u),Math.max(r,c)],a(t,this,et).call(this,e,n,o,u,r,i,s,c,3*(3*(n-o)-e+u),6*(e-2*n+o),3*(n-e),l),a(t,this,et).call(this,e,n,o,u,r,i,s,c,3*(3*(i-s)-r+c),6*(r-2*i+s),3*(i-r),l),l}}])}();function tt(t,e,r,n,i,a,o,s,u,c){if(!(u<=0||u>=1)){var l=1-u,h=u*u,f=h*u,d=l*(l*(l*t+3*u*e)+3*h*r)+f*n,v=l*(l*(l*i+3*u*a)+3*h*o)+f*s;c[0]=Math.min(c[0],d),c[1]=Math.min(c[1],v),c[2]=Math.max(c[2],d),c[3]=Math.max(c[3],v)}}function et(t,e,r,i,o,s,u,c,l,h,f,d){if(Math.abs(l)<1e-12)Math.abs(h)>=1e-12&&a(n,this,tt).call(this,t,e,r,i,o,s,u,c,-f/h,d);else{var v=Math.pow(h,2)-4*f*l;if(!(v<0)){var p=Math.sqrt(v),y=2*l;a(n,this,tt).call(this,t,e,r,i,o,s,u,c,(-h+p)/y,d),a(n,this,tt).call(this,t,e,r,i,o,s,u,c,(-h-p)/y,d)}}}n=Z;var rt=null,nt=null;function it(t){return rt||(rt=/([\\xA0\\xB5\\u037E\\u0EB3\\u2000-\\u200A\\u202F\\u2126\\uFB00-\\uFB04\\uFB06\\uFB20-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBA1\\uFBA4-\\uFBA9\\uFBAE-\\uFBB1\\uFBD3-\\uFBDC\\uFBDE-\\uFBE7\\uFBEA-\\uFBF8\\uFBFC\\uFBFD\\uFC00-\\uFC5D\\uFC64-\\uFCF1\\uFCF5-\\uFD3D\\uFD88\\uFDF4\\uFDFA\\uFDFB\\uFE71\\uFE77\\uFE79\\uFE7B\\uFE7D]+)|(\\uFB05+)/g,nt=new Map([["ſt","ſt"]])),t.replaceAll(rt,(function(t,e,r){return e?e.normalize("NFKC"):nt.get(r)}))}var at="pdfjs_internal_id_";function ot(){ot=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function st(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function ut(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){st(a,n,i,o,s,"next",t)}function s(t){st(a,n,i,o,s,"throw",t)}o(void 0)}))}}function ct(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}function lt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ht(t,e){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2];if(t<=0||e<=0)throw new Error("Invalid SVG dimensions");var n=this._createSVG("svg:svg");return n.setAttribute("version","1.1"),r||(n.setAttribute("width","".concat(t,"px")),n.setAttribute("height","".concat(e,"px"))),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 ".concat(t," ").concat(e)),n}},{key:"createElement",value:function(t){if("string"!=typeof t)throw new Error("Invalid SVG element type");return this._createSVG(t)}},{key:"_createSVG",value:function(t){F("Abstract method \`_createSVG\` called.")}}])}();function kt(){kt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function xt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=St(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function At(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function _t(t){return function(t){if(Array.isArray(t))return Ot(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||St(t)||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 Et(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||St(t,e)||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 St(t,e){if(t){if("string"==typeof t)return Ot(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ot(t,e):void 0}}function Ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]&&arguments[0]&&0!==Rt(Zt,this,re).size||(Ft(Xt,this)&&(Ft(Xt,this).parentNode.parentNode.remove(),Dt(Xt,this,null)),Ft(Yt,this)&&(Ft(Yt,this).clear(),Dt(Yt,this,null)),Dt($t,this,0))}}])}();function ee(t){return Ft(Yt,t)||Dt(Yt,t,new Map)}function re(t){return Ft(Jt,t)||Dt(Jt,t,new Map)}function ne(t){if(!Ft(Xt,t)){var e=Ft(Qt,t).createElement("div"),r=e.style;r.visibility="hidden",r.contain="strict",r.width=r.height=0,r.position="absolute",r.top=r.left=0,r.zIndex=-1;var n=Ft(Qt,t).createElementNS(zt,"svg");n.setAttribute("width",0),n.setAttribute("height",0),Dt(Xt,t,Ft(Qt,t).createElementNS(zt,"defs")),e.append(n),n.append(Ft(Xt,t)),Ft(Qt,t).body.append(e)}return Ft(Xt,t)}function ie(t){if(1===t.length){for(var e=t[0],r=new Array(256),n=0;n<256;n++)r[n]=e[n]/255;var i=r.join(",");return[i,i,i]}for(var a=Et(t,3),o=a[0],s=a[1],u=a[2],c=new Array(256),l=new Array(256),h=new Array(256),f=0;f<256;f++)c[f]=o[f]/255,l[f]=s[f]/255,h[f]=u[f]/255;return[c.join(","),l.join(","),h.join(",")]}function ae(t){if(void 0===Ft(qt,this)){Dt(qt,this,"");var e=Ft(Qt,this).URL;e!==Ft(Qt,this).baseURI&&(ke(e)?R('#createUrl: ignore "data:"-URL for performance reasons.'):Dt(qt,this,e.split("#",1)[0]))}return"url(".concat(Ft(qt,this),"#").concat(t,")")}function oe(t){var e=Ft(Qt,this).createElementNS(zt,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),t.append(e)}function se(t){var e=Ft(Qt,this).createElementNS(zt,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),t.append(e)}function ue(t){var e=Ft(Qt,this).createElementNS(zt,"filter");return e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("id",t),Rt(Zt,this,ne).append(e),e}function ce(t,e,r){var n=Ft(Qt,this).createElementNS(zt,e);n.setAttribute("type","discrete"),n.setAttribute("tableValues",r),t.append(n)}function le(t,e,r,n){var i=Ft(Qt,this).createElementNS(zt,"feComponentTransfer");n.append(i),Nt(Zt,this,ce).call(this,i,"feFuncR",t),Nt(Zt,this,ce).call(this,i,"feFuncG",e),Nt(Zt,this,ce).call(this,i,"feFuncB",r)}function he(t,e){var r=Ft(Qt,this).createElementNS(zt,"feComponentTransfer");e.append(r),Nt(Zt,this,ce).call(this,r,"feFuncA",t)}function fe(t){return Rt(Zt,this,ne).style.color=t,Ce(getComputedStyle(Rt(Zt,this,ne)).getPropertyValue("color"))}var de=function(t){function e(t){var r,n=t.ownerDocument,i=void 0===n?globalThis.document:n,a=t.enableHWA,o=void 0!==a&&a;return Gt(this,e),(r=Tt(this,e,[{enableHWA:o}]))._document=i,r}return Mt(e,gt),Bt(e,[{key:"_createCanvas",value:function(t,e){var r=this._document.createElement("canvas");return r.width=t,r.height=e,r}}])}();function ve(t){return pe.apply(this,arguments)}function pe(){var t;return t=kt().mark((function t(e){var r,n,i=arguments;return kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=i.length>1&&void 0!==i[1]?i[1]:"text",!Oe(e,document.baseURI)){t.next=14;break}return t.next=4,fetch(e);case 4:if((n=t.sent).ok){t.next=7;break}throw new Error(n.statusText);case 7:t.t0=r,t.next="arraybuffer"===t.t0?10:"blob"===t.t0?11:"json"===t.t0?12:13;break;case 10:return t.abrupt("return",n.arrayBuffer());case 11:return t.abrupt("return",n.blob());case 12:return t.abrupt("return",n.json());case 13:return t.abrupt("return",n.text());case 14:return t.abrupt("return",new Promise((function(t,n){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType=r,i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE)if(200!==i.status&&0!==i.status)n(new Error(i.statusText));else{switch(r){case"arraybuffer":case"blob":case"json":return void t(i.response)}t(i.responseText)}},i.send(null)})));case 15:case"end":return t.stop()}}),t)})),pe=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){At(a,n,i,o,s,"next",t)}function s(t){At(a,n,i,o,s,"throw",t)}o(void 0)}))},pe.apply(this,arguments)}var ye=function(t){function e(){return Gt(this,e),Tt(this,e,arguments)}return Mt(e,mt),Bt(e,[{key:"_fetchData",value:function(t,e){return ve(t,this.isCompressed?"arraybuffer":"text").then((function(t){return{cMapData:t instanceof ArrayBuffer?new Uint8Array(t):K(t),compressionType:e}}))}}])}(),ge=function(t){function e(){return Gt(this,e),Tt(this,e,arguments)}return Mt(e,bt),Bt(e,[{key:"_fetchData",value:function(t){return ve(t,"arraybuffer").then((function(t){return new Uint8Array(t)}))}}])}(),me=function(t){function e(){return Gt(this,e),Tt(this,e,arguments)}return Mt(e,wt),Bt(e,[{key:"_createSVG",value:function(t){return document.createElementNS(zt,t)}}])}(),be=function(){function t(e){var r=e.viewBox,n=e.scale,i=e.rotation,a=e.offsetX,o=void 0===a?0:a,s=e.offsetY,u=void 0===s?0:s,c=e.dontFlip,l=void 0!==c&&c;Gt(this,t),this.viewBox=r,this.scale=n,this.rotation=i,this.offsetX=o,this.offsetY=u;var h,f,d,v,p,y,g,m,b=(r[2]+r[0])/2,w=(r[3]+r[1])/2;switch((i%=360)<0&&(i+=360),i){case 180:h=-1,f=0,d=0,v=1;break;case 90:h=0,f=1,d=1,v=0;break;case 270:h=0,f=-1,d=-1,v=0;break;case 0:h=1,f=0,d=0,v=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}l&&(d=-d,v=-v),0===h?(p=Math.abs(w-r[1])*n+o,y=Math.abs(b-r[0])*n+u,g=(r[3]-r[1])*n,m=(r[2]-r[0])*n):(p=Math.abs(b-r[0])*n+o,y=Math.abs(w-r[1])*n+u,g=(r[2]-r[0])*n,m=(r[3]-r[1])*n),this.transform=[h*n,f*n,d*n,v*n,p-h*n*b-d*n*w,y-f*n*b-v*n*w],this.width=g,this.height=m}return Bt(t,[{key:"rawDims",get:function(){var t=this.viewBox;return W(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.scale,n=void 0===r?this.scale:r,i=e.rotation,a=void 0===i?this.rotation:i,o=e.offsetX,s=void 0===o?this.offsetX:o,u=e.offsetY,c=void 0===u?this.offsetY:u,l=e.dontFlip,h=void 0!==l&&l;return new t({viewBox:this.viewBox.slice(),scale:n,rotation:a,offsetX:s,offsetY:c,dontFlip:h})}},{key:"convertToViewportPoint",value:function(t,e){return Z.applyTransform([t,e],this.transform)}},{key:"convertToViewportRectangle",value:function(t){var e=Z.applyTransform([t[0],t[1]],this.transform),r=Z.applyTransform([t[2],t[3]],this.transform);return[e[0],e[1],r[0],r[1]]}},{key:"convertToPdfPoint",value:function(t,e){return Z.applyInverseTransform([t,e],this.transform)}}])}(),we=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Gt(this,e),(r=Tt(this,e,[t,"RenderingCancelledException"])).extraDelay=n,r}return Mt(e,B),Bt(e)}();function ke(t){for(var e=t.length,r=0;r1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof t)return e;if(ke(t))return R('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;var r=/[^/?#=]+\\.pdf\\b(?!.*\\.pdf\\b)/i,n=/^(?:(?:[^:]+:)?\\/\\/[^/]+)?([^?#]*)(\\?[^#]*)?(#.*)?$/.exec(t),i=r.exec(n[1])||r.exec(n[2])||r.exec(n[3]);if(i&&(i=i[0]).includes("%"))try{i=r.exec(decodeURIComponent(i))[0]}catch(t){}return i||e}var Ee,Se=function(){return Bt((function t(){Gt(this,t),Ht(this,"started",Object.create(null)),Ht(this,"times",[])}),[{key:"time",value:function(t){t in this.started&&R("Timer is already running for ".concat(t)),this.started[t]=Date.now()}},{key:"timeEnd",value:function(t){t in this.started||R("Timer has not been started for ".concat(t)),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}},{key:"toString",value:function(){var t,e=[],r=0,n=xt(this.times);try{for(n.s();!(t=n.n()).done;){var i=t.value.name;r=Math.max(i.length,r)}}catch(t){n.e(t)}finally{n.f()}var a,o=xt(this.times);try{for(o.s();!(a=o.n()).done;){var s=a.value,u=s.name,c=s.start,l=s.end;e.push("".concat(u.padEnd(r)," ").concat(l-c,"ms\\n"))}}catch(t){o.e(t)}finally{o.f()}return e.join("")}}])}();function Oe(t,e){try{var r=(e?new URL(t,e):new URL(t)).protocol;return"http:"===r||"https:"===r}catch(t){return!1}}function Te(t){t.preventDefault()}function Pe(t){console.log("Deprecated API usage: "+t)}var Le=function(){return Bt((function t(){Gt(this,t)}),null,[{key:"toDateObject",value:function(t){if(!t||"string"!=typeof t)return null;Ee||(Ee=new RegExp("^D:(\\\\d{4})(\\\\d{2})?(\\\\d{2})?(\\\\d{2})?(\\\\d{2})?(\\\\d{2})?([Z|+|-])?(\\\\d{2})?'?(\\\\d{2})?'?"));var e=Ee.exec(t);if(!e)return null;var r=parseInt(e[1],10),n=parseInt(e[2],10);n=n>=1&&n<=12?n-1:0;var i=parseInt(e[3],10);i=i>=1&&i<=31?i:1;var a=parseInt(e[4],10);a=a>=0&&a<=23?a:0;var o=parseInt(e[5],10);o=o>=0&&o<=59?o:0;var s=parseInt(e[6],10);s=s>=0&&s<=59?s:0;var u=e[7]||"Z",c=parseInt(e[8],10);c=c>=0&&c<=23?c:0;var l=parseInt(e[9],10)||0;return l=l>=0&&l<=59?l:0,"-"===u?(a+=c,o+=l):"+"===u&&(a-=c,o-=l),new Date(Date.UTC(r,n,i,a,o,s))}}])}();function Me(t,e){var r=e.scale,n=void 0===r?1:r,i=e.rotation,a=void 0===i?0:i,o=t.attributes.style,s=o.width,u=o.height,c=[0,0,parseInt(s),parseInt(u)];return new be({viewBox:c,scale:n,rotation:a})}function Ce(t){if(t.startsWith("#")){var e=parseInt(t.slice(1),16);return[(16711680&e)>>16,(65280&e)>>8,255&e]}return t.startsWith("rgb(")?t.slice(4,-1).split(",").map((function(t){return parseInt(t)})):t.startsWith("rgba(")?t.slice(5,-1).split(",").map((function(t){return parseInt(t)})).slice(0,3):(R('Not a valid color format: "'.concat(t,'"')),[0,0,0])}function je(t){var e=t.getTransform();return[e.a,e.b,e.c,e.d,e.e,e.f]}function Ie(t){var e=t.getTransform().invertSelf();return[e.a,e.b,e.c,e.d,e.e,e.f]}function Re(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e instanceof be){var i=e.rawDims,a=i.pageWidth,o=i.pageHeight,s=t.style,u=J.isCSSRoundSupported,c="var(--scale-factor) * ".concat(a,"px"),l="var(--scale-factor) * ".concat(o,"px"),h=u?"round(down, ".concat(c,", var(--scale-round-x, 1px))"):"calc(".concat(c,")"),f=u?"round(down, ".concat(l,", var(--scale-round-y, 1px))"):"calc(".concat(l,")");r&&e.rotation%180!=0?(s.width=f,s.height=h):(s.width=h,s.height=f)}n&&t.setAttribute("data-main-rotation",e.rotation)}var Fe=function(){return Bt((function t(){Gt(this,t);var e=window.devicePixelRatio||1;this.sx=e,this.sy=e}),[{key:"scaled",get:function(){return 1!==this.sx||1!==this.sy}},{key:"symmetric",get:function(){return this.sx===this.sy}}])}();function De(t,e){if(t){if("string"==typeof t)return Ne(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ne(t,e):void 0}}function Ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Be(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Ge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function He(t,e){for(var r=0;r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=o.y+o.height;if(!(sn?(i=u,n=s):e?u>i&&(i=u):u=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Er(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Sr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Er(a,n,i,o,s,"next",t)}function s(t){Er(a,n,i,o,s,"throw",t)}o(void 0)}))}}function Or(t,e){jr(t,e),e.add(t)}function Tr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pr(t,e){for(var r=0;r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Nr(t,e){if(t){if("string"==typeof t)return Wr(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wr(t,e):void 0}}function Wr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:128;Tr(this,t),Cr(this,Qr,[]),Cr(this,Jr,!1),Cr(this,$r,void 0),Cr(this,Zr,-1),Rr($r,this,e)}),[{key:"add",value:function(t){var e=t.cmd,r=t.undo,n=t.post,i=t.mustExec,a=t.type,o=void 0===a?NaN:a,s=t.overwriteIfSameType,u=void 0!==s&&s,c=t.keepUndo,l=void 0!==c&&c;if(i&&e(),!Ir(Jr,this)){var h={cmd:e,undo:r,post:n,type:o};if(-1===Ir(Zr,this))return Ir(Qr,this).length>0&&(Ir(Qr,this).length=0),Rr(Zr,this,0),void Ir(Qr,this).push(h);if(u&&Ir(Qr,this)[Ir(Zr,this)].type===o)return l&&(h.undo=Ir(Qr,this)[Ir(Zr,this)].undo),void(Ir(Qr,this)[Ir(Zr,this)]=h);var f=Ir(Zr,this)+1;f===Ir($r,this)?Ir(Qr,this).splice(0,1):(Rr(Zr,this,f),f1&&void 0!==arguments[1]&&arguments[1];null===(e=Ir(hn,this))||void 0===e||e.editAltText(this,t,r)}},{key:"switchToMode",value:function(t,e){this._eventBus.on("annotationeditormodechanged",e,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:t})}},{key:"setPreference",value:function(t,e){this._eventBus.dispatch("setpreference",{source:this,name:t,value:e})}},{key:"onSetPreference",value:function(t){var e=t.name,r=t.value;"enableNewAltTextWhenAddingImage"===e&&Rr(An,this,r)}},{key:"onPageChanging",value:function(t){var e=t.pageNumber;Rr(yn,this,e-1)}},{key:"focusMainContainer",value:function(){Ir(Vn,this).focus()}},{key:"findParent",value:function(t,e){var r,n=Dr(Ir(ln,this).values());try{for(n.s();!(r=n.n()).done;){var i=r.value,a=i.div.getBoundingClientRect(),o=a.x,s=a.y,u=a.width,c=a.height;if(t>=o&&t<=o+u&&e>=s&&e<=s+c)return i}}catch(t){n.e(t)}finally{n.f()}return null}},{key:"disableUserSelect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ir(qn,this).classList.toggle("noUserSelect",t)}},{key:"addShouldRescale",value:function(t){Ir(wn,this).add(t)}},{key:"removeShouldRescale",value:function(t){Ir(wn,this).delete(t)}},{key:"onScaleChanging",value:function(t){var e=t.scale;this.commitOrRemove(),this.viewParameters.realScale=e*Vt.PDF_TO_CSS_UNITS;var r,n=Dr(Ir(wn,this));try{for(n.s();!(r=n.n()).done;)r.value.onScaleChanging()}catch(t){n.e(t)}finally{n.f()}}},{key:"onRotationChanging",value:function(t){var e=t.pagesRotation;this.commitOrRemove(),this.viewParameters.rotation=e}},{key:"highlightSelection",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=document.getSelection();if(r&&!r.isCollapsed){var n=r.anchorNode,i=r.anchorOffset,a=r.focusNode,o=r.focusOffset,s=r.toString(),u=Fr(Xn,this,Qn).call(this,r).closest(".textLayer"),c=this.getSelectionBoxes(u);if(c){r.empty();var l=Fr(Xn,this,Jn).call(this,u),h=Ir(Dn,this)===A.NONE,f=function(){null==l||l.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:c,anchorNode:n,anchorOffset:i,focusNode:a,focusOffset:o,text:s}),h&&t.showAllEditors("highlight",!0,!0)};h?this.switchToMode(A.HIGHLIGHT,f):f()}}}},{key:"addToAnnotationStorage",value:function(t){t.isEmpty()||!Ir(fn,this)||Ir(fn,this).has(t.id)||Ir(fn,this).setValue(t.id,t)}},{key:"blur",value:function(){if(this.isShiftKeyDown=!1,Ir(Tn,this)&&(Rr(Tn,this,!1),Fr(Xn,this,ti).call(this,"main_toolbar")),this.hasSelection){var t,e=document.activeElement,r=Dr(Ir(Nn,this));try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.div.contains(e)){Rr(In,this,[n,e]),n._focusEventsAllowed=!1;break}}}catch(t){r.e(t)}finally{r.f()}}}},{key:"focus",value:function(){if(Ir(In,this)){var t=Ar(Ir(In,this),2),e=t[0],r=t[1];Rr(In,this,null),r.addEventListener("focusin",(function(){e._focusEventsAllowed=!0}),{once:!0,signal:this._signal}),r.focus()}}},{key:"addEditListeners",value:function(){Fr(Xn,this,ii).call(this),Fr(Xn,this,oi).call(this)}},{key:"removeEditListeners",value:function(){Fr(Xn,this,ai).call(this),Fr(Xn,this,si).call(this)}},{key:"dragOver",value:function(t){var e,r=Dr(t.dataTransfer.items);try{for(r.s();!(e=r.n()).done;){var n,i=e.value.type,a=Dr(Ir(bn,this));try{for(a.s();!(n=a.n()).done;)if(n.value.isHandlingMimeForPasting(i))return t.dataTransfer.dropEffect="copy",void t.preventDefault()}catch(t){a.e(t)}finally{a.f()}}}catch(t){r.e(t)}finally{r.f()}}},{key:"drop",value:function(t){var e,r=Dr(t.dataTransfer.items);try{for(r.s();!(e=r.n()).done;){var n,i=e.value,a=Dr(Ir(bn,this));try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.isHandlingMimeForPasting(i.type))return o.paste(i,this.currentLayer),void t.preventDefault()}}catch(t){a.e(t)}finally{a.f()}}}catch(t){r.e(t)}finally{r.f()}}},{key:"copy",value:function(t){var e;if(t.preventDefault(),null===(e=Ir(un,this))||void 0===e||e.commitOrRemove(),this.hasSelection){var r,n=[],i=Dr(Ir(Nn,this));try{for(i.s();!(r=i.n()).done;){var a=r.value.serialize(!0);a&&n.push(a)}}catch(t){i.e(t)}finally{i.f()}0!==n.length&&t.clipboardData.setData("application/pdfjs",JSON.stringify(n))}}},{key:"cut",value:function(t){this.copy(t),this.delete()}},{key:"paste",value:(r=Sr(_r().mark((function t(e){var r,n,i,a,o,s,u,c,l,h,f,d,v,p,y,g,m=this;return _r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.preventDefault(),r=e.clipboardData,n=Dr(r.items),t.prev=3,n.s();case 5:if((i=n.n()).done){t.next=27;break}a=i.value,o=Dr(Ir(bn,this)),t.prev=8,o.s();case 10:if((s=o.n()).done){t.next=17;break}if(!(u=s.value).isHandlingMimeForPasting(a.type)){t.next=15;break}return u.paste(a,this.currentLayer),t.abrupt("return");case 15:t.next=10;break;case 17:t.next=22;break;case 19:t.prev=19,t.t0=t.catch(8),o.e(t.t0);case 22:return t.prev=22,o.f(),t.finish(22);case 25:t.next=5;break;case 27:t.next=32;break;case 29:t.prev=29,t.t1=t.catch(3),n.e(t.t1);case 32:return t.prev=32,n.f(),t.finish(32);case 35:if(c=r.getData("application/pdfjs")){t.next=38;break}return t.abrupt("return");case 38:t.prev=38,c=JSON.parse(c),t.next=46;break;case 42:return t.prev=42,t.t2=t.catch(38),R('paste: "'.concat(t.t2.message,'".')),t.abrupt("return");case 46:if(Array.isArray(c)){t.next=48;break}return t.abrupt("return");case 48:this.unselectAll(),l=this.currentLayer,t.prev=50,h=[],f=Dr(c),t.prev=53,f.s();case 55:if((d=f.n()).done){t.next=65;break}return v=d.value,t.next=59,l.deserialize(v);case 59:if(p=t.sent){t.next=62;break}return t.abrupt("return");case 62:h.push(p);case 63:t.next=55;break;case 65:t.next=70;break;case 67:t.prev=67,t.t3=t.catch(53),f.e(t.t3);case 70:return t.prev=70,f.f(),t.finish(70);case 73:y=function(){for(var t=0,e=h;t1&&void 0!==c[1]?c[1]:null,n=c.length>2&&void 0!==c[2]&&c[2],Ir(Dn,this)!==e){t.next=4;break}return t.abrupt("return");case 4:if(!Ir(Yn,this)){t.next=9;break}return t.next=7,Ir(Yn,this).promise;case 7:if(Ir(Yn,this)){t.next=9;break}return t.abrupt("return");case 9:if(Rr(Yn,this,Promise.withResolvers()),Rr(Dn,this,e),e!==A.NONE){t.next=16;break}return this.setEditingState(!1),Fr(Xn,this,di).call(this),Ir(Yn,this).resolve(),t.abrupt("return");case 16:return this.setEditingState(!0),t.next=19,Fr(Xn,this,hi).call(this);case 19:this.unselectAll(),i=Dr(Ir(ln,this).values());try{for(i.s();!(a=i.n()).done;)a.value.updateMode(e)}catch(t){i.e(t)}finally{i.f()}if(r){t.next=26;break}return n&&this.addNewEditorFromKeyboard(),Ir(Yn,this).resolve(),t.abrupt("return");case 26:o=Dr(Ir(cn,this).values());try{for(o.s();!(s=o.n()).done;)(u=s.value).annotationElementId===r?(this.setSelected(u),u.enterInEditMode()):u.unselect()}catch(t){o.e(t)}finally{o.f()}Ir(Yn,this).resolve();case 29:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"addNewEditorFromKeyboard",value:function(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}},{key:"updateToolbar",value:function(t){t!==Ir(Dn,this)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}},{key:"updateParams",value:function(t,e){var r;if(Ir(bn,this)){switch(t){case _.CREATE:return void this.currentLayer.addNewEditor();case _.HIGHLIGHT_DEFAULT_COLOR:null===(r=Ir(Rn,this))||void 0===r||r.updateColor(e);break;case _.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(Ir(Gn,this)||Rr(Gn,this,new Map)).set(t,e),this.showAllEditors("highlight",e)}var n,i=Dr(Ir(Nn,this));try{for(i.s();!(n=i.n()).done;)n.value.updateParams(t,e)}catch(t){i.e(t)}finally{i.f()}var a,o=Dr(Ir(bn,this));try{for(o.s();!(a=o.n()).done;)a.value.updateDefaultParams(t,e)}catch(t){o.e(t)}finally{o.f()}}}},{key:"showAllEditors",value:function(t,e){var r,n,i,a=Dr(Ir(cn,this).values());try{for(a.s();!(i=a.n()).done;){var o=i.value;o.editorType===t&&o.show(e)}}catch(t){a.e(t)}finally{a.f()}(null===(r=null===(n=Ir(Gn,this))||void 0===n?void 0:n.get(_.HIGHLIGHT_SHOW_ALL))||void 0===r||r)!==e&&Fr(Xn,this,li).call(this,[[_.HIGHLIGHT_SHOW_ALL,e]])}},{key:"enableWaiting",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Ir(Cn,this)!==t){Rr(Cn,this,t);var e,r=Dr(Ir(ln,this).values());try{for(r.s();!(e=r.n()).done;){var n=e.value;t?n.disableClick():n.enableClick(),n.div.classList.toggle("waiting",t)}}catch(t){r.e(t)}finally{r.f()}}}},{key:"getEditors",value:function(t){var e,r=[],n=Dr(Ir(cn,this).values());try{for(n.s();!(e=n.n()).done;){var i=e.value;i.pageIndex===t&&r.push(i)}}catch(t){n.e(t)}finally{n.f()}return r}},{key:"getEditor",value:function(t){return Ir(cn,this).get(t)}},{key:"addEditor",value:function(t){Ir(cn,this).set(t.id,t)}},{key:"removeEditor",value:function(t){var e,r=this;t.div.contains(document.activeElement)&&(Ir(En,this)&&clearTimeout(Ir(En,this)),Rr(En,this,setTimeout((function(){r.focusMainContainer(),Rr(En,r,null)}),0))),Ir(cn,this).delete(t.id),this.unselect(t),t.annotationElementId&&Ir(gn,this).has(t.annotationElementId)||null===(e=Ir(fn,this))||void 0===e||e.remove(t.id)}},{key:"addDeletedAnnotationElement",value:function(t){Ir(gn,this).add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}},{key:"isDeletedAnnotationElement",value:function(t){return Ir(gn,this).has(t)}},{key:"removeDeletedAnnotationElement",value:function(t){Ir(gn,this).delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}},{key:"setActiveEditor",value:function(t){Ir(un,this)!==t&&(Rr(un,this,t),t&&Fr(Xn,this,li).call(this,t.propertiesToUpdate))}},{key:"updateUI",value:function(t){(function(t){var e,r=null,n=Dr(Ir(Nn,t));try{for(n.s();!(e=n.n()).done;)r=e.value}catch(t){n.e(t)}finally{n.f()}return r})(Fr(Xn,this))===t&&Fr(Xn,this,li).call(this,t.propertiesToUpdate)}},{key:"toggleSelected",value:function(t){if(Ir(Nn,this).has(t))return Ir(Nn,this).delete(t),t.unselect(),void Fr(Xn,this,ci).call(this,{hasSelectedEditor:this.hasSelection});Ir(Nn,this).add(t),t.select(),Fr(Xn,this,li).call(this,t.propertiesToUpdate),Fr(Xn,this,ci).call(this,{hasSelectedEditor:!0})}},{key:"setSelected",value:function(t){var e,r=Dr(Ir(Nn,this));try{for(r.s();!(e=r.n()).done;){var n=e.value;n!==t&&n.unselect()}}catch(t){r.e(t)}finally{r.f()}Ir(Nn,this).clear(),Ir(Nn,this).add(t),t.select(),Fr(Xn,this,li).call(this,t.propertiesToUpdate),Fr(Xn,this,ci).call(this,{hasSelectedEditor:!0})}},{key:"isSelected",value:function(t){return Ir(Nn,this).has(t)}},{key:"firstSelectedEditor",get:function(){return Ir(Nn,this).values().next().value}},{key:"unselect",value:function(t){t.unselect(),Ir(Nn,this).delete(t),Fr(Xn,this,ci).call(this,{hasSelectedEditor:this.hasSelection})}},{key:"hasSelection",get:function(){return 0!==Ir(Nn,this).size}},{key:"isEnterHandled",get:function(){return 1===Ir(Nn,this).size&&this.firstSelectedEditor.isEnterHandled}},{key:"undo",value:function(){Ir(vn,this).undo(),Fr(Xn,this,ci).call(this,{hasSomethingToUndo:Ir(vn,this).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:Fr(Xn,this,pi).call(this)})}},{key:"redo",value:function(){Ir(vn,this).redo(),Fr(Xn,this,ci).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:Ir(vn,this).hasSomethingToRedo(),isEmpty:Fr(Xn,this,pi).call(this)})}},{key:"addCommands",value:function(t){Ir(vn,this).add(t),Fr(Xn,this,ci).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:Fr(Xn,this,pi).call(this)})}},{key:"delete",value:function(){var t=this;if(this.commitOrRemove(),this.hasSelection){var e=xr(Ir(Nn,this));this.addCommands({cmd:function(){var t,r=Dr(e);try{for(r.s();!(t=r.n()).done;)t.value.remove()}catch(t){r.e(t)}finally{r.f()}},undo:function(){var r,n=Dr(e);try{for(n.s();!(r=n.n()).done;){var i=r.value;Fr(Xn,t,vi).call(t,i)}}catch(t){n.e(t)}finally{n.f()}},mustExec:!0})}}},{key:"commitOrRemove",value:function(){var t;null===(t=Ir(un,this))||void 0===t||t.commitOrRemove()}},{key:"hasSomethingToControl",value:function(){return Ir(un,this)||this.hasSelection}},{key:"selectAll",value:function(){var t,e=Dr(Ir(Nn,this));try{for(e.s();!(t=e.n()).done;)t.value.commit()}catch(t){e.e(t)}finally{e.f()}Fr(Xn,this,yi).call(this,Ir(cn,this).values())}},{key:"unselectAll",value:function(){if((!Ir(un,this)||(Ir(un,this).commitOrRemove(),Ir(Dn,this)===A.NONE))&&this.hasSelection){var t,e=Dr(Ir(Nn,this));try{for(e.s();!(t=e.n()).done;)t.value.unselect()}catch(t){e.e(t)}finally{e.f()}Ir(Nn,this).clear(),Fr(Xn,this,ci).call(this,{hasSelectedEditor:!1})}}},{key:"translateSelectedEditors",value:function(t,e){var r=this;if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),this.hasSelection){Ir(Un,this)[0]+=t,Ir(Un,this)[1]+=e;var n=Ar(Ir(Un,this),2),i=n[0],a=n[1],o=xr(Ir(Nn,this));Ir(zn,this)&&clearTimeout(Ir(zn,this)),Rr(zn,this,setTimeout((function(){Rr(zn,r,null),Ir(Un,r)[0]=Ir(Un,r)[1]=0,r.addCommands({cmd:function(){var t,e=Dr(o);try{for(e.s();!(t=e.n()).done;){var n=t.value;Ir(cn,r).has(n.id)&&n.translateInPage(i,a)}}catch(t){e.e(t)}finally{e.f()}},undo:function(){var t,e=Dr(o);try{for(e.s();!(t=e.n()).done;){var n=t.value;Ir(cn,r).has(n.id)&&n.translateInPage(-i,-a)}}catch(t){e.e(t)}finally{e.f()}},mustExec:!1})}),1e3));var s,u=Dr(o);try{for(u.s();!(s=u.n()).done;)s.value.translateInPage(t,e)}catch(t){u.e(t)}finally{u.f()}}}},{key:"setUpDragSession",value:function(){if(this.hasSelection){this.disableUserSelect(!0),Rr(mn,this,new Map);var t,e=Dr(Ir(Nn,this));try{for(e.s();!(t=e.n()).done;){var r=t.value;Ir(mn,this).set(r,{savedX:r.x,savedY:r.y,savedPageIndex:r.pageIndex,newX:0,newY:0,newPageIndex:-1})}}catch(t){e.e(t)}finally{e.f()}}}},{key:"endDragSession",value:function(){var t=this;if(!Ir(mn,this))return!1;this.disableUserSelect(!1);var e=Ir(mn,this);Rr(mn,this,null);var r,n=!1,i=Dr(e);try{for(i.s();!(r=i.n()).done;){var a=Ar(r.value,2),o=a[0],s=o.x,u=o.y,c=o.pageIndex,l=a[1];l.newX=s,l.newY=u,l.newPageIndex=c,n||(n=s!==l.savedX||u!==l.savedY||c!==l.savedPageIndex)}}catch(t){i.e(t)}finally{i.f()}if(!n)return!1;var h=function(e,r,n,i){if(Ir(cn,t).has(e.id)){var a=Ir(ln,t).get(i);a?e._setParentAndPosition(a,r,n):(e.pageIndex=i,e.x=r,e.y=n)}};return this.addCommands({cmd:function(){var t,r=Dr(e);try{for(r.s();!(t=r.n()).done;){var n=Ar(t.value,2),i=n[0],a=n[1],o=a.newX,s=a.newY,u=a.newPageIndex;h(i,o,s,u)}}catch(t){r.e(t)}finally{r.f()}},undo:function(){var t,r=Dr(e);try{for(r.s();!(t=r.n()).done;){var n=Ar(t.value,2),i=n[0],a=n[1],o=a.savedX,s=a.savedY,u=a.savedPageIndex;h(i,o,s,u)}}catch(t){r.e(t)}finally{r.f()}},mustExec:!0}),!0}},{key:"dragSelectedEditors",value:function(t,e){if(Ir(mn,this)){var r,n=Dr(Ir(mn,this).keys());try{for(n.s();!(r=n.n()).done;)r.value.drag(t,e)}catch(t){n.e(t)}finally{n.f()}}}},{key:"rebuild",value:function(t){if(null===t.parent){var e=this.getLayer(t.pageIndex);e?(e.changeParent(t),e.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}},{key:"isEditorHandlingKeyboard",get:function(){var t;return(null===(t=this.getActive())||void 0===t?void 0:t.shouldGetKeyboardEvents())||1===Ir(Nn,this).size&&this.firstSelectedEditor.shouldGetKeyboardEvents()}},{key:"isActive",value:function(t){return Ir(un,this)===t}},{key:"getActive",value:function(){return Ir(un,this)}},{key:"getMode",value:function(){return Ir(Dn,this)}},{key:"imageManager",get:function(){return W(this,"imageManager",new Yr)}},{key:"getSelectionBoxes",value:function(t){if(!t)return null;for(var e=document.getSelection(),r=0,n=e.rangeCount;r0&&void 0!==arguments[0]?arguments[0]:"";Ir(Dn,this)===A.HIGHLIGHT?this.highlightSelection(t):Ir(kn,this)&&Fr(Xn,this,$n).call(this)}function ei(){document.addEventListener("selectionchange",Fr(Xn,this,Zn).bind(this),{signal:this._signal})}function ri(){if(!Ir(Sn,this)){Rr(Sn,this,new AbortController);var t=this.combinedSignal(Ir(Sn,this));window.addEventListener("focus",this.focus.bind(this),{signal:t}),window.addEventListener("blur",this.blur.bind(this),{signal:t})}}function ni(){var t;null===(t=Ir(Sn,this))||void 0===t||t.abort(),Rr(Sn,this,null)}function ii(){if(!Ir(jn,this)){Rr(jn,this,new AbortController);var t=this.combinedSignal(Ir(jn,this));window.addEventListener("keydown",this.keydown.bind(this),{signal:t}),window.addEventListener("keyup",this.keyup.bind(this),{signal:t})}}function ai(){var t;null===(t=Ir(jn,this))||void 0===t||t.abort(),Rr(jn,this,null)}function oi(){if(!Ir(pn,this)){Rr(pn,this,new AbortController);var t=this.combinedSignal(Ir(pn,this));document.addEventListener("copy",this.copy.bind(this),{signal:t}),document.addEventListener("cut",this.cut.bind(this),{signal:t}),document.addEventListener("paste",this.paste.bind(this),{signal:t})}}function si(){var t;null===(t=Ir(pn,this))||void 0===t||t.abort(),Rr(pn,this,null)}function ui(){var t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})}function ci(t){var e=this;Object.entries(t).some((function(t){var r=Ar(t,2),n=r[0],i=r[1];return Ir(Hn,e)[n]!==i}))&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(Ir(Hn,this),t)}),Ir(Dn,this)===A.HIGHLIGHT&&!1===t.hasSelectedEditor&&Fr(Xn,this,li).call(this,[[_.HIGHLIGHT_FREE,!0]]))}function li(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})}function hi(){return fi.apply(this,arguments)}function fi(){return(fi=Sr(_r().mark((function t(){var e,r,n,i,a,o;return _r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ir(Mn,this)){t.next=9;break}Rr(Mn,this,!0),e=[],r=Dr(Ir(ln,this).values());try{for(r.s();!(n=r.n()).done;)i=n.value,e.push(i.enable())}catch(t){r.e(t)}finally{r.f()}return t.next=7,Promise.all(e);case 7:a=Dr(Ir(cn,this).values());try{for(a.s();!(o=a.n()).done;)o.value.enable()}catch(t){a.e(t)}finally{a.f()}case 9:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function di(){if(this.unselectAll(),Ir(Mn,this)){Rr(Mn,this,!1);var t,e=Dr(Ir(ln,this).values());try{for(e.s();!(t=e.n()).done;)t.value.disable()}catch(t){e.e(t)}finally{e.f()}var r,n=Dr(Ir(cn,this).values());try{for(n.s();!(r=n.n()).done;)r.value.disable()}catch(t){n.e(t)}finally{n.f()}}}function vi(t){var e=Ir(ln,this).get(t.pageIndex);e?e.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))}function pi(){if(0===Ir(cn,this).size)return!0;if(1===Ir(cn,this).size){var t,e=Dr(Ir(cn,this).values());try{for(e.s();!(t=e.n()).done;)return t.value.isEmpty()}catch(t){e.e(t)}finally{e.f()}}return!1}function yi(t){var e,r=Dr(Ir(Nn,this));try{for(r.s();!(e=r.n()).done;)e.value.unselect()}catch(t){r.e(t)}finally{r.f()}Ir(Nn,this).clear();var n,i=Dr(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.isEmpty()||(Ir(Nn,this).add(a),a.select())}}catch(t){i.e(t)}finally{i.f()}Fr(Xn,this,ci).call(this,{hasSelectedEditor:this.hasSelection})}function gi(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return mi(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function mi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function wi(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function ki(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){wi(a,n,i,o,s,"next",t)}function s(t){wi(a,n,i,o,s,"throw",t)}o(void 0)}))}}function xi(t,e){for(var r=0;r0&&void 0!==arguments[0]&&arguments[0];if(!Oi(Bi,this)||Oi(Li,this))return null===(t=Oi(Fi,this))||void 0===t||t.remove(),void Ti(Fi,this,null);if(!Oi(Fi,this)){var r=Ti(Fi,this,document.createElement("div"));r.className="noAltTextBadge",Oi(Di,this).div.append(r)}Oi(Fi,this).classList.toggle("hidden",!e)}},{key:"serialize",value:function(t){var e=Oi(Li,this);return t||Oi(Ni,this)!==e||(e=Oi(Wi,this)),{altText:e,decorative:Oi(Mi,this),guessedText:Oi(Ni,this),textWithDisclaimer:Oi(Wi,this)}}},{key:"data",get:function(){return{altText:Oi(Li,this),decorative:Oi(Mi,this)}},set:function(t){var e=t.altText,r=t.decorative,n=t.guessedText,i=t.textWithDisclaimer,a=t.cancel,o=void 0!==a&&a;n&&(Ti(Ni,this,n),Ti(Wi,this,i)),Oi(Li,this)===e&&Oi(Mi,this)===r||(o||(Ti(Li,this,e),Ti(Mi,this,r)),Pi(Gi,this,zi).call(this))}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Oi(Ci,this)&&(!t&&Oi(Ii,this)&&(clearTimeout(Oi(Ii,this)),Ti(Ii,this,null)),Oi(Ci,this).disabled=!t)}},{key:"shown",value:function(){Oi(Di,this)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:Si(Gi,this,Ui)}})}},{key:"destroy",value:function(){var t,e;null===(t=Oi(Ci,this))||void 0===t||t.remove(),Ti(Ci,this,null),Ti(ji,this,null),null===(e=Oi(Fi,this))||void 0===e||e.remove(),Ti(Fi,this,null)}}],n=[{key:"initialize",value:function(e){t._l10nPromise||(t._l10nPromise=e)}}],r&&xi(e.prototype,r),n&&xi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n,i}();function Ui(t){return(Oi(Li,t)?"added":null===Oi(Li,t)&&t.guessedText&&"review")||"missing"}function zi(){return Vi.apply(this,arguments)}function Vi(){return(Vi=ki(bi().mark((function t(){var e,r,n,i,a,o,s=this;return bi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=Oi(Ci,this)){t.next=3;break}return t.abrupt("return");case 3:if(!Oi(Bi,this)){t.next=11;break}if(e.classList.toggle("done",!!Oi(Li,this)),on._l10nPromise.get(Ki._[Si(Gi,this,Ui)]).then((function(t){e.setAttribute("aria-label",t);var r,n=gi(e.childNodes);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(i.nodeType===Node.TEXT_NODE){i.textContent=t;break}}}catch(t){n.e(t)}finally{n.f()}})),Oi(Li,this)){t.next=9;break}return null===(r=Oi(ji,this))||void 0===r||r.remove(),t.abrupt("return");case 9:t.next=17;break;case 11:if(Oi(Li,this)||Oi(Mi,this)){t.next=15;break}return e.classList.remove("done"),null===(n=Oi(ji,this))||void 0===n||n.remove(),t.abrupt("return");case 15:e.classList.add("done"),on._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then((function(t){e.setAttribute("aria-label",t)}));case 17:if((i=Oi(ji,this))||(Ti(ji,this,i=document.createElement("span")),i.className="tooltip",i.setAttribute("role","tooltip"),i.id="alt-text-tooltip-".concat(Oi(Di,this).id),(a=Oi(Di,this)._uiManager._signal).addEventListener("abort",(function(){clearTimeout(Oi(Ii,s)),Ti(Ii,s,null)}),{once:!0}),e.addEventListener("mouseenter",(function(){Ti(Ii,s,setTimeout((function(){Ti(Ii,s,null),Oi(ji,s).classList.add("show"),Oi(Di,s)._reportTelemetry({action:"alt_text_tooltip"})}),100))}),{signal:a}),e.addEventListener("mouseleave",(function(){var t;Oi(Ii,s)&&(clearTimeout(Oi(Ii,s)),Ti(Ii,s,null)),null===(t=Oi(ji,s))||void 0===t||t.classList.remove("show")}),{signal:a})),!Oi(Mi,this)){t.next=25;break}return t.next=22,on._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip");case 22:t.t0=t.sent,t.next=26;break;case 25:t.t0=Oi(Li,this);case 26:i.innerText=t.t0,i.parentNode||e.append(i),null==(o=Oi(Di,this).getImageForAltText())||o.setAttribute("aria-describedby",i.id);case 30:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}on=Hi;var qi,Yi,Xi,Ki={_:null};function Qi(t,e,r){return e=$i(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ji()?Reflect.construct(e,r||[],$i(t).constructor):e.apply(t,r))}function Ji(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ji=function(){return!!t})()}function $i(t){return $i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$i(t)}function Zi(t,e){return Zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zi(t,e)}function ta(t){return function(t){if(Array.isArray(t))return sa(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||oa(t)||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 ea(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=oa(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function ra(){ra=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function na(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function ia(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){na(a,n,i,o,s,"next",t)}function s(t){na(a,n,i,o,s,"throw",t)}o(void 0)}))}}function aa(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||oa(t,e)||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 oa(t,e){if(t){if("string"==typeof t)return sa(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sa(t,e):void 0}}function sa(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1||this.y<0||this.y>1)){var a=this.div.getBoundingClientRect(),o=a.x,s=a.y;this.parent.findNewParent(this,o,s)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}var u=this.x,c=this.y,l=aa(this.getBaseTranslation(),2);u+=l[0],c+=l[1],this.div.style.left="".concat((100*u).toFixed(2),"%"),this.div.style.top="".concat((100*c).toFixed(2),"%"),this.div.scrollIntoView({block:"nearest"})}},{key:"_hasBeenMoved",get:function(){return!!ya(Ta,this)&&(ya(Ta,this)[0]!==this.x||ya(Ta,this)[1]!==this.y)}},{key:"getBaseTranslation",value:function(){var e=aa(this.parentDimensions,2),r=e[0],n=e[1],i=t._borderLineWidth,a=i/r,o=i/n;switch(this.rotation){case 90:return[-a,o];case 180:return[a,o];case 270:return[a,-o];default:return[-a,-o]}}},{key:"_mustFixPosition",get:function(){return!0}},{key:"fixAndSetPosition",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.rotation,e=aa(this.pageDimensions,2),r=e[0],n=e[1],i=this.x,a=this.y,o=this.width,s=this.height;if(o*=r,s*=n,i*=r,a*=n,this._mustFixPosition)switch(t){case 0:i=Math.max(0,Math.min(r-o,i)),a=Math.max(0,Math.min(n-s,a));break;case 90:i=Math.max(0,Math.min(r-s,i)),a=Math.min(n,Math.max(o,a));break;case 180:i=Math.min(r,Math.max(o,i)),a=Math.min(n,Math.max(s,a));break;case 270:i=Math.min(r,Math.max(s,i)),a=Math.max(0,Math.min(n-o,a))}this.x=i/=r,this.y=a/=n;var u=aa(this.getBaseTranslation(),2);i+=u[0],a+=u[1];var c=this.div.style;c.left="".concat((100*i).toFixed(2),"%"),c.top="".concat((100*a).toFixed(2),"%"),this.moveInDOM()}},{key:"screenToPageTranslation",value:function(e,r){return Ga.call(t,e,r,this.parentRotation)}},{key:"pageTranslationToScreen",value:function(e,r){return Ga.call(t,e,r,360-this.parentRotation)}},{key:"parentScale",get:function(){return this._uiManager.viewParameters.realScale}},{key:"parentRotation",get:function(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}},{key:"parentDimensions",get:function(){var t=this.parentScale,e=aa(this.pageDimensions,2);return[e[0]*t,e[1]*t]}},{key:"setDims",value:function(t,e){var r=aa(this.parentDimensions,2),n=r[0],i=r[1];this.div.style.width="".concat((100*t/n).toFixed(2),"%"),ya(xa,this)||(this.div.style.height="".concat((100*e/i).toFixed(2),"%"))}},{key:"fixDims",value:function(){var t=this.div.style,e=t.height,r=t.width,n=r.endsWith("%"),i=!ya(xa,this)&&e.endsWith("%");if(!n||!i){var a=aa(this.parentDimensions,2),o=a[0],s=a[1];n||(t.width="".concat((100*parseFloat(r)/o).toFixed(2),"%")),ya(xa,this)||i||(t.height="".concat((100*parseFloat(e)/s).toFixed(2),"%"))}}},{key:"getInitialTranslation",value:function(){return[0,0]}},{key:"altTextFinish",value:function(){var t;null===(t=ya(wa,this))||void 0===t||t.finish()}},{key:"addEditToolbar",value:(i=ia(ra().mark((function t(){return ra().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._editToolbar&&!ya(La,this)){t.next=2;break}return t.abrupt("return",this._editToolbar);case 2:if(this._editToolbar=new ir(this),this.div.append(this._editToolbar.render()),!ya(wa,this)){t.next=7;break}return t.next=7,this._editToolbar.addAltText(ya(wa,this));case 7:return t.abrupt("return",this._editToolbar);case 8:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"removeEditToolbar",value:function(){var t;this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,null===(t=ya(wa,this))||void 0===t||t.destroy())}},{key:"addContainer",value:function(t){var e,r=null===(e=this._editToolbar)||void 0===e?void 0:e.div;r?r.before(t):this.div.append(t)}},{key:"getClientDimensions",value:function(){return this.div.getBoundingClientRect()}},{key:"addAltTextButton",value:(n=ia(ra().mark((function e(){return ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ya(wa,this)){e.next=2;break}return e.abrupt("return");case 2:return Hi.initialize(t._l10nPromise),pa(wa,this,new Hi(this)),ya(ma,this)&&(ya(wa,this).data=ya(ma,this),pa(ma,this,null)),e.next=7,this.addEditToolbar();case 7:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"altTextData",get:function(){var t;return null===(t=ya(wa,this))||void 0===t?void 0:t.data},set:function(t){ya(wa,this)&&(ya(wa,this).data=t)}},{key:"guessedAltText",get:function(){var t;return null===(t=ya(wa,this))||void 0===t?void 0:t.guessedText}},{key:"setGuessedAltText",value:(r=ia(ra().mark((function t(e){var r;return ra().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===(r=ya(wa,this))||void 0===r?void 0:r.setGuessedText(e);case 2:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"serializeAltText",value:function(t){var e;return null===(e=ya(wa,this))||void 0===e?void 0:e.serialize(t)}},{key:"hasAltText",value:function(){return!!ya(wa,this)&&!ya(wa,this).isEmpty()}},{key:"hasAltTextData",value:function(){var t,e;return null!==(t=null===(e=ya(wa,this))||void 0===e?void 0:e.hasData())&&void 0!==t&&t}},{key:"render",value:function(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=ya(ka,this)?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),ga(Na,this,Ka).call(this);var t=aa(this.parentDimensions,2),e=t[0],r=t[1];this.parentRotation%180!=0&&(this.div.style.maxWidth="".concat((100*r/e).toFixed(2),"%"),this.div.style.maxHeight="".concat((100*e/r).toFixed(2),"%"));var n=aa(this.getInitialTranslation(),2),i=n[0],a=n[1];return this.translate(i,a),Br(this,this.div,["pointerdown"]),this.div}},{key:"pointerdown",value:function(t){var e=J.platform.isMac;0!==t.button||t.ctrlKey&&e?t.preventDefault():(pa(Oa,this,!0),this._isDraggable?ga(Na,this,Xa).call(this,t):ga(Na,this,Ya).call(this,t))}},{key:"isSelected",get:function(){return this._uiManager.isSelected(this)}},{key:"moveInDOM",value:function(){var t=this;ya(Ca,this)&&clearTimeout(ya(Ca,this)),pa(Ca,this,setTimeout((function(){var e;pa(Ca,t,null),null===(e=t.parent)||void 0===e||e.moveEditorInDOM(t)}),0))}},{key:"_setParentAndPosition",value:function(t,e,r){t.changeParent(this),this.x=e,this.y=r,this.fixAndSetPosition()}},{key:"getRect",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.rotation,n=this.parentScale,i=aa(this.pageDimensions,2),a=i[0],o=i[1],s=aa(this.pageTranslation,2),u=s[0],c=s[1],l=t/n,h=e/n,f=this.x*a,d=this.y*o,v=this.width*a,p=this.height*o;switch(r){case 0:return[f+l+u,o-d-h-p+c,f+l+v+u,o-d-h+c];case 90:return[f+h+u,o-d+l+c,f+h+p+u,o-d+l+v+c];case 180:return[f-l-v+u,o-d+h+c,f-l+u,o-d+h+p+c];case 270:return[f-h-p+u,o-d-l-v+c,f-h+u,o-d-l+c];default:throw new Error("Invalid rotation")}}},{key:"getRectInCurrentCoords",value:function(t,e){var r=aa(t,4),n=r[0],i=r[1],a=r[2],o=r[3],s=a-n,u=o-i;switch(this.rotation){case 0:return[n,e-o,s,u];case 90:return[n,e-i,u,s];case 180:return[a,e-i,s,u];case 270:return[a,e-o,u,s];default:throw new Error("Invalid rotation")}}},{key:"onceAdded",value:function(){}},{key:"isEmpty",value:function(){return!1}},{key:"enableEditMode",value:function(){pa(La,this,!0)}},{key:"disableEditMode",value:function(){pa(La,this,!1)}},{key:"isInEditMode",value:function(){return ya(La,this)}},{key:"shouldGetKeyboardEvents",value:function(){return ya(Ma,this)}},{key:"needsToBeRebuilt",value:function(){return this.div&&!this.isAttachedToDOM}},{key:"rebuild",value:function(){ga(Na,this,Ka).call(this)}},{key:"rotate",value:function(t){}},{key:"serializeDeleted",value:function(){var t;return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:(null===(t=this._initialData)||void 0===t?void 0:t.popupRef)||""}}},{key:"serialize",value:function(){F("An editor must be serializable")}},{key:"hasBeenModified",get:function(){return!!this.annotationElementId&&(this.deleted||null!==this.serialize())}},{key:"remove",value:function(){var t;if(null===(t=ya(Ea,this))||void 0===t||t.abort(),pa(Ea,this,null),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),ya(Ca,this)&&(clearTimeout(ya(Ca,this)),pa(Ca,this,null)),ga(Na,this,to).call(this),this.removeEditToolbar(),ya(Ra,this)){var e,r=ea(ya(Ra,this).values());try{for(r.s();!(e=r.n()).done;){var n=e.value;clearTimeout(n)}}catch(t){r.e(t)}finally{r.f()}pa(Ra,this,null)}this.parent=null}},{key:"isResizable",get:function(){return!1}},{key:"makeResizable",value:function(){this.isResizable&&(ga(Na,this,Ua).call(this),ya(Aa,this).classList.remove("hidden"),Br(this,this.div,["keydown"]))}},{key:"toolbarPosition",get:function(){return null}},{key:"keydown",value:function(e){if(this.isResizable&&e.target===this.div&&"Enter"===e.key){this._uiManager.setSelected(this),pa(_a,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});var r=ya(Aa,this).children;if(!ya(ba,this)){pa(ba,this,Array.from(r));var n,i=ga(Na,this,Qa).bind(this),a=ga(Na,this,Ja).bind(this),o=this._uiManager._signal,s=ea(ya(ba,this));try{for(s.s();!(n=s.n()).done;){var u=n.value,c=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",i,{signal:o}),u.addEventListener("blur",a,{signal:o}),u.addEventListener("focus",ga(Na,this,$a).bind(this,c),{signal:o}),u.setAttribute("data-l10n-id",t._l10nResizer[c])}}catch(t){s.e(t)}finally{s.f()}}var l,h=ya(ba,this)[0],f=0,d=ea(r);try{for(d.s();!(l=d.n()).done&&l.value!==h;)f++}catch(t){d.e(t)}finally{d.f()}var v=(360-this.rotation+this.parentRotation)%360/90*(ya(ba,this).length/4);if(v!==f){if(vf)for(var y=0;y1&&void 0!==arguments[1]&&arguments[1]){ya(Ra,this)||pa(Ra,this,new Map);var n=e.action,i=ya(Ra,this).get(n);return i&&clearTimeout(i),i=setTimeout((function(){r._reportTelemetry(e),ya(Ra,r).delete(n),0===ya(Ra,r).size&&pa(Ra,r,null)}),t._telemetryTimeout),void ya(Ra,this).set(n,i)}e.type||(e.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}},{key:"show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible;this.div.classList.toggle("hidden",!t),this._isVisible=t}},{key:"enable",value:function(){this.div&&(this.div.tabIndex=0),pa(ka,this,!1)}},{key:"disable",value:function(){this.div&&(this.div.tabIndex=-1),pa(ka,this,!0)}},{key:"renderAnnotationElement",value:function(t){var e=t.container.querySelector(".annotationContent");if(e){if("CANVAS"===e.nodeName){var r=e;(e=document.createElement("div")).classList.add("annotationContent",this.editorType),r.before(e)}}else(e=document.createElement("div")).classList.add("annotationContent",this.editorType),t.container.prepend(e);return e}},{key:"resetAnnotationElement",value:function(t){var e=t.container.firstChild;"DIV"===(null==e?void 0:e.nodeName)&&e.classList.contains("annotationContent")&&e.remove()}}],[{key:"_resizerKeyboardManager",get:function(){var e=t.prototype._resizeWithKeyboard,r=Kn.TRANSLATE_SMALL,n=Kn.TRANSLATE_BIG;return W(this,"_resizerKeyboardManager",new rn([[["ArrowLeft","mac+ArrowLeft"],e,{args:[-r,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],e,{args:[r,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],e,{args:[0,-r]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],e,{args:[0,r]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,n]}],[["Escape","mac+Escape"],t.prototype._stopResizingWithKeyboard]]))}},{key:"_defaultLineColor",get:function(){return W(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}},{key:"deleteAnnotationElement",value:function(t){var e=new eo({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});e.annotationElementId=t.annotationElementId,e.deleted=!0,e._uiManager.addToAnnotationStorage(e)}},{key:"initialize",value:function(e,r,n){if(t._l10nResizer||(t._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"})),t._l10nPromise||(t._l10nPromise=new Map([].concat(ta(["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-new-alt-text-added-button-label","pdfjs-editor-new-alt-text-missing-button-label","pdfjs-editor-new-alt-text-to-review-button-label"].map((function(t){return[t,e.get(t)]}))),ta(["pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer"].map((function(t){return[t,e.get.bind(e,t)]})))))),null!=n&&n.strings){var i,a=ea(n.strings);try{for(a.s();!(i=a.n()).done;){var o=i.value;t._l10nPromise.set(o,e.get(o))}}catch(t){a.e(t)}finally{a.f()}}if(-1===t._borderLineWidth){var s=getComputedStyle(document.documentElement);t._borderLineWidth=parseFloat(s.getPropertyValue("--outline-width"))||0}}},{key:"updateDefaultParams",value:function(t,e){}},{key:"defaultPropertiesToUpdate",get:function(){return[]}},{key:"isHandlingMimeForPasting",value:function(t){return!1}},{key:"paste",value:function(t,e){F("Not implemented")}},{key:"deserialize",value:(e=ia(ra().mark((function t(e,r,n){var i,a,o,s,u,c,l,h,f,d;return ra().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=new this.prototype.constructor({parent:r,id:r.getNextId(),uiManager:n})).rotation=e.rotation,pa(ma,i,e.accessibilityData),a=aa(i.pageDimensions,2),o=a[0],s=a[1],u=i.getRectInCurrentCoords(e.rect,s),c=aa(u,4),l=c[0],h=c[1],f=c[2],d=c[3],i.x=l/o,i.y=h/s,i.width=f/o,i.height=d/s,t.abrupt("return",i);case 10:case"end":return t.stop()}}),t,this)}))),function(t,r,n){return e.apply(this,arguments)})},{key:"MIN_SIZE",get:function(){return 16}},{key:"canCreateNewEmptyEditor",value:function(){return!0}}]);var e,r,n,i}();function Ba(t,e,r){var n=aa(t,2),i=n[0],a=n[1],o=aa(this.screenToPageTranslation(e,r),2);e=o[0],r=o[1],this.x+=e/i,this.y+=r/a,this.fixAndSetPosition()}function Ga(t,e,r){switch(r){case 90:return[e,-t];case 180:return[-t,-e];case 270:return[-e,t];default:return[t,e]}}function Ha(t){switch(t){case 90:var e=aa(this.pageDimensions,2),r=e[0],n=e[1];return[0,-r/n,n/r,0];case 180:return[-1,0,0,-1];case 270:var i=aa(this.pageDimensions,2),a=i[0],o=i[1];return[0,a/o,-o/a,0];default:return[1,0,0,1]}}function Ua(){if(!ya(Aa,this)){pa(Aa,this,document.createElement("div")),ya(Aa,this).classList.add("resizers");for(var t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],e=this._uiManager._signal,r=0,n=t;r>>8,e[r++]=255&a)}}else{if(!ArrayBuffer.isView(t))throw new Error("Invalid data format, must be a string or TypedArray.");r=(e=t.slice()).byteLength}for(var o=r>>2,s=r-4*o,u=new Uint32Array(e.buffer,0,o),c=0,l=0,h=this.h1,f=this.h2,d=3432918353,v=461845907,p=11601,y=13715,g=0;g>>17)*v&ao|c*y&oo)<<13|h>>>19)+3864292196:f=5*(f=(f^=l=(l=(l=(l=u[g])*d&ao|l*p&oo)<<15|l>>>17)*v&ao|l*y&oo)<<13|f>>>19)+3864292196;switch(c=0,s){case 3:c^=e[4*o+2]<<16;case 2:c^=e[4*o+1]<<8;case 1:c=(c=(c=(c^=e[4*o])*d&ao|c*p&oo)<<15|c>>>17)*v&ao|c*y&oo,1&o?h^=c:f^=c}this.h1=h,this.h2=f}},{key:"hexdigest",value:function(){var t=this.h1,e=this.h2;return t=3981806797*(t^=e>>>1)&ao|36045*t&oo,t=444984403*(t^=(e=4283543511*e&ao|(2950163797*(e<<16|t>>>16)&ao)>>>16)>>>1)&ao|60499*t&oo,((t^=(e=3301882366*e&ao|(3120437893*(e<<16|t>>>16)&ao)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}}])}();function uo(t,e,r){return e=lo(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,co()?Reflect.construct(e,r||[],lo(t).constructor):e.apply(t,r))}function co(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(co=function(){return!!t})()}function lo(t){return lo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lo(t)}function ho(t,e){return ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ho(t,e)}function fo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||po(t,e)||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 vo(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=po(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function po(t,e){if(t){if("string"==typeof t)return yo(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yo(t,e):void 0}}function yo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0?Q(_o(Po,this)):null}},{key:"setAll",value:function(t){for(var e=0,r=Object.entries(t);e0?{map:e,hash:r.hexdigest(),transfer:n}:So}},{key:"editorStats",get:function(){var t,e=null,r=new Map,n=vo(_o(Po,this).values());try{for(n.s();!(t=n.n()).done;){var i,a=t.value;if(a instanceof Wa){var o=a.telemetryFinalData;if(o){var s=o.type;r.has(s)||r.set(s,Object.getPrototypeOf(a).constructor),e||(e=Object.create(null));for(var u=(i=e)[s]||(i[s]=new Map),c=0,l=Object.entries(o);c=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Do(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function No(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Do(a,n,i,o,s,"next",t)}function s(t){Do(a,n,i,o,s,"throw",t)}o(void 0)}))}}function Wo(t,e){if(t){if("string"==typeof t)return Bo(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bo(t,e):void 0}}function Bo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(this.nativeFontFaces);try{for(e.s();!(t=e.n()).done;){var r=t.value;this._document.fonts.delete(r)}}catch(t){e.e(t)}finally{e.f()}this.nativeFontFaces.clear(),Vo(qo,this).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"loadSystemFont",value:(e=No(Fo().mark((function t(e){var r,n,i,a,o,s;return Fo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.systemFontInfo,n=e._inspectFont,r&&!Vo(qo,this).has(r.loadedName)){t.next=3;break}return t.abrupt("return");case 3:if(D(!this.disableFontFace,"loadSystemFont shouldn't be called when \`disableFontFace\` is set."),!this.isFontLoadingAPISupported){t.next=20;break}return i=r.loadedName,a=r.src,o=r.style,s=new FontFace(i,a,o),this.addNativeFontFace(s),t.prev=8,t.next=11,s.load();case 11:Vo(qo,this).add(i),null==n||n(r),t.next=19;break;case 15:t.prev=15,t.t0=t.catch(8),R("Cannot load system font: ".concat(r.baseFontName,", installing it could help to improve PDF rendering.")),this.removeNativeFontFace(s);case 19:return t.abrupt("return");case 20:F("Not implemented: loadSystemFont without the Font Loading API.");case 21:case"end":return t.stop()}}),t,this,[[8,15]])}))),function(t){return e.apply(this,arguments)})},{key:"bind",value:(t=No(Fo().mark((function t(e){var r,n,i=this;return Fo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.attached||e.missingFile&&!e.systemFontInfo)){t.next=2;break}return t.abrupt("return");case 2:if(e.attached=!0,!e.systemFontInfo){t.next=7;break}return t.next=6,this.loadSystemFont(e);case 6:case 21:return t.abrupt("return");case 7:if(!this.isFontLoadingAPISupported){t.next=22;break}if(!(r=e.createNativeFontFace())){t.next=21;break}return this.addNativeFontFace(r),t.prev=11,t.next=14,r.loaded;case 14:t.next=21;break;case 16:throw t.prev=16,t.t0=t.catch(11),R("Failed to load font '".concat(r.family,"': '").concat(t.t0,"'.")),e.disableFontFace=!0,t.t0;case 22:if(!(n=e.createFontFaceRule())){t.next=29;break}if(this.insertRule(n),!this.isSyncFontLoadingSupported){t.next=27;break}return t.abrupt("return");case 27:return t.next=29,new Promise((function(t){var r=i._queueLoadingCallback(t);i._prepareFontLoadEvent(e,r)}));case 29:case"end":return t.stop()}}),t,this,[[11,16]])}))),function(e){return t.apply(this,arguments)})},{key:"isFontLoadingAPISupported",get:function(){var t;return W(this,"isFontLoadingAPISupported",!(null===(t=this._document)||void 0===t||!t.fonts))}},{key:"isSyncFontLoadingSupported",get:function(){var t,e=!1;return(m||"undefined"!=typeof navigator&&"string"==typeof(null===(t=navigator)||void 0===t?void 0:t.userAgent)&&/Mozilla\\/5.0.*?rv:\\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),W(this,"isSyncFontLoadingSupported",e)}},{key:"_queueLoadingCallback",value:function(t){var e=this.loadingRequests,r={done:!1,complete:function(){for(D(!r.done,"completeRequest() cannot be called twice."),r.done=!0;e.length>0&&e[0].done;){var t=e.shift();setTimeout(t.callback,0)}},callback:t};return e.push(r),r}},{key:"_loadTestFont",get:function(){return W(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}},{key:"_prepareFontLoadEvent",value:function(t,e){function r(t,e){return t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}function n(t,e,r,n){return t.substring(0,e)+n+t.substring(e+r)}var i,a,o=this._document.createElement("canvas");o.width=1,o.height=1;var s,u=o.getContext("2d"),c=0,l="lt".concat(Date.now()).concat(this.loadTestFontId++),h=this._loadTestFont,f=1482184792,d=r(h=n(h,976,l.length,l),16);for(i=0,a=l.length-3;i>24&255,s>>16&255,s>>8&255,255&s)));var v="url(data:font/opentype;base64,".concat(btoa(h),");"),p='@font-face {font-family:"'.concat(l,'";src:').concat(v,"}");this.insertRule(p);var y=this._document.createElement("div");y.style.visibility="hidden",y.style.width=y.style.height="10px",y.style.position="absolute",y.style.top=y.style.left="0px";for(var g=0,m=[t.loadedName,l];g30)return R("Load test font never loaded."),void r();u.font="30px "+e,u.fillText(".",0,20),u.getImageData(0,0,1,1).data[3]>0?r():setTimeout(t.bind(null,e,r))}(l,(function(){y.remove(),e.complete()}))}}]);var t,e}(),Xo=function(){return Uo((function t(e,r){var n=r.disableFontFace,i=void 0!==n&&n,a=r.inspectFont,o=void 0===a?null:a;for(var s in Go(this,t),this.compiledGlyphs=Object.create(null),e)this[s]=e[s];this.disableFontFace=!0===i,this._inspectFont=o}),[{key:"createNativeFontFace",value:function(){var t,e;if(!this.data||this.disableFontFace)return null;if(this.cssFontInfo){var r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),e=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}else e=new FontFace(this.loadedName,this.data,{});return null===(t=this._inspectFont)||void 0===t||t.call(this,this),e}},{key:"createFontFaceRule",value:function(){var t;if(!this.data||this.disableFontFace)return null;var e,r=X(this.data),n="url(data:".concat(this.mimetype,";base64,").concat(btoa(r),");");if(this.cssFontInfo){var i="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(i+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),e='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(i,"src:").concat(n,"}")}else e='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(n,"}");return null===(t=this._inspectFont)||void 0===t||t.call(this,this,n),e}},{key:"getPathGenerator",value:function(t,e){if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];var r;try{r=t.get(this.loadedName+"_path_"+e)}catch(t){R('getPathGenerator - ignoring character: "'.concat(t,'".'))}if(!Array.isArray(r)||0===r.length)return this.compiledGlyphs[e]=function(t,e){};for(var n=[],i=function(t){switch(r[t++]){case 0:var e=Ro(r.slice(t,t+6),6),i=e[0],o=e[1],s=e[2],u=e[3],c=e[4],l=e[5];n.push((function(t){return t.bezierCurveTo(i,o,s,u,c,l)})),t+=6;break;case 1:var h=Ro(r.slice(t,t+2),2),f=h[0],d=h[1];n.push((function(t){return t.moveTo(f,d)})),t+=2;break;case 2:var v=Ro(r.slice(t,t+2),2),p=v[0],y=v[1];n.push((function(t){return t.lineTo(p,y)})),t+=2;break;case 3:var g=Ro(r.slice(t,t+4),4),m=g[0],b=g[1],w=g[2],k=g[3];n.push((function(t){return t.quadraticCurveTo(m,b,w,k)})),t+=4;break;case 4:n.push((function(t){return t.restore()}));break;case 5:n.push((function(t){return t.save()}));break;case 6:D(2===n.length,"Scale command is only valid at the third position.");break;case 7:var x=Ro(r.slice(t,t+6),6),A=x[0],_=x[1],E=x[2],S=x[3],O=x[4],T=x[5];n.push((function(t){return t.transform(A,_,E,S,O,T)})),t+=6;break;case 8:var P=Ro(r.slice(t,t+2),2),L=P[0],M=P[1];n.push((function(t){return t.translate(L,M)})),t+=2}a=t},a=0,o=r.length;a=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function as(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}if(m){var os=Promise.withResolvers(),ss=null,us=function(){var t,e=(t=is().mark((function t(){var e,r,n,i,a,o;return is().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,import("fs");case 2:return e=t.sent,t.next=5,import("http");case 5:return r=t.sent,t.next=8,import("https");case 8:return n=t.sent,t.next=11,import("url");case 11:return i=t.sent,t.prev=12,t.next=15,import("canvas");case 15:a=t.sent,t.next=20;break;case 18:t.prev=18,t.t0=t.catch(12);case 20:return t.prev=20,t.next=23,import("path2d");case 23:o=t.sent,t.next=28;break;case 26:t.prev=26,t.t1=t.catch(20);case 28:return t.abrupt("return",new Map(Object.entries({fs:e,http:r,https:n,url:i,canvas:a,path2d:o})));case 29:case"end":return t.stop()}}),t,null,[[12,18],[20,26]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){as(a,n,i,o,s,"next",t)}function s(t){as(a,n,i,o,s,"throw",t)}o(void 0)}))});return function(){return e.apply(this,arguments)}}();us().then((function(t){if(ss=t,os.resolve(),!globalThis.DOMMatrix){var e,r=null===(e=t.get("canvas"))||void 0===e?void 0:e.DOMMatrix;r?globalThis.DOMMatrix=r:R("Cannot polyfill \`DOMMatrix\`, rendering may be broken.")}if(!globalThis.Path2D){var n,i,a,o=null===(n=t.get("canvas"))||void 0===n?void 0:n.CanvasRenderingContext2D,s=null===(i=t.get("path2d"))||void 0===i?void 0:i.applyPath2DToCanvasRenderingContext,u=null===(a=t.get("path2d"))||void 0===a?void 0:a.Path2D;o&&s&&u?(s(o),globalThis.Path2D=u):R("Cannot polyfill \`Path2D\`, rendering may be broken.")}}),(function(t){R("loadPackages: ".concat(t)),ss=new Map,os.resolve()}))}var cs=function(){return rs((function t(){ts(this,t)}),null,[{key:"promise",get:function(){return os.promise}},{key:"get",value:function(t){var e;return null===(e=ss)||void 0===e?void 0:e.get(t)}}])}(),ls=function(t){return cs.get("fs").promises.readFile(t).then((function(t){return new Uint8Array(t)}))},hs=function(t){function e(){return ts(this,e),Ko(this,e,arguments)}return $o(e,pt),rs(e)}(),fs=function(t){function e(){return ts(this,e),Ko(this,e,arguments)}return $o(e,gt),rs(e,[{key:"_createCanvas",value:function(t,e){return cs.get("canvas").createCanvas(t,e)}}])}(),ds=function(t){function e(){return ts(this,e),Ko(this,e,arguments)}return $o(e,mt),rs(e,[{key:"_fetchData",value:function(t,e){return ls(t).then((function(t){return{cMapData:t,compressionType:e}}))}}])}(),vs=function(t){function e(){return ts(this,e),Ko(this,e,arguments)}return $o(e,bt),rs(e,[{key:"_fetchData",value:function(t){return ls(t)}}])}();function ps(t){return function(t){if(Array.isArray(t))return ms(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||gs(t)||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 ys(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=gs(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function gs(t,e){if(t){if("string"==typeof t)return ms(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ms(t,e):void 0}}function ms(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);rc[n+1]&&(u=r,r=n,n=u,u=a,a=o,o=u),c[n+1]>c[i+1]&&(u=n,n=i,i=u,u=o,o=s,s=u),c[r+1]>c[n+1]&&(u=r,r=n,n=u,u=a,a=o,o=u);var d=(c[r]+e.offsetX)*e.scaleX,v=(c[r+1]+e.offsetY)*e.scaleY,p=(c[n]+e.offsetX)*e.scaleX,y=(c[n+1]+e.offsetY)*e.scaleY,g=(c[i]+e.offsetX)*e.scaleX,m=(c[i+1]+e.offsetY)*e.scaleY;if(!(v>=m))for(var b,w,k,x,A,_,E,S,O=l[a],T=l[a+1],P=l[a+2],L=l[o],M=l[o+1],C=l[o+2],j=l[s],I=l[s+1],R=l[s+2],F=Math.round(v),D=Math.round(m),N=F;N<=D;N++){if(Nm?1:y===m?0:(y-N)/(y-m)),w=L-(L-j)*B,k=M-(M-I)*B,x=C-(C-R)*B}var G=void 0;A=d-(d-g)*(G=Nm?1:(v-N)/(v-m)),_=O-(O-j)*G,E=T-(T-I)*G,S=P-(P-R)*G;for(var H=Math.round(Math.min(b,A)),U=Math.round(Math.max(b,A)),z=f*N+4*H,V=H;V<=U;V++)(G=(b-V)/(b-A))<0?G=0:G>1&&(G=1),h[z++]=w-(w-_)*G|0,h[z++]=k-(k-E)*G|0,h[z++]=x-(x-S)*G|0,h[z++]=255}}function Rs(t,e,r){var n,i,a=e.coords,o=e.colors;switch(e.type){case"lattice":var s=e.verticesPerRow,u=Math.floor(a.length/s)-1,c=s-1;for(n=0;n=Math.ceil(d*g)?b=s:k=!0,_>=Math.ceil(v*m)?w=u:x=!0;var E=this.getSizeAndScale(b,this.ctx.canvas.width,g),S=this.getSizeAndScale(w,this.ctx.canvas.height,m),O=t.cachedCanvases.getCanvas("pattern",E.size,S.size),T=O.context,P=o.createCanvasGraphics(T);if(P.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(P,n,a),T.translate(-E.scale*c,-S.scale*l),P.transform(E.scale,0,0,S.scale,0,0),T.save(),this.clipBbox(P,c,l,h,f),P.baseTransform=je(P.ctx),P.executeOperatorList(r),P.endDrawing(),T.restore(),k||x){var L=O.canvas;k&&(b=s),x&&(w=u);for(var M=this.getSizeAndScale(b,this.ctx.canvas.width,g),C=this.getSizeAndScale(w,this.ctx.canvas.height,m),j=M.size,R=C.size,F=t.cachedCanvases.getCanvas("pattern-workaround",j,R),D=F.context,N=k?Math.floor(d/s):0,W=x?Math.floor(v/u):0,B=0;B<=N;B++)for(var G=0;G<=W;G++)D.drawImage(L,j*B,R*G,j,R,0,0,j,R);return{canvas:F.canvas,scaleX:M.scale,scaleY:C.scale,offsetX:c,offsetY:l}}return{canvas:O.canvas,scaleX:E.scale,scaleY:S.scale,offsetX:c,offsetY:l}}},{key:"getSizeAndScale",value:function(e,r,n){var i=Math.max(t.MAX_PATTERN_SIZE,r),a=Math.ceil(e*n);return a>=i?a=i:n=a/e,{scale:n,size:a}}},{key:"clipBbox",value:function(t,e,r,n,i){var a=n-e,o=i-r;t.ctx.rect(e,r,a,o),t.current.updateRectMinMax(je(t.ctx),[e,r,n,i]),t.clip(),t.endPath()}},{key:"setFillAndStrokeStyleToContext",value:function(t,e,r){var n=t.ctx,i=t.current;switch(e){case 1:var a=this.ctx;n.fillStyle=a.fillStyle,n.strokeStyle=a.strokeStyle,i.fillColor=a.fillStyle,i.strokeColor=a.strokeStyle;break;case 2:var o=Z.makeHexColor(r[0],r[1],r[2]);n.fillStyle=o,n.strokeStyle=o,i.fillColor=o,i.strokeColor=o;break;default:throw new q("Unsupported paint type: ".concat(e))}}},{key:"getPattern",value:function(t,e,r,n){var i=r;n!==Ls&&(i=Z.transform(i,e.baseTransform),this.matrix&&(i=Z.transform(i,this.matrix)));var a=this.createPatternCanvas(e),o=new DOMMatrix(i);o=(o=o.translate(a.offsetX,a.offsetY)).scale(1/a.scaleX,1/a.scaleY);var s=t.createPattern(a.canvas,"repeat");return s.setTransform(o),s}}])}();function Ws(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r>3,y=7&a,g=e.length;i=new Uint32Array(i.buffer);for(var m=0,b=0;b=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function zs(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Vs(t,e)||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 Vs(t,e){if(t){if("string"==typeof t)return qs(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qs(t,e):void 0}}function qs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:Ts,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[this.minX,this.minY,this.maxX,this.maxY];if(t===Ps){e||F("Stroke bounding box must include transform.");var n=Z.singularValueDecompose2dScale(e),i=n[0]*this.lineWidth/2,a=n[1]*this.lineWidth/2;r[0]-=i,r[1]-=a,r[2]+=i,r[3]+=a}return r}},{key:"updateClipFromPath",value:function(){var t=Z.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}},{key:"isEmptyClip",value:function(){return this.minX===1/0}},{key:"startNewPathAndClipBox",value:function(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}},{key:"getClippedPathBoundingBox",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ts,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Z.intersect(this.clipBox,this.getPathBoundingBox(t,e))}}])}();function eu(t,e){if("undefined"!=typeof ImageData&&e instanceof ImageData)t.putImageData(e,0,0);else{var r,n,i,a,o,s=e.height,u=e.width,c=s%Js,l=(s-c)/Js,h=0===c?l:l+1,f=t.createImageData(u,Js),d=0,v=e.data,p=f.data;if(e.kind===S.GRAYSCALE_1BPP){var y=v.byteLength,g=new Uint32Array(p.buffer,0,p.byteLength>>2),m=g.length,b=u+7>>3,w=4294967295,k=J.isLittleEndian?4278190080:255;for(n=0;nb?u:8*x-7,E=-8&_,O=0,T=0;A>=1}for(;r=l&&(o=u*(a=c)),r=0,i=o;i--;)p[r++]=v[d++],p[r++]=v[d++],p[r++]=v[d++],p[r++]=255;t.putImageData(f,0,n*Js)}}}}function ru(t,e){if(e.bitmap)t.drawImage(e.bitmap,0,0);else for(var r=e.height,n=e.width,i=r%Js,a=(r-i)/Js,o=0===i?a:a+1,s=t.createImageData(n,Js),u=0,c=e.data,l=s.data,h=0;h1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof t?t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t):e}},{key:"beginDrawing",value:function(t){var e,r,n=t.transform,i=t.viewport,a=t.transparency,o=void 0!==a&&a,s=t.background,u=void 0===s?null:s,c=this.ctx.canvas.width,l=this.ctx.canvas.height,h=this.ctx.fillStyle;if(this.ctx.fillStyle=u||"#ffffff",this.ctx.fillRect(0,0,c,l),this.ctx.fillStyle=h,o){var f,d=this.cachedCanvases.getCanvas("transparent",c,l);this.compositeCtx=this.ctx,this.transparentCanvas=d.canvas,this.ctx=d.context,this.ctx.save(),(f=this.ctx).transform.apply(f,Gs(je(this.compositeCtx)))}this.ctx.save(),iu(this.ctx),n&&((r=this.ctx).transform.apply(r,Gs(n)),this.outputScaleX=n[0],this.outputScaleY=n[0]),(e=this.ctx).transform.apply(e,Gs(i.transform)),this.viewportScale=i.scale,this.baseTransform=je(this.ctx)}},{key:"executeOperatorList",value:function(t,e,r,n){var i=t.argsArray,a=t.fnArray,o=e||0,s=i.length;if(s===o)return o;for(var u,c=s-o>10&&"function"==typeof r,l=c?Date.now()+15:0,h=0,f=this.commonObjs,d=this.objs;;){if(void 0!==n&&o===n.nextBreakPoint)return n.breakIt(o,r),o;if((u=a[o])!==P.dependency)this[u].apply(this,i[o]);else{var v,p=Us(i[o]);try{for(p.s();!(v=p.n()).done;){var y=v.value,g=y.startsWith("g_")?f:d;if(!g.has(y))return g.get(y,r),o}}catch(t){p.e(t)}finally{p.f()}}if(++o===s)return o;if(c&&++h>10){if(Date.now()>l)return r(),o;h=0}}}},{key:"endDrawing",value:function(){Hs(lu,this,fu).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();var t,e=Us(this._cachedBitmapsMap.values());try{for(e.s();!(t=e.n()).done;){var r,n=t.value,i=Us(n.values());try{for(i.s();!(r=i.n()).done;){var a=r.value;"undefined"!=typeof HTMLCanvasElement&&a instanceof HTMLCanvasElement&&(a.width=a.height=0)}}catch(t){i.e(t)}finally{i.f()}n.clear()}}catch(t){e.e(t)}finally{e.f()}this._cachedBitmapsMap.clear(),Hs(lu,this,du).call(this)}},{key:"_scaleImage",value:function(t,e){for(var r,n,i=t.width,a=t.height,o=Math.max(Math.hypot(e[0],e[1]),1),s=Math.max(Math.hypot(e[2],e[3]),1),u=i,c=a,l="prescale1";o>2&&u>1||s>2&&c>1;){var h=u,f=c;o>2&&u>1&&(o/=u/(h=u>=16384?Math.floor(u/2)-1||1:Math.ceil(u/2))),s>2&&c>1&&(s/=c/(f=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2)),(n=(r=this.cachedCanvases.getCanvas(l,h,f)).context).clearRect(0,0,h,f),n.drawImage(t,0,0,u,c,0,0,h,f),t=r.canvas,u=h,c=f,l="prescale1"===l?"prescale2":"prescale1"}return{img:t,paintWidth:u,paintHeight:c}}},{key:"_createMaskCanvas",value:function(t){var e,r,n,i,a=this.ctx,o=t.width,s=t.height,u=this.current.fillColor,c=this.current.patternFill,l=je(a);if((t.bitmap||t.data)&&t.count>1){var h=t.bitmap||t.data.buffer;r=JSON.stringify(c?l:[l.slice(0,4),u]),(e=this._cachedBitmapsMap.get(h))||(e=new Map,this._cachedBitmapsMap.set(h,e));var f=e.get(r);if(f&&!c)return{canvas:f,offsetX:Math.round(Math.min(l[0],l[2])+l[4]),offsetY:Math.round(Math.min(l[1],l[3])+l[5])};n=f}n||ru((i=this.cachedCanvases.getCanvas("maskCanvas",o,s)).context,t);var d=Z.transform(l,[1/o,0,0,-1/s,0,0]);d=Z.transform(d,[1,0,0,1,0,-s]);var v=zs(Z.getAxialAlignedBoundingBox([0,0,o,s],d),4),p=v[0],y=v[1],g=v[2],m=v[3],b=Math.round(g-p)||1,w=Math.round(m-y)||1,k=this.cachedCanvases.getCanvas("fillCanvas",b,w),x=k.context,A=p,_=y;x.translate(-A,-_),x.transform.apply(x,Gs(d)),n||(n=(n=this._scaleImage(i.canvas,Ie(x))).img,e&&c&&e.set(r,n)),x.imageSmoothingEnabled=au(je(x),t.interpolate),Zs(x,n,0,0,n.width,n.height,0,0,o,s),x.globalCompositeOperation="source-in";var E=Z.transform(Ie(x),[1,0,0,1,-A,-_]);return x.fillStyle=c?u.getPattern(a,this,E,Ts):u,x.fillRect(0,0,o,s),e&&!c&&(this.cachedCanvases.delete("fillCanvas"),e.set(r,k.canvas)),{canvas:k.canvas,offsetX:Math.round(A),offsetY:Math.round(_)}}},{key:"setLineWidth",value:function(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}},{key:"setLineCap",value:function(t){this.ctx.lineCap=ou[t]}},{key:"setLineJoin",value:function(t){this.ctx.lineJoin=su[t]}},{key:"setMiterLimit",value:function(t){this.ctx.miterLimit=t}},{key:"setDash",value:function(t,e){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(t),r.lineDashOffset=e)}},{key:"setRenderingIntent",value:function(t){}},{key:"setFlatness",value:function(t){}},{key:"setGState",value:function(t){var e,r=Us(t);try{for(r.s();!(e=r.n()).done;){var n=zs(e.value,2),i=n[0],a=n[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=a;break;case"ca":this.current.fillAlpha=a,this.ctx.globalAlpha=a;break;case"BM":this.ctx.globalCompositeOperation=a;break;case"SMask":this.current.activeSMask=a?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(a)}}}catch(t){r.e(t)}finally{r.f()}}},{key:"inSMaskMode",get:function(){return!!this.suspendedCtx}},{key:"checkSMaskState",value:function(){var t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}},{key:"beginSMaskMode",value:function(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");var t=this.ctx.canvas.width,e=this.ctx.canvas.height,r="smaskGroupAt"+this.groupLevel,n=this.cachedCanvases.getCanvas(r,t,e);this.suspendedCtx=this.ctx,this.ctx=n.context;var i=this.ctx;i.setTransform.apply(i,Gs(je(this.suspendedCtx))),nu(this.suspendedCtx,i),function(t,e){if(t._removeMirroring)throw new Error("Context is already forwarding operations.");t.__originalSave=t.save,t.__originalRestore=t.restore,t.__originalRotate=t.rotate,t.__originalScale=t.scale,t.__originalTranslate=t.translate,t.__originalTransform=t.transform,t.__originalSetTransform=t.setTransform,t.__originalResetTransform=t.resetTransform,t.__originalClip=t.clip,t.__originalMoveTo=t.moveTo,t.__originalLineTo=t.lineTo,t.__originalBezierCurveTo=t.bezierCurveTo,t.__originalRect=t.rect,t.__originalClosePath=t.closePath,t.__originalBeginPath=t.beginPath,t._removeMirroring=function(){t.save=t.__originalSave,t.restore=t.__originalRestore,t.rotate=t.__originalRotate,t.scale=t.__originalScale,t.translate=t.__originalTranslate,t.transform=t.__originalTransform,t.setTransform=t.__originalSetTransform,t.resetTransform=t.__originalResetTransform,t.clip=t.__originalClip,t.moveTo=t.__originalMoveTo,t.lineTo=t.__originalLineTo,t.bezierCurveTo=t.__originalBezierCurveTo,t.rect=t.__originalRect,t.closePath=t.__originalClosePath,t.beginPath=t.__originalBeginPath,delete t._removeMirroring},t.save=function(){e.save(),this.__originalSave()},t.restore=function(){e.restore(),this.__originalRestore()},t.translate=function(t,r){e.translate(t,r),this.__originalTranslate(t,r)},t.scale=function(t,r){e.scale(t,r),this.__originalScale(t,r)},t.transform=function(t,r,n,i,a,o){e.transform(t,r,n,i,a,o),this.__originalTransform(t,r,n,i,a,o)},t.setTransform=function(t,r,n,i,a,o){e.setTransform(t,r,n,i,a,o),this.__originalSetTransform(t,r,n,i,a,o)},t.resetTransform=function(){e.resetTransform(),this.__originalResetTransform()},t.rotate=function(t){e.rotate(t),this.__originalRotate(t)},t.clip=function(t){e.clip(t),this.__originalClip(t)},t.moveTo=function(t,r){e.moveTo(t,r),this.__originalMoveTo(t,r)},t.lineTo=function(t,r){e.lineTo(t,r),this.__originalLineTo(t,r)},t.bezierCurveTo=function(t,r,n,i,a,o){e.bezierCurveTo(t,r,n,i,a,o),this.__originalBezierCurveTo(t,r,n,i,a,o)},t.rect=function(t,r,n,i){e.rect(t,r,n,i),this.__originalRect(t,r,n,i)},t.closePath=function(){e.closePath(),this.__originalClosePath()},t.beginPath=function(){e.beginPath(),this.__originalBeginPath()}}(i,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}},{key:"endSMaskMode",value:function(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),nu(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}},{key:"compose",value:function(t){if(this.current.activeSMask){t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];var e=this.current.activeSMask,r=this.suspendedCtx;this.composeSMask(r,e,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}}},{key:"composeSMask",value:function(t,e,r,n){var i=n[0],a=n[1],o=n[2]-i,s=n[3]-a;0!==o&&0!==s&&(this.genericComposeSMask(e.context,r,o,s,e.subtype,e.backdrop,e.transferMap,i,a,e.offsetX,e.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(r.canvas,0,0),t.restore())}},{key:"genericComposeSMask",value:function(t,e,r,n,i,a,o,s,u,c,l){var h=t.canvas,f=s-c,d=u-l;if(a)if(f<0||d<0||f+r>h.width||d+n>h.height){var v=this.cachedCanvases.getCanvas("maskExtension",r,n),p=v.context;p.drawImage(h,-f,-d),a.some((function(t){return 0!==t}))&&(p.globalCompositeOperation="destination-atop",p.fillStyle=Z.makeHexColor.apply(Z,Gs(a)),p.fillRect(0,0,r,n),p.globalCompositeOperation="source-over"),h=v.canvas,f=d=0}else if(a.some((function(t){return 0!==t}))){t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);var y=new Path2D;y.rect(f,d,r,n),t.clip(y),t.globalCompositeOperation="destination-atop",t.fillStyle=Z.makeHexColor.apply(Z,Gs(a)),t.fillRect(f,d,r,n),t.restore()}e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0),"Alpha"===i&&o?e.filter=this.filterFactory.addAlphaFilter(o):"Luminosity"===i&&(e.filter=this.filterFactory.addLuminosityFilter(o));var g=new Path2D;g.rect(s,u,r,n),e.clip(g),e.globalCompositeOperation="destination-in",e.drawImage(h,f,d,r,n,s,u,r,n),e.restore()}},{key:"save",value:function(){this.inSMaskMode?(nu(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();var t=this.current;this.stateStack.push(t),this.current=t.clone()}},{key:"restore",value:function(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),nu(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}},{key:"transform",value:function(t,e,r,n,i,a){this.ctx.transform(t,e,r,n,i,a),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}},{key:"constructPath",value:function(t,e,r){for(var n,i,a=this.ctx,o=this.current,s=o.x,u=o.y,c=je(a),l=0===c[0]&&0===c[3]||0===c[1]&&0===c[2],h=l?r.slice(0):null,f=0,d=0,v=t.length;f0&&void 0!==arguments[0])||arguments[0],e=this.ctx,r=this.current.strokeColor;e.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"==typeof r&&null!=r&&r.getPattern?(e.save(),e.strokeStyle=r.getPattern(e,this,Ie(e),Ps),this.rescaleAndStroke(!1),e.restore()):this.rescaleAndStroke(!0)),t&&this.consumePath(this.current.getClippedPathBoundingBox()),e.globalAlpha=this.current.fillAlpha}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"fill",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.ctx,r=this.current.fillColor,n=!1;this.current.patternFill&&(e.save(),e.fillStyle=r.getPattern(e,this,Ie(e),Ts),n=!0);var i=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==i&&(this.pendingEOFill?(e.fill("evenodd"),this.pendingEOFill=!1):e.fill()),n&&e.restore(),t&&this.consumePath(i)}},{key:"eoFill",value:function(){this.pendingEOFill=!0,this.fill()}},{key:"fillStroke",value:function(){this.fill(!1),this.stroke(!1),this.consumePath()}},{key:"eoFillStroke",value:function(){this.pendingEOFill=!0,this.fillStroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}},{key:"endPath",value:function(){this.consumePath()}},{key:"clip",value:function(){this.pendingClip=uu}},{key:"eoClip",value:function(){this.pendingClip=cu}},{key:"beginText",value:function(){this.current.textMatrix=b,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"endText",value:function(){var t=this.pendingTextPaths,e=this.ctx;if(void 0!==t){e.save(),e.beginPath();var r,n=Us(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;e.setTransform.apply(e,Gs(i.transform)),e.translate(i.x,i.y),i.addToPath(e,i.fontSize)}}catch(t){n.e(t)}finally{n.f()}e.restore(),e.clip(),e.beginPath(),delete this.pendingTextPaths}else e.beginPath()}},{key:"setCharSpacing",value:function(t){this.current.charSpacing=t}},{key:"setWordSpacing",value:function(t){this.current.wordSpacing=t}},{key:"setHScale",value:function(t){this.current.textHScale=t/100}},{key:"setLeading",value:function(t){this.current.leading=-t}},{key:"setFont",value:function(t,e){var r,n=this.commonObjs.get(t),i=this.current;if(!n)throw new Error("Can't find font for ".concat(t));if(i.fontMatrix=n.fontMatrix||w,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||R("Invalid font matrix for font "+t),e<0?(e=-e,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=e,!n.isType3Font){var a=n.loadedName||"sans-serif",o=(null===(r=n.systemFontInfo)||void 0===r?void 0:r.css)||'"'.concat(a,'", ').concat(n.fallbackName),s="normal";n.black?s="900":n.bold&&(s="bold");var u=n.italic?"italic":"normal",c=e;e<16?c=16:e>100&&(c=100),this.current.fontSizeScale=e/c,this.ctx.font="".concat(u," ").concat(s," ").concat(c,"px ").concat(o)}}},{key:"setTextRenderingMode",value:function(t){this.current.textRenderingMode=t}},{key:"setTextRise",value:function(t){this.current.textRise=t}},{key:"moveText",value:function(t,e){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=e}},{key:"setLeadingMoveText",value:function(t,e){this.setLeading(-e),this.moveText(t,e)}},{key:"setTextMatrix",value:function(t,e,r,n,i,a){this.current.textMatrix=[t,e,r,n,i,a],this.current.textMatrixScale=Math.hypot(t,e),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"paintChar",value:function(t,e,r,n){var i,a=this.ctx,o=this.current,s=o.font,u=o.textRenderingMode,c=o.fontSize/o.fontSizeScale,l=3&u,h=!!(4&u),f=o.patternFill&&!s.missingFile;(s.disableFontFace||h||f)&&(i=s.getPathGenerator(this.commonObjs,t)),s.disableFontFace||f?(a.save(),a.translate(e,r),a.beginPath(),i(a,c),n&&a.setTransform.apply(a,Gs(n)),0!==l&&2!==l||a.fill(),1!==l&&2!==l||a.stroke(),a.restore()):(0!==l&&2!==l||a.fillText(t,e,r),1!==l&&2!==l||a.strokeText(t,e,r)),h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:je(a),x:e,y:r,fontSize:c,addToPath:i})}},{key:"isFontSubpixelAAEnabled",get:function(){var t=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;t.scale(1.5,1),t.fillText("I",0,10);for(var e=t.getImageData(0,0,10,10).data,r=!1,n=3;n0&&e[n]<255){r=!0;break}return W(this,"isFontSubpixelAAEnabled",r)}},{key:"showText",value:function(t){var e=this.current,r=e.font;if(r.isType3Font)return this.showType3Text(t);var n=e.fontSize;if(0!==n){var i,a=this.ctx,o=e.fontSizeScale,s=e.charSpacing,u=e.wordSpacing,c=e.fontDirection,l=e.textHScale*c,h=t.length,f=r.vertical,d=f?1:-1,v=r.defaultVMetrics,p=n*e.fontMatrix[0],y=0===e.textRenderingMode&&!r.disableFontFace&&!e.patternFill;if(a.save(),a.transform.apply(a,Gs(e.textMatrix)),a.translate(e.x,e.y+e.textRise),c>0?a.scale(l,-1):a.scale(l,1),e.patternFill){a.save();var g=e.fillColor.getPattern(a,this,Ie(a),Ts);i=je(a),a.restore(),a.fillStyle=g}var m=e.lineWidth,b=e.textMatrixScale;if(0===b||0===m){var w=3&e.textRenderingMode;1!==w&&2!==w||(m=this.getSinglePixelWidth())}else m/=b;if(1!==o&&(a.scale(o,o),m/=o),a.lineWidth=m,r.isInvalidPDFjsFont){var k,x=[],A=0,_=Us(t);try{for(_.s();!(k=_.n()).done;){var E=k.value;x.push(E.unicode),A+=E.width}}catch(t){_.e(t)}finally{_.f()}return a.fillText(x.join(""),0,0),e.x+=A*p*l,a.restore(),void this.compose()}var S,O=0;for(S=0;S0){var W=1e3*a.measureText(M).width/n*o;if(R1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(t)?e=this.cachedPatterns.get(t):(e=function(t){switch(t[0]){case"RadialAxial":return new js(t);case"Mesh":return new Fs(t);case"Dummy":return new Ds}throw new Error("Unknown IR type: ".concat(t[0]))}(this.getObject(t)),this.cachedPatterns.set(t,e)),r&&(e.matrix=r),e}},{key:"shadingFill",value:function(t){if(this.contentVisible){var e=this.ctx;this.save();var r=this._getPattern(t);e.fillStyle=r.getPattern(e,this,Ie(e),Ls);var n=Ie(e);if(n){var i=e.canvas,a=i.width,o=i.height,s=zs(Z.getAxialAlignedBoundingBox([0,0,a,o],n),4),u=s[0],c=s[1],l=s[2],h=s[3];this.ctx.fillRect(u,c,l-u,h-c)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}}},{key:"beginInlineImage",value:function(){F("Should not call beginInlineImage")}},{key:"beginImageData",value:function(){F("Should not call beginImageData")}},{key:"paintFormXObjectBegin",value:function(t,e){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform.apply(this,Gs(t)),this.baseTransform=je(this.ctx),e)){var r=e[2]-e[0],n=e[3]-e[1];this.ctx.rect(e[0],e[1],r,n),this.current.updateRectMinMax(je(this.ctx),e),this.clip(),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}},{key:"beginGroup",value:function(t){if(this.contentVisible){this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);var e=this.ctx;t.isolated||I("TODO: Support non-isolated groups."),t.knockout&&R("Knockout groups not supported.");var r=je(e);if(t.matrix&&e.transform.apply(e,Gs(t.matrix)),!t.bbox)throw new Error("Bounding box is required.");var n=Z.getAxialAlignedBoundingBox(t.bbox,je(e)),i=[0,0,e.canvas.width,e.canvas.height];n=Z.intersect(n,i)||[0,0,0,0];var a=Math.floor(n[0]),o=Math.floor(n[1]),s=Math.max(Math.ceil(n[2])-a,1),u=Math.max(Math.ceil(n[3])-o,1);this.current.startNewPathAndClipBox([0,0,s,u]);var c="groupAt"+this.groupLevel;t.smask&&(c+="_smask_"+this.smaskCounter++%2);var l=this.cachedCanvases.getCanvas(c,s,u),h=l.context;h.translate(-a,-o),h.transform.apply(h,Gs(r)),t.smask?this.smaskStack.push({canvas:l.canvas,context:h,offsetX:a,offsetY:o,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(a,o),e.save()),nu(e,h),this.ctx=h,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++}}},{key:"endGroup",value:function(t){if(this.contentVisible){this.groupLevel--;var e=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{var n;this.ctx.restore();var i=je(this.ctx);this.restore(),this.ctx.save(),(n=this.ctx).setTransform.apply(n,Gs(i));var a=Z.getAxialAlignedBoundingBox([0,0,e.canvas.width,e.canvas.height],i);this.ctx.drawImage(e.canvas,0,0),this.ctx.restore(),this.compose(a)}}}},{key:"beginAnnotation",value:function(t,e,r,n,i){var a;if(Hs(lu,this,fu).call(this),iu(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&(a=this.ctx).setTransform.apply(a,Gs(this.baseTransform)),e){var o=e[2]-e[0],s=e[3]-e[1];if(i&&this.annotationCanvasMap){(r=r.slice())[4]-=e[0],r[5]-=e[1],(e=e.slice())[0]=e[1]=0,e[2]=o,e[3]=s;var u=zs(Z.singularValueDecompose2dScale(je(this.ctx)),2),c=u[0],l=u[1],h=this.viewportScale,f=Math.ceil(o*this.outputScaleX*h),d=Math.ceil(s*this.outputScaleY*h);this.annotationCanvas=this.canvasFactory.create(f,d);var v=this.annotationCanvas,p=v.canvas,y=v.context;this.annotationCanvasMap.set(t,p),this.annotationCanvas.savedCtx=this.ctx,this.ctx=y,this.ctx.save(),this.ctx.setTransform(c,0,0,-l,0,s*l),iu(this.ctx)}else iu(this.ctx),this.endPath(),this.ctx.rect(e[0],e[1],o,s),this.ctx.clip(),this.ctx.beginPath()}this.current=new tu(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,Gs(r)),this.transform.apply(this,Gs(n))}},{key:"endAnnotation",value:function(){this.annotationCanvas&&(this.ctx.restore(),Hs(lu,this,du).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}},{key:"paintImageMaskXObject",value:function(t){if(this.contentVisible){var e=t.count;(t=this.getObject(t.data,t)).count=e;var r=this.ctx,n=this.processingType3;if(n&&(void 0===n.compiled&&(n.compiled=function(t){var e=t.width,r=t.height;if(e>1e3||r>1e3)return null;var n,i,a,o,s=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),u=e+1,c=new Uint8Array(u*(r+1)),l=e+7&-8,h=new Uint8Array(l*r),f=0,d=Us(t.data);try{for(d.s();!(o=d.n()).done;)for(var v=o.value,p=128;p>0;)h[f++]=v&p?0:255,p>>=1}catch(t){d.e(t)}finally{d.f()}var y=0;for(0!==h[f=0]&&(c[0]=1,++y),i=1;i>2)+(h[f+1]?4:0)+(h[f-l+1]?8:0)]&&(c[a+i]=s[g],++y),f++;if(h[f-l]!==h[f]&&(c[a+i]=h[f]?2:4,++y),y>1e3)return null}for(a=n*u,0!==h[f=l*(r-1)]&&(c[a]=8,++y),i=1;i1e3)return null;var m=new Int32Array([0,u,-1,0,-u,0,0,0,1]),b=new Path2D;for(n=0;y&&n<=r;n++){for(var w=n*u,k=w+e;w>4,c[w]&=A>>2|A<<2),b.lineTo(w%u,w/u|0),c[w]||--y}while(x!==w);--n}}return h=null,c=null,function(t){t.save(),t.scale(1/e,-1/r),t.translate(0,-r),t.fill(b),t.beginPath(),t.restore()}}(t)),n.compiled))n.compiled(r);else{var i=this._createMaskCanvas(t),a=i.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(a,i.offsetX,i.offsetY),r.restore(),this.compose()}}}},{key:"paintImageMaskXObjectRepeat",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){t=this.getObject(t.data,t);var o=this.ctx;o.save();var s=je(o);o.transform(e,r,n,i,0,0);var u=this._createMaskCanvas(t);o.setTransform(1,0,0,1,u.offsetX-s[4],u.offsetY-s[5]);for(var c=0,l=a.length;cy?p/y:1,e=v>y?v/y:1}}this._cachedScaleForStroking[0]=t,this._cachedScaleForStroking[1]=e}return this._cachedScaleForStroking}},{key:"rescaleAndStroke",value:function(t){var e=this.ctx,r=this.current.lineWidth,n=zs(this.getScaleForStroking(),2),i=n[0],a=n[1];if(e.lineWidth=r||1,1!==i||1!==a){var o=e.getLineDash();if(t&&e.save(),e.scale(i,a),o.length>0){var s=Math.max(i,a);e.setLineDash(o.map((function(t){return t/s}))),e.lineDashOffset/=s}e.stroke(),t&&e.restore()}else e.stroke()}},{key:"isContentVisible",value:function(){for(var t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}}])}();function fu(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,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)}function du(){if(this.pageColors){var t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==t){var e=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=e}}}for(var vu in P)void 0!==hu.prototype[vu]&&(hu.prototype[P[vu]]=hu.prototype[vu]);function pu(t,e){for(var r=0;r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function xu(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Au(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var s=this.desiredSize;this.desiredSize-=a,s>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),i.postMessage({sourceName:r,targetName:n,stream:4,streamId:e,chunk:t},o)}},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:r,targetName:n,stream:3,streamId:e}),delete a.streamSinks[e])},error(t){D(t instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:r,targetName:n,stream:5,streamId:e,reason:Su(t)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};s.sinkCapability.resolve(),s.ready=s.sinkCapability.promise,this.streamSinks[e]=s,new Promise((function(e){e(o(t.data,s))})).then((function(){i.postMessage({sourceName:r,targetName:n,stream:8,streamId:e,success:!0})}),(function(t){i.postMessage({sourceName:r,targetName:n,stream:8,streamId:e,reason:Su(t)})}))}function Lu(t){var e=t.streamId,r=this.sourceName,n=t.sourceName,i=this.comObj,a=this.streamControllers[e],o=this.streamSinks[e];switch(t.stream){case 8:t.success?a.startCall.resolve():a.startCall.reject(Su(t.reason));break;case 7:t.success?a.pullCall.resolve():a.pullCall.reject(Su(t.reason));break;case 6:if(!o){i.postMessage({sourceName:r,targetName:n,stream:7,streamId:e,success:!0});break}o.desiredSize<=0&&t.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=t.desiredSize,new Promise((function(t){var e;t(null===(e=o.onPull)||void 0===e?void 0:e.call(o))})).then((function(){i.postMessage({sourceName:r,targetName:n,stream:7,streamId:e,success:!0})}),(function(t){i.postMessage({sourceName:r,targetName:n,stream:7,streamId:e,reason:Su(t)})}));break;case 4:if(D(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(t.chunk);break;case 3:if(D(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),Eu(Ou,this,Mu).call(this,a,e);break;case 5:D(a,"error should have stream controller"),a.controller.error(Su(t.reason)),Eu(Ou,this,Mu).call(this,a,e);break;case 2:t.success?a.cancelCall.resolve():a.cancelCall.reject(Su(t.reason)),Eu(Ou,this,Mu).call(this,a,e);break;case 1:if(!o)break;new Promise((function(e){var r;e(null===(r=o.onCancel)||void 0===r?void 0:r.call(o,Su(t.reason)))})).then((function(){i.postMessage({sourceName:r,targetName:n,stream:2,streamId:e,success:!0})}),(function(t){i.postMessage({sourceName:r,targetName:n,stream:2,streamId:e,reason:Su(t)})})),o.sinkCapability.reject(Su(t.reason)),o.isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}function Mu(t,e){return Cu.apply(this,arguments)}function Cu(){var t;return t=ku().mark((function t(e,r){var n,i,a;return ku().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.allSettled([null===(n=e.startCall)||void 0===n?void 0:n.promise,null===(i=e.pullCall)||void 0===i?void 0:i.promise,null===(a=e.cancelCall)||void 0===a?void 0:a.promise]);case 2:delete this.streamControllers[r];case 3:case"end":return t.stop()}}),t,this)})),Cu=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){xu(a,n,i,o,s,"next",t)}function s(t){xu(a,n,i,o,s,"throw",t)}o(void 0)}))},Cu.apply(this,arguments)}function ju(t,e){for(var r=0;r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function zu(t,e){if(t){if("string"==typeof t)return Vu(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vu(t,e):void 0}}function Vu(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r2&&void 0!==arguments[2]&&arguments[2];t!==ec&&F("Internal method \`_setVisible\` called."),Zu(ic,this,r),Zu(ac,this,e)}}])}(),sc=new WeakMap,uc=new WeakMap,cc=new WeakMap,lc=new WeakMap,hc=new WeakSet,fc=function(){return Xu((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(qu(this,t),function(t,e){Ju(t,e),e.add(t)}(this,hc),Qu(this,sc,null),Qu(this,uc,new Map),Qu(this,cc,null),Qu(this,lc,null),this.renderingIntent=r,this.name=null,this.creator=null,null!==e){this.name=e.name,this.creator=e.creator,Zu(lc,this,e.order);var n,i=Uu(e.groups);try{for(i.s();!(n=i.n()).done;){var a=n.value;$u(uc,this).set(a.id,new oc(r,a))}}catch(t){i.e(t)}finally{i.f()}if("OFF"===e.baseState){var o,s=Uu($u(uc,this).values());try{for(s.s();!(o=s.n()).done;)o.value._setVisible(ec,!1)}catch(t){s.e(t)}finally{s.f()}}var u,c=Uu(e.on);try{for(c.s();!(u=c.n()).done;){var l=u.value;$u(uc,this).get(l)._setVisible(ec,!0)}}catch(t){c.e(t)}finally{c.f()}var h,f=Uu(e.off);try{for(f.s();!(h=f.n()).done;){var d=h.value;$u(uc,this).get(d)._setVisible(ec,!1)}}catch(t){f.e(t)}finally{f.f()}Zu(cc,this,this.getHash())}}),[{key:"isVisible",value:function(t){if(0===$u(uc,this).size)return!0;if(!t)return I("Optional content group not defined."),!0;if("OCG"===t.type)return $u(uc,this).has(t.id)?$u(uc,this).get(t.id).visible:(R("Optional content group not found: ".concat(t.id)),!0);if("OCMD"===t.type){if(t.expression)return tc(hc,this,dc).call(this,t.expression);if(!t.policy||"AnyOn"===t.policy){var e,r=Uu(t.ids);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(!$u(uc,this).has(n))return R("Optional content group not found: ".concat(n)),!0;if($u(uc,this).get(n).visible)return!0}}catch(t){r.e(t)}finally{r.f()}return!1}if("AllOn"===t.policy){var i,a=Uu(t.ids);try{for(a.s();!(i=a.n()).done;){var o=i.value;if(!$u(uc,this).has(o))return R("Optional content group not found: ".concat(o)),!0;if(!$u(uc,this).get(o).visible)return!1}}catch(t){a.e(t)}finally{a.f()}return!0}if("AnyOff"===t.policy){var s,u=Uu(t.ids);try{for(u.s();!(s=u.n()).done;){var c=s.value;if(!$u(uc,this).has(c))return R("Optional content group not found: ".concat(c)),!0;if(!$u(uc,this).get(c).visible)return!0}}catch(t){u.e(t)}finally{u.f()}return!1}if("AllOff"===t.policy){var l,h=Uu(t.ids);try{for(h.s();!(l=h.n()).done;){var f=l.value;if(!$u(uc,this).has(f))return R("Optional content group not found: ".concat(f)),!0;if($u(uc,this).get(f).visible)return!1}}catch(t){h.e(t)}finally{h.f()}return!0}return R("Unknown optional content policy ".concat(t.policy,".")),!0}return R("Unknown group type ".concat(t.type,".")),!0}},{key:"setVisibility",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=$u(uc,this).get(t);r?(r._setVisible(ec,!!e,!0),Zu(sc,this,null)):R("Optional content group not found: ".concat(t))}},{key:"setOCGState",value:function(t){var e,r,n=t.state,i=(t.preserveRB,Uu(n));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a){case"ON":case"OFF":case"Toggle":e=a;continue}var o=$u(uc,this).get(a);if(o)switch(e){case"ON":o._setVisible(ec,!0);break;case"OFF":o._setVisible(ec,!1);break;case"Toggle":o._setVisible(ec,!o.visible)}}}catch(t){i.e(t)}finally{i.f()}Zu(sc,this,null)}},{key:"hasInitialVisibility",get:function(){return null===$u(cc,this)||this.getHash()===$u(cc,this)}},{key:"getOrder",value:function(){return $u(uc,this).size?$u(lc,this)?$u(lc,this).slice():function(t){return function(t){if(Array.isArray(t))return Vu(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||zu(t)||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.")}()}($u(uc,this).keys()):null}},{key:"getGroups",value:function(){return $u(uc,this).size>0?Q($u(uc,this)):null}},{key:"getGroup",value:function(t){return $u(uc,this).get(t)||null}},{key:"getHash",value:function(){if(null!==$u(sc,this))return $u(sc,this);var t,e=new so,r=Uu($u(uc,this));try{for(r.s();!(t=r.n()).done;){var n=Hu(t.value,2),i=n[0],a=n[1];e.update("".concat(i,":").concat(a.visible))}}catch(t){r.e(t)}finally{r.f()}return Zu(sc,this,e.hexdigest())}}])}();function dc(t){var e=t.length;if(e<2)return!0;for(var r=t[0],n=1;n=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function pc(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function yc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){pc(a,n,i,o,s,"next",t)}function s(t){pc(a,n,i,o,s,"throw",t)}o(void 0)}))}}function gc(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return mc(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mc(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function mc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0){var f=c instanceof Uint8Array&&c.byteLength===c.buffer.byteLength?c.buffer:new Uint8Array(c).buffer;this._queuedChunks.push(f)}this._pdfDataRangeTransport=e,this._isStreamingSupported=!s,this._isRangeSupported=!a,this._contentLength=u,this._fullRequestReader=null,this._rangeReaders=[],e.addRangeListener((function(t,e){n._onReceiveData({begin:t,chunk:e})})),e.addProgressListener((function(t,e){n._onProgress({loaded:t,total:e})})),e.addProgressiveReadListener((function(t){n._onReceiveData({chunk:t})})),e.addProgressiveDoneListener((function(){n._onProgressiveDone()})),e.transportReady()}),[{key:"_onReceiveData",value:function(t){var e=t.begin,r=t.chunk,n=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;void 0===e?this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n):D(this._rangeReaders.some((function(t){return t._begin===e&&(t._enqueue(n),!0)})),"_onReceiveData - no \`PDFDataTransportStreamRangeReader\` instance found.")}},{key:"_progressiveDataLength",get:function(){var t,e;return null!==(t=null===(e=this._fullRequestReader)||void 0===e?void 0:e._loaded)&&void 0!==t?t:0}},{key:"_onProgress",value:function(t){var e,r,n,i;void 0===t.total?null===(e=this._rangeReaders[0])||void 0===e||null===(r=e.onProgress)||void 0===r||r.call(e,{loaded:t.loaded}):null===(n=this._fullRequestReader)||void 0===n||null===(i=n.onProgress)||void 0===i||i.call(n,{loaded:t.loaded,total:t.total})}},{key:"_onProgressiveDone",value:function(){var t;null===(t=this._fullRequestReader)||void 0===t||t.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(t){var e=this._rangeReaders.indexOf(t);e>=0&&this._rangeReaders.splice(e,1)}},{key:"getFullReader",value:function(){D(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var t=this._queuedChunks;return this._queuedChunks=null,new _c(this,t,this._progressiveDone,this._contentDispositionFilename)}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var r=new Ec(this,t,e);return this._pdfDataRangeTransport.requestDataRange(t,e),this._rangeReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){var e;null===(e=this._fullRequestReader)||void 0===e||e.cancel(t);var r,n=gc(this._rangeReaders.slice(0));try{for(n.s();!(r=n.n()).done;)r.value.cancel(t)}catch(t){n.e(t)}finally{n.f()}this._pdfDataRangeTransport.abort()}}])}(),_c=function(){return kc((function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;bc(this,t),this._stream=e,this._done=n||!1,this._filename=xe(i)?i:null,this._queuedChunks=r||[],this._loaded=0;var a,o=gc(this._queuedChunks);try{for(o.s();!(a=o.n()).done;){var s=a.value;this._loaded+=s.byteLength}}catch(t){o.e(t)}finally{o.f()}this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}),[{key:"_enqueue",value:function(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}},{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}},{key:"read",value:(t=yc(vc().mark((function t(){var e,r;return vc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this._queuedChunks.length>0)){t.next=3;break}return e=this._queuedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 3:if(!this._done){t.next=5;break}return t.abrupt("return",{value:void 0,done:!0});case 5:return r=Promise.withResolvers(),this._requests.push(r),t.abrupt("return",r.promise);case 8:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0;var e,r=gc(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.resolve({value:void 0,done:!0})}catch(t){r.e(t)}finally{r.f()}this._requests.length=0}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}}]);var t}(),Ec=function(){return kc((function t(e,r,n){bc(this,t),this._stream=e,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}),[{key:"_enqueue",value:function(t){if(!this._done){if(0===this._requests.length)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});var e,r=gc(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.resolve({value:void 0,done:!0})}catch(t){r.e(t)}finally{r.f()}this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(t=yc(vc().mark((function t(){var e,r;return vc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return r=Promise.withResolvers(),this._requests.push(r),t.abrupt("return",r.promise);case 9:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0;var e,r=gc(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.resolve({value:void 0,done:!0})}catch(t){r.e(t)}finally{r.f()}this._requests.length=0,this._stream._removeRangeReader(this)}}]);var t}();function Sc(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Oc(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oc(t,e):void 0}}(t,e)||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 Oc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ic(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Rc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Ic(a,n,i,o,s,"next",t)}function s(t){Ic(a,n,i,o,s,"throw",t)}o(void 0)}))}}function Fc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(this._rangeRequestReaders.slice(0));try{for(n.s();!(r=n.n()).done;)r.value.cancel(t)}catch(t){n.e(t)}finally{n.f()}}}])}(),zc=function(){return Wc((function t(e){var r=this;Dc(this,t),this._stream=e,this._reader=null,this._loaded=0,this._filename=null;var n=e.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange;var i=new Headers(e.headers),a=n.url;fetch(a,Gc(i,this._withCredentials,this._abortController)).then((function(t){if(!Cc(t.status))throw Mc(t.status,a);r._reader=t.body.getReader(),r._headersCapability.resolve();var n=t.headers,i=Pc({responseHeaders:n,isHttp:e.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),o=i.allowRangeRequests,s=i.suggestedLength;r._isRangeSupported=o,r._contentLength=s||r._contentLength,r._filename=Lc(n),!r._isStreamingSupported&&r._isRangeSupported&&r.cancel(new Y("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}),[{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}},{key:"read",value:(t=Rc(jc().mark((function t(){var e,r,n,i;return jc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._headersCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(r=t.sent,n=r.value,!(i=r.done)){t.next=9;break}return t.abrupt("return",{value:n,done:i});case 9:return this._loaded+=n.byteLength,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded,total:this._contentLength}),t.abrupt("return",{value:Hc(n),done:!1});case 12:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){var e;null===(e=this._reader)||void 0===e||e.cancel(t),this._abortController.abort()}}]);var t}(),Vc=function(){return Wc((function t(e,r,n){var i=this;Dc(this,t),this._stream=e,this._reader=null,this._loaded=0;var a=e.source;this._withCredentials=a.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!a.disableStream,this._abortController=new AbortController;var o=new Headers(e.headers);o.append("Range","bytes=".concat(r,"-").concat(n-1));var s=a.url;fetch(s,Gc(o,this._withCredentials,this._abortController)).then((function(t){if(!Cc(t.status))throw Mc(t.status,s);i._readCapability.resolve(),i._reader=t.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}),[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(t=Rc(jc().mark((function t(){var e,r,n,i;return jc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(r=t.sent,n=r.value,!(i=r.done)){t.next=9;break}return t.abrupt("return",{value:n,done:i});case 9:return this._loaded+=n.byteLength,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded}),t.abrupt("return",{value:Hc(n),done:!1});case 12:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){var e;null===(e=this._reader)||void 0===e||e.cancel(t),this._abortController.abort()}}]);var t}();function qc(){qc=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Yc(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Xc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Yc(a,n,i,o,s,"next",t)}function s(t){Yc(a,n,i,o,s,"throw",t)}o(void 0)}))}}function Kc(t,e){return Jc(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Zc(t,e)||Qc()}function Qc(){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 Jc(t){if(Array.isArray(t))return t}function $c(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Zc(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Zc(t,e){if(t){if("string"==typeof t)return tl(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tl(t,e):void 0}}function tl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===n.readyState&&t in this.pendingRequests)if(delete this.pendingRequests[t],0===n.status&&this.isHttp){var i;null===(i=r.onError)||void 0===i||i.call(r,n.status)}else{var a=n.status||200;if(200===a&&206===r.expectedStatus||a===r.expectedStatus){var o=function(t){var e=t.response;return"string"!=typeof e?e:K(e).buffer}(n);if(206===a){var s=n.getResponseHeader("Content-Range"),u=/bytes (\\d+)-(\\d+)\\/(\\d+)/.exec(s);r.onDone({begin:parseInt(u[1],10),chunk:o})}else if(o)r.onDone({begin:0,chunk:o});else{var c;null===(c=r.onError)||void 0===c||c.call(r,n.status)}}else{var l;null===(l=r.onError)||void 0===l||l.call(r,n.status)}}}}},{key:"getRequestXhr",value:function(t){return this.pendingRequests[t].xhr}},{key:"isPendingRequest",value:function(t){return t in this.pendingRequests}},{key:"abortRequest",value:function(t){var e=this.pendingRequests[t].xhr;delete this.pendingRequests[t],e.abort()}}])}(),ol=function(){return nl((function t(e){el(this,t),this._source=e,this._manager=new al(e),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}),[{key:"_onRangeRequestReaderClosed",value:function(t){var e=this._rangeRequestReaders.indexOf(t);e>=0&&this._rangeRequestReaders.splice(e,1)}},{key:"getFullReader",value:function(){return D(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new sl(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){var r=new ul(this._manager,t,e);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){var e;null===(e=this._fullRequestReader)||void 0===e||e.cancel(t);var r,n=$c(this._rangeRequestReaders.slice(0));try{for(n.s();!(r=n.n()).done;)r.value.cancel(t)}catch(t){n.e(t)}finally{n.f()}}}])}(),sl=function(){return nl((function t(e,r){el(this,t),this._manager=e;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=e.requestFull(n),this._headersCapability=Promise.withResolvers(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.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}),[{key:"_onHeadersReceived",value:function(){var t=this._fullRequestId,e=this._manager.getRequestXhr(t),r=new Headers(e.getAllResponseHeaders().trim().split(/[\\r\\n]+/).map((function(t){var e=function(t){return Jc(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Zc(t)||Qc()}(t.split(": "));return[e[0],e.slice(1).join(": ")]}))),n=Pc({responseHeaders:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=n.allowRangeRequests,a=n.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=Lc(r),this._isRangeSupported&&this._manager.abortRequest(t),this._headersCapability.resolve()}},{key:"_onDone",value:function(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){var e,r=$c(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.resolve({value:void 0,done:!0})}catch(t){r.e(t)}finally{r.f()}this._requests.length=0}}},{key:"_onError",value:function(t){this._storedError=Mc(t,this._url),this._headersCapability.reject(this._storedError);var e,r=$c(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.reject(this._storedError)}catch(t){r.e(t)}finally{r.f()}this._requests.length=0,this._cachedChunks.length=0}},{key:"_onProgress",value:function(t){var e;null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}},{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._headersCapability.promise}},{key:"read",value:(t=Xc(qc().mark((function t(){var e,r;return qc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._storedError){t.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){t.next=5;break}return e=this._cachedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 5:if(!this._done){t.next=7;break}return t.abrupt("return",{value:void 0,done:!0});case 7:return r=Promise.withResolvers(),this._requests.push(r),t.abrupt("return",r.promise);case 10:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0,this._headersCapability.reject(t);var e,r=$c(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.resolve({value:void 0,done:!0})}catch(t){r.e(t)}finally{r.f()}this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]);var t}(),ul=function(){return nl((function t(e,r,n){el(this,t),this._manager=e;var i={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(r,n,i),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}),[{key:"_close",value:function(){var t;null===(t=this.onClosed)||void 0===t||t.call(this,this)}},{key:"_onDone",value:function(t){var e=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0;var r,n=$c(this._requests);try{for(n.s();!(r=n.n()).done;)r.value.resolve({value:void 0,done:!0})}catch(t){n.e(t)}finally{n.f()}this._requests.length=0,this._close()}},{key:"_onError",value:function(t){this._storedError=Mc(t,this._url);var e,r=$c(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.reject(this._storedError)}catch(t){r.e(t)}finally{r.f()}this._requests.length=0,this._queuedChunk=null}},{key:"_onProgress",value:function(t){var e;this.isStreamingSupported||null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:t.loaded})}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(t=Xc(qc().mark((function t(){var e,r;return qc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._storedError){t.next=2;break}throw this._storedError;case 2:if(null===this._queuedChunk){t.next=6;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 6:if(!this._done){t.next=8;break}return t.abrupt("return",{value:void 0,done:!0});case 8:return r=Promise.withResolvers(),this._requests.push(r),t.abrupt("return",r.promise);case 11:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0;var e,r=$c(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.resolve({value:void 0,done:!0})}catch(t){r.e(t)}finally{r.f()}this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}]);var t}();function cl(t,e,r){return e=hl(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ll()?Reflect.construct(e,r||[],hl(t).constructor):e.apply(t,r))}function ll(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ll=function(){return!!t})()}function hl(t){return hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hl(t)}function fl(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dl(t,e)}function dl(t,e){return dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dl(t,e)}function vl(){vl=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function pl(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function yl(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){pl(a,n,i,o,s,"next",t)}function s(t){pl(a,n,i,o,s,"throw",t)}o(void 0)}))}}function gl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(this._rangeRequestReaders.slice(0));try{for(n.s();!(r=n.n()).done;)r.value.cancel(t)}catch(t){n.e(t)}finally{n.f()}}}])}(),Sl=function(){return wl((function t(e){ml(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;var r=e.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}),[{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}},{key:"read",value:(t=yl(vl().mark((function t(){var e,r,n;return vl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(r=this._readableStream.read())){t.next=10;break}return this._readCapability=Promise.withResolvers(),t.abrupt("return",this.read());case 10:return this._loaded+=r.length,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded,total:this._contentLength}),n=new Uint8Array(r).buffer,t.abrupt("return",{value:n,done:!1});case 14:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",(function(){e._readCapability.resolve()})),t.on("end",(function(){t.destroy(),e._done=!0,e._readCapability.resolve()})),t.on("error",(function(t){e._error(t)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Y("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]);var t}(),Ol=function(){return wl((function t(e){ml(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();var r=e.source;this._isStreamingSupported=!r.disableStream}),[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(t=yl(vl().mark((function t(){var e,r,n;return vl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(r=this._readableStream.read())){t.next=10;break}return this._readCapability=Promise.withResolvers(),t.abrupt("return",this.read());case 10:return this._loaded+=r.length,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded}),n=new Uint8Array(r).buffer,t.abrupt("return",{value:n,done:!1});case 14:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",(function(){e._readCapability.resolve()})),t.on("end",(function(){t.destroy(),e._done=!0,e._readCapability.resolve()})),t.on("error",(function(t){e._error(t)})),this._storedError&&this._readableStream.destroy(this._storedError)}}]);var t}(),Tl=function(t){function e(t){var r;ml(this,e),r=cl(this,e,[t]);var n=Object.fromEntries(t.headers);return r._request=Al(r._url,n,(function(e){if(404===e.statusCode){var n=new z('Missing PDF "'.concat(r._url,'".'));return r._storedError=n,void r._headersCapability.reject(n)}r._headersCapability.resolve(),r._setReadableStream(e);var i=new Headers(r._readableStream.headers),a=Pc({responseHeaders:i,isHttp:t.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),o=a.allowRangeRequests,s=a.suggestedLength;r._isRangeSupported=o,r._contentLength=s||r._contentLength,r._filename=Lc(i)})),r._request.on("error",(function(t){r._storedError=t,r._headersCapability.reject(t)})),r._request.end(),r}return fl(e,Sl),wl(e)}(),Pl=function(t){function e(t,r,n){var i;ml(this,e),i=cl(this,e,[t]);var a=Object.fromEntries(t.headers);return a.Range="bytes=".concat(r,"-").concat(n-1),i._request=Al(i._url,a,(function(t){if(404!==t.statusCode)i._setReadableStream(t);else{var e=new z('Missing PDF "'.concat(i._url,'".'));i._storedError=e}})),i._request.on("error",(function(t){i._storedError=t})),i._request.end(),i}return fl(e,Ol),wl(e)}(),Ll=function(t){function e(t){var r;ml(this,e),r=cl(this,e,[t]);var n=cs.get("fs");return n.promises.lstat(r._url).then((function(t){r._contentLength=t.size,r._setReadableStream(n.createReadStream(r._url)),r._headersCapability.resolve()}),(function(t){"ENOENT"===t.code&&(t=new z('Missing PDF "'.concat(r._url,'".'))),r._storedError=t,r._headersCapability.reject(t)})),r}return fl(e,Sl),wl(e)}(),Ml=function(t){function e(t,r,n){var i;ml(this,e),i=cl(this,e,[t]);var a=cs.get("fs");return i._setReadableStream(a.createReadStream(i._url,{start:r,end:n-1})),i}return fl(e,Ol),wl(e)}();function Cl(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return jl(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jl(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function jl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0)){Bl(t,this,yh)._.clear();var e,r=Cl(Bl(t,this,gh)._.values());try{for(r.s();!(e=r.n()).done;)e.value.canvas.remove()}catch(t){r.e(t)}finally{r.f()}Bl(t,this,gh)._.clear()}}}])}();function ch(t){var e,r;if(!Nl(Vl,this)){null!==(r=(e=Nl(Xl,this)).ctx)&&void 0!==r||(e.ctx=fh.call(_l,Nl(Yl,this)));var n,i=Nl(ih,this),a=Nl(rh,this),o=Cl(t);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(i.length>1e5)return R("Ignoring additional textDivs for performance reasons."),void Wl(Vl,this,!0);if(void 0!==s.str)a.push(s.str),Bl(sh,this,lh).call(this,s);else if("beginMarkedContentProps"===s.type||"beginMarkedContent"===s.type){var u=Nl(zl,this);Wl(zl,this,document.createElement("span")),Nl(zl,this).classList.add("markedContent"),null!==s.id&&Nl(zl,this).setAttribute("id","".concat(s.id)),u.append(Nl(zl,this))}else"endMarkedContent"===s.type&&Wl(zl,this,Nl(zl,this).parentNode)}}catch(t){o.e(t)}finally{o.f()}}}function lh(t){var e=document.createElement("span"),r={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};Nl(ih,this).push(e);var n=Z.transform(Nl(oh,this),t.transform),i=Math.atan2(n[1],n[0]),a=Nl(eh,this)[t.fontName];a.vertical&&(i+=Math.PI/2);var o=Nl(ql,this)&&a.fontSubstitution||a.fontFamily;o=_l.fontFamilyMap.get(o)||o;var s,u,c=Math.hypot(n[2],n[3]),l=c*ph.call(_l,o,Nl(Yl,this));0===i?(s=n[4],u=n[5]-l):(s=n[4]+l*Math.sin(i),u=n[5]-l*Math.cos(i));var h="calc(var(--scale-factor)*",f=e.style;Nl(zl,this)===Nl($l,this)?(f.left="".concat((100*s/Nl(Ql,this)).toFixed(2),"%"),f.top="".concat((100*u/Nl(Kl,this)).toFixed(2),"%")):(f.left="".concat(h).concat(s.toFixed(2),"px)"),f.top="".concat(h).concat(u.toFixed(2),"px)")),f.fontSize="".concat(h).concat((bh._*c).toFixed(2),"px)"),f.fontFamily=o,r.fontSize=c,e.setAttribute("role","presentation"),e.textContent=t.str,e.dir=t.dir,Nl(ql,this)&&(e.dataset.fontName=a.fontSubstitutionLoadedName||t.fontName),0!==i&&(r.angle=i*(180/Math.PI));var d=!1;if(t.str.length>1)d=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){var v=Math.abs(t.transform[0]),p=Math.abs(t.transform[3]);v!==p&&Math.max(v,p)/Math.min(v,p)>1.5&&(d=!0)}if(d&&(r.canvasWidth=a.vertical?t.height:t.width),Nl(ah,this).set(e,r),Nl(Xl,this).div=e,Nl(Xl,this).properties=r,Bl(sh,this,hh).call(this,Nl(Xl,this)),r.hasText&&Nl(zl,this).append(e),r.hasEOL){var y=document.createElement("br");y.setAttribute("role","presentation"),Nl(zl,this).append(y)}}function hh(t){var e=t.div,r=t.properties,n=t.ctx,i=e.style,a="";if(bh._>1&&(a="scale(".concat(1/bh._,")")),0!==r.canvasWidth&&r.hasText){var o=i.fontFamily,s=r.canvasWidth,u=r.fontSize;dh.call(_l,n,u*Nl(th,this),o);var c=n.measureText(e.textContent).width;c>0&&(a="scaleX(".concat(s*Nl(th,this)/c,") ").concat(a))}0!==r.angle&&(a="rotate(".concat(r.angle,"deg) ").concat(a)),a.length>0&&(i.transform=a)}function fh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=Bl(_l,this,gh)._.get(t||(t=""));if(!e){var r=document.createElement("canvas");r.className="hiddenCanvasElement",r.lang=t,document.body.append(r),e=r.getContext("2d",{alpha:!1,willReadFrequently:!0}),Bl(_l,this,gh)._.set(t,e),Bl(_l,this,mh)._.set(e,{size:0,family:""})}return e}function dh(t,e,r){var n=Bl(_l,this,mh)._.get(t);e===n.size&&r===n.family||(t.font="".concat(e,"px ").concat(r),n.size=e,n.family=r)}function vh(){if(null===Bl(_l,this,bh)._){var t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.style.position="absolute",t.textContent="X",document.body.append(t),bh._=Bl(_l,this,t.getBoundingClientRect().height),t.remove()}}function ph(t,e){var r=Bl(_l,this,yh)._.get(t);if(r)return r;var n=Bl(_l,this,fh).call(this,e);n.canvas.width=n.canvas.height=Gl,Bl(_l,this,dh).call(this,n,Gl,t);var i=n.measureText(""),a=i.fontBoundingBoxAscent,o=Math.abs(i.fontBoundingBoxDescent);if(a){var s=a/(a+o);return Bl(_l,this,yh)._.set(t,s),n.canvas.width=n.canvas.height=0,s}n.strokeStyle="red",n.clearRect(0,0,Gl,Gl),n.strokeText("g",0,0);var u=n.getImageData(0,0,Gl,Gl).data;o=0;for(var c=u.length-1-3;c>=0;c-=4)if(u[c]>0){o=Math.ceil(c/4/Gl);break}n.clearRect(0,0,Gl,Gl),n.strokeText("A",0,Gl),a=0;for(var l=0,h=(u=n.getImageData(0,0,Gl,Gl).data).length;l0){a=Gl-Math.floor(l/4/Gl);break}n.canvas.width=n.canvas.height=0;var f=a?a/(a+o):Hl;return Bl(_l,this,yh)._.set(t,f),f}_l=uh;var yh={_:new Map},gh={_:new Map},mh={_:new WeakMap},bh={_:null},wh={_:new Set};function kh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(n.children);try{for(u.s();!(s=u.n()).done;)e(s.value)}catch(t){u.e(t)}finally{u.f()}}}}(e),n}},{key:"shouldBuildText",value:function(t){return!("textarea"===t||"input"===t||"option"===t||"select"===t)}}])}();function Sh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Oh(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Nh(t,e){if(t){if("string"==typeof t)return Wh(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wh(t,e):void 0}}function Wh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Gh(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Hh(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Gh(a,n,i,o,s,"next",t)}function s(t){Gh(a,n,i,o,s,"throw",t)}o(void 0)}))}}function Uh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zh(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};"string"==typeof r||r instanceof URL?r={url:r}:(r instanceof ArrayBuffer||ArrayBuffer.isView(r))&&(r={data:r});var n=new tf,i=n.docId,a=r.url?function(t){if(t instanceof URL)return t.href;try{return new URL(t,window.location).href}catch(e){if(m&&"string"==typeof t)return t}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}(r.url):null,o=r.data?function(t){if(m&&"undefined"!=typeof Buffer&&t instanceof Buffer)throw new Error("Please provide binary data as \`Uint8Array\`, rather than \`Buffer\`.");if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)return t;if("string"==typeof t)return K(t);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)||"object"==typeof t&&!isNaN(null==t?void 0:t.length))return new Uint8Array(t);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}(r.data):null,s=r.httpHeaders||null,u=!0===r.withCredentials,c=null!==(t=r.password)&&void 0!==t?t:null,l=r.range instanceof rf?r.range:null,h=Number.isInteger(r.rangeChunkSize)&&r.rangeChunkSize>0?r.rangeChunkSize:Yh,f=r.worker instanceof pf?r.worker:null,d=r.verbosity,v="string"!=typeof r.docBaseUrl||ke(r.docBaseUrl)?null:r.docBaseUrl,p="string"==typeof r.cMapUrl?r.cMapUrl:null,y=!1!==r.cMapPacked,g=r.CMapReaderFactory||Kh,b="string"==typeof r.standardFontDataUrl?r.standardFontDataUrl:null,w=r.StandardFontDataFactory||Jh,k=!0!==r.stopAtErrors,x=Number.isInteger(r.maxImageSize)&&r.maxImageSize>-1?r.maxImageSize:-1,A=!1!==r.isEvalSupported,_="boolean"==typeof r.isOffscreenCanvasSupported?r.isOffscreenCanvasSupported:!m,E=Number.isInteger(r.canvasMaxAreaInBytes)?r.canvasMaxAreaInBytes:-1,S="boolean"==typeof r.disableFontFace?r.disableFontFace:m,O=!0===r.fontExtraProperties,T=!0===r.enableXfa,P=r.ownerDocument||globalThis.document,L=!0===r.disableRange,M=!0===r.disableStream,j=!0===r.disableAutoFetch,I=!0===r.pdfBug,R=r.CanvasFactory||Xh,F=r.FilterFactory||Qh,D=!0===r.enableHWA,N=l?l.length:null!==(e=r.length)&&void 0!==e?e:NaN,W="boolean"==typeof r.useSystemFonts?r.useSystemFonts:!m&&!S,B="boolean"==typeof r.useWorkerFetch?r.useWorkerFetch:g===ye&&w===ge&&p&&b&&Oe(p,document.baseURI)&&Oe(b,document.baseURI);r.canvasFactory&&Pe("\`canvasFactory\`-instance option, please use \`CanvasFactory\` instead."),r.filterFactory&&Pe("\`filterFactory\`-instance option, please use \`FilterFactory\` instead."),C(d);var G={canvasFactory:new R({ownerDocument:P,enableHWA:D}),filterFactory:new F({docId:i,ownerDocument:P}),cMapReaderFactory:B?null:new g({baseUrl:p,isCompressed:y}),standardFontDataFactory:B?null:new w({baseUrl:b})};if(!f){var H={verbosity:d,port:mu.workerPort};f=H.port?pf.fromPort(H):new pf(H),n._worker=f}var U={docId:i,apiVersion:"4.7.0",data:o,password:c,disableAutoFetch:j,rangeChunkSize:h,length:N,docBaseUrl:v,enableXfa:T,evaluatorOptions:{maxImageSize:x,disableFontFace:S,ignoreErrors:k,isEvalSupported:A,isOffscreenCanvasSupported:_,canvasMaxAreaInBytes:E,fontExtraProperties:O,useSystemFonts:W,cMapUrl:B?p:null,standardFontDataUrl:B?b:null}},z={disableFontFace:S,fontExtraProperties:O,ownerDocument:P,pdfBug:I,styleElement:null,loadingParams:{disableAutoFetch:j,enableXfa:T}};return f.promise.then((function(){if(n.destroyed)throw new Error("Loading aborted");if(f.destroyed)throw new Error("Worker was destroyed");var t,e=f.messageHandler.sendWithPromise("GetDocRequest",U,o?[o.buffer]:null);if(l)t=new Ac(l,{disableRange:L,disableStream:M});else if(!o){if(!a)throw new Error("getDocument - no \`url\` parameter provided.");var r;r=m?"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&Oe(a)?Uc:El:Oe(a)?Uc:ol,t=new r({url:a,length:N,httpHeaders:s,withCredentials:u,rangeChunkSize:h,disableRange:L,disableStream:M})}return e.then((function(e){if(n.destroyed)throw new Error("Loading aborted");if(f.destroyed)throw new Error("Worker was destroyed");var r=new Tu(i,e,f.port),a=new Of(r,n,t,z,G);n._transport=a,r.send("Ready",null)}))})).catch(n._capability.reject),n}function Zh(t){return"object"==typeof t&&Number.isInteger(null==t?void 0:t.num)&&t.num>=0&&Number.isInteger(null==t?void 0:t.gen)&&t.gen>=0}var tf=function(){return Vh((function t(){var e,r;Uh(this,t),this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId="d".concat((ef._=(e=ef._,r=e++,e),r)),this.destroyed=!1,this.onPassword=null,this.onProgress=null}),[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:(t=Hh(Bh().mark((function t(){var e,r,n;return Bh().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.destroyed=!0,t.prev=1,null!==(e=this._worker)&&void 0!==e&&e.port&&(this._worker._pendingDestroy=!0),t.next=5,null===(r=this._transport)||void 0===r?void 0:r.destroy();case 5:t.next=11;break;case 7:throw t.prev=7,t.t0=t.catch(1),null!==(n=this._worker)&&void 0!==n&&n.port&&delete this._worker._pendingDestroy,t.t0;case 11:this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null);case 13:case"end":return t.stop()}}),t,this,[[1,7]])}))),function(){return t.apply(this,arguments)})}]);var t}(),ef={_:0},rf=function(){return Vh((function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Uh(this,t),this.length=e,this.initialData=r,this.progressiveDone=n,this.contentDispositionFilename=i,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}),[{key:"addRangeListener",value:function(t){this._rangeListeners.push(t)}},{key:"addProgressListener",value:function(t){this._progressListeners.push(t)}},{key:"addProgressiveReadListener",value:function(t){this._progressiveReadListeners.push(t)}},{key:"addProgressiveDoneListener",value:function(t){this._progressiveDoneListeners.push(t)}},{key:"onDataRange",value:function(t,e){var r,n=Dh(this._rangeListeners);try{for(n.s();!(r=n.n()).done;)(0,r.value)(t,e)}catch(t){n.e(t)}finally{n.f()}}},{key:"onDataProgress",value:function(t,e){var r=this;this._readyCapability.promise.then((function(){var n,i=Dh(r._progressListeners);try{for(i.s();!(n=i.n()).done;)(0,n.value)(t,e)}catch(t){i.e(t)}finally{i.f()}}))}},{key:"onDataProgressiveRead",value:function(t){var e=this;this._readyCapability.promise.then((function(){var r,n=Dh(e._progressiveReadListeners);try{for(n.s();!(r=n.n()).done;)(0,r.value)(t)}catch(t){n.e(t)}finally{n.f()}}))}},{key:"onDataProgressiveDone",value:function(){var t=this;this._readyCapability.promise.then((function(){var e,r=Dh(t._progressiveDoneListeners);try{for(r.s();!(e=r.n()).done;)(0,e.value)()}catch(t){r.e(t)}finally{r.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(t,e){F("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}])}(),nf=function(){return Vh((function t(e,r){Uh(this,t),this._pdfInfo=e,this._transport=r}),[{key:"annotationStorage",get:function(){return this._transport.annotationStorage}},{key:"canvasFactory",get:function(){return this._transport.canvasFactory}},{key:"filterFactory",get:function(){return this._transport.filterFactory}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprints",get:function(){return this._pdfInfo.fingerprints}},{key:"isPureXfa",get:function(){return W(this,"isPureXfa",!!this._transport._htmlForXfa)}},{key:"allXfaHtml",get:function(){return this._transport._htmlForXfa}},{key:"getPage",value:function(t){return this._transport.getPage(t)}},{key:"getPageIndex",value:function(t){return this._transport.getPageIndex(t)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(t){return this._transport.getDestination(t)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJSActions",value:function(){return this._transport.getDocJSActions()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intent,e=void 0===t?"display":t,r=this._transport.getRenderingIntent(e).renderingIntent;return this._transport.getOptionalContentConfig(r)}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getMarkInfo",value:function(){return this._transport.getMarkInfo()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"saveDocument",value:function(){return this._transport.saveDocument()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"cleanup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(t||this.isPureXfa)}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"cachedPageNumber",value:function(t){return this._transport.cachedPageNumber(t)}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}},{key:"getFieldObjects",value:function(){return this._transport.getFieldObjects()}},{key:"hasJSActions",value:function(){return this._transport.hasJSActions()}},{key:"getCalculationOrderIds",value:function(){return this._transport.getCalculationOrderIds()}}])}(),af=new WeakMap,of=new WeakMap,sf=new WeakSet,uf=function(){return Vh((function t(e,r,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Uh(this,t),Mh(this,sf),Ch(this,af,null),Ch(this,of,!1),this._pageIndex=e,this._pageInfo=r,this._transport=n,this._stats=i?new Se:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new Cf,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}),[{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:"getViewport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.scale,r=t.rotation,n=void 0===r?this.rotate:r,i=t.offsetX,a=void 0===i?0:i,o=t.offsetY,s=void 0===o?0:o,u=t.dontFlip,c=void 0!==u&&u;return new be({viewBox:this.view,scale:e,rotation:n,offsetX:a,offsetY:s,dontFlip:c})}},{key:"getAnnotations",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intent,e=void 0===t?"display":t,r=this._transport.getRenderingIntent(e).renderingIntent;return this._transport.getAnnotations(this._pageIndex,r)}},{key:"getJSActions",value:function(){return this._transport.getPageJSActions(this._pageIndex)}},{key:"filterFactory",get:function(){return this._transport.filterFactory}},{key:"isPureXfa",get:function(){return W(this,"isPureXfa",!!this._transport._htmlForXfa)}},{key:"getXfa",value:(t=Hh(Bh().mark((function t(){var e;return Bh().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(null===(e=this._transport._htmlForXfa)||void 0===e?void 0:e.children[this._pageIndex])||null);case 1:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(t){var e,r,n=this,i=t.canvasContext,a=t.viewport,o=t.intent,s=void 0===o?"display":o,u=t.annotationMode,c=void 0===u?x.ENABLE:u,l=t.transform,h=void 0===l?null:l,f=t.background,d=void 0===f?null:f,v=t.optionalContentConfigPromise,p=void 0===v?null:v,y=t.annotationCanvasMap,g=void 0===y?null:y,m=t.pageColors,b=void 0===m?null:m,w=t.printAnnotationStorage,k=void 0===w?null:w,A=t.isEditing,_=void 0!==A&&A;null===(e=this._stats)||void 0===e||e.time("Overall");var E=this._transport.getRenderingIntent(s,c,k,_),S=E.renderingIntent,O=E.cacheKey;Rh(of,this,!1),Fh(sf,this,lf).call(this),p||(p=this._transport.getOptionalContentConfig(S));var T=this._intentStates.get(O);T||(T=Object.create(null),this._intentStates.set(O,T)),T.streamReaderCancelTimeout&&(clearTimeout(T.streamReaderCancelTimeout),T.streamReaderCancelTimeout=null);var P,L=!!(4&S);T.displayReadyCapability||(T.displayReadyCapability=Promise.withResolvers(),T.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(P=this._stats)||void 0===P||P.time("Page Request"),this._pumpOperatorList(E));var M=function(t){var e;T.renderTasks.delete(C),(n._maybeCleanupAfterRender||L)&&Rh(of,n,!0),Fh(sf,n,cf).call(n,!L),t?(C.capability.reject(t),n._abortOperatorList({intentState:T,reason:t instanceof Error?t:new Error(t)})):C.capability.resolve(),n._stats&&(n._stats.timeEnd("Rendering"),n._stats.timeEnd("Overall"),null!==(e=globalThis.Stats)&&void 0!==e&&e.enabled&&globalThis.Stats.add(n.pageNumber,n._stats))},C=new Df({callback:M,params:{canvasContext:i,viewport:a,transform:h,background:d},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:g,operatorList:T.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!L,pdfBug:this._pdfBug,pageColors:b});((r=T).renderTasks||(r.renderTasks=new Set)).add(C);var j=C.task;return Promise.all([T.displayReadyCapability.promise,p]).then((function(t){var e,r=Lh(t,2),i=r[0],a=r[1];if(n.destroyed)M();else{if(null===(e=n._stats)||void 0===e||e.time("Rendering"),!(a.renderingIntent&S))throw new Error("Must use the same \`intent\`-argument when calling the \`PDFPageProxy.render\` and \`PDFDocumentProxy.getOptionalContentConfig\` methods.");C.initializeGraphics({transparency:i,optionalContentConfig:a}),C.operatorListChanged()}})).catch(M),j}},{key:"getOperatorList",value:function(){var t,e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.intent,a=void 0===i?"display":i,o=n.annotationMode,s=void 0===o?x.ENABLE:o,u=n.printAnnotationStorage,c=void 0===u?null:u,l=n.isEditing,h=void 0!==l&&l,f=this._transport.getRenderingIntent(a,s,c,h,!0),d=this._intentStates.get(f.cacheKey);return d||(d=Object.create(null),this._intentStates.set(f.cacheKey,d)),d.opListReadCapability||((t=Object.create(null)).operatorListChanged=function(){d.operatorList.lastChunk&&(d.opListReadCapability.resolve(d.operatorList),d.renderTasks.delete(t))},d.opListReadCapability=Promise.withResolvers(),((e=d).renderTasks||(e.renderTasks=new Set)).add(t),d.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(r=this._stats)||void 0===r||r.time("Page Request"),this._pumpOperatorList(f)),d.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.includeMarkedContent,r=void 0!==e&&e,n=t.disableNormalization,i=void 0!==n&&n;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===r,disableNormalization:!0===i},{highWaterMark:100,size:t=>t.items.length})}},{key:"getTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((function(t){return Eh.textContent(t)}));var e=this.streamTextContent(t);return new Promise((function(t,r){var n=e.getReader(),i={items:[],styles:Object.create(null),lang:null};!function e(){n.read().then((function(r){var n,a,o=r.value;r.done?t(i):(null!==(n=i.lang)&&void 0!==n||(i.lang=o.lang),Object.assign(i.styles,o.styles),(a=i.items).push.apply(a,function(t){return function(t){if(Array.isArray(t))return Wh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Nh(t)||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.")}()}(o.items)),e())}),r)}()}))}},{key:"getStructTree",value:function(){return this._transport.getStructTree(this._pageIndex)}},{key:"_destroy",value:function(){this.destroyed=!0;var t,e=[],r=Dh(this._intentStates.values());try{for(r.s();!(t=r.n()).done;){var n=t.value;if(this._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),!n.opListReadCapability){var i,a=Dh(n.renderTasks);try{for(a.s();!(i=a.n()).done;){var o=i.value;e.push(o.completed),o.cancel()}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){r.e(t)}finally{r.f()}return this.objs.clear(),Rh(of,this,!1),Fh(sf,this,lf).call(this),Promise.all(e)}},{key:"cleanup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Rh(of,this,!0);var e=Fh(sf,this,cf).call(this,!1);return t&&e&&this._stats&&(this._stats=new Se),e}},{key:"_startRenderPage",value:function(t,e){var r,n,i=this._intentStates.get(e);i&&(null===(r=this._stats)||void 0===r||r.timeEnd("Page Request"),null===(n=i.displayReadyCapability)||void 0===n||n.resolve(t))}},{key:"_renderPageChunk",value:function(t,e){for(var r=0,n=t.length;r0)return;if(n instanceof we){var o=100;return n.extraDelay>0&&n.extraDelay<1e3&&(o+=n.extraDelay),void(r.streamReaderCancelTimeout=setTimeout((function(){r.streamReaderCancelTimeout=null,e._abortOperatorList({intentState:r,reason:n,force:!0})}),o))}}if(r.streamReader.cancel(new Y(n.message)).catch((function(){})),r.streamReader=null,!this._transport.destroyed){var s,u=Dh(this._intentStates);try{for(u.s();!(s=u.n()).done;){var c=Lh(s.value,2),l=c[0];if(c[1]===r){this._intentStates.delete(l);break}}}catch(t){u.e(t)}finally{u.f()}this.cleanup()}}}},{key:"stats",get:function(){return this._stats}}]);var t}();function cf(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Fh(sf,this,lf).call(this),!Ih(of,this)||this.destroyed)return!1;if(e)return Rh(af,this,setTimeout((function(){Rh(af,t,null),Fh(sf,t,cf).call(t,!1)}),5e3)),!1;var r,n=Dh(this._intentStates.values());try{for(n.s();!(r=n.n()).done;){var i=r.value,a=i.renderTasks,o=i.operatorList;if(a.size>0||!o.lastChunk)return!1}}catch(t){n.e(t)}finally{n.f()}return this._intentStates.clear(),this.objs.clear(),Rh(of,this,!1),!0}function lf(){Ih(af,this)&&(clearTimeout(Ih(af,this)),Rh(af,this,null))}var hf=new WeakMap,ff=new WeakMap,df=function(){return Vh((function t(){Uh(this,t),Ch(this,hf,new Set),Ch(this,ff,Promise.resolve())}),[{key:"postMessage",value:function(t,e){var r=this,n={data:structuredClone(t,e?{transfer:e}:null)};Ih(ff,this).then((function(){var t,e=Dh(Ih(hf,r));try{for(e.s();!(t=e.n()).done;)t.value.call(r,n)}catch(t){e.e(t)}finally{e.f()}}))}},{key:"addEventListener",value:function(t,e){Ih(hf,this).add(e)}},{key:"removeEventListener",value:function(t,e){Ih(hf,this).delete(e)}},{key:"terminate",value:function(){Ih(hf,this).clear()}}])}(),vf=new WeakSet,pf=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.name,n=void 0===r?null:r,i=e.port,a=void 0===i?null:i,o=e.verbosity,s=void 0===o?j():o;if(Uh(this,t),Mh(this,vf),this.name=n,this.destroyed=!1,this.verbosity=s,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,a){var u;if(null!==(u=wf._)&&void 0!==u&&u.has(a))throw new Error("Cannot use more than one PDFWorker per port.");return(wf._||(wf._=new WeakMap)).set(a,this),void this._initializeFromPort(a)}this._initialize()}return Vh(t,[{key:"promise",get:function(){return m?Promise.all([cs.promise,this._readyCapability.promise]):this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}},{key:"_initializeFromPort",value:function(t){this._port=t,this._messageHandler=new Tu("main","worker",t),this._messageHandler.on("ready",(function(){})),Fh(vf,this,yf).call(this)}},{key:"_initialize",value:function(){var e=this;if(bf._||gf())this._setupFakeWorker();else{var r=t.workerSrc;try{t._isSameOrigin(window.location.href,r)||(r=t._createCDNWrapper(new URL(r,window.location).href));var n=new Worker(r,{type:"module"}),i=new Tu("main","worker",n),a=function(){o.abort(),i.destroy(),n.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},o=new AbortController;n.addEventListener("error",(function(){e._webWorker||a()}),{signal:o.signal}),i.on("test",(function(t){o.abort(),!e.destroyed&&t?(e._messageHandler=i,e._port=n,e._webWorker=n,Fh(vf,e,yf).call(e)):a()})),i.on("ready",(function(t){if(o.abort(),e.destroyed)a();else try{s()}catch(t){e._setupFakeWorker()}}));var s=function(){var t=new Uint8Array;i.send("test",t,[t.buffer])};return void s()}catch(t){I("The worker has been disabled.")}this._setupFakeWorker()}}},{key:"_setupFakeWorker",value:function(){var e=this;bf._||(R("Setting up fake worker."),bf._=!0),t._setupFakeWorkerGlobal.then((function(t){var r,n;if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var i=new df;e._port=i;var a="fake".concat((mf._=(r=mf._,n=r++,r),n)),o=new Tu(a+"_worker",a,i);t.setup(o,i),e._messageHandler=new Tu(a,a+"_worker",i),Fh(vf,e,yf).call(e)}})).catch((function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))}))}},{key:"destroy",value:function(){var t;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),null===(t=wf._)||void 0===t||t.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}}],[{key:"fromPort",value:function(e){var r;if(null==e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");var n=null===(r=Fh(t,this,wf)._)||void 0===r?void 0:r.get(e.port);if(n){if(n._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\\nPlease remember to await \`PDFDocumentLoadingTask.destroy()\`-calls.");return n}return new t(e)}},{key:"workerSrc",get:function(){if(mu.workerSrc)return mu.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}},{key:"_setupFakeWorkerGlobal",get:function(){var e=this,r=function(){var r=Hh(Bh().mark((function r(){var n;return Bh().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Ph(t,e,gf)){r.next=2;break}return r.abrupt("return",Ph(t,e,gf));case 2:return r.next=4,import(e.workerSrc);case 4:return n=r.sent,r.abrupt("return",n.WorkerMessageHandler);case 6:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();return W(this,"_setupFakeWorkerGlobal",r())}}])}();function yf(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}function gf(t){try{var e;return(null===(e=globalThis.pdfjsWorker)||void 0===e?void 0:e.WorkerMessageHandler)||null}catch(t){return null}}_h=pf;var mf={_:0},bf={_:!1},wf={_:void 0};m&&(bf._=Fh(_h,_h,!0),mu.workerSrc||(mu.workerSrc="./pdf.worker.mjs")),_h._isSameOrigin=function(t,e){var r;try{if(!(r=new URL(t)).origin||"null"===r.origin)return!1}catch(t){return!1}var n=new URL(e,r);return r.origin===n.origin},_h._createCDNWrapper=function(t){var e='await import("'.concat(t,'");');return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))};var kf=new WeakMap,xf=new WeakMap,Af=new WeakMap,_f=new WeakMap,Ef=new WeakMap,Sf=new WeakSet,Of=function(){return Vh((function t(e,r,n,i,a){Uh(this,t),Mh(this,Sf),Ch(this,kf,new Map),Ch(this,xf,new Map),Ch(this,Af,new Map),Ch(this,_f,new Map),Ch(this,Ef,null),this.messageHandler=e,this.loadingTask=r,this.commonObjs=new Cf,this.fontLoader=new Yo({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=a.canvasFactory,this.filterFactory=a.filterFactory,this.cMapReaderFactory=a.cMapReaderFactory,this.standardFontDataFactory=a.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}),[{key:"annotationStorage",get:function(){return W(this,"annotationStorage",new Mo)}},{key:"getRenderingIntent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.ENABLE,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=2,o=So;switch(t){case"any":a=1;break;case"display":break;case"print":a=4;break;default:R("getRenderingIntent - invalid intent: ".concat(t))}var s=4&a&&r instanceof Io?r:this.annotationStorage;switch(e){case x.DISABLE:a+=64;break;case x.ENABLE:break;case x.ENABLE_FORMS:a+=16;break;case x.ENABLE_STORAGE:a+=32,o=s.serializable;break;default:R("getRenderingIntent - invalid annotationMode: ".concat(e))}n&&(a+=128),i&&(a+=256);var u=s.modifiedIds,c=u.ids,l=u.hash;return{renderingIntent:a,cacheKey:[a,o.hash,l].join("_"),annotationStorageSerializable:o,modifiedIds:c}}},{key:"destroy",value:function(){var t,e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),null===(t=Ih(Ef,this))||void 0===t||t.reject(new Error("Worker was destroyed during onPassword callback"));var r,n=[],i=Dh(Ih(xf,this).values());try{for(i.s();!(r=i.n()).done;){var a=r.value;n.push(a._destroy())}}catch(t){i.e(t)}finally{i.f()}Ih(xf,this).clear(),Ih(Af,this).clear(),Ih(_f,this).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();var o=this.messageHandler.sendWithPromise("Terminate",null);return n.push(o),Promise.all(n).then((function(){var t;e.commonObjs.clear(),e.fontLoader.clear(),Ih(kf,e).clear(),e.filterFactory.destroy(),uh.cleanup(),null===(t=e._networkStream)||void 0===t||t.cancelAllRequests(new Y("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 t=this,e=this.messageHandler,r=this.loadingTask;e.on("GetReader",(function(e,r){D(t._networkStream,"GetReader - no \`IPDFStream\` instance available."),t._fullReader=t._networkStream.getFullReader(),t._fullReader.onProgress=function(e){t._lastProgress={loaded:e.loaded,total:e.total}},r.onPull=function(){t._fullReader.read().then((function(t){var e=t.value;t.done?r.close():(D(e instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(e),1,[e]))})).catch((function(t){r.error(t)}))},r.onCancel=function(e){t._fullReader.cancel(e),r.ready.catch((function(e){if(!t.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(function(e){var n=Promise.withResolvers(),i=t._fullReader;return i.headersReady.then((function(){var e;i.isStreamingSupported&&i.isRangeSupported||(t._lastProgress&&(null===(e=r.onProgress)||void 0===e||e.call(r,t._lastProgress)),i.onProgress=function(t){var e;null===(e=r.onProgress)||void 0===e||e.call(r,{loaded:t.loaded,total:t.total})});n.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",(function(e,r){D(t._networkStream,"GetRangeReader - no \`IPDFStream\` instance available.");var n=t._networkStream.getRangeReader(e.begin,e.end);n?(r.onPull=function(){n.read().then((function(t){var e=t.value;t.done?r.close():(D(e instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(e),1,[e]))})).catch((function(t){r.error(t)}))},r.onCancel=function(e){n.cancel(e),r.ready.catch((function(e){if(!t.destroyed)throw e}))}):r.close()})),e.on("GetDoc",(function(e){var n=e.pdfInfo;t._numPages=n.numPages,t._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,r._capability.resolve(new nf(n,t))})),e.on("DocException",(function(t){var e;switch(t.name){case"PasswordException":e=new G(t.message,t.code);break;case"InvalidPDFException":e=new U(t.message);break;case"MissingPDFException":e=new z(t.message);break;case"UnexpectedResponseException":e=new V(t.message,t.status);break;case"UnknownErrorException":e=new H(t.message,t.details);break;default:F("DocException - expected a valid Error.")}r._capability.reject(e)})),e.on("PasswordRequest",(function(e){if(Rh(Ef,t,Promise.withResolvers()),r.onPassword)try{r.onPassword((function(e){e instanceof Error?Ih(Ef,t).reject(e):Ih(Ef,t).resolve({password:e})}),e.code)}catch(e){Ih(Ef,t).reject(e)}else Ih(Ef,t).reject(new G(e.message,e.code));return Ih(Ef,t).promise})),e.on("DataLoaded",(function(e){var n;null===(n=r.onProgress)||void 0===n||n.call(r,{loaded:e.length,total:e.length}),t.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(function(e){t.destroyed||Ih(xf,t).get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(function(r){var n,i=Lh(r,3),a=i[0],o=i[1],s=i[2];if(t.destroyed)return null;if(t.commonObjs.has(a))return null;switch(o){case"Font":var u=t._params,c=u.disableFontFace,l=u.fontExtraProperties,h=u.pdfBug;if("error"in s){var f=s.error;R("Error during font loading: ".concat(f)),t.commonObjs.resolve(a,f);break}var d=h&&null!==(n=globalThis.FontInspector)&&void 0!==n&&n.enabled?function(t,e){return globalThis.FontInspector.fontAdded(t,e)}:null,v=new Xo(s,{disableFontFace:c,inspectFont:d});t.fontLoader.bind(v).catch((function(){return e.sendWithPromise("FontFallback",{id:a})})).finally((function(){!l&&v.data&&(v.data=null),t.commonObjs.resolve(a,v)}));break;case"CopyLocalImage":var p=s.imageRef;D(p,"The imageRef must be defined.");var y,g=Dh(Ih(xf,t).values());try{for(g.s();!(y=g.n()).done;){var m,b=Dh(y.value.objs);try{for(b.s();!(m=b.n()).done;){var w=Lh(m.value,2)[1];if((null==w?void 0:w.ref)===p)return w.dataLen?(t.commonObjs.resolve(a,structuredClone(w)),w.dataLen):null}}catch(t){b.e(t)}finally{b.f()}}}catch(t){g.e(t)}finally{g.f()}break;case"FontPath":case"Image":case"Pattern":t.commonObjs.resolve(a,s);break;default:throw new Error("Got unknown common object type ".concat(o))}return null})),e.on("obj",(function(e){var r=Lh(e,4),n=r[0],i=r[1],a=r[2],o=r[3];if(!t.destroyed){var s,u=Ih(xf,t).get(i);if(!u.objs.has(n))if(0!==u._intentStates.size)switch(a){case"Image":u.objs.resolve(n,o),(null==o?void 0:o.dataLen)>1e7&&(u._maybeCleanupAfterRender=!0);break;case"Pattern":u.objs.resolve(n,o);break;default:throw new Error("Got unknown object type ".concat(a))}else null==o||null===(s=o.bitmap)||void 0===s||s.close()}})),e.on("DocProgress",(function(e){var n;t.destroyed||null===(n=r.onProgress)||void 0===n||n.call(r,{loaded:e.loaded,total:e.total})})),e.on("FetchBuiltInCMap",(function(e){return t.destroyed?Promise.reject(new Error("Worker was destroyed.")):t.cMapReaderFactory?t.cMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the \`useWorkerFetch\` parameter."))})),e.on("FetchStandardFontData",(function(e){return t.destroyed?Promise.reject(new Error("Worker was destroyed.")):t.standardFontDataFactory?t.standardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the \`useWorkerFetch\` parameter."))}))}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"saveDocument",value:function(){var t,e,r=this;this.annotationStorage.size<=0&&R("saveDocument called while \`annotationStorage\` is empty, please use the getData-method instead.");var n=this.annotationStorage.serializable,i=n.map,a=n.transfer;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:i,filename:null!==(t=null===(e=this._fullReader)||void 0===e?void 0:e.filename)&&void 0!==t?t:null},a).finally((function(){r.annotationStorage.resetModified()}))}},{key:"getPage",value:function(t){var e=this;if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));var r=t-1,n=Ih(Af,this).get(r);if(n)return n;var i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then((function(n){if(e.destroyed)throw new Error("Transport destroyed");n.refStr&&Ih(_f,e).set(n.refStr,t);var i=new uf(r,n,e,e._params.pdfBug);return Ih(xf,e).set(r,i),i}));return Ih(Af,this).set(r,i),i}},{key:"getPageIndex",value:function(t){return Zh(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}},{key:"getAnnotations",value:function(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}},{key:"getFieldObjects",value:function(){return Fh(Sf,this,Tf).call(this,"GetFieldObjects")}},{key:"hasJSActions",value:function(){return Fh(Sf,this,Tf).call(this,"HasJSActions")}},{key:"getCalculationOrderIds",value:function(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(t){return"string"!=typeof t?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getDocJSActions",value:function(){return Fh(Sf,this,Tf).call(this,"GetDocJSActions")}},{key:"getPageJSActions",value:function(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}},{key:"getStructTree",value:function(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(t){return Fh(Sf,this,Tf).call(this,"GetOptionalContentConfig").then((function(e){return new fc(e,t)}))}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var t=this,e="GetMetadata",r=Ih(kf,this).get(e);if(r)return r;var n=this.messageHandler.sendWithPromise(e,null).then((function(e){var r,n,i,a;return{info:e[0],metadata:e[1]?new Gu(e[1]):null,contentDispositionFilename:null!==(r=null===(n=t._fullReader)||void 0===n?void 0:n.filename)&&void 0!==r?r:null,contentLength:null!==(i=null===(a=t._fullReader)||void 0===a?void 0:a.contentLength)&&void 0!==i?i:null}}));return Ih(kf,this).set(e,n),n}},{key:"getMarkInfo",value:function(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}},{key:"startCleanup",value:(t=Hh(Bh().mark((function t(){var e,r,n,i,a=arguments;return Bh().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=a.length>0&&void 0!==a[0]&&a[0],!this.destroyed){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,this.messageHandler.sendWithPromise("Cleanup",null);case 5:r=Dh(Ih(xf,this).values()),t.prev=6,r.s();case 8:if((n=r.n()).done){t.next=15;break}if((i=n.value).cleanup()){t.next=13;break}throw new Error("startCleanup: Page ".concat(i.pageNumber," is currently rendering."));case 13:t.next=8;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(6),r.e(t.t0);case 20:return t.prev=20,r.f(),t.finish(20);case 23:this.commonObjs.clear(),e||this.fontLoader.clear(),Ih(kf,this).clear(),this.filterFactory.destroy(!0),uh.cleanup();case 28:case"end":return t.stop()}}),t,this,[[6,17,20,23]])}))),function(){return t.apply(this,arguments)})},{key:"cachedPageNumber",value:function(t){var e;if(!Zh(t))return null;var r=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);return null!==(e=Ih(_f,this).get(r))&&void 0!==e?e:null}}]);var t}();function Tf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=Ih(kf,this).get(t);if(r)return r;var n=this.messageHandler.sendWithPromise(t,e);return Ih(kf,this).set(t,n),n}var Pf=Symbol("INITIAL_DATA"),Lf=new WeakMap,Mf=new WeakSet,Cf=function(){return Vh((function t(){Uh(this,t),Mh(this,Mf),Ch(this,Lf,Object.create(null))}),[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){var r=Fh(Mf,this,jf).call(this,t);return r.promise.then((function(){return e(r.data)})),null}var n=Ih(Lf,this)[t];if(!n||n.data===Pf)throw new Error("Requesting object that isn't resolved yet ".concat(t,"."));return n.data}},{key:"has",value:function(t){var e=Ih(Lf,this)[t];return!!e&&e.data!==Pf}},{key:"resolve",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=Fh(Mf,this,jf).call(this,t);r.data=e,r.resolve()}},{key:"clear",value:function(){for(var t in Ih(Lf,this)){var e,r=Ih(Lf,this)[t].data;null==r||null===(e=r.bitmap)||void 0===e||e.close()}Rh(Lf,this,Object.create(null))}},{key:Symbol.iterator,value:Bh().mark((function t(){var e,r;return Bh().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=Bh().keys(Ih(Lf,this));case 1:if((t.t1=t.t0()).done){t.next=10;break}if(e=t.t1.value,(r=Ih(Lf,this)[e].data)!==Pf){t.next=6;break}return t.abrupt("continue",1);case 6:return t.next=8,[e,r];case 8:t.next=1;break;case 10:case"end":return t.stop()}}),t,this)}))}])}();function jf(t){var e;return(e=Ih(Lf,this))[t]||(e[t]=Oh(Oh({},Promise.withResolvers()),{},{data:Pf}))}var If=new WeakMap,Rf=function(){return Vh((function t(e){Uh(this,t),Ch(this,If,null),Rh(If,this,e),this.onContinue=null}),[{key:"promise",get:function(){return Ih(If,this).capability.promise}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;Ih(If,this).cancel(null,t)}},{key:"separateAnnots",get:function(){var t=Ih(If,this).operatorList.separateAnnots;if(!t)return!1;var e=Ih(If,this).annotationCanvasMap;return t.form||t.canvas&&(null==e?void 0:e.size)>0}}])}(),Ff=new WeakMap,Df=function(){return Vh((function t(e){var r=e.callback,n=e.params,i=e.objs,a=e.commonObjs,o=e.annotationCanvasMap,s=e.operatorList,u=e.pageIndex,c=e.canvasFactory,l=e.filterFactory,h=e.useRequestAnimationFrame,f=void 0!==h&&h,d=e.pdfBug,v=void 0!==d&&d,p=e.pageColors,y=void 0===p?null:p;Uh(this,t),Ch(this,Ff,null),this.callback=r,this.params=n,this.objs=i,this.commonObjs=a,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=u,this.canvasFactory=c,this.filterFactory=l,this._pdfBug=v,this.pageColors=y,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===f&&"undefined"!=typeof window,this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new Rf(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}),[{key:"completed",get:function(){return this.capability.promise.catch((function(){}))}},{key:"initializeGraphics",value:function(t){var e,r,n=t.transparency,i=void 0!==n&&n,a=t.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(Nf._.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.");Nf._.add(this._canvas)}this._pdfBug&&null!==(e=globalThis.StepperManager)&&void 0!==e&&e.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var o=this.params,s=o.canvasContext,u=o.viewport,c=o.transform,l=o.background;this.gfx=new hu(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:a},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:c,viewport:u,transparency:i,background:l}),this.operatorListIdx=0,this.graphicsReady=!0,null===(r=this.graphicsReadyCallback)||void 0===r||r.call(this)}}},{key:"cancel",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.running=!1,this.cancelled=!0,null===(t=this.gfx)||void 0===t||t.endDrawing(),Ih(Ff,this)&&(window.cancelAnimationFrame(Ih(Ff,this)),Rh(Ff,this,null)),Nf._.delete(this._canvas),this.callback(e||new we("Rendering cancelled, page ".concat(this._pageIndex+1),r))}},{key:"operatorListChanged",value:function(){var t;this.graphicsReady?(null===(t=this.stepper)||void 0===t||t.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 t=this;this._useRequestAnimationFrame?Rh(Ff,this,window.requestAnimationFrame((function(){Rh(Ff,t,null),t._nextBound().catch(t._cancelBound)}))):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}},{key:"_next",value:(t=Hh(Bh().mark((function t(){return Bh().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.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(),Nf._.delete(this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})}]);var t}(),Nf={_:new WeakSet},Wf="4.7.0",Bf="";function Gf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Hf(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hf(t,e):void 0}}(t,e)||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 Hf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Qf(t,e){if(t){if("string"==typeof t)return Jf(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jf(t,e):void 0}}function Jf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0;){var f,d,v=Xf(h.at(-1),3),p=v[0],y=v[1],g=v[2];if(y+1!==p.children.length){var m=p.children[++h.at(-1)[1]];if(null!==m){var b=m.name;if("#text"!==b){var w=null!=m&&null!==(f=m.attributes)&&void 0!==f&&f.xmlns?document.createElementNS(m.attributes.xmlns,b):document.createElement(b);if(g.append(w),m.attributes&&this.setAttributes({html:w,element:m,storage:e,intent:i,linkService:r}),(null===(d=m.children)||void 0===d?void 0:d.length)>0)h.push([m,-1,w]);else if(m.value){var k=document.createTextNode(m.value);o&&Eh.shouldBuildText(b)&&c.push(k),w.append(k)}}else{var x=document.createTextNode(m.value);c.push(x),g.append(x)}}}else h.pop()}var A,_=Kf(s.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"));try{for(_.s();!(A=_.n()).done;)A.value.setAttribute("readOnly",!0)}catch(t){_.e(t)}finally{_.f()}return{textDivs:c}}},{key:"update",value:function(t){var e="matrix(".concat(t.viewport.transform.join(","),")");t.div.style.transform=e,t.div.hidden=!1}}])}();function ed(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rd(t,e,r){return(e=Td(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nd(){nd=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function id(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function ad(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){id(a,n,i,o,s,"next",t)}function s(t){id(a,n,i,o,s,"throw",t)}o(void 0)}))}}function od(t,e,r){e||(e=[]);var n=e.length++;return Object.defineProperty({},"_",{set:function(i){e[n]=i,t.apply(r,e)}})}function sd(t,e,r){return r(_d(t,e))}function ud(){return ud="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=fd(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},ud.apply(null,arguments)}function cd(t){return function(t){if(Array.isArray(t))return md(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||gd(t)||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 ld(t,e,r){return e=fd(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,hd()?Reflect.construct(e,r||[],fd(t).constructor):e.apply(t,r))}function hd(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hd=function(){return!!t})()}function fd(t){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fd(t)}function dd(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vd(t,e)}function vd(t,e){return vd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vd(t,e)}function pd(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=gd(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function yd(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||gd(t,e)||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 gd(t,e){if(t){if("string"==typeof t)return md(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?md(t,e):void 0}}function md(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&void 0!==arguments[1]?arguments[1]:{},n=r.isRenderable,i=void 0!==n&&n,a=r.ignoreBorder,o=void 0!==a&&a,s=r.createQuadrilaterals,u=void 0!==s&&s;Ed(this,t),bd(this,Fd),wd(this,jd,null),wd(this,Id,!1),wd(this,Rd,null),this.isRenderable=i,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,i&&(this.container=this._createContainer(o)),u&&this._createQuadrilaterals()}return Od(t,[{key:"_isEditable",get:function(){return this.data.isEditable}},{key:"hasPopupData",get:function(){return t._hasPopupData(this.data)}},{key:"updateEdited",value:function(t){var e;if(this.container){Ad(jd,this)||xd(jd,this,{rect:this.data.rect.slice(0)});var r=t.rect;r&&_d(Fd,this,Nd).call(this,r),null===(e=Ad(Rd,this))||void 0===e||e.popup.updateEdited(t)}}},{key:"resetEdited",value:function(){var t;Ad(jd,this)&&(_d(Fd,this,Nd).call(this,Ad(jd,this).rect),null===(t=Ad(Rd,this))||void 0===t||t.popup.resetEdited(),xd(jd,this,null))}},{key:"_createContainer",value:function(t){var e=this.data,r=this.parent,n=r.page,i=r.viewport,a=document.createElement("section");a.setAttribute("data-annotation-id",e.id),this instanceof Vd||(a.tabIndex=Pd);var o=a.style;if(o.zIndex=this.parent.zIndex++,e.popupRef&&a.setAttribute("aria-haspopup","dialog"),e.alternativeText&&(a.title=e.alternativeText),e.noRotate&&a.classList.add("norotate"),!e.rect||this instanceof $d){var s=e.rotation;return e.hasOwnCanvas||0===s||this.setRotation(s,a),a}var u=Md(e.rect),c=u.width,l=u.height;if(!t&&e.borderStyle.width>0){o.borderWidth="".concat(e.borderStyle.width,"px");var h=e.borderStyle.horizontalCornerRadius,f=e.borderStyle.verticalCornerRadius;if(h>0||f>0){var d="calc(".concat(h,"px * var(--scale-factor)) / calc(").concat(f,"px * var(--scale-factor))");o.borderRadius=d}else if(this instanceof Kd){var v="calc(".concat(c,"px * var(--scale-factor)) / calc(").concat(l,"px * var(--scale-factor))");o.borderRadius=v}switch(e.borderStyle.style){case 1:o.borderStyle="solid";break;case 2:o.borderStyle="dashed";break;case 3:R("Unimplemented border style: beveled");break;case 4:R("Unimplemented border style: inset");break;case 5:o.borderBottomStyle="solid"}var p=e.borderColor||null;p?(xd(Id,this,!0),o.borderColor=Z.makeHexColor(0|p[0],0|p[1],0|p[2])):o.borderWidth=0}var y=Z.normalizeRect([e.rect[0],n.view[3]-e.rect[1]+n.view[1],e.rect[2],n.view[3]-e.rect[3]+n.view[1]]),g=i.rawDims,m=g.pageWidth,b=g.pageHeight,w=g.pageX,k=g.pageY;o.left="".concat(100*(y[0]-w)/m,"%"),o.top="".concat(100*(y[1]-k)/b,"%");var x=e.rotation;return e.hasOwnCanvas||0===x?(o.width="".concat(100*c/m,"%"),o.height="".concat(100*l/b,"%")):this.setRotation(x,a),a}},{key:"setRotation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(this.data.rect){var r,n,i=this.parent.viewport.rawDims,a=i.pageWidth,o=i.pageHeight,s=Md(this.data.rect),u=s.width,c=s.height;t%180==0?(r=100*u/a,n=100*c/o):(r=100*c/a,n=100*u/o),e.style.width="".concat(r,"%"),e.style.height="".concat(n,"%"),e.setAttribute("data-main-rotation",(360-t)%360)}}},{key:"_commonActions",get:function(){var t=this,e=function(e,r,n){var i=n.detail[e],a=i[0],o=i.slice(1);n.target.style[r]=Yf["".concat(a,"_HTML")](o),t.annotationStorage.setValue(t.data.id,{[r]:Yf["".concat(a,"_rgb")](o)})};return W(this,"_commonActions",{display:function(e){var r=e.detail.display,n=r%2==1;t.container.style.visibility=n?"hidden":"visible",t.annotationStorage.setValue(t.data.id,{noView:n,noPrint:1===r||2===r})},print:function(e){t.annotationStorage.setValue(t.data.id,{noPrint:!e.detail.print})},hidden:function(e){var r=e.detail.hidden;t.container.style.visibility=r?"hidden":"visible",t.annotationStorage.setValue(t.data.id,{noPrint:r,noView:r})},focus:function(t){setTimeout((function(){return t.target.focus({preventScroll:!1})}),0)},userName:function(t){t.target.title=t.detail.userName},readonly:function(t){t.target.disabled=t.detail.readonly},required:function(e){t._setRequired(e.target,e.detail.required)},bgColor:function(t){e("bgColor","backgroundColor",t)},fillColor:function(t){e("fillColor","backgroundColor",t)},fgColor:function(t){e("fgColor","color",t)},textColor:function(t){e("textColor","color",t)},borderColor:function(t){e("borderColor","borderColor",t)},strokeColor:function(t){e("strokeColor","borderColor",t)},rotation:function(e){var r=e.detail.rotation;t.setRotation(r),t.annotationStorage.setValue(t.data.id,{rotation:r})}})}},{key:"_dispatchEventFromSandbox",value:function(t,e){for(var r=this._commonActions,n=0,i=Object.keys(e.detail);n','')],this.container.classList.add("hasBorder")}var y=a-n,g=o-i,m=this.svgFactory,b=m.createElement("svg");b.classList.add("quadrilateralsContainer"),b.setAttribute("width",0),b.setAttribute("height",0);var w=m.createElement("defs");b.append(w);var k=m.createElement("clipPath"),x="clippath_".concat(this.data.id);k.setAttribute("id",x),k.setAttribute("clipPathUnits","objectBoundingBox"),w.append(k);for(var A=2,_=t.length;A<_;A+=8){var E,S=t[A],O=t[A+1],T=t[A+2],P=t[A+3],L=m.createElement("rect"),M=(T-n)/y,C=(o-O)/g,j=(S-T)/y,I=(O-P)/g;L.setAttribute("x",M),L.setAttribute("y",C),L.setAttribute("width",j),L.setAttribute("height",I),k.append(L),null===(E=f)||void 0===E||E.push(''))}Ad(Id,this)&&(f.push("')"),d.backgroundImage=f.join("")),this.container.append(b),this.container.style.clipPath="url(#".concat(x,")")}}}},{key:"_createPopup",value:function(){var t=this.container,e=this.data;t.setAttribute("aria-haspopup","dialog");var r=xd(Rd,this,new $d({data:{color:e.color,titleObj:e.titleObj,modificationDate:e.modificationDate,contentsObj:e.contentsObj,richText:e.richText,parentRect:e.rect,borderStyle:0,id:"popup_".concat(e.id),rotation:e.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(r.render())}},{key:"render",value:function(){F("Abstract method \`AnnotationElement.render\` called")}},{key:"_getElementsByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[];if(this._fieldObjects){var n=this._fieldObjects[t];if(n){var i,a=pd(n);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.page,u=o.id,c=o.exportValues;if(-1!==s&&u!==e){var l="string"==typeof c?c:null,h=document.querySelector('[data-element-id="'.concat(u,'"]'));!h||Ld.has(h)?r.push({id:u,exportValue:l,domElement:h}):R("_getElementsByName - element not allowed: ".concat(u))}}}catch(t){a.e(t)}finally{a.f()}}return r}var f,d=pd(document.getElementsByName(t));try{for(d.s();!(f=d.n()).done;){var v=f.value,p=v.exportValue,y=v.getAttribute("data-element-id");y!==e&&Ld.has(v)&&r.push({id:y,exportValue:p,domElement:v})}}catch(t){d.e(t)}finally{d.f()}return r}},{key:"show",value:function(){var t;this.container&&(this.container.hidden=!1),null===(t=this.popup)||void 0===t||t.maybeShow()}},{key:"hide",value:function(){var t;this.container&&(this.container.hidden=!0),null===(t=this.popup)||void 0===t||t.forceHide()}},{key:"getElementsToTriggerPopup",value:function(){return this.container}},{key:"addHighlightArea",value:function(){var t=this.getElementsToTriggerPopup();if(Array.isArray(t)){var e,r=pd(t);try{for(r.s();!(e=r.n()).done;)e.value.classList.add("highlightArea")}catch(t){r.e(t)}finally{r.f()}}else t.classList.add("highlightArea")}},{key:"_editOnDoubleClick",value:function(){var t=this;if(this._isEditable){var e=this.annotationEditorType,r=this.data.id;this.container.addEventListener("dblclick",(function(){var n;null===(n=t.linkService.eventBus)||void 0===n||n.dispatch("switchannotationeditormode",{source:t,mode:e,editId:r})}))}}}],[{key:"_hasPopupData",value:function(t){var e=t.titleObj,r=t.contentsObj,n=t.richText;return!!(null!=e&&e.str||null!=r&&r.str||null!=n&&n.str)}}])}();function Nd(t){var e=this.container.style,r=this.data,n=r.rect,i=r.rotation,a=this.parent.viewport.rawDims,o=a.pageWidth,s=a.pageHeight,u=a.pageX,c=a.pageY;null==n||n.splice.apply(n,[0,4].concat(cd(t)));var l=Md(t),h=l.width,f=l.height;e.left="".concat(100*(t[0]-u)/o,"%"),e.top="".concat(100*(s-t[3]+c)/s,"%"),0===i?(e.width="".concat(100*h/o,"%"),e.height="".concat(100*f/s,"%")):this.setRotation(i)}var Wd=new WeakSet,Bd=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Ed(this,e),bd(r=ld(this,e,[t,{isRenderable:!0,ignoreBorder:!(null==n||!n.ignoreBorder),createQuadrilaterals:!0}]),Wd),r.isTooltipOnly=t.data.isTooltipOnly,r}return dd(e,Dd),Od(e,[{key:"render",value:function(){var t=this.data,e=this.linkService,r=document.createElement("a");r.setAttribute("data-element-id",t.id);var n=!1;return t.url?(e.addLinkAttributes(r,t.url,t.newWindow),n=!0):t.action?(this._bindNamedAction(r,t.action),n=!0):t.attachment?(_d(Wd,this,Hd).call(this,r,t.attachment,t.attachmentDest),n=!0):t.setOCGState?(_d(Wd,this,Ud).call(this,r,t.setOCGState),n=!0):t.dest?(this._bindLink(r,t.dest),n=!0):(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(r,t),n=!0),t.resetForm?(this._bindResetFormAction(r,t.resetForm),n=!0):this.isTooltipOnly&&!n&&(this._bindLink(r,""),n=!0)),this.container.classList.add("linkAnnotation"),n&&this.container.append(r),this.container}},{key:"_bindLink",value:function(t,e){var r=this;t.href=this.linkService.getDestinationHash(e),t.onclick=function(){return e&&r.linkService.goToDestination(e),!1},(e||""===e)&&_d(Wd,this,Gd).call(this)}},{key:"_bindNamedAction",value:function(t,e){var r=this;t.href=this.linkService.getAnchorUrl(""),t.onclick=function(){return r.linkService.executeNamedAction(e),!1},_d(Wd,this,Gd).call(this)}},{key:"_bindJSAction",value:function(t,e){var r=this;t.href=this.linkService.getAnchorUrl("");for(var n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),i=function(){var i=o[a],s=n.get(i);if(!s)return 1;t[s]=function(){var t;return null===(t=r.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:r,detail:{id:e.id,name:i}}),!1}},a=0,o=Object.keys(e.actions);a2&&void 0!==arguments[2]?arguments[2]:null;t.href=this.linkService.getAnchorUrl(""),e.description&&(t.title=e.description),t.onclick=function(){var t;return null===(t=r.downloadManager)||void 0===t||t.openOrDownloadData(e.content,e.filename,n),!1},_d(Wd,this,Gd).call(this)}function Ud(t,e){var r=this;t.href=this.linkService.getAnchorUrl(""),t.onclick=function(){return r.linkService.executeSetOCGState(e),!1},_d(Wd,this,Gd).call(this)}var zd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:!0}])}return dd(e,Dd),Od(e,[{key:"render",value:function(){this.container.classList.add("textAnnotation");var t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}])}(),Vd=function(t){function e(){return Ed(this,e),ld(this,e,arguments)}return dd(e,Dd),Od(e,[{key:"render",value:function(){return this.container}},{key:"showElementAndHideCanvas",value:function(t){var e;this.data.hasOwnCanvas&&("CANVAS"===(null===(e=t.previousSibling)||void 0===e?void 0:e.nodeName)&&(t.previousSibling.hidden=!0),t.hidden=!1)}},{key:"_getKeyModifier",value:function(t){return J.platform.isMac?t.metaKey:t.ctrlKey}},{key:"_setEventListener",value:function(t,e,r,n,i){var a=this;r.includes("mouse")?t.addEventListener(r,(function(t){var e;null===(e=a.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:a,detail:{id:a.data.id,name:n,value:i(t),shift:t.shiftKey,modifier:a._getKeyModifier(t)}})})):t.addEventListener(r,(function(t){var o;if("blur"===r){if(!e.focused||!t.relatedTarget)return;e.focused=!1}else if("focus"===r){if(e.focused)return;e.focused=!0}i&&(null===(o=a.linkService.eventBus)||void 0===o||o.dispatch("dispatcheventinsandbox",{source:a,detail:{id:a.data.id,name:n,value:i(t)}}))}))}},{key:"_setEventListeners",value:function(t,e,r,n){var i,a=pd(r);try{for(a.s();!(i=a.n()).done;){var o,s,u,c=yd(i.value,2),l=c[0],h=c[1];("Action"===h||null!==(o=this.data.actions)&&void 0!==o&&o[h])&&("Focus"!==h&&"Blur"!==h||e||(e={focused:!1}),this._setEventListener(t,e,l,h,n),"Focus"!==h||null!==(s=this.data.actions)&&void 0!==s&&s.Blur?"Blur"!==h||null!==(u=this.data.actions)&&void 0!==u&&u.Focus||this._setEventListener(t,e,"focus","Focus",null):this._setEventListener(t,e,"blur","Blur",null))}}catch(t){a.e(t)}finally{a.f()}}},{key:"_setBackgroundColor",value:function(t){var e=this.data.backgroundColor||null;t.style.backgroundColor=null===e?"transparent":Z.makeHexColor(e[0],e[1],e[2])}},{key:"_setTextStyle",value:function(t){var e,r=this.data.defaultAppearanceData.fontColor,n=this.data.defaultAppearanceData.fontSize||9,i=t.style,a=function(t){return Math.round(10*t)/10};if(this.data.multiLine){var o=Math.abs(this.data.rect[3]-this.data.rect[1]-2),s=o/(Math.round(o/(k*n))||1);e=Math.min(n,a(s/k))}else{var u=Math.abs(this.data.rect[3]-this.data.rect[1]-2);e=Math.min(n,a(u/k))}i.fontSize="calc(".concat(e,"px * var(--scale-factor))"),i.color=Z.makeHexColor(r[0],r[1],r[2]),null!==this.data.textAlignment&&(i.textAlign=["left","center","right"][this.data.textAlignment])}},{key:"_setRequired",value:function(t,e){e?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",e)}}])}(),qd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue}])}return dd(e,Vd),Od(e,[{key:"setPropertyOnSiblings",value:function(t,e,r,n){var i,a=this.annotationStorage,o=pd(this._getElementsByName(t.name,t.id));try{for(o.s();!(i=o.n()).done;){var s=i.value;s.domElement&&(s.domElement[e]=r),a.setValue(s.id,{[n]:r})}}catch(t){o.e(t)}finally{o.f()}}},{key:"render",value:function(){var t=this,e=this.annotationStorage,r=this.data.id;this.container.classList.add("textWidgetAnnotation");var n=null;if(this.renderForms){var i,a=e.getValue(r,{value:this.data.fieldValue}),o=a.value||"",s=e.getValue(r,{charLimit:this.data.maxLen}).charLimit;s&&o.length>s&&(o=o.slice(0,s));var u=a.formattedValue||(null===(i=this.data.textContent)||void 0===i?void 0:i.join("\\n"))||null;u&&this.data.comb&&(u=u.replaceAll(/\\s+/g,""));var c,l,h={userValue:o,formattedValue:u,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?((n=document.createElement("textarea")).textContent=null!==(c=u)&&void 0!==c?c:o,this.data.doNotScroll&&(n.style.overflowY="hidden")):((n=document.createElement("input")).type="text",n.setAttribute("value",null!==(l=u)&&void 0!==l?l:o),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),Ld.add(n),n.setAttribute("data-element-id",r),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=Pd,this._setRequired(n,this.data.required),s&&(n.maxLength=s),n.addEventListener("input",(function(i){e.setValue(r,{value:i.target.value}),t.setPropertyOnSiblings(n,"value",i.target.value,"value"),h.formattedValue=null})),n.addEventListener("resetform",(function(e){var r,i=null!==(r=t.data.defaultFieldValue)&&void 0!==r?r:"";n.value=h.userValue=i,h.formattedValue=null}));var f=function(t){var e=h.formattedValue;null!=e&&(t.target.value=e),t.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var d;n.addEventListener("focus",(function(e){var r;if(!h.focused){var n=e.target;h.userValue&&(n.value=h.userValue),h.lastCommittedValue=n.value,h.commitKey=1,null!==(r=t.data.actions)&&void 0!==r&&r.Focus||(h.focused=!0)}})),n.addEventListener("updatefromsandbox",(function(n){t.showElementAndHideCanvas(n.target);var i={value(t){var n;h.userValue=null!==(n=t.detail.value)&&void 0!==n?n:"",e.setValue(r,{value:h.userValue.toString()}),t.target.value=h.userValue},formattedValue(t){var n=t.detail.formattedValue;h.formattedValue=n,null!=n&&t.target!==document.activeElement&&(t.target.value=n),e.setValue(r,{formattedValue:n})},selRange(t){var e;(e=t.target).setSelectionRange.apply(e,cd(t.detail.selRange))},charLimit:function(n){var i,a=n.detail.charLimit,o=n.target;if(0!==a){o.setAttribute("maxLength",a);var s=h.userValue;!s||s.length<=a||(s=s.slice(0,a),o.value=h.userValue=s,e.setValue(r,{value:s}),null===(i=t.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:t,detail:{id:r,name:"Keystroke",value:s,willCommit:!0,commitKey:1,selStart:o.selectionStart,selEnd:o.selectionEnd}}))}else o.removeAttribute("maxLength")}};t._dispatchEventFromSandbox(i,n)})),n.addEventListener("keydown",(function(e){var n;h.commitKey=1;var i=-1;if("Escape"===e.key?i=0:"Enter"!==e.key||t.data.multiLine?"Tab"===e.key&&(h.commitKey=3):i=2,-1!==i){var a=e.target.value;h.lastCommittedValue!==a&&(h.lastCommittedValue=a,h.userValue=a,null===(n=t.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:t,detail:{id:r,name:"Keystroke",value:a,willCommit:!0,commitKey:i,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}}));var v=f;f=null,n.addEventListener("blur",(function(e){var n;if(h.focused&&e.relatedTarget){null!==(n=t.data.actions)&&void 0!==n&&n.Blur||(h.focused=!1);var i,a=e.target.value;h.userValue=a,h.lastCommittedValue!==a&&(null===(i=t.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:t,detail:{id:r,name:"Keystroke",value:a,willCommit:!0,commitKey:h.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}})),v(e)}})),null!==(d=this.data.actions)&&void 0!==d&&d.Keystroke&&n.addEventListener("beforeinput",(function(e){var n;h.lastCommittedValue=null;var i=e.data,a=e.target,o=a.value,s=a.selectionStart,u=a.selectionEnd,c=s,l=u;switch(e.inputType){case"deleteWordBackward":var f=o.substring(0,s).match(/\\w*[^\\w]*$/);f&&(c-=f[0].length);break;case"deleteWordForward":var d=o.substring(s).match(/^[^\\w]*\\w*/);d&&(l+=d[0].length);break;case"deleteContentBackward":s===u&&(c-=1);break;case"deleteContentForward":s===u&&(l+=1)}e.preventDefault(),null===(n=t.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:t,detail:{id:r,name:"Keystroke",value:o,change:i||"",willCommit:!1,selStart:c,selEnd:l}})})),this._setEventListeners(n,h,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(t){return t.target.value}))}if(f&&n.addEventListener("blur",f),this.data.comb){var p=(this.data.rect[2]-this.data.rect[0])/s;n.classList.add("comb"),n.style.letterSpacing="calc(".concat(p,"px * var(--scale-factor) - 1ch)")}}else(n=document.createElement("div")).textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell",this.data.hasOwnCanvas&&(n.hidden=!0);return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}])}(),Yd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:!!t.data.hasOwnCanvas}])}return dd(e,Vd),Od(e)}(),Xd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:t.renderForms}])}return dd(e,Vd),Od(e,[{key:"render",value:function(){var t=this,e=this.annotationStorage,r=this.data,n=r.id,i=e.getValue(n,{value:r.exportValue===r.fieldValue}).value;"string"==typeof i&&(i="Off"!==i,e.setValue(n,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");var a=document.createElement("input");return Ld.add(a),a.setAttribute("data-element-id",n),a.disabled=r.readOnly,this._setRequired(a,this.data.required),a.type="checkbox",a.name=r.fieldName,i&&a.setAttribute("checked",!0),a.setAttribute("exportValue",r.exportValue),a.tabIndex=Pd,a.addEventListener("change",(function(i){var a,o=i.target,s=o.name,u=o.checked,c=pd(t._getElementsByName(s,n));try{for(c.s();!(a=c.n()).done;){var l=a.value,h=u&&l.exportValue===r.exportValue;l.domElement&&(l.domElement.checked=h),e.setValue(l.id,{value:h})}}catch(t){c.e(t)}finally{c.f()}e.setValue(n,{value:u})})),a.addEventListener("resetform",(function(t){var e=r.defaultFieldValue||"Off";t.target.checked=e===r.exportValue})),this.enableScripting&&this.hasJSActions&&(a.addEventListener("updatefromsandbox",(function(r){var i={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};t._dispatchEventFromSandbox(i,r)})),this._setEventListeners(a,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(t){return t.target.checked}))),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}])}(),Kd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:t.renderForms}])}return dd(e,Vd),Od(e,[{key:"render",value:function(){var t=this;this.container.classList.add("buttonWidgetAnnotation","radioButton");var e=this.annotationStorage,r=this.data,n=r.id,i=e.getValue(n,{value:r.fieldValue===r.buttonValue}).value;if("string"==typeof i&&(i=i!==r.buttonValue,e.setValue(n,{value:i})),i){var a,o=pd(this._getElementsByName(r.fieldName,n));try{for(o.s();!(a=o.n()).done;){var s=a.value;e.setValue(s.id,{value:!1})}}catch(t){o.e(t)}finally{o.f()}}var u=document.createElement("input");if(Ld.add(u),u.setAttribute("data-element-id",n),u.disabled=r.readOnly,this._setRequired(u,this.data.required),u.type="radio",u.name=r.fieldName,i&&u.setAttribute("checked",!0),u.tabIndex=Pd,u.addEventListener("change",(function(r){var i,a=r.target,o=a.name,s=a.checked,u=pd(t._getElementsByName(o,n));try{for(u.s();!(i=u.n()).done;){var c=i.value;e.setValue(c.id,{value:!1})}}catch(t){u.e(t)}finally{u.f()}e.setValue(n,{value:s})})),u.addEventListener("resetform",(function(t){var e=r.defaultFieldValue;t.target.checked=null!=e&&e===r.buttonValue})),this.enableScripting&&this.hasJSActions){var c=r.buttonValue;u.addEventListener("updatefromsandbox",(function(r){var i={value:function(r){var i,a=c===r.detail.value,o=pd(t._getElementsByName(r.target.name));try{for(o.s();!(i=o.n()).done;){var s=i.value,u=a&&s.id===n;s.domElement&&(s.domElement.checked=u),e.setValue(s.id,{value:u})}}catch(t){o.e(t)}finally{o.f()}}};t._dispatchEventFromSandbox(i,r)})),this._setEventListeners(u,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(t){return t.target.checked}))}return this._setBackgroundColor(u),this._setDefaultPropertiesFromJS(u),this.container.append(u),this.container}}])}(),Qd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{ignoreBorder:t.data.hasAppearance}])}return dd(e,Bd),Od(e,[{key:"render",value:function(){var t=this,r=function(t,e,r,n){var i=ud(fd(t.prototype),"render",r);return"function"==typeof i?function(t){return i.apply(r,t)}:i}(e,0,this)([]);r.classList.add("buttonWidgetAnnotation","pushButton");var n=r.lastChild;return this.enableScripting&&this.hasJSActions&&n&&(this._setDefaultPropertiesFromJS(n),n.addEventListener("updatefromsandbox",(function(e){t._dispatchEventFromSandbox({},e)}))),r}}])}(),Jd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:t.renderForms}])}return dd(e,Vd),Od(e,[{key:"render",value:function(){var t=this;this.container.classList.add("choiceWidgetAnnotation");var e=this.annotationStorage,r=this.data.id,n=e.getValue(r,{value:this.data.fieldValue}),i=document.createElement("select");Ld.add(i),i.setAttribute("data-element-id",r),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=Pd;var a=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",(function(e){var r,n=t.data.defaultFieldValue,a=pd(i.options);try{for(a.s();!(r=a.n()).done;){var o=r.value;o.selected=o.value===n}}catch(t){a.e(t)}finally{a.f()}}));var o,s=pd(this.data.options);try{for(s.s();!(o=s.n()).done;){var u=o.value,c=document.createElement("option");c.textContent=u.displayValue,c.value=u.exportValue,n.value.includes(u.exportValue)&&(c.setAttribute("selected",!0),a=!1),i.append(c)}}catch(t){s.e(t)}finally{s.f()}var l=null;if(a){var h=document.createElement("option");h.value=" ",h.setAttribute("hidden",!0),h.setAttribute("selected",!0),i.prepend(h),l=function(){h.remove(),i.removeEventListener("input",l),l=null},i.addEventListener("input",l)}var f=function(t){var e=t?"value":"textContent",r=i.options;return i.multiple?Array.prototype.filter.call(r,(function(t){return t.selected})).map((function(t){return t[e]})):-1===r.selectedIndex?null:r[r.selectedIndex][e]},d=f(!1),v=function(t){var e=t.target.options;return Array.prototype.map.call(e,(function(t){return{displayValue:t.textContent,exportValue:t.value}}))};return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",(function(n){var a={value(t){var n;null===(n=l)||void 0===n||n();var a,o=t.detail.value,s=new Set(Array.isArray(o)?o:[o]),u=pd(i.options);try{for(u.s();!(a=u.n()).done;){var c=a.value;c.selected=s.has(c.value)}}catch(t){u.e(t)}finally{u.f()}e.setValue(r,{value:f(!0)}),d=f(!1)},multipleSelection(t){i.multiple=!0},remove(t){var n=i.options,a=t.detail.remove;if(n[a].selected=!1,i.remove(a),n.length>0){var o=Array.prototype.findIndex.call(n,(function(t){return t.selected}));-1===o&&(n[0].selected=!0)}e.setValue(r,{value:f(!0),items:v(t)}),d=f(!1)},clear(t){for(;0!==i.length;)i.remove(0);e.setValue(r,{value:null,items:[]}),d=f(!1)},insert(t){var n=t.detail.insert,a=n.index,o=n.displayValue,s=n.exportValue,u=i.children[a],c=document.createElement("option");c.textContent=o,c.value=s,u?u.before(c):i.append(c),e.setValue(r,{value:f(!0),items:v(t)}),d=f(!1)},items(t){for(var n=t.detail.items;0!==i.length;)i.remove(0);var a,o=pd(n);try{for(o.s();!(a=o.n()).done;){var s=a.value,u=s.displayValue,c=s.exportValue,l=document.createElement("option");l.textContent=u,l.value=c,i.append(l)}}catch(t){o.e(t)}finally{o.f()}i.options.length>0&&(i.options[0].selected=!0),e.setValue(r,{value:f(!0),items:v(t)}),d=f(!1)},indices(t){var n,i=new Set(t.detail.indices),a=pd(t.target.options);try{for(a.s();!(n=a.n()).done;){var o=n.value;o.selected=i.has(o.index)}}catch(t){a.e(t)}finally{a.f()}e.setValue(r,{value:f(!0)}),d=f(!1)},editable(t){t.target.disabled=!t.detail.editable}};t._dispatchEventFromSandbox(a,n)})),i.addEventListener("input",(function(n){var i,a=f(!0),o=f(!1);e.setValue(r,{value:a}),n.preventDefault(),null===(i=t.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:t,detail:{id:r,name:"Keystroke",value:d,change:o,changeEx:a,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(function(t){return t.target.value}))):i.addEventListener("input",(function(t){e.setValue(r,{value:f(!0)})})),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}])}(),$d=function(t){function e(t){var r;Ed(this,e);var n=t.data,i=t.elements;return(r=ld(this,e,[t,{isRenderable:Dd._hasPopupData(n)}])).elements=i,r.popup=null,r}return dd(e,Dd),Od(e,[{key:"render",value:function(){this.container.classList.add("popupAnnotation");var t,e=this.popup=new bv({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),r=[],n=pd(this.elements);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.popup=e,r.push(i.data.id),i.addHighlightArea()}}catch(t){n.e(t)}finally{n.f()}return this.container.setAttribute("aria-controls",r.map((function(t){return"".concat(at).concat(t)})).join(",")),this.container}}])}(),Zd=new WeakMap,tv=new WeakMap,ev=new WeakMap,rv=new WeakMap,nv=new WeakMap,iv=new WeakMap,av=new WeakMap,ov=new WeakMap,sv=new WeakMap,uv=new WeakMap,cv=new WeakMap,lv=new WeakMap,hv=new WeakMap,fv=new WeakMap,dv=new WeakMap,vv=new WeakMap,pv=new WeakMap,yv=new WeakMap,gv=new WeakMap,mv=new WeakSet,bv=function(){return Od((function t(e){var r=e.container,n=e.color,i=e.elements,a=e.titleObj,o=e.modificationDate,s=e.contentsObj,u=e.richText,c=e.parent,l=e.rect,h=e.parentRect,f=e.open;Ed(this,t),bd(this,mv),wd(this,Zd,_d(mv,this,_v).bind(this)),wd(this,tv,_d(mv,this,Tv).bind(this)),wd(this,ev,_d(mv,this,Ov).bind(this)),wd(this,rv,_d(mv,this,Sv).bind(this)),wd(this,nv,null),wd(this,iv,null),wd(this,av,null),wd(this,ov,null),wd(this,sv,null),wd(this,uv,null),wd(this,cv,null),wd(this,lv,!1),wd(this,hv,null),wd(this,fv,null),wd(this,dv,null),wd(this,vv,null),wd(this,pv,null),wd(this,yv,null),wd(this,gv,!1),xd(iv,this,r),xd(pv,this,a),xd(av,this,s),xd(vv,this,u),xd(uv,this,c),xd(nv,this,n),xd(dv,this,l),xd(cv,this,h),xd(sv,this,i),xd(ov,this,Le.toDateObject(o)),this.trigger=i.flatMap((function(t){return t.getElementsToTriggerPopup()}));var d,v=pd(this.trigger);try{for(v.s();!(d=v.n()).done;){var p=d.value;p.addEventListener("click",Ad(rv,this)),p.addEventListener("mouseenter",Ad(ev,this)),p.addEventListener("mouseleave",Ad(tv,this)),p.classList.add("popupTriggerArea")}}catch(t){v.e(t)}finally{v.f()}var y,g=pd(i);try{for(g.s();!(y=g.n()).done;){var m;null===(m=y.value.container)||void 0===m||m.addEventListener("keydown",Ad(Zd,this))}}catch(t){g.e(t)}finally{g.f()}Ad(iv,this).hidden=!0,f&&_d(mv,this,Sv).call(this)}),[{key:"render",value:function(){if(!Ad(hv,this)){var t=xd(hv,this,document.createElement("div"));if(t.className="popup",Ad(nv,this)){var e=t.style.outlineColor=Z.makeHexColor.apply(Z,cd(Ad(nv,this)));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?t.style.backgroundColor="color-mix(in srgb, ".concat(e," 30%, white)"):t.style.backgroundColor=Z.makeHexColor.apply(Z,cd(Ad(nv,this).map((function(t){return Math.floor(.7*(255-t)+t)}))))}var r=document.createElement("span");r.className="header";var n=document.createElement("h1");r.append(n);var i=Ad(pv,this);if(n.dir=i.dir,n.textContent=i.str,t.append(r),Ad(ov,this)){var a=document.createElement("span");a.classList.add("popupDate"),a.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),a.setAttribute("data-l10n-args",JSON.stringify({dateObj:Ad(ov,this).valueOf()})),r.append(a)}var o=sd(mv,this,wv);if(o)td.render({xfaHtml:o,intent:"richText",div:t}),t.lastChild.classList.add("richText","popupContent");else{var s=this._formatContents(Ad(av,this));t.append(s)}Ad(iv,this).append(t)}}},{key:"_formatContents",value:function(t){var e=t.str,r=t.dir,n=document.createElement("p");n.classList.add("popupContent"),n.dir=r;for(var i=e.split(/(?:\\r\\n?|\\n)/),a=0,o=i.length;a0}},{key:"render",value:function(){var t=ad(nd().mark((function t(e){var r,n,i,a,o,s,u,c,l,h,f,d,v,p,y,g;return nd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.annotations,Re(n=this.div,this.viewport),i=new Map,a={data:null,layer:n,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new me,annotationStorage:e.annotationStorage||new Mo,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null},o=pd(r),t.prev=6,o.s();case 8:if((s=o.n()).done){t.next=35;break}if(!(u=s.value).noHTML){t.next=12;break}return t.abrupt("continue",33);case 12:if(c=16===u.annotationType){t.next=19;break}if(l=Md(u.rect),h=l.width,f=l.height,!(h<=0||f<=0)){t.next=17;break}return t.abrupt("continue",33);case 17:t.next=23;break;case 19:if(d=i.get(u.id)){t.next=22;break}return t.abrupt("continue",33);case 22:a.elements=d;case 23:if(a.data=u,(v=Cd.create(a)).isRenderable){t.next=27;break}return t.abrupt("continue",33);case 27:return!c&&u.popupRef&&((p=i.get(u.popupRef))?p.push(v):i.set(u.popupRef,[v])),y=v.render(),u.hidden&&(y.style.visibility="hidden"),t.next=32,_d(rp,this,ip).call(this,y,u.id);case 32:v._isEditable&&(Ad(tp,this).set(v.data.id,v),null===(g=this._annotationEditorUIManager)||void 0===g||g.renderAnnotationElement(v));case 33:t.next=8;break;case 35:t.next=40;break;case 37:t.prev=37,t.t0=t.catch(6),o.e(t.t0);case 40:return t.prev=40,o.f(),t.finish(40);case 43:_d(rp,this,op).call(this);case 44:case"end":return t.stop()}}),t,this,[[6,37,40,43]])})));return function(e){return t.apply(this,arguments)}}()},{key:"update",value:function(t){var e=t.viewport,r=this.div;this.viewport=e,Re(r,{rotation:e.rotation}),_d(rp,this,op).call(this),r.hidden=!1}},{key:"getEditableAnnotations",value:function(){return Array.from(Ad(tp,this).values())}},{key:"getEditableAnnotation",value:function(t){return Ad(tp,this).get(t)}}])}();function ip(t,e){return ap.apply(this,arguments)}function ap(){return(ap=ad(nd().mark((function t(e,r){var n,i,a,o,s,u,c,l,h,f;return nd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.firstChild||e,o=a.id="".concat(at).concat(r),t.next=4,null===(n=Ad(ep,this))||void 0===n?void 0:n.getAriaAttributes(o);case 4:if(s=t.sent){u=pd(s);try{for(u.s();!(c=u.n()).done;)l=yd(c.value,2),h=l[0],f=l[1],a.setAttribute(h,f)}catch(t){u.e(t)}finally{u.f()}}this.div.append(e),null===(i=Ad($v,this))||void 0===i||i.moveElementInDOM(this.div,e,a,!1);case 8:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function op(){if(Ad(Zv,this)){var t,e=this.div,r=pd(Ad(Zv,this));try{for(r.s();!(t=r.n()).done;){var n=yd(t.value,2),i=n[0],a=n[1],o=e.querySelector('[data-annotation-id="'.concat(i,'"]'));if(o){a.className="annotationContent";var s=o.firstChild;s?"CANVAS"===s.nodeName?s.replaceWith(a):s.classList.contains("annotationContent")?s.after(a):s.before(a):o.append(a)}}}catch(t){r.e(t)}finally{r.f()}Ad(Zv,this).clear()}}function sp(){sp=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function up(t){return function(t){if(Array.isArray(t))return dp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||fp(t)||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 cp(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function lp(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=fp(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function hp(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||fp(t,e)||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 fp(t,e){if(t){if("string"==typeof t)return dp(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dp(t,e):void 0}}function dp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();var r=e._internalPadding*this.parentScale,n=this.getRect(r,r),i=Wa._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:Op(Mp,this)),a={annotationType:A.FREETEXT,color:i,fontSize:Op(Rp,this),value:Pp(Fp,this,zp).call(this),pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return t?a:this.annotationElementId&&!Pp(Fp,this,qp).call(this,a)?null:(a.id=this.annotationElementId,a)}},{key:"renderAnnotationElement",value:function(t){var r=bp(e,"renderAnnotationElement",this,3)([t]);if(this.deleted)return r;var n=r.style;n.fontSize="calc(".concat(Op(Rp,this),"px * var(--scale-factor))"),n.color=Op(Mp,this),r.replaceChildren();var i,a=lp(Op(Cp,this).split("\\n"));try{for(a.s();!(i=a.n()).done;){var o=i.value,s=document.createElement("div");s.append(o?document.createTextNode(o):document.createElement("br")),r.append(s)}}catch(t){a.e(t)}finally{a.f()}var u=e._internalPadding*this.parentScale;return t.updateEdited({rect:this.getRect(u,u),popupContent:Op(Cp,this)}),r}},{key:"resetAnnotationElement",value:function(t){bp(e,"resetAnnotationElement",this,3)([t]),t.resetEdited()}}],[{key:"_keyboardManager",get:function(){var t=e.prototype,r=function(t){return t.isEmpty()},n=Kn.TRANSLATE_SMALL,i=Kn.TRANSLATE_BIG;return W(this,"_keyboardManager",new rn([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],t.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],t.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],t._translateEmpty,{args:[-n,0],checker:r}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t._translateEmpty,{args:[-i,0],checker:r}],[["ArrowRight","mac+ArrowRight"],t._translateEmpty,{args:[n,0],checker:r}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t._translateEmpty,{args:[i,0],checker:r}],[["ArrowUp","mac+ArrowUp"],t._translateEmpty,{args:[0,-n],checker:r}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t._translateEmpty,{args:[0,-i],checker:r}],[["ArrowDown","mac+ArrowDown"],t._translateEmpty,{args:[0,n],checker:r}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t._translateEmpty,{args:[0,i],checker:r}]]))}},{key:"initialize",value:function(t,e){Wa.initialize(t,e,{strings:["pdfjs-free-text-default-content"]});var r=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(r.getPropertyValue("--freetext-padding"))}},{key:"updateDefaultParams",value:function(t,r){switch(t){case _.FREETEXT_SIZE:e._defaultFontSize=r;break;case _.FREETEXT_COLOR:e._defaultColor=r}}},{key:"defaultPropertiesToUpdate",get:function(){return[[_.FREETEXT_SIZE,e._defaultFontSize],[_.FREETEXT_COLOR,e._defaultColor||Wa._defaultLineColor]]}},{key:"deserialize",value:(r=sp().mark((function t(r,n,i){var a,o,s,u,c,l,h,f,d,v,p,y,g,m;return sp().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=null,!(r instanceof Pv)){t.next=6;break}if(s=(o=r).data,u=s.defaultAppearanceData,c=u.fontSize,l=u.fontColor,h=s.rect,f=s.rotation,d=s.id,v=s.popupRef,p=o.textContent,y=o.textPosition,g=o.parent.page.pageNumber,p&&0!==p.length){t.next=5;break}return t.abrupt("return",null);case 5:a=r={annotationType:A.FREETEXT,color:Array.from(l),fontSize:c,value:p.join("\\n"),position:y,pageIndex:g-1,rect:h.slice(0),rotation:f,id:d,deleted:!1,popupRef:v};case 6:return t.next=8,bp(e,"deserialize",this,2)([r,n,i]);case 8:return m=t.sent,Tp(Rp,m,r.fontSize),Tp(Mp,m,Z.makeHexColor.apply(Z,up(r.color))),Tp(Cp,m,Vp.call(e,r.value)),m.annotationElementId=r.id||null,m._initialData=a,t.abrupt("return",m);case 15:case"end":return t.stop()}}),t,this)})),n=function(){var t=this,e=arguments;return new Promise((function(n,i){var a=r.apply(t,e);function o(t){cp(a,n,i,o,s,"next",t)}function s(t){cp(a,n,i,o,s,"throw",t)}o(void 0)}))},function(t,e,r){return n.apply(this,arguments)})}]);var r,n}();function Np(t){var e=this,r=function(t){e.editorDiv.style.fontSize="calc(".concat(t,"px * var(--scale-factor))"),e.translate(0,-(t-Op(Rp,e))*e.parentScale),Tp(Rp,e,t),Pp(Fp,e,Gp).call(e)},n=Op(Rp,this);this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function Wp(t){var e=this,r=function(t){Tp(Mp,e,e.editorDiv.style.color=t)},n=Op(Mp,this);this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function Bp(){var t=[];this.editorDiv.normalize();var e,r=null,n=lp(this.editorDiv.childNodes);try{for(n.s();!(e=n.n()).done;){var i,a=e.value;(null===(i=r)||void 0===i?void 0:i.nodeType)===Node.TEXT_NODE&&"BR"===a.nodeName||(t.push(Hp.call(Jv,a)),r=a)}}catch(t){n.e(t)}finally{n.f()}return t.join("\\n")}function Gp(){var t,e=hp(this.parentDimensions,2),r=e[0],n=e[1];if(this.isAttachedToDOM)t=this.div.getBoundingClientRect();else{var i=this.currentLayer,a=this.div,o=a.style.display,s=a.classList.contains("hidden");a.classList.remove("hidden"),a.style.display="hidden",i.div.append(this.div),t=a.getBoundingClientRect(),a.remove(),a.style.display=o,a.classList.toggle("hidden",s)}this.rotation%180==this.parentRotation%180?(this.width=t.width/r,this.height=t.height/n):(this.width=t.height/r,this.height=t.width/n),this.fixAndSetPosition()}function Hp(t){return(t.nodeType===Node.TEXT_NODE?t.nodeValue:t.innerText).replaceAll(Lp,"")}function Up(){if(this.editorDiv.replaceChildren(),Op(Cp,this)){var t,e=lp(Op(Cp,this).split("\\n"));try{for(e.s();!(t=e.n()).done;){var r=t.value,n=document.createElement("div");n.append(r?document.createTextNode(r):document.createElement("br")),this.editorDiv.append(n)}}catch(t){e.e(t)}finally{e.f()}}}function zp(){return Op(Cp,this).replaceAll(" "," ")}function Vp(t){return t.replaceAll(" "," ")}function qp(t){var e=this._initialData,r=e.value,n=e.fontSize,i=e.color,a=e.pageIndex;return this._hasBeenMoved||t.value!==r||t.fontSize!==n||t.color.some((function(t,e){return t!==i[e]}))||t.pageIndex!==a}function Yp(t,e,r){return e=Kp(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Xp()?Reflect.construct(e,r||[],Kp(t).constructor):e.apply(t,r))}function Xp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xp=function(){return!!t})()}function Kp(t){return Kp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kp(t)}function Qp(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jp(t,e)}function Jp(t,e){return Jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jp(t,e)}function $p(t){return function(t){if(Array.isArray(t))return ry(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ey(t)||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 Zp(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||ey(t,e)||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 ty(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=ey(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function ey(t,e){if(t){if("string"==typeof t)return ry(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ry(t,e):void 0}}function ry(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];ny(this,t),sy(this,yy),uy(this,dy,void 0),uy(this,vy,[]),uy(this,py,[]);var a,o=1/0,s=-1/0,u=1/0,c=-1/0,l=Math.pow(10,-4),h=ty(e);try{for(h.s();!(a=h.n()).done;){var f=a.value,d=f.x,v=f.y,p=f.width,y=f.height,g=Math.floor((d-r)/l)*l,m=Math.ceil((d+p+r)/l)*l,b=Math.floor((v-r)/l)*l,w=Math.ceil((v+y+r)/l)*l,k=[g,b,w,!0],x=[m,b,w,!1];hy(vy,this).push(k,x),o=Math.min(o,g),s=Math.max(s,m),u=Math.min(u,b),c=Math.max(c,w)}}catch(t){h.e(t)}finally{h.f()}var A,_=s-o+2*n,E=c-u+2*n,S=o-n,O=u-n,T=hy(vy,this).at(i?-1:-2),P=[T[0],T[2]],L=ty(hy(vy,this));try{for(L.s();!(A=L.n()).done;){var M=A.value,C=Zp(M,3),j=C[0],I=C[1],R=C[2];M[0]=(j-S)/_,M[1]=(I-O)/E,M[2]=(R-O)/E}}catch(t){L.e(t)}finally{L.f()}ly(dy,this,{x:S,y:O,width:_,height:E,lastPoint:P})}),[{key:"getOutlines",value:function(){hy(vy,this).sort((function(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}));var t,e=[],r=ty(hy(vy,this));try{for(r.s();!(t=r.n()).done;){var n=t.value;n[3]?(e.push.apply(e,$p(fy(yy,this,xy).call(this,n))),fy(yy,this,wy).call(this,n)):(fy(yy,this,ky).call(this,n),e.push.apply(e,$p(fy(yy,this,xy).call(this,n))))}}catch(t){r.e(t)}finally{r.f()}return fy(yy,this,my).call(this,e)}}])}();function my(t){var e,r=[],n=new Set,i=ty(t);try{for(i.s();!(e=i.n()).done;){var a=e.value,o=Zp(a,3),s=o[0],u=o[1],c=o[2];r.push([s,u,a],[s,c,a])}}catch(t){i.e(t)}finally{i.f()}r.sort((function(t,e){return t[1]-e[1]||t[0]-e[0]}));for(var l=0,h=r.length;l0;){var y=n.values().next().value,g=Zp(y,5),m=g[0],b=g[1],w=g[2],k=g[3],x=g[4];n.delete(y);var A=m,_=b;for(v=[m,w],p.push(v);;){var E=void 0;if(n.has(k))E=k;else{if(!n.has(x))break;E=x}n.delete(E);var S=Zp(E,5);m=S[0],b=S[1],w=S[2],k=S[3],x=S[4],A!==m&&(v.push(A,_,m,_===b?b:w),A=m),_=_===b?w:b}v.push(A,_)}return new Sy(p,hy(dy,this))}function by(t){for(var e=hy(py,this),r=0,n=e.length-1;r<=n;){var i=r+n>>1,a=e[i][0];if(a===t)return i;a=0;c--){var l=Zp(hy(py,this)[c],2),h=l[0],f=l[1];if(h!==r)break;if(h===r&&f===n)return void hy(py,this).splice(c,1)}}function xy(t){for(var e=Zp(t,3),r=e[0],n=e[1],i=e[2],a=[[r,n,i]],o=fy(yy,this,by).call(this,i),s=0;s=c)if(p>l)a[h][1]=l;else{if(1===f)return[];a.splice(h,1),h--,f--}else a[h][2]=c,p>l&&a.push([r,l,p])}return a}var Ay=function(){return ay((function t(){ny(this,t)}),[{key:"toSVGPath",value:function(){throw new Error("Abstract method \`toSVGPath\` must be implemented.")}},{key:"box",get:function(){throw new Error("Abstract getter \`box\` must be implemented.")}},{key:"serialize",value:function(t,e){throw new Error("Abstract method \`serialize\` must be implemented.")}},{key:"free",get:function(){return this instanceof tg}}])}(),_y=new WeakMap,Ey=new WeakMap,Sy=function(t){function e(t,r){var n;return ny(this,e),uy(n=Yp(this,e),_y,void 0),uy(n,Ey,void 0),ly(Ey,n,t),ly(_y,n,r),n}return Qp(e,Ay),ay(e,[{key:"toSVGPath",value:function(){var t,e=[],r=ty(hy(Ey,this));try{for(r.s();!(t=r.n()).done;){var n=t.value,i=Zp(n,2),a=i[0],o=i[1];e.push("M".concat(a," ").concat(o));for(var s=2;s5&&void 0!==arguments[5]?arguments[5]:0;ny(this,t),sy(this,By),uy(this,Oy,void 0),uy(this,Ty,[]),uy(this,Py,void 0),uy(this,Ly,void 0),uy(this,My,[]),uy(this,Cy,new Float64Array(18)),uy(this,jy,void 0),uy(this,Iy,void 0),uy(this,Ry,void 0),uy(this,Fy,void 0),uy(this,Dy,void 0),uy(this,Ny,void 0),uy(this,Wy,[]),ly(Oy,this,r),ly(Ny,this,i*n),ly(Ly,this,a),hy(Cy,this).set([NaN,NaN,NaN,NaN,o,s],6),ly(Py,this,u),ly(Fy,this,zy._*n),ly(Ry,this,Vy._*n),ly(Dy,this,n),hy(Wy,this).push(o,s)}),[{key:"free",get:function(){return!0}},{key:"isEmpty",value:function(){return isNaN(hy(Cy,this)[8])}},{key:"add",value:function(t){var e,r=t.x,n=t.y;ly(jy,this,r),ly(Iy,this,n);var i=Zp(hy(Oy,this),4),a=i[0],o=i[1],s=i[2],u=i[3],c=Zp(hy(Cy,this).subarray(8,12),4),l=c[0],h=c[1],f=c[2],d=c[3],v=r-f,p=n-d,y=Math.hypot(v,p);if(y=6;y-=6)isNaN(e[y])?v.push("L".concat(e[y+4]," ").concat(e[y+5])):v.push("C".concat(e[y]," ").concat(e[y+1]," ").concat(e[y+2]," ").concat(e[y+3]," ").concat(e[y+4]," ").concat(e[y+5]));return v.push("L".concat(e[4]," ").concat(e[5]," Z")),v.join(" ")}},{key:"getOutlines",value:function(){for(var t,e,r=hy(My,this),n=hy(Ty,this),i=hy(Cy,this),a=i.subarray(4,6),o=i.subarray(16,18),s=Zp(hy(Oy,this),4),u=s[0],c=s[1],l=s[2],h=s[3],f=new Float64Array((null!==(t=null===(e=hy(Wy,this))||void 0===e?void 0:e.length)&&void 0!==t?t:0)+2),d=0,v=f.length-2;d=6;_-=6)for(var E=0;E<6;E+=2)isNaN(n[_+E])?(k[x]=k[x+1]=NaN,x+=2):(k[x]=n[_+E],k[x+1]=n[_+E+1],x+=2);return k.set([NaN,NaN,NaN,NaN,n[4],n[5]],x),new tg(k,f,hy(Oy,this),hy(Dy,this),hy(Py,this),hy(Ly,this))}}])}();function Hy(){var t=hy(Cy,this).subarray(4,6),e=hy(Cy,this).subarray(16,18),r=Zp(hy(Oy,this),4),n=r[0],i=r[1],a=r[2],o=r[3];return[(hy(jy,this)+(t[0]-e[0])/2-n)/a,(hy(Iy,this)+(t[1]-e[1])/2-i)/o,(hy(jy,this)+(e[0]-t[0])/2-n)/a,(hy(Iy,this)+(e[1]-t[1])/2-i)/o]}var Uy,zy={_:8},Vy={_:zy._+2},qy=new WeakMap,Yy=new WeakMap,Xy=new WeakMap,Ky=new WeakMap,Qy=new WeakMap,Jy=new WeakMap,$y=new WeakMap,Zy=new WeakSet,tg=function(t){function e(t,r,n,i,a,o){var s;ny(this,e),sy(s=Yp(this,e),Zy),uy(s,qy,void 0),uy(s,Yy,null),uy(s,Xy,void 0),uy(s,Ky,void 0),uy(s,Qy,void 0),uy(s,Jy,void 0),uy(s,$y,void 0),ly($y,s,t),ly(Qy,s,r),ly(qy,s,n),ly(Jy,s,i),ly(Xy,s,a),ly(Ky,s,o),fy(Zy,s,ng).call(s,o);for(var u=hy(Yy,s),c=u.x,l=u.y,h=u.width,f=u.height,d=0,v=t.length;d=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function og(t,e){if(t){if("string"==typeof t)return sg(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sg(t,e):void 0}}function sg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Hg(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Ug(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Hg(a,n,i,o,s,"next",t)}function s(t){Hg(a,n,i,o,s,"throw",t)}o(void 0)}))}}function zg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vg(t){for(var e=1;e-1?(am(bm,r,!0),om(Sm,r,Pm).call(r,t),om(Sm,r,Im).call(r)):im(lm,r)&&(am(um,r,t.anchorNode),am(cm,r,t.anchorOffset),am(vm,r,t.focusNode),am(pm,r,t.focusOffset),om(Sm,r,Tm).call(r),om(Sm,r,Im).call(r),r.rotate(r.rotation)),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$g(t,e)}(e,Wa),function(t,e,r){return e&&qg(t.prototype,e),r&&qg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"telemetryInitialData",get:function(){return{action:"added",type:im(bm,this)?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:im(_m,this),methodOfCreation:im(Em,this)}}},{key:"telemetryFinalData",get:function(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}},{key:"translateInPage",value:function(t,e){}},{key:"toolbarPosition",get:function(){return im(wm,this)}},{key:"updateParams",value:function(t,e){switch(t){case _.HIGHLIGHT_COLOR:om(Sm,this,Lm).call(this,e);break;case _.HIGHLIGHT_THICKNESS:om(Sm,this,Mm).call(this,e)}}},{key:"propertiesToUpdate",get:function(){return[[_.HIGHLIGHT_COLOR,this.color||e._defaultColor],[_.HIGHLIGHT_THICKNESS,im(_m,this)||e._defaultThickness],[_.HIGHLIGHT_FREE,im(bm,this)]]}},{key:"addEditToolbar",value:(n=Ug(Gg().mark((function t(){var r;return Gg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Kg(e,"addEditToolbar",this,3)([]);case 2:if(r=t.sent){t.next=5;break}return t.abrupt("return",null);case 5:return this._uiManager.highlightColors&&(am(fm,this,new Tg({editor:this})),r.addColorPicker(im(fm,this))),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"disableEditing",value:function(){Kg(e,"disableEditing",this,3)([]),this.div.classList.toggle("disabled",!0)}},{key:"enableEditing",value:function(){Kg(e,"enableEditing",this,3)([]),this.div.classList.toggle("disabled",!1)}},{key:"fixAndSetPosition",value:function(){return Kg(e,"fixAndSetPosition",this,3)([om(Sm,this,Nm).call(this)])}},{key:"getBaseTranslation",value:function(){return[0,0]}},{key:"getRect",value:function(t,r){return Kg(e,"getRect",this,3)([t,r,om(Sm,this,Nm).call(this)])}},{key:"onceAdded",value:function(){this.annotationElementId||this.parent.addUndoableEditor(this),this.div.focus()}},{key:"remove",value:function(){om(Sm,this,jm).call(this),this._reportTelemetry({action:"deleted"}),Kg(e,"remove",this,3)([])}},{key:"rebuild",value:function(){this.parent&&(Kg(e,"rebuild",this,3)([]),null!==this.div&&(om(Sm,this,Im).call(this),this.isAttachedToDOM||this.parent.add(this)))}},{key:"setParent",value:function(t){var r=!1;if(this.parent&&!t)om(Sm,this,jm).call(this);else if(t){var n;om(Sm,this,Im).call(this,t),r=!this.parent&&(null===(n=this.div)||void 0===n?void 0:n.classList.contains("selectedEditor"))}Kg(e,"setParent",this,3)([t]),this.show(this._isVisible),r&&this.select()}},{key:"rotate",value:function(t){var r,n=this.parent.drawLayer;im(bm,this)?(t=(t-this.rotation+360)%360,r=Rm.call(e,im(gm,this).box,t)):r=Rm.call(e,this,t),n.rotate(im(mm,this),t),n.rotate(im(xm,this),t),n.updateBox(im(mm,this),r),n.updateBox(im(xm,this),Rm.call(e,im(dm,this).box,t))}},{key:"render",value:function(){if(this.div)return this.div;var t=Kg(e,"render",this,3)([]);im(Am,this)&&(t.setAttribute("aria-label",im(Am,this)),t.setAttribute("role","mark")),im(bm,this)?t.classList.add("free"):this.div.addEventListener("keydown",om(Sm,this,Fm).bind(this),{signal:this._uiManager._signal});var r=am(ym,this,document.createElement("div"));t.append(r),r.setAttribute("aria-hidden","true"),r.className="internal",r.style.clipPath=im(hm,this);var n=Ng(this.parentDimensions,2),i=n[0],a=n[1];return this.setDims(this.width*i,this.height*a),Br(this,im(ym,this),["pointerover","pointerleave"]),this.enableEditing(),t}},{key:"pointerover",value:function(){this.isSelected||this.parent.drawLayer.addClass(im(xm,this),"hovered")}},{key:"pointerleave",value:function(){this.isSelected||this.parent.drawLayer.removeClass(im(xm,this),"hovered")}},{key:"_moveCaret",value:function(t){switch(this.parent.unselect(this),t){case 0:case 2:om(Sm,this,Dm).call(this,!0);break;case 1:case 3:om(Sm,this,Dm).call(this,!1)}}},{key:"select",value:function(){var t,r;Kg(e,"select",this,3)([]),im(xm,this)&&(null===(t=this.parent)||void 0===t||t.drawLayer.removeClass(im(xm,this),"hovered"),null===(r=this.parent)||void 0===r||r.drawLayer.addClass(im(xm,this),"selected"))}},{key:"unselect",value:function(){var t;Kg(e,"unselect",this,3)([]),im(xm,this)&&(null===(t=this.parent)||void 0===t||t.drawLayer.removeClass(im(xm,this),"selected"),im(bm,this)||om(Sm,this,Dm).call(this,!1))}},{key:"_mustFixPosition",get:function(){return!im(bm,this)}},{key:"show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible;Kg(e,"show",this,3)([t]),this.parent&&(this.parent.drawLayer.show(im(mm,this),t),this.parent.drawLayer.show(im(xm,this),t))}},{key:"serialize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty()||t)return null;if(this.deleted)return this.serializeDeleted();var e=this.getRect(0,0),r=Wa._colorManager.convert(this.color),n={annotationType:A.HIGHLIGHT,color:r,opacity:im(km,this),thickness:im(_m,this),quadPoints:om(Sm,this,Wm).call(this),outlines:om(Sm,this,Bm).call(this,e),pageIndex:this.pageIndex,rect:e,rotation:om(Sm,this,Nm).call(this),structTreeParentId:this._structTreeParentId};return this.annotationElementId&&!om(Sm,this,Um).call(this,n)?null:(n.id=this.annotationElementId,n)}},{key:"renderAnnotationElement",value:function(t){return t.updateEdited({rect:this.getRect(0,0)}),null}}],[{key:"_keyboardManager",get:function(){var t=e.prototype;return W(this,"_keyboardManager",new rn([[["ArrowLeft","mac+ArrowLeft"],t._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],t._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],t._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],t._moveCaret,{args:[3]}]]))}},{key:"computeTelemetryFinalData",value:function(t){return{numberOfColors:t.get("color").size}}},{key:"initialize",value:function(t,r){var n;Wa.initialize(t,r),e._defaultColor||(e._defaultColor=(null===(n=r.highlightColors)||void 0===n?void 0:n.values().next().value)||"#fff066")}},{key:"updateDefaultParams",value:function(t,r){switch(t){case _.HIGHLIGHT_DEFAULT_COLOR:e._defaultColor=r;break;case _.HIGHLIGHT_THICKNESS:e._defaultThickness=r}}},{key:"defaultPropertiesToUpdate",get:function(){return[[_.HIGHLIGHT_DEFAULT_COLOR,e._defaultColor],[_.HIGHLIGHT_THICKNESS,e._defaultThickness]]}},{key:"startHighlighting",value:function(t,r,n){var i=this,a=n.target,o=n.x,s=n.y,u=a.getBoundingClientRect(),c=u.x,l=u.y,h=u.width,f=u.height,d=new AbortController,v=t.combinedSignal(d),p=function(r){d.abort(),om(e,i,Hm).call(i,t,r)};window.addEventListener("blur",p,{signal:v}),window.addEventListener("pointerup",p,{signal:v}),window.addEventListener("pointerdown",(function(t){t.preventDefault(),t.stopPropagation()}),{capture:!0,passive:!1,signal:v}),window.addEventListener("contextmenu",Te,{signal:v}),a.addEventListener("pointermove",om(e,this,Gm).bind(this,t),{signal:v}),this._freeHighlight=new Gy({x:o,y:s},[c,l,h,f],t.scale,this._defaultThickness/2,r,.001);var y=t.drawLayer.highlight(this._freeHighlight,this._defaultColor,this._defaultOpacity,!0);this._freeHighlightId=y.id,this._freeHighlightClipId=y.clipPathId}},{key:"deserialize",value:(r=Ug(Gg().mark((function t(r,n,i){var a,o,s,u,c,l,h,f,d,v,p,y,g,m,b,w,k,x,_,E,S,O,T,P,L,M,C,j,I,R,F,D,N,W,B,G,H,U,z,V,q,Y,X;return Gg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=null,r instanceof Hv?(s=(o=r).data,u=s.quadPoints,c=s.rect,l=s.rotation,h=s.id,f=s.color,d=s.opacity,v=s.popupRef,p=o.parent.page.pageNumber,a=r={annotationType:A.HIGHLIGHT,color:Array.from(f),opacity:d,quadPoints:u,boxes:null,pageIndex:p-1,rect:c.slice(0),rotation:l,id:h,deleted:!1,popupRef:v}):r instanceof Gv&&(g=(y=r).data,m=g.inkLists,b=g.rect,w=g.rotation,k=g.id,x=g.color,_=g.borderStyle.rawWidth,E=g.popupRef,S=y.parent.page.pageNumber,a=r={annotationType:A.HIGHLIGHT,color:Array.from(x),thickness:_,inkLists:m,boxes:null,pageIndex:S-1,rect:b.slice(0),rotation:w,id:k,deleted:!1,popupRef:E}),T=(O=r).color,P=O.quadPoints,L=O.inkLists,M=O.opacity,t.next=5,Kg(e,"deserialize",this,2)([r,n,i]);case 5:if((C=t.sent).color=Z.makeHexColor.apply(Z,Dg(T)),am(km,C,M||1),L&&am(_m,C,r.thickness),C.annotationElementId=r.id||null,C._initialData=a,j=Ng(C.pageDimensions,2),I=j[0],R=j[1],F=Ng(C.pageTranslation,2),D=F[0],N=F[1],P){for(W=am(lm,C,[]),B=0;B=0)am(mm,this,r),am(hm,this,n),this.parent.drawLayer.finalizeLine(r,e),am(xm,this,this.parent.drawLayer.highlightOutline(im(dm,this)));else if(this.parent){var i=this.parent.viewport.rotation;this.parent.drawLayer.updateLine(im(mm,this),e),this.parent.drawLayer.updateBox(im(mm,this),Rm.call(Rg,im(gm,this).box,(i-this.rotation+360)%360)),this.parent.drawLayer.updateLine(im(xm,this),im(dm,this)),this.parent.drawLayer.updateBox(im(xm,this),Rm.call(Rg,im(dm,this).box,i))}var a=e.box,o=a.x,s=a.y,u=a.width,c=a.height;switch(this.rotation){case 0:this.x=o,this.y=s,this.width=u,this.height=c;break;case 90:var l=Ng(this.parentDimensions,2),h=l[0],f=l[1];this.x=s,this.y=1-o,this.width=u*f/h,this.height=c*h/f;break;case 180:this.x=1-o,this.y=1-s,this.width=u,this.height=c;break;case 270:var d=Ng(this.parentDimensions,2),v=d[0],p=d[1];this.x=1-s,this.y=o,this.width=u*p/v,this.height=c*v/p}var y=im(dm,this).box.lastPoint;am(wm,this,[(y[0]-o)/u,(y[1]-s)/c])}function Lm(t){var e=this,r=function(t,r){var n,i,a;e.color=t,null===(n=e.parent)||void 0===n||n.drawLayer.changeColor(im(mm,e),t),null===(i=im(fm,e))||void 0===i||i.updateColor(t),am(km,e,r),null===(a=e.parent)||void 0===a||a.drawLayer.changeOpacity(im(mm,e),r)},n=this.color,i=im(km,this);this.addCommands({cmd:r.bind(this,t,Rg._defaultOpacity),undo:r.bind(this,n,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(t)},!0)}function Mm(t){var e=this,r=im(_m,this),n=function(t){am(_m,e,t),om(Sm,e,Cm).call(e,t)};this.addCommands({cmd:n.bind(this,t),undo:n.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:t},!0)}function Cm(t){if(im(bm,this)){om(Sm,this,Pm).call(this,{highlightOutlines:im(gm,this).getNewOutline(t/2)}),this.fixAndSetPosition();var e=Ng(this.parentDimensions,2),r=e[0],n=e[1];this.setDims(this.width*r,this.height*n)}}function jm(){null!==im(mm,this)&&this.parent&&(this.parent.drawLayer.remove(im(mm,this)),am(mm,this,null),this.parent.drawLayer.remove(im(xm,this)),am(xm,this,null))}function Im(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parent;if(null===im(mm,this)){var e=t.drawLayer.highlight(im(gm,this),this.color,im(km,this));nm(am,[mm,this])._=e.id,nm(am,[hm,this])._=e.clipPathId,am(xm,this,t.drawLayer.highlightOutline(im(dm,this))),im(ym,this)&&(im(ym,this).style.clipPath=im(hm,this))}}function Rm(t,e){var r=t.x,n=t.y,i=t.width,a=t.height;switch(e){case 90:return{x:1-n-a,y:r,width:a,height:i};case 180:return{x:1-r-i,y:1-n-a,width:i,height:a};case 270:return{x:n,y:1-r-i,width:a,height:i}}return{x:r,y:n,width:i,height:a}}function Fm(t){Rg._keyboardManager.exec(this,t)}function Dm(t){if(im(um,this)){var e=window.getSelection();t?e.setPosition(im(um,this),im(cm,this)):e.setPosition(im(vm,this),im(pm,this))}}function Nm(){return im(bm,this)?this.rotation:0}function Wm(){if(im(bm,this))return null;var t,e=Ng(this.pageDimensions,2),r=e[0],n=e[1],i=Ng(this.pageTranslation,2),a=i[0],o=i[1],s=im(lm,this),u=new Float32Array(8*s.length),c=0,l=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Wg(t))){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(s);try{for(l.s();!(t=l.n()).done;){var h=t.value,f=h.x,d=h.y,v=h.width,p=h.height,y=f*r+a,g=(1-d-p)*n+o;u[c]=u[c+4]=y,u[c+1]=u[c+3]=g,u[c+2]=u[c+6]=y+v*r,u[c+5]=u[c+7]=g+p*n,c+=8}}catch(t){l.e(t)}finally{l.f()}return u}function Bm(t){return im(gm,this).serialize(t,om(Sm,this,Nm).call(this))}function Gm(t,e){this._freeHighlight.add(e)&&t.drawLayer.updatePath(this._freeHighlightId,this._freeHighlight)}function Hm(t,e){this._freeHighlight.isEmpty()?t.drawLayer.removeFreeHighlight(this._freeHighlightId):t.createAndAddNewEditor(e,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""}function Um(t){var e=this._initialData.color;return t.color.some((function(t,r){return t!==e[r]}))}function zm(){zm=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Vm(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Km(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function qm(t){return function(t){if(Array.isArray(t))return Qm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Km(t)||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 Ym(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Xm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Km(t,e)||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 Km(t,e){if(t){if("string"==typeof t)return Qm(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qm(t,e):void 0}}function Qm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&t===i&&e===a)){var o,s,u=this.currentPath,c=hb(gb,this);if(u.push([t,e]),lb(wb,this,!0),u.length<=2)return(o=c).moveTo.apply(o,qm(u[0])),void c.lineTo(t,e);3===u.length&&(lb(gb,this,c=new Path2D),(s=c).moveTo.apply(s,qm(u[0]))),(r=fb(Ob,this,Wb)).call.apply(r,[this,c].concat(qm(u.at(-3)),qm(u.at(-2)),[t,e]))}}function Fb(){var t;if(0!==this.currentPath.length){var e=this.currentPath.at(-1);(t=hb(gb,this)).lineTo.apply(t,qm(e))}}function Db(t,e){var r,n=this;if(lb(Sb,this,null),t=Math.min(Math.max(t,0),this.canvas.width),e=Math.min(Math.max(e,0),this.canvas.height),fb(Ob,this,Rb).call(this,t,e),fb(Ob,this,Fb).call(this),1!==this.currentPath.length)r=fb(Ob,this,Bb).call(this);else{var i=[t,e];r=[[i,i.slice(),i.slice(),i]]}var a=hb(gb,this),o=this.currentPath;this.currentPath=[],lb(gb,this,new Path2D),this.addCommands({cmd:function(){n.allRawPaths.push(o),n.paths.push(r),n.bezierPath2D.push(a),n._uiManager.rebuild(n)},undo:function(){n.allRawPaths.pop(),n.paths.pop(),n.bezierPath2D.pop(),0===n.paths.length?n.remove():(n.canvas||(fb(Ob,n,Vb).call(n),fb(Ob,n,qb).call(n)),fb(Ob,n,rw).call(n))},mustExec:!0})}function Nb(){if(hb(wb,this)){lb(wb,this,!1);Math.ceil(this.thickness*this.parentScale);var t=this.currentPath.slice(-3),e=t.map((function(t){return t[0]})),r=t.map((function(t){return t[1]})),n=(Math.min.apply(Math,qm(e)),Math.max.apply(Math,qm(e)),Math.min.apply(Math,qm(r)),Math.max.apply(Math,qm(r)),this.ctx);n.save(),n.clearRect(0,0,this.canvas.width,this.canvas.height);var i,a=Vm(this.bezierPath2D);try{for(a.s();!(i=a.n()).done;){var o=i.value;n.stroke(o)}}catch(t){a.e(t)}finally{a.f()}n.stroke(hb(gb,this)),n.restore()}}function Wb(t,e,r,n,i,a,o){var s=(e+n)/2,u=(r+i)/2,c=(n+a)/2,l=(i+o)/2;t.bezierCurveTo(s+2*(n-s)/3,u+2*(i-u)/3,c+2*(n-c)/3,l+2*(i-l)/3,c,l)}function Bb(){var t=this.currentPath;if(t.length<=2)return[[t[0],t[0],t.at(-1),t.at(-1)]];var e,r=[],n=Xm(t[0],2),i=n[0],a=n[1];for(e=1;e0&&void 0!==arguments[0]&&arguments[0];if(!this.isEmpty())if(hb(mb,this)){var e=fb(Ob,this,tw).call(this),r=fb(Ob,this,ew).call(this);lb(pb,this,Math.max(Wa.MIN_SIZE,e[2]-e[0])),lb(vb,this,Math.max(Wa.MIN_SIZE,e[3]-e[1]));var n=Math.ceil(r+hb(pb,this)*this.scaleFactor),i=Math.ceil(r+hb(vb,this)*this.scaleFactor),a=Xm(this.parentDimensions,2),o=a[0],s=a[1];this.width=n/o,this.height=i/s,this.setAspectRatio(n,i);var u=this.translationX,c=this.translationY;this.translationX=-e[0],this.translationY=-e[1],fb(Ob,this,Yb).call(this),fb(Ob,this,Gb).call(this),lb(_b,this,n),lb(Eb,this,i),this.setDims(n,i);var l=t?r/this.scaleFactor/2:0;this.translate(u-this.translationX-l,c-this.translationY-l)}else fb(Ob,this,Gb).call(this)}function nw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return iw(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?iw(t,e):void 0}}(t,e)||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 iw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ow(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function sw(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){ow(a,n,i,o,s,"next",t)}function s(t){ow(a,n,i,o,s,"throw",t)}o(void 0)}))}}function uw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cw(t){for(var e=1;e0&&void 0!==l[0]?l[0]:null,r=!(l.length>1&&void 0!==l[1])||l[1],!this.hasAltTextData()){t.next=4;break}return t.abrupt("return",null);case 4:if(n=this._uiManager.mlManager){t.next=7;break}throw new Error("No ML.");case 7:return t.next=9,n.isEnabledFor("altText");case 9:if(t.sent){t.next=11;break}throw new Error("ML isn't enabled for alt text.");case 11:return i=e||this.copyCanvas(null,null,!0).imageData,a=i.data,o=i.width,s=i.height,t.next=14,n.guess({name:"altText",request:{data:a,width:o,height:s,channels:a.length/(o*s)}});case 14:if(u=t.sent){t.next=17;break}throw new Error("No response from the AI service.");case 17:if(!u.error){t.next=19;break}throw new Error("Error from the AI service.");case 19:if(!u.cancel){t.next=21;break}return t.abrupt("return",null);case 21:if(u.output){t.next=23;break}throw new Error("No valid response from the AI service.");case 23:return c=u.output,t.next=26,this.setGuessedAltText(c);case 26:return r&&!this.hasAltTextData()&&(this.altTextData={alt:c,decorative:!1}),t.abrupt("return",c);case 28:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:function(){var t,r;kw(Ew,this)&&(xw(_w,this,null),this._uiManager.imageManager.deleteId(kw(Ew,this)),null===(t=kw(Lw,this))||void 0===t||t.remove(),xw(Lw,this,null),null===(r=kw(Mw,this))||void 0===r||r.disconnect(),xw(Mw,this,null),kw(Cw,this)&&(clearTimeout(kw(Cw,this)),xw(Cw,this,null))),dw(e,"remove",this,3)([])}},{key:"rebuild",value:function(){this.parent?(dw(e,"rebuild",this,3)([]),null!==this.div&&(kw(Ew,this)&&null===kw(Lw,this)&&Aw(Rw,this,Ww).call(this),this.isAttachedToDOM||this.parent.add(this))):kw(Ew,this)&&Aw(Rw,this,Ww).call(this)}},{key:"onceAdded",value:function(){this._isDraggable=!0,this.div.focus()}},{key:"isEmpty",value:function(){return!(kw(Sw,this)||kw(_w,this)||kw(Ow,this)||kw(Tw,this)||kw(Ew,this))}},{key:"isResizable",get:function(){return!0}},{key:"render",value:function(){if(this.div)return this.div;var t,r;if(this.width&&(t=this.x,r=this.y),dw(e,"render",this,3)([]),this.div.hidden=!0,this.div.setAttribute("role","figure"),this.addAltTextButton(),kw(_w,this)?Aw(Rw,this,Bw).call(this):Aw(Rw,this,Ww).call(this),this.width&&!this.annotationElementId){var n=nw(this.parentDimensions,2),i=n[0],a=n[1];this.setAt(t*i,r*a,this.width*i,this.height*a)}return this.div}},{key:"copyCanvas",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t||(t=224);var n=kw(_w,this),i=n.width,a=n.height,o=new Fe,s=kw(_w,this),u=i,c=a,l=null;if(e){var h,f;if(i>e||a>e){var d=Math.min(e/i,e/a);u=Math.floor(i*d),c=Math.floor(a*d)}var v=(l=document.createElement("canvas")).width=Math.ceil(u*o.sx),p=l.height=Math.ceil(c*o.sy);kw(jw,this)||(s=Aw(Rw,this,Hw).call(this,v,p));var y=l.getContext("2d");y.filter=this._uiManager.hcmFilter;var g="white",m="#cfcfd8";"none"!==this._uiManager.hcmFilter?m="black":null!==(h=(f=window).matchMedia)&&void 0!==h&&h.call(f,"(prefers-color-scheme: dark)").matches&&(g="#8f8f9d",m="#42414d");var b=15*o.sx,w=15*o.sy,k=new OffscreenCanvas(2*b,2*w),x=k.getContext("2d");x.fillStyle=g,x.fillRect(0,0,2*b,2*w),x.fillStyle=m,x.fillRect(0,0,b,w),x.fillRect(b,w,b,w),y.fillStyle=y.createPattern(k,"repeat"),y.fillRect(0,0,v,p),y.drawImage(s,0,0,s.width,s.height,0,0,v,p)}var A=null;if(r){var _,E;if(o.symmetric&&s.widtht||a>t){var S=Math.min(t/i,t/a);_=Math.floor(i*S),E=Math.floor(a*S),kw(jw,this)||(s=Aw(Rw,this,Hw).call(this,_,E))}var O=new OffscreenCanvas(_,E).getContext("2d",{willReadFrequently:!0});O.drawImage(s,0,0,s.width,s.height,0,0,_,E),A={width:_,height:E,data:O.getImageData(0,0,_,E).data}}return{canvas:l,width:u,height:c,imageData:A}}},{key:"getImageForAltText",value:function(){return kw(Lw,this)}},{key:"serialize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();var r={annotationType:A.STAMP,bitmapId:kw(Ew,this),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:kw(jw,this),structTreeParentId:this._structTreeParentId};if(t)return r.bitmapUrl=Aw(Rw,this,zw).call(this,!0),r.accessibilityData=this.serializeAltText(!0),r;var n=this.serializeAltText(!1),i=n.decorative,a=n.altText;if(!i&&a&&(r.accessibilityData={type:"Figure",alt:a}),this.annotationElementId){var o,s=Aw(Rw,this,qw).call(this,r);if(s.isSame)return null;s.isSameAltText?delete r.accessibilityData:r.accessibilityData.structParent=null!==(o=this._initialData.structParent)&&void 0!==o?o:-1}if(r.id=this.annotationElementId,null===e)return r;e.stamps||(e.stamps=new Map);var u=kw(jw,this)?(r.rect[2]-r.rect[0])*(r.rect[3]-r.rect[1]):null;if(e.stamps.has(kw(Ew,this))){if(kw(jw,this)){var c=e.stamps.get(kw(Ew,this));u>c.area&&(c.area=u,c.serialized.bitmap.close(),c.serialized.bitmap=Aw(Rw,this,zw).call(this,!1))}}else e.stamps.set(kw(Ew,this),{area:u,serialized:r}),r.bitmap=Aw(Rw,this,zw).call(this,!1);return r}},{key:"renderAnnotationElement",value:function(t){return t.updateEdited({rect:this.getRect(0,0)}),null}}],[{key:"initialize",value:function(t,e){Wa.initialize(t,e)}},{key:"supportedTypes",get:function(){return W(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map((function(t){return"image/".concat(t)})))}},{key:"supportedTypesStr",get:function(){return W(this,"supportedTypesStr",this.supportedTypes.join(","))}},{key:"isHandlingMimeForPasting",value:function(t){return this.supportedTypes.includes(t)}},{key:"paste",value:function(t,e){e.pasteEditor(A.STAMP,{bitmapFile:t.getAsFile()})}},{key:"computeTelemetryFinalData",value:function(t){var e,r,n=t.get("hasAltText");return{hasAltText:null!==(e=n.get(!0))&&void 0!==e?e:0,hasNoAltText:null!==(r=n.get(!1))&&void 0!==r?r:0}}},{key:"deserialize",value:(r=sw(aw().mark((function t(r,n,i){var a,o,s,u,c,l,h,f,d,v,p,y,g,m,b,w,k,x,_,E,S,O,T,P,L;return aw().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=null,!(r instanceof qv)){t.next=22;break}return u=(s=r).data,c=u.rect,l=u.rotation,h=u.id,f=u.structParent,d=u.popupRef,v=s.container,p=s.parent.page.pageNumber,y=v.querySelector("canvas"),g=i.imageManager.getFromCanvas(v.id,y),y.remove(),t.next=8,n._structTree.getAriaAttributes("".concat(at).concat(h));case 8:if(t.t2=o=t.sent,t.t1=null===t.t2,t.t1){t.next=12;break}t.t1=void 0===o;case 12:if(!t.t1){t.next=16;break}t.t3=void 0,t.next=17;break;case 16:t.t3=o.get("aria-label");case 17:if(t.t0=t.t3,t.t0){t.next=20;break}t.t0="";case 20:m=t.t0,a=r={annotationType:A.STAMP,bitmapId:g.id,bitmap:g.bitmap,pageIndex:p-1,rect:c.slice(0),rotation:l,id:h,deleted:!1,accessibilityData:{decorative:!1,altText:m},isSvg:!1,structParent:f,popupRef:d};case 22:return t.next=24,dw(e,"deserialize",this,2)([r,n,i]);case 24:return b=t.sent,k=(w=r).rect,x=w.bitmap,_=w.bitmapUrl,E=w.bitmapId,S=w.isSvg,O=w.accessibilityData,E&&i.imageManager.isValidId(E)?(xw(Ew,b,E),x&&xw(_w,b,x)):xw(Ow,b,_),xw(jw,b,S),T=nw(b.pageDimensions,2),P=T[0],L=T[1],b.width=(k[2]-k[0])/P,b.height=(k[3]-k[1])/L,b.annotationElementId=r.id||null,O&&(b.altTextData=O),b._initialData=a,xw(Iw,b,!!a),t.abrupt("return",b);case 36:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})}]);var r,n}();function Dw(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?(xw(_w,this,t.bitmap),e||(xw(Ew,this,t.id),xw(jw,this,t.isSvg)),t.file&&xw(Pw,this,t.file.name),Aw(Rw,this,Bw).call(this)):this.remove()}function Nw(){if(xw(Sw,this,null),this._uiManager.enableWaiting(!1),kw(Lw,this)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&kw(_w,this))return this._editToolbar.hide(),void this._uiManager.editAltText(this,!0);if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&kw(_w,this)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch(t){}}this.div.focus()}}function Ww(){var t=this;if(kw(Ew,this))return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(kw(Ew,this)).then((function(e){return Aw(Rw,t,Dw).call(t,e,!0)})).finally((function(){return Aw(Rw,t,Nw).call(t)}));if(kw(Ow,this)){var e=kw(Ow,this);return xw(Ow,this,null),this._uiManager.enableWaiting(!0),void xw(Sw,this,this._uiManager.imageManager.getFromUrl(e).then((function(e){return Aw(Rw,t,Dw).call(t,e)})).finally((function(){return Aw(Rw,t,Nw).call(t)})))}if(kw(Tw,this)){var r=kw(Tw,this);return xw(Tw,this,null),this._uiManager.enableWaiting(!0),void xw(Sw,this,this._uiManager.imageManager.getFromFile(r).then((function(e){return Aw(Rw,t,Dw).call(t,e)})).finally((function(){return Aw(Rw,t,Nw).call(t)})))}var n=document.createElement("input");n.type="file",n.accept=db.supportedTypesStr;var i=this._uiManager._signal;xw(Sw,this,new Promise((function(e){n.addEventListener("change",sw(aw().mark((function r(){var i;return aw().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.files&&0!==n.files.length){r.next=4;break}t.remove(),r.next=10;break;case 4:return t._uiManager.enableWaiting(!0),r.next=7,t._uiManager.imageManager.getFromFile(n.files[0]);case 7:i=r.sent,t._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:t._uiManager.useNewAltTextFlow}}),Aw(Rw,t,Dw).call(t,i);case 10:e();case 11:case"end":return r.stop()}}),r)}))),{signal:i}),n.addEventListener("cancel",(function(){t.remove(),e()}),{signal:i})})).finally((function(){return Aw(Rw,t,Nw).call(t)}))),n.click()}function Bw(){var t=this.div,e=kw(_w,this),r=e.width,n=e.height,i=nw(this.pageDimensions,2),a=i[0],o=i[1],s=.75;if(this.width)r=this.width*a,n=this.height*o;else if(r>s*a||n>s*o){var u=Math.min(s*a/r,s*o/n);r*=u,n*=u}var c=nw(this.parentDimensions,2),l=c[0],h=c[1];this.setDims(r*l/a,n*h/o),this._uiManager.enableWaiting(!1);var f=xw(Lw,this,document.createElement("canvas"));f.setAttribute("role","img"),this.addContainer(f),this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&!this.annotationElementId||(t.hidden=!1),Aw(Rw,this,Uw).call(this,r,n),Aw(Rw,this,Vw).call(this),kw(Iw,this)||(this.parent.addUndoableEditor(this),xw(Iw,this,!0)),this._reportTelemetry({action:"inserted_image"}),kw(Pw,this)&&f.setAttribute("aria-label",kw(Pw,this))}function Gw(t,e){var r,n=this,i=nw(this.parentDimensions,2),a=i[0],o=i[1];this.width=t/a,this.height=e/o,null!==(r=this._initialOptions)&&void 0!==r&&r.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==kw(Cw,this)&&clearTimeout(kw(Cw,this)),xw(Cw,this,setTimeout((function(){xw(Cw,n,null),Aw(Rw,n,Uw).call(n,t,e)}),200))}function Hw(t,e){for(var r=kw(_w,this),n=r.width,i=r.height,a=kw(_w,this);n>2*t||i>2*e;){var o=n,s=i;n>2*t&&(n=n>=16384?Math.floor(n/2)-1:Math.ceil(n/2)),i>2*e&&(i=i>=16384?Math.floor(i/2)-1:Math.ceil(i/2));var u=new OffscreenCanvas(n,i);u.getContext("2d").drawImage(a,0,0,o,s,0,0,n,i),a=u.transferToImageBitmap()}return a}function Uw(t,e){var r=new Fe,n=Math.ceil(t*r.sx),i=Math.ceil(e*r.sy),a=kw(Lw,this);if(a&&(a.width!==n||a.height!==i)){a.width=n,a.height=i;var o=kw(jw,this)?kw(_w,this):Aw(Rw,this,Hw).call(this,n,i),s=a.getContext("2d");s.filter=this._uiManager.hcmFilter,s.drawImage(o,0,0,o.width,o.height,0,0,n,i)}}function zw(t){if(t){if(kw(jw,this)){var e=this._uiManager.imageManager.getSvgUrl(kw(Ew,this));if(e)return e}var r=document.createElement("canvas"),n=kw(_w,this);return r.width=n.width,r.height=n.height,r.getContext("2d").drawImage(kw(_w,this),0,0),r.toDataURL()}if(kw(jw,this)){var i=nw(this.pageDimensions,2),a=i[0],o=i[1],s=Math.round(this.width*a*Vt.PDF_TO_CSS_UNITS),u=Math.round(this.height*o*Vt.PDF_TO_CSS_UNITS),c=new OffscreenCanvas(s,u);return c.getContext("2d").drawImage(kw(_w,this),0,0,kw(_w,this).width,kw(_w,this).height,0,0,s,u),c.transferToImageBitmap()}return structuredClone(kw(_w,this))}function Vw(){var t=this;this._uiManager._signal&&(xw(Mw,this,new ResizeObserver((function(e){var r=e[0].contentRect;r.width&&r.height&&Aw(Rw,t,Gw).call(t,r.width,r.height)}))),kw(Mw,this).observe(this.div),this._uiManager._signal.addEventListener("abort",(function(){var e;null===(e=kw(Mw,t))||void 0===e||e.disconnect(),xw(Mw,t,null)}),{once:!0}))}function qw(t){var e,r=this._initialData,n=r.rect,i=r.pageIndex,a=r.accessibilityData.altText,o=t.rect.every((function(t,e){return Math.abs(t-n[e])<1})),s=t.pageIndex===i,u=((null===(e=t.accessibilityData)||void 0===e?void 0:e.alt)||"")===a;return{isSame:o&&s&&u,isSameAltText:u}}function Yw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xw(t){for(var e=1;e=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Qw(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Jw(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Qw(a,n,i,o,s,"next",t)}function s(t){Qw(a,n,i,o,s,"throw",t)}o(void 0)}))}}function $w(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Zw(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Zw(t,e){if(t){if("string"==typeof t)return tk(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tk(t,e):void 0}}function tk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:sk(kk,this).getMode();switch(ck(xk,this,Tk).call(this),t){case A.NONE:return this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),void this.disableClick();case A.INK:this.addInkEditorIfNeeded(!1),this.disableTextSelection(),this.togglePointerEvents(!0),this.disableClick();break;case A.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);var e,r=this.div.classList,n=$w(Lk._.values());try{for(n.s();!(e=n.n()).done;){var i=e.value;r.toggle("".concat(i._type,"Editing"),t===i._editorType)}}catch(t){n.e(t)}finally{n.f()}this.div.hidden=!1}},{key:"hasTextLayer",value:function(t){var e;return t===(null===(e=sk(bk,this))||void 0===e?void 0:e.div)}},{key:"addInkEditorIfNeeded",value:function(t){if(sk(kk,this).getMode()===A.INK){if(!t){var e,r=$w(sk(pk,this).values());try{for(r.s();!(e=r.n()).done;){var n=e.value;if(n.isEmpty())return void n.setInBackground()}}catch(t){r.e(t)}finally{r.f()}}this.createAndAddNewEditor({offsetX:0,offsetY:0},!1).setInBackground()}}},{key:"setEditingState",value:function(t){sk(kk,this).setEditingState(t)}},{key:"addCommands",value:function(t){sk(kk,this).addCommands(t)}},{key:"toggleDrawing",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.div.classList.toggle("drawing",!t)}},{key:"togglePointerEvents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.div.classList.toggle("disabled",!t)}},{key:"toggleAnnotationLayerPointerEvents",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null===(t=sk(fk,this))||void 0===t||t.div.classList.toggle("disabled",!e)}},{key:"enable",value:(e=Jw(Kw().mark((function t(){var e,r,n,i,a,o,s,u,c;return Kw().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.div.tabIndex=0,this.togglePointerEvents(!0),e=new Set,r=$w(sk(pk,this).values());try{for(r.s();!(n=r.n()).done;)(i=n.value).enableEditing(),i.show(!0),i.annotationElementId&&(sk(kk,this).removeChangedExistingAnnotation(i),e.add(i.annotationElementId))}catch(t){r.e(t)}finally{r.f()}if(sk(fk,this)){t.next=7;break}return t.abrupt("return");case 7:a=sk(fk,this).getEditableAnnotations(),o=$w(a),t.prev=9,o.s();case 11:if((s=o.n()).done){t.next=27;break}if((u=s.value).hide(),!sk(kk,this).isDeletedAnnotationElement(u.data.id)){t.next=16;break}return t.abrupt("continue",25);case 16:if(!e.has(u.data.id)){t.next=18;break}return t.abrupt("continue",25);case 18:return t.next=20,this.deserialize(u);case 20:if(c=t.sent){t.next=23;break}return t.abrupt("continue",25);case 23:this.addOrRebuild(c),c.enableEditing();case 25:t.next=11;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t.catch(9),o.e(t.t0);case 32:return t.prev=32,o.f(),t.finish(32);case 35:case"end":return t.stop()}}),t,this,[[9,29,32,35]])}))),function(){return e.apply(this,arguments)})},{key:"disable",value:function(){uk(mk,this,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1);var t,e=new Map,r=new Map,n=$w(sk(pk,this).values());try{for(n.s();!(t=n.n()).done;){var i,a=t.value;a.disableEditing(),a.annotationElementId&&(null===a.serialize()?(r.set(a.annotationElementId,a),null===(i=this.getEditableAnnotation(a.annotationElementId))||void 0===i||i.show(),a.remove()):e.set(a.annotationElementId,a))}}catch(t){n.e(t)}finally{n.f()}if(sk(fk,this)){var o,s=$w(sk(fk,this).getEditableAnnotations());try{for(s.s();!(o=s.n()).done;){var u=o.value,c=u.data.id;if(!sk(kk,this).isDeletedAnnotationElement(c)){var l=r.get(c);l?(l.resetAnnotationElement(u),l.show(!1),u.show()):((l=e.get(c))&&(sk(kk,this).addChangedExistingAnnotation(l),l.renderAnnotationElement(u)&&l.show(!1)),u.show())}}}catch(t){s.e(t)}finally{s.f()}}ck(xk,this,Tk).call(this),this.isEmpty&&(this.div.hidden=!0);var h,f=this.div.classList,d=$w(Lk._.values());try{for(d.s();!(h=d.n()).done;){var v=h.value;f.remove("".concat(v._type,"Editing"))}}catch(t){d.e(t)}finally{d.f()}this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),uk(mk,this,!1)}},{key:"getEditableAnnotation",value:function(t){var e;return(null===(e=sk(fk,this))||void 0===e?void 0:e.getEditableAnnotation(t))||null}},{key:"setActiveEditor",value:function(t){sk(kk,this).getActive()!==t&&sk(kk,this).setActiveEditor(t)}},{key:"enableTextSelection",value:function(){var t;if(this.div.tabIndex=-1,null!==(t=sk(bk,this))&&void 0!==t&&t.div&&!sk(wk,this)){uk(wk,this,new AbortController);var e=sk(kk,this).combinedSignal(sk(wk,this));sk(bk,this).div.addEventListener("pointerdown",ck(xk,this,_k).bind(this),{signal:e}),sk(bk,this).div.classList.add("highlighting")}}},{key:"disableTextSelection",value:function(){var t;this.div.tabIndex=0,null!==(t=sk(bk,this))&&void 0!==t&&t.div&&sk(wk,this)&&(sk(wk,this).abort(),uk(wk,this,null),sk(bk,this).div.classList.remove("highlighting"))}},{key:"enableClick",value:function(){if(!sk(dk,this)){uk(dk,this,new AbortController);var t=sk(kk,this).combinedSignal(sk(dk,this));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:t}),this.div.addEventListener("pointerup",this.pointerup.bind(this),{signal:t})}}},{key:"disableClick",value:function(){var t;null===(t=sk(dk,this))||void 0===t||t.abort(),uk(dk,this,null)}},{key:"attach",value:function(t){sk(pk,this).set(t.id,t);var e=t.annotationElementId;e&&sk(kk,this).isDeletedAnnotationElement(e)&&sk(kk,this).removeDeletedAnnotationElement(t)}},{key:"detach",value:function(t){var e;sk(pk,this).delete(t.id),null===(e=sk(lk,this))||void 0===e||e.removePointerInTextLayer(t.contentDiv),!sk(mk,this)&&t.annotationElementId&&sk(kk,this).addDeletedAnnotationElement(t)}},{key:"remove",value:function(t){this.detach(t),sk(kk,this).removeEditor(t),t.div.remove(),t.isAttachedToDOM=!1,sk(gk,this)||this.addInkEditorIfNeeded(!1)}},{key:"changeParent",value:function(t){var e;t.parent!==this&&(t.parent&&t.annotationElementId&&(sk(kk,this).addDeletedAnnotationElement(t.annotationElementId),Wa.deleteAnnotationElement(t),t.annotationElementId=null),this.attach(t),null===(e=t.parent)||void 0===e||e.detach(t),t.setParent(this),t.div&&t.isAttachedToDOM&&(t.div.remove(),this.div.append(t.div)))}},{key:"add",value:function(t){if(t.parent!==this||!t.isAttachedToDOM){if(this.changeParent(t),sk(kk,this).addEditor(t),this.attach(t),!t.isAttachedToDOM){var e=t.render();this.div.append(e),t.isAttachedToDOM=!0}t.fixAndSetPosition(),t.onceAdded(),sk(kk,this).addToAnnotationStorage(t),t._reportTelemetry(t.telemetryInitialData)}}},{key:"moveEditorInDOM",value:function(t){var e,r=this;if(t.isAttachedToDOM){var n=document.activeElement;t.div.contains(n)&&!sk(vk,this)&&(t._focusEventsAllowed=!1,uk(vk,this,setTimeout((function(){uk(vk,r,null),t.div.contains(document.activeElement)?t._focusEventsAllowed=!0:(t.div.addEventListener("focusin",(function(){t._focusEventsAllowed=!0}),{once:!0,signal:sk(kk,r)._signal}),n.focus())}),0))),t._structTreeParentId=null===(e=sk(lk,this))||void 0===e?void 0:e.moveElementInDOM(this.div,t.div,t.contentDiv,!0)}}},{key:"addOrRebuild",value:function(t){t.needsToBeRebuilt()?(t.parent||(t.parent=this),t.rebuild(),t.show()):this.add(t)}},{key:"addUndoableEditor",value:function(t){this.addCommands({cmd:function(){return t._uiManager.rebuild(t)},undo:function(){t.remove()},mustExec:!1})}},{key:"getNextId",value:function(){return sk(kk,this).getId()}},{key:"combinedSignal",value:function(t){return sk(kk,this).combinedSignal(t)}},{key:"canCreateNewEmptyEditor",value:function(){var t;return null===(t=ok(xk,this,Ek))||void 0===t?void 0:t.canCreateNewEmptyEditor()}},{key:"pasteEditor",value:function(t,e){sk(kk,this).updateToolbar(t),sk(kk,this).updateMode(t);var r=ck(xk,this,Ok).call(this),n=r.offsetX,i=r.offsetY,a=this.getNextId(),o=ck(xk,this,Sk).call(this,Xw({parent:this,id:a,x:n,y:i,uiManager:sk(kk,this),isCentered:!0},e));o&&this.add(o)}},{key:"deserialize",value:(t=Jw(Kw().mark((function t(e){var r,n;return Kw().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===(r=Lk._.get(null!==(n=e.annotationType)&&void 0!==n?n:e.annotationEditorType))||void 0===r?void 0:r.deserialize(e,this,sk(kk,this));case 2:if(t.t0=t.sent,t.t0){t.next=5;break}t.t0=null;case 5:return t.abrupt("return",t.t0);case 6:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"createAndAddNewEditor",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getNextId(),i=ck(xk,this,Sk).call(this,Xw({parent:this,id:n,x:t.offsetX,y:t.offsetY,uiManager:sk(kk,this),isCentered:e},r));return i&&this.add(i),i}},{key:"addNewEditor",value:function(){this.createAndAddNewEditor(ck(xk,this,Ok).call(this),!0)}},{key:"setSelected",value:function(t){sk(kk,this).setSelected(t)}},{key:"toggleSelected",value:function(t){sk(kk,this).toggleSelected(t)}},{key:"unselect",value:function(t){sk(kk,this).unselect(t)}},{key:"pointerup",value:function(t){var e=J.platform.isMac;0!==t.button||t.ctrlKey&&e||t.target===this.div&&sk(yk,this)&&(uk(yk,this,!1),sk(hk,this)?sk(kk,this).getMode()!==A.STAMP?this.createAndAddNewEditor(t,!1):sk(kk,this).unselectAll():uk(hk,this,!0))}},{key:"pointerdown",value:function(t){if(sk(kk,this).getMode()===A.HIGHLIGHT&&this.enableTextSelection(),sk(yk,this))uk(yk,this,!1);else{var e=J.platform.isMac;if(!(0!==t.button||t.ctrlKey&&e)&&t.target===this.div){uk(yk,this,!0);var r=sk(kk,this).getActive();uk(hk,this,!r||r.isEmpty())}}}},{key:"findNewParent",value:function(t,e,r){var n=sk(kk,this).findParent(e,r);return null!==n&&n!==this&&(n.changeParent(t),!0)}},{key:"destroy",value:function(){var t;(null===(t=sk(kk,this).getActive())||void 0===t?void 0:t.parent)===this&&(sk(kk,this).commitOrRemove(),sk(kk,this).setActiveEditor(null)),sk(vk,this)&&(clearTimeout(sk(vk,this)),uk(vk,this,null));var e,r=$w(sk(pk,this).values());try{for(r.s();!(e=r.n()).done;){var n,i=e.value;null===(n=sk(lk,this))||void 0===n||n.removePointerInTextLayer(i.contentDiv),i.setParent(null),i.isAttachedToDOM=!1,i.div.remove()}}catch(t){r.e(t)}finally{r.f()}this.div=null,sk(pk,this).clear(),sk(kk,this).removeLayer(this)}},{key:"render",value:function(t){var e=t.viewport;this.viewport=e,Re(this.div,e);var r,n=$w(sk(kk,this).getEditors(this.pageIndex));try{for(n.s();!(r=n.n()).done;){var i=r.value;this.add(i),i.rebuild()}}catch(t){n.e(t)}finally{n.f()}this.updateMode()}},{key:"update",value:function(t){var e=t.viewport;sk(kk,this).commitOrRemove(),ck(xk,this,Tk).call(this);var r=this.viewport.rotation,n=e.rotation;if(this.viewport=e,Re(this.div,{rotation:n}),r!==n){var i,a=$w(sk(pk,this).values());try{for(a.s();!(i=a.n()).done;)i.value.rotate(n)}catch(t){a.e(t)}finally{a.f()}}this.addInkEditorIfNeeded(!1)}},{key:"pageDimensions",get:function(){var t=this.viewport.rawDims;return[t.pageWidth,t.pageHeight]}},{key:"scale",get:function(){return sk(kk,this).viewParameters.realScale}}]);var t,e}();function _k(t){var e=this;sk(kk,this).unselectAll();var r=t.target;if(r===sk(bk,this).div||("img"===r.getAttribute("role")||r.classList.contains("endOfContent"))&&sk(bk,this).div.contains(r)){var n=J.platform.isMac;if(0!==t.button||t.ctrlKey&&n)return;sk(kk,this).showAllEditors("highlight",!0,!0),sk(bk,this).div.classList.add("free"),this.toggleDrawing(),Om.startHighlighting(this,"ltr"===sk(kk,this).direction,{target:sk(bk,this).div,x:t.x,y:t.y}),sk(bk,this).div.addEventListener("pointerup",(function(){sk(bk,e).div.classList.remove("free"),e.toggleDrawing(!0)}),{once:!0,signal:sk(kk,this)._signal}),t.preventDefault()}}function Ek(t){return Lk._.get(sk(kk,t).getMode())}function Sk(t){var e=ok(xk,this,Ek);return e?new e.prototype.constructor(t):null}function Ok(){var t=this.div.getBoundingClientRect(),e=t.x,r=t.y,n=t.width,i=t.height,a=Math.max(0,e),o=Math.max(0,r),s=(a+Math.min(window.innerWidth,e+n))/2-e,u=(o+Math.min(window.innerHeight,r+i))/2-r,c=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Zw(t,e)||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.")}()}(this.viewport.rotation%180==0?[s,u]:[u,s],2);return{offsetX:c[0],offsetY:c[1]}}function Tk(){uk(gk,this,!0);var t,e=$w(sk(pk,this).values());try{for(e.s();!(t=e.n()).done;){var r=t.value;r.isEmpty()&&r.remove()}}catch(t){e.e(t)}finally{e.f()}uk(gk,this,!1)}rk(Ak,"_initialized",!1);var Pk,Lk={_:new Map([Dp,Tb,Fw,Om].map((function(t){return[t._editorType,t]})))};function Mk(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Ck(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ck(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Ck(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0){var e,r=Mk(Nk(Hk,this).values());try{for(r.s();!(e=r.n()).done;){var n=e.value;n.remove(),t.append(n)}}catch(t){r.e(t)}finally{r.f()}}Dk(Bk,this,t)}}else Dk(Bk,this,t)}},{key:"highlight",value:function(e,r,n){var i,a,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=(Dk(Gk,this,(i=Nk(Gk,this),a=i++,i)),a),u=Wk(zk,this,Yk).call(this,e.box);u.classList.add("highlight"),e.free&&u.classList.add("free");var c=t._svgFactory.createElement("defs");u.append(c);var l=t._svgFactory.createElement("path");c.append(l);var h="path_p".concat(this.pageIndex,"_").concat(s);l.setAttribute("id",h),l.setAttribute("d",e.toSVGPath()),o&&Nk(Uk,this).set(s,l);var f=Wk(zk,this,Xk).call(this,c,h),d=t._svgFactory.createElement("use");return u.append(d),u.setAttribute("fill",r),u.setAttribute("fill-opacity",n),d.setAttribute("href","#".concat(h)),Nk(Hk,this).set(s,u),{id:s,clipPathId:"url(#".concat(f,")")}}},{key:"highlightOutline",value:function(e){var r,n,i=(Dk(Gk,this,(r=Nk(Gk,this),n=r++,r)),n),a=Wk(zk,this,Yk).call(this,e.box);a.classList.add("highlightOutline");var o=t._svgFactory.createElement("defs");a.append(o);var s=t._svgFactory.createElement("path");o.append(s);var u,c="path_p".concat(this.pageIndex,"_").concat(i);if(s.setAttribute("id",c),s.setAttribute("d",e.toSVGPath()),s.setAttribute("vector-effect","non-scaling-stroke"),e.free){a.classList.add("free");var l=t._svgFactory.createElement("mask");o.append(l),u="mask_p".concat(this.pageIndex,"_").concat(i),l.setAttribute("id",u),l.setAttribute("maskUnits","objectBoundingBox");var h=t._svgFactory.createElement("rect");l.append(h),h.setAttribute("width","1"),h.setAttribute("height","1"),h.setAttribute("fill","white");var f=t._svgFactory.createElement("use");l.append(f),f.setAttribute("href","#".concat(c)),f.setAttribute("stroke","none"),f.setAttribute("fill","black"),f.setAttribute("fill-rule","nonzero"),f.classList.add("mask")}var d=t._svgFactory.createElement("use");a.append(d),d.setAttribute("href","#".concat(c)),u&&d.setAttribute("mask","url(#".concat(u,")"));var v=d.cloneNode();return a.append(v),d.classList.add("mainOutline"),v.classList.add("secondaryOutline"),Nk(Hk,this).set(i,a),i}},{key:"finalizeLine",value:function(t,e){var r=Nk(Uk,this).get(t);Nk(Uk,this).delete(t),this.updateBox(t,e.box),r.setAttribute("d",e.toSVGPath())}},{key:"updateLine",value:function(t,e){Nk(Hk,this).get(t).firstChild.firstChild.setAttribute("d",e.toSVGPath())}},{key:"removeFreeHighlight",value:function(t){this.remove(t),Nk(Uk,this).delete(t)}},{key:"updatePath",value:function(t,e){Nk(Uk,this).get(t).setAttribute("d",e.toSVGPath())}},{key:"updateBox",value:function(e,r){qk.call(t,Nk(Hk,this).get(e),r)}},{key:"show",value:function(t,e){Nk(Hk,this).get(t).classList.toggle("hidden",!e)}},{key:"rotate",value:function(t,e){Nk(Hk,this).get(t).setAttribute("data-main-rotation",e)}},{key:"changeColor",value:function(t,e){Nk(Hk,this).get(t).setAttribute("fill",e)}},{key:"changeOpacity",value:function(t,e){Nk(Hk,this).get(t).setAttribute("fill-opacity",e)}},{key:"addClass",value:function(t,e){Nk(Hk,this).get(t).classList.add(e)}},{key:"removeClass",value:function(t,e){Nk(Hk,this).get(t).classList.remove(e)}},{key:"getSVGRoot",value:function(t){return Nk(Hk,this).get(t)}},{key:"remove",value:function(t){null!==Nk(Bk,this)&&(Nk(Hk,this).get(t).remove(),Nk(Hk,this).delete(t))}},{key:"destroy",value:function(){Dk(Bk,this,null);var t,e=Mk(Nk(Hk,this).values());try{for(e.s();!(t=e.n()).done;)t.value.remove()}catch(t){e.e(t)}finally{e.f()}Nk(Hk,this).clear()}}],[{key:"_svgFactory",get:function(){return W(this,"_svgFactory",new me)}}])}();function qk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.x,n=void 0===r?0:r,i=e.y,a=void 0===i?0:i,o=e.width,s=void 0===o?1:o,u=e.height,c=void 0===u?1:u,l=t.style;l.top="".concat(100*a,"%"),l.left="".concat(100*n,"%"),l.width="".concat(100*s,"%"),l.height="".concat(100*c,"%")}function Yk(t){var e=Pk._svgFactory.create(1,1,!0);return Nk(Bk,this).append(e),e.setAttribute("aria-hidden",!0),qk.call(Pk,e,t),e}function Xk(t,e){var r=Pk._svgFactory.createElement("clipPath");t.append(r);var n="clip_".concat(e);r.setAttribute("id",n),r.setAttribute("clipPathUnits","objectBoundingBox");var i=Pk._svgFactory.createElement("use");return r.append(i),i.setAttribute("href","#".concat(e)),i.classList.add("clip"),n}Pk=Vk;`;function Zo(ce,Ce){return typeof ce=="string"?ce:ce instanceof Blob?URL.createObjectURL(ce):ce instanceof ArrayBuffer?URL.createObjectURL(new Blob([ce],Ce)):ce instanceof Response?URL.createObjectURL(ce.blob()):ce}function xt(ce){return new Promise((Ce,Oe)=>{let gt=document.createElement("script");gt.src=ce,gt.onload=function(){Ce()},gt.onerror=function(){Oe()},document.body.append(gt)})}function jc(ce,Ce){return ao(this,null,function*(){Ce&&(Ce instanceof ArrayBuffer&&(Ce=new Blob([Ce])),wc(ce,URL.createObjectURL(Ce)))})}function wc(ce,Ce){let Oe=document.createElement("a");Oe.download=ce,Oe.style.display="none",Oe.href=Ce,document.body.appendChild(Oe),Oe.click(),document.body.removeChild(Oe)}function It(ce){var Ce,Oe,gt,Nt,Ht;for(Ce="",gt=ce.length,Oe=0;Oe=1&&Nt<=127?Ce+=ce.charAt(Oe):Nt>2047?(Ht=224|Nt>>12&15,Ce+=String.fromCharCode(Ht),Ht=128|Nt>>6&63,Ce+=String.fromCharCode(Ht),Ht=128|Nt>>0&63,Ce+=String.fromCharCode(Ht)):(Ht=192|Nt>>6&31,Ce+=String.fromCharCode(Ht),Ht=128|Nt>>0&63,Ce+=String.fromCharCode(Ht));return Ce}var Vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ni(ce){var Ce,Oe,gt,Nt,Ht,fr;for(gt=ce.length,Oe=0,Ce="";Oe>2),Ce+=Vt.charAt((Nt&3)<<4),Ce+="==";break}if(Ht=ce.charCodeAt(Oe++),Oe==gt){Ce+=Vt.charAt(Nt>>2),Ce+=Vt.charAt((Nt&3)<<4|(Ht&240)>>4),Ce+=Vt.charAt((Ht&15)<<2),Ce+="=";break}fr=ce.charCodeAt(Oe++),Ce+=Vt.charAt(Nt>>2),Ce+=Vt.charAt((Nt&3)<<4|(Ht&240)>>4),Ce+=Vt.charAt((Ht&15)<<2|(fr&192)>>6),Ce+=Vt.charAt(fr&63)}return Ce}function wh(ce){return Ni(It(ce))}var vl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof q3<"u"?q3:typeof self<"u"?self:{};function Eh(ce){return ce&&ce.__esModule&&Object.prototype.hasOwnProperty.call(ce,"default")?ce.default:ce}function Da(ce,Ce){for(var Oe=-1,gt=ce==null?0:ce.length,Nt=Array(gt);++Oe-1}var hs=oo,bu=Yn;function Ji(ce,Ce){var Oe=this.__data__,gt=bu(Oe,ce);return gt<0?(++this.size,Oe.push([ce,Ce])):Oe[gt][1]=Ce,this}var Ca=Ji,Wi=xr,In=ws,Io=si,Xo=hs,la=Ca;function wa(ce){var Ce=-1,Oe=ce==null?0:ce.length;for(this.clear();++Ce-1&&ce%1==0&&ce-1&&ce%1==0&&ce<=Cd}var Kg=qc,fw=ec,S2=Kg,jv=uf,u5="[object Arguments]",Vg="[object Array]",Zg="[object Boolean]",cf="[object Date]",lf="[object Error]",Vl="[object Function]",_2="[object Map]",Hv="[object Number]",Y0="[object Object]",D2="[object RegExp]",Qh="[object Set]",Yv="[object String]",wu="[object WeakMap]",J0="[object ArrayBuffer]",R2="[object DataView]",Aw="[object Float32Array]",W0="[object Float64Array]",c5="[object Int8Array]",M2="[object Int16Array]",l5="[object Int32Array]",F2="[object Uint8Array]",T2="[object Uint8ClampedArray]",Xg="[object Uint16Array]",$g="[object Uint32Array]",go={};go[Aw]=go[W0]=go[c5]=go[M2]=go[l5]=go[F2]=go[T2]=go[Xg]=go[$g]=!0,go[u5]=go[Vg]=go[J0]=go[Zg]=go[R2]=go[cf]=go[lf]=go[Vl]=go[_2]=go[Hv]=go[Y0]=go[D2]=go[Qh]=go[Yv]=go[wu]=!1;function dw(ce){return jv(ce)&&S2(ce.length)&&!!go[fw(ce)]}var gw=dw;function h5(ce){return function(Ce){return ce(Ce)}}var lA=h5,oc={exports:{}};oc.exports,function(ce,Ce){var Oe=Ea,gt=Ce&&!Ce.nodeType&&Ce,Nt=gt&&!0&&ce&&!ce.nodeType&&ce,Ht=Nt&&Nt.exports===gt,fr=Ht&&Oe.process,lr=function(){try{var Or=Nt&&Nt.require&&Nt.require("util").types;return Or||fr&&fr.binding&&fr.binding("util")}catch{}}();ce.exports=lr}(oc,oc.exports);var q0=oc.exports,f5=gw,Jv=lA,L2=q0,N2=L2&&L2.isTypedArray,A5=N2?Jv(N2):f5,ep=A5,Wv=su,d5=Jc,qv=Nu,zv=kh,O2=Wc,tp=ep,Kv=Object.prototype,Sa=Kv.hasOwnProperty;function P2(ce,Ce){var Oe=qv(ce),gt=!Oe&&d5(ce),Nt=!Oe&&!gt&&zv(ce),Ht=!Oe&&!gt&&!Nt&&tp(ce),fr=Oe||gt||Nt||Ht,lr=fr?Wv(ce.length,String):[],Or=lr.length;for(var Xr in ce)(Ce||Sa.call(ce,Xr))&&!(fr&&(Xr=="length"||Nt&&(Xr=="offset"||Xr=="parent")||Ht&&(Xr=="buffer"||Xr=="byteLength"||Xr=="byteOffset")||O2(Xr,Or)))&&lr.push(Xr);return lr}var Vv=P2,hA=Object.prototype;function Ui(ce){var Ce=ce&&ce.constructor,Oe=typeof Ce=="function"&&Ce.prototype||hA;return ce===Oe}var Zv=Ui;function Xv(ce,Ce){return function(Oe){return ce(Ce(Oe))}}var fA=Xv,g5=fA,$v=g5(Object.keys,Object),G2=$v,_n=Zv,ey=G2,U2=Object.prototype,ty=U2.hasOwnProperty;function Er(ce){if(!_n(ce))return ey(ce);var Ce=[];for(var Oe in Object(ce))ty.call(ce,Oe)&&Oe!="constructor"&&Ce.push(Oe);return Ce}var ry=Er,ny=h2,j2=Kg;function pw(ce){return ce!=null&&j2(ce.length)&&!ny(ce)}var Za=pw,z0=Vv,H2=ry,p5=Za;function K0(ce){return p5(ce)?z0(ce):H2(ce)}var rp=K0,iy=qg,v5=rp;function vw(ce,Ce){return ce&&iy(Ce,v5(Ce),ce)}var ei=vw;function ay(ce){var Ce=[];if(ce!=null)for(var Oe in Object(ce))Ce.push(Oe);return Ce}var oy=ay,sy=yl,yw=Zv,mw=oy,y5=Object.prototype,wd=y5.hasOwnProperty;function Ed(ce){if(!sy(ce))return mw(ce);var Ce=yw(ce),Oe=[];for(var gt in ce)gt=="constructor"&&(Ce||!wd.call(ce,gt))||Oe.push(gt);return Oe}var np=Ed,Y2=Vv,J2=np,hf=Za;function Zl(ce){return hf(ce)?Y2(ce,!0):J2(ce)}var uy=Zl,Iw=qg,zc=uy;function cy(ce,Ce){return ce&&Iw(Ce,zc(Ce),ce)}var V0=cy,ff={exports:{}};ff.exports,function(ce,Ce){var Oe=xa,gt=Ce&&!Ce.nodeType&&Ce,Nt=gt&&!0&&ce&&!ce.nodeType&&ce,Ht=Nt&&Nt.exports===gt,fr=Ht?Oe.Buffer:void 0,lr=fr?fr.allocUnsafe:void 0;function Or(Xr,hn){if(hn)return Xr.slice();var Pn=Xr.length,Xn=lr?lr(Pn):new Xr.constructor(Pn);return Xr.copy(Xn),Xn}ce.exports=Or}(ff,ff.exports);var so=ff.exports;function Bd(ce,Ce){var Oe=-1,gt=ce.length;for(Ce||(Ce=Array(gt));++OeNt?0:Nt+Ce),Oe=Oe>Nt?Nt:Oe,Oe<0&&(Oe+=Nt),Nt=Ce>Oe?0:Oe-Ce>>>0,Ce>>>=0;for(var Ht=Array(Nt);++gt0&&Oe(lr)?Ce>1?Ep(lr,Ce-1,Oe,gt,Nt):M5(Nt,lr):gt||(Nt[Nt.length]=lr)}return Nt}var Kd=Ep,Oy=Kd;function Vd(ce){var Ce=ce==null?0:ce.length;return Ce?Oy(ce,1):[]}var QI=Vd;function Py(ce,Ce,Oe){switch(Oe.length){case 0:return ce.call(Ce);case 1:return ce.call(Ce,Oe[0]);case 2:return ce.call(Ce,Oe[0],Oe[1]);case 3:return ce.call(Ce,Oe[0],Oe[1],Oe[2])}return ce.apply(Ce,Oe)}var Zd=Py,xI=Zd,rE=Math.max;function nE(ce,Ce,Oe){return Ce=rE(Ce===void 0?ce.length-1:Ce,0),function(){for(var gt=arguments,Nt=-1,Ht=rE(gt.length-Ce,0),fr=Array(Ht);++Nt0){if(++Ce>=ds)return arguments[0]}else Ce=0;return ce.apply(void 0,arguments)}}var Cf=Rc,$d=Gu,p1=Cf,Uu=p1($d),Uy=Uu,rh=QI,wf=SI,ju=Uy;function Sl(ce){return ju(wf(ce,void 0,rh),ce+"")}var aE=Sl,eg=Kt,oE=S5,T5=bf,sE=Yd,Hu=qg,Th=eE,nh=aE,L5=$0,MI=1,jy=2,Yu=4,uE=nh(function(ce,Ce){var Oe={};if(ce==null)return Oe;var gt=!1;Ce=eg(Ce,function(Ht){return Ht=sE(Ht,ce),gt||(gt=Ht.length>1),Ht}),Hu(ce,L5(ce),Oe),gt&&(Oe=oE(Oe,MI|jy|Yu,Th));for(var Nt=Ce.length;Nt--;)T5(Oe,Ce[Nt]);return Oe}),pc=uE;const cE=Eh(pc);var Ju=/\s/;function Vs(ce){for(var Ce=ce.length;Ce--&&Ju.test(ce.charAt(Ce)););return Ce}var Eu=Vs,FI=Eu,lE=/^\s+/;function Bp(ce){return ce&&ce.slice(0,FI(ce)+1).replace(lE,"")}var N5=Bp,Hy=N5,v1=yl,TI=qs,tg=NaN,LI=/^[-+]0x[0-9a-f]+$/i,DA=/^0b[01]+$/i,rg=/^0o[0-7]+$/i,y1=parseInt;function m1(ce){if(typeof ce=="number")return ce;if(TI(ce))return tg;if(v1(ce)){var Ce=typeof ce.valueOf=="function"?ce.valueOf():ce;ce=v1(Ce)?Ce+"":Ce}if(typeof ce!="string")return ce===0?ce:+ce;ce=Hy(ce);var Oe=DA.test(ce);return Oe||rg.test(ce)?y1(ce.slice(2),Oe?2:8):LI.test(ce)?tg:+ce}var ng=m1,O5=ng,hE=1/0,fE=17976931348623157e292;function ig(ce){if(!ce)return ce===0?ce:0;if(ce=O5(ce),ce===hE||ce===-hE){var Ce=ce<0?-1:1;return Ce*fE}return ce===ce?ce:0}var NI=ig,ga=NI;function Co(ce){var Ce=ga(ce),Oe=Ce%1;return Ce===Ce?Oe?Ce-Oe:Ce:0}var Lh=Co,Nh=Lh,OI="Expected a function";function kp(ce,Ce){if(typeof Ce!="function")throw new TypeError(OI);return ce=Nh(ce),function(){if(--ce<1)return Ce.apply(this,arguments)}}var _l=kp,ag=vy,Oh=ag&&new ag,I1=Oh,PI=Xd,AE=I1,P5=AE?function(ce,Ce){return AE.set(ce,Ce),ce}:PI,dE=P5,el=cc,GI=yl;function Yy(ce){return function(){var Ce=arguments;switch(Ce.length){case 0:return new ce;case 1:return new ce(Ce[0]);case 2:return new ce(Ce[0],Ce[1]);case 3:return new ce(Ce[0],Ce[1],Ce[2]);case 4:return new ce(Ce[0],Ce[1],Ce[2],Ce[3]);case 5:return new ce(Ce[0],Ce[1],Ce[2],Ce[3],Ce[4]);case 6:return new ce(Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5]);case 7:return new ce(Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5],Ce[6])}var Oe=el(ce.prototype),gt=ce.apply(Oe,Ce);return GI(gt)?gt:Oe}}var b1=Yy,gE=b1,tl=xa,pE=1;function Qp(ce,Ce,Oe){var gt=Ce&pE,Nt=gE(ce);function Ht(){var fr=this&&this!==tl&&this instanceof Ht?Nt:ce;return fr.apply(gt?Oe:this,arguments)}return Ht}var vE=Qp,Dl=Math.max;function og(ce,Ce,Oe,gt){for(var Nt=-1,Ht=ce.length,fr=Oe.length,lr=-1,Or=Ce.length,Xr=Dl(Ht-fr,0),hn=Array(Or+Xr),Pn=!gt;++lr1?"& ":"")+Ce[gt],Ce=Ce.join(Oe>2?", ":" "),ce.replace(zI,`{ /* [wrapped with `+Ce+`] */ `)}var KI=z5;function Zy(ce,Ce,Oe,gt){for(var Nt=ce.length,Ht=Oe+(gt?1:-1);gt?Ht--:++Ht-1}var Q1=K5,DE=P0,RE=Q1,ME=1,ZI=2,Gh=8,Mp=16,Fp=32,em=64,x1=128,tm=256,V5=512,FE=[["ary",x1],["bind",ME],["bindKey",ZI],["curry",Gh],["curryRight",Mp],["flip",V5],["partial",Fp],["partialRight",em],["rearg",tm]];function Tp(ce,Ce){return DE(FE,function(Oe){var gt="_."+Oe[0];Ce&Oe[1]&&!RE(ce,gt)&&ce.push(gt)}),ce.sort()}var Lp=Tp,TE=SE,LE=KI,XI=Uy,$I=Lp;function ku(ce,Ce,Oe){var gt=Ce+"";return XI(ce,LE(gt,$I(TE(gt),Oe)))}var lg=ku,eb=YI,rm=Dp,tb=lg,S1=4,Z5=8,_1=32,NA=64;function nm(ce,Ce,Oe,gt,Nt,Ht,fr,lr,Or,Xr){var hn=Ce&Z5,Pn=hn?fr:void 0,Xn=hn?void 0:fr,ti=hn?Ht:void 0,Jt=hn?void 0:Ht;Ce|=hn?_1:NA,Ce&=~(hn?NA:_1),Ce&S1||(Ce&=-4);var gr=[ce,Ce,Nt,ti,Pn,Jt,Xn,lr,Or,Xr],Ar=Oe.apply(void 0,gr);return eb(ce)&&rm(Ar,gr),Ar.placeholder=gt,tb(Ar,ce,Ce)}var D1=nm;function rb(ce){var Ce=ce;return Ce.placeholder}var Ll=rb,im=Do,Qf=Wc,R1=Math.min;function Mo(ce,Ce){for(var Oe=ce.length,gt=R1(Ce.length,Oe),Nt=im(ce);gt--;){var Ht=Ce[gt];ce[gt]=Qf(Ht,Oe)?Nt[Ht]:void 0}return ce}var OA=Mo,am="__lodash_placeholder__";function PA(ce,Ce){for(var Oe=-1,gt=ce.length,Nt=0,Ht=[];++Oe1&&At.reverse(),hn&&Or0&&(Oe=Ce.apply(this,arguments)),ce<=1&&(Ce=void 0),Oe}}var tB=eB,vb=Xd,L1=SI,N1=Uy;function yb(ce,Ce){return N1(L1(ce,Ce,vb),ce+"")}var oh=yb,Ak=oh,rB=ps,nB=Ll,dk=Ds,gk=1,um=32,Fc=Ak(function(ce,Ce,Oe){var gt=gk;if(Oe.length){var Nt=dk(Oe,nB(Fc));gt|=um}return rB(ce,gt,Ce,Oe,Nt)});Fc.placeholder={};var Up=Fc,mb=oh,iB=ps,Ib=Ll,pk=Ds,aB=1,oB=2,jp=32,Hp=mb(function(ce,Ce,Oe){var gt=aB|oB;if(Oe.length){var Nt=pk(Oe,Ib(Hp));gt|=jp}return iB(Ce,gt,ce,Oe,Nt)});Hp.placeholder={};var un=Hp,sh=ps,Ag=8;function cm(ce,Ce,Oe){Ce=Oe?void 0:Ce;var gt=sh(ce,Ag,void 0,void 0,void 0,void 0,void 0,Ce);return gt.placeholder=cm.placeholder,gt}cm.placeholder={};var sB=cm,uB=ps,cB=16;function bb(ce,Ce,Oe){Ce=Oe?void 0:Ce;var gt=uB(ce,cB,void 0,void 0,void 0,void 0,void 0,Ce);return gt.placeholder=bb.placeholder,gt}bb.placeholder={};var lB=bb,Cb=xa,hB=function(){return Cb.Date.now()},fB=hB,wb=yl,lm=fB,hm=ng,fm="Expected a function",Yp=Math.max,AB=Math.min;function O1(ce,Ce,Oe){var gt,Nt,Ht,fr,lr,Or,Xr=0,hn=!1,Pn=!1,Xn=!0;if(typeof ce!="function")throw new TypeError(fm);Ce=hm(Ce)||0,wb(Oe)&&(hn=!!Oe.leading,Pn="maxWait"in Oe,Ht=Pn?Yp(hm(Oe.maxWait)||0,Ce):Ht,Xn="trailing"in Oe?!!Oe.trailing:Xn);function ti(Qr){var Zn=gt,Na=Nt;return gt=Nt=void 0,Xr=Qr,fr=ce.apply(Na,Zn),fr}function Jt(Qr){return Xr=Qr,lr=setTimeout(Ue,Ce),hn?ti(Qr):fr}function gr(Qr){var Zn=Qr-Or,Na=Qr-Xr,ka=Ce-Zn;return Pn?AB(ka,Ht-Na):ka}function Ar(Qr){var Zn=Qr-Or,Na=Qr-Xr;return Or===void 0||Zn>=Ce||Zn<0||Pn&&Na>=Ht}function Ue(){var Qr=lm();if(Ar(Qr))return At(Qr);lr=setTimeout(Ue,gr(Qr))}function At(Qr){return lr=void 0,Xn&>?ti(Qr):(gt=Nt=void 0,fr)}function qt(){lr!==void 0&&clearTimeout(lr),Xr=0,gt=Or=Nt=lr=void 0}function Cr(){return lr===void 0?fr:At(lm())}function Sn(){var Qr=lm(),Zn=Ar(Qr);if(gt=arguments,Nt=this,Or=Qr,Zn){if(lr===void 0)return Jt(Or);if(Pn)return clearTimeout(lr),lr=setTimeout(Ue,Ce),ti(Or)}return lr===void 0&&(lr=setTimeout(Ue,Ce)),fr}return Sn.cancel=qt,Sn.flush=Cr,Sn}var xf=O1,dg="Expected a function";function vk(ce,Ce,Oe){if(typeof ce!="function")throw new TypeError(dg);return setTimeout(function(){ce.apply(void 0,Oe)},Ce)}var jh=vk,Sf=jh,P1=oh,ro=P1(function(ce,Ce){return Sf(ce,1,Ce)}),qo=ro,qa=jh,Au=oh,Eb=ng,Pl=Au(function(ce,Ce,Oe){return qa(ce,Eb(Ce)||0,Oe)}),Jp=Pl,yk=ps,Gl=512;function Wp(ce){return yk(ce,Gl)}var mk=Wp,Bb="Expected a function";function Am(ce){if(typeof ce!="function")throw new TypeError(Bb);return function(){var Ce=arguments;switch(Ce.length){case 0:return!ce.call(this);case 1:return!ce.call(this,Ce[0]);case 2:return!ce.call(this,Ce[0],Ce[1]);case 3:return!ce.call(this,Ce[0],Ce[1],Ce[2])}return!ce.apply(this,Ce)}}var Ik=Am,qu=tB;function dB(ce){return qu(2,ce)}var kb=dB,dm="__lodash_hash_undefined__";function bk(ce){return this.__data__.set(ce,dm),this}var Qb=bk;function gB(ce){return this.__data__.has(ce)}var xb=gB,gm=O0,G1=Qb,qp=xb;function Rs(ce){var Ce=-1,Oe=ce==null?0:ce.length;for(this.__data__=new gm;++Celr))return!1;var Xr=Ht.get(ce),hn=Ht.get(Ce);if(Xr&&hn)return Xr==Ce&&hn==ce;var Pn=-1,Xn=!0,ti=Oe&uh?new zp:void 0;for(Ht.set(ce,Ce),Ht.set(Ce,ce);++Pn=gt?ce:Zp(ce,Ce,Oe)}var Xp=jA,$p=Zd,gg=op,e0=oh,du=Xp,t0=Lh,ms="Expected a function",lh=Math.max;function r0(ce,Ce){if(typeof ce!="function")throw new TypeError(ms);return Ce=Ce==null?0:lh(t0(Ce),0),e0(function(Oe){var gt=Oe[Ce],Nt=du(Oe,0,Ce);return gt&&gg(Nt,gt),$p(ce,this,Nt)})}var vc=r0,Ku=xf,pg=yl,yo="Expected a function";function il(ce,Ce,Oe){var gt=!0,Nt=!0;if(typeof ce!="function")throw new TypeError(yo);return pg(Oe)&&(gt="leading"in Oe?!!Oe.leading:gt,Nt="trailing"in Oe?!!Oe.trailing:Nt),Ku(ce,Ce,{leading:gt,maxWait:Ce,trailing:Nt})}var HA=il,Ts=$E;function Qo(ce){return Ts(ce,1)}var hh=Qo,vg=Xd;function gu(ce){return typeof ce=="function"?ce:vg}var pu=gu,yg=pu,mg=wo;function fh(ce,Ce){return mg(yg(Ce),ce)}var Df=fh,Rf={after:_l,ary:$E,before:tB,bind:Up,bindKey:un,curry:sB,curryRight:lB,debounce:xf,defer:qo,delay:Jp,flip:mk,memoize:Ss,negate:Ik,once:kb,overArgs:ht,partial:wo,partialRight:Ms,rearg:os,rest:Su,spread:vc,throttle:HA,unary:hh,wrap:Df};const Ah=(ce,Ce)=>{const Oe=ce.__vccOpts||ce;for(const[gt,Nt]of Ce)Oe[gt]=Nt;return Oe},Jh=`data:text/javascript;base64,${wh(Et)}`,al=`data:text/javascript;base64,${wh(En)}`;let Mf=!1,jo=!1;const bt=ua.defineComponent({name:"VueOfficePdf",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},staticFileUrl:{type:String,default:"https://unpkg.com/pdfjs-dist@3.1.81/"},options:{type:Object,default:()=>({})},defaultScale:{type:Number,default:1}},emits:["rendered","error"],setup(ce,{emit:Ce}){let Oe=null,gt=null;const Nt=ua.ref(null),Ht=ua.ref(null),fr=ua.ref([]),lr=ua.ref(0);let Or=0,Xr=0,hn=0,Pn=0,Xn=6,ti=0,Jt=0,gr=null,Ar=2,Ue=ua.ref(ce.options.defaultScale||1);ua.onBeforeUnmount(()=>{Oe!==null&&(Oe.destroy(),Oe=null,gt=null,gr&&clearTimeout(gr))});function At(){return Ue}function qt(ha){Ue.value=ha,Na()}function Cr(){return xt(Jh).then(()=>{if(window.pdfjsLib&&!jo)jo=!0,window.pdfjsLib.GlobalWorkerOptions.workerSrc=al;else return Promise.reject("window.pdfjsLib未找到")})}function Sn(){return new Promise(ha=>{const fa=()=>{window.pdfjsLib?ha():gr=setTimeout(fa,10)};fa()})}function Qr(){return window.pdfjsLib?Promise.resolve():Mf?Sn():(Mf=!0,Cr())}function Zn(){Ht.value.innerHTML=""}function Na(){if(!ce.src){Zn(),Ce("error",new Error("src不能为空"));return}gt=window.pdfjsLib.getDocument(Wn({url:Zo(ce.src,{type:"application/pdf"}),withCredentials:ce.requestOptions&&ce.requestOptions.withCredentials,cMapUrl:`${ce.staticFileUrl.endsWith("/")?ce.staticFileUrl:ce.staticFileUrl+"/"}cmaps/`,cMapPacked:!0,enableXfa:!0},cE(ce.options,["width"]))),gt.promise.then(ha=>{Oe&&Oe.destroy(),Oe=ha,ka(Oe).then(fa=>{Or=Oe.numPages,Pn=Nt.value.getBoundingClientRect().height,Xr=fa.width,hn=fa.height,ti=fa.canvasWidth,Jt=fa.canvasHeight;let Oa=ce.options.gap||10;Xn=Math.ceil(Pn/(hn+Oa))+4;let Qi=(hn+Oa)*Or-Oa;Ht.value.style.height=Qi+"px",Zn(),Is(1,Math.min(Or,Xn))})}).catch(ha=>{Ce("error",ha)})}function ka(ha){return ha.getPage(1).then(fa=>{let Oa=ce.options.width||Ht.value.getBoundingClientRect().width-20,Qi=fa.getViewport({scale:1});Qi.width>Oa*2?Ar=.5:Qi.width>Oa?Ar=1:Ar=2,Qi=fa.getViewport({scale:Ar*(Ue.value<1?Ue.value:1)});const eu=window.devicePixelRatio>2?1.5:2;let tu=Math.floor(Qi.width*eu),bs=Math.floor(Qi.height*eu),Pa=Math.floor(Qi.width),xo=Math.floor(Qi.height);if(ce.options.width){let n0=ce.options.width/Pa;Pa=Math.floor(ce.options.width),xo=Math.floor(xo*n0)}let ol=Ht.value.getBoundingClientRect().width-20;if(Pa>ol){let n0=ol/Pa;Pa=Math.floor(ol),xo=Math.floor(xo*n0)}return{width:Pa,height:xo,canvasWidth:tu,canvasHeight:bs}}).catch(fa=>{Ce("error",fa)})}const To=Rf.debounce(function(ha){const{scrollTop:fa}=ha.target;let Oa=parseInt(getComputedStyle(Ht.value).paddingTop)||0;const Qi=ce.options.gap||10,eu=Math.max(Math.floor(Math.max(fa-Oa,0)/(hn+Qi))-1,1),tu=Math.min(eu+Xn-1,Or);Is(eu,tu)},60);function Lo(ha){let fa=parseInt(getComputedStyle(Ht.value).paddingTop)||0,Oa=ce.options.gap||10;const Qi=document.createElement("canvas");return Qi.style.position="absolute",Qi.style.top=(ha-1)*(hn+Oa)+fa+"px",Qi.style.left="50%",Qi.style.transform="translate(-50%)",Qi.style.backgroundColor="#fff",Qi.setAttribute("data-id",ha),Qi.width=ti,Qi.height=Jt,Qi.style.width=`${Xr}px`,Qi.style.height=`${hn}px`,Qi}function Is(ha,fa){let Oa=Ht.value,Qi=[...Oa.childNodes],eu=[];if(Oa.childNodes.length===0)for(let tu=ha;tu<=fa;tu++){let bs=Lo(tu);Oa.appendChild(bs),eu.push(Ls(tu,bs))}else{let tu=+Qi[0].getAttribute("data-id"),bs=+Qi[Qi.length-1].getAttribute("data-id");if(fabs)for(let Pa=ha;Pa<=fa;Pa++){let xo=Lo(Pa);Oa.appendChild(xo),eu.push(Ls(Pa,xo))}if(ha=tu){let Pa=Qi[0];for(let xo=tu-1;xo>=ha;xo--){let ol=Lo(xo);Oa.insertBefore(ol,Pa),Pa=ol,eu.push(Ls(xo,ol))}}for(let Pa=0;Pa<=bs-tu;Pa++){let xo=+Qi[Pa].getAttribute("data-id");(xofa)&&Oa.removeChild(Qi[Pa])}if(fa>bs&&ha<=bs)for(let Pa=bs+1;Pa<=fa;Pa++){let xo=Lo(Pa);Oa.appendChild(xo),eu.push(Ls(Pa,xo))}}Promise.all(eu).then(tu=>{Ce("rendered")}).catch(tu=>{Ce("error",tu)})}function Ls(ha,fa){return Oe.getPage(ha).then(Oa=>{const Qi=Oa.getViewport({scale:Ar*(Ue.value<1?Ue.value:1)});let eu=window.devicePixelRatio>2?1.5:2;if(ti*Qi.height!==Jt*Qi.width){let Pa=Math.floor(Qi.width*eu),xo=Math.floor(Qi.height*eu),ol=Jt/xo;eu=eu*ol,fa.width=Pa*ol,fa.style.width=parseInt(fa.style.width)*ol+"px"}const tu=fa.getContext("2d"),bs=eu!==1?[eu,0,0,eu,0,0]:null;return Oa.render({canvasContext:tu,transform:bs,viewport:Qi}).promise})}function $s(){Is(1,Math.min(Or,Xn))}ua.onMounted(()=>{ce.src&&Qr().then(Na).catch(ha=>{console.warn(ha)})}),ua.watch(()=>ce.src,()=>{Qr().then(Na).catch(ha=>{console.warn(ha)})});function Xi(ha){Oe&&Oe._transport&&Oe._transport.getData().then(fa=>{jc(ha||`vue-office-pdf-${new Date().getTime()}.pdf`,fa.buffer)})}return{containerRef:Nt,wrapperRef:Ht,rootRef:fr,numPages:lr,save:Xi,onScrollPdf:To,rerender:$s,userScale:Ue,getScale:At,setScale:qt}}});function Wt(ce,Ce,Oe,gt,Nt,Ht){return vi.openBlock(),vi.createElementBlock("div",{class:"vue-office-pdf",ref:"containerRef",style:{"text-align":"center","overflow-y":"auto",position:"relative"},onScroll:Ce[0]||(Ce[0]=(...fr)=>ce.onScrollPdf&&ce.onScrollPdf(...fr))},[vi.createElementVNode("div",{ref:"wrapperRef",class:"vue-office-pdf-wrapper",style:vi.normalizeStyle([{background:"gray",padding:"30px 0",position:"relative","box-sizing":"content-box"},{width:`${100*(ce.userScale<1?1:ce.userScale)}%`}])},null,4),vi.renderSlot(ce.$slots,"default")],544)}const _r=Ah(bt,[["render",Wt]]);return _r.install=function(ce){ce.component(_r.name,_r)},_r})}(jx)),jx.exports}var ise=nse();const ase=Jx(ise);var Hx={exports:{}},ose=Hx.exports,GG;function sse(){return GG||(GG=1,function(mo,Fg){(function(ua,vi){mo.exports=vi(ND(),OD())})(ose,function(ua,vi){var Bo=function(r,t){return Bo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Bo(r,t)};function Gs(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Bo(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Wr=function(){return Wr=Object.assign||function(r){for(var t,e=1,n=arguments.length;e0&&o[o.length-1])&&(v[0]===6||v[0]===2)){e=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1] (c) 2009-2016 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE */(function(r,t){(function(e){r.exports=e()})(function(){return function e(n,i,o){function s(v,C){if(!i[v]){if(!n[v]){var w=typeof Et=="function"&&Et;if(!C&&w)return w(v,!0);if(l)return l(v,!0);var x=new Error("Cannot find module '"+v+"'");throw x.code="MODULE_NOT_FOUND",x}var Q=i[v]={exports:{}};n[v][0].call(Q.exports,function(R){var L=n[v][1][R];return s(L||R)},Q,Q.exports,e,n,i,o)}return i[v].exports}for(var l=typeof Et=="function"&&Et,f=0;f>2,Q=(3&v)<<4|C>>4,R=1>6:64,L=2>4,C=(15&x)<<4|(Q=l.indexOf(f.charAt(L++)))>>2,w=(3&Q)<<6|(R=l.indexOf(f.charAt(L++))),k[P++]=v,Q!==64&&(k[P++]=C),R!==64&&(k[P++]=w);return k}},{"./support":30,"./utils":32}],2:[function(e,n,i){var o=e("./external"),s=e("./stream/DataWorker"),l=e("./stream/Crc32Probe"),f=e("./stream/DataLengthProbe");function v(C,w,x,Q,R){this.compressedSize=C,this.uncompressedSize=w,this.crc32=x,this.compression=Q,this.compressedContent=R}v.prototype={getContentWorker:function(){var C=new s(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new f("data_length")),w=this;return C.on("end",function(){if(this.streamInfo.data_length!==w.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),C},getCompressedWorker:function(){return new s(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},v.createWorkerFrom=function(C,w,x){return C.pipe(new l).pipe(new f("uncompressedSize")).pipe(w.compressWorker(x)).pipe(new f("compressedSize")).withStreamInfo("compression",w)},n.exports=v},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,n,i){var o=e("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,n,i){var o=e("./utils"),s=function(){for(var l,f=[],v=0;v<256;v++){l=v;for(var C=0;C<8;C++)l=1&l?3988292384^l>>>1:l>>>1;f[v]=l}return f}();n.exports=function(l,f){return l!==void 0&&l.length?o.getTypeOf(l)!=="string"?function(v,C,w,x){var Q=s,R=x+w;v^=-1;for(var L=x;L>>8^Q[255&(v^C[L])];return-1^v}(0|f,l,l.length,0):function(v,C,w,x){var Q=s,R=x+w;v^=-1;for(var L=x;L>>8^Q[255&(v^C.charCodeAt(L))];return-1^v}(0|f,l,l.length,0):0}},{"./utils":32}],5:[function(e,n,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(e,n,i){var o=null;o=typeof Promise<"u"?Promise:e("lie"),n.exports={Promise:o}},{lie:37}],7:[function(e,n,i){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=e("pako"),l=e("./utils"),f=e("./stream/GenericWorker"),v=o?"uint8array":"array";function C(w,x){f.call(this,"FlateWorker/"+w),this._pako=null,this._pakoAction=w,this._pakoOptions=x,this.meta={}}i.magic="\b\0",l.inherits(C,f),C.prototype.processChunk=function(w){this.meta=w.meta,this._pako===null&&this._createPako(),this._pako.push(l.transformTo(v,w.data),!1)},C.prototype.flush=function(){f.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},C.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this._pako=null},C.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var w=this;this._pako.onData=function(x){w.push({data:x,meta:w.meta})}},i.compressWorker=function(w){return new C("Deflate",w)},i.uncompressWorker=function(){return new C("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,n,i){function o(Q,R){var L,P="";for(L=0;L>>=8;return P}function s(Q,R,L,P,M,k){var G,Y,re=Q.file,ie=Q.compression,le=k!==v.utf8encode,pe=l.transformTo("string",k(re.name)),ve=l.transformTo("string",v.utf8encode(re.name)),Ee=re.comment,Se=l.transformTo("string",k(Ee)),ke=l.transformTo("string",v.utf8encode(Ee)),Le=ve.length!==re.name.length,be=ke.length!==Ee.length,ze="",ut="",ft="",Qt=re.dir,vt=re.date,Gt={crc32:0,compressedSize:0,uncompressedSize:0};R&&!L||(Gt.crc32=Q.crc32,Gt.compressedSize=Q.compressedSize,Gt.uncompressedSize=Q.uncompressedSize);var Ct=0;R&&(Ct|=8),le||!Le&&!be||(Ct|=2048);var St=0,dr=0;Qt&&(St|=16),M==="UNIX"?(dr=798,St|=function(ir,Fn){var Ei=ir;return ir||(Ei=Fn?16893:33204),(65535&Ei)<<16}(re.unixPermissions,Qt)):(dr=20,St|=function(ir){return 63&(ir||0)}(re.dosPermissions)),G=vt.getUTCHours(),G<<=6,G|=vt.getUTCMinutes(),G<<=5,G|=vt.getUTCSeconds()/2,Y=vt.getUTCFullYear()-1980,Y<<=4,Y|=vt.getUTCMonth()+1,Y<<=5,Y|=vt.getUTCDate(),Le&&(ut=o(1,1)+o(C(pe),4)+ve,ze+="up"+o(ut.length,2)+ut),be&&(ft=o(1,1)+o(C(Se),4)+ke,ze+="uc"+o(ft.length,2)+ft);var ur="";return ur+=` \0`,ur+=o(Ct,2),ur+=ie.magic,ur+=o(G,2),ur+=o(Y,2),ur+=o(Gt.crc32,4),ur+=o(Gt.compressedSize,4),ur+=o(Gt.uncompressedSize,4),ur+=o(pe.length,2),ur+=o(ze.length,2),{fileRecord:w.LOCAL_FILE_HEADER+ur+pe+ze,dirRecord:w.CENTRAL_FILE_HEADER+o(dr,2)+ur+o(Se.length,2)+"\0\0\0\0"+o(St,4)+o(P,4)+pe+ze+Se}}var l=e("../utils"),f=e("../stream/GenericWorker"),v=e("../utf8"),C=e("../crc32"),w=e("../signature");function x(Q,R,L,P){f.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=R,this.zipPlatform=L,this.encodeFileName=P,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}l.inherits(x,f),x.prototype.push=function(Q){var R=Q.meta.percent||0,L=this.entriesCount,P=this._sources.length;this.accumulate?this.contentBuffer.push(Q):(this.bytesWritten+=Q.data.length,f.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:L?(R+100*(L-P-1))/L:100}}))},x.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var R=this.streamFiles&&!Q.file.dir;if(R){var L=s(Q,R,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:L.fileRecord,meta:{percent:0}})}else this.accumulate=!0},x.prototype.closedSource=function(Q){this.accumulate=!1;var R=this.streamFiles&&!Q.file.dir,L=s(Q,R,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(L.dirRecord),R)this.push({data:function(P){return w.DATA_DESCRIPTOR+o(P.crc32,4)+o(P.compressedSize,4)+o(P.uncompressedSize,4)}(Q),meta:{percent:100}});else for(this.push({data:L.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},x.prototype.flush=function(){for(var Q=this.bytesWritten,R=0;R=this.index;f--)v=(v<<8)+this.byteAt(f);return this.index+=l,v},readString:function(l){return o.transformTo("string",this.readData(l))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var l=this.readInt(4);return new Date(Date.UTC(1980+(l>>25&127),(l>>21&15)-1,l>>16&31,l>>11&31,l>>5&63,(31&l)<<1))}},n.exports=s},{"../utils":32}],19:[function(e,n,i){var o=e("./Uint8ArrayReader");function s(l){o.call(this,l)}e("../utils").inherits(s,o),s.prototype.readData=function(l){this.checkOffset(l);var f=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,f},n.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,n,i){var o=e("./DataReader");function s(l){o.call(this,l)}e("../utils").inherits(s,o),s.prototype.byteAt=function(l){return this.data.charCodeAt(this.zero+l)},s.prototype.lastIndexOfSignature=function(l){return this.data.lastIndexOf(l)-this.zero},s.prototype.readAndCheckSignature=function(l){return l===this.readData(4)},s.prototype.readData=function(l){this.checkOffset(l);var f=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,f},n.exports=s},{"../utils":32,"./DataReader":18}],21:[function(e,n,i){var o=e("./ArrayReader");function s(l){o.call(this,l)}e("../utils").inherits(s,o),s.prototype.readData=function(l){if(this.checkOffset(l),l===0)return new Uint8Array(0);var f=this.data.subarray(this.zero+this.index,this.zero+this.index+l);return this.index+=l,f},n.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(e,n,i){var o=e("../utils"),s=e("../support"),l=e("./ArrayReader"),f=e("./StringReader"),v=e("./NodeBufferReader"),C=e("./Uint8ArrayReader");n.exports=function(w){var x=o.getTypeOf(w);return o.checkSupport(x),x!=="string"||s.uint8array?x==="nodebuffer"?new v(w):s.uint8array?new C(o.transformTo("uint8array",w)):new l(o.transformTo("array",w)):new f(w)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,n,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,n,i){var o=e("./GenericWorker"),s=e("../utils");function l(f){o.call(this,"ConvertWorker to "+f),this.destType=f}s.inherits(l,o),l.prototype.processChunk=function(f){this.push({data:s.transformTo(this.destType,f.data),meta:f.meta})},n.exports=l},{"../utils":32,"./GenericWorker":28}],25:[function(e,n,i){var o=e("./GenericWorker"),s=e("../crc32");function l(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(l,o),l.prototype.processChunk=function(f){this.streamInfo.crc32=s(f.data,this.streamInfo.crc32||0),this.push(f)},n.exports=l},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,n,i){var o=e("../utils"),s=e("./GenericWorker");function l(f){s.call(this,"DataLengthProbe for "+f),this.propName=f,this.withStreamInfo(f,0)}o.inherits(l,s),l.prototype.processChunk=function(f){if(f){var v=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=v+f.data.length}s.prototype.processChunk.call(this,f)},n.exports=l},{"../utils":32,"./GenericWorker":28}],27:[function(e,n,i){var o=e("../utils"),s=e("./GenericWorker");function l(f){s.call(this,"DataWorker");var v=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,f.then(function(C){v.dataIsReady=!0,v.data=C,v.max=C&&C.length||0,v.type=o.getTypeOf(C),v.isPaused||v._tickAndRepeat()},function(C){v.error(C)})}o.inherits(l,s),l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},l.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},l.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},l.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var f=null,v=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":f=this.data.substring(this.index,v);break;case"uint8array":f=this.data.subarray(this.index,v);break;case"array":case"nodebuffer":f=this.data.slice(this.index,v)}return this.index=v,this.push({data:f,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=l},{"../utils":32,"./GenericWorker":28}],28:[function(e,n,i){function o(s){this.name=s||"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}o.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,l){return this._listeners[s].push(l),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,l){if(this._listeners[s])for(var f=0;f "+s:s}},n.exports=o},{}],29:[function(e,n,i){var o=e("../utils"),s=e("./ConvertWorker"),l=e("./GenericWorker"),f=e("../base64"),v=e("../support"),C=e("../external"),w=null;if(v.nodestream)try{w=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function x(R,L){return new C.Promise(function(P,M){var k=[],G=R._internalType,Y=R._outputType,re=R._mimeType;R.on("data",function(ie,le){k.push(ie),L&&L(le)}).on("error",function(ie){k=[],M(ie)}).on("end",function(){try{var ie=function(le,pe,ve){switch(le){case"blob":return o.newBlob(o.transformTo("arraybuffer",pe),ve);case"base64":return f.encode(pe);default:return o.transformTo(le,pe)}}(Y,function(le,pe){var ve,Ee=0,Se=null,ke=0;for(ve=0;ve"u")i.blob=!1;else{var o=new ArrayBuffer(0);try{i.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(o),i.blob=s.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!e("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(e,n,i){for(var o=e("./utils"),s=e("./support"),l=e("./nodejsUtils"),f=e("./stream/GenericWorker"),v=new Array(256),C=0;C<256;C++)v[C]=252<=C?6:248<=C?5:240<=C?4:224<=C?3:192<=C?2:1;v[254]=v[254]=1;function w(){f.call(this,"utf-8 decode"),this.leftOver=null}function x(){f.call(this,"utf-8 encode")}i.utf8encode=function(Q){return s.nodebuffer?l.newBufferFrom(Q,"utf-8"):function(R){var L,P,M,k,G,Y=R.length,re=0;for(k=0;k>>6:(P<65536?L[G++]=224|P>>>12:(L[G++]=240|P>>>18,L[G++]=128|P>>>12&63),L[G++]=128|P>>>6&63),L[G++]=128|63&P);return L}(Q)},i.utf8decode=function(Q){return s.nodebuffer?o.transformTo("nodebuffer",Q).toString("utf-8"):function(R){var L,P,M,k,G=R.length,Y=new Array(2*G);for(L=P=0;L>10&1023,Y[P++]=56320|1023&M)}return Y.length!==P&&(Y.subarray?Y=Y.subarray(0,P):Y.length=P),o.applyFromCharCode(Y)}(Q=o.transformTo(s.uint8array?"uint8array":"array",Q))},o.inherits(w,f),w.prototype.processChunk=function(Q){var R=o.transformTo(s.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var L=R;(R=new Uint8Array(L.length+this.leftOver.length)).set(this.leftOver,0),R.set(L,this.leftOver.length)}else R=this.leftOver.concat(R);this.leftOver=null}var P=function(k,G){var Y;for((G=G||k.length)>k.length&&(G=k.length),Y=G-1;0<=Y&&(192&k[Y])==128;)Y--;return Y<0||Y===0?G:Y+v[k[Y]]>G?Y:G}(R),M=R;P!==R.length&&(s.uint8array?(M=R.subarray(0,P),this.leftOver=R.subarray(P,R.length)):(M=R.slice(0,P),this.leftOver=R.slice(P,R.length))),this.push({data:i.utf8decode(M),meta:Q.meta})},w.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=w,o.inherits(x,f),x.prototype.processChunk=function(Q){this.push({data:i.utf8encode(Q.data),meta:Q.meta})},i.Utf8EncodeWorker=x},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,n,i){var o=e("./support"),s=e("./base64"),l=e("./nodejsUtils"),f=e("./external");function v(L){return L}function C(L,P){for(var M=0;M>8;this.dir=!!(16&this.externalFileAttributes),Q==0&&(this.dosPermissions=63&this.externalFileAttributes),Q==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var Q=o(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=Q.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=Q.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=Q.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=Q.readInt(4))}},readExtraFields:function(Q){var R,L,P,M=Q.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});Q.index+4>>6:(Q<65536?x[P++]=224|Q>>>12:(x[P++]=240|Q>>>18,x[P++]=128|Q>>>12&63),x[P++]=128|Q>>>6&63),x[P++]=128|63&Q);return x},i.buf2binstring=function(w){return C(w,w.length)},i.binstring2buf=function(w){for(var x=new o.Buf8(w.length),Q=0,R=x.length;Q>10&1023,k[R++]=56320|1023&L)}return C(k,R)},i.utf8border=function(w,x){var Q;for((x=x||w.length)>w.length&&(x=w.length),Q=x-1;0<=Q&&(192&w[Q])==128;)Q--;return Q<0||Q===0?x:Q+f[w[Q]]>x?Q:x}},{"./common":41}],43:[function(e,n,i){n.exports=function(o,s,l,f){for(var v=65535&o|0,C=o>>>16&65535|0,w=0;l!==0;){for(l-=w=2e3>>1:s>>>1;l[f]=s}return l}();n.exports=function(s,l,f,v){var C=o,w=v+f;s^=-1;for(var x=v;x>>8^C[255&(s^l[x])];return-1^s}},{}],46:[function(e,n,i){var o,s=e("../utils/common"),l=e("./trees"),f=e("./adler32"),v=e("./crc32"),C=e("./messages"),w=0,x=4,Q=0,R=-2,L=-1,P=4,M=2,k=8,G=9,Y=286,re=30,ie=19,le=2*Y+1,pe=15,ve=3,Ee=258,Se=Ee+ve+1,ke=42,Le=113,be=1,ze=2,ut=3,ft=4;function Qt(Pe,hr){return Pe.msg=C[hr],hr}function vt(Pe){return(Pe<<1)-(4Pe.avail_out&&(rr=Pe.avail_out),rr!==0&&(s.arraySet(Pe.output,hr.pending_buf,hr.pending_out,rr,Pe.next_out),Pe.next_out+=rr,hr.pending_out+=rr,Pe.total_out+=rr,Pe.avail_out-=rr,hr.pending-=rr,hr.pending===0&&(hr.pending_out=0))}function St(Pe,hr){l._tr_flush_block(Pe,0<=Pe.block_start?Pe.block_start:-1,Pe.strstart-Pe.block_start,hr),Pe.block_start=Pe.strstart,Ct(Pe.strm)}function dr(Pe,hr){Pe.pending_buf[Pe.pending++]=hr}function ur(Pe,hr){Pe.pending_buf[Pe.pending++]=hr>>>8&255,Pe.pending_buf[Pe.pending++]=255&hr}function ir(Pe,hr){var rr,Bt,wt=Pe.max_chain_length,Yt=Pe.strstart,Br=Pe.prev_length,kr=Pe.nice_match,tr=Pe.strstart>Pe.w_size-Se?Pe.strstart-(Pe.w_size-Se):0,rn=Pe.window,Gn=Pe.w_mask,fn=Pe.prev,di=Pe.strstart+Ee,za=rn[Yt+Br-1],sa=rn[Yt+Br];Pe.prev_length>=Pe.good_match&&(wt>>=2),kr>Pe.lookahead&&(kr=Pe.lookahead);do if(rn[(rr=hr)+Br]===sa&&rn[rr+Br-1]===za&&rn[rr]===rn[Yt]&&rn[++rr]===rn[Yt+1]){Yt+=2,rr++;do;while(rn[++Yt]===rn[++rr]&&rn[++Yt]===rn[++rr]&&rn[++Yt]===rn[++rr]&&rn[++Yt]===rn[++rr]&&rn[++Yt]===rn[++rr]&&rn[++Yt]===rn[++rr]&&rn[++Yt]===rn[++rr]&&rn[++Yt]===rn[++rr]&&Yttr&&--wt!=0);return Br<=Pe.lookahead?Br:Pe.lookahead}function Fn(Pe){var hr,rr,Bt,wt,Yt,Br,kr,tr,rn,Gn,fn=Pe.w_size;do{if(wt=Pe.window_size-Pe.lookahead-Pe.strstart,Pe.strstart>=fn+(fn-Se)){for(s.arraySet(Pe.window,Pe.window,fn,fn,0),Pe.match_start-=fn,Pe.strstart-=fn,Pe.block_start-=fn,hr=rr=Pe.hash_size;Bt=Pe.head[--hr],Pe.head[hr]=fn<=Bt?Bt-fn:0,--rr;);for(hr=rr=fn;Bt=Pe.prev[--hr],Pe.prev[hr]=fn<=Bt?Bt-fn:0,--rr;);wt+=fn}if(Pe.strm.avail_in===0)break;if(Br=Pe.strm,kr=Pe.window,tr=Pe.strstart+Pe.lookahead,rn=wt,Gn=void 0,Gn=Br.avail_in,rn=ve)for(Yt=Pe.strstart-Pe.insert,Pe.ins_h=Pe.window[Yt],Pe.ins_h=(Pe.ins_h<=ve&&(Pe.ins_h=(Pe.ins_h<=ve)if(Bt=l._tr_tally(Pe,Pe.strstart-Pe.match_start,Pe.match_length-ve),Pe.lookahead-=Pe.match_length,Pe.match_length<=Pe.max_lazy_match&&Pe.lookahead>=ve){for(Pe.match_length--;Pe.strstart++,Pe.ins_h=(Pe.ins_h<=ve&&(Pe.ins_h=(Pe.ins_h<=ve&&Pe.match_length<=Pe.prev_length){for(wt=Pe.strstart+Pe.lookahead-ve,Bt=l._tr_tally(Pe,Pe.strstart-1-Pe.prev_match,Pe.prev_length-ve),Pe.lookahead-=Pe.prev_length-1,Pe.prev_length-=2;++Pe.strstart<=wt&&(Pe.ins_h=(Pe.ins_h<Pe.pending_buf_size-5&&(rr=Pe.pending_buf_size-5);;){if(Pe.lookahead<=1){if(Fn(Pe),Pe.lookahead===0&&hr===w)return be;if(Pe.lookahead===0)break}Pe.strstart+=Pe.lookahead,Pe.lookahead=0;var Bt=Pe.block_start+rr;if((Pe.strstart===0||Pe.strstart>=Bt)&&(Pe.lookahead=Pe.strstart-Bt,Pe.strstart=Bt,St(Pe,!1),Pe.strm.avail_out===0)||Pe.strstart-Pe.block_start>=Pe.w_size-Se&&(St(Pe,!1),Pe.strm.avail_out===0))return be}return Pe.insert=0,hr===x?(St(Pe,!0),Pe.strm.avail_out===0?ut:ft):(Pe.strstart>Pe.block_start&&(St(Pe,!1),Pe.strm.avail_out),be)}),new qr(4,4,8,4,Ei),new qr(4,5,16,8,Ei),new qr(4,6,32,32,Ei),new qr(4,4,16,16,Vr),new qr(8,16,32,32,Vr),new qr(8,16,128,128,Vr),new qr(8,32,128,256,Vr),new qr(32,128,258,1024,Vr),new qr(32,258,258,4096,Vr)],i.deflateInit=function(Pe,hr){return Yi(Pe,hr,k,15,8,0)},i.deflateInit2=Yi,i.deflateReset=Qn,i.deflateResetKeep=zr,i.deflateSetHeader=function(Pe,hr){return Pe&&Pe.state?Pe.state.wrap!==2?R:(Pe.state.gzhead=hr,Q):R},i.deflate=function(Pe,hr){var rr,Bt,wt,Yt;if(!Pe||!Pe.state||5>8&255),dr(Bt,Bt.gzhead.time>>16&255),dr(Bt,Bt.gzhead.time>>24&255),dr(Bt,Bt.level===9?2:2<=Bt.strategy||Bt.level<2?4:0),dr(Bt,255&Bt.gzhead.os),Bt.gzhead.extra&&Bt.gzhead.extra.length&&(dr(Bt,255&Bt.gzhead.extra.length),dr(Bt,Bt.gzhead.extra.length>>8&255)),Bt.gzhead.hcrc&&(Pe.adler=v(Pe.adler,Bt.pending_buf,Bt.pending,0)),Bt.gzindex=0,Bt.status=69):(dr(Bt,0),dr(Bt,0),dr(Bt,0),dr(Bt,0),dr(Bt,0),dr(Bt,Bt.level===9?2:2<=Bt.strategy||Bt.level<2?4:0),dr(Bt,3),Bt.status=Le);else{var Br=k+(Bt.w_bits-8<<4)<<8;Br|=(2<=Bt.strategy||Bt.level<2?0:Bt.level<6?1:Bt.level===6?2:3)<<6,Bt.strstart!==0&&(Br|=32),Br+=31-Br%31,Bt.status=Le,ur(Bt,Br),Bt.strstart!==0&&(ur(Bt,Pe.adler>>>16),ur(Bt,65535&Pe.adler)),Pe.adler=1}if(Bt.status===69)if(Bt.gzhead.extra){for(wt=Bt.pending;Bt.gzindex<(65535&Bt.gzhead.extra.length)&&(Bt.pending!==Bt.pending_buf_size||(Bt.gzhead.hcrc&&Bt.pending>wt&&(Pe.adler=v(Pe.adler,Bt.pending_buf,Bt.pending-wt,wt)),Ct(Pe),wt=Bt.pending,Bt.pending!==Bt.pending_buf_size));)dr(Bt,255&Bt.gzhead.extra[Bt.gzindex]),Bt.gzindex++;Bt.gzhead.hcrc&&Bt.pending>wt&&(Pe.adler=v(Pe.adler,Bt.pending_buf,Bt.pending-wt,wt)),Bt.gzindex===Bt.gzhead.extra.length&&(Bt.gzindex=0,Bt.status=73)}else Bt.status=73;if(Bt.status===73)if(Bt.gzhead.name){wt=Bt.pending;do{if(Bt.pending===Bt.pending_buf_size&&(Bt.gzhead.hcrc&&Bt.pending>wt&&(Pe.adler=v(Pe.adler,Bt.pending_buf,Bt.pending-wt,wt)),Ct(Pe),wt=Bt.pending,Bt.pending===Bt.pending_buf_size)){Yt=1;break}Yt=Bt.gzindexwt&&(Pe.adler=v(Pe.adler,Bt.pending_buf,Bt.pending-wt,wt)),Yt===0&&(Bt.gzindex=0,Bt.status=91)}else Bt.status=91;if(Bt.status===91)if(Bt.gzhead.comment){wt=Bt.pending;do{if(Bt.pending===Bt.pending_buf_size&&(Bt.gzhead.hcrc&&Bt.pending>wt&&(Pe.adler=v(Pe.adler,Bt.pending_buf,Bt.pending-wt,wt)),Ct(Pe),wt=Bt.pending,Bt.pending===Bt.pending_buf_size)){Yt=1;break}Yt=Bt.gzindexwt&&(Pe.adler=v(Pe.adler,Bt.pending_buf,Bt.pending-wt,wt)),Yt===0&&(Bt.status=103)}else Bt.status=103;if(Bt.status===103&&(Bt.gzhead.hcrc?(Bt.pending+2>Bt.pending_buf_size&&Ct(Pe),Bt.pending+2<=Bt.pending_buf_size&&(dr(Bt,255&Pe.adler),dr(Bt,Pe.adler>>8&255),Pe.adler=0,Bt.status=Le)):Bt.status=Le),Bt.pending!==0){if(Ct(Pe),Pe.avail_out===0)return Bt.last_flush=-1,Q}else if(Pe.avail_in===0&&vt(hr)<=vt(rr)&&hr!==x)return Qt(Pe,-5);if(Bt.status===666&&Pe.avail_in!==0)return Qt(Pe,-5);if(Pe.avail_in!==0||Bt.lookahead!==0||hr!==w&&Bt.status!==666){var kr=Bt.strategy===2?function(tr,rn){for(var Gn;;){if(tr.lookahead===0&&(Fn(tr),tr.lookahead===0)){if(rn===w)return be;break}if(tr.match_length=0,Gn=l._tr_tally(tr,0,tr.window[tr.strstart]),tr.lookahead--,tr.strstart++,Gn&&(St(tr,!1),tr.strm.avail_out===0))return be}return tr.insert=0,rn===x?(St(tr,!0),tr.strm.avail_out===0?ut:ft):tr.last_lit&&(St(tr,!1),tr.strm.avail_out===0)?be:ze}(Bt,hr):Bt.strategy===3?function(tr,rn){for(var Gn,fn,di,za,sa=tr.window;;){if(tr.lookahead<=Ee){if(Fn(tr),tr.lookahead<=Ee&&rn===w)return be;if(tr.lookahead===0)break}if(tr.match_length=0,tr.lookahead>=ve&&0tr.lookahead&&(tr.match_length=tr.lookahead)}if(tr.match_length>=ve?(Gn=l._tr_tally(tr,1,tr.match_length-ve),tr.lookahead-=tr.match_length,tr.strstart+=tr.match_length,tr.match_length=0):(Gn=l._tr_tally(tr,0,tr.window[tr.strstart]),tr.lookahead--,tr.strstart++),Gn&&(St(tr,!1),tr.strm.avail_out===0))return be}return tr.insert=0,rn===x?(St(tr,!0),tr.strm.avail_out===0?ut:ft):tr.last_lit&&(St(tr,!1),tr.strm.avail_out===0)?be:ze}(Bt,hr):o[Bt.level].func(Bt,hr);if(kr!==ut&&kr!==ft||(Bt.status=666),kr===be||kr===ut)return Pe.avail_out===0&&(Bt.last_flush=-1),Q;if(kr===ze&&(hr===1?l._tr_align(Bt):hr!==5&&(l._tr_stored_block(Bt,0,0,!1),hr===3&&(Gt(Bt.head),Bt.lookahead===0&&(Bt.strstart=0,Bt.block_start=0,Bt.insert=0))),Ct(Pe),Pe.avail_out===0))return Bt.last_flush=-1,Q}return hr!==x?Q:Bt.wrap<=0?1:(Bt.wrap===2?(dr(Bt,255&Pe.adler),dr(Bt,Pe.adler>>8&255),dr(Bt,Pe.adler>>16&255),dr(Bt,Pe.adler>>24&255),dr(Bt,255&Pe.total_in),dr(Bt,Pe.total_in>>8&255),dr(Bt,Pe.total_in>>16&255),dr(Bt,Pe.total_in>>24&255)):(ur(Bt,Pe.adler>>>16),ur(Bt,65535&Pe.adler)),Ct(Pe),0=rr.w_size&&(Yt===0&&(Gt(rr.head),rr.strstart=0,rr.block_start=0,rr.insert=0),rn=new s.Buf8(rr.w_size),s.arraySet(rn,hr,Gn-rr.w_size,rr.w_size,0),hr=rn,Gn=rr.w_size),Br=Pe.avail_in,kr=Pe.next_in,tr=Pe.input,Pe.avail_in=Gn,Pe.next_in=0,Pe.input=hr,Fn(rr);rr.lookahead>=ve;){for(Bt=rr.strstart,wt=rr.lookahead-(ve-1);rr.ins_h=(rr.ins_h<>>=ve=pe>>>24,G-=ve,(ve=pe>>>16&255)===0)ze[C++]=65535&pe;else{if(!(16&ve)){if(!(64&ve)){pe=Y[(65535&pe)+(k&(1<>>=ve,G-=ve),G<15&&(k+=be[f++]<>>=ve=pe>>>24,G-=ve,!(16&(ve=pe>>>16&255))){if(!(64&ve)){pe=re[(65535&pe)+(k&(1<>>=ve,G-=ve,(ve=C-w)>3,k&=(1<<(G-=Ee<<3))-1,o.next_in=f,o.next_out=C,o.avail_in=f>>24&255)+(ke>>>8&65280)+((65280&ke)<<8)+((255&ke)<<24)}function k(){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 o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function G(ke){var Le;return ke&&ke.state?(Le=ke.state,ke.total_in=ke.total_out=Le.total=0,ke.msg="",Le.wrap&&(ke.adler=1&Le.wrap),Le.mode=R,Le.last=0,Le.havedict=0,Le.dmax=32768,Le.head=null,Le.hold=0,Le.bits=0,Le.lencode=Le.lendyn=new o.Buf32(L),Le.distcode=Le.distdyn=new o.Buf32(P),Le.sane=1,Le.back=-1,x):Q}function Y(ke){var Le;return ke&&ke.state?((Le=ke.state).wsize=0,Le.whave=0,Le.wnext=0,G(ke)):Q}function re(ke,Le){var be,ze;return ke&&ke.state?(ze=ke.state,Le<0?(be=0,Le=-Le):(be=1+(Le>>4),Le<48&&(Le&=15)),Le&&(Le<8||15=ft.wsize?(o.arraySet(ft.window,Le,be-ft.wsize,ft.wsize,0),ft.wnext=0,ft.whave=ft.wsize):(ze<(ut=ft.wsize-ft.wnext)&&(ut=ze),o.arraySet(ft.window,Le,be-ze,ut,ft.wnext),(ze-=ut)?(o.arraySet(ft.window,Le,be-ze,ze,0),ft.wnext=ze,ft.whave=ft.wsize):(ft.wnext+=ut,ft.wnext===ft.wsize&&(ft.wnext=0),ft.whave>>8&255,be.check=l(be.check,Yt,2,0),St=Ct=0,be.mode=2;break}if(be.flags=0,be.head&&(be.head.done=!1),!(1&be.wrap)||(((255&Ct)<<8)+(Ct>>8))%31){ke.msg="incorrect header check",be.mode=30;break}if((15&Ct)!=8){ke.msg="unknown compression method",be.mode=30;break}if(St-=4,Pe=8+(15&(Ct>>>=4)),be.wbits===0)be.wbits=Pe;else if(Pe>be.wbits){ke.msg="invalid window size",be.mode=30;break}be.dmax=1<>8&1),512&be.flags&&(Yt[0]=255&Ct,Yt[1]=Ct>>>8&255,be.check=l(be.check,Yt,2,0)),St=Ct=0,be.mode=3;case 3:for(;St<32;){if(vt===0)break e;vt--,Ct+=ze[ft++]<>>8&255,Yt[2]=Ct>>>16&255,Yt[3]=Ct>>>24&255,be.check=l(be.check,Yt,4,0)),St=Ct=0,be.mode=4;case 4:for(;St<16;){if(vt===0)break e;vt--,Ct+=ze[ft++]<>8),512&be.flags&&(Yt[0]=255&Ct,Yt[1]=Ct>>>8&255,be.check=l(be.check,Yt,2,0)),St=Ct=0,be.mode=5;case 5:if(1024&be.flags){for(;St<16;){if(vt===0)break e;vt--,Ct+=ze[ft++]<>>8&255,be.check=l(be.check,Yt,2,0)),St=Ct=0}else be.head&&(be.head.extra=null);be.mode=6;case 6:if(1024&be.flags&&(vt<(ir=be.length)&&(ir=vt),ir&&(be.head&&(Pe=be.head.extra_len-be.length,be.head.extra||(be.head.extra=new Array(be.head.extra_len)),o.arraySet(be.head.extra,ze,ft,ir,Pe)),512&be.flags&&(be.check=l(be.check,ze,ir,ft)),vt-=ir,ft+=ir,be.length-=ir),be.length))break e;be.length=0,be.mode=7;case 7:if(2048&be.flags){if(vt===0)break e;for(ir=0;Pe=ze[ft+ir++],be.head&&Pe&&be.length<65536&&(be.head.name+=String.fromCharCode(Pe)),Pe&&ir>9&1,be.head.done=!0),ke.adler=be.check=0,be.mode=12;break;case 10:for(;St<32;){if(vt===0)break e;vt--,Ct+=ze[ft++]<>>=7&St,St-=7&St,be.mode=27;break}for(;St<3;){if(vt===0)break e;vt--,Ct+=ze[ft++]<>>=1)){case 0:be.mode=14;break;case 1:if(Ee(be),be.mode=20,Le!==6)break;Ct>>>=2,St-=2;break e;case 2:be.mode=17;break;case 3:ke.msg="invalid block type",be.mode=30}Ct>>>=2,St-=2;break;case 14:for(Ct>>>=7&St,St-=7&St;St<32;){if(vt===0)break e;vt--,Ct+=ze[ft++]<>>16^65535)){ke.msg="invalid stored block lengths",be.mode=30;break}if(be.length=65535&Ct,St=Ct=0,be.mode=15,Le===6)break e;case 15:be.mode=16;case 16:if(ir=be.length){if(vt>>=5,St-=5,be.ndist=1+(31&Ct),Ct>>>=5,St-=5,be.ncode=4+(15&Ct),Ct>>>=4,St-=4,286>>=3,St-=3}for(;be.have<19;)be.lens[Br[be.have++]]=0;if(be.lencode=be.lendyn,be.lenbits=7,rr={bits:be.lenbits},hr=v(0,be.lens,0,19,be.lencode,0,be.work,rr),be.lenbits=rr.bits,hr){ke.msg="invalid code lengths set",be.mode=30;break}be.have=0,be.mode=19;case 19:for(;be.have>>16&255,Tn=65535&wt,!((Vr=wt>>>24)<=St);){if(vt===0)break e;vt--,Ct+=ze[ft++]<>>=Vr,St-=Vr,be.lens[be.have++]=Tn;else{if(Tn===16){for(Bt=Vr+2;St>>=Vr,St-=Vr,be.have===0){ke.msg="invalid bit length repeat",be.mode=30;break}Pe=be.lens[be.have-1],ir=3+(3&Ct),Ct>>>=2,St-=2}else if(Tn===17){for(Bt=Vr+3;St>>=Vr)),Ct>>>=3,St-=3}else{for(Bt=Vr+7;St>>=Vr)),Ct>>>=7,St-=7}if(be.have+ir>be.nlen+be.ndist){ke.msg="invalid bit length repeat",be.mode=30;break}for(;ir--;)be.lens[be.have++]=Pe}}if(be.mode===30)break;if(be.lens[256]===0){ke.msg="invalid code -- missing end-of-block",be.mode=30;break}if(be.lenbits=9,rr={bits:be.lenbits},hr=v(C,be.lens,0,be.nlen,be.lencode,0,be.work,rr),be.lenbits=rr.bits,hr){ke.msg="invalid literal/lengths set",be.mode=30;break}if(be.distbits=6,be.distcode=be.distdyn,rr={bits:be.distbits},hr=v(w,be.lens,be.nlen,be.ndist,be.distcode,0,be.work,rr),be.distbits=rr.bits,hr){ke.msg="invalid distances set",be.mode=30;break}if(be.mode=20,Le===6)break e;case 20:be.mode=21;case 21:if(6<=vt&&258<=Gt){ke.next_out=Qt,ke.avail_out=Gt,ke.next_in=ft,ke.avail_in=vt,be.hold=Ct,be.bits=St,f(ke,ur),Qt=ke.next_out,ut=ke.output,Gt=ke.avail_out,ft=ke.next_in,ze=ke.input,vt=ke.avail_in,Ct=be.hold,St=be.bits,be.mode===12&&(be.back=-1);break}for(be.back=0;qr=(wt=be.lencode[Ct&(1<>>16&255,Tn=65535&wt,!((Vr=wt>>>24)<=St);){if(vt===0)break e;vt--,Ct+=ze[ft++]<>zr)])>>>16&255,Tn=65535&wt,!(zr+(Vr=wt>>>24)<=St);){if(vt===0)break e;vt--,Ct+=ze[ft++]<>>=zr,St-=zr,be.back+=zr}if(Ct>>>=Vr,St-=Vr,be.back+=Vr,be.length=Tn,qr===0){be.mode=26;break}if(32&qr){be.back=-1,be.mode=12;break}if(64&qr){ke.msg="invalid literal/length code",be.mode=30;break}be.extra=15&qr,be.mode=22;case 22:if(be.extra){for(Bt=be.extra;St>>=be.extra,St-=be.extra,be.back+=be.extra}be.was=be.length,be.mode=23;case 23:for(;qr=(wt=be.distcode[Ct&(1<>>16&255,Tn=65535&wt,!((Vr=wt>>>24)<=St);){if(vt===0)break e;vt--,Ct+=ze[ft++]<>zr)])>>>16&255,Tn=65535&wt,!(zr+(Vr=wt>>>24)<=St);){if(vt===0)break e;vt--,Ct+=ze[ft++]<>>=zr,St-=zr,be.back+=zr}if(Ct>>>=Vr,St-=Vr,be.back+=Vr,64&qr){ke.msg="invalid distance code",be.mode=30;break}be.offset=Tn,be.extra=15&qr,be.mode=24;case 24:if(be.extra){for(Bt=be.extra;St>>=be.extra,St-=be.extra,be.back+=be.extra}if(be.offset>be.dmax){ke.msg="invalid distance too far back",be.mode=30;break}be.mode=25;case 25:if(Gt===0)break e;if(ir=ur-Gt,be.offset>ir){if((ir=be.offset-ir)>be.whave&&be.sane){ke.msg="invalid distance too far back",be.mode=30;break}Fn=ir>be.wnext?(ir-=be.wnext,be.wsize-ir):be.wnext-ir,ir>be.length&&(ir=be.length),Ei=be.window}else Ei=ut,Fn=Qt-be.offset,ir=be.length;for(Gtle?(ve=Fn[Ei+P[Le]],St[dr+P[Le]]):(ve=96,0),k=1<>Qt)+(G-=k)]=pe<<24|ve<<16|Ee|0,G!==0;);for(k=1<>=1;if(k!==0?(Ct&=k-1,Ct+=k):Ct=0,Le++,--ur[ke]==0){if(ke===ze)break;ke=w[x+P[Le]]}if(ut>>7)]}function dr(wt,Yt){wt.pending_buf[wt.pending++]=255&Yt,wt.pending_buf[wt.pending++]=Yt>>>8&255}function ur(wt,Yt,Br){wt.bi_valid>M-Br?(wt.bi_buf|=Yt<>M-wt.bi_valid,wt.bi_valid+=Br-M):(wt.bi_buf|=Yt<>>=1,Br<<=1,0<--Yt;);return Br>>>1}function Ei(wt,Yt,Br){var kr,tr,rn=new Array(P+1),Gn=0;for(kr=1;kr<=P;kr++)rn[kr]=Gn=Gn+Br[kr-1]<<1;for(tr=0;tr<=Yt;tr++){var fn=wt[2*tr+1];fn!==0&&(wt[2*tr]=Fn(rn[fn]++,fn))}}function Vr(wt){var Yt;for(Yt=0;Yt>1;1<=Br;Br--)zr(wt,rn,Br);for(tr=di;Br=wt.heap[1],wt.heap[1]=wt.heap[wt.heap_len--],zr(wt,rn,1),kr=wt.heap[1],wt.heap[--wt.heap_max]=Br,wt.heap[--wt.heap_max]=kr,rn[2*tr]=rn[2*Br]+rn[2*kr],wt.depth[tr]=(wt.depth[Br]>=wt.depth[kr]?wt.depth[Br]:wt.depth[kr])+1,rn[2*Br+1]=rn[2*kr+1]=tr,wt.heap[1]=tr++,zr(wt,rn,1),2<=wt.heap_len;);wt.heap[--wt.heap_max]=wt.heap[1],function(sa,Zu){var jf,Gc,Hf,No,ud,Sg,dl=Zu.dyn_tree,C0=Zu.max_code,xC=Zu.stat_desc.static_tree,Ja=Zu.stat_desc.has_stree,Ru=Zu.stat_desc.extra_bits,vQ=Zu.stat_desc.extra_base,Zm=Zu.stat_desc.max_length,D3=0;for(No=0;No<=P;No++)sa.bl_count[No]=0;for(dl[2*sa.heap[sa.heap_max]+1]=0,jf=sa.heap_max+1;jf>=7;tr>>=1)if(1&za&&fn.dyn_ltree[2*di]!==0)return s;if(fn.dyn_ltree[18]!==0||fn.dyn_ltree[20]!==0||fn.dyn_ltree[26]!==0)return l;for(di=32;di>>3,(rn=wt.static_len+3+7>>>3)<=tr&&(tr=rn)):tr=rn=Br+5,Br+4<=tr&&Yt!==-1?Bt(wt,Yt,Br,kr):wt.strategy===4||rn===tr?(ur(wt,2+(kr?1:0),3),Qn(wt,Se,ke)):(ur(wt,4+(kr?1:0),3),function(fn,di,za,sa){var Zu;for(ur(fn,di-257,5),ur(fn,za-1,5),ur(fn,sa-4,4),Zu=0;Zu>>8&255,wt.pending_buf[wt.d_buf+2*wt.last_lit+1]=255&Yt,wt.pending_buf[wt.l_buf+wt.last_lit]=255&Br,wt.last_lit++,Yt===0?wt.dyn_ltree[2*Br]++:(wt.matches++,Yt--,wt.dyn_ltree[2*(be[Br]+w+1)]++,wt.dyn_dtree[2*St(Yt)]++),wt.last_lit===wt.lit_bufsize-1},i._tr_align=function(wt){ur(wt,2,3),ir(wt,G,Se),function(Yt){Yt.bi_valid===16?(dr(Yt,Yt.bi_buf),Yt.bi_buf=0,Yt.bi_valid=0):8<=Yt.bi_valid&&(Yt.pending_buf[Yt.pending++]=255&Yt.bi_buf,Yt.bi_buf>>=8,Yt.bi_valid-=8)}(wt)}},{"../utils/common":41}],53:[function(e,n,i){n.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,n,i){(function(o){(function(s,l){if(!s.setImmediate){var f,v,C,w,x=1,Q={},R=!1,L=s.document,P=Object.getPrototypeOf&&Object.getPrototypeOf(s);P=P&&P.setTimeout?P:s,f={}.toString.call(s.process)==="[object process]"?function(Y){process.nextTick(function(){k(Y)})}:function(){if(s.postMessage&&!s.importScripts){var Y=!0,re=s.onmessage;return s.onmessage=function(){Y=!1},s.postMessage("","*"),s.onmessage=re,Y}}()?(w="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",G,!1):s.attachEvent("onmessage",G),function(Y){s.postMessage(w+Y,"*")}):s.MessageChannel?((C=new MessageChannel).port1.onmessage=function(Y){k(Y.data)},function(Y){C.port2.postMessage(Y)}):L&&"onreadystatechange"in L.createElement("script")?(v=L.documentElement,function(Y){var re=L.createElement("script");re.onreadystatechange=function(){k(Y),re.onreadystatechange=null,v.removeChild(re),re=null},v.appendChild(re)}):function(Y){setTimeout(k,0,Y)},P.setImmediate=function(Y){typeof Y!="function"&&(Y=new Function(""+Y));for(var re=new Array(arguments.length-1),ie=0;ie"u"?o===void 0?this:o:self)}).call(this,typeof ao<"u"?ao:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Zo);var xt=Zo.exports;const jc=En(xt);var wc={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */wc.exports,function(r,t){(function(){var e,n="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",v=500,C="__lodash_placeholder__",w=1,x=2,Q=4,R=1,L=2,P=1,M=2,k=4,G=8,Y=16,re=32,ie=64,le=128,pe=256,ve=512,Ee=30,Se="...",ke=800,Le=16,be=1,ze=2,ut=3,ft=1/0,Qt=9007199254740991,vt=17976931348623157e292,Gt=NaN,Ct=4294967295,St=Ct-1,dr=Ct>>>1,ur=[["ary",le],["bind",P],["bindKey",M],["curry",G],["curryRight",Y],["flip",ve],["partial",re],["partialRight",ie],["rearg",pe]],ir="[object Arguments]",Fn="[object Array]",Ei="[object AsyncFunction]",Vr="[object Boolean]",qr="[object Date]",Tn="[object DOMException]",zr="[object Error]",Qn="[object Function]",Yi="[object GeneratorFunction]",Pe="[object Map]",hr="[object Number]",rr="[object Null]",Bt="[object Object]",wt="[object Promise]",Yt="[object Proxy]",Br="[object RegExp]",kr="[object Set]",tr="[object String]",rn="[object Symbol]",Gn="[object Undefined]",fn="[object WeakMap]",di="[object WeakSet]",za="[object ArrayBuffer]",sa="[object DataView]",Zu="[object Float32Array]",jf="[object Float64Array]",Gc="[object Int8Array]",Hf="[object Int16Array]",No="[object Int32Array]",ud="[object Uint8Array]",Sg="[object Uint8ClampedArray]",dl="[object Uint16Array]",C0="[object Uint32Array]",xC=/\b__p \+= '';/g,Ja=/\b(__p \+=) '' \+/g,Ru=/(__e\(.*?\)|\b__t\)) \+\n'';/g,vQ=/&(?:amp|lt|gt|quot|#39);/g,Zm=/[&<>"']/g,D3=RegExp(vQ.source),f$=RegExp(Zm.source),A$=/<%-([\s\S]+?)%>/g,d$=/<%([\s\S]+?)%>/g,sO=/<%=([\s\S]+?)%>/g,g$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p$=/^\w*$/,v$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B_=/[\\^$.*+?()[\]{}|]/g,y$=RegExp(B_.source),k_=/^\s+/,m$=/\s/,I$=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,b$=/\{\n\/\* \[wrapped with (.+)\] \*/,C$=/,? & /,w$=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,E$=/[()=,{}\[\]\/\s]/,B$=/\\(\\)?/g,k$=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uO=/\w*$/,Q$=/^[-+]0x[0-9a-f]+$/i,x$=/^0b[01]+$/i,S$=/^\[object .+?Constructor\]$/,_$=/^0o[0-7]+$/i,D$=/^(?:0|[1-9]\d*)$/,R$=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,X9=/($^)/,M$=/['\n\r\u2028\u2029\\]/g,$9="\\ud800-\\udfff",F$="\\u0300-\\u036f",T$="\\ufe20-\\ufe2f",L$="\\u20d0-\\u20ff",cO=F$+T$+L$,lO="\\u2700-\\u27bf",hO="a-z\\xdf-\\xf6\\xf8-\\xff",N$="\\xac\\xb1\\xd7\\xf7",O$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",P$="\\u2000-\\u206f",G$=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fO="A-Z\\xc0-\\xd6\\xd8-\\xde",AO="\\ufe0e\\ufe0f",dO=N$+O$+P$+G$,Q_="['’]",U$="["+$9+"]",gO="["+dO+"]",ex="["+cO+"]",pO="\\d+",j$="["+lO+"]",vO="["+hO+"]",yO="[^"+$9+dO+pO+lO+hO+fO+"]",x_="\\ud83c[\\udffb-\\udfff]",H$="(?:"+ex+"|"+x_+")",mO="[^"+$9+"]",S_="(?:\\ud83c[\\udde6-\\uddff]){2}",__="[\\ud800-\\udbff][\\udc00-\\udfff]",R3="["+fO+"]",IO="\\u200d",bO="(?:"+vO+"|"+yO+")",Y$="(?:"+R3+"|"+yO+")",CO="(?:"+Q_+"(?:d|ll|m|re|s|t|ve))?",wO="(?:"+Q_+"(?:D|LL|M|RE|S|T|VE))?",EO=H$+"?",BO="["+AO+"]?",J$="(?:"+IO+"(?:"+[mO,S_,__].join("|")+")"+BO+EO+")*",W$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",q$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",kO=BO+EO+J$,z$="(?:"+[j$,S_,__].join("|")+")"+kO,K$="(?:"+[mO+ex+"?",ex,S_,__,U$].join("|")+")",V$=RegExp(Q_,"g"),Z$=RegExp(ex,"g"),D_=RegExp(x_+"(?="+x_+")|"+K$+kO,"g"),X$=RegExp([R3+"?"+vO+"+"+CO+"(?="+[gO,R3,"$"].join("|")+")",Y$+"+"+wO+"(?="+[gO,R3+bO,"$"].join("|")+")",R3+"?"+bO+"+"+CO,R3+"+"+wO,q$,W$,pO,z$].join("|"),"g"),$$=RegExp("["+IO+$9+cO+AO+"]"),eee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ree=-1,Cs={};Cs[Zu]=Cs[jf]=Cs[Gc]=Cs[Hf]=Cs[No]=Cs[ud]=Cs[Sg]=Cs[dl]=Cs[C0]=!0,Cs[ir]=Cs[Fn]=Cs[za]=Cs[Vr]=Cs[sa]=Cs[qr]=Cs[zr]=Cs[Qn]=Cs[Pe]=Cs[hr]=Cs[Bt]=Cs[Br]=Cs[kr]=Cs[tr]=Cs[fn]=!1;var us={};us[ir]=us[Fn]=us[za]=us[sa]=us[Vr]=us[qr]=us[Zu]=us[jf]=us[Gc]=us[Hf]=us[No]=us[Pe]=us[hr]=us[Bt]=us[Br]=us[kr]=us[tr]=us[rn]=us[ud]=us[Sg]=us[dl]=us[C0]=!0,us[zr]=us[Qn]=us[fn]=!1;var nee={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},iee={"&":"&","<":"<",">":">",'"':""","'":"'"},aee={"&":"&","<":"<",">":">",""":'"',"'":"'"},oee={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},see=parseFloat,uee=parseInt,QO=typeof ao=="object"&&ao&&ao.Object===Object&&ao,cee=typeof self=="object"&&self&&self.Object===Object&&self,gl=QO||cee||Function("return this")(),R_=t&&!t.nodeType&&t,SC=R_&&!0&&r&&!r.nodeType&&r,xO=SC&&SC.exports===R_,M_=xO&&QO.process,cd=function(){try{var zt=SC&&SC.require&&SC.require("util").types;return zt||M_&&M_.binding&&M_.binding("util")}catch{}}(),SO=cd&&cd.isArrayBuffer,_O=cd&&cd.isDate,DO=cd&&cd.isMap,RO=cd&&cd.isRegExp,MO=cd&&cd.isSet,FO=cd&&cd.isTypedArray;function Yf(zt,wr,vr){switch(vr.length){case 0:return zt.call(wr);case 1:return zt.call(wr,vr[0]);case 2:return zt.call(wr,vr[0],vr[1]);case 3:return zt.call(wr,vr[0],vr[1],vr[2])}return zt.apply(wr,vr)}function lee(zt,wr,vr,zn){for(var Aa=-1,Eo=zt==null?0:zt.length;++Aa-1}function F_(zt,wr,vr){for(var zn=-1,Aa=zt==null?0:zt.length;++zn-1;);return vr}function jO(zt,wr){for(var vr=zt.length;vr--&&M3(wr,zt[vr],0)>-1;);return vr}function mee(zt,wr){for(var vr=zt.length,zn=0;vr--;)zt[vr]===wr&&++zn;return zn}var Iee=O_(nee),bee=O_(iee);function Cee(zt){return"\\"+oee[zt]}function wee(zt,wr){return zt==null?e:zt[wr]}function F3(zt){return $$.test(zt)}function Eee(zt){return eee.test(zt)}function Bee(zt){for(var wr,vr=[];!(wr=zt.next()).done;)vr.push(wr.value);return vr}function j_(zt){var wr=-1,vr=Array(zt.size);return zt.forEach(function(zn,Aa){vr[++wr]=[Aa,zn]}),vr}function HO(zt,wr){return function(vr){return zt(wr(vr))}}function e2(zt,wr){for(var vr=-1,zn=zt.length,Aa=0,Eo=[];++vr-1}function fte(O,K){var he=this.__data__,xe=yx(he,O);return xe<0?(++this.size,he.push([O,K])):he[xe][1]=K,this}yv.prototype.clear=ute,yv.prototype.delete=cte,yv.prototype.get=lte,yv.prototype.has=hte,yv.prototype.set=fte;function mv(O){var K=-1,he=O==null?0:O.length;for(this.clear();++K=K?O:K)),O}function Ad(O,K,he,xe,Ve,ct){var Dt,Ut=K&w,Xt=K&x,Nr=K&Q;if(he&&(Dt=Ve?he(O,xe,Ve,ct):he(O)),Dt!==e)return Dt;if(!iu(O))return O;var Gr=ya(O);if(Gr){if(Dt=pre(O),!Ut)return Vh(O,Dt)}else{var Zr=Jl(O),Rn=Zr==Qn||Zr==Yi;if(o2(O))return BP(O,Ut);if(Zr==Bt||Zr==ir||Rn&&!Ve){if(Dt=Xt||Rn?{}:YP(O),!Ut)return Xt?are(O,xte(Dt,O)):ire(O,tP(Dt,O))}else{if(!us[Zr])return Ve?O:{};Dt=vre(O,Zr,Ut)}}ct||(ct=new Dg);var ui=ct.get(O);if(ui)return ui;ct.set(O,Dt),mG(O)?O.forEach(function(Gi){Dt.add(Ad(Gi,K,he,Gi,O,ct))}):vG(O)&&O.forEach(function(Gi,Wa){Dt.set(Wa,Ad(Gi,K,he,Wa,O,ct))});var Pi=Nr?Xt?dD:AD:Xt?Xh:Uc,_a=Gr?e:Pi(O);return ld(_a||O,function(Gi,Wa){_a&&(Wa=Gi,Gi=O[Wa]),EQ(Dt,Wa,Ad(Gi,K,he,Wa,O,ct))}),Dt}function Ste(O){var K=Uc(O);return function(he){return rP(he,O,K)}}function rP(O,K,he){var xe=he.length;if(O==null)return!xe;for(O=Vo(O);xe--;){var Ve=he[xe],ct=K[Ve],Dt=O[Ve];if(Dt===e&&!(Ve in O)||!ct(Dt))return!1}return!0}function nP(O,K,he){if(typeof O!="function")throw new hd(s);return DQ(function(){O.apply(e,he)},K)}function BQ(O,K,he,xe){var Ve=-1,ct=tx,Dt=!0,Ut=O.length,Xt=[],Nr=K.length;if(!Ut)return Xt;he&&(K=Ps(K,Jf(he))),xe?(ct=F_,Dt=!1):K.length>=i&&(ct=yQ,Dt=!1,K=new RC(K));e:for(;++VeVe?0:Ve+he),xe=xe===e||xe>Ve?Ve:Qa(xe),xe<0&&(xe+=Ve),xe=he>xe?0:bG(xe);he0&&he(Ut)?K>1?pl(Ut,K-1,he,xe,Ve):$m(Ve,Ut):xe||(Ve[Ve.length]=Ut)}return Ve}var K_=DP(),oP=DP(!0);function w0(O,K){return O&&K_(O,K,Uc)}function V_(O,K){return O&&oP(O,K,Uc)}function Ix(O,K){return Xm(K,function(he){return Ev(O[he])})}function FC(O,K){K=i2(K,O);for(var he=0,xe=K.length;O!=null&&heK}function Rte(O,K){return O!=null&&Oo.call(O,K)}function Mte(O,K){return O!=null&&K in Vo(O)}function Fte(O,K,he){return O>=Yl(K,he)&&O=120&&Gr.length>=120)?new RC(Dt&&Gr):e}Gr=O[0];var Zr=-1,Rn=Ut[0];e:for(;++Zr-1;)Ut!==O&&hx.call(Ut,Xt,1),hx.call(O,Xt,1);return O}function vP(O,K){for(var he=O?K.length:0,xe=he-1;he--;){var Ve=K[he];if(he==xe||Ve!==ct){var ct=Ve;wv(Ve)?hx.call(O,Ve,1):oD(O,Ve)}}return O}function nD(O,K){return O+dx(ZO()*(K-O+1))}function qte(O,K,he,xe){for(var Ve=-1,ct=Cc(Ax((K-O)/(he||1)),0),Dt=vr(ct);ct--;)Dt[xe?ct:++Ve]=O,O+=he;return Dt}function iD(O,K){var he="";if(!O||K<1||K>Qt)return he;do K%2&&(he+=O),K=dx(K/2),K&&(O+=O);while(K);return he}function Ma(O,K){return bD(qP(O,K,$h),O+"")}function zte(O){return eP(J3(O))}function Kte(O,K){var he=J3(O);return Rx(he,MC(K,0,he.length))}function xQ(O,K,he,xe){if(!iu(O))return O;K=i2(K,O);for(var Ve=-1,ct=K.length,Dt=ct-1,Ut=O;Ut!=null&&++VeVe?0:Ve+K),he=he>Ve?Ve:he,he<0&&(he+=Ve),Ve=K>he?0:he-K>>>0,K>>>=0;for(var ct=vr(Ve);++xe>>1,Dt=O[ct];Dt!==null&&!qf(Dt)&&(he?Dt<=K:Dt=i){var Nr=K?null:cre(O);if(Nr)return nx(Nr);Dt=!1,Ve=yQ,Xt=new RC}else Xt=K?[]:Ut;e:for(;++xe=xe?O:dd(O,K,he)}var EP=Gee||function(O){return gl.clearTimeout(O)};function BP(O,K){if(K)return O.slice();var he=O.length,xe=WO?WO(he):new O.constructor(he);return O.copy(xe),xe}function lD(O){var K=new O.constructor(O.byteLength);return new cx(K).set(new cx(O)),K}function ere(O,K){var he=K?lD(O.buffer):O.buffer;return new O.constructor(he,O.byteOffset,O.byteLength)}function tre(O){var K=new O.constructor(O.source,uO.exec(O));return K.lastIndex=O.lastIndex,K}function rre(O){return wQ?Vo(wQ.call(O)):{}}function kP(O,K){var he=K?lD(O.buffer):O.buffer;return new O.constructor(he,O.byteOffset,O.length)}function QP(O,K){if(O!==K){var he=O!==e,xe=O===null,Ve=O===O,ct=qf(O),Dt=K!==e,Ut=K===null,Xt=K===K,Nr=qf(K);if(!Ut&&!Nr&&!ct&&O>K||ct&&Dt&&Xt&&!Ut&&!Nr||xe&&Dt&&Xt||!he&&Xt||!Ve)return 1;if(!xe&&!ct&&!Nr&&O=Ut)return Xt;var Nr=he[xe];return Xt*(Nr=="desc"?-1:1)}}return O.index-K.index}function xP(O,K,he,xe){for(var Ve=-1,ct=O.length,Dt=he.length,Ut=-1,Xt=K.length,Nr=Cc(ct-Dt,0),Gr=vr(Xt+Nr),Zr=!xe;++Ut1?he[Ve-1]:e,Dt=Ve>2?he[2]:e;for(ct=O.length>3&&typeof ct=="function"?(Ve--,ct):e,Dt&&bh(he[0],he[1],Dt)&&(ct=Ve<3?e:ct,Ve=1),K=Vo(K);++xe-1?Ve[ct?K[Dt]:Dt]:e}}function FP(O){return Cv(function(K){var he=K.length,xe=he,Ve=fd.prototype.thru;for(O&&K.reverse();xe--;){var ct=K[xe];if(typeof ct!="function")throw new hd(s);if(Ve&&!Dt&&_x(ct)=="wrapper")var Dt=new fd([],!0)}for(xe=Dt?xe:he;++xe1&&eo.reverse(),Gr&&XtUt))return!1;var Nr=ct.get(O),Gr=ct.get(K);if(Nr&&Gr)return Nr==K&&Gr==O;var Zr=-1,Rn=!0,ui=he&L?new RC:e;for(ct.set(O,K),ct.set(K,O);++Zr1?"& ":"")+K[xe],K=K.join(he>2?", ":" "),O.replace(I$,`{ /* [wrapped with `+K+`] */ `)}function mre(O){return ya(O)||NC(O)||!!(KO&&O&&O[KO])}function wv(O,K){var he=typeof O;return K=K??Qt,!!K&&(he=="number"||he!="symbol"&&D$.test(O))&&O>-1&&O%1==0&&O0){if(++K>=ke)return arguments[0]}else K=0;return O.apply(e,arguments)}}function Rx(O,K){var he=-1,xe=O.length,Ve=xe-1;for(K=K===e?xe:K;++he1?O[K-1]:e;return he=typeof he=="function"?(O.pop(),he):e,aG(O,he)});function oG(O){var K=at(O);return K.__chain__=!0,K}function _ne(O,K){return K(O),O}function Mx(O,K){return K(O)}var Dne=Cv(function(O){var K=O.length,he=K?O[0]:0,xe=this.__wrapped__,Ve=function(ct){return z_(ct,O)};return K>1||this.__actions__.length||!(xe instanceof Ka)||!wv(he)?this.thru(Ve):(xe=xe.slice(he,+he+(K?1:0)),xe.__actions__.push({func:Mx,args:[Ve],thisArg:e}),new fd(xe,this.__chain__).thru(function(ct){return K&&!ct.length&&ct.push(e),ct}))});function Rne(){return oG(this)}function Mne(){return new fd(this.value(),this.__chain__)}function Fne(){this.__values__===e&&(this.__values__=IG(this.value()));var O=this.__index__>=this.__values__.length,K=O?e:this.__values__[this.__index__++];return{done:O,value:K}}function Tne(){return this}function Lne(O){for(var K,he=this;he instanceof vx;){var xe=$P(he);xe.__index__=0,xe.__values__=e,K?Ve.__wrapped__=xe:K=xe;var Ve=xe;he=he.__wrapped__}return Ve.__wrapped__=O,K}function Nne(){var O=this.__wrapped__;if(O instanceof Ka){var K=O;return this.__actions__.length&&(K=new Ka(this)),K=K.reverse(),K.__actions__.push({func:Mx,args:[CD],thisArg:e}),new fd(K,this.__chain__)}return this.thru(CD)}function One(){return CP(this.__wrapped__,this.__actions__)}var Pne=Bx(function(O,K,he){Oo.call(O,he)?++O[he]:Iv(O,he,1)});function Gne(O,K,he){var xe=ya(O)?TO:_te;return he&&bh(O,K,he)&&(K=e),xe(O,Li(K,3))}function Une(O,K){var he=ya(O)?Xm:aP;return he(O,Li(K,3))}var jne=MP(eG),Hne=MP(tG);function Yne(O,K){return pl(Fx(O,K),1)}function Jne(O,K){return pl(Fx(O,K),ft)}function Wne(O,K,he){return he=he===e?1:Qa(he),pl(Fx(O,K),he)}function sG(O,K){var he=ya(O)?ld:r2;return he(O,Li(K,3))}function uG(O,K){var he=ya(O)?hee:iP;return he(O,Li(K,3))}var qne=Bx(function(O,K,he){Oo.call(O,he)?O[he].push(K):Iv(O,he,[K])});function zne(O,K,he,xe){O=Zh(O)?O:J3(O),he=he&&!xe?Qa(he):0;var Ve=O.length;return he<0&&(he=Cc(Ve+he,0)),Px(O)?he<=Ve&&O.indexOf(K,he)>-1:!!Ve&&M3(O,K,he)>-1}var Kne=Ma(function(O,K,he){var xe=-1,Ve=typeof K=="function",ct=Zh(O)?vr(O.length):[];return r2(O,function(Dt){ct[++xe]=Ve?Yf(K,Dt,he):kQ(Dt,K,he)}),ct}),Vne=Bx(function(O,K,he){Iv(O,he,K)});function Fx(O,K){var he=ya(O)?Ps:hP;return he(O,Li(K,3))}function Zne(O,K,he,xe){return O==null?[]:(ya(K)||(K=K==null?[]:[K]),he=xe?e:he,ya(he)||(he=he==null?[]:[he]),gP(O,K,he))}var Xne=Bx(function(O,K,he){O[he?0:1].push(K)},function(){return[[],[]]});function $ne(O,K,he){var xe=ya(O)?T_:PO,Ve=arguments.length<3;return xe(O,Li(K,4),he,Ve,r2)}function eie(O,K,he){var xe=ya(O)?fee:PO,Ve=arguments.length<3;return xe(O,Li(K,4),he,Ve,iP)}function tie(O,K){var he=ya(O)?Xm:aP;return he(O,Nx(Li(K,3)))}function rie(O){var K=ya(O)?eP:zte;return K(O)}function nie(O,K,he){(he?bh(O,K,he):K===e)?K=1:K=Qa(K);var xe=ya(O)?Bte:Kte;return xe(O,K)}function iie(O){var K=ya(O)?kte:Zte;return K(O)}function aie(O){if(O==null)return 0;if(Zh(O))return Px(O)?T3(O):O.length;var K=Jl(O);return K==Pe||K==kr?O.size:eD(O).length}function oie(O,K,he){var xe=ya(O)?L_:Xte;return he&&bh(O,K,he)&&(K=e),xe(O,Li(K,3))}var sie=Ma(function(O,K){if(O==null)return[];var he=K.length;return he>1&&bh(O,K[0],K[1])?K=[]:he>2&&bh(K[0],K[1],K[2])&&(K=[K[0]]),gP(O,pl(K,1),[])}),Tx=Uee||function(){return gl.Date.now()};function uie(O,K){if(typeof K!="function")throw new hd(s);return O=Qa(O),function(){if(--O<1)return K.apply(this,arguments)}}function cG(O,K,he){return K=he?e:K,K=O&&K==null?O.length:K,bv(O,le,e,e,e,e,K)}function lG(O,K){var he;if(typeof K!="function")throw new hd(s);return O=Qa(O),function(){return--O>0&&(he=K.apply(this,arguments)),O<=1&&(K=e),he}}var ED=Ma(function(O,K,he){var xe=P;if(he.length){var Ve=e2(he,H3(ED));xe|=re}return bv(O,xe,K,he,Ve)}),hG=Ma(function(O,K,he){var xe=P|M;if(he.length){var Ve=e2(he,H3(hG));xe|=re}return bv(K,xe,O,he,Ve)});function fG(O,K,he){K=he?e:K;var xe=bv(O,G,e,e,e,e,e,K);return xe.placeholder=fG.placeholder,xe}function AG(O,K,he){K=he?e:K;var xe=bv(O,Y,e,e,e,e,e,K);return xe.placeholder=AG.placeholder,xe}function dG(O,K,he){var xe,Ve,ct,Dt,Ut,Xt,Nr=0,Gr=!1,Zr=!1,Rn=!0;if(typeof O!="function")throw new hd(s);K=pd(K)||0,iu(he)&&(Gr=!!he.leading,Zr="maxWait"in he,ct=Zr?Cc(pd(he.maxWait)||0,K):ct,Rn="trailing"in he?!!he.trailing:Rn);function ui(Fu){var Mg=xe,kv=Ve;return xe=Ve=e,Nr=Fu,Dt=O.apply(kv,Mg),Dt}function Pi(Fu){return Nr=Fu,Ut=DQ(Wa,K),Gr?ui(Fu):Dt}function _a(Fu){var Mg=Fu-Xt,kv=Fu-Nr,MG=K-Mg;return Zr?Yl(MG,ct-kv):MG}function Gi(Fu){var Mg=Fu-Xt,kv=Fu-Nr;return Xt===e||Mg>=K||Mg<0||Zr&&kv>=ct}function Wa(){var Fu=Tx();if(Gi(Fu))return eo(Fu);Ut=DQ(Wa,_a(Fu))}function eo(Fu){return Ut=e,Rn&&xe?ui(Fu):(xe=Ve=e,Dt)}function zf(){Ut!==e&&EP(Ut),Nr=0,xe=Xt=Ve=Ut=e}function Ch(){return Ut===e?Dt:eo(Tx())}function Kf(){var Fu=Tx(),Mg=Gi(Fu);if(xe=arguments,Ve=this,Xt=Fu,Mg){if(Ut===e)return Pi(Xt);if(Zr)return EP(Ut),Ut=DQ(Wa,K),ui(Xt)}return Ut===e&&(Ut=DQ(Wa,K)),Dt}return Kf.cancel=zf,Kf.flush=Ch,Kf}var cie=Ma(function(O,K){return nP(O,1,K)}),lie=Ma(function(O,K,he){return nP(O,pd(K)||0,he)});function hie(O){return bv(O,ve)}function Lx(O,K){if(typeof O!="function"||K!=null&&typeof K!="function")throw new hd(s);var he=function(){var xe=arguments,Ve=K?K.apply(this,xe):xe[0],ct=he.cache;if(ct.has(Ve))return ct.get(Ve);var Dt=O.apply(this,xe);return he.cache=ct.set(Ve,Dt)||ct,Dt};return he.cache=new(Lx.Cache||mv),he}Lx.Cache=mv;function Nx(O){if(typeof O!="function")throw new hd(s);return function(){var K=arguments;switch(K.length){case 0:return!O.call(this);case 1:return!O.call(this,K[0]);case 2:return!O.call(this,K[0],K[1]);case 3:return!O.call(this,K[0],K[1],K[2])}return!O.apply(this,K)}}function fie(O){return lG(2,O)}var Aie=$te(function(O,K){K=K.length==1&&ya(K[0])?Ps(K[0],Jf(Li())):Ps(pl(K,1),Jf(Li()));var he=K.length;return Ma(function(xe){for(var Ve=-1,ct=Yl(xe.length,he);++Ve=K}),NC=uP(function(){return arguments}())?uP:function(O){return Iu(O)&&Oo.call(O,"callee")&&!zO.call(O,"callee")},ya=vr.isArray,xie=SO?Jf(SO):Lte;function Zh(O){return O!=null&&Ox(O.length)&&!Ev(O)}function Mu(O){return Iu(O)&&Zh(O)}function Sie(O){return O===!0||O===!1||Iu(O)&&Ih(O)==Vr}var o2=Hee||LD,_ie=_O?Jf(_O):Nte;function Die(O){return Iu(O)&&O.nodeType===1&&!RQ(O)}function Rie(O){if(O==null)return!0;if(Zh(O)&&(ya(O)||typeof O=="string"||typeof O.splice=="function"||o2(O)||Y3(O)||NC(O)))return!O.length;var K=Jl(O);if(K==Pe||K==kr)return!O.size;if(_Q(O))return!eD(O).length;for(var he in O)if(Oo.call(O,he))return!1;return!0}function Mie(O,K){return QQ(O,K)}function Fie(O,K,he){he=typeof he=="function"?he:e;var xe=he?he(O,K):e;return xe===e?QQ(O,K,e,he):!!xe}function kD(O){if(!Iu(O))return!1;var K=Ih(O);return K==zr||K==Tn||typeof O.message=="string"&&typeof O.name=="string"&&!RQ(O)}function Tie(O){return typeof O=="number"&&VO(O)}function Ev(O){if(!iu(O))return!1;var K=Ih(O);return K==Qn||K==Yi||K==Ei||K==Yt}function pG(O){return typeof O=="number"&&O==Qa(O)}function Ox(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=Qt}function iu(O){var K=typeof O;return O!=null&&(K=="object"||K=="function")}function Iu(O){return O!=null&&typeof O=="object"}var vG=DO?Jf(DO):Pte;function Lie(O,K){return O===K||$_(O,K,pD(K))}function Nie(O,K,he){return he=typeof he=="function"?he:e,$_(O,K,pD(K),he)}function Oie(O){return yG(O)&&O!=+O}function Pie(O){if(Cre(O))throw new Aa(o);return cP(O)}function Gie(O){return O===null}function Uie(O){return O==null}function yG(O){return typeof O=="number"||Iu(O)&&Ih(O)==hr}function RQ(O){if(!Iu(O)||Ih(O)!=Bt)return!1;var K=lx(O);if(K===null)return!0;var he=Oo.call(K,"constructor")&&K.constructor;return typeof he=="function"&&he instanceof he&&ox.call(he)==Nee}var QD=RO?Jf(RO):Gte;function jie(O){return pG(O)&&O>=-9007199254740991&&O<=Qt}var mG=MO?Jf(MO):Ute;function Px(O){return typeof O=="string"||!ya(O)&&Iu(O)&&Ih(O)==tr}function qf(O){return typeof O=="symbol"||Iu(O)&&Ih(O)==rn}var Y3=FO?Jf(FO):jte;function Hie(O){return O===e}function Yie(O){return Iu(O)&&Jl(O)==fn}function Jie(O){return Iu(O)&&Ih(O)==di}var Wie=Sx(tD),qie=Sx(function(O,K){return O<=K});function IG(O){if(!O)return[];if(Zh(O))return Px(O)?_g(O):Vh(O);if(mQ&&O[mQ])return Bee(O[mQ]());var K=Jl(O),he=K==Pe?j_:K==kr?nx:J3;return he(O)}function Bv(O){if(!O)return O===0?O:0;if(O=pd(O),O===ft||O===-1/0){var K=O<0?-1:1;return K*vt}return O===O?O:0}function Qa(O){var K=Bv(O),he=K%1;return K===K?he?K-he:K:0}function bG(O){return O?MC(Qa(O),0,Ct):0}function pd(O){if(typeof O=="number")return O;if(qf(O))return Gt;if(iu(O)){var K=typeof O.valueOf=="function"?O.valueOf():O;O=iu(K)?K+"":K}if(typeof O!="string")return O===0?O:+O;O=GO(O);var he=x$.test(O);return he||_$.test(O)?uee(O.slice(2),he?2:8):Q$.test(O)?Gt:+O}function CG(O){return E0(O,Xh(O))}function zie(O){return O?MC(Qa(O),-9007199254740991,Qt):O===0?O:0}function So(O){return O==null?"":Wf(O)}var Kie=U3(function(O,K){if(_Q(K)||Zh(K)){E0(K,Uc(K),O);return}for(var he in K)Oo.call(K,he)&&EQ(O,he,K[he])}),wG=U3(function(O,K){E0(K,Xh(K),O)}),Gx=U3(function(O,K,he,xe){E0(K,Xh(K),O,xe)}),Vie=U3(function(O,K,he,xe){E0(K,Uc(K),O,xe)}),Zie=Cv(z_);function Xie(O,K){var he=G3(O);return K==null?he:tP(he,K)}var $ie=Ma(function(O,K){O=Vo(O);var he=-1,xe=K.length,Ve=xe>2?K[2]:e;for(Ve&&bh(K[0],K[1],Ve)&&(xe=1);++he1),ct}),E0(O,dD(O),he),xe&&(he=Ad(he,w|x|Q,lre));for(var Ve=K.length;Ve--;)oD(he,K[Ve]);return he});function vae(O,K){return BG(O,Nx(Li(K)))}var yae=Cv(function(O,K){return O==null?{}:Jte(O,K)});function BG(O,K){if(O==null)return{};var he=Ps(dD(O),function(xe){return[xe]});return K=Li(K),pP(O,he,function(xe,Ve){return K(xe,Ve[0])})}function mae(O,K,he){K=i2(K,O);var xe=-1,Ve=K.length;for(Ve||(Ve=1,O=e);++xeK){var xe=O;O=K,K=xe}if(he||O%1||K%1){var Ve=ZO();return Yl(O+Ve*(K-O+see("1e-"+((Ve+"").length-1))),K)}return nD(O,K)}var _ae=j3(function(O,K,he){return K=K.toLowerCase(),O+(he?xG(K):K)});function xG(O){return _D(So(O).toLowerCase())}function SG(O){return O=So(O),O&&O.replace(R$,Iee).replace(Z$,"")}function Dae(O,K,he){O=So(O),K=Wf(K);var xe=O.length;he=he===e?xe:MC(Qa(he),0,xe);var Ve=he;return he-=K.length,he>=0&&O.slice(he,Ve)==K}function Rae(O){return O=So(O),O&&f$.test(O)?O.replace(Zm,bee):O}function Mae(O){return O=So(O),O&&y$.test(O)?O.replace(B_,"\\$&"):O}var Fae=j3(function(O,K,he){return O+(he?"-":"")+K.toLowerCase()}),Tae=j3(function(O,K,he){return O+(he?" ":"")+K.toLowerCase()}),Lae=RP("toLowerCase");function Nae(O,K,he){O=So(O),K=Qa(K);var xe=K?T3(O):0;if(!K||xe>=K)return O;var Ve=(K-xe)/2;return xx(dx(Ve),he)+O+xx(Ax(Ve),he)}function Oae(O,K,he){O=So(O),K=Qa(K);var xe=K?T3(O):0;return K&&xe>>0,he?(O=So(O),O&&(typeof K=="string"||K!=null&&!QD(K))&&(K=Wf(K),!K&&F3(O))?a2(_g(O),0,he):O.split(K,he)):[]}var Jae=j3(function(O,K,he){return O+(he?" ":"")+_D(K)});function Wae(O,K,he){return O=So(O),he=he==null?0:MC(Qa(he),0,O.length),K=Wf(K),O.slice(he,he+K.length)==K}function qae(O,K,he){var xe=at.templateSettings;he&&bh(O,K,he)&&(K=e),O=So(O),K=Gx({},K,xe,PP);var Ve=Gx({},K.imports,xe.imports,PP),ct=Uc(Ve),Dt=U_(Ve,ct),Ut,Xt,Nr=0,Gr=K.interpolate||X9,Zr="__p += '",Rn=H_((K.escape||X9).source+"|"+Gr.source+"|"+(Gr===sO?k$:X9).source+"|"+(K.evaluate||X9).source+"|$","g"),ui="//# sourceURL="+(Oo.call(K,"sourceURL")?(K.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ree+"]")+` `;O.replace(Rn,function(Gi,Wa,eo,zf,Ch,Kf){return eo||(eo=zf),Zr+=O.slice(Nr,Kf).replace(M$,Cee),Wa&&(Ut=!0,Zr+=`' + __e(`+Wa+`) + '`),Ch&&(Xt=!0,Zr+=`'; `+Ch+`; __p += '`),eo&&(Zr+=`' + ((__t = (`+eo+`)) == null ? '' : __t) + '`),Nr=Kf+Gi.length,Gi}),Zr+=`'; `;var Pi=Oo.call(K,"variable")&&K.variable;if(!Pi)Zr=`with (obj) { `+Zr+` } `;else if(E$.test(Pi))throw new Aa(l);Zr=(Xt?Zr.replace(xC,""):Zr).replace(Ja,"$1").replace(Ru,"$1;"),Zr="function("+(Pi||"obj")+`) { `+(Pi?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(Ut?", __e = _.escape":"")+(Xt?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Zr+`return __p }`;var _a=DG(function(){return Eo(ct,ui+"return "+Zr).apply(e,Dt)});if(_a.source=Zr,kD(_a))throw _a;return _a}function zae(O){return So(O).toLowerCase()}function Kae(O){return So(O).toUpperCase()}function Vae(O,K,he){if(O=So(O),O&&(he||K===e))return GO(O);if(!O||!(K=Wf(K)))return O;var xe=_g(O),Ve=_g(K),ct=UO(xe,Ve),Dt=jO(xe,Ve)+1;return a2(xe,ct,Dt).join("")}function Zae(O,K,he){if(O=So(O),O&&(he||K===e))return O.slice(0,YO(O)+1);if(!O||!(K=Wf(K)))return O;var xe=_g(O),Ve=jO(xe,_g(K))+1;return a2(xe,0,Ve).join("")}function Xae(O,K,he){if(O=So(O),O&&(he||K===e))return O.replace(k_,"");if(!O||!(K=Wf(K)))return O;var xe=_g(O),Ve=UO(xe,_g(K));return a2(xe,Ve).join("")}function $ae(O,K){var he=Ee,xe=Se;if(iu(K)){var Ve="separator"in K?K.separator:Ve;he="length"in K?Qa(K.length):he,xe="omission"in K?Wf(K.omission):xe}O=So(O);var ct=O.length;if(F3(O)){var Dt=_g(O);ct=Dt.length}if(he>=ct)return O;var Ut=he-T3(xe);if(Ut<1)return xe;var Xt=Dt?a2(Dt,0,Ut).join(""):O.slice(0,Ut);if(Ve===e)return Xt+xe;if(Dt&&(Ut+=Xt.length-Ut),QD(Ve)){if(O.slice(Ut).search(Ve)){var Nr,Gr=Xt;for(Ve.global||(Ve=H_(Ve.source,So(uO.exec(Ve))+"g")),Ve.lastIndex=0;Nr=Ve.exec(Gr);)var Zr=Nr.index;Xt=Xt.slice(0,Zr===e?Ut:Zr)}}else if(O.indexOf(Wf(Ve),Ut)!=Ut){var Rn=Xt.lastIndexOf(Ve);Rn>-1&&(Xt=Xt.slice(0,Rn))}return Xt+xe}function eoe(O){return O=So(O),O&&D3.test(O)?O.replace(vQ,See):O}var toe=j3(function(O,K,he){return O+(he?" ":"")+K.toUpperCase()}),_D=RP("toUpperCase");function _G(O,K,he){return O=So(O),K=he?e:K,K===e?Eee(O)?Ree(O):gee(O):O.match(K)||[]}var DG=Ma(function(O,K){try{return Yf(O,e,K)}catch(he){return kD(he)?he:new Aa(he)}}),roe=Cv(function(O,K){return ld(K,function(he){he=B0(he),Iv(O,he,ED(O[he],O))}),O});function noe(O){var K=O==null?0:O.length,he=Li();return O=K?Ps(O,function(xe){if(typeof xe[1]!="function")throw new hd(s);return[he(xe[0]),xe[1]]}):[],Ma(function(xe){for(var Ve=-1;++VeQt)return[];var he=Ct,xe=Yl(O,Ct);K=Li(K),O-=Ct;for(var Ve=G_(xe,K);++he0||K<0)?new Ka(he):(O<0?he=he.takeRight(-O):O&&(he=he.drop(O)),K!==e&&(K=Qa(K),he=K<0?he.dropRight(-K):he.take(K-O)),he)},Ka.prototype.takeRightWhile=function(O){return this.reverse().takeWhile(O).reverse()},Ka.prototype.toArray=function(){return this.take(Ct)},w0(Ka.prototype,function(O,K){var he=/^(?:filter|find|map|reject)|While$/.test(K),xe=/^(?:head|last)$/.test(K),Ve=at[xe?"take"+(K=="last"?"Right":""):K],ct=xe||/^find/.test(K);Ve&&(at.prototype[K]=function(){var Dt=this.__wrapped__,Ut=xe?[1]:arguments,Xt=Dt instanceof Ka,Nr=Ut[0],Gr=Xt||ya(Dt),Zr=function(Wa){var eo=Ve.apply(at,$m([Wa],Ut));return xe&&Rn?eo[0]:eo};Gr&&he&&typeof Nr=="function"&&Nr.length!=1&&(Xt=Gr=!1);var Rn=this.__chain__,ui=!!this.__actions__.length,Pi=ct&&!Rn,_a=Xt&&!ui;if(!ct&&Gr){Dt=_a?Dt:new Ka(this);var Gi=O.apply(Dt,Ut);return Gi.__actions__.push({func:Mx,args:[Zr],thisArg:e}),new fd(Gi,Rn)}return Pi&&_a?O.apply(this,Ut):(Gi=this.thru(Zr),Pi?xe?Gi.value()[0]:Gi.value():Gi)})}),ld(["pop","push","shift","sort","splice","unshift"],function(O){var K=ix[O],he=/^(?:push|sort|unshift)$/.test(O)?"tap":"thru",xe=/^(?:pop|shift)$/.test(O);at.prototype[O]=function(){var Ve=arguments;if(xe&&!this.__chain__){var ct=this.value();return K.apply(ya(ct)?ct:[],Ve)}return this[he](function(Dt){return K.apply(ya(Dt)?Dt:[],Ve)})}}),w0(Ka.prototype,function(O,K){var he=at[K];if(he){var xe=he.name+"";Oo.call(P3,xe)||(P3[xe]=[]),P3[xe].push({name:K,func:he})}}),P3[kx(e,M).name]=[{name:"wrapper",func:e}],Ka.prototype.clone=ete,Ka.prototype.reverse=tte,Ka.prototype.value=rte,at.prototype.at=Dne,at.prototype.chain=Rne,at.prototype.commit=Mne,at.prototype.next=Fne,at.prototype.plant=Lne,at.prototype.reverse=Nne,at.prototype.toJSON=at.prototype.valueOf=at.prototype.value=One,at.prototype.first=at.prototype.head,mQ&&(at.prototype[mQ]=Tne),at},L3=Mee();SC?((SC.exports=L3)._=L3,R_._=L3):gl._=L3}).call(ao)}(wc,wc.exports);for(var It=wc.exports,Vt=[],Ni=0;Ni<256;++Ni)Vt.push((Ni+256).toString(16).slice(1));function wh(r,t=0){return(Vt[r[t+0]]+Vt[r[t+1]]+Vt[r[t+2]]+Vt[r[t+3]]+"-"+Vt[r[t+4]]+Vt[r[t+5]]+"-"+Vt[r[t+6]]+Vt[r[t+7]]+"-"+Vt[r[t+8]]+Vt[r[t+9]]+"-"+Vt[r[t+10]]+Vt[r[t+11]]+Vt[r[t+12]]+Vt[r[t+13]]+Vt[r[t+14]]+Vt[r[t+15]]).toLowerCase()}var vl,Eh=new Uint8Array(16);function Da(){if(!vl&&(vl=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!vl))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vl(Eh)}var Kt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const er={randomUUID:Kt};function xr(r,t,e){if(er.randomUUID&&!r)return er.randomUUID();r=r||{};var n=r.random||(r.rng||Da)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,wh(n)}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Hn=function(r,t){return Hn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Hn(r,t)};function kt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Hn(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var da=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),cs=function(){function r(){this.browser=new da,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),Yn=new cs;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Yn.wxa=!0,Yn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Yn.worker=!0:!Yn.hasGlobalWindow||"Deno"in window?(Yn.node=!0,Yn.svgSupported=!0):Xu(navigator.userAgent,Yn);function Xu(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),o=r.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),o&&(e.edge=!0,e.version=o[1],e.newEdge=+o[1].split(".")[0]>18),s&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var ca=12,_o="sans-serif",hi=ca+"px "+_o,ws=20,Ri=100,Bi="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function si(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)l=s*e.length;else for(var f=0;f>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[f]+":0",i[v]+":0",n[1-f]+":auto",i[1-v]+":auto",""].join("!important;"),r.appendChild(s),e.push(s)}return e}function _v(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],o=t.srcCoords,s=[],l=[],f=!0,v=0;v<4;v++){var C=r[v].getBoundingClientRect(),w=2*v,x=C.left,Q=C.top;s.push(x,Q),f=f&&o&&x===o[w]&&Q===o[w+1],l.push(r[v].offsetLeft,r[v].offsetTop)}return f&&i?i:(t.srcCoords=s,t[n]=e?_0(l,s):_0(s,l))}function WC(r){return r.nodeName.toUpperCase()==="CANVAS"}var Dv=/([&<>"'])/g,qC={"&":"&","<":"<",">":">",'"':""","'":"'"};function ou(r){return r==null?"":(r+"").replace(Dv,function(t,e){return qC[e]})}var Z3=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gg=[],X3=Yn.browser.firefox&&+Yn.browser.version.split(".")[0]<39;function p2(r,t,e,n){return e=e||{},n?D0(r,t,e):X3&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):D0(r,t,e),e}function D0(r,t,e){if(Yn.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(WC(r)){var o=r.getBoundingClientRect();e.zrX=n-o.left,e.zrY=i-o.top;return}else if(Pg(Gg,r,n,i)){e.zrX=Gg[0],e.zrY=Gg[1];return}}e.zrX=e.zrY=0}function R0(r){return r||window.event}function nc(r,t,e){if(t=R0(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&p2(r,o,t,e)}else{p2(r,t,t,e);var s=zC(t);t.zrDelta=s?s/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&Z3.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function zC(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),o=n>0?-1:n<0?1:e>0?-1:1;return 3*i*o}function v2(r,t,e,n){r.addEventListener(t,e,n)}function $3(r,t,e,n){r.removeEventListener(t,e,n)}var rf=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function KC(r){return r.which===2||r.which===3}var e5=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},s=0,l=i.length;s1&&n&&n.length>1){var o=VC(n)/VC(i);!isFinite(o)&&(o=1),t.pinchScale=o;var s=t5(n);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:r[0].target,event:t}}}}};function Lu(){return[1,0,0,1,0,0]}function M0(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function ml(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function ic(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],o=t[0]*e[2]+t[2]*e[3],s=t[1]*e[2]+t[3]*e[3],l=t[0]*e[4]+t[2]*e[5]+t[4],f=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=o,r[3]=s,r[4]=l,r[5]=f,r}function Hs(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function nf(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],o=t[2],s=t[4],l=t[1],f=t[3],v=t[5],C=Math.sin(e),w=Math.cos(e);return r[0]=i*w+l*C,r[1]=-i*C+l*w,r[2]=o*w+f*C,r[3]=-o*C+w*f,r[4]=w*(s-n[0])+C*(v-n[1])+n[0],r[5]=w*(v-n[1])-C*(s-n[0])+n[1],r}function Rv(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function yd(r,t){var e=t[0],n=t[2],i=t[4],o=t[1],s=t[3],l=t[5],f=e*s-o*n;return f?(f=1/f,r[0]=s*f,r[1]=-o*f,r[2]=-n*f,r[3]=e*f,r[4]=(n*l-s*i)*f,r[5]=(o*i-e*l)*f,r):null}function r5(r){var t=Lu();return ml(t,r),t}var ci=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var o=1-i;t.x=o*e.x+i*n.x,t.y=o*e.y+i*n.y},r}(),Mv=Math.min,F0=Math.max,ac=new ci,oA=new ci,Bh=new ci,sA=new ci,T0=new ci,Ug=new ci,gi=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=Mv(t.x,this.x),n=Mv(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=F0(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=F0(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,o=Lu();return Hs(o,o,[-e.x,-e.y]),Rv(o,o,[n,i]),Hs(o,o,[t.x,t.y]),o},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,o=n.x+n.width,s=n.y,l=n.y+n.height,f=t.x,v=t.x+t.width,C=t.y,w=t.y+t.height,x=!(oR&&(R=G,LR&&(R=Y,M=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],o=n[3],s=n[4],l=n[5];t.x=e.x*i+s,t.y=e.y*o+l,t.width=e.width*i,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ac.x=Bh.x=e.x,ac.y=sA.y=e.y,oA.x=sA.x=e.x+e.width,oA.y=Bh.y=e.y+e.height,ac.transform(n),sA.transform(n),oA.transform(n),Bh.transform(n),t.x=Mv(ac.x,oA.x,Bh.x,sA.x),t.y=Mv(ac.y,oA.y,Bh.y,sA.y);var f=F0(ac.x,oA.x,Bh.x,sA.x),v=F0(ac.y,oA.y,Bh.y,sA.y);t.width=f-t.x,t.height=v-t.y},r}(),y2="silent";function n5(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:ZC}}function ZC(){rf(this.event)}var i5=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(au),L0=function(){function r(t,e){this.x=t,this.y=e}return r}(),a5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],m2=new gi(0,0,0,0),Fv=function(r){kt(t,r);function t(e,n,i,o,s){var l=r.call(this)||this;return l._hovered=new L0(0,0),l.storage=e,l.painter=n,l.painterRoot=o,l._pointerSize=s,i=i||new i5,l.proxy=null,l.setHandlerProxy(i),l._draggingMgr=new d2(l),l}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(Ne(a5,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,o=Tv(this,n,i),s=this._hovered,l=s.target;l&&!l.__zr&&(s=this.findHover(s.x,s.y),l=s.target);var f=this._hovered=o?new L0(n,i):this.findHover(n,i),v=f.target,C=this.proxy;C.setCursor&&C.setCursor(v?v.cursor:"default"),l&&v!==l&&this.dispatchToElement(s,"mouseout",e),this.dispatchToElement(f,"mousemove",e),v&&v!==l&&this.dispatchToElement(f,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new L0(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var o=e.target;if(!(o&&o.silent)){for(var s="on"+n,l=n5(n,e,i);o&&(o[s]&&(l.cancelBubble=!!o[s].call(o,l)),o.trigger(n,l),o=o.__hostTarget?o.__hostTarget:o.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(n,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[s]=="function"&&f[s].call(f,l),f.trigger&&f.trigger(n,l)}))}},t.prototype.findHover=function(e,n,i){var o=this.storage.getDisplayList(),s=new L0(e,n);if(I2(o,s,e,n,i),this._pointerSize&&!s.target){for(var l=[],f=this._pointerSize,v=f/2,C=new gi(e-v,n-v,f,f),w=o.length-1;w>=0;w--){var x=o[w];x!==i&&!x.ignore&&!x.ignoreCoarsePointer&&(!x.parent||!x.parent.ignoreCoarsePointer)&&(m2.copy(x.getBoundingRect()),x.transform&&m2.applyTransform(x.transform),m2.intersect(C)&&l.push(x))}if(l.length)for(var Q=4,R=Math.PI/12,L=Math.PI*2,P=0;P4)return;this._downPoint=null}this.dispatchToElement(o,r,t)}});function o5(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var s=n.getClipPath();if(s&&!s.contain(t,e))return!1}n.silent&&(i=!0);var l=n.__hostTarget;n=l||n.parent}return i?y2:!0}return!1}function I2(r,t,e,n,i){for(var o=r.length-1;o>=0;o--){var s=r[o],l=void 0;if(s!==i&&!s.ignore&&(l=o5(s,e,n))&&(!t.topTarget&&(t.topTarget=s),l!==y2)){t.target=s;break}}}function Tv(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var b2=32,N0=7;function jg(r){for(var t=0;r>=b2;)t|=r&1,r>>=1;return r+t}function O0(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function XC(r,t,e){for(e--;t>>1,i(o,r[f])<0?l=f:s=f+1;var v=n-s;switch(v){case 3:r[s+3]=r[s+2];case 2:r[s+2]=r[s+1];case 1:r[s+1]=r[s];break;default:for(;v>0;)r[s+v]=r[s+v-1],v--}r[s]=o}}function Lv(r,t,e,n,i,o){var s=0,l=0,f=1;if(o(r,t[e+i])>0){for(l=n-i;f0;)s=f,f=(f<<1)+1,f<=0&&(f=l);f>l&&(f=l),s+=i,f+=i}else{for(l=i+1;fl&&(f=l);var v=s;s=i-f,f=i-v}for(s++;s>>1);o(r,t[e+C])>0?s=C+1:f=C}return f}function C2(r,t,e,n,i,o){var s=0,l=0,f=1;if(o(r,t[e+i])<0){for(l=i+1;fl&&(f=l);var v=s;s=i-f,f=i-v}else{for(l=n-i;f=0;)s=f,f=(f<<1)+1,f<=0&&(f=l);f>l&&(f=l),s+=i,f+=i}for(s++;s>>1);o(r,t[e+C])<0?f=C:s=C+1}return f}function ew(r,t){var e=N0,n,i,o=0,s=[];n=[],i=[];function l(Q,R){n[o]=Q,i[o]=R,o+=1}function f(){for(;o>1;){var Q=o-2;if(Q>=1&&i[Q-1]<=i[Q]+i[Q+1]||Q>=2&&i[Q-2]<=i[Q]+i[Q-1])i[Q-1]i[Q+1])break;C(Q)}}function v(){for(;o>1;){var Q=o-2;Q>0&&i[Q-1]=N0||le>=N0);if(pe)break;re<0&&(re=0),re+=2}if(e=re,e<1&&(e=1),R===1){for(M=0;M=0;M--)r[ie+M]=r[re+M];r[Y]=s[G];return}for(var le=e;;){var pe=0,ve=0,Ee=!1;do if(t(s[G],r[k])<0){if(r[Y--]=r[k--],pe++,ve=0,--R===0){Ee=!0;break}}else if(r[Y--]=s[G--],ve++,pe=0,--P===1){Ee=!0;break}while((pe|ve)=0;M--)r[ie+M]=r[re+M];if(R===0){Ee=!0;break}}if(r[Y--]=s[G--],--P===1){Ee=!0;break}if(ve=P-Lv(r[k],s,0,P,P-1,t),ve!==0){for(Y-=ve,G-=ve,P-=ve,ie=Y+1,re=G+1,M=0;M=N0||ve>=N0);if(Ee)break;le<0&&(le=0),le+=2}if(e=le,e<1&&(e=1),P===1){for(Y-=R,k-=R,ie=Y+1,re=k+1,M=R-1;M>=0;M--)r[ie+M]=r[re+M];r[Y]=s[G]}else{if(P===0)throw new Error;for(re=Y-(P-1),M=0;Ml&&(f=l),$C(r,e,e+f,e+o,t),o=f}s.pushRun(e,o),s.mergeRuns(),i-=o,e+=o}while(i!==0);s.forceMergeRuns()}}var zl=1,md=2,Hg=4,tw=!1;function Ov(){tw||(tw=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rw(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Id=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rw}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(C.__clipPaths=[]),isNaN(C.z)&&(Ov(),C.z=0),isNaN(C.z2)&&(Ov(),C.z2=0),isNaN(C.zlevel)&&(Ov(),C.zlevel=0),this._displayList[this._displayListLen++]=C}var w=t.getDecalElement&&t.getDecalElement();w&&this._updateAndAddDisplayable(w,e,n);var x=t.getTextGuideLine();x&&this._updateAndAddDisplayable(x,e,n);var Q=t.getTextContent();Q&&this._updateAndAddDisplayable(Q,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Yg;Yg=Yn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Jg={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Jg.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Jg.bounceIn(r*2)*.5:Jg.bounceOut(r*2-1)*.5+.5}},P0=Math.pow,af=Math.sqrt,nw=1e-8,Pv=1e-4,w2=af(3),G0=1/3,Kl=vd(),Yc=vd(),Wg=vd();function of(r){return r>-1e-8&&rnw||r<-1e-8}function ks(r,t,e,n,i){var o=1-i;return o*o*(o*r+3*i*t)+i*i*(i*n+3*o*e)}function E2(r,t,e,n,i){var o=1-i;return 3*(((t-r)*o+2*(e-t)*i)*o+(n-e)*i*i)}function U0(r,t,e,n,i,o){var s=n+3*(t-e)-r,l=3*(e-t*2+r),f=3*(t-r),v=r-i,C=l*l-3*s*f,w=l*f-9*s*v,x=f*f-3*l*v,Q=0;if(of(C)&&of(w))if(of(l))o[0]=0;else{var R=-f/l;R>=0&&R<=1&&(o[Q++]=R)}else{var L=w*w-4*C*x;if(of(L)){var P=w/C,R=-l/s+P,M=-P/2;R>=0&&R<=1&&(o[Q++]=R),M>=0&&M<=1&&(o[Q++]=M)}else if(L>0){var k=af(L),G=C*l+1.5*s*(-w+k),Y=C*l+1.5*s*(-w-k);G<0?G=-P0(-G,G0):G=P0(G,G0),Y<0?Y=-P0(-Y,G0):Y=P0(Y,G0);var R=(-l-(G+Y))/(3*s);R>=0&&R<=1&&(o[Q++]=R)}else{var re=(2*C*l-3*s*w)/(2*af(C*C*C)),ie=Math.acos(re)/3,le=af(C),pe=Math.cos(ie),R=(-l-2*le*pe)/(3*s),M=(-l+le*(pe+w2*Math.sin(ie)))/(3*s),ve=(-l+le*(pe-w2*Math.sin(ie)))/(3*s);R>=0&&R<=1&&(o[Q++]=R),M>=0&&M<=1&&(o[Q++]=M),ve>=0&&ve<=1&&(o[Q++]=ve)}}return Q}function aw(r,t,e,n,i){var o=6*e-12*t+6*r,s=9*t+3*n-3*r-9*e,l=3*t-3*r,f=0;if(of(s)){if(iw(o)){var v=-l/o;v>=0&&v<=1&&(i[f++]=v)}}else{var C=o*o-4*s*l;if(of(C))i[0]=-o/(2*s);else if(C>0){var w=af(C),v=(-o+w)/(2*s),x=(-o-w)/(2*s);v>=0&&v<=1&&(i[f++]=v),x>=0&&x<=1&&(i[f++]=x)}}return f}function sf(r,t,e,n,i,o){var s=(t-r)*i+r,l=(e-t)*i+t,f=(n-e)*i+e,v=(l-s)*i+s,C=(f-l)*i+l,w=(C-v)*i+v;o[0]=r,o[1]=s,o[2]=v,o[3]=w,o[4]=w,o[5]=C,o[6]=f,o[7]=n}function qg(r,t,e,n,i,o,s,l,f,v,C){var w,x=.005,Q=1/0,R,L,P,M;Kl[0]=f,Kl[1]=v;for(var k=0;k<1;k+=.05)Yc[0]=ks(r,e,i,s,k),Yc[1]=ks(t,n,o,l,k),P=tA(Kl,Yc),P=0&&P=0&&v<=1&&(i[f++]=v)}}else{var C=s*s-4*o*l;if(of(C)){var v=-s/(2*o);v>=0&&v<=1&&(i[f++]=v)}else if(C>0){var w=af(C),v=(-s+w)/(2*o),x=(-s-w)/(2*o);v>=0&&v<=1&&(i[f++]=v),x>=0&&x<=1&&(i[f++]=x)}}return f}function B2(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function j0(r,t,e,n,i){var o=(t-r)*n+r,s=(e-t)*n+t,l=(s-o)*n+o;i[0]=r,i[1]=o,i[2]=l,i[3]=l,i[4]=s,i[5]=e}function k2(r,t,e,n,i,o,s,l,f){var v,C=.005,w=1/0;Kl[0]=s,Kl[1]=l;for(var x=0;x<1;x+=.05){Yc[0]=su(r,e,i,x),Yc[1]=su(t,n,o,x);var Q=tA(Kl,Yc);Q=0&&Q=1?1:U0(0,n,o,1,f,l)&&ks(0,i,s,1,l[0])}}}var uw=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||$o,this.ondestroy=t.ondestroy||$o,this.onrestart=t.onrestart||$o,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,o=i/n;o<0&&(o=0),o=Math.min(o,1);var s=this.easingFunc,l=s?s(o):o;if(this.onframe(l),o===1)if(this.loop){var f=i%n;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=bn(t)?t:Jg[t]||Uv(t)},r}(),Q2=function(){function r(t){this.value=t}return r}(),cw=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Q2(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),zg=function(){function r(t){this._list=new cw,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(i[t]==null){var s=n.len(),l=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var f=n.head;n.remove(f),delete i[f.key],o=f.value,this._lastRemovedEntry=f}l?l.value=e:l=new Q2(e),l.key=t,n.insertEntry(l),i[t]=l}return o},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),lw={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 Jc(r){return r=Math.round(r),r<0?0:r>255?255:r}function uA(r){return r=Math.round(r),r<0?0:r>360?360:r}function Nu(r){return r<0?0:r>1?1:r}function bd(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Jc(parseFloat(t)/100*255):Jc(parseInt(t,10))}function cA(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Nu(parseFloat(t)/100):Nu(parseFloat(t))}function x2(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function kh(r,t,e){return r+(t-r)*e}function Cu(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function H0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var hw=new zg(20),Wc=null;function Cd(r,t){Wc&&H0(Wc,t),Wc=hw.put(r,Wc||t.slice())}function qc(r,t){if(r){t=t||[];var e=hw.get(r);if(e)return H0(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in lw)return H0(t,lw[n]),Cd(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(n.slice(1,4),16);if(!(o>=0&&o<=4095)){Cu(t,0,0,0,1);return}return Cu(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Cd(r,t),t}else if(i===7||i===9){var o=parseInt(n.slice(1,7),16);if(!(o>=0&&o<=16777215)){Cu(t,0,0,0,1);return}return Cu(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(n.slice(7),16)/255:1),Cd(r,t),t}return}var s=n.indexOf("("),l=n.indexOf(")");if(s!==-1&&l+1===i){var f=n.substr(0,s),v=n.substr(s+1,l-(s+1)).split(","),C=1;switch(f){case"rgba":if(v.length!==4)return v.length===3?Cu(t,+v[0],+v[1],+v[2],1):Cu(t,0,0,0,1);C=cA(v.pop());case"rgb":if(v.length>=3)return Cu(t,bd(v[0]),bd(v[1]),bd(v[2]),v.length===3?C:cA(v[3])),Cd(r,t),t;Cu(t,0,0,0,1);return;case"hsla":if(v.length!==4){Cu(t,0,0,0,1);return}return v[3]=cA(v[3]),Kg(v,t),Cd(r,t),t;case"hsl":if(v.length!==3){Cu(t,0,0,0,1);return}return Kg(v,t),Cd(r,t),t;default:return}}Cu(t,0,0,0,1)}}function Kg(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=cA(r[1]),i=cA(r[2]),o=i<=.5?i*(n+1):i+n-i*n,s=i*2-o;return t=t||[],Cu(t,Jc(x2(s,o,e+1/3)*255),Jc(x2(s,o,e)*255),Jc(x2(s,o,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function fw(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),o=Math.max(t,e,n),s=o-i,l=(o+i)/2,f,v;if(s===0)f=0,v=0;else{l<.5?v=s/(o+i):v=s/(2-o-i);var C=((o-t)/6+s/2)/s,w=((o-e)/6+s/2)/s,x=((o-n)/6+s/2)/s;t===o?f=x-w:e===o?f=1/3+C-x:n===o&&(f=2/3+w-C),f<0&&(f+=1),f>1&&(f-=1)}var Q=[f*360,v,l];return r[3]!=null&&Q.push(r[3]),Q}}function S2(r,t){var e=qc(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return cf(e,e.length===4?"rgba":"rgb")}}function jv(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),o=Math.ceil(n),s=t[i],l=t[o],f=n-i;return e[0]=Jc(kh(s[0],l[0],f)),e[1]=Jc(kh(s[1],l[1],f)),e[2]=Jc(kh(s[2],l[2],f)),e[3]=Nu(kh(s[3],l[3],f)),e}}function u5(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),o=Math.ceil(n),s=qc(t[i]),l=qc(t[o]),f=n-i,v=cf([Jc(kh(s[0],l[0],f)),Jc(kh(s[1],l[1],f)),Jc(kh(s[2],l[2],f)),Nu(kh(s[3],l[3],f))],"rgba");return e?{color:v,leftIndex:i,rightIndex:o,value:n}:v}}function Vg(r,t,e,n){var i=qc(r);if(r)return i=fw(i),t!=null&&(i[0]=uA(t)),e!=null&&(i[1]=cA(e)),n!=null&&(i[2]=cA(n)),cf(Kg(i),"rgba")}function Zg(r,t){var e=qc(r);if(e&&t!=null)return e[3]=Nu(t),cf(e,"rgba")}function cf(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function lf(r,t){var e=qc(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Vl=new zg(100);function _2(r){if(en(r)){var t=Vl.get(r);return t||(t=S2(r,-.1),Vl.put(r,t)),t}else if(Q0(r)){var e=ar({},r);return e.colorStops=pr(r.colorStops,function(n){return{offset:n.offset,color:S2(n.color,-.1)}}),e}return r}var Hv=Math.round;function Y0(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=qc(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var D2=1e-4;function Qh(r){return r-1e-4}function Yv(r){return Hv(r*1e3)/1e3}function wu(r){return Hv(r*1e4)/1e4}function J0(r){return"matrix("+Yv(r[0])+","+Yv(r[1])+","+Yv(r[2])+","+Yv(r[3])+","+wu(r[4])+","+wu(r[5])+")"}var R2={left:"start",right:"end",center:"middle",middle:"middle"};function Aw(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function W0(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function c5(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function M2(r){return r&&!!r.image}function l5(r){return r&&!!r.svgElement}function F2(r){return M2(r)||l5(r)}function T2(r){return r.type==="linear"}function Xg(r){return r.type==="radial"}function $g(r){return r&&(r.type==="linear"||r.type==="radial")}function go(r){return"url(#"+r+")"}function dw(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function gw(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Qv,i=$n(r.scaleX,1),o=$n(r.scaleY,1),s=r.skewX||0,l=r.skewY||0,f=[];return(t||e)&&f.push("translate("+t+"px,"+e+"px)"),n&&f.push("rotate("+n+")"),(i!==1||o!==1)&&f.push("scale("+i+","+o+")"),(s||l)&&f.push("skew("+Hv(s*Qv)+"deg, "+Hv(l*Qv)+"deg)"),f.join(" ")}var h5=function(){return Yn.hasGlobalWindow&&bn(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),lA=Array.prototype.slice;function oc(r,t,e){return(t-r)*e+r}function q0(r,t,e,n){for(var i=t.length,o=0;on?t:r,o=Math.min(e,n),s=i[o-1]||{color:[0,0,0,0],offset:0},l=o;ls;if(l)n.length=s;else for(var f=o;f=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,o=i.length,s=!1,l=P2,f=e;if(bo(e)){var v=d5(e);l=v,(v===1&&!$i(e[0])||v===2&&!$i(e[0][0]))&&(s=!0)}else if($i(e)&&!Tg(e))l=qv;else if(en(e))if(!isNaN(+e))l=qv;else{var C=qc(e);C&&(f=C,l=tp)}else if(Q0(e)){var w=ar({},f);w.colorStops=pr(e.colorStops,function(Q){return{offset:Q.offset,color:qc(Q.color)}}),T2(e)?l=Kv:Xg(e)&&(l=Sa),f=w}o===0?this.valType=l:(l!==this.valType||l===P2)&&(s=!0),this.discrete=this.discrete||s;var x={time:t,value:f,rawValue:e,percent:0};return n&&(x.easing=n,x.easingFunc=bn(n)?n:Jg[n]||Uv(n)),i.push(x),x},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(L,P){return L.time-P.time});for(var i=this.valType,o=n.length,s=n[o-1],l=this.discrete,f=hA(i),v=Vv(i),C=0;C=0&&!(s[C].percent<=e);C--);C=x(C,l-2)}else{for(C=w;Ce);C++);C=x(C-1,l-2)}R=s[C+1],Q=s[C]}if(Q&&R){this._lastFr=C,this._lastFrP=e;var P=R.percent-Q.percent,M=P===0?1:x((e-Q.percent)/P,1);R.easingFunc&&(M=R.easingFunc(M));var k=n?this._additiveValue:v?Ui:t[f];if((hA(o)||v)&&!k&&(k=this._additiveValue=[]),this.discrete)t[f]=M<1?Q.rawValue:R.rawValue;else if(hA(o))o===zv?q0(k,Q[i],R[i],M):f5(k,Q[i],R[i],M);else if(Vv(o)){var G=Q[i],Y=R[i],re=o===Kv;t[f]={type:re?"linear":"radial",x:oc(G.x,Y.x,M),y:oc(G.y,Y.y,M),colorStops:pr(G.colorStops,function(le,pe){var ve=Y.colorStops[pe];return{offset:oc(le.offset,ve.offset,M),color:Wv(q0([],le.color,ve.color,M))}}),global:Y.global},re?(t[f].x2=oc(G.x2,Y.x2,M),t[f].y2=oc(G.y2,Y.y2,M)):t[f].r=oc(G.r,Y.r,M)}else if(v)q0(k,Q[i],R[i],M),n||(t[f]=Wv(k));else{var ie=oc(Q[i],R[i],M);n?this._additiveValue=ie:t[f]=ie}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===qv?t[n]=t[n]+i:e===tp?(qc(t[n],Ui),Jv(Ui,Ui,i,1),t[n]=Wv(Ui)):e===zv?Jv(t[n],t[n],i,1):e===O2&&L2(t[n],t[n],i,1)},r}(),Xv=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){Ao("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,fi(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var o=this._tracks,s=0;s0&&f.addKeyframe(0,ep(v),i),this._trackKeys.push(l)}f.addKeyframe(t,ep(e[l]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,o=0;o1){var l=s.pop();o.addKeyframe(l.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},r}();function fA(){return new Date().getTime()}var g5=function(r){kt(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=fA()-this._pausedTime,i=n-this._time,o=this._head;o;){var s=o.next,l=o.step(n,i);l&&(o.ondestroy(),this.removeClip(o)),o=s}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Yg(n),!e._paused&&e.update())}Yg(n)},t.prototype.start=function(){this._running||(this._time=fA(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=fA(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=fA()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Xv(e,n.loop);return this.addAnimator(i),i},t}(au),$v=300,G2=Yn.domSupported,_n=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=pr(r,function(i){var o=i.replace("mouse","pointer");return e.hasOwnProperty(o)?o:i});return{mouse:r,touch:t,pointer:n}}(),ey={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},U2=!1;function ty(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Er(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function ry(r){r&&(r.zrByTouch=!0)}function ny(r,t){return nc(r.dom,new pw(r,t),!0)}function j2(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var pw=function(){function r(t,e){this.stopPropagation=$o,this.stopImmediatePropagation=$o,this.preventDefault=$o,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Za={mousedown:function(r){r=nc(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=nc(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=nc(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=nc(this.dom,r);var t=r.toElement||r.relatedTarget;j2(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){U2=!0,r=nc(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){U2||(r=nc(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=nc(this.dom,r),ry(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Za.mousemove.call(this,r),Za.mousedown.call(this,r)},touchmove:function(r){r=nc(this.dom,r),ry(r),this.handler.processGesture(r,"change"),Za.mousemove.call(this,r)},touchend:function(r){r=nc(this.dom,r),ry(r),this.handler.processGesture(r,"end"),Za.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<$v&&Za.click.call(this,r)},pointerdown:function(r){Za.mousedown.call(this,r)},pointermove:function(r){ty(r)||Za.mousemove.call(this,r)},pointerup:function(r){Za.mouseup.call(this,r)},pointerout:function(r){ty(r)||Za.mouseout.call(this,r)}};Ne(["click","dblclick","contextmenu"],function(r){Za[r]=function(t){t=nc(this.dom,t),this.trigger(r,t)}});var z0={pointermove:function(r){ty(r)||z0.mousemove.call(this,r)},pointerup:function(r){z0.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function H2(r,t){var e=t.domHandlers;Yn.pointerEventsSupported?Ne(_n.pointer,function(n){K0(t,n,function(i){e[n].call(r,i)})}):(Yn.touchEventsSupported&&Ne(_n.touch,function(n){K0(t,n,function(i){e[n].call(r,i),Er(t)})}),Ne(_n.mouse,function(n){K0(t,n,function(i){i=R0(i),t.touching||e[n].call(r,i)})}))}function p5(r,t){Yn.pointerEventsSupported?Ne(ey.pointer,e):Yn.touchEventsSupported||Ne(ey.mouse,e);function e(n){function i(o){o=R0(o),j2(r,o.target)||(o=ny(r,o),t.domHandlers[n].call(r,o))}K0(t,n,i,{capture:!0})}}function K0(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,v2(r.domTarget,t,e,n)}function rp(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&$3(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var iy=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),v5=function(r){kt(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new iy(e,Za),G2&&(i._globalHandlerScope=new iy(document,z0)),H2(i,i._localHandlerScope),i}return t.prototype.dispose=function(){rp(this._localHandlerScope),G2&&rp(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,G2&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?p5(this,n):rp(n)}},t}(au),vw=1;Yn.hasGlobalWindow&&(vw=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ei=vw,ay=.4,oy="#333",sy="#ccc",yw="#eee",mw=M0,y5=5e-5;function wd(r){return r>y5||r<-5e-5}var Ed=[],np=[],Y2=Lu(),J2=Math.abs,hf=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return wd(this.rotation)||wd(this.x)||wd(this.y)||wd(this.scaleX-1)||wd(this.scaleY-1)||wd(this.skewX)||wd(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(mw(n),this.invTransform=null);return}n=n||Lu(),e?this.getLocalTransform(n):mw(n),t&&(e?ic(n,t,n):ml(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Ed);var n=Ed[0]<0?-1:1,i=Ed[1]<0?-1:1,o=((Ed[0]-n)*e+n)/Ed[0]||0,s=((Ed[1]-i)*e+i)/Ed[1]||0;t[0]*=o,t[1]*=o,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||Lu(),yd(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),o=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(o),e=Math.sqrt(e),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Lu(),ic(np,t.invTransform,e),e=np);var n=this.originX,i=this.originY;(n||i)&&(Y2[4]=n,Y2[5]=i,ic(np,e,Y2),np[4]-=n,np[5]-=i,e=np),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&js(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&js(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&J2(t[0]-1)>1e-10&&J2(t[3]-1)>1e-10?Math.sqrt(J2(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){uy(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,s=t.scaleY,l=t.anchorX,f=t.anchorY,v=t.rotation||0,C=t.x,w=t.y,x=t.skewX?Math.tan(t.skewX):0,Q=t.skewY?Math.tan(-t.skewY):0;if(n||i||l||f){var R=n+l,L=i+f;e[4]=-R*o-x*L*s,e[5]=-L*s-Q*R*o}else e[4]=e[5]=0;return e[0]=o,e[3]=s,e[1]=Q*o,e[2]=x*s,v&&nf(e,e,v),e[4]+=n+C,e[5]+=i+w,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Zl=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function uy(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Ec(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,o=e.height,s=e.width,l=o/2,f=e.x,v=e.y,C="left",w="top";if(n instanceof Array)f+=Do(n[0],e.width),v+=Do(n[1],e.height),C=null,w=null;else switch(n){case"left":f-=i,v+=l,C="right",w="middle";break;case"right":f+=i+s,v+=l,w="middle";break;case"top":f+=s/2,v-=i,C="center",w="bottom";break;case"bottom":f+=s/2,v+=o+i,C="center";break;case"inside":f+=s/2,v+=l,C="center",w="middle";break;case"insideLeft":f+=i,v+=l,w="middle";break;case"insideRight":f+=s-i,v+=l,C="right",w="middle";break;case"insideTop":f+=s/2,v+=i,C="center";break;case"insideBottom":f+=s/2,v+=o-i,C="center",w="bottom";break;case"insideTopLeft":f+=i,v+=i;break;case"insideTopRight":f+=s-i,v+=i,C="right";break;case"insideBottomLeft":f+=i,v+=o-i,w="bottom";break;case"insideBottomRight":f+=s-i,v+=o-i,C="right",w="bottom";break}return r=r||{},r.x=f,r.y=v,r.align=C,r.verticalAlign=w,r}var kd="__zr_normal__",ly=Zl.concat(["ignore"]),W2=xa(Zl,function(r,t){return r[t]=!0,r},{ignore:!1}),Kc={},hy=new gi(0,0,0,0),Qd=function(){function r(t){this.id=zi(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,o=e.innerTransformable,s=void 0,l=void 0,f=!1;o.parent=i?this:null;var v=!1;if(o.copyTransform(e),n.position!=null){var C=hy;n.layoutRect?C.copy(n.layoutRect):C.copy(this.getBoundingRect()),i||C.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Kc,n,C):Ec(Kc,n,C),o.x=Kc.x,o.y=Kc.y,s=Kc.align,l=Kc.verticalAlign;var w=n.origin;if(w&&n.rotation!=null){var x=void 0,Q=void 0;w==="center"?(x=C.width*.5,Q=C.height*.5):(x=Do(w[0],C.width),Q=Do(w[1],C.height)),v=!0,o.originX=-o.x+x+(i?0:C.x),o.originY=-o.y+Q+(i?0:C.y)}}n.rotation!=null&&(o.rotation=n.rotation);var R=n.offset;R&&(o.x+=R[0],o.y+=R[1],v||(o.originX=-R[0],o.originY=-R[1]));var L=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,P=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),M=void 0,k=void 0,G=void 0;L&&this.canBeInsideText()?(M=n.insideFill,k=n.insideStroke,(M==null||M==="auto")&&(M=this.getInsideTextFill()),(k==null||k==="auto")&&(k=this.getInsideTextStroke(M),G=!0)):(M=n.outsideFill,k=n.outsideStroke,(M==null||M==="auto")&&(M=this.getOutsideFill()),(k==null||k==="auto")&&(k=this.getOutsideStroke(M),G=!0)),M=M||"#000",(M!==P.fill||k!==P.stroke||G!==P.autoStroke||s!==P.align||l!==P.verticalAlign)&&(f=!0,P.fill=M,P.stroke=k,P.autoStroke=G,P.align=s,P.verticalAlign=l,e.setDefaultTextStyle(P)),e.__dirty|=zl,f&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?sy:oy},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&qc(e);n||(n=[255,255,255,1]);for(var i=n[3],o=this.__zr.isDarkMode(),s=0;s<3;s++)n[s]=n[s]*i+(o?0:255)*(1-i);return n[3]=1,cf(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},ar(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Ln(t))for(var n=t,i=fi(n),o=0;o0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(kd,!1,t)},r.prototype.useState=function(t,e,n,i){var o=t===kd,s=this.hasState();if(!(!s&&o)){var l=this.currentStates,f=this.stateTransition;if(!(Vn(l,t)>=0&&(e||l.length===1))){var v;if(this.stateProxy&&!o&&(v=this.stateProxy(t)),v||(v=this.states&&this.states[t]),!v&&!o){Ao("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(v);var C=!!(v&&v.hoverLayer||i);C&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,v,this._normalState,e,!n&&!this.__inHover&&f&&f.duration>0,f);var w=this._textContent,x=this._textGuide;return w&&w.useState(t,e,n,C),x&&x.useState(t,e,n,C),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!C&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),v}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],o=this.currentStates,s=t.length,l=s===o.length;if(l){for(var f=0;f0,R);var L=this._textContent,P=this._textGuide;L&&L.useStates(t,e,x),P&&P.useStates(t,e,x),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!x&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),o=Vn(i,t),s=Vn(i,e)>=0;o>=0?s?i.splice(o,1):i[o]=e:n&&!s&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i=0&&o.splice(s,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,o=[],s=0;s0&&e.during&&o[0].during(function(R,L){e.during(L)});for(var x=0;x0||i.force&&!s.length){var pe=void 0,ve=void 0,Ee=void 0;if(l){ve={},x&&(pe={});for(var Y=0;Y=0&&(i.splice(o,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=Vn(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,o=i[n];if(e&&e!==this&&e.parent!==this&&e!==o){i[n]=e,o.parent=null;var s=this.__zr;s&&o.removeSelfFromZr(s),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,o=Vn(i,e);return o<0?this:(i.splice(o,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=i)return s;if(r>=o)return l}else{if(r>=i)return s;if(r<=o)return l}else{if(r===i)return s;if(r===o)return l}return(r-i)/f*v+s}function jr(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return en(r)?Ew(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Ra(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),sp),r=(+r).toFixed(t),e?r:+r}function ki(r){return r.sort(function(t,e){return t-e}),r}function uu(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return AA(r)}function AA(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,o=t.indexOf("."),s=o<0?0:i-1-o;return Math.max(0,s-n)}function Ay(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),o=Math.round(e(Math.abs(t[1]-t[0]))/n),s=Math.min(Math.max(-i+o,0),20);return isFinite(s)?s:20}function Zc(r,t){var e=xa(r,function(Q,R){return Q+(isNaN(R)?0:R)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=pr(r,function(Q){return(isNaN(Q)?0:Q)/e*n*100}),o=n*100,s=pr(i,function(Q){return Math.floor(Q)}),l=xa(s,function(Q,R){return Q+R},0),f=pr(i,function(Q,R){return Q-s[R]});lv&&(v=f[w],C=w);++s[C],f[C]=0,++l}return pr(s,function(Q){return Q/n})}function dy(r,t){var e=Math.max(uu(r),uu(t)),n=r+t;return e>sp?n:Ra(n,e)}var Af=9007199254740991;function gy(r){var t=Math.PI*2;return(r%t+t)%t}function Jo(r){return r>-1e-4&&r=10&&t++,t}function $0(r,t){var e=Xc(r),n=Math.pow(10,e),i=r/n,o;return i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10,r=o*n,e>=-20?+r.toFixed(e<0?-e:0):r}function cp(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],o=e-n;return o?i+o*(r[n]-i):i}function X2(r){r.sort(function(f,v){return l(f,v,0)?-1:1});for(var t=-1/0,e=1,n=0;n=0||o&&Vn(o,f)<0)){var v=n.getShallow(f,t);v!=null&&(s[r[l][0]]=v)}}return s}}var Rw=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],b5=pA(Rw),Po=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return b5(this,t,e)},r}(),pf=new zg(50);function Ro(r){if(typeof r=="string"){var t=pf.get(r);return t&&t.image}else return r}function Go(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var o=pf.get(r),s={hostEl:e,cb:n,cbPayload:i};return o?(t=o.image,!Ey(t)&&o.pending.push(s)):(t=oo.loadImage(r,_h,_h),t.__zrImageSrc=r,pf.put(r,t.__cachedImgObj={image:t,pending:[s]})),t}else return r;else return t}function _h(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;f++)l-=s;var v=zc(e,t);return v>l&&(e="",v=0),l=r-v,i.ellipsis=e,i.ellipsisWidth=v,i.contentWidth=l,i.containerWidth=r,i}function aI(r,t,e){var n=e.containerWidth,i=e.font,o=e.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var s=zc(t,i);if(s<=n){r.textLine=t,r.isTruncated=!1;return}for(var l=0;;l++){if(s<=o||l>=e.maxIterations){t+=e.ellipsis;break}var f=l===0?Bl(t,o,e.ascCharWidth,e.cnCharWidth):s>0?Math.floor(t.length*o/s):0;t=t.substr(0,f),s=zc(t,i)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function Bl(r,t,e,n){for(var i=0,o=0,s=r.length;oR&&v){var L=Math.floor(R/l);C=C||x.length>L,x=x.slice(0,L)}if(r&&o&&w!=null)for(var P=iI(w,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),M={},k=0;kl&&Zi(e,r.substring(l,v),t,s),Zi(e,f[2],t,s,f[1]),l=Md.lastIndex}li){var Le=e.lines.length;ie>0?(G.tokens=G.tokens.slice(0,ie),M(G,re,Y),e.lines=e.lines.slice(0,k+1)):e.lines=e.lines.slice(0,k),e.isTruncated=e.isTruncated||e.lines.length0&&R+n.accumWidth>n.width&&(C=t.split(` `),v=!0),n.accumWidth=R}else{var L=ts(t,f,n.width,n.breakAll,n.accumWidth);n.accumWidth=L.accumWidth+Q,w=L.linesWidths,C=L.lines}}else C=t.split(` `);for(var P=0;P=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Fw=xa(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function a1(r){return sI(r)?!!Fw[r]:!0}function ts(r,t,e,n,i){for(var o=[],s=[],l="",f="",v=0,C=0,w=0;we:i+C+Q>e){C?(l||f)&&(R?(l||(l=f,f="",v=0,C=v),o.push(l),s.push(C-v),f+=x,v+=Q,l="",C=v):(f&&(l+=f,f="",v=0),o.push(l),s.push(C),l=x,C=Q)):R?(o.push(f),s.push(v),f=x,v=Q):(o.push(x),s.push(Q));continue}C+=Q,R?(f+=x,v+=Q):(f&&(l+=f,f="",v=0),l+=x)}return!o.length&&!l&&(l=r,f="",v=0),f&&(l+=f),l&&(o.push(l),s.push(C)),o.length===1&&(C+=i),{accumWidth:C,lines:o,linesWidths:s}}var uI="__zr_style_"+Math.round(Math.random()*10),vA={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Js={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};vA[uI]=!0;var Tw=["z","z2","invisible"],Lw=["invisible"],ii=function(r){kt(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=fi(e),i=0;i1e-4){l[0]=r-e,l[1]=t-n,f[0]=r+e,f[1]=t+n;return}if(o1[0]=Xa(i)*e+r,o1[1]=lI(i)*n+t,dp[0]=Xa(o)*e+r,dp[1]=lI(o)*n+t,v(l,o1,dp),C(f,o1,dp),i=i%yA,i<0&&(i=i+yA),o=o%yA,o<0&&(o=o+yA),i>o&&!s?o+=yA:ii&&(s1[0]=Xa(Q)*e+r,s1[1]=lI(Q)*n+t,v(l,s1,l),C(f,s1,f))}var Fa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Fd=[],Td=[],Rh=[],mA=[],Xl=[],kl=[],xs=Math.min,Ld=Math.max,on=Math.cos,vf=Math.sin,$l=Math.abs,Nd=Math.PI,IA=Nd*2,hI=typeof Float32Array<"u",u1=[];function _y(r){var t=Math.round(r/Nd*1e8)/1e8;return t%2*Nd}function fI(r,t){var e=_y(r[0]);e<0&&(e+=IA);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=IA?i=e+IA:t&&e-i>=IA?i=e-IA:!t&&e>i?i=e+(IA-_y(e-i)):t&&e0&&(this._ux=$l(n/ei/t)||0,this._uy=$l(n/ei/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Fa.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=$l(t-this._xi),i=$l(e-this._yi),o=n>this._ux||i>this._uy;if(this.addData(Fa.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var s=n*n+i*i;s>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=s)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,o,s){return this._drawPendingPt(),this.addData(Fa.C,t,e,n,i,o,s),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,o,s),this._xi=o,this._yi=s,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Fa.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,o,s){this._drawPendingPt(),u1[0]=i,u1[1]=o,fI(u1,s),i=u1[0],o=u1[1];var l=o-i;return this.addData(Fa.A,t,e,n,n,i,l,0,s?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,s),this._xi=on(o)*n+t,this._yi=vf(o)*n+e,this},r.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Fa.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Fa.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&hI&&(this.data=new Float32Array(e));for(var n=0;nC.length&&(this._expandData(),C=this.data);for(var w=0;w0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Rh[0]=Rh[1]=Xl[0]=Xl[1]=Number.MAX_VALUE,mA[0]=mA[1]=kl[0]=kl[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,o=0,s;for(s=0;sn||$l(G)>i||x===e-1)&&(L=Math.sqrt(k*k+G*G),o=P,s=M);break}case Fa.C:{var Y=t[x++],re=t[x++],P=t[x++],M=t[x++],ie=t[x++],le=t[x++];L=ow(o,s,Y,re,P,M,ie,le,10),o=ie,s=le;break}case Fa.Q:{var Y=t[x++],re=t[x++],P=t[x++],M=t[x++];L=s5(o,s,Y,re,P,M,10),o=P,s=M;break}case Fa.A:var pe=t[x++],ve=t[x++],Ee=t[x++],Se=t[x++],ke=t[x++],Le=t[x++],be=Le+ke;x+=1,R&&(l=on(ke)*Ee+pe,f=vf(ke)*Se+ve),L=Ld(Ee,Se)*xs(IA,Math.abs(Le)),o=on(be)*Ee+pe,s=vf(be)*Se+ve;break;case Fa.R:{l=o=t[x++],f=s=t[x++];var ze=t[x++],ut=t[x++];L=ze*2+ut*2;break}case Fa.Z:{var k=l-o,G=f-s;L=Math.sqrt(k*k+G*G),o=l,s=f;break}}L>=0&&(v[w++]=L,C+=L)}return this._pathLen=C,C},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,o=this._uy,s=this._len,l,f,v,C,w,x,Q=e<1,R,L,P=0,M=0,k,G=0,Y,re;if(!(Q&&(this._pathSegLen||this._calculateLength(),R=this._pathSegLen,L=this._pathLen,k=e*L,!k)))e:for(var ie=0;ie0&&(t.lineTo(Y,re),G=0),le){case Fa.M:l=v=n[ie++],f=C=n[ie++],t.moveTo(v,C);break;case Fa.L:{w=n[ie++],x=n[ie++];var ve=$l(w-v),Ee=$l(x-C);if(ve>i||Ee>o){if(Q){var Se=R[M++];if(P+Se>k){var ke=(k-P)/Se;t.lineTo(v*(1-ke)+w*ke,C*(1-ke)+x*ke);break e}P+=Se}t.lineTo(w,x),v=w,C=x,G=0}else{var Le=ve*ve+Ee*Ee;Le>G&&(Y=w,re=x,G=Le)}break}case Fa.C:{var be=n[ie++],ze=n[ie++],ut=n[ie++],ft=n[ie++],Qt=n[ie++],vt=n[ie++];if(Q){var Se=R[M++];if(P+Se>k){var ke=(k-P)/Se;sf(v,be,ut,Qt,ke,Fd),sf(C,ze,ft,vt,ke,Td),t.bezierCurveTo(Fd[1],Td[1],Fd[2],Td[2],Fd[3],Td[3]);break e}P+=Se}t.bezierCurveTo(be,ze,ut,ft,Qt,vt),v=Qt,C=vt;break}case Fa.Q:{var be=n[ie++],ze=n[ie++],ut=n[ie++],ft=n[ie++];if(Q){var Se=R[M++];if(P+Se>k){var ke=(k-P)/Se;j0(v,be,ut,ke,Fd),j0(C,ze,ft,ke,Td),t.quadraticCurveTo(Fd[1],Td[1],Fd[2],Td[2]);break e}P+=Se}t.quadraticCurveTo(be,ze,ut,ft),v=ut,C=ft;break}case Fa.A:var Gt=n[ie++],Ct=n[ie++],St=n[ie++],dr=n[ie++],ur=n[ie++],ir=n[ie++],Fn=n[ie++],Ei=!n[ie++],Vr=St>dr?St:dr,qr=$l(St-dr)>.001,Tn=ur+ir,zr=!1;if(Q){var Se=R[M++];P+Se>k&&(Tn=ur+ir*(k-P)/Se,zr=!0),P+=Se}if(qr&&t.ellipse?t.ellipse(Gt,Ct,St,dr,Fn,ur,Tn,Ei):t.arc(Gt,Ct,Vr,ur,Tn,Ei),zr)break e;pe&&(l=on(ur)*St+Gt,f=vf(ur)*dr+Ct),v=on(Tn)*St+Gt,C=vf(Tn)*dr+Ct;break;case Fa.R:l=v=n[ie],f=C=n[ie+1],w=n[ie++],x=n[ie++];var Qn=n[ie++],Yi=n[ie++];if(Q){var Se=R[M++];if(P+Se>k){var Pe=k-P;t.moveTo(w,x),t.lineTo(w+xs(Pe,Qn),x),Pe-=Qn,Pe>0&&t.lineTo(w+Qn,x+xs(Pe,Yi)),Pe-=Yi,Pe>0&&t.lineTo(w+Ld(Qn-Pe,0),x+Yi),Pe-=Qn,Pe>0&&t.lineTo(w,x+Ld(Yi-Pe,0));break e}P+=Se}t.rect(w,x,Qn,Yi);break;case Fa.Z:if(Q){var Se=R[M++];if(P+Se>k){var ke=(k-P)/Se;t.lineTo(v*(1-ke)+l*ke,C*(1-ke)+f*ke);break e}P+=Se}t.closePath(),v=l,C=f}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=Fa,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function bA(r,t,e,n,i,o,s){if(i===0)return!1;var l=i,f=0,v=r;if(s>t+l&&s>n+l||sr+l&&o>e+l||ot+w&&C>n+w&&C>o+w&&C>l+w||Cr+w&&v>e+w&&v>i+w&&v>s+w||vt+v&&f>n+v&&f>o+v||fr+v&&l>e+v&&l>i+v||le||C+vi&&(i+=gp);var x=Math.atan2(f,l);return x<0&&(x+=gp),x>=n&&x<=i||x+gp>=n&&x+gp<=i}function hc(r,t,e,n,i,o){if(o>t&&o>n||oi?l:0}var th=eh.CMD,yf=Math.PI*2,Ow=1e-4;function k5(r,t){return Math.abs(r-t)t&&v>n&&v>o&&v>l||v1&&Q5(),Q=ks(t,n,o,l,Ql[0]),x>1&&(R=ks(t,n,o,l,Ql[1]))),x===2?Pt&&l>n&&l>o||l=0&&v<=1){for(var C=0,w=su(t,n,o,v),x=0;xe||l<-e)return 0;var f=Math.sqrt(e*e-l*l);fc[0]=-f,fc[1]=f;var v=Math.abs(n-i);if(v<1e-4)return 0;if(v>=yf-1e-4){n=0,i=yf;var C=o?1:-1;return s>=fc[0]+r&&s<=fc[1]+r?C:0}if(n>i){var w=n;n=i,i=w}n<0&&(n+=yf,i+=yf);for(var x=0,Q=0;Q<2;Q++){var R=fc[Q];if(R+r>s){var L=Math.atan2(l,R),C=o?1:-1;L<0&&(L=yf+L),(L>=n&&L<=i||L+yf>=n&&L+yf<=i)&&(L>Math.PI/2&&L1&&(e||(l+=hc(f,v,C,w,n,i))),P&&(f=o[R],v=o[R+1],C=f,w=v),L){case th.M:C=o[R++],w=o[R++],f=C,v=w;break;case th.L:if(e){if(bA(f,v,o[R],o[R+1],t,n,i))return!0}else l+=hc(f,v,o[R],o[R+1],n,i)||0;f=o[R++],v=o[R++];break;case th.C:if(e){if(E5(f,v,o[R++],o[R++],o[R++],o[R++],o[R],o[R+1],t,n,i))return!0}else l+=Pw(f,v,o[R++],o[R++],o[R++],o[R++],o[R],o[R+1],n,i)||0;f=o[R++],v=o[R++];break;case th.Q:if(e){if(Nw(f,v,o[R++],o[R++],o[R],o[R+1],t,n,i))return!0}else l+=dI(f,v,o[R++],o[R++],o[R],o[R+1],n,i)||0;f=o[R++],v=o[R++];break;case th.A:var M=o[R++],k=o[R++],G=o[R++],Y=o[R++],re=o[R++],ie=o[R++];R+=1;var le=!!(1-o[R++]);x=Math.cos(re)*G+M,Q=Math.sin(re)*Y+k,P?(C=x,w=Q):l+=hc(f,v,x,Q,n,i);var pe=(n-M)*Y/G+M;if(e){if(B5(M,k,Y,re,re+ie,le,t,pe,i))return!0}else l+=Gw(M,k,Y,re,re+ie,le,pe,i);f=Math.cos(re+ie)*G+M,v=Math.sin(re+ie)*Y+k;break;case th.R:C=f=o[R++],w=v=o[R++];var ve=o[R++],Ee=o[R++];if(x=C+ve,Q=w+Ee,e){if(bA(C,w,x,w,t,n,i)||bA(x,w,x,Q,t,n,i)||bA(x,Q,C,Q,t,n,i)||bA(C,Q,C,w,t,n,i))return!0}else l+=hc(x,w,x,Q,n,i),l+=hc(C,Q,C,w,n,i);break;case th.Z:if(e){if(bA(f,v,C,w,t,n,i))return!0}else l+=hc(f,v,C,w,n,i);f=C,v=w;break}}return!e&&!k5(v,w)&&(l+=hc(f,v,C,w,n,i)||0),l!==0}function Uw(r,t,e){return Dy(r,0,!1,t,e)}function jw(r,t,e,n){return Dy(r,t,!0,e,n)}var pp=pn({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},vA),c1={style:pn({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Js.style)},Ry=Zl.concat(["invisible","culling","z","z2","zlevel","parent"]),Si=function(r){kt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(f){e.buildPath(f,e.shape)}),i.silent=!0;var o=i.style;for(var s in n)o[s]!==n[s]&&(o[s]=n[s]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var l=0;l.5?oy:n>.2?yw:sy}else if(e)return sy}return oy},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(en(n)){var i=this.__zr,o=!!(i&&i.isDarkMode()),s=lf(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var s=this.path;(o||this.__dirty&Hg)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),e=s.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){l.copy(e);var f=n.strokeNoScale?this.getLineScale():1,v=n.lineWidth;if(!this.hasFill()){var C=this.strokeContainThreshold;v=Math.max(v,C??4)}f>1e-10&&(l.width+=v/f,l.height+=v/f,l.x-=v/f/2,l.y-=v/f/2)}return l}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),o=this.getBoundingRect(),s=this.style;if(e=i[0],n=i[1],o.contain(e,n)){var l=this.path;if(this.hasStroke()){var f=s.lineWidth,v=s.strokeNoScale?this.getLineScale():1;if(v>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),jw(l,f/v,e,n)))return!0}if(this.hasFill())return Uw(l,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Hg,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){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:ar(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Hg)},t.prototype.createStyle=function(e){return Lg(pp,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=ar({},this.shape))},t.prototype._applyStateObj=function(e,n,i,o,s,l){r.prototype._applyStateObj.call(this,e,n,i,o,s,l);var f=!(n&&o),v;if(n&&n.shape?s?o?v=n.shape:(v=ar({},i.shape),ar(v,n.shape)):(v=ar({},o?this.shape:i.shape),ar(v,n.shape)):f&&(v=i.shape),v)if(s){this.shape=ar({},this.shape);for(var C={},w=fi(v),x=0;x0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Lg(gI,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=V0(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var o=e.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(ii);Od.prototype.type="tspan";var Hw=pn({x:0,y:0},vA),Yw={style:pn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Js.style)};function Jw(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Ws=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Lg(Hw,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var o=Jw(n.image)?n.image:this.__image;if(!o)return 0;var s=e==="width"?"height":"width",l=n[s];return l==null?o[e]:o[e]/o[s]*l},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Yw},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new gi(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ii);Ws.prototype.type="image";function Ww(r,t){var e=t.x,n=t.y,i=t.width,o=t.height,s=t.r,l,f,v,C;i<0&&(e=e+i,i=-i),o<0&&(n=n+o,o=-o),typeof s=="number"?l=f=v=C=s:s instanceof Array?s.length===1?l=f=v=C=s[0]:s.length===2?(l=v=s[0],f=C=s[1]):s.length===3?(l=s[0],f=C=s[1],v=s[2]):(l=s[0],f=s[1],v=s[2],C=s[3]):l=f=v=C=0;var w;l+f>i&&(w=l+f,l*=i/w,f*=i/w),v+C>i&&(w=v+C,v*=i/w,C*=i/w),f+v>o&&(w=f+v,f*=o/w,v*=o/w),l+C>o&&(w=l+C,l*=o/w,C*=o/w),r.moveTo(e+l,n),r.lineTo(e+i-f,n),f!==0&&r.arc(e+i-f,n+f,f,-Math.PI/2,0),r.lineTo(e+i,n+o-v),v!==0&&r.arc(e+i-v,n+o-v,v,0,Math.PI/2),r.lineTo(e+C,n+o),C!==0&&r.arc(e+C,n+o-C,C,Math.PI/2,Math.PI),r.lineTo(e,n+l),l!==0&&r.arc(e+l,n+l,l,Math.PI,Math.PI*1.5)}var Pd=Math.round;function pI(r,t,e){if(t){var n=t.x1,i=t.x2,o=t.y1,s=t.y2;r.x1=n,r.x2=i,r.y1=o,r.y2=s;var l=e&&e.lineWidth;return l&&(Pd(n*2)===Pd(i*2)&&(r.x1=r.x2=mf(n,l,!0)),Pd(o*2)===Pd(s*2)&&(r.y1=r.y2=mf(o,l,!0))),r}}function l1(r,t,e){if(t){var n=t.x,i=t.y,o=t.width,s=t.height;r.x=n,r.y=i,r.width=o,r.height=s;var l=e&&e.lineWidth;return l&&(r.x=mf(n,l,!0),r.y=mf(i,l,!0),r.width=Math.max(mf(n+o,l,!1)-r.x,o===0?0:1),r.height=Math.max(mf(i+s,l,!1)-r.y,s===0?0:1)),r}}function mf(r,t,e){if(!t)return r;var n=Pd(r*2);return(n+Pd(t))%2===0?n/2:(n+(e?1:-1))/2}var vp=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),If={},ta=function(r){kt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new vp},t.prototype.buildPath=function(e,n){var i,o,s,l;if(this.subPixelOptimize){var f=l1(If,n,this.style);i=f.x,o=f.y,s=f.width,l=f.height,f.r=n.r,n=f}else i=n.x,o=n.y,s=n.width,l=n.height;n.r?Ww(e,n):e.rect(i,o,s,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Si);ta.prototype.type="rect";var xc={fill:"#000"},CA=2,x5={style:pn({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},Js.style)},Mn=function(r){kt(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=xc,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,ke=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),Le=s.calculatedLineHeight,be=0;be=0&&(be=ie[Le],be.align==="right");)this._placeToken(be,e,pe,M,ke,"right",G),ve-=be.width,ke-=be.width,Le--;for(Se+=(o-(Se-P)-(k-ke)-ve)/2;Ee<=Le;)be=ie[Ee],this._placeToken(be,e,pe,M,Se+be.width/2,"center",G),Se+=be.width,Ee++;M+=pe}},t.prototype._placeToken=function(e,n,i,o,s,l,f){var v=n.rich[e.styleName]||{};v.text=e.text;var C=e.verticalAlign,w=o+i/2;C==="top"?w=o+e.height/2:C==="bottom"&&(w=o+i-e.height/2);var x=!e.isLineHolder&&mp(v);x&&this._renderBackground(v,n,l==="right"?s-e.width:l==="center"?s-e.width/2:s,w-e.height/2,e.width,e.height);var Q=!!v.backgroundColor,R=e.textPadding;R&&(s=Ur(s,l,R),w-=e.height/2-R[0]-e.innerHeight/2);var L=this._getOrCreateChild(Od),P=L.createStyle();L.useStyle(P);var M=this._defaultStyle,k=!1,G=0,Y=Ac("fill"in v?v.fill:"fill"in n?n.fill:(k=!0,M.fill)),re=Mh("stroke"in v?v.stroke:"stroke"in n?n.stroke:!Q&&!f&&(!M.autoStroke||k)?(G=CA,M.stroke):null),ie=v.textShadowBlur>0||n.textShadowBlur>0;P.text=e.text,P.x=s,P.y=w,ie&&(P.shadowBlur=v.textShadowBlur||n.textShadowBlur||0,P.shadowColor=v.textShadowColor||n.textShadowColor||"transparent",P.shadowOffsetX=v.textShadowOffsetX||n.textShadowOffsetX||0,P.shadowOffsetY=v.textShadowOffsetY||n.textShadowOffsetY||0),P.textAlign=l,P.textBaseline="middle",P.font=e.font||hi,P.opacity=ec(v.opacity,n.opacity,1),vI(P,v),re&&(P.lineWidth=ec(v.lineWidth,n.lineWidth,G),P.lineDash=$n(v.lineDash,n.lineDash),P.lineDashOffset=n.lineDashOffset||0,P.stroke=re),Y&&(P.fill=Y);var le=e.contentWidth,pe=e.contentHeight;L.setBoundingRect(new gi(ff(P.x,le,P.textAlign),so(P.y,pe,P.textBaseline),le,pe))},t.prototype._renderBackground=function(e,n,i,o,s,l){var f=e.backgroundColor,v=e.borderWidth,C=e.borderColor,w=f&&f.image,x=f&&!w,Q=e.borderRadius,R=this,L,P;if(x||e.lineHeight||v&&C){L=this._getOrCreateChild(ta),L.useStyle(L.createStyle()),L.style.fill=null;var M=L.shape;M.x=i,M.y=o,M.width=s,M.height=l,M.r=Q,L.dirtyShape()}if(x){var k=L.style;k.fill=f||null,k.fillOpacity=$n(e.fillOpacity,1)}else if(w){P=this._getOrCreateChild(Ws),P.onload=function(){R.dirtyStyle()};var G=P.style;G.image=f.image,G.x=i,G.y=o,G.width=s,G.height=l}if(v&&C){var k=L.style;k.lineWidth=v,k.stroke=C,k.strokeOpacity=$n(e.strokeOpacity,1),k.lineDash=e.borderDash,k.lineDashOffset=e.borderDashOffset||0,L.strokeContainThreshold=0,L.hasFill()&&L.hasStroke()&&(k.strokeFirst=!0,k.lineWidth*=2)}var Y=(L||P).style;Y.shadowBlur=e.shadowBlur||0,Y.shadowColor=e.shadowColor||"transparent",Y.shadowOffsetX=e.shadowOffsetX||0,Y.shadowOffsetY=e.shadowOffsetY||0,Y.opacity=ec(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return lu(e)&&(n=[e.fontStyle,e.fontWeight,zw(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Wl(n)||e.textFont||e.font},t}(ii),My={left:!0,right:1,center:1},S5={top:1,bottom:1,middle:1},qw=["fontStyle","fontWeight","fontSize","fontFamily"];function zw(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?ca+"px":r+"px"}function vI(r,t){for(var e=0;e=0,o=!1;if(r instanceof Si){var s=yI(r),l=i&&s.selectFill||s.normalFill,f=i&&s.selectStroke||s.normalStroke;if(Gd(l)||Gd(f)){n=n||{};var v=n.style||{};v.fill==="inherit"?(o=!0,n=ar({},n),v=ar({},v),v.fill=l):!Gd(v.fill)&&Gd(l)?(o=!0,n=ar({},n),v=ar({},v),v.fill=_2(l)):!Gd(v.stroke)&&Gd(f)&&(o||(n=ar({},n),v=ar({},v)),v.stroke=_2(f)),n.style=v}}if(n&&n.z2==null){o||(n=ar({},n));var C=r.z2EmphasisLift;n.z2=r.z2+(C??Ip)}return n}function mI(r,t,e){if(e&&e.z2==null){e=ar({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??wA)}return e}function II(r,t,e){var n=Vn(r.currentStates,t)>=0,i=r.style.opacity,o=n?null:Yd(r,["opacity"],t,{opacity:1});e=e||{};var s=e.style||{};return s.opacity==null&&(e=ar({},e),s=ar({opacity:n?i:o.opacity*.1},s),e.style=s),e}function A1(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return _5(this,r,t,e);if(r==="blur")return II(this,r,e);if(r==="select")return mI(this,r,e)}return e}function xl(r){r.stateProxy=A1;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=A1),e&&(e.stateProxy=A1)}function bI(r,t){!Xw(r,t)&&!r.__highByOuter&&Fh(r,Kw)}function kA(r,t){!Xw(r,t)&&!r.__highByOuter&&Fh(r,Vw)}function Dc(r,t){r.__highByOuter|=1<<(t||0),Fh(r,Kw)}function ko(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Fh(r,Vw)}function Jd(r){Fh(r,_c)}function Wd(r){Fh(r,BA)}function CI(r){Fh(r,jd)}function Ks(r){Fh(r,Hd)}function Xw(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Fy(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,o){var s=rs(o),l=i==="series",f=l?r.getViewOfSeriesModel(o):r.getViewOfComponentModel(o);!l&&n.push(f),s.isBlured&&(f.group.traverse(function(v){BA(v)}),l&&e.push(o)),s.isBlured=!1}),Ne(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function d1(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function o(v,C){for(var w=0;w0){var l={dataIndex:s,seriesIndex:e.seriesIndex};o!=null&&(l.dataType=o),t.push(l)}})}),t}function QA(r,t,e){SA(r,!0),Fh(r,xl),xA(r,t,e)}function ma(r){SA(r,!1)}function uo(r,t,e,n){n?ma(r):QA(r,t,e)}function xA(r,t,e){var n=Un(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var qd=["emphasis","blur","select"],co={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function hu(r,t,e,n){e=e||"itemStyle";for(var i=0;i1&&(s*=Ep(R),l*=Ep(R));var L=(i===o?-1:1)*Ep((s*s*(l*l)-s*s*(Q*Q)-l*l*(x*x))/(s*s*(Q*Q)+l*l*(x*x)))||0,P=L*s*Q/l,M=L*-l*x/s,k=(r+e)/2+Oy(w)*P-Kd(w)*M,G=(t+n)/2+Kd(w)*P+Oy(w)*M,Y=Zd([1,0],[(x-P)/s,(Q-M)/l]),re=[(x-P)/s,(Q-M)/l],ie=[(-1*x-P)/s,(-1*Q-M)/l],le=Zd(re,ie);if(Py(re,ie)<=-1&&(le=Vd),Py(re,ie)>=1&&(le=0),le<0){var pe=Math.round(le/Vd*1e6)/1e6;le=Vd*2+pe%2*Vd}C.addData(v,k,G,s,l,Y,le,w,o)}var rE=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,nE=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function SI(r){var t=new eh;if(!r)return t;var e=0,n=0,i=e,o=n,s,l=eh.CMD,f=r.match(rE);if(!f)return t;for(var v=0;vbe*be+ze*ze&&(pe=Ee,ve=Se),{cx:pe,cy:ve,x0:-C,y0:-w,x1:pe*(i/re-1),y1:ve*(i/re-1)}}function oE(r){var t;if(yr(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function T5(r,t){var e,n=wf(t.r,0),i=wf(t.r0||0,0),o=n>0,s=i>0;if(!(!o&&!s)){if(o||(n=i,i=0),i>n){var l=n;n=i,i=l}var f=t.startAngle,v=t.endAngle;if(!(isNaN(f)||isNaN(v))){var C=t.cx,w=t.cy,x=!!t.clockwise,Q=Uy(v-f),R=Q>Rc&&Q%Rc;if(R>Sl&&(Q=R),!(n>Sl))r.moveTo(C,w);else if(Q>Rc-Sl)r.moveTo(C+n*$d(f),w+n*Cf(f)),r.arc(C,w,n,f,v,!x),i>Sl&&(r.moveTo(C+i*$d(v),w+i*Cf(v)),r.arc(C,w,i,v,f,x));else{var L=void 0,P=void 0,M=void 0,k=void 0,G=void 0,Y=void 0,re=void 0,ie=void 0,le=void 0,pe=void 0,ve=void 0,Ee=void 0,Se=void 0,ke=void 0,Le=void 0,be=void 0,ze=n*$d(f),ut=n*Cf(f),ft=i*$d(v),Qt=i*Cf(v),vt=Q>Sl;if(vt){var Gt=t.cornerRadius;Gt&&(e=oE(Gt),L=e[0],P=e[1],M=e[2],k=e[3]);var Ct=Uy(n-i)/2;if(G=ju(Ct,M),Y=ju(Ct,k),re=ju(Ct,L),ie=ju(Ct,P),ve=le=wf(G,Y),Ee=pe=wf(re,ie),(le>Sl||pe>Sl)&&(Se=n*$d(v),ke=n*Cf(v),Le=i*$d(f),be=i*Cf(f),QSl){var qr=ju(M,ve),Tn=ju(k,ve),zr=eg(Le,be,ze,ut,n,qr,x),Qn=eg(Se,ke,ft,Qt,n,Tn,x);r.moveTo(C+zr.cx+zr.x0,w+zr.cy+zr.y0),ve0&&r.arc(C+zr.cx,w+zr.cy,qr,Uu(zr.y0,zr.x0),Uu(zr.y1,zr.x1),!x),r.arc(C,w,n,Uu(zr.cy+zr.y1,zr.cx+zr.x1),Uu(Qn.cy+Qn.y1,Qn.cx+Qn.x1),!x),Tn>0&&r.arc(C+Qn.cx,w+Qn.cy,Tn,Uu(Qn.y1,Qn.x1),Uu(Qn.y0,Qn.x0),!x))}else r.moveTo(C+ze,w+ut),r.arc(C,w,n,f,v,!x);if(!(i>Sl)||!vt)r.lineTo(C+ft,w+Qt);else if(Ee>Sl){var qr=ju(L,Ee),Tn=ju(P,Ee),zr=eg(ft,Qt,Se,ke,i,-Tn,x),Qn=eg(ze,ut,Le,be,i,-qr,x);r.lineTo(C+zr.cx+zr.x0,w+zr.cy+zr.y0),Ee0&&r.arc(C+zr.cx,w+zr.cy,Tn,Uu(zr.y0,zr.x0),Uu(zr.y1,zr.x1),!x),r.arc(C,w,i,Uu(zr.cy+zr.y1,zr.cx+zr.x1),Uu(Qn.cy+Qn.y1,Qn.cx+Qn.x1),x),qr>0&&r.arc(C+Qn.cx,w+Qn.cy,qr,Uu(Qn.y1,Qn.x1),Uu(Qn.y0,Qn.x0),!x))}else r.lineTo(C+ft,w+Qt),r.arc(C,w,i,v,f,x)}r.closePath()}}}var sE=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Hu=function(r){kt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new sE},t.prototype.buildPath=function(e,n){T5(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Si);Hu.prototype.type="sector";var Th=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),nh=function(r){kt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Th},t.prototype.buildPath=function(e,n){var i=n.cx,o=n.cy,s=Math.PI*2;e.moveTo(i+n.r,o),e.arc(i,o,n.r,0,s,!1),e.moveTo(i+n.r0,o),e.arc(i,o,n.r0,0,s,!0)},t}(Si);nh.prototype.type="ring";function L5(r,t,e,n){var i=[],o=[],s=[],l=[],f,v,C,w;if(n){C=[1/0,1/0],w=[-1/0,-1/0];for(var x=0,Q=r.length;x=2){if(n){var o=L5(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var s=i.length,l=0;l<(e?s:s-1);l++){var f=o[l*2],v=o[l*2+1],C=i[(l+1)%s];r.bezierCurveTo(f[0],f[1],v[0],v[1],C[0],C[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var l=1,w=i.length;lrg[1]){if(l=!1,o)return l;var C=Math.abs(rg[0]-DA[1]),w=Math.abs(DA[0]-rg[1]);Math.min(C,w)>i.len()&&(C0){var w=C.duration,x=C.delay,Q=C.easing,R={duration:w,delay:x||0,easing:Q,done:o,force:!!o||!!s,setToFinal:!v,scope:r,during:s};l?t.animateFrom(e,R):t.animateTo(e,R)}else t.stopAnimation(),!l&&t.attr(e),s&&s(1),o&&o()}function ga(r,t,e,n,i,o){NI("update",r,t,e,n,i,o)}function Co(r,t,e,n,i,o){NI("enter",r,t,e,n,i,o)}function Lh(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function UI(r){return!r.isGroup}function yE(r){return r.shape!=null}function w1(r,t,e){if(!r||!t)return;function n(s){var l={};return s.traverse(function(f){UI(f)&&f.anid&&(l[f.anid]=f)}),l}function i(s){var l={x:s.x,y:s.y,rotation:s.rotation};return yE(s)&&(l.shape=ar({},s.shape)),l}var o=n(r);t.traverse(function(s){if(UI(s)&&s.anid){var l=o[s.anid];if(l){var f=i(s);s.attr(i(l)),ga(s,f,e,Un(s).dataIndex)}}})}function mE(r,t){return pr(r,function(e){var n=e[0];n=Oh(n,t.x),n=I1(n,t.x+t.width);var i=e[1];return i=Oh(i,t.y),i=I1(i,t.y+t.height),[n,i]})}function jI(r,t){var e=Oh(r.x,t.x),n=I1(r.x+r.width,t.x+t.width),i=Oh(r.y,t.y),o=I1(r.y+r.height,t.y+t.height);if(n>=e&&o>=i)return{x:e,y:i,width:n-e,height:o-i}}function RA(r,t,e){var n=ar({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),pn(i,e),new Ws(n)):Yy(r.replace("path://",""),n,e,"center")}function E1(r,t,e,n,i){for(var o=0,s=i[i.length-1];o1)return!1;var P=Jy(Q,R,C,w)/x;return!(P<0||P>1)}function Jy(r,t,e,n){return r*n-e*t}function MA(r){return r<=1e-6&&r>=-1e-6}function Ml(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=en(t)?{formatter:t}:t,o=e.mainType,s=e.componentIndex,l={componentType:o,name:n,$vars:["name"]};l[o+"Index"]=s;var f=r.formatterParamsExtra;f&&Ne(fi(f),function(C){ln(l,C)||(l[C]=f[C],l.$vars.push(C))});var v=Un(r.el);v.componentMainType=o,v.componentIndex=s,v.tooltipConfig={name:n,option:pn({content:n,encodeHTMLContent:!0,formatterParams:l},i)}}function Bu(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Fl(r,t){if(r)if(yr(r))for(var e=0;e=0&&l.push(f)}),l}}function TA(r,t){return Kn(Kn({},r,!0),t,!0)}const xE={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",custom:"Custom chart",chart:"Chart"}},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:". "}}}},YI={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:"旭日图",custom:"自定义图表",chart:"图表"}},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 Vy="ZH",JI="EN",_p=JI,Dp={},LA={},WI=Yn.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||_p).toUpperCase();return r.indexOf(Vy)>-1?Vy:_p}():_p;function qI(r,t){r=r.toUpperCase(),LA[r]=new Ia(t),Dp[r]=t}function SE(r){if(en(r)){var t=Dp[r.toUpperCase()]||{};return r===Vy||r===JI?Bn(t):Kn(Bn(t),Bn(Dp[_p]),!1)}else return Kn(Bn(r),Bn(Dp[_p]),!1)}function zI(r){return LA[r]}function z5(){return LA[_p]}qI(JI,xE),qI(Vy,YI);var KI=1e3,Zy=KI*60,Ph=Zy*60,Mc=Ph*24,Xy=Mc*365,Rp={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}"},$y="{yyyy}-{MM}-{dd}",VI={year:"{yyyy}",month:"{yyyy}-{MM}",day:$y,hour:$y+" "+Rp.hour,minute:$y+" "+Rp.minute,second:$y+" "+Rp.second,millisecond:Rp.none},ns=["year","month","day","hour","minute","second","millisecond"],Bf=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function kf(r,t){return r+="","0000".substr(0,t-r.length)+r}function cg(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function _E(r){return r===cg(r)}function K5(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Q1(r,t,e,n){var i=Bc(r),o=i[ZI(e)](),s=i[Gh(e)]()+1,l=Math.floor((s-1)/3)+1,f=i[Mp(e)](),v=i["get"+(e?"UTC":"")+"Day"](),C=i[Fp(e)](),w=(C-1)%12+1,x=i[em(e)](),Q=i[x1(e)](),R=i[tm(e)](),L=C>=12?"pm":"am",P=L.toUpperCase(),M=n instanceof Ia?n:zI(n||WI)||z5(),k=M.getModel("time"),G=k.get("month"),Y=k.get("monthAbbr"),re=k.get("dayOfWeek"),ie=k.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,L+"").replace(/{A}/g,P+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,kf(o%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,G[s-1]).replace(/{MMM}/g,Y[s-1]).replace(/{MM}/g,kf(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,kf(f,2)).replace(/{d}/g,f+"").replace(/{eeee}/g,re[v]).replace(/{ee}/g,ie[v]).replace(/{e}/g,v+"").replace(/{HH}/g,kf(C,2)).replace(/{H}/g,C+"").replace(/{hh}/g,kf(w+"",2)).replace(/{h}/g,w+"").replace(/{mm}/g,kf(x,2)).replace(/{m}/g,x+"").replace(/{ss}/g,kf(Q,2)).replace(/{s}/g,Q+"").replace(/{SSS}/g,kf(R,3)).replace(/{S}/g,R+"")}function DE(r,t,e,n,i){var o=null;if(en(e))o=e;else if(bn(e))o=e(r.value,t,{level:r.level});else{var s=ar({},Rp);if(r.level>0)for(var l=0;l=0;--l)if(f[v]){o=f[v];break}o=o||s.none}if(yr(o)){var w=r.level==null?0:r.level>=0?r.level:o.length+r.level;w=Math.min(w,o.length-1),o=o[w]}}return Q1(new Date(r.value),o,i,n)}function RE(r,t){var e=Bc(r),n=e[Gh(t)]()+1,i=e[Mp(t)](),o=e[Fp(t)](),s=e[em(t)](),l=e[x1(t)](),f=e[tm(t)](),v=f===0,C=v&&l===0,w=C&&s===0,x=w&&o===0,Q=x&&i===1,R=Q&&n===1;return R?"year":Q?"month":x?"day":w?"hour":C?"minute":v?"second":"millisecond"}function ME(r,t,e){var n=$i(r)?Bc(r):r;switch(t=t||RE(r,e),t){case"year":return n[ZI(e)]();case"half-year":return n[Gh(e)]()>=6?1:0;case"quarter":return Math.floor((n[Gh(e)]()+1)/4);case"month":return n[Gh(e)]();case"day":return n[Mp(e)]();case"half-day":return n[Fp(e)]()/24;case"hour":return n[Fp(e)]();case"minute":return n[em(e)]();case"second":return n[x1(e)]();case"millisecond":return n[tm(e)]()}}function ZI(r){return r?"getUTCFullYear":"getFullYear"}function Gh(r){return r?"getUTCMonth":"getMonth"}function Mp(r){return r?"getUTCDate":"getDate"}function Fp(r){return r?"getUTCHours":"getHours"}function em(r){return r?"getUTCMinutes":"getMinutes"}function x1(r){return r?"getUTCSeconds":"getSeconds"}function tm(r){return r?"getUTCMilliseconds":"getMilliseconds"}function V5(r){return r?"setUTCFullYear":"setFullYear"}function FE(r){return r?"setUTCMonth":"setMonth"}function Tp(r){return r?"setUTCDate":"setDate"}function Lp(r){return r?"setUTCHours":"setHours"}function TE(r){return r?"setUTCMinutes":"setMinutes"}function LE(r){return r?"setUTCSeconds":"setSeconds"}function XI(r){return r?"setUTCMilliseconds":"setMilliseconds"}function $I(r){if(!e1(r))return en(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function ku(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var lg=yl;function eb(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(C){return C&&Wl(C)?C:"-"}function o(C){return!!(C!=null&&!isNaN(C)&&isFinite(C))}var s=t==="time",l=r instanceof Date;if(s||l){var f=s?Bc(r):r;if(isNaN(+f)){if(l)return"-"}else return Q1(f,n,e)}if(t==="ordinal")return k0(r)?i(r):$i(r)&&o(r)?r+"":"-";var v=kc(r);return o(v)?$I(v):k0(r)?i(r):typeof r=="boolean"?r+"":"-"}var rm=["a","b","c","d","e","f","g"],tb=function(r,t){return"{"+r+(t??"")+"}"};function S1(r,t,e){yr(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],o=0;o':'';var s=e.markerId||"markerX";return{renderMode:o,content:"{"+s+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function NA(r,t){return t=t||"transparent",en(r)?r:Ln(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function nm(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var D1=Ne,rb=["left","right","top","bottom","width","height"],Ll=[["width","left","right"],["height","top","bottom"]];function im(r,t,e,n,i){var o=0,s=0;n==null&&(n=1/0),i==null&&(i=1/0);var l=0;t.eachChild(function(f,v){var C=f.getBoundingRect(),w=t.childAt(v+1),x=w&&w.getBoundingRect(),Q,R;if(r==="horizontal"){var L=C.width+(x?-x.x+C.x:0);Q=o+L,Q>n||f.newline?(o=0,Q=L,s+=l+e,l=C.height):l=Math.max(l,C.height)}else{var P=C.height+(x?-x.y+C.y:0);R=s+P,R>i||f.newline?(o+=l+e,s=0,R=P,l=C.width):l=Math.max(l,C.width)}f.newline||(f.x=o,f.y=s,f.markRedraw(),r==="horizontal"?o=Q+e:s=R+e)})}var Qf=im;ni(im,"vertical"),ni(im,"horizontal");function R1(r,t,e){var n=t.width,i=t.height,o=jr(r.left,n),s=jr(r.top,i),l=jr(r.right,n),f=jr(r.bottom,i);return(isNaN(o)||isNaN(parseFloat(r.left)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.right)))&&(l=n),(isNaN(s)||isNaN(parseFloat(r.top)))&&(s=0),(isNaN(f)||isNaN(parseFloat(r.bottom)))&&(f=i),e=lg(e||0),{width:Math.max(l-o-e[1]-e[3],0),height:Math.max(f-s-e[0]-e[2],0)}}function Mo(r,t,e){e=lg(e||0);var n=t.width,i=t.height,o=jr(r.left,n),s=jr(r.top,i),l=jr(r.right,n),f=jr(r.bottom,i),v=jr(r.width,n),C=jr(r.height,i),w=e[2]+e[0],x=e[1]+e[3],Q=r.aspect;switch(isNaN(v)&&(v=n-l-x-o),isNaN(C)&&(C=i-f-w-s),Q!=null&&(isNaN(v)&&isNaN(C)&&(Q>n/i?v=n*.8:C=i*.8),isNaN(v)&&(v=Q*C),isNaN(C)&&(C=v/Q)),isNaN(o)&&(o=n-l-v-x),isNaN(s)&&(s=i-f-C-w),r.left||r.right){case"center":o=n/2-v/2-e[3];break;case"right":o=n-v-x;break}switch(r.top||r.bottom){case"middle":case"center":s=i/2-C/2-e[0];break;case"bottom":s=i-C-w;break}o=o||0,s=s||0,isNaN(v)&&(v=n-x-o-(l||0)),isNaN(C)&&(C=i-w-s-(f||0));var R=new gi(o+e[3],s+e[0],v,C);return R.margin=e,R}function OA(r,t,e,n,i,o){var s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],f=i&&i.boundingMode||"all";if(o=o||r,o.x=r.x,o.y=r.y,!s&&!l)return!1;var v;if(f==="raw")v=r.type==="group"?new gi(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(v=r.getBoundingRect(),r.needLocalTransform()){var C=r.getLocalTransform();v=v.clone(),v.applyTransform(C)}var w=Mo(pn({width:v.width,height:v.height},t),e,n),x=s?w.x-v.x:0,Q=l?w.y-v.y:0;return f==="raw"?(o.x=x,o.y=Q):(o.x+=x,o.y+=Q),o===r&&r.markRedraw(),!0}function am(r,t){return r[Ll[t][0]]!=null||r[Ll[t][1]]!=null&&r[Ll[t][2]]!=null}function PA(r){var t=r.layoutMode||r.constructor.layoutMode;return Ln(t)?t:t?{type:t}:null}function Ds(r,t,e){var n=e&&e.ignoreSize;!yr(n)&&(n=[n,n]);var i=s(Ll[0],0),o=s(Ll[1],1);v(Ll[0],r,i),v(Ll[1],r,o);function s(C,w){var x={},Q=0,R={},L=0,P=2;if(D1(C,function(G){R[G]=r[G]}),D1(C,function(G){l(t,G)&&(x[G]=R[G]=t[G]),f(x,G)&&Q++,f(R,G)&&L++}),n[w])return f(t,C[1])?R[C[2]]=null:f(t,C[2])&&(R[C[1]]=null),R;if(L===P||!Q)return R;if(Q>=P)return x;for(var M=0;M=0;f--)l=Kn(l,i[f],!0);n.defaultOption=l}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",o=e+"Id";return $c(this.ecModel,e,{index:this.get(i,!0),id:this.get(o,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Ia);Ys(Oi,Ia),wy(Oi),W5(Oi),q5(Oi,$5);function $5(r){var t=[];return Ne(Oi.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=pr(t,function(e){return to(e).main}),r!=="dataset"&&Vn(t,"dataset")<=0&&t.unshift("dataset"),t}var NE="";typeof navigator<"u"&&(NE=navigator.platform||"");var Np="rgba(0, 0, 0, 0.2)";const ek={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Np,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Np,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Np,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Np,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Np,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Np,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:NE.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};var OE=mn(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Nl="original",Qu="arrayRows",Ol="objectRows",Uh="keyedColumns",GA="typedArray",om="unknown",ih="column",hg="row",xu={Must:1,Might:2,Not:3},PE=Vi();function tk(r){PE(r).datasetMap=mn()}function ib(r,t,e){var n={},i=ob(t);if(!i||!r)return n;var o=[],s=[],l=t.ecModel,f=PE(l).datasetMap,v=i.uid+"_"+e.seriesLayoutBy,C,w;r=r.slice(),Ne(r,function(L,P){var M=Ln(L)?L:r[P]={name:L};M.type==="ordinal"&&C==null&&(C=P,w=R(M)),n[M.name]=[]});var x=f.get(v)||f.set(v,{categoryWayDim:w,valueWayDim:0});Ne(r,function(L,P){var M=L.name,k=R(L);if(C==null){var G=x.valueWayDim;Q(n[M],G,k),Q(s,G,k),x.valueWayDim+=k}else if(C===P)Q(n[M],0,k),Q(o,0,k);else{var G=x.categoryWayDim;Q(n[M],G,k),Q(s,G,k),x.categoryWayDim+=k}});function Q(L,P,M){for(var k=0;kt)return r[n];return r[e-1]}function hb(r,t,e,n,i,o,s){o=o||r;var l=t(o),f=l.paletteIdx||0,v=l.paletteNameMap=l.paletteNameMap||{};if(v.hasOwnProperty(i))return v[i];var C=s==null||!n?e:ak(n,s);if(C=C||e,!(!C||!C.length)){var w=C[f];return i&&(v[i]=w),l.paletteIdx=(f+1)%C.length,w}}function HE(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Op,fg,YE,fb="\0_ec_inner",M1=1,F1=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,o,s,l){o=o||{},this.option=null,this._theme=new Ia(o),this._locale=new Ia(s),this._optionManager=l},t.prototype.setOption=function(e,n,i){var o=zE(n);this._optionManager.setOption(e,i,o),this._resetOption(null,o)},t.prototype.resetOption=function(e,n){return this._resetOption(e,zE(n))},t.prototype._resetOption=function(e,n){var i=!1,o=this._optionManager;if(!e||e==="recreate"){var s=o.mountOption(e==="recreate");!this.option||e==="recreate"?YE(this,s):(this.restoreData(),this._mergeOption(s,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var l=o.getTimelineOption(this);l&&(i=!0,this._mergeOption(l,n))}if(!e||e==="recreate"||e==="media"){var f=o.getMediaOption(this);f.length&&Ne(f,function(v){i=!0,this._mergeOption(v,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,o=this._componentsMap,s=this._componentsCount,l=[],f=mn(),v=n&&n.replaceMergeMainTypeMap;tk(this),Ne(e,function(w,x){w!=null&&(Oi.hasClass(x)?x&&(l.push(x),f.set(x,!0)):i[x]=i[x]==null?Bn(w):Kn(i[x],w,!0))}),v&&v.each(function(w,x){Oi.hasClass(x)&&!f.get(x)&&(l.push(x),f.set(x,!0))}),Oi.topologicalTravel(l,Oi.getAllClassMainTypes(),C,this);function C(w){var x=nk(this,w,ja(e[w])),Q=o.get(w),R=Q?v&&v.get(w)?"replaceMerge":"normalMerge":"replaceAll",L=gA(Q,x,R);Cl(L,w,Oi),i[w]=null,o.set(w,null),s.set(w,0);var P=[],M=[],k=0,G;Ne(L,function(Y,re){var ie=Y.existing,le=Y.newOption;if(!le)ie&&(ie.mergeOption({},this),ie.optionUpdated({},!1));else{var pe=w==="series",ve=Oi.getClass(w,Y.keyInfo.subType,!pe);if(!ve)return;if(w==="tooltip"){if(G)return;G=!0}if(ie&&ie.constructor===ve)ie.name=Y.keyInfo.name,ie.mergeOption(le,this),ie.optionUpdated(le,!1);else{var Ee=ar({componentIndex:re},Y.keyInfo);ie=new ve(le,this,this,Ee),ar(ie,Ee),Y.brandNew&&(ie.__requireNewView=!0),ie.init(le,this,this),ie.optionUpdated(null,!0)}}ie?(P.push(ie.option),M.push(ie),k++):(P.push(void 0),M.push(void 0))},this),i[w]=P,o.set(w,M),s.set(w,k),w==="series"&&Op(this)}this._seriesIndices||Op(this)},t.prototype.getOption=function(){var e=Bn(this.option);return Ne(e,function(n,i){if(Oi.hasClass(i)){for(var o=ja(n),s=o.length,l=!1,f=s-1;f>=0;f--)o[f]&&!Dd(o[f])?l=!0:(o[f]=null,!l&&s--);o.length=s,e[i]=o}}),delete e[fb],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,n){var i=this._componentsMap.get(e);if(i){var o=i[n||0];if(o)return o;if(n==null){for(var s=0;s=t:e==="max"?r<=t:r===t}function VE(r,t){return r.join(",")===t.join(",")}var ah=Ne,Pp=Ln,pb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function sm(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=pb.length;e=0;P--){var M=r[P];if(l||(R=M.data.rawIndexOf(M.stackedByDimension,Q)),R>=0){var k=M.data.getByRawIndex(M.stackResultDimension,R);if(f==="all"||f==="positive"&&k>0||f==="negative"&&k<0||f==="samesign"&&x>=0&&k>0||f==="samesign"&&x<=0&&k<0){x=dy(x,k),L=k;break}}}return n[0]=x,n[1]=L,n})})}var um=function(){function r(t){this.data=t.data||(t.sourceFormat===Uh?{}:[]),this.sourceFormat=t.sourceFormat||om,this.seriesLayoutBy=t.seriesLayoutBy||ih,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nL&&(L=G)}Q[0]=R,Q[1]=L}},i=function(){return this._data?this._data.length/this._dimSize:0};cm=(t={},t[Qu+"_"+ih]={pure:!0,appendData:o},t[Qu+"_"+hg]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ol]={pure:!0,appendData:o},t[Uh]={pure:!0,appendData:function(s){var l=this._data;Ne(s,function(f,v){for(var C=l[v]||(l[v]=[]),w=0;w<(f||[]).length;w++)C.push(f[w])})}},t[Nl]={appendData:o},t[GA]={persistent:!1,pure:!0,appendData:function(s){this._data=s},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(s){for(var l=0;l=0&&(L=s.interpolatedValue[P])}return L!=null?L+"":""})}},r.prototype.getRawValue=function(t,e){return Yp(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function xf(r){var t,e;return Ln(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function dg(r){return new vk(r)}var vk=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!n&&(o=this._plan(this.context));var s=C(this._modBy),l=this._modDataCount||0,f=C(t&&t.modBy),v=t&&t.modDataCount||0;(s!==f||l!==v)&&(o="reset");function C(k){return!(k>=1)&&(k=1),k}var w;(this._dirty||o==="reset")&&(this._dirty=!1,w=this._doReset(n)),this._modBy=f,this._modDataCount=v;var x=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var Q=this._dueIndex,R=Math.min(x!=null?this._dueIndex+x:1/0,this._dueEnd);if(!n&&(w||Q1&&n>0?l:s}};return o;function s(){return t=r?null:ft},gte:function(r,t){return r>=t}},qa=function(){function r(t,e){if(!$i(e)){var n="";Ba(n)}this._opFn=qo[t],this._rvalFloat=kc(e)}return r.prototype.evaluate=function(t){return $i(t)?this._opFn(t,this._rvalFloat):this._opFn(kc(t),this._rvalFloat)},r}(),Au=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=$i(t)?t:kc(t),i=$i(e)?e:kc(e),o=isNaN(n),s=isNaN(i);if(o&&(n=this._incomparable),s&&(i=this._incomparable),o&&s){var l=en(t),f=en(e);l&&(n=f?t:0),f&&(i=l?e:0)}return ni?-this._resultLT:0},r}(),Eb=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=kc(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=kc(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function Pl(r,t){return r==="eq"||r==="ne"?new Eb(r==="eq",t):ln(qo,r)?new qa(r,t):null}var Jp=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Sf(t,e)},r}();function yk(r,t){var e=new Jp,n=r.data,i=e.sourceFormat=r.sourceFormat,o=r.startIndex,s="";r.seriesLayoutBy!==ih&&Ba(s);var l=[],f={},v=r.dimensionsDefine;if(v)Ne(v,function(L,P){var M=L.name,k={index:P,name:M,displayName:L.displayName};if(l.push(k),M!=null){var G="";ln(f,M)&&Ba(G),f[M]=k}});else for(var C=0;C65535?bk:Qb}function Rs(){return[1/0,-1/0]}function Ck(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function pB(r,t,e,n,i){var o=gm[e||"float"];if(i){var s=r[t],l=s&&s.length;if(l!==n){for(var f=new o(n),v=0;vP[1]&&(P[1]=L)}return this._rawCount=this._count=f,{start:l,end:f}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,s=this._dimensions,l=s.length,f=this._rawExtent,v=pr(s,function(k){return k.property}),C=0;CM[1]&&(M[1]=P)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)o=s-1;else return s}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,o=i[t],s=[];if(!o)return s;n==null&&(n=1/0);for(var l=1/0,f=-1,v=0,C=0,w=this.count();C=0&&f<0)&&(l=R,f=Q,v=0),Q===f&&(s[v++]=C))}return s.length=v,s},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var o=0;o=w&&k<=x||isNaN(k))&&(f[v++]=L),L++}R=!0}else if(o===2){for(var P=Q[i[0]],G=Q[i[1]],Y=t[i[1]][0],re=t[i[1]][1],M=0;M=w&&k<=x||isNaN(k))&&(ie>=Y&&ie<=re||isNaN(ie))&&(f[v++]=L),L++}R=!0}}if(!R)if(o===1)for(var M=0;M=w&&k<=x||isNaN(k))&&(f[v++]=le)}else for(var M=0;Mt[Ee][1])&&(pe=!1)}pe&&(f[v++]=e.getRawIndex(M))}return vM[1]&&(M[1]=P)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,o=i[t],s=this.count(),l=0,f=Math.floor(1/e),v=this.getRawIndex(0),C,w,x,Q=new(qp(this._rawCount))(Math.min((Math.ceil(s/f)+2)*2,s));Q[l++]=v;for(var R=1;RC&&(C=w,x=Y)}Se>0&&Sel&&(L=l-C);for(var P=0;PR&&(R=k,Q=C+P)}var G=this.getRawIndex(w),Y=this.getRawIndex(Q);wC-R&&(f=C-R,l.length=f);for(var L=0;Lw[1]&&(w[1]=M),x[Q++]=k}return o._count=Q,o._indices=x,o._updateGetRawIdx(),o},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,s=this.count();of&&(f=w)}return s=[l,f],this._extent[t]=s,s},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,o=0;o=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,o){return Sf(e[o],this._dimensions[o])}G1={arrayRows:t,objectRows:function(e,n,i,o){return Sf(e[n],this._dimensions[o])},keyedColumns:t,original:function(e,n,i,o){var s=e&&(e.value==null?e:e.value);return Sf(s instanceof Array?s[o]:s,this._dimensions[o])},typedArray:function(e,n,i,o){return e[o]}}}(),r}(),pm=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,o;if(zp(t)){var s=t,l=void 0,f=void 0,v=void 0;if(n){var C=e[0];C.prepareSource(),v=C.getSource(),l=v.data,f=v.sourceFormat,o=[C._getVersionSign()]}else l=s.get("data",!0),f=$u(l)?GA:Nl,o=[];var w=this._getSourceMetaRawOption()||{},x=v&&v.metaRawOption||{},Q=$n(w.seriesLayoutBy,x.seriesLayoutBy)||null,R=$n(w.sourceHeader,x.sourceHeader),L=$n(w.dimensions,x.dimensions),P=Q!==x.seriesLayoutBy||!!R!=!!x.sourceHeader||L;i=P?[Up(l,{seriesLayoutBy:Q,sourceHeader:R,dimensions:L},f)]:[]}else{var M=t;if(n){var k=this._applyTransform(e);i=k.sourceList,o=k.upstreamSignList}else{var G=M.get("source",!0);i=[Up(G,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(i,o)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var o="";t.length!==1&&vm(o)}var s,l=[],f=[];return Ne(t,function(v){v.prepareSource();var C=v.getSource(i||0),w="";i!=null&&!C&&vm(w),l.push(C),f.push(v._getVersionSign())}),n?s=qu(n,l,{datasetIndex:e.componentIndex}):i!=null&&(s=[iB(l[0])]),{sourceList:s,upstreamSignList:f}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return Ne(r.blocks,function(i){var o=mB(i);o>=t&&(t=o+ +(n&&(!o||mm(i)&&!i.noHeader)))}),t}return 0}function Mb(r,t,e,n){var i=t.noHeader,o=Lb(mB(t)),s=[],l=t.blocks||[];tc(!l||yr(l)),l=l||[];var f=r.orderMode;if(t.sortBlocks&&f){l=l.slice();var v={valueAsc:"asc",valueDesc:"desc"};if(ln(v,f)){var C=new Au(v[f],null);l.sort(function(L,P){return C.evaluate(L.sortParam,P.sortParam)})}else f==="seriesDesc"&&l.reverse()}Ne(l,function(L,P){var M=t.valueFormatter,k=Rb(L)(M?ar(ar({},r),{valueFormatter:M}):r,L,P>0?o.html:0,n);k!=null&&s.push(k)});var w=r.renderMode==="richText"?s.join(o.richText):U1(n,s.join(""),i?e:o.html);if(i)return w;var x=eb(t.header,"ordinal",r.useUTC),Q=uh(n,r.renderMode).nameStyle,R=yB(n);return r.renderMode==="richText"?Im(r,x,Q)+o.richText+w:U1(n,'
'+ou(x)+"
"+w,e)}function Fb(r,t,e,n){var i=r.renderMode,o=t.noName,s=t.noValue,l=!t.markerType,f=t.name,v=r.useUTC,C=t.valueFormatter||r.valueFormatter||function(Y){return Y=yr(Y)?Y:[Y],pr(Y,function(re,ie){return eb(re,yr(Q)?Q[ie]:Q,v)})};if(!(o&&s)){var w=l?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),x=o?"":eb(f,"ordinal",v),Q=t.valueType,R=s?[]:C(t.value,t.dataIndex),L=!l||!o,P=!l&&o,M=uh(n,i),k=M.nameStyle,G=M.valueStyle;return i==="richText"?(l?"":w)+(o?"":Im(r,x,k))+(s?"":wk(r,R,L,P,G)):U1(n,(l?"":w)+(o?"":IB(x,!l,k))+(s?"":Nb(R,L,P,G)),e)}}function Tb(r,t,e,n,i,o){if(r){var s=Rb(r),l={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return s(l,r,0,o)}}function Lb(r){return{html:ym[r],richText:Db[r]}}function U1(r,t,e){var n='
',i="margin: "+e+"px 0 0",o=yB(r);return'
'+t+n+"
"}function IB(r,t,e){var n=t?"margin-left:2px":"";return''+ou(r)+""}function Nb(r,t,e,n){var i=e?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return r=yr(r)?r:[r],''+pr(r,function(s){return ou(s)}).join("  ")+""}function Im(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function wk(r,t,e,n,i){var o=[i],s=n?10:20;return e&&o.push({padding:[0,0,0,s],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(yr(t)?t.join(" "):t,o)}function bB(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return NA(n)}function j1(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var H1=function(){function r(){this.richTextStyles={},this._nextStyleNameId=$2()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,o=_1({color:e,type:t,renderMode:n,markerId:i});return en(o)?o:(this.richTextStyles[i]=o.style,o.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};yr(e)?Ne(e,function(o){return ar(n,o)}):ar(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function Y1(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),o=i.mapDimensionsAll("defaultedTooltip"),s=o.length,l=t.getRawValue(e),f=yr(l),v=bB(t,e),C,w,x,Q;if(s>1||f&&!s){var R=bm(l,t,e,o,v);C=R.inlineValues,w=R.inlineValueTypes,x=R.blocks,Q=R.inlineValues[0]}else if(s){var L=i.getDimensionInfo(o[0]);Q=C=Yp(i,e,o[0]),w=L.type}else Q=C=f?l[0]:l;var P=cu(t),M=P&&t.name||"",k=i.getName(e),G=n?M:k;return Xs("section",{header:M,noHeader:n||!P,sortParam:Q,blocks:[Xs("nameValue",{markerType:"item",markerColor:v,name:G,noName:!Wl(G),value:C,valueType:w,dataIndex:e})].concat(x||[])})}function bm(r,t,e,n,i){var o=t.getData(),s=xa(r,function(w,x,Q){var R=o.getDimensionInfo(Q);return w=w||R&&R.tooltip!==!1&&R.displayName!=null},!1),l=[],f=[],v=[];n.length?Ne(n,function(w){C(Yp(o,e,w),w)}):Ne(r,C);function C(w,x){var Q=o.getDimensionInfo(x);!Q||Q.otherDims.tooltip===!1||(s?v.push(Xs("nameValue",{markerType:"subItem",markerColor:i,name:Q.displayName,value:w,valueType:Q.type})):(l.push(w),f.push(Q.type)))}return{inlineValues:l,inlineValueTypes:f,blocks:v}}var Hh=Vi();function Kp(r,t){return r.getName(t)||r.getId(t)}var nl="__universalTransitionEnabled",no=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=dg({count:J1,reset:wB}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var o=Hh(this).sourceManager=new pm(this);o.prepareSource();var s=this.getInitialData(e,i);Pb(s,this),this.dataTask.context.data=s,Hh(this).dataBeforeProcessed=s,CB(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=PA(this),o=i?rl(e):{},s=this.subType;Oi.hasClass(s)&&(s+="Series"),Kn(e,n.getTheme().get(this.subType)),Kn(e,this.getDefaultOption()),xd(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&Ds(e,o,i)},t.prototype.mergeOption=function(e,n){e=Kn(this.option,e,!0),this.fillDataTextStyle(e.data);var i=PA(this);i&&Ds(this.option,e,i);var o=Hh(this).sourceManager;o.dirty(),o.prepareSource();var s=this.getInitialData(e,n);Pb(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Hh(this).dataBeforeProcessed=s,CB(this),this._initSelectedMapFromData(s)},t.prototype.fillDataTextStyle=function(e){if(e&&!$u(e))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var o=this.ecModel,s=cb.prototype.getColorFromPalette.call(this,e,n,i);return s||(s=o.getColorFromPalette(e,n,i)),s},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,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,s=this.getData(n);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var l=0;l=0&&i.push(s)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(n);return(i==="all"||i[Kp(o,e)])&&!o.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[nl])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,o,s=this.option,l=s.selectedMode,f=n.length;if(!(!l||!f)){if(l==="series")s.selectedMap="all";else if(l==="multiple"){Ln(s.selectedMap)||(s.selectedMap={});for(var v=s.selectedMap,C=0;C0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Oi.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Oi);Ea(no,O1),Ea(no,cb),Ys(no,Oi);function CB(r){var t=r.name;cu(r)||(r.name=Ob(r)||t)}function Ob(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return Ne(e,function(i){var o=t.getDimensionInfo(i);o.displayName&&n.push(o.displayName)}),n.join(" ")}function J1(r){return r.model.getRawData().count()}function wB(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Ek}function Ek(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Pb(r,t){Ne(x0(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ni(Bk,t))})}function Bk(r,t){var e=Vp(r);return e&&e.setOutputEnd((t||this).count()),t}function Vp(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var a=function(){function r(){this.group=new Nn,this.uid=Sp("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Ap(a),wy(a);function c(){var r=Vi();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,o=!!e.progressiveRender,s=e.large=!!(n&&n.large),l=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==s||o!==l)&&"reset"}}var u=Vi(),h=c(),d=function(){function r(){this.group=new Nn,this.uid=Sp("viewChart"),this.renderTask=dg({plan:A,reset:m}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var o=t.getData(i&&i.dataType);o&&g(o,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var o=t.getData(i&&i.dataType);o&&g(o,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){Fl(this.group,t)},r.markUpdateMethod=function(t,e){u(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function p(r,t,e){r&&Pu(r)&&(t==="emphasis"?Dc:ko)(r,e)}function g(r,t,e){var n=uc(r,t),i=t&&t.highlightKey!=null?eE(t.highlightKey):null;n!=null?Ne(ja(n),function(o){p(r.getItemGraphicEl(o),e,i)}):r.eachItemGraphicEl(function(o){p(o,e,i)})}Ap(d),wy(d);function A(r){return h(r.model)}function m(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,o=t.pipelineContext.progressiveRender,s=r.view,l=i&&u(i).updateMethod,f=o?"incrementalPrepareRender":l&&s[l]?l:"render";return f!=="render"&&s[f](t,e,n,i),y[f]}var y={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},b="\0__throttleOriginMethod",I="\0__throttleRate",E="\0__throttleType";function B(r,t,e){var n,i=0,o=0,s=null,l,f,v,C;t=t||0;function w(){o=new Date().getTime(),s=null,r.apply(f,v||[])}var x=function(){for(var Q=[],R=0;R=0?w():s=setTimeout(w,-l),i=n};return x.clear=function(){s&&(clearTimeout(s),s=null)},x.debounceNextCall=function(Q){C=Q},x}function S(r,t,e,n){var i=r[t];if(i){var o=i[b]||i,s=i[E],l=i[I];if(l!==e||s!==n){if(e==null||!n)return r[t]=o;i=r[t]=B(o,e,n==="debounce"),i[b]=o,i[E]=n,i[I]=e}return i}}function _(r,t){var e=r[t];e&&e[b]&&(e.clear&&e.clear(),r[t]=e[b])}var D=Vi(),T={itemStyle:pA(QE,!0),lineStyle:pA(kE,!0)},F={lineStyle:"stroke",itemStyle:"fill"};function N(r,t){var e=r.visualStyleMapper||T[t];return e||(console.warn("Unknown style type '"+t+"'."),T.itemStyle)}function H(r,t){var e=r.visualDrawType||F[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var W={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),o=N(r,n),s=o(i),l=i.getShallow("decal");l&&(e.setVisual("decal",l),l.dirty=!0);var f=H(r,n),v=s[f],C=bn(v)?v:null,w=s.fill==="auto"||s.stroke==="auto";if(!s[f]||C||w){var x=r.getColorFromPalette(r.name,null,t.getSeriesCount());s[f]||(s[f]=x,e.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||bn(s.fill)?x:s.fill,s.stroke=s.stroke==="auto"||bn(s.stroke)?x:s.stroke}if(e.setVisual("style",s),e.setVisual("drawType",f),!t.isSeriesFiltered(r)&&C)return e.setVisual("colorFromPalette",!1),{dataEach:function(Q,R){var L=r.getDataParams(R),P=ar({},s);P[f]=C(L),Q.setItemVisual(R,"style",P)}}}},V=new Ia,te={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=N(r,n),o=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(s,l){var f=s.getRawDataItem(l);if(f&&f[n]){V.option=f[n];var v=i(V),C=s.ensureUniqueItemVisual(l,"style");ar(C,v),V.option.decal&&(s.setItemVisual(l,"decal",V.option.decal),V.option.decal.dirty=!0),o in v&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},ue={performRawSeries:!0,overallReset:function(r){var t=mn();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,o=t.get(i);o||(o={},t.set(i,o)),D(e).scope=o}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},o=e.getData(),s=D(e).scope,l=e.visualStyleAccessPath||"itemStyle",f=H(e,l);o.each(function(v){var C=o.getRawIndex(v);i[C]=v}),n.each(function(v){var C=i[v],w=o.getItemVisual(C,"colorFromPalette");if(w){var x=o.ensureUniqueItemVisual(C,"style"),Q=n.getName(v)||v+"",R=n.count();x[f]=e.getColorFromPalette(Q,s,R)}})}})}},fe=Math.PI;function de(r,t){t=t||{},pn(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 e=new Nn,n=new ta({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Mn({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 ta({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(o);var s;return t.showSpinner&&(s=new Hy({shape:{startAngle:-fe/2,endAngle:-fe/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),s.animateShape(!0).when(1e3,{endAngle:fe*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:fe*3/2}).delay(300).start("circularInOut"),e.add(s)),e.resize=function(){var l=i.getBoundingRect().width,f=t.showSpinner?t.spinnerRadius:0,v=(r.getWidth()-f*2-(t.showSpinner&&l?10:0)-l)/2-(t.showSpinner&&l?0:5+l/2)+(t.showSpinner?0:l/2)+(l?0:f),C=r.getHeight()/2;t.showSpinner&&s.setShape({cx:v,cy:C}),o.setShape({x:v-f,y:C-f,width:f*2,height:f*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Ae=function(){function r(t,e,n,i){this._stageTaskMap=mn(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,o=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,s=o?n.step:null,l=i&&i.modDataCount,f=l!=null?Math.ceil(l/s):null;return{step:s,modBy:f,modDataCount:l}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),o=i.count(),s=n.progressiveEnabled&&e.incrementalPrepareRender&&o>=n.threshold,l=t.get("large")&&o>=t.get("largeThreshold"),f=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=n.context={progressiveRender:s,modDataCount:f,large:l}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=mn();t.eachSeries(function(i){var o=i.getProgressive(),s=i.uid;n.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Ne(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),s="";tc(!(i.reset&&i.overallReset),s),i.reset&&this._createSeriesStageTask(i,o,e,n),i.overallReset&&this._createOverallStageTask(i,o,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,s=o.context;s.model=e,s.ecModel=n,s.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var o=!1,s=this;Ne(t,function(f,v){if(!(i.visualType&&i.visualType!==f.visualType)){var C=s._stageTaskMap.get(f.uid),w=C.seriesTaskMap,x=C.overallTask;if(x){var Q,R=x.agentStubMap;R.each(function(P){l(i,P)&&(P.dirty(),Q=!0)}),Q&&x.dirty(),s.updatePayload(x,n);var L=s.getPerformArgs(x,i.block);R.each(function(P){P.perform(L)}),x.perform(L)&&(o=!0)}else w&&w.each(function(P,M){l(i,P)&&P.dirty();var k=s.getPerformArgs(P,i.block);k.skip=!f.performRawSeries&&e.isSeriesFiltered(P.context.model),s.updatePayload(P,n),P.perform(k)&&(o=!0)})}});function l(f,v){return f.setDirty&&(!f.dirtyMap||f.dirtyMap.get(v.__pipeline.id))}this.unfinished=o||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var o=this,s=e.seriesTaskMap,l=e.seriesTaskMap=mn(),f=t.seriesType,v=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(C):f?n.eachRawSeriesByType(f,C):v&&v(n,i).each(C);function C(w){var x=w.uid,Q=l.set(x,s&&s.get(x)||dg({plan:J,reset:q,count:se}));Q.context={model:w,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(w,Q)}},r.prototype._createOverallStageTask=function(t,e,n,i){var o=this,s=e.overallTask=e.overallTask||dg({reset:we});s.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var l=s.agentStubMap,f=s.agentStubMap=mn(),v=t.seriesType,C=t.getTargetSeries,w=!0,x=!1,Q="";tc(!t.createOnAllSeries,Q),v?n.eachRawSeriesByType(v,R):C?C(n,i).each(R):(w=!1,Ne(n.getSeries(),R));function R(L){var P=L.uid,M=f.set(P,l&&l.get(P)||(x=!0,dg({reset:Z,onDirty:j})));M.context={model:L,overallProgress:w},M.agent=s,M.__block=w,o._pipe(L,M)}x&&s.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return bn(t)&&(t={overallReset:t,seriesType:oe(t)}),t.uid=Sp("stageHandler"),e&&(t.visualType=e),t},r}();function we(r){r.overallReset(r.ecModel,r.api,r.payload)}function Z(r){return r.overallProgress&&ne}function ne(){this.agent.dirty(),this.getDownstream().dirty()}function j(){this.agent&&this.agent.dirty()}function J(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function q(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=ja(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?pr(t,function(e,n){return X(n)}):z}var z=X(0);function X(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var o=t.start;o0&&Q===v.length-x.length){var R=v.slice(0,Q);R!=="data"&&(e.mainType=R,e[x.toLowerCase()]=f,C=!0)}}l.hasOwnProperty(v)&&(n[v]=f,C=!0),C||(i[v]=f)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,o=n.packedEvent,s=n.model,l=n.view;if(!s||!l)return!0;var f=e.cptQuery,v=e.dataQuery;return C(f,s,"mainType")&&C(f,s,"subType")&&C(f,s,"index","componentIndex")&&C(f,s,"name")&&C(f,s,"id")&&C(v,o,"name")&&C(v,o,"dataIndex")&&C(v,o,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,i,o));function C(w,x,Q,R){return w[Q]==null||x[R||Q]===w[Q]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),lt=["symbol","symbolSize","symbolRotate","symbolOffset"],Me=lt.concat(["symbolKeepAspect"]),Ke={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},o=!1,s=0;s=0&&$t(f)?f:.5;var v=r.createRadialGradient(s,l,0,s,l,f);return v}function sr(r,t,e){for(var n=t.type==="radial"?mr(r,t,e):Hr(r,t,e),i=t.colorStops,o=0;o0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:$i(r)?[r]:yr(r)?r:null}function Sr(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&nn(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=pr(e,function(o){return o/i}),n/=i)}return[e,n]}var tn=new eh(!0);function Cn(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Jn(r){return typeof r=="string"&&r!=="none"}function Rr(r){var t=r.fill;return t!=null&&t!=="none"}function An(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function dn(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function br(r,t,e){var n=Go(t.image,t.__image,e);if(Ey(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Qv),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function gn(r,t,e,n){var i,o=Cn(e),s=Rr(e),l=e.strokePercent,f=l<1,v=!t.path;(!t.silent||f)&&v&&t.createPathProxy();var C=t.path||tn,w=t.__dirty;if(!n){var x=e.fill,Q=e.stroke,R=s&&!!x.colorStops,L=o&&!!Q.colorStops,P=s&&!!x.image,M=o&&!!Q.image,k=void 0,G=void 0,Y=void 0,re=void 0,ie=void 0;(R||L)&&(ie=t.getBoundingRect()),R&&(k=w?sr(r,x,ie):t.__canvasFillGradient,t.__canvasFillGradient=k),L&&(G=w?sr(r,Q,ie):t.__canvasStrokeGradient,t.__canvasStrokeGradient=G),P&&(Y=w||!t.__canvasFillPattern?br(r,x,t):t.__canvasFillPattern,t.__canvasFillPattern=Y),M&&(re=w||!t.__canvasStrokePattern?br(r,Q,t):t.__canvasStrokePattern,t.__canvasStrokePattern=Y),R?r.fillStyle=k:P&&(Y?r.fillStyle=Y:s=!1),L?r.strokeStyle=G:M&&(re?r.strokeStyle=re:o=!1)}var le=t.getGlobalScale();C.setScale(le[0],le[1],t.segmentIgnoreThreshold);var pe,ve;r.setLineDash&&e.lineDash&&(i=Sr(t),pe=i[0],ve=i[1]);var Ee=!0;(v||w&Hg)&&(C.setDPR(r.dpr),f?C.setContext(null):(C.setContext(r),Ee=!1),C.reset(),t.buildPath(C,t.shape,n),C.toStatic(),t.pathUpdated()),Ee&&C.rebuildPath(r,f?l:1),pe&&(r.setLineDash(pe),r.lineDashOffset=ve),n||(e.strokeFirst?(o&&dn(r,e),s&&An(r,e)):(s&&An(r,e),o&&dn(r,e))),pe&&r.setLineDash([])}function wn(r,t,e){var n=t.__image=Go(e.image,t.__image,t,t.onload);if(!(!n||!Ey(n))){var i=e.x||0,o=e.y||0,s=t.getWidth(),l=t.getHeight(),f=n.width/n.height;if(s==null&&l!=null?s=l*f:l==null&&s!=null?l=s/f:s==null&&l==null&&(s=n.width,l=n.height),e.sWidth&&e.sHeight){var v=e.sx||0,C=e.sy||0;r.drawImage(n,v,C,e.sWidth,e.sHeight,i,o,s,l)}else if(e.sx&&e.sy){var v=e.sx,C=e.sy,w=s-v,x=l-C;r.drawImage(n,v,C,w,x,i,o,s,l)}else r.drawImage(n,i,o,s,l)}}function kn(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||hi,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var o=void 0,s=void 0;r.setLineDash&&e.lineDash&&(n=Sr(t),o=n[0],s=n[1]),o&&(r.setLineDash(o),r.lineDashOffset=s),e.strokeFirst?(Cn(e)&&r.strokeText(i,e.x,e.y),Rr(e)&&r.fillText(i,e.x,e.y)):(Rr(e)&&r.fillText(i,e.x,e.y),Cn(e)&&r.strokeText(i,e.x,e.y)),o&&r.setLineDash([])}}var Dn=["shadowBlur","shadowOffsetX","shadowOffsetY"],oi=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Kr(r,t,e,n,i){var o=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){aa(r,i),o=!0;var s=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(s)?vA.opacity:s}(n||t.blend!==e.blend)&&(o||(aa(r,i),o=!0),r.globalCompositeOperation=t.blend||vA.blend);for(var l=0;l0&&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.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[Ts]){if(this._disposed){this.id;return}var o,s,l;if(Ln(n)&&(i=n.lazyUpdate,o=n.silent,s=n.replaceMerge,l=n.transition,n=n.notMerge),this[Ts]=!0,!this._model||n){var f=new uk(this._api),v=this._theme,C=this._model=new F1;C.scheduler=this._scheduler,C.ssr=this._ssr,C.init(null,null,null,v,this._locale,f)}this._model.setOption(e,{replaceMerge:s},qt);var w={seriesTransition:l,optionChanged:!0};if(i)this[Qo]={silent:o,updateParams:w},this[Ts]=!1,this.getZr().wakeUp();else{try{al(this),bt.update.call(this,null,w)}catch(x){throw this[Qo]=null,this[Ts]=!1,x}this._ssr||this._zr.flush(),this[Qo]=null,this[Ts]=!1,Ce.call(this,o),Oe.call(this,o)}}},t.prototype.setTheme=function(){},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||Yn.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Yn.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return Ne(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,o=[],s=this;Ne(n,function(f){i.eachComponent({mainType:f},function(v){var C=s._componentsMap[v.__viewId];C.group.ignore||(o.push(C),C.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Ne(o,function(f){f.group.ignore=!1}),l},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,o=Math.min,s=Math.max,l=1/0;if(Na[i]){var f=l,v=l,C=-l,w=-l,x=[],Q=e&&e.pixelRatio||this.getDevicePixelRatio();Ne(Zn,function(G,Y){if(G.group===i){var re=n?G.getZr().painter.getSvgDom().innerHTML:G.renderToCanvas(Bn(e)),ie=G.getDom().getBoundingClientRect();f=o(ie.left,f),v=o(ie.top,v),C=s(ie.right,C),w=s(ie.bottom,w),x.push({dom:re,left:ie.left,top:ie.top})}}),f*=Q,v*=Q,C*=Q,w*=Q;var R=C-f,L=w-v,P=oo.createCanvas(),M=bl(P,{renderer:n?"svg":"canvas"});if(M.resize({width:R,height:L}),n){var k="";return Ne(x,function(G){var Y=G.left-f,re=G.top-v;k+=''+G.dom+""}),M.painter.getSvgRoot().innerHTML=k,e.connectedBackgroundColor&&M.painter.setBackgroundColor(e.connectedBackgroundColor),M.refreshImmediately(),M.painter.toDataURL()}else return e.connectedBackgroundColor&&M.add(new ta({shape:{x:0,y:0,width:R,height:L},style:{fill:e.connectedBackgroundColor}})),Ne(x,function(G){var Y=new Ws({style:{x:G.left*Q-f,y:G.top*Q-v,image:G.dom}});M.add(Y)}),M.refreshImmediately(),P.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Wt(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Wt(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,o,s=gf(i,e);return Ne(s,function(l,f){f.indexOf("Models")>=0&&Ne(l,function(v){var C=v.coordinateSystem;if(C&&C.containPoint)o=o||!!C.containPoint(n);else if(f==="seriesModels"){var w=this._chartsMap[v.__viewId];w&&w.containPoint&&(o=o||w.containPoint(n,v))}},this)},this),!!o},t.prototype.getVisual=function(e,n){var i=this._model,o=gf(i,e,{defaultMainType:"series"}),s=o.seriesModel,l=s.getData(),f=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?l.indexOfRawIndex(o.dataIndex):null;return f!=null?Ie(l,f,n):Re(l,n)},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=this;Ne(Jt,function(n){var i=function(o){var s=e.getModel(),l=o.target,f,v=n==="globalout";if(v?f={}:l&&_t(l,function(R){var L=Un(R);if(L&&L.dataIndex!=null){var P=L.dataModel||s.getSeriesByIndex(L.seriesIndex);return f=P&&P.getDataParams(L.dataIndex,L.dataType,l)||{},!0}else if(L.eventData)return f=ar({},L.eventData),!0},!0),f){var C=f.componentType,w=f.componentIndex;(C==="markLine"||C==="markPoint"||C==="markArea")&&(C="series",w=f.seriesIndex);var x=C&&w!=null&&s.getComponent(C,w),Q=x&&e[x.mainType==="series"?"_chartsMap":"_componentsMap"][x.__viewId];f.event=o,f.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:f,model:x,view:Q},e.trigger(n,f)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),Ne(Ue,function(n,i){e._messageCenter.on(i,function(o){this.trigger(i,o)},e)}),Ne(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),Qe(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&r1(this.getDom(),To,"");var n=this,i=n._api,o=n._model;Ne(n._componentsViews,function(s){s.dispose(o,i)}),Ne(n._chartsViews,function(s){s.dispose(o,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Zn[n.id]},t.prototype.resize=function(e){if(!this[Ts]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),o=e&&e.silent;this[Qo]&&(o==null&&(o=this[Qo].silent),i=!0,this[Qo]=null),this[Ts]=!0;try{i&&al(this),bt.update.call(this,{type:"resize",animation:ar({duration:0},e&&e.animation)})}catch(s){throw this[Ts]=!1,s}this[Ts]=!1,Ce.call(this,o),Oe.call(this,o)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(Ln(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Qr[e]){var i=Qr[e](this._api,n),o=this._zr;this._loadingFX=i,o.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=ar({},e);return n.type=Ue[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(Ln(n)||(n={silent:!!n}),!!Ar[e.type]&&this._model){if(this[Ts]){this._pendingActions.push(e);return}var i=n.silent;ce.call(this,e,i);var o=n.flush;o?this._zr.flush():o!==!1&&Yn.browser.weChat&&this._throttledZrFlush(),Ce.call(this,i),Oe.call(this,i)}},t.prototype.updateLabelLayout=function(){ys.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(n);o.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){al=function(w){var x=w._scheduler;x.restorePipelines(w._model),x.prepareStageTasks(),Mf(w,!0),Mf(w,!1),x.plan()},Mf=function(w,x){for(var Q=w._model,R=w._scheduler,L=x?w._componentsViews:w._chartsViews,P=x?w._componentsMap:w._chartsMap,M=w._zr,k=w._api,G=0;Gx.get("hoverLayerThreshold")&&!Yn.node&&!Yn.worker&&x.eachSeries(function(P){if(!P.preventUsingHoverLayer){var M=w._chartsMap[P.__viewId];M.__alive&&M.eachRendered(function(k){k.states.emphasis&&(k.states.emphasis.hoverLayer=!0)})}})}function s(w,x){var Q=w.get("blendMode")||null;x.eachRendered(function(R){R.isGroup||(R.style.blend=Q)})}function l(w,x){if(!w.preventAutoZ){var Q=w.get("z")||0,R=w.get("zlevel")||0;x.eachRendered(function(L){return f(L,Q,R,-1/0),!0})}}function f(w,x,Q,R){var L=w.getTextContent(),P=w.getTextGuideLine(),M=w.isGroup;if(M)for(var k=w.childrenRef(),G=0;G0?{duration:L,delay:Q.get("delay"),easing:Q.get("easing")}:null;x.eachRendered(function(M){if(M.states&&M.states.emphasis){if(Lh(M))return;if(M instanceof Si&&zd(M),M.__dirty){var k=M.prevStates;k&&M.useStates(k)}if(R){M.stateTransition=P;var G=M.getTextContent(),Y=M.getTextGuideLine();G&&(G.stateTransition=P),Y&&(Y.stateTransition=P)}M.__dirty&&i(M)}})}Or=function(w){return new(function(x){kt(Q,x);function Q(){return x!==null&&x.apply(this,arguments)||this}return Q.prototype.getCoordinateSystems=function(){return w._coordSysMgr.getCoordinateSystems()},Q.prototype.getComponentByElement=function(R){for(;R;){var L=R.__ecComponentInfo;if(L!=null)return w._model.getComponent(L.mainType,L.index);R=R.parent}},Q.prototype.enterEmphasis=function(R,L){Dc(R,L),hn(w)},Q.prototype.leaveEmphasis=function(R,L){ko(R,L),hn(w)},Q.prototype.enterBlur=function(R){Jd(R),hn(w)},Q.prototype.leaveBlur=function(R){Wd(R),hn(w)},Q.prototype.enterSelect=function(R){CI(R),hn(w)},Q.prototype.leaveSelect=function(R){Ks(R),hn(w)},Q.prototype.getModel=function(){return w.getModel()},Q.prototype.getViewOfComponentModel=function(R){return w.getViewOfComponentModel(R)},Q.prototype.getViewOfSeriesModel=function(R){return w.getViewOfSeriesModel(R)},Q}(db))(w)},Xr=function(w){function x(Q,R){for(var L=0;L=0)){Pa.push(e);var o=Ae.wrapStageHandler(e,i);o.__prio=t,o.__raw=e,r.push(o)}}function ol(r,t){Qr[r]=t}function n0(r,t,e){var n=Su("registerMap");n&&n(r,t,e)}var TQ=Ik;bs(ms,W),bs(vc,te),bs(vc,ue),bs(ms,Ke),bs(vc,Rt),bs(il,Yh),$s(nB),Xi(Xp,dk),ol("default",de),Qi({type:Sc,event:Sc,update:Sc},$o),Qi({type:EA,event:EA,update:EA},$o),Qi({type:gc,event:gc,update:gc},$o),Qi({type:zs,event:zs,update:zs},$o),Qi({type:Wo,event:Wo,update:Wo},$o),Ls("light",rt),Ls("dark",Te);var kk=[],EB={registerPreprocessor:$s,registerProcessor:Xi,registerPostInit:ha,registerPostUpdate:fa,registerUpdateLifecycle:Oa,registerAction:Qi,registerCoordinateSystem:eu,registerLayout:tu,registerVisual:bs,registerTransform:TQ,registerLoading:ol,registerMap:n0,registerImpl:_f,PRIORITY:HA,ComponentModel:Oi,ComponentView:a,SeriesModel:no,ChartView:d,registerComponentModel:function(r){Oi.registerClass(r)},registerComponentView:function(r){a.registerClass(r)},registerSeriesModel:function(r){no.registerClass(r)},registerChartView:function(r){d.registerClass(r)},registerSubTypeDefaulter:function(r,t){Oi.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){V2(r,t)}};function Fi(r){if(yr(r)){Ne(r,function(t){Fi(t)});return}Vn(kk,r)>=0||(kk.push(r),bn(r)&&(r={install:r}),r.install(EB))}function Ig(r){return r==null?0:r.length||1}function i0(r){return r}var Wh=function(){function r(t,e,n,i,o,s){this._old=t,this._new=e,this._oldKeyGetter=n||i0,this._newKeyGetter=i||i0,this.context=o,this._diffModeMultiple=s==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s1){var C=f.shift();f.length===1&&(n[l]=f[0]),this._update&&this._update(C,s)}else v===1?(n[l]=null,this._update&&this._update(f,s)):this._remove&&this._remove(s)}this._performRestAdd(o,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],s=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,s,"_newKeyGetter");for(var l=0;l1&&x===1)this._updateManyToOne&&this._updateManyToOne(C,v),i[f]=null;else if(w===1&&x>1)this._updateOneToMany&&this._updateOneToMany(C,v),i[f]=null;else if(w===1&&x===1)this._update&&this._update(C,v),i[f]=null;else if(w>1&&x>1)this._updateManyToMany&&this._updateManyToMany(C,v),i[f]=null;else if(w>1)for(var Q=0;Q1)for(var l=0;l30}var Gb=Ln,bg=pr,Kx=typeof Int32Array>"u"?Array:Int32Array,xk="e\0\0",wm=-1,Sk=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Em=["_approximateExtent"],Bm,a0,o0,YA,_k,Ub,Dk,sl=function(){function r(t,e){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;OQ(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var o={},s=[],l={},f=!1,v={},C=0;C=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,s=this._idList,l=i.getSource().sourceFormat,f=l===Nl;if(f&&!i.pure)for(var v=[],C=t;C0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var o=i[e];return o==null&&(o=this.getVisual(e),yr(o)?o=o.slice():Gb(o)&&(o=ar({},o)),i[e]=o),o},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Gb(e)?ar(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Gb(t)?ar(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?ar(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;h1(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){Ne(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:bg(this.dimensions,this._getDimInfo,this),this.hostModel)),_k(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];bn(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(c2(arguments)))})},r.internalField=function(){Bm=function(t){var e=t._invertedIndicesMap;Ne(e,function(n,i){var o=t._dimInfos[i],s=o.ordinalMeta,l=t._store;if(s){n=e[i]=new Kx(s.categories.length);for(var f=0;f1&&(f+="__ec__"+C),i[e]=f}}}(),r}();function jb(r,t){Fc(r)||(r=mb(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=mn(),o=[],s=Hb(r,e,n,t.dimensionsCount),l=t.canOmitUnusedDimensions&&PQ(s),f=n===r.dimensionsDefine,v=f?yc(r):vu(n),C=t.encodeDefine;!C&&t.encodeDefaulter&&(C=t.encodeDefaulter(r,s));for(var w=mn(C),x=new gB(s),Q=0;Q0&&(n.name=i+(o-1)),o++,t.set(i,o)}}function Hb(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return Ne(t,function(o){var s;Ln(o)&&(s=o.dimsDef)&&(i=Math.max(i,s.length))}),i}function GQ(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var it=function(){function r(t){this.coordSysDims=[],this.axisMap=mn(),this.categoryAxisMap=mn(),this.coordSysName=t}return r}();function km(r){var t=r.get("coordinateSystem"),e=new it(t),n=QB[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var QB={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",fs).models[0],o=r.getReferringComponents("yAxis",fs).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",o),mc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),mc(o)&&(n.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",fs).models[0];t.coordSysDims=["single"],e.set("single",i),mc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",fs).models[0],o=i.findAxisModel("radiusAxis"),s=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",o),e.set("angle",s),mc(o)&&(n.set("radius",o),t.firstCategoryDimIndex=0),mc(s)&&(n.set("angle",s),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,o=i.getComponent("parallel",r.get("parallelIndex")),s=t.coordSysDims=o.dimensions.slice();Ne(o.parallelAxisIndex,function(l,f){var v=i.getComponent("parallelAxis",l),C=s[f];e.set(C,v),mc(v)&&(n.set(C,v),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=f))})}};function mc(r){return r.get("type")==="category"}function Ga(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,o,s,l;q1(t)?o=t:(s=t.schema,o=s.dimensions,l=t.store);var f=!!(r&&r.get("stack")),v,C,w,x;if(Ne(o,function(k,G){en(k)&&(o[G]=k={name:k}),f&&!k.isExtraCoord&&(!n&&!v&&k.ordinalMeta&&(v=k),!C&&k.type!=="ordinal"&&k.type!=="time"&&(!i||i===k.coordDim)&&(C=k))}),C&&!n&&!v&&(n=!0),C){w="__\0ecstackresult_"+r.id,x="__\0ecstackedover_"+r.id,v&&(v.createInvertedIndices=!0);var Q=C.coordDim,R=C.type,L=0;Ne(o,function(k){k.coordDim===Q&&L++});var P={name:w,coordDim:Q,coordDimIndex:L,type:R,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},M={name:x,coordDim:x,coordDimIndex:L+1,type:R,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};s?(l&&(P.storeDimIndex=l.ensureCalculationDimension(x,R),M.storeDimIndex=l.ensureCalculationDimension(w,R)),s.appendCalculationDimension(P),s.appendCalculationDimension(M)):(o.push(P),o.push(M))}return{stackedDimension:C&&C.name,stackedByDimension:v&&v.name,isStackedByIndex:n,stackedOverDimension:x,stackResultDimension:w}}function q1(r){return!OQ(r.schema)}function Tc(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function JA(r,t){return Tc(r,t)?r.getCalculationInfo("stackResultDimension"):t}function z1(r,t){var e=r.get("coordinateSystem"),n=T1.get(e),i;return t&&t.coordSysDims&&(i=pr(t.coordSysDims,function(o){var s={name:o},l=t.axisMap.get(o);if(l){var f=l.get("type");s.type=W1(f)}return s})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Ff(r,t,e){var n,i;return e&&Ne(r,function(o,s){var l=o.coordDim,f=e.categoryAxisMap.get(l);f&&(n==null&&(n=s),o.ordinalMeta=f.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function WA(r,t,e){e=e||{};var n=t.getSourceManager(),i,o=!1;r?(o=!0,i=mb(r)):(i=n.getSource(),o=i.sourceFormat===Nl);var s=km(t),l=z1(t,s),f=e.useEncodeDefaulter,v=bn(f)?f:f?ni(ib,l,t):null,C={coordDimensions:l,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:v,canOmitUnusedDimensions:!o},w=jb(i,C),x=Ff(w.dimensions,e.createInvertedIndices,s),Q=o?null:n.getSharedDataStore(w),R=Ga(t,{schema:w,store:Q}),L=new sl(w,t);L.setCalculationInfo(R);var P=x!=null&&UQ(i)?function(M,k,G,Y){return Y===x?G:this.defaultDimValueGetter(M,k,G,Y)}:null;return L.hasItemOption=!1,L.initData(o?i:Q,null,P),L}function UQ(r){if(r.sourceFormat===Nl){var t=Vx(r.data||[]);return!yr(Sd(t))}}function Vx(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();wy(qA);var Rk=0,K1=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Rk}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&pr(n,xB);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!en(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=mn(this.categories))},r}();function xB(r){return Ln(r)&&r.value!=null?r.value:r+""}function Mk(r){return r.type==="interval"||r.type==="log"}function jQ(r,t,e,n){var i={},o=r[1]-r[0],s=i.interval=$0(o/t);e!=null&&sn&&(s=i.interval=n);var l=i.intervalPrecision=SB(s),f=i.niceTickExtent=[Ra(Math.ceil(r[0]/s)*s,l),Ra(Math.floor(r[1]/s)*s,l)];return qh(f,r),i}function Tf(r){var t=Math.pow(10,Xc(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Ra(e*t)}function SB(r){return uu(r)+2}function s0(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function qh(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),s0(r,0,t),s0(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Yb(r,t){return r>=t[0]&&r<=t[1]}function Jb(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function u0(r,t){return r*(t[1]-t[0])+t[0]}var Lf=function(r){kt(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new K1({})),yr(i)&&(i=new K1({categories:pr(i,function(o){return Ln(o)?o.value:o})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:en(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Yb(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Jb(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(u0(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],s=0,l=this._ordinalMeta.categories.length,f=Math.min(l,n.length);s=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(qA);qA.registerClass(Lf);var c0=Ra,Cg=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Yb(e,this._extent)},t.prototype.normalize=function(e){return Jb(e,this._extent)},t.prototype.scale=function(e){return u0(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=SB(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,o=this._niceExtent,s=this._intervalPrecision,l=[];if(!n)return l;var f=1e4;i[0]f)return[];var C=l.length?l[l.length-1].value:o[1];return i[1]>C&&(e?l.push({value:c0(C+n,s)}):l.push({value:i[1]})),l},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],o=this.getExtent(),s=1;so[0]&&Q0&&(o=o===null?l:Math.min(o,l))}e[n]=o}}return e}function Lk(r){var t=V1(r),e=[];return Ne(r,function(n){var i=n.coordinateSystem,o=i.getBaseAxis(),s=o.getExtent(),l;if(o.type==="category")l=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var f=o.dim+"_"+o.index,v=t[f],C=Math.abs(s[1]-s[0]),w=o.scale.getExtent(),x=Math.abs(w[1]-w[0]);l=v?C/x*v:C}else{var Q=n.getData();l=Math.abs(s[1]-s[0])/Q.count()}var R=jr(n.get("barWidth"),l),L=jr(n.get("barMaxWidth"),l),P=jr(n.get("barMinWidth")||(Qm(n)?.5:1),l),M=n.get("barGap"),k=n.get("barCategoryGap");e.push({bandWidth:l,barWidth:R,barMaxWidth:L,barMinWidth:P,barGap:M,barCategoryGap:k,axisKey:zh(o),stackId:Fk(n)})}),Lc(e)}function Lc(r){var t={};Ne(r,function(n,i){var o=n.axisKey,s=n.bandWidth,l=t[o]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},f=l.stacks;t[o]=l;var v=n.stackId;f[v]||l.autoWidthCount++,f[v]=f[v]||{width:0,maxWidth:0};var C=n.barWidth;C&&!f[v].width&&(f[v].width=C,C=Math.min(l.remainedWidth,C),l.remainedWidth-=C);var w=n.barMaxWidth;w&&(f[v].maxWidth=w);var x=n.barMinWidth;x&&(f[v].minWidth=x);var Q=n.barGap;Q!=null&&(l.gap=Q);var R=n.barCategoryGap;R!=null&&(l.categoryGap=R)});var e={};return Ne(t,function(n,i){e[i]={};var o=n.stacks,s=n.bandWidth,l=n.categoryGap;if(l==null){var f=fi(o).length;l=Math.max(35-f*4,15)+"%"}var v=jr(l,s),C=jr(n.gap,1),w=n.remainedWidth,x=n.autoWidthCount,Q=(w-v)/(x+(x-1)*C);Q=Math.max(Q,0),Ne(o,function(M){var k=M.maxWidth,G=M.minWidth;if(M.width){var Y=M.width;k&&(Y=Math.min(Y,k)),G&&(Y=Math.max(Y,G)),M.width=Y,w-=Y+C*Y,x--}else{var Y=Q;k&&kY&&(Y=G),Y!==Q&&(M.width=Y,w-=Y+C*Y,x--)}}),Q=(w-v)/(x+(x-1)*C),Q=Math.max(Q,0);var R=0,L;Ne(o,function(M,k){M.width||(M.width=Q),L=M,R+=M.width*(1+C)}),L&&(R-=L.width*C);var P=-R/2;Ne(o,function(M,k){e[i][k]=e[i][k]||{bandWidth:s,offset:P,width:M.width},P+=M.width*(1+C)})}),e}function Nk(r,t,e){if(r&&t){var n=r[zh(t)];return n}}function YQ(r,t){var e=zb(r,t),n=Lk(e);Ne(e,function(i){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),f=Fk(i),v=n[zh(l)][f],C=v.offset,w=v.width;o.setLayout({bandWidth:v.bandWidth,offset:C,size:w})})}function JQ(r){return{seriesType:r,plan:c(),reset:function(t){if(_B(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=n.getOtherAxis(i),s=e.getDimensionIndex(e.mapDimension(o.dim)),l=e.getDimensionIndex(e.mapDimension(i.dim)),f=t.get("showBackground",!0),v=e.mapDimension(o.dim),C=e.getCalculationInfo("stackResultDimension"),w=Tc(e,v)&&!!e.getCalculationInfo("stackedOnSeries"),x=o.isHorizontal(),Q=WQ(i,o),R=Qm(t),L=t.get("barMinHeight")||0,P=C&&e.getDimensionIndex(C),M=e.getLayout("size"),k=e.getLayout("offset");return{progress:function(G,Y){for(var re=G.count,ie=R&&Ho(re*3),le=R&&f&&Ho(re*3),pe=R&&Ho(re),ve=n.master.getRect(),Ee=x?ve.width:ve.height,Se,ke=Y.getStore(),Le=0;(Se=G.next())!=null;){var be=ke.get(w?P:s,Se),ze=ke.get(l,Se),ut=Q,ft=void 0;w&&(ft=+be-ke.get(s,Se));var Qt=void 0,vt=void 0,Gt=void 0,Ct=void 0;if(x){var St=n.dataToPoint([be,ze]);if(w){var dr=n.dataToPoint([ft,ze]);ut=dr[0]}Qt=ut,vt=St[1]+k,Gt=St[0]-ut,Ct=M,Math.abs(Gt)0?e:1:e))}var Kb=function(r,t,e,n){for(;e>>1;r[i][1]i&&(this._approxInterval=i);var l=Zb.length,f=Math.min(Kb(Zb,this._approxInterval,0,l),l-1);this._interval=Zb[f][1],this._minLevelUnit=Zb[Math.max(f-1,0)][0]},t.prototype.parse=function(e){return $i(e)?e:+Bc(e)},t.prototype.contain=function(e){return Yb(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Jb(this.parse(e),this._extent)},t.prototype.scale=function(e){return u0(e,this._extent)},t.type="time",t}(Cg),Zb=[["second",KI],["minute",Zy],["hour",Ph],["quarter-day",Ph*6],["half-day",Ph*12],["day",Mc*1.2],["half-week",Mc*3.5],["week",Mc*7],["month",Mc*31],["quarter",Mc*95],["half-year",Xy/2],["year",Xy]];function qQ(r,t,e,n){var i=Bc(t),o=Bc(e),s=function(R){return ME(i,R,n)===ME(o,R,n)},l=function(){return s("year")},f=function(){return l()&&s("month")},v=function(){return f()&&s("day")},C=function(){return v()&&s("hour")},w=function(){return C()&&s("minute")},x=function(){return w()&&s("second")},Q=function(){return x()&&s("millisecond")};switch(r){case"year":return l();case"month":return f();case"day":return v();case"hour":return C();case"minute":return w();case"second":return x();case"millisecond":return Q()}}function Ok(r,t){return r/=Mc,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Zx(r){var t=30*Mc;return r/=t,r>6?6:r>3?3:r>2?2:1}function Pk(r){return r/=Ph,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Gk(r,t){return r/=t?Zy:KI,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function zQ(r){return $0(r)}function KQ(r,t,e){var n=new Date(r);switch(cg(t)){case"year":case"month":n[FE(e)](0);case"day":n[Tp(e)](1);case"hour":n[Lp(e)](0);case"minute":n[TE(e)](0);case"second":n[LE(e)](0),n[XI(e)](0)}return n.getTime()}function DB(r,t,e,n){var i=1e4,o=Bf,s=0;function l(Ee,Se,ke,Le,be,ze,ut){for(var ft=new Date(Se),Qt=Se,vt=ft[Le]();Qt1&&ze===0&&ke.unshift({value:ke[0].value-Qt})}}for(var ze=0;ze=n[0]&&k<=n[1]&&w++)}var G=(n[1]-n[0])/t;if(w>G*1.5&&x>G/1.5||(v.push(P),w>G||r===o[Q]))break}C=[]}}}for(var Y=Ii(pr(v,function(Se){return Ii(Se,function(ke){return ke.value>=n[0]&&ke.value<=n[1]&&!ke.notAdd})}),function(Se){return Se.length>0}),re=[],ie=Y.length-1,Q=0;Q0;)o*=10;var l=[Ra(ZQ(n[0]/o)*o),Ra(jk(n[1]/o)*o)];this._interval=o,this._niceExtent=l}},t.prototype.calcNiceExtent=function(e){xm.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=dh(e)/dh(this.base),Yb(e,this._extent)},t.prototype.normalize=function(e){return e=dh(e)/dh(this.base),Jb(e,this._extent)},t.prototype.scale=function(e){return e=u0(e,this._extent),Sm(this.base,e)},t.type="log",t}(qA),XQ=pa.prototype;XQ.getMinorTicks=xm.getMinorTicks,XQ.getLabel=xm.getLabel;function RB(r,t){return VQ(r,uu(t))}qA.registerClass(pa);var Xb=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&f>0&&!v&&(l=0),l<0&&f<0&&!C&&(f=0));var x=this._determinedMin,Q=this._determinedMax;return x!=null&&(l=x,v=!0),Q!=null&&(f=Q,C=!0),{min:l,max:f,minFixed:v,maxFixed:C,isBlank:w}},r.prototype.modifyDataMinMax=function(t,e){this[Xx[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=$Q[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),$Q={min:"_determinedMin",max:"_determinedMax"},Xx={min:"_dataMin",max:"_dataMax"};function e6(r,t,e){var n=r.rawExtentInfo;return n||(n=new Xb(r,t,e),r.rawExtentInfo=n,n)}function ul(r,t){return t==null?null:Tg(t)?NaN:r.parse(t)}function t6(r,t){var e=r.type,n=e6(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,o=n.max,s=t.ecModel;if(s&&e==="time"){var l=zb("bar",s),f=!1;if(Ne(l,function(w){f=f||w.getBaseAxis()===t.axis}),f){var v=Lk(l),C=MB(i,o,t,v);i=C.min,o=C.max}}return{extent:[i,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function MB(r,t,e,n){var i=e.axis.getExtent(),o=Math.abs(i[1]-i[0]),s=Nk(n,e.axis);if(s===void 0)return{min:r,max:t};var l=1/0;Ne(s,function(Q){l=Math.min(Q.offset,l)});var f=-1/0;Ne(s,function(Q){f=Math.max(Q.offset+Q.width,f)}),l=Math.abs(l),f=Math.abs(f);var v=l+f,C=t-r,w=1-(l+f)/o,x=C/w-C;return t+=x*(f/v),r-=x*(l/v),{min:r,max:t}}function l0(r,t){var e=t,n=t6(r,e),i=n.extent,o=e.get("splitNumber");r instanceof pa&&(r.base=e.get("logBase"));var s=r.type,l=e.get("interval"),f=s==="interval"||s==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:f?e.get("minInterval"):null,maxInterval:f?e.get("maxInterval"):null}),l!=null&&r.setInterval&&r.setInterval(l)}function $b(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Lf({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Vb({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(qA.getClass(t)||Cg)}}function r6(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Vu(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,o){return r.scale.getFormattedLabel(i,o,n)}}(t):en(t)?function(n){return function(i){var o=r.scale.getLabel(i),s=n.replace("{value}",o??"");return s}}(t):bn(t)?function(n){return function(i,o){return e!=null&&(o=i.value-e),n(zA(r,i),o,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function zA(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function Hk(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,o=e.getExtent();e instanceof Lf?i=e.count():(n=e.getTicks(),i=n.length);var s=r.getLabelModel(),l=Vu(r),f,v=1;i>40&&(v=Math.ceil(i/40));for(var C=0;Cr[1]&&(r[1]=i[1])})}var Z1=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Jk=1e-8;function wg(r,t){return Math.abs(r-t)i&&(n=s,i=f)}if(n)return qk(n.exterior);var v=this.getBoundingRect();return[v.x+v.width/2,v.y+v.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var i=[1/0,1/0],o=[-1/0,-1/0],s=this.geometries;return Ne(s,function(l){l.type==="polygon"?Wk(l.exterior,i,o,e):Ne(l.points,function(f){Wk(f,i,o,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])||(i[0]=i[1]=o[0]=o[1]=0),n=new gi(i[0],i[1],o[0]-i[0],o[1]-i[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(e[0],e[1]))return!1;e:for(var o=0,s=i.length;o>1^-(l&1),f=f>>1^-(f&1),l+=i,f+=o,i=l,o=f,n.push([l/e,f/e])}return n}function a6(r,t){return r=KA(r),pr(Ii(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,o=[];switch(i.type){case"Polygon":var s=i.coordinates;o.push(new Kk(s[0],s.slice(1)));break;case"MultiPolygon":Ne(i.coordinates,function(f){f[0]&&o.push(new Kk(f[0],f.slice(1)))});break;case"LineString":o.push(new Vk([i.coordinates]));break;case"MultiLineString":o.push(new Vk(i.coordinates))}var l=new Zk(n[t||"name"],o,n.cp);return l.properties=n,l})}var Mm=Vi();function Xk(r,t){var e=pr(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function Fm(r){var t=r.getLabelModel().get("customValues");if(t){var e=Vu(r),n=r.scale.getExtent(),i=Xk(r,t),o=Ii(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:pr(o,function(s){var l={value:s};return{formattedLabel:e(l),rawLabel:r.scale.getLabel(l),tickValue:s}})}}return r.type==="category"?o6(r):s6(r)}function eC(r,t){var e=r.getTickModel().get("customValues");if(e){var n=r.scale.getExtent(),i=Xk(r,e);return{ticks:Ii(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?TB(r,t):{ticks:pr(r.scale.getTicks(),function(o){return o.value})}}function o6(r){var t=r.getLabelModel(),e=$k(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function $k(r,t){var e=tC(r,"labels"),n=_m(t),i=LB(e,n);if(i)return i;var o,s;return bn(n)?o=l6(r,n):(s=n==="auto"?u6(r):n,o=OB(r,s)),rC(e,n,{labels:o,labelCategoryInterval:s})}function TB(r,t){var e=tC(r,"ticks"),n=_m(t),i=LB(e,n);if(i)return i;var o,s;if((!t.get("show")||r.scale.isBlank())&&(o=[]),bn(n))o=l6(r,n,!0);else if(n==="auto"){var l=$k(r,r.getLabelModel());s=l.labelCategoryInterval,o=pr(l.labels,function(f){return f.tickValue})}else s=n,o=OB(r,s,!0);return rC(e,n,{ticks:o,tickCategoryInterval:s})}function s6(r){var t=r.scale.getTicks(),e=Vu(r);return{labels:pr(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function tC(r,t){return Mm(r)[t]||(Mm(r)[t]=[])}function LB(r,t){for(var e=0;e40&&(l=Math.max(1,Math.floor(s/40)));for(var f=o[0],v=r.dataToCoord(f+1)-r.dataToCoord(f),C=Math.abs(v*Math.cos(n)),w=Math.abs(v*Math.sin(n)),x=0,Q=0;f<=o[1];f+=l){var R=0,L=0,P=V0(e({value:f}),t.font,"center","top");R=P.width*1.3,L=P.height*1.3,x=Math.max(x,R,7),Q=Math.max(Q,L,7)}var M=x/C,k=Q/w;isNaN(M)&&(M=1/0),isNaN(k)&&(k=1/0);var G=Math.max(0,Math.floor(Math.min(M,k))),Y=Mm(r.model),re=r.getExtent(),ie=Y.lastAutoInterval,le=Y.lastTickCount;return ie!=null&&le!=null&&Math.abs(ie-G)<=1&&Math.abs(le-s)<=1&&ie>G&&Y.axisExtent0===re[0]&&Y.axisExtent1===re[1]?G=ie:(Y.lastTickCount=s,Y.lastAutoInterval=G,Y.axisExtent0=re[0],Y.axisExtent1=re[1]),G}function c6(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function OB(r,t,e){var n=Vu(r),i=r.scale,o=i.getExtent(),s=r.getLabelModel(),l=[],f=Math.max((t||0)+1,1),v=o[0],C=i.count();v!==0&&f>1&&C/f>2&&(v=Math.round(Math.ceil(v/f)*f));var w=Yk(r),x=s.get("showMinLabel")||w,Q=s.get("showMaxLabel")||w;x&&v!==o[0]&&L(o[0]);for(var R=v;R<=o[1];R+=f)L(R);Q&&R-f!==o[1]&&L(o[1]);function L(P){var M={value:P};l.push(e?P:{formattedLabel:n(M),rawLabel:i.getLabel(M),tickValue:P})}return l}function l6(r,t,e){var n=r.scale,i=Vu(r),o=[];return Ne(n.getTicks(),function(s){var l=n.getLabel(s),f=s.value;t(s.value,l)&&o.push(e?f:{formattedLabel:i(s),rawLabel:l,tickValue:f})}),o}var e4=[0,1],_u=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Ay(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),t4(n,i.count())),ea(t,e4,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),t4(n,i.count()));var o=ea(t,n,e4,e);return this.scale.scale(o)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=eC(this,e),i=n.ticks,o=pr(i,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=e.get("alignWithLabel");return h6(this,o,s,t.clamp),o},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=pr(n,function(o){return pr(o,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return i},r.prototype.getViewLabels=function(){return Fm(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return NB(this)},r}();function t4(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function h6(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var o=r.getExtent(),s,l;if(i===1)t[0].coord=o[0],s=t[1]={coord:o[1],tickValue:t[0].tickValue};else{var f=t[i-1].tickValue-t[0].tickValue,v=(t[i-1].coord-t[0].coord)/f;Ne(t,function(Q){Q.coord-=v/2});var C=r.scale.getExtent();l=1+C[1]-t[i-1].tickValue,s={coord:t[i-1].coord+v*l,tickValue:C[1]+1},t.push(s)}var w=o[0]>o[1];x(t[0].coord,o[0])&&(n?t[0].coord=o[0]:t.shift()),n&&x(o[0],t[0].coord)&&t.unshift({coord:o[0]}),x(o[1],s.coord)&&(n?s.coord=o[1]:t.pop()),n&&x(s.coord,o[1])&&t.push({coord:o[1]});function x(Q,R){return Q=Ra(Q),R=Ra(R),w?Q>R:Qi&&(i+=nC);var Q=Math.atan2(l,s);if(Q<0&&(Q+=nC),Q>=n&&Q<=i||Q+nC>=n&&Q+nC<=i)return f[0]=C,f[1]=w,v-e;var R=e*Math.cos(n)+r,L=e*Math.sin(n)+t,P=e*Math.cos(i)+r,M=e*Math.sin(i)+t,k=(R-s)*(R-s)+(L-l)*(L-l),G=(P-s)*(P-s)+(M-l)*(M-l);return k0){t=t/180*Math.PI,gh.fromArray(r[0]),Ha.fromArray(r[1]),ss.fromArray(r[2]),ci.sub(Nf,gh,Ha),ci.sub(zo,ss,Ha);var e=Nf.len(),n=zo.len();if(!(e<.001||n<.001)){Nf.scale(1/e),zo.scale(1/n);var i=Nf.dot(zo),o=Math.cos(t);if(o1&&ci.copy(cl,ss),cl.toArray(r[1])}}}}function ll(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,gh.fromArray(r[0]),Ha.fromArray(r[1]),ss.fromArray(r[2]),ci.sub(Nf,Ha,gh),ci.sub(zo,ss,Ha);var n=Nf.len(),i=zo.len();if(!(n<.001||i<.001)){Nf.scale(1/n),zo.scale(1/i);var o=Nf.dot(t),s=Math.cos(e);if(o=f)ci.copy(cl,ss);else{cl.scaleAndAdd(zo,l/Math.tan(Math.PI/2-C));var w=ss.x!==Ha.x?(cl.x-Ha.x)/(ss.x-Ha.x):(cl.y-Ha.y)/(ss.y-Ha.y);if(isNaN(w))return;w<0?ci.copy(cl,Ha):w>1&&ci.copy(cl,ss)}cl.toArray(r[1])}}}}function oC(r,t,e,n){var i=e==="normal",o=i?r:r.ensureState(e);o.ignore=t;var s=n.get("smooth");s&&s===!0&&(s=.3),o.shape=o.shape||{},s>0&&(o.shape.smooth=s);var l=n.getModel("lineStyle").getLineStyle();i?r.useStyle(l):o.style=l}function a4(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=eA(n[0],n[1]),o=eA(n[1],n[2]);if(!i||!o){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var s=Math.min(i,o)*e,l=S0([],n[1],n[0],s/i),f=S0([],n[1],n[2],s/o),v=S0([],l,f,.5);r.bezierCurveTo(l[0],l[1],l[0],l[1],v[0],v[1]),r.bezierCurveTo(f[0],f[1],f[0],f[1],n[2][0],n[2][1])}else for(var C=1;C0){G(ve*pe,0,s);var Ee=ve+ie;Ee<0&&Y(-Ee*pe,1)}else Y(-ie*pe,1)}}function G(ie,le,pe){ie!==0&&(v=!0);for(var ve=le;ve0)for(var Ee=0;Ee0;Ee--){var be=pe[Ee-1]*Le;G(-be,Ee,s)}}}function re(ie){var le=ie<0?-1:1;ie=Math.abs(ie);for(var pe=Math.ceil(ie/(s-1)),ve=0;ve0?G(pe,0,ve+1):G(-pe,s-ve-1,s),ie-=pe,ie<=0)return}return v}function f6(r,t,e,n){return u4(r,"x","width",t,e)}function c4(r,t,e,n){return u4(r,"y","height",t,e)}function GB(r){var t=[];r.sort(function(L,P){return P.priority-L.priority});var e=new gi(0,0,0,0);function n(L){if(!L.ignore){var P=L.ensureState("emphasis");P.ignore==null&&(P.ignore=!1)}L.ignore=!0}for(var i=0;i=0&&n.attr(o.oldLayoutSelect),Vn(w,"emphasis")>=0&&n.attr(o.oldLayoutEmphasis)),ga(n,v,e,f)}else if(n.attr(v),!FA(n).valueAnimation){var x=$n(n.style.opacity,1);n.style.opacity=0,Co(n,{style:{opacity:x}},e,f)}if(o.oldLayout=v,n.states.select){var Q=o.oldLayoutSelect={};uC(Q,v,Lm),uC(Q,n.states.select,Lm)}if(n.states.emphasis){var R=o.oldLayoutEmphasis={};uC(R,v,Lm),uC(R,n.states.emphasis,Lm)}wE(n,f,C,e,e)}if(i&&!i.ignore&&!i.invisible){var o=HB(i),s=o.oldLayout,L={points:i.shape.points};s?(i.attr({shape:s}),ga(i,{shape:L},e)):(i.setShape(L),i.style.strokePercent=0,Co(i,{style:{strokePercent:1}},e)),o.oldLayout=L}},r}(),YB=Vi();function ZA(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=YB(e).labelManager;i||(i=YB(e).labelManager=new l4),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=YB(e).labelManager;n.updatedSeries.forEach(function(o){i.addLabelsOfSeries(e.getViewOfSeriesModel(o))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var Bg=Math.sin,JB=Math.cos,d6=Math.PI,tv=Math.PI*2,$x=180/d6,h4=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,n,i,o,s){this._add("C",t,e,n,i,o,s)},r.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},r.prototype.arc=function(t,e,n,i,o,s){this.ellipse(t,e,n,n,0,i,o,s)},r.prototype.ellipse=function(t,e,n,i,o,s,l,f){var v=l-s,C=!f,w=Math.abs(v),x=Qh(w-tv)||(C?v>=tv:-v>=tv),Q=v>0?v%tv:v%tv+tv,R=!1;x?R=!0:Qh(w)?R=!1:R=Q>=d6==!!C;var L=t+n*JB(s),P=e+i*Bg(s);this._start&&this._add("M",L,P);var M=Math.round(o*$x);if(x){var k=1/this._p,G=(C?1:-1)*(tv-k);this._add("A",n,i,M,1,+C,t+n*JB(s+G),e+i*Bg(s+G)),k>.01&&this._add("A",n,i,M,0,+C,L,P)}else{var Y=t+n*JB(l),re=e+i*Bg(l);this._add("A",n,i,M,+R,+C,Y,re)}},r.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,i,o,s,l,f,v){for(var C=[],w=this._p,x=1;x"}function I6(r){return""}function p4(r,t){t=t||{};var e=t.newline?` `:"";function n(i){var o=i.children,s=i.tag,l=i.attrs,f=i.text;return g4(s,l)+(s!=="style"?ou(f):f||"")+(o?""+e+pr(o,function(v){return n(v)}).join(e)+e:"")+I6(s)}return n(r)}function n8(r,t,e){e=e||{};var n=e.newline?` `:"",i=" {"+n,o=n+"}",s=pr(fi(r),function(f){return f+i+pr(fi(r[f]),function(v){return v+":"+r[f][v]+";"}).join(n)+o}).join(n),l=pr(fi(t),function(f){return"@keyframes "+f+i+pr(fi(t[f]),function(v){return v+i+pr(fi(t[f][v]),function(C){var w=t[f][v][C];return C==="d"&&(w='path("'+w+'")'),C+":"+w+";"}).join(n)+o}).join(n)+o}).join(n);return!s&&!l?"":[""].join(n)}function v4(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function b6(r,t,e,n){return Du("svg","root",{width:r,height:t,xmlns:v6,"xmlns:xlink":A4,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var i8=0;function C6(){return i8++}var y4={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},XA="transform-origin";function a8(r,t,e){var n=ar({},r.shape);ar(n,t),r.buildPath(e,n);var i=new h4;return i.reset(dw(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function o8(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[XA]=e+"px "+n+"px")}var s8={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function w6(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function E6(r,t,e){var n=r.shape.paths,i={},o,s;if(Ne(n,function(f){var v=v4(e.zrId);v.animation=!0,qB(f,{},v,!0);var C=v.cssAnims,w=v.cssNodes,x=fi(C),Q=x.length;if(Q){s=x[Q-1];var R=C[s];for(var L in R){var P=R[L];i[L]=i[L]||{d:""},i[L].d+=P.d||""}for(var M in w){var k=w[M].animation;k.indexOf(s)>=0&&(o=k)}}}),!!o){t.d=!1;var l=w6(i,e);return o.replace(s,l)}}function m4(r){return en(r)?y4[r]?"cubic-bezier("+y4[r]+")":Uv(r)?r:"":""}function qB(r,t,e,n){var i=r.animators,o=i.length,s=[];if(r instanceof v1){var l=E6(r,t,e);if(l)s.push(l);else if(!o)return}else if(!o)return;for(var f={},v=0;v0}).length){var Ei=w6(le,e);return Ei+" "+k[0]+" both"}}for(var P in f){var l=L(f[P]);l&&s.push(l)}if(s.length){var M=e.zrId+"-cls-"+C6();e.cssNodes["."+M]={animation:s.join(",")},t.class=M}}function u8(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};B6(n,t,e)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},o=i.fill;if(!o){var s=r.style&&r.style.fill,l=r.states.select&&r.states.select.style&&r.states.select.style.fill,f=r.currentStates.indexOf("select")>=0&&l||s;f&&(o=_2(f))}var v=i.lineWidth;if(v){var C=!i.strokeNoScale&&r.transform?r.transform[0]:1;v=v/C}var n={cursor:"pointer"};o&&(n.fill=o),i.stroke&&(n.stroke=i.stroke),v&&(n["stroke-width"]=v),B6(n,t,e)}}function B6(r,t,e,n){var i=JSON.stringify(r),o=e.cssStyleCache[i];o||(o=e.zrId+"-cls-"+C6(),e.cssStyleCache[i]=o,e.cssNodes["."+o+":hover"]=r),t.class=t.class?t.class+" "+o:o}var A0=Math.round;function k6(r){return r&&en(r.src)}function Q6(r){return r&&bn(r.toDataURL)}function Nm(r,t,e,n){Kh(function(i,o){var s=i==="fill"||i==="stroke";s&&$g(o)?R6(t,r,i,n):s&&F2(o)?M6(e,r,i,n):r[i]=o,s&&n.ssr&&o==="none"&&(r["pointer-events"]="visible")},t,e,!1),Of(e,r,n)}function zB(r,t){var e=ww(t);e&&(e.each(function(n,i){n!=null&&(r[(y6+i).toLowerCase()]=n+"")}),t.isSilent()&&(r[y6+"silent"]="true"))}function I4(r){return Qh(r[0]-1)&&Qh(r[1])&&Qh(r[2])&&Qh(r[3]-1)}function b4(r){return Qh(r[4])&&Qh(r[5])}function KB(r,t,e){if(t&&!(b4(t)&&I4(t))){var n=1e4;r.transform=I4(t)?"translate("+A0(t[4]*n)/n+" "+A0(t[5]*n)/n+")":J0(t)}}function C4(r,t,e){for(var n=r.points,i=[],o=0;o"u"){var P="Image width/height must been given explictly in svg-ssr renderer.";tc(x,P),tc(Q,P)}else if(x==null||Q==null){var M=function(Ee,Se){if(Ee){var ke=Ee.elm,Le=x||Se.width,be=Q||Se.height;Ee.tag==="pattern"&&(v?(be=1,Le/=o.width):C&&(Le=1,be/=o.height)),Ee.attrs.width=Le,Ee.attrs.height=be,ke&&(ke.setAttribute("width",Le),ke.setAttribute("height",be))}},k=Go(R,null,r,function(Ee){f||M(ie,Ee),M(w,Ee)});k&&k.width&&k.height&&(x=x||k.width,Q=Q||k.height)}w=Du("image","img",{href:R,width:x,height:Q}),s.width=x,s.height=Q}else i.svgElement&&(w=Bn(i.svgElement),s.width=i.svgWidth,s.height=i.svgHeight);if(w){var G,Y;f?G=Y=1:v?(Y=1,G=s.width/o.width):C?(G=1,Y=s.height/o.height):s.patternUnits="userSpaceOnUse",G!=null&&!isNaN(G)&&(s.width=G),Y!=null&&!isNaN(Y)&&(s.height=Y);var re=gw(i);re&&(s.patternTransform=re);var ie=Du("pattern","",s,[w]),le=p4(ie),pe=n.patternCache,ve=pe[le];ve||(ve=n.zrId+"-p"+n.patternIdx++,pe[le]=ve,s.id=ve,ie=n.defs[ve]=Du("pattern",ve,s,[w])),t[e]=go(ve)}}function rv(r,t,e){var n=e.clipPathCache,i=e.defs,o=n[r.id];if(!o){o=e.zrId+"-c"+e.clipPathIdx++;var s={id:o};n[r.id]=o,i[o]=Du("clipPath",o,s,[S6(r,e)])}t["clip-path"]=go(o)}function na(r){return document.createTextNode(r)}function nv(r,t,e){r.insertBefore(t,e)}function hl(r,t){r.removeChild(t)}function Ns(r,t){r.appendChild(t)}function kg(r){return r.parentNode}function F6(r){return r.nextSibling}function cC(r,t){r.textContent=t}var $A=58,T6=120,XB=Du("","");function Ko(r){return r===void 0}function ho(r){return r!==void 0}function L6(r,t,e){for(var n={},i=t;i<=e;++i){var o=r[i].key;o!==void 0&&(n[o]=i)}return n}function Om(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function Qg(r){var t,e=r.children,n=r.tag;if(ho(n)){var i=r.elm=m6(n);if(Pm(XB,r),yr(e))for(t=0;to?(R=e[f+1]==null?null:e[f+1].elm,$B(r,R,e,i,f)):lC(r,t,n,o))}function Pf(r,t){var e=t.elm=r.elm,n=r.children,i=t.children;r!==t&&(Pm(r,t),Ko(t.text)?ho(n)&&ho(i)?n!==i&&ph(e,n,i):ho(i)?(ho(r.text)&&cC(e,""),$B(e,null,i,0,i.length-1)):ho(n)?lC(e,n,0,n.length-1):ho(r.text)&&cC(e,""):r.text!==t.text&&(ho(n)&&lC(e,n,0,n.length-1),cC(e,t.text)))}function l8(r,t){if(Om(r,t))Pf(r,t);else{var e=r.elm,n=kg(e);Qg(t),n!==null&&(nv(n,t.elm,F6(e)),lC(n,[r],0,0))}return t}var h8=0,N6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=ed(),this.configLayer=ed(),this.storage=e,this._opts=n=ar({},n),this.root=t,this._id="zr"+h8++,this._oldVNode=b6(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=m6("svg");Pm(null,this._oldVNode),i.appendChild(o),t.appendChild(i)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",l8(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return D6(t,v4(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,o=v4(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress,o.emphasis=t.emphasis,o.ssr=this._opts.ssr;var s=[],l=this._bgVNode=va(n,i,this._backgroundColor,o);l&&s.push(l);var f=t.compress?null:this._mainVNode=Du("g","main",{},[]);this._paintList(e,o,f?f.children:s),f&&s.push(f);var v=pr(fi(o.defs),function(x){return o.defs[x]});if(v.length&&s.push(Du("defs","defs",{},v)),t.animation){var C=n8(o.cssNodes,o.cssAnims,{newline:!0});if(C){var w=Du("style","stl",{},[],C);s.push(w)}}return b6(n,i,s,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},p4(this.renderToVNode({animation:$n(t.cssAnimation,!0),emphasis:$n(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:$n(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var i=t.length,o=[],s=0,l,f,v=0,C=0;C=0&&!(x&&f&&x[L]===f[L]);L--);for(var P=R-1;P>L;P--)s--,l=o[s-1];for(var M=L+1;M=l)}}for(var w=this.__startIndex;w15)break}}be.prevElClipPaths&&M.restore()};if(k)if(k.length===0)pe=P.__endIndex;else for(var Ee=Q.dpr,Se=0;Se0&&t>i[0]){for(f=0;ft);f++);l=n[i[f]]}if(i.splice(f+1,0,t),n[t]=e,!e.virtual)if(l){var v=l.dom;v.nextSibling?s.insertBefore(e.dom,v.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?hC:0),this._needsManuallyCompositing),C.__builtin__||Ao("ZLevel "+v+" has been used by unkown layer "+C.id),C!==o&&(C.__used=!0,C.__startIndex!==f&&(C.__dirty=!0),C.__startIndex=f,C.incremental?C.__drawIndex=-1:C.__drawIndex=f,e(f),o=C),i.__dirty&zl&&!i.__inHover&&(C.__dirty=!0,C.incremental&&C.__drawIndex<0&&(C.__drawIndex=f))}e(f),this.eachBuiltinLayer(function(w,x){!w.__used&&w.getElementCount()>0&&(w.__dirty=!0,w.__startIndex=w.__endIndex=w.__drawIndex=0),w.__dirty&&w.__drawIndex<0&&(w.__drawIndex=w.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Ne(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Kn(n[t],e,!0):n[t]=e;for(var i=0;i-1&&(v.style.stroke=v.style.fill,v.style.fill="#fff",v.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={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},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}(no);function d0(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Yp(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var o=[],s=0;s=0&&n.push(t[o])}return n.join(" ")}var fC=function(r){kt(t,r);function t(e,n,i,o){var s=r.call(this)||this;return s.updateData(e,n,i,o),s}return t.prototype._createSymbol=function(e,n,i,o,s){this.removeAll();var l=yt(e,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),l.drift=p8,this._symbolType=e,this.add(l)},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(){Dc(this.childAt(0))},t.prototype.downplay=function(){ko(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,o){this.silent=!1;var s=e.getItemVisual(n,"symbol")||"circle",l=e.hostModel,f=t.getSymbolSize(e,n),v=s!==this._symbolType,C=o&&o.disableAnimation;if(v){var w=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(s,e,n,f,w)}else{var x=this.childAt(0);x.silent=!1;var Q={scaleX:f[0]/2,scaleY:f[1]/2};C?x.attr(Q):ga(x,Q,l,n),_l(x)}if(this._updateCommon(e,n,f,i,o),v){var x=this.childAt(0);if(!C){var Q={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:x.style.opacity}};x.scaleX=x.scaleY=0,x.style.opacity=0,Co(x,Q,l,n)}}C&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,o,s){var l=this.childAt(0),f=e.hostModel,v,C,w,x,Q,R,L,P,M;if(o&&(v=o.emphasisItemStyle,C=o.blurItemStyle,w=o.selectItemStyle,x=o.focus,Q=o.blurScope,L=o.labelStatesModels,P=o.hoverScale,M=o.cursorStyle,R=o.emphasisDisabled),!o||e.hasItemOption){var k=o&&o.itemModel?o.itemModel:e.getItemModel(n),G=k.getModel("emphasis");v=G.getModel("itemStyle").getItemStyle(),w=k.getModel(["select","itemStyle"]).getItemStyle(),C=k.getModel(["blur","itemStyle"]).getItemStyle(),x=G.get("focus"),Q=G.get("blurScope"),R=G.get("disabled"),L=_s(k),P=G.getShallow("scale"),M=k.getShallow("cursor")}var Y=e.getItemVisual(n,"symbolRotate");l.attr("rotation",(Y||0)*Math.PI/180||0);var re=cr(e.getItemVisual(n,"symbolOffset"),i);re&&(l.x=re[0],l.y=re[1]),M&&l.attr("cursor",M);var ie=e.getItemVisual(n,"style"),le=ie.fill;if(l instanceof Ws){var pe=l.style;l.useStyle(ar({image:pe.image,x:pe.x,y:pe.y,width:pe.width,height:pe.height},ie))}else l.__isEmptyBrush?l.useStyle(ar({},ie)):l.useStyle(ie),l.style.decal=null,l.setColor(le,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var ve=e.getItemVisual(n,"liftZ"),Ee=this._z2;ve!=null?Ee==null&&(this._z2=l.z2,l.z2+=ve):Ee!=null&&(l.z2=Ee,this._z2=null);var Se=s&&s.useNameLabel;Uo(l,L,{labelFetcher:f,labelDataIndex:n,defaultText:ke,inheritColor:le,defaultOpacity:ie.opacity});function ke(ze){return Se?e.getName(ze):d0(e,ze)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var Le=l.ensureState("emphasis");Le.style=v,l.ensureState("select").style=w,l.ensureState("blur").style=C;var be=P==null||P===!0?Math.max(1.1,3/this._sizeY):isFinite(P)&&P>0?+P:1;Le.scaleX=this._sizeX*be,Le.scaleY=this._sizeY*be,this.setSymbolScale(1),uo(this,x,Q,R)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var o=this.childAt(0),s=Un(this).dataIndex,l=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var f=o.getTextContent();f&&Nh(f,{style:{opacity:0}},n,{dataIndex:s,removeOpt:l,cb:function(){o.removeTextContent()}})}else o.removeTextContent();Nh(o,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:s,cb:e,removeOpt:l})},t.getSymbolSize=function(e,n){return Mt(e.getItemVisual(n,"symbolSize"))},t}(Nn);function p8(r,t){this.parent.drift(r,t)}function yu(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function fl(r){return r!=null&&!Ln(r)&&(r={isIgnore:r}),r||{}}function G6(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:_s(t),cursorStyle:t.get("cursor")}}var Gm=function(){function r(t){this.group=new Nn,this._SymbolCtor=t||fC}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=fl(e);var n=this.group,i=t.hostModel,o=this._data,s=this._SymbolCtor,l=e.disableAnimation,f=G6(t),v={disableAnimation:l},C=e.getSymbolPoint||function(w){return t.getItemLayout(w)};o||n.removeAll(),t.diff(o).add(function(w){var x=C(w);if(yu(t,x,w,e)){var Q=new s(t,w,f,v);Q.setPosition(x),t.setItemGraphicEl(w,Q),n.add(Q)}}).update(function(w,x){var Q=o.getItemGraphicEl(x),R=C(w);if(!yu(t,R,w,e)){n.remove(Q);return}var L=t.getItemVisual(w,"symbol")||"circle",P=Q&&Q.getSymbolType&&Q.getSymbolType();if(!Q||P&&P!==L)n.remove(Q),Q=new s(t,w,f,v),Q.setPosition(R);else{Q.updateData(t,w,f,v);var M={x:R[0],y:R[1]};l?Q.attr(M):ga(Q,M,i)}n.add(Q),t.setItemGraphicEl(w,Q)}).remove(function(w){var x=o.getItemGraphicEl(w);x&&x.fadeOut(function(){n.remove(x)},i)}).execute(),this._getSymbolPoint=C,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var o=t._getSymbolPoint(i);n.setPosition(o),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=G6(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=fl(n);function i(f){f.isGroup||(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o0?e=n[0]:n[1]<0&&(e=n[1]),e}function B4(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var o=r.baseDataOffset,s=[];return s[o]=e.get(r.baseDim,n),s[1-o]=i,t.dataToPoint(s)}function j6(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function H6(r,t,e,n,i,o,s,l){for(var f=j6(r,t),v=[],C=[],w=[],x=[],Q=[],R=[],L=[],P=U6(i,t,s),M=r.getLayout("points")||[],k=t.getLayout("points")||[],G=0;G=i||L<0)break;if(p0(M,k)){if(f){L+=o;continue}break}if(L===e)r[o>0?"moveTo":"lineTo"](M,k),w=M,x=k;else{var G=M-v,Y=k-C;if(G*G+Y*Y<.5){L+=o;continue}if(s>0){for(var re=L+o,ie=t[re*2],le=t[re*2+1];ie===M&&le===k&&P=n||p0(ie,le))Q=M,R=k;else{Ee=ie-v,Se=le-C;var be=M-v,ze=ie-M,ut=k-C,ft=le-k,Qt=void 0,vt=void 0;if(l==="x"){Qt=Math.abs(be),vt=Math.abs(ze);var Gt=Ee>0?1:-1;Q=M-Gt*Qt*s,R=k,ke=M+Gt*vt*s,Le=k}else if(l==="y"){Qt=Math.abs(ut),vt=Math.abs(ft);var Ct=Se>0?1:-1;Q=M,R=k-Ct*Qt*s,ke=M,Le=k+Ct*vt*s}else Qt=Math.sqrt(be*be+ut*ut),vt=Math.sqrt(ze*ze+ft*ft),ve=vt/(vt+Qt),Q=M-Ee*s*(1-ve),R=k-Se*s*(1-ve),ke=M+Ee*s*ve,Le=k+Se*s*ve,ke=yh(ke,g0(ie,M)),Le=yh(Le,g0(le,k)),ke=g0(ke,yh(ie,M)),Le=g0(Le,yh(le,k)),Ee=ke-M,Se=Le-k,Q=M-Ee*Qt/vt,R=k-Se*Qt/vt,Q=yh(Q,g0(v,M)),R=yh(R,g0(C,k)),Q=g0(Q,yh(v,M)),R=g0(R,yh(C,k)),Ee=M-Q,Se=k-R,ke=M+Ee*vt/Qt,Le=k+Se*vt/Qt}r.bezierCurveTo(w,x,Q,R,M,k),w=ke,x=Le}else r.lineTo(M,k)}v=M,C=k,L+=o}return P}var Y6=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),y8=function(r){kt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Y6},t.prototype.buildPath=function(e,n){var i=n.points,o=0,s=i.length/2;if(n.connectNulls){for(;s>0&&p0(i[s*2-2],i[s*2-1]);s--);for(;o=0){var Y=v?(R-f)*G+f:(Q-l)*G+l;return v?[e,Y]:[Y,e]}l=Q,f=R;break;case s.C:Q=o[w++],R=o[w++],L=o[w++],P=o[w++],M=o[w++],k=o[w++];var re=v?U0(l,Q,L,M,e,C):U0(f,R,P,k,e,C);if(re>0)for(var ie=0;ie=0){var Y=v?ks(f,R,P,k,le):ks(l,Q,L,M,le);return v?[e,Y]:[Y,e]}}l=M,f=k;break}}},t}(Si),m8=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Y6),J6=function(r){kt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new m8},t.prototype.buildPath=function(e,n){var i=n.points,o=n.stackedOnPoints,s=0,l=i.length/2,f=n.smoothMonotone;if(n.connectNulls){for(;l>0&&p0(i[l*2-2],i[l*2-1]);l--);for(;st){o?e.push(s(o,f,t)):i&&e.push(s(i,f,0),s(i,f,t));break}else i&&(e.push(s(i,f,0)),i=null),e.push(f),o=f}return e}function b8(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())){if(t.type!=="cartesian2d")return;for(var i,o,s=n.length-1;s>=0;s--){var l=r.getDimensionInfo(n[s].dimension);if(i=l&&l.coordDim,i==="x"||i==="y"){o=n[s];break}}if(!o)return;var f=t.getAxis(i),v=pr(o.stops,function(G){return{coord:f.toGlobalCoord(f.dataToCoord(G.value)),color:G.color}}),C=v.length,w=o.outerColors.slice();C&&v[0].coord>v[C-1].coord&&(v.reverse(),w.reverse());var x=Q4(v,i==="x"?e.getWidth():e.getHeight()),Q=x.length;if(!Q&&C)return v[0].coord<0?w[1]?w[1]:v[C-1].color:w[0]?w[0]:v[0].color;var R=10,L=x[0].coord-R,P=x[Q-1].coord+R,M=P-L;if(M<.001)return"transparent";Ne(x,function(G){G.offset=(G.coord-L)/M}),x.push({offset:Q?x[Q-1].offset:.5,color:w[1]||"transparent"}),x.unshift({offset:Q?x[0].offset:.5,color:w[0]||"transparent"});var k=new tg(0,0,0,0,x,!0);return k[i]=L,k[i+"2"]=P,k}}function C8(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var o=e.getAxesByScale("ordinal")[0];if(o&&!(i&&x4(o,t))){var s=t.mapDimension(o.dim),l={};return Ne(o.getViewLabels(),function(f){var v=o.scale.getRawOrdinalNumber(f.tickValue);l[v]=1}),function(f){return!l.hasOwnProperty(t.get(s,f))}}}}function x4(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),s=0;sn)return!1;return!0}function S4(r,t){return isNaN(r)||isNaN(t)}function w8(r){for(var t=r.length/2;t>0&&S4(r[t*2-2],r[t*2-1]);t--);return t-1}function V6(r,t){return[r[t*2],r[t*2+1]]}function E8(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,o,s,l=0,f=-1,v=0;v=t||o>=t&&s<=t){f=v;break}l=v,o=s}return{range:[l,f],t:(t-o)/(s-o)}}function _4(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var vt=R.getState("emphasis").style;vt.lineWidth=+R.style.lineWidth+1}Un(R).seriesIndex=e.seriesIndex,uo(R,ut,ft,Qt);var Gt=K6(e.get("smooth")),Ct=e.get("smoothMonotone");if(R.setShape({smooth:Gt,smoothMonotone:Ct,connectNulls:le}),L){var St=l.getCalculationInfo("stackedOnSeries"),dr=0;L.useStyle(pn(v.getAreaStyle(),{fill:ke,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),St&&(dr=K6(St.get("smooth"))),L.setShape({smooth:Gt,stackedOnSmooth:dr,smoothMonotone:Ct,connectNulls:le}),hu(L,e,"areaStyle"),Un(L).seriesIndex=e.seriesIndex,uo(L,ut,ft,Qt)}var ur=this._changePolyState;l.eachItemGraphicEl(function(ir){ir&&(ir.onHoverStateChange=ur)}),this._polyline.onHoverStateChange=ur,this._data=l,this._coordSys=o,this._stackedOnPoints=re,this._points=C,this._step=Ee,this._valueOrigin=G,e.get("triggerLineEvent")&&(this.packEventData(e,R),L&&this.packEventData(e,L))},t.prototype.packEventData=function(e,n){Un(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,o){var s=e.getData(),l=uc(s,o);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var f=s.getLayout("points"),v=s.getItemGraphicEl(l);if(!v){var C=f[l*2],w=f[l*2+1];if(isNaN(C)||isNaN(w)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(C,w))return;var x=e.get("zlevel")||0,Q=e.get("z")||0;v=new fC(s,l),v.x=C,v.y=w,v.setZ(x,Q);var R=v.getSymbolPath().getTextContent();R&&(R.zlevel=x,R.z=Q,R.z2=this._polyline.z2+1),v.__temp=!0,s.setItemGraphicEl(l,v),v.stopSymbolAnimation(!0),this.group.add(v)}v.highlight()}else d.prototype.highlight.call(this,e,n,i,o)},t.prototype.downplay=function(e,n,i,o){var s=e.getData(),l=uc(s,o);if(this._changePolyState("normal"),l!=null&&l>=0){var f=s.getItemGraphicEl(l);f&&(f.__temp?(s.setItemGraphicEl(l,null),this.group.remove(f)):f.downplay())}else d.prototype.downplay.call(this,e,n,i,o)},t.prototype._changePolyState=function(e){var n=this._polygon;bp(this._polyline,e),n&&bp(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new y8({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new J6({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var o,s,l=n.getBaseAxis(),f=l.inverse;n.type==="cartesian2d"?(o=l.isHorizontal(),s=!1):n.type==="polar"&&(o=l.dim==="angle",s=!0);var v=e.hostModel,C=v.get("animationDuration");bn(C)&&(C=C(null));var w=v.get("animationDelay")||0,x=bn(w)?w(null):w;e.eachItemGraphicEl(function(Q,R){var L=Q;if(L){var P=[Q.x,Q.y],M=void 0,k=void 0,G=void 0;if(i)if(s){var Y=i,re=n.pointToCoord(P);o?(M=Y.startAngle,k=Y.endAngle,G=-re[1]/180*Math.PI):(M=Y.r0,k=Y.r,G=re[0])}else{var ie=i;o?(M=ie.x,k=ie.x+ie.width,G=Q.x):(M=ie.y+ie.height,k=ie.y,G=Q.y)}var le=k===M?0:(G-M)/(k-M);f&&(le=1-le);var pe=bn(w)?w(R):C*le+x,ve=L.getSymbolPath(),Ee=ve.getTextContent();L.attr({scaleX:0,scaleY:0}),L.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:pe}),Ee&&Ee.animateFrom({style:{opacity:0}},{duration:300,delay:pe}),ve.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var o=e.getModel("endLabel");if(_4(e)){var s=e.getData(),l=this._polyline,f=s.getLayout("points");if(!f){l.removeTextContent(),this._endLabel=null;return}var v=this._endLabel;v||(v=this._endLabel=new Mn({z2:200}),v.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var C=w8(f);C>=0&&(Uo(l,_s(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:C,defaultText:function(w,x,Q){return Q!=null?P6(s,Q):d0(s,w)},enableTextSetter:!0},B8(o,n)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,o,s,l,f){var v=this._endLabel,C=this._polyline;if(v){e<1&&o.originalX==null&&(o.originalX=v.x,o.originalY=v.y);var w=i.getLayout("points"),x=i.hostModel,Q=x.get("connectNulls"),R=l.get("precision"),L=l.get("distance")||0,P=f.getBaseAxis(),M=P.isHorizontal(),k=P.inverse,G=n.shape,Y=k?M?G.x:G.y+G.height:M?G.x+G.width:G.y,re=(M?L:0)*(k?-1:1),ie=(M?0:-L)*(k?-1:1),le=M?"x":"y",pe=E8(w,Y,le),ve=pe.range,Ee=ve[1]-ve[0],Se=void 0;if(Ee>=1){if(Ee>1&&!Q){var ke=V6(w,ve[0]);v.attr({x:ke[0]+re,y:ke[1]+ie}),s&&(Se=x.getRawValue(ve[0]))}else{var ke=C.getPointOn(Y,le);ke&&v.attr({x:ke[0]+re,y:ke[1]+ie});var Le=x.getRawValue(ve[0]),be=x.getRawValue(ve[1]);s&&(Se=Sw(i,R,Le,be,pe.t))}o.lastFrameIndex=ve[0]}else{var ze=e===1||o.lastFrameIndex>0?ve[0]:0,ke=V6(w,ze);s&&(Se=x.getRawValue(ze)),v.attr({x:ke[0]+re,y:ke[1]+ie})}if(s){var ut=FA(v);typeof ut.setLabelText=="function"&&ut.setLabelText(Se)}}},t.prototype._doUpdateAnimation=function(e,n,i,o,s,l,f){var v=this._polyline,C=this._polygon,w=e.hostModel,x=H6(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),Q=x.current,R=x.stackedOnCurrent,L=x.next,P=x.stackedOnNext;if(s&&(R=ru(x.stackedOnCurrent,x.current,i,s,f),Q=ru(x.current,null,i,s,f),P=ru(x.stackedOnNext,x.next,i,s,f),L=ru(x.next,null,i,s,f)),n3(Q,L)>3e3||C&&n3(R,P)>3e3){v.stopAnimation(),v.setShape({points:L}),C&&(C.stopAnimation(),C.setShape({points:L,stackedOnPoints:P}));return}v.shape.__points=x.current,v.shape.points=Q;var M={shape:{points:L}};x.current!==Q&&(M.shape.__points=x.next),v.stopAnimation(),ga(v,M,w),C&&(C.setShape({points:Q,stackedOnPoints:R}),C.stopAnimation(),ga(C,{shape:{stackedOnPoints:P}},w),v.shape.points!==C.shape.points&&(C.shape.points=v.shape.points));for(var k=[],G=x.status,Y=0;Yt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&s.type==="cartesian2d"&&o){var f=s.getBaseAxis(),v=s.getOtherAxis(f),C=f.getExtent(),w=n.getDevicePixelRatio(),x=Math.abs(C[1]-C[0])*(w||1),Q=Math.round(l/x);if(isFinite(Q)&&Q>1){o==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(v.dim),1/Q)):o==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(v.dim),1/Q));var R=void 0;en(o)?R=k8[o]:bn(o)&&(R=o),R&&t.setData(i.downSample(i.mapDimension(v.dim),1/Q,R,Q8))}}}}}function x8(r){r.registerChartView(R4),r.registerSeriesModel(E4),r.registerLayout(ov("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Z6("line"))}var sv=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return WA(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var o=this.coordinateSystem;if(o&&o.clampData){var s=o.clampData(e),l=o.dataToPoint(s);if(i)Ne(o.getAxes(),function(x,Q){if(x.type==="category"&&n!=null){var R=x.getTicksCoords(),L=x.getTickModel().get("alignWithLabel"),P=s[Q],M=n[Q]==="x1"||n[Q]==="y1";if(M&&!L&&(P+=1),R.length<2)return;if(R.length===2){l[Q]=x.toGlobalCoord(x.getExtent()[M?1:0]);return}for(var k=void 0,G=void 0,Y=1,re=0;reP){G=(ie+k)/2;break}re===1&&(Y=le-R[0].tickValue)}G==null&&(k?k&&(G=R[R.length-1].coord):G=R[0].coord),l[Q]=x.toGlobalCoord(G)}});else{var f=this.getData(),v=f.getLayout("offset"),C=f.getLayout("size"),w=o.getBaseAxis().isHorizontal()?0:1;l[w]+=v+C/2}return l}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(no);no.registerClass(sv);var S8=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return WA(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=TA(sv.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}(sv),_8=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),i3=function(r){kt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new _8},t.prototype.buildPath=function(e,n){var i=n.cx,o=n.cy,s=Math.max(n.r0||0,0),l=Math.max(n.r,0),f=(l-s)*.5,v=s+f,C=n.startAngle,w=n.endAngle,x=n.clockwise,Q=Math.PI*2,R=x?w-CMath.PI/2&&Cl)return!0;l=w}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,o=i.getExtent(),s=Math.max(0,o[0]),l=Math.min(o[1],i.getOrdinalMeta().categories.length-1);s<=l;++s)if(e.ordinalNumbers[s]!==i.getRawOrdinalNumber(s))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,o){if(this._isOrderChangedWithinSameData(e,n,i)){var s=this._dataSort(e,i,n);this._isOrderDifferentInView(s,i)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:s}))}},t.prototype._dispatchInitSort=function(e,n,i){var o=n.baseAxis,s=this._dataSort(e,o,function(l){return e.get(e.mapDimension(n.otherAxis.dim),l)});i.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:s})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(o){kp(o,e,Un(o).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(d),Fr={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,o=r.y+r.height,s=dt(t.x,r.x),l=Tt(t.x+t.width,i),f=dt(t.y,r.y),v=Tt(t.y+t.height,o),C=li?l:s,t.y=w&&f>o?v:f,t.width=C?0:l-s,t.height=w?0:v-f,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),C||w},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Tt(t.r,r.r),o=dt(t.r0,r.r0);t.r=i,t.r0=o;var s=i-o<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return s}},Lr={cartesian2d:function(r,t,e,n,i,o,s,l,f){var v=new ta({shape:ar({},n),z2:1});if(v.__dataIndex=e,v.name="item",o){var C=v.shape,w=i?"height":"width";C[w]=0}return v},polar:function(r,t,e,n,i,o,s,l,f){var v=!i&&f?i3:Hu,C=new v({shape:n,z2:1});C.name="item";var w=oa(i);if(C.calculateTextPosition=U(w,{isRoundCap:v===i3}),o){var x=C.shape,Q=i?"r":"endAngle",R={};x[Q]=i?n.r0:n.startAngle,R[Q]=n[Q],(l?ga:Co)(C,{shape:R},o)}return C}};function cn(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function qn(r,t,e,n,i,o,s,l){var f,v;o?(v={x:n.x,width:n.width},f={y:n.y,height:n.height}):(v={y:n.y,height:n.height},f={x:n.x,width:n.width}),l||(s?ga:Co)(e,{shape:f},t,i,null);var C=t?r.baseAxis.model:null;(s?ga:Co)(e,{shape:v},C,i)}function ri(r,t){for(var e=0;e0?1:-1,s=n.height>0?1:-1;return{x:n.x+o*i/2,y:n.y+s*i/2,width:n.width-o*i,height:n.height-s*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function xn(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function oa(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function Hi(r,t,e,n,i,o,s,l){var f=t.getItemVisual(e,"style");if(l){if(!o.get("roundCap")){var v=r.shape,C=We(n.getModel("itemStyle"),v,!0);ar(v,C),r.setShape(v)}}else{var w=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",w)}r.useStyle(f);var x=n.getShallow("cursor");x&&r.attr("cursor",x);var Q=l?s?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":s?i.height>=0?"bottom":"top":i.width>=0?"right":"left",R=_s(n);Uo(r,R,{labelFetcher:o,labelDataIndex:e,defaultText:d0(o.getData(),e),inheritColor:f.fill,defaultOpacity:f.opacity,defaultOutsidePosition:Q});var L=r.getTextContent();if(l&&L){var P=n.get(["label","position"]);r.textConfig.inside=P==="middle"?!0:null,ee(r,P==="outside"?Q:P,oa(s),n.get(["label","rotate"]))}CE(L,R,o.getRawValue(e),function(k){return P6(t,k)});var M=n.getModel(["emphasis"]);uo(r,M.get("focus"),M.get("blurScope"),M.get("disabled")),hu(r,n),xn(i)&&(r.style.fill="none",r.style.stroke="none",Ne(r.states,function(k){k.style&&(k.style.fill=k.style.stroke="none")}))}function io(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,o)}var Ai=function(){function r(){}return r}(),Di=function(r){kt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new Ai},t.prototype.buildPath=function(e,n){for(var i=n.points,o=this.baseDimIdx,s=1-this.baseDimIdx,l=[],f=[],v=this.barWidth,C=0;C=0?e:null},30,!1);function Al(r,t,e){for(var n=r.baseDimIdx,i=1-n,o=r.shape.points,s=r.largeDataIndices,l=[],f=[],v=r.barWidth,C=0,w=o.length/3;C=l[0]&&t<=l[0]+f[0]&&e>=l[1]&&e<=l[1]+f[1])return s[C]}return-1}function Yo(r,t,e){if(v0(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),o=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:o.r0,r:r?i.r:o.r,startAngle:r?o.startAngle:0,endAngle:r?o.endAngle:Math.PI*2}}}function Pc(r,t,e){var n=r.type==="polar"?Hu:ta;return new n({shape:Yo(t,e,r),silent:!0,z2:0})}function td(r){r.registerChartView(or),r.registerSeriesModel(S8),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ni(YQ,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,JQ("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Z6("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var xg=Math.PI*2,uv=Math.PI/180;function a3(r,t){return Mo(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function AC(r,t){var e=a3(r,t),n=r.get("center"),i=r.get("radius");yr(i)||(i=[0,i]);var o=jr(e.width,t.getWidth()),s=jr(e.height,t.getHeight()),l=Math.min(o,s),f=jr(i[0],l/2),v=jr(i[1],l/2),C,w,x=r.coordinateSystem;if(x){var Q=x.dataToPoint(n);C=Q[0]||0,w=Q[1]||0}else yr(n)||(n=[n,n]),C=jr(n[0],o)+e.x,w=jr(n[1],s)+e.y;return{cx:C,cy:w,r0:f,r:v}}function cv(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),o=i.mapDimension("value"),s=a3(n,e),l=AC(n,e),f=l.cx,v=l.cy,C=l.r,w=l.r0,x=-n.get("startAngle")*uv,Q=n.get("endAngle"),R=n.get("padAngle")*uv;Q=Q==="auto"?x-xg:-Q*uv;var L=n.get("minAngle")*uv,P=L+R,M=0;i.each(o,function(ft){!isNaN(ft)&&M++});var k=i.getSum(o),G=Math.PI/(k||M)*2,Y=n.get("clockwise"),re=n.get("roseType"),ie=n.get("stillShowZeroSum"),le=i.getDataExtent(o);le[0]=0;var pe=Y?1:-1,ve=[x,Q],Ee=pe*R/2;fI(ve,!Y),x=ve[0],Q=ve[1];var Se=M4(n);Se.startAngle=x,Se.endAngle=Q,Se.clockwise=Y;var ke=Math.abs(Q-x),Le=ke,be=0,ze=x;if(i.setLayout({viewRect:s,r:C}),i.each(o,function(ft,Qt){var vt;if(isNaN(ft)){i.setItemLayout(Qt,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:Y,cx:f,cy:v,r0:w,r:re?NaN:C});return}re!=="area"?vt=k===0&&ie?G:ft*G:vt=ke/M,vtvt?(Ct=ze+pe*vt/2,St=Ct):(Ct=ze+Ee,St=Gt-Ee),i.setItemLayout(Qt,{angle:vt,startAngle:Ct,endAngle:St,clockwise:Y,cx:f,cy:v,r0:w,r:re?ea(ft,le,[w,C]):C}),ze=Gt}),Lee?M:P,re=Math.abs(G.label.y-e);if(re>=Y.maxY){var ie=G.label.x-t-G.len2*i,le=n+G.len,pe=Math.abs(ie)r.unconstrainedWidth?null:Q:null;n.setStyle("width",R)}var L=n.getBoundingRect();o.width=L.width;var P=(n.style.margin||0)+2.1;o.height=L.height+P,o.y-=(o.height-w)/2}}}function c3(r){return r.position==="center"}function l3(r){var t=r.getData(),e=[],n,i,o=!1,s=(r.get("minShowLabelAngle")||0)*o3,l=t.getLayout("viewRect"),f=t.getLayout("r"),v=l.width,C=l.x,w=l.y,x=l.height;function Q(ie){ie.ignore=!0}function R(ie){if(!ie.ignore)return!0;for(var le in ie.states)if(ie.states[le].ignore===!1)return!0;return!1}t.each(function(ie){var le=t.getItemGraphicEl(ie),pe=le.shape,ve=le.getTextContent(),Ee=le.getTextGuideLine(),Se=t.getItemModel(ie),ke=Se.getModel("label"),Le=ke.get("position")||Se.get(["emphasis","label","position"]),be=ke.get("distanceToLabelLine"),ze=ke.get("alignTo"),ut=jr(ke.get("edgeDistance"),v),ft=ke.get("bleedMargin"),Qt=Se.getModel("labelLine"),vt=Qt.get("length");vt=jr(vt,v);var Gt=Qt.get("length2");if(Gt=jr(Gt,v),Math.abs(pe.endAngle-pe.startAngle)0?"right":"left":St>0?"left":"right"}var hr=Math.PI,rr=0,Bt=ke.get("rotate");if($i(Bt))rr=Bt*(hr/180);else if(Le==="center")rr=0;else if(Bt==="radial"||Bt===!0){var wt=St<0?-Ct+hr:-Ct;rr=wt}else if(Bt==="tangential"&&Le!=="outside"&&Le!=="outer"){var Yt=Math.atan2(St,dr);Yt<0&&(Yt=hr*2+Yt);var Br=dr>0;Br&&(Yt=hr+Yt),rr=Yt-hr}if(o=!!rr,ve.x=ur,ve.y=ir,ve.rotation=rr,ve.setStyle({verticalAlign:"middle"}),Vr){ve.setStyle({align:Ei});var kr=ve.states.select;kr&&(kr.x+=ve.x,kr.y+=ve.y)}else{var tr=ve.getBoundingRect().clone();tr.applyTransform(ve.getComputedTransform());var rn=(ve.style.margin||0)+2.1;tr.y-=rn/2,tr.height+=rn,e.push({label:ve,labelLine:Ee,position:Le,len:vt,len2:Gt,minTurnAngle:Qt.get("minTurnAngle"),maxSurfaceAngle:Qt.get("maxSurfaceAngle"),surfaceNormal:new ci(St,dr),linePoints:Fn,textAlign:Ei,labelDistance:be,labelAlignTo:ze,edgeDistance:ut,bleedMargin:ft,rect:tr,unconstrainedWidth:tr.width,labelStyleWidth:ve.style.width})}le.setTextConfig({inside:Vr})}}),!o&&r.get("avoidLabelOverlap")&&u3(e,n,i,f,v,x,C,w);for(var L=0;L0){for(var C=s.getItemLayout(0),w=1;isNaN(C&&C.startAngle)&&w=o.r0}},t.type="pie",t}(d);function f3(r,t,e){t=yr(t)&&{coordDimensions:t}||ar({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=jb(n,t).dimensions,o=new sl(i,r);return o.initData(n,e),o}var F4=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),WG=Vi(),qG=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new F4(an(this.getData,this),an(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return f3(this,{coordDimensions:["value"],encodeDefaulter:ni(ab,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=WG(n),o=i.seats;if(!o){var s=[];n.each(n.mapDimension("value"),function(f){s.push(f)}),o=i.seats=Zc(s,n.hostModel.get("percentPrecision"))}var l=r.prototype.getDataParams.call(this,e);return l.percent=o[e]||0,l.$vars.push("percent"),l},t.prototype._defaultLabelLine=function(e){xd(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,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}(no);function zG(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var o=n.mapDimension("value"),s=n.get(o,i);return!($i(s)&&!isNaN(s)&&s<0)})}}}function KG(r){r.registerChartView(JG),r.registerSeriesModel(qG),pt("pie",r.registerAction),r.registerLayout(ni(cv,"pie")),r.registerProcessor(Um("pie")),r.registerProcessor(zG("pie"))}var VG=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return WA(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,i){return i.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",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}(no),PD=4,ZG=function(){function r(){}return r}(),XG=function(r){kt(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new ZG},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var i=n.points,o=n.size,s=this.symbolProxy,l=s.shape,f=e.getContext?e.getContext():e,v=f&&o[0]=0;v--){var C=v*2,w=o[C]-l/2,x=o[C+1]-f/2;if(e>=w&&n>=x&&e<=w+l&&n<=x+f)return v}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),o=this.getBoundingRect();if(e=i[0],n=i[1],o.contain(e,n)){var s=this.hoverDataIdx=this.findDataIndex(e,n);return s>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,i=n.points,o=n.size,s=o[0],l=o[1],f=1/0,v=1/0,C=-1/0,w=-1/0,x=0;x=0&&(v.dataIndex=w+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),eU=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var o=e.getData(),s=this._updateSymbolDraw(o,e);s.updateData(o,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var o=e.getData(),s=this._updateSymbolDraw(o,e);s.incrementalPrepareUpdate(o),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,i){var o=e.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var s=ov("").reset(e,n,i);s.progress&&s.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var i=this._symbolDraw,o=n.pipelineContext,s=o.large;return(!i||s!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=s?new $G:new Gm,this._isLargeDraw=s,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(d),tU=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Oi),D8=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",fs).models[0]},t.type="cartesian2dAxis",t}(Oi);Ea(D8,Z1);var GD={show:!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,showMinLine:!0,showMaxLine:!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)"]}}},rU=Kn({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},GD),R8=Kn({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}}},GD),nU=Kn({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},R8),iU=pn({logBase:10},R8);const UD={category:rU,value:R8,time:nU,log:iU};var aU={value:1,category:1,time:1,log:1};function A3(r,t,e,n){Ne(aU,function(i,o){var s=Kn(Kn({},UD[o],!0),n,!0),l=function(f){kt(v,f);function v(){var C=f!==null&&f.apply(this,arguments)||this;return C.type=t+"Axis."+o,C}return v.prototype.mergeDefaultAndTheme=function(C,w){var x=PA(this),Q=x?rl(C):{},R=w.getTheme();Kn(C,R.get(o+"Axis")),Kn(C,this.getDefaultOption()),C.type=jD(C),x&&Ds(C,Q,x)},v.prototype.optionUpdated=function(){var C=this.option;C.type==="category"&&(this.__ordinalMeta=K1.createByAxisModel(this))},v.prototype.getCategories=function(C){var w=this.option;if(w.type==="category")return C?w.data:this.__ordinalMeta.categories},v.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},v.type=t+"Axis."+o,v.defaultOption=s,v}(e);r.registerComponentModel(l)}),r.registerSubTypeDefaulter(t+"Axis",jD)}function jD(r){return r.type||(r.data?"category":"value")}var oU=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return pr(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ii(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),M8=["x","y"];function HD(r){return r.type==="interval"||r.type==="time"}var sU=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=M8,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!HD(e)||!HD(n))){var i=e.getExtent(),o=n.getExtent(),s=this.dataToPoint([i[0],o[0]]),l=this.dataToPoint([i[1],o[1]]),f=i[1]-i[0],v=o[1]-o[0];if(!(!f||!v)){var C=(l[0]-s[0])/f,w=(l[1]-s[1])/v,x=s[0]-i[0]*C,Q=s[1]-o[0]*w,R=this._transform=[C,0,0,w,x,Q];this._invTransform=yd([],R)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),o=this.dataToPoint(n),s=this.getArea(),l=new gi(i[0],i[1],o[0]-i[0],o[1]-i[1]);return s.intersect(l)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var o=e[0],s=e[1];if(this._transform&&o!=null&&isFinite(o)&&s!=null&&isFinite(s))return js(i,e,this._transform);var l=this.getAxis("x"),f=this.getAxis("y");return i[0]=l.toGlobalCoord(l.dataToCoord(o,n)),i[1]=f.toGlobalCoord(f.dataToCoord(s,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,s=i.getExtent(),l=o.getExtent(),f=i.parse(e[0]),v=o.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(s[0],s[1]),f),Math.max(s[0],s[1])),n[1]=Math.min(Math.max(Math.min(l[0],l[1]),v),Math.max(l[0],l[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return js(i,e,this._invTransform);var o=this.getAxis("x"),s=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(e[0]),n),i[1]=s.coordToData(s.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(n[0],n[1])-e,s=Math.min(i[0],i[1])-e,l=Math.max(n[0],n[1])-o+e,f=Math.max(i[0],i[1])-s+e;return new gi(o,s,l,f)},t}(oU),uU=function(r){kt(t,r);function t(e,n,i,o,s){var l=r.call(this,e,n,i)||this;return l.index=0,l.type=o||"value",l.position=s||"bottom",l}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(_u);function F8(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,o={},s=i.getAxesOnZeroOf()[0],l=i.position,f=s?"onZero":l,v=i.dim,C=n.getRect(),w=[C.x,C.x+C.width,C.y,C.y+C.height],x={left:0,right:1,top:0,bottom:1,onZero:2},Q=t.get("offset")||0,R=v==="x"?[w[2]-Q,w[3]+Q]:[w[0]-Q,w[1]+Q];if(s){var L=s.toGlobalCoord(s.dataToCoord(0));R[x.onZero]=Math.max(Math.min(L,R[1]),R[0])}o.position=[v==="y"?R[x[f]]:w[0],v==="x"?R[x[f]]:w[3]],o.rotation=Math.PI/2*(v==="x"?0:1);var P={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=P[l],o.labelOffset=s?R[x[l]]-R[x.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Bs(e.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var M=t.get(["axisLabel","rotate"]);return o.labelRotate=f==="top"?-M:M,o.z2=1,o}function YD(r){return r.get("coordinateSystem")==="cartesian2d"}function JD(r){var t={xAxisModel:null,yAxisModel:null};return Ne(t,function(e,n){var i=n.replace(/Model$/,""),o=r.getReferringComponents(i,fs).models[0];t[n]=o}),t}var T8=Math.log;function WD(r,t,e){var n=Cg.prototype,i=n.getTicks.call(e),o=n.getTicks.call(e,!0),s=i.length-1,l=n.getInterval.call(e),f=t6(r,t),v=f.extent,C=f.fixMin,w=f.fixMax;if(r.type==="log"){var x=T8(r.base);v=[T8(v[0])/x,T8(v[1])/x]}r.setExtent(v[0],v[1]),r.calcNiceExtent({splitNumber:s,fixMin:C,fixMax:w});var Q=n.getExtent.call(r);C&&(v[0]=Q[0]),w&&(v[1]=Q[1]);var R=n.getInterval.call(r),L=v[0],P=v[1];if(C&&w)R=(P-L)/s;else if(C)for(P=v[0]+R*s;Pv[0]&&isFinite(L)&&isFinite(v[0]);)R=Tf(R),L=v[1]-R*s;else{var M=r.getTicks().length-1;M>s&&(R=Tf(R));var k=R*s;P=Math.ceil(v[1]/R)*R,L=Ra(P-k),L<0&&v[0]>=0?(L=0,P=Ra(k)):P>0&&v[1]<=0&&(P=0,L=-Ra(k))}var G=(i[0].value-o[0].value)/l,Y=(i[s].value-o[s].value)/l;n.setExtent.call(r,L+R*G,P+R*Y),n.setInterval.call(r,R),(G||Y)&&n.setNiceExtent.call(r,L+R,P-R)}var cU=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=M8,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(s){var l,f=fi(s),v=f.length;if(v){for(var C=[],w=v-1;w>=0;w--){var x=+f[w],Q=s[x],R=Q.model,L=Q.scale;Mk(L)&&R.get("alignTicks")&&R.get("interval")==null?C.push(Q):(l0(L,R),Mk(L)&&(l=Q))}C.length&&(l||(l=C.pop(),l0(l.scale,l.model)),Ne(C,function(P){WD(P.scale,P.model,l.scale)}))}}i(n.x),i(n.y);var o={};Ne(n.x,function(s){qD(n,"y",s,o)}),Ne(n.y,function(s){qD(n,"x",s,o)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),s=Mo(i,{width:e.getWidth(),height:e.getHeight()});this._rect=s;var l=this._axesList;f(),o&&(Ne(l,function(v){if(!v.model.get(["axisLabel","inside"])){var C=Hk(v);if(C){var w=v.isHorizontal()?"height":"width",x=v.model.get(["axisLabel","margin"]);s[w]-=C[w]+x,v.position==="top"?s.y+=C.height+x:v.position==="left"&&(s.x+=C.width+x)}}}),f()),Ne(this._coordsList,function(v){v.calcAffineTransform()});function f(){Ne(l,function(v){var C=v.isHorizontal(),w=C?[0,s.width]:[0,s.height],x=v.inverse?1:0;v.setExtent(w[x],w[1-x]),lU(v,C?s.x:s.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}Ln(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i0?"top":"bottom",o="center"):Jo(i-jm)?(s=n>0?"bottom":"top",o="center"):(s="middle",i>0&&i0?"right":"left":o=n>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:s}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),KD={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var o=t.axis.getExtent(),s=n.transform,l=[o[0],0],f=[o[1],0],v=l[0]>f[0];s&&(js(l,l,s),js(f,f,s));var C=ar({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),w=new Vs({shape:{x1:l[0],y1:l[1],x2:f[0],y2:f[1]},style:C,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Qp(w.shape,w.style.lineWidth),w.anid="line",e.add(w);var x=t.get(["axisLine","symbol"]);if(x!=null){var Q=t.get(["axisLine","symbolSize"]);en(x)&&(x=[x,x]),(en(Q)||$i(Q))&&(Q=[Q,Q]);var R=cr(t.get(["axisLine","symbolOffset"])||0,Q),L=Q[0],P=Q[1];Ne([{rotate:r.rotation+Math.PI/2,offset:R[0],r:0},{rotate:r.rotation-Math.PI/2,offset:R[1],r:Math.sqrt((l[0]-f[0])*(l[0]-f[0])+(l[1]-f[1])*(l[1]-f[1]))}],function(M,k){if(x[k]!=="none"&&x[k]!=null){var G=yt(x[k],-L/2,-P/2,L,P,C.stroke,!0),Y=M.r+M.offset,re=v?f:l;G.attr({rotation:M.rotate,x:re[0]+Y*Math.cos(r.rotation),y:re[1]-Y*Math.sin(r.rotation),silent:!0,z2:11}),e.add(G)}})}}},axisTickLabel:function(r,t,e,n){var i=AU(e,n,t,r),o=gU(e,n,t,r);if(fU(t,o,i),dU(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=s4(pr(o,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));GB(s)}},axisName:function(r,t,e,n){var i=Bs(r.axisName,t.get("name"));if(i){var o=t.get("nameLocation"),s=r.nameDirection,l=t.getModel("nameTextStyle"),f=t.get("nameGap")||0,v=t.axis.getExtent(),C=v[0]>v[1]?-1:1,w=[o==="start"?v[0]-C*f:o==="end"?v[1]+C*f:(v[0]+v[1])/2,ZD(o)?r.labelOffset+s*f:0],x,Q=t.get("nameRotate");Q!=null&&(Q=Q*jm/180);var R;ZD(o)?x=mh.innerTextLayout(r.rotation,Q??r.rotation,s):(x=hU(r.rotation,o,Q||0,v),R=r.axisNameAvailableWidth,R!=null&&(R=Math.abs(R/Math.sin(x.rotation)),!isFinite(R)&&(R=null)));var L=l.getFont(),P=t.get("nameTruncate",!0)||{},M=P.ellipsis,k=Bs(r.nameTruncateMaxWidth,P.maxWidth,R),G=new Mn({x:w[0],y:w[1],rotation:x.rotation,silent:mh.isLabelSilent(t),style:La(l,{text:i,font:L,overflow:"truncate",width:k,ellipsis:M,fill:l.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:l.get("align")||x.textAlign,verticalAlign:l.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(Ml({el:G,componentModel:t,itemName:i}),G.__fullText=i,G.anid="name",t.get("triggerEvent")){var Y=mh.makeAxisEventDataBase(t);Y.targetType="axisName",Y.name=i,Un(G).eventData=Y}n.add(G),G.updateTransform(),e.add(G),G.decomposeTransform()}}};function hU(r,t,e,n){var i=gy(e-r),o,s,l=n[0]>n[1],f=t==="start"&&!l||t!=="start"&&l;return Jo(i-jm/2)?(s=f?"bottom":"top",o="center"):Jo(i-jm*1.5)?(s=f?"top":"bottom",o="center"):(s="middle",ijm/2?o=f?"left":"right":o=f?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:s}}function fU(r,t,e){if(!Yk(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var o=t[0],s=t[1],l=t[t.length-1],f=t[t.length-2],v=e[0],C=e[1],w=e[e.length-1],x=e[e.length-2];n===!1?(rd(o),rd(v)):VD(o,s)&&(n?(rd(s),rd(C)):(rd(o),rd(v))),i===!1?(rd(l),rd(w)):VD(f,l)&&(i?(rd(f),rd(x)):(rd(l),rd(w)))}}function rd(r){r&&(r.ignore=!0)}function VD(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=M0([]);return nf(i,i,-r.rotation),e.applyTransform(ic([],i,r.getLocalTransform())),n.applyTransform(ic([],i,t.getLocalTransform())),e.intersect(n)}}function ZD(r){return r==="middle"||r==="center"}function XD(r,t,e,n,i){for(var o=[],s=[],l=[],f=0;f=0||r===t}function bU(r){var t=O8(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,o=e.get("status"),s=e.get("value");s!=null&&(s=n.parse(s));var l=P8(e);o==null&&(i.status=l?"show":"hide");var f=n.getExtent().slice();f[0]>f[1]&&f.reverse(),(s==null||s>f[1])&&(s=f[1]),s0&&!R.min?R.min=0:R.min!=null&&R.min<0&&!R.max&&(R.max=0);var L=f;R.color!=null&&(L=pn({color:R.color},f));var P=Kn(Bn(R),{boundaryGap:e,splitNumber:n,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:R.text,showName:v,nameLocation:"end",nameGap:w,nameTextStyle:L,triggerEvent:x},!1);if(en(C)){var M=P.name;P.name=C.replace("{value}",M??"")}else bn(C)&&(P.name=C(P.name,P));var k=new Ia(P,null,this.ecModel);return Ea(k,Z1.prototype),k.mainType="radar",k.componentIndex=this.componentIndex,k},this);this._indicatorModels=Q},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Kn({lineStyle:{color:"#bbb"}},L4.axisLine),axisLabel:X6(L4.axisLabel,!1),axisTick:X6(L4.axisTick,!1),splitLine:X6(L4.splitLine,!0),splitArea:X6(L4.splitArea,!0),indicator:[]},t}(Oi),FU=["axisLine","axisTickLabel","axisName"],TU=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var o=this.group;o.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes(),o=pr(i,function(s){var l=s.model.get("showName")?s.name:"",f=new mh(s.model,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return f});Ne(o,function(s){Ne(FU,s.add,s),this.group.add(s.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var o=e.get("shape"),s=e.getModel("splitLine"),l=e.getModel("splitArea"),f=s.getModel("lineStyle"),v=l.getModel("areaStyle"),C=s.get("show"),w=l.get("show"),x=f.get("color"),Q=v.get("color"),R=yr(x)?x:[x],L=yr(Q)?Q:[Q],P=[],M=[];function k(ze,ut,ft){var Qt=ft%ut.length;return ze[Qt]=ze[Qt]||[],Qt}if(o==="circle")for(var G=i[0].getTicksCoords(),Y=n.cx,re=n.cy,ie=0;ie3?1.4:s>1?1.2:1.1,C=o>0?v:1/v;j8(this,"zoom","zoomOnMouseWheel",e,{scale:C,originX:l,originY:f,isAvailableBehavior:null})}if(i){var w=Math.abs(o),x=(o>0?1:-1)*(w>3?.4:w>1?.15:.05);j8(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:x,originX:l,originY:f,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!cR(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:.9090909090909091;j8(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(au);function j8(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(rf(n.event),lR(r,t,e,n,i))}function lR(r,t,e,n,i){i.isAvailableBehavior=an($6,null,e,n),r.trigger(t,i)}function $6(r,t,e){var n=e[r];return!r||n&&(!en(n)||t.event[n+"Key"])}function H8(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function Y8(r,t,e,n){var i=r.target,o=r.zoomLimit,s=r.zoom=r.zoom||1;if(s*=t,o){var l=o.min||0,f=o.max||1/0;s=Math.max(Math.min(f,s),l)}var v=s/r.zoom;r.zoom=s,i.x-=(e-i.x)*(v-1),i.y-=(n-i.y)*(v-1),i.scaleX*=v,i.scaleY*=v,i.dirty()}var jU={axisPointer:1,tooltip:1,brush:1};function e9(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!jU.hasOwnProperty(n.mainType)&&i&&i.model!==e}function hR(r){if(en(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var J8,t9={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"},fR=fi(t9),r9={"alignment-baseline":"textBaseline","stop-color":"stopColor"},AR=fi(r9),HU=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=hR(t);this._defsUsePending=[];var i=new Nn;this._root=i;var o=[],s=n.getAttribute("viewBox")||"",l=parseFloat(n.getAttribute("width")||e.width),f=parseFloat(n.getAttribute("height")||e.height);isNaN(l)&&(l=null),isNaN(f)&&(f=null),Gf(n,i,null,!0,!1);for(var v=n.firstChild;v;)this._parseNode(v,i,o,null,!1,!1),v=v.nextSibling;WU(this._defs,this._defsUsePending),this._defsUsePending=[];var C,w;if(s){var x=n9(s);x.length>=4&&(C={x:parseFloat(x[0]||0),y:parseFloat(x[1]||0),width:parseFloat(x[2]),height:parseFloat(x[3])})}if(C&&l!=null&&f!=null&&(w=bR(C,{x:0,y:0,width:l,height:f}),!e.ignoreViewBox)){var Q=i;i=new Nn,i.add(Q),Q.scaleX=Q.scaleY=w.scale,Q.x=w.x,Q.y=w.y}return!e.ignoreRootClip&&l!=null&&f!=null&&i.setClipPath(new ta({shape:{x:0,y:0,width:l,height:f}})),{root:i,width:l,height:f,viewBoxRect:C,viewBoxTransform:w,named:o}},r.prototype._parseNode=function(t,e,n,i,o,s){var l=t.nodeName.toLowerCase(),f,v=i;if(l==="defs"&&(o=!0),l==="text"&&(s=!0),l==="defs"||l==="switch")f=e;else{if(!o){var C=J8[l];if(C&&ln(J8,l)){f=C.call(this,t,e);var w=t.getAttribute("name");if(w){var x={name:w,namedFrom:null,svgNodeTagLower:l,el:f};n.push(x),l==="g"&&(v=x)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:f});e.add(f)}}var Q=dR[l];if(Q&&ln(dR,l)){var R=Q.call(this,t),L=t.getAttribute("id");L&&(this._defs[L]=R)}}if(f&&f.isGroup)for(var P=t.firstChild;P;)P.nodeType===1?this._parseNode(P,f,n,v,o,s):P.nodeType===3&&s&&this._parseText(P,f),P=P.nextSibling},r.prototype._parseText=function(t,e){var n=new Od({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});nd(e,n),Gf(t,n,this._defsUsePending,!1,!1),YU(n,e);var i=n.style,o=i.fontSize;o&&o<9&&(i.fontSize=9,n.scaleX*=o/9,n.scaleY*=o/9);var s=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=s;var l=n.getBoundingRect();return this._textX+=l.width,e.add(n),n},r.internalField=function(){J8={g:function(t,e){var n=new Nn;return nd(e,n),Gf(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new ta;return nd(e,n),Gf(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Gu;return nd(e,n),Gf(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Vs;return nd(e,n),Gf(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new fu;return nd(e,n),Gf(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),i;n&&(i=vR(n));var o=new Yu({shape:{points:i||[]},silent:!0});return nd(e,o),Gf(t,o,this._defsUsePending,!1,!1),o},polyline:function(t,e){var n=t.getAttribute("points"),i;n&&(i=vR(n));var o=new pc({shape:{points:i||[]},silent:!0});return nd(e,o),Gf(t,o,this._defsUsePending,!1,!1),o},image:function(t,e){var n=new Ws;return nd(e,n),Gf(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",s=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(s);var l=new Nn;return nd(e,l),Gf(t,l,this._defsUsePending,!1,!0),l},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var o=t.getAttribute("dx")||"0",s=t.getAttribute("dy")||"0",l=new Nn;return nd(e,l),Gf(t,l,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(s),l},path:function(t,e){var n=t.getAttribute("d")||"",i=Xd(n);return nd(e,i),Gf(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),dR={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),o=new tg(t,e,n,i);return gR(r,o),pR(r,o),o},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),i=new LI(t,e,n);return gR(r,i),pR(r,i),i}};function gR(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function pR(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var o={};IR(e,o,o);var s=o.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:s})}e=e.nextSibling}}function nd(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),pn(t.__inheritedStyle,r.__inheritedStyle))}function vR(r){for(var t=n9(r),e=[],n=0;n0;o-=2){var s=n[o],l=n[o-1],f=n9(s);switch(i=i||Lu(),l){case"translate":Hs(i,i,[parseFloat(f[0]),parseFloat(f[1]||"0")]);break;case"scale":Rv(i,i,[parseFloat(f[0]),parseFloat(f[1]||f[0])]);break;case"rotate":nf(i,i,-parseFloat(f[0])*W8,[parseFloat(f[1]||"0"),parseFloat(f[2]||"0")]);break;case"skewX":var v=Math.tan(parseFloat(f[0])*W8);ic(i,[1,0,v,1,0,0],i);break;case"skewY":var C=Math.tan(parseFloat(f[0])*W8);ic(i,[1,C,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(f[0]),i[1]=parseFloat(f[1]),i[2]=parseFloat(f[2]),i[3]=parseFloat(f[3]),i[4]=parseFloat(f[4]),i[5]=parseFloat(f[5]);break}}t.setLocalTransform(i)}}var mR=/([^\s:;]+)\s*:\s*([^:;]+)/g;function IR(r,t,e){var n=r.getAttribute("style");if(n){mR.lastIndex=0;for(var i;(i=mR.exec(n))!=null;){var o=i[1],s=ln(t9,o)?t9[o]:null;s&&(t[s]=i[2]);var l=ln(r9,o)?r9[o]:null;l&&(e[l]=i[2])}}}function VU(r,t,e){for(var n=0;n0,P={api:n,geo:f,mapOrGeoModel:t,data:l,isVisualEncodedByVisualMap:L,isGeo:s,transformInfoRaw:x};f.resourceType==="geoJSON"?this._buildGeoJSON(P):f.resourceType==="geoSVG"&&this._buildSVG(P),this._updateController(t,e,n),this._updateMapSelectHandler(t,v,n,i)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=mn(),n=mn(),i=this._regionsGroup,o=t.transformInfoRaw,s=t.mapOrGeoModel,l=t.data,f=t.geo.projection,v=f&&f.stream;function C(Q,R){return R&&(Q=R(Q)),Q&&[Q[0]*o.scaleX+o.x,Q[1]*o.scaleY+o.y]}function w(Q){for(var R=[],L=!v&&f&&f.project,P=0;P=0)&&(x=i);var Q=s?{normal:{align:"center",verticalAlign:"middle"}}:null;Uo(t,_s(n),{labelFetcher:x,labelDataIndex:w,defaultText:e},Q);var R=t.getTextContent();if(R&&(wR(R).ignore=R.ignore,t.textConfig&&s)){var L=t.getBoundingRect().clone();t.textConfig.layoutRect=L,t.textConfig.position=[(s[0]-L.x)/L.width*100+"%",(s[1]-L.y)/L.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function xR(r,t,e,n,i,o){r.data?r.data.setItemGraphicEl(o,t):Un(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:e,region:n&&n.option||{}}}function SR(r,t,e,n,i){r.data||Ml({el:t,componentModel:i,itemName:e,itemTooltipOption:n.get("tooltip")})}function _R(r,t,e,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=n.getModel("emphasis"),s=o.get("focus");return uo(t,s,o.get("blurScope"),o.get("disabled")),r.isGeo&&R5(t,i,e),s}function DR(r,t,e){var n=[],i;function o(){i=[]}function s(){i.length&&(n.push(i),i=[])}var l=t({polygonStart:o,polygonEnd:s,lineStart:o,lineEnd:s,point:function(f,v){isFinite(f)&&isFinite(v)&&i.push([f,v])},sphere:function(){}});return!e&&l.polygonStart(),Ne(r,function(f){l.lineStart();for(var v=0;v-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={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}(no);function pj(r,t){var e={};return Ne(r,function(n){n.each(n.mapDimension("value"),function(i,o){var s="ec-"+n.getName(o);e[s]=e[s]||[],isNaN(i)||e[s].push(i)})}),r[0].map(r[0].mapDimension("value"),function(n,i){for(var o="ec-"+r[0].getName(i),s=0,l=1/0,f=-1/0,v=e[o].length,C=0;C1?(Y.width=G,Y.height=G/P):(Y.height=G,Y.width=G*P),Y.y=k[1]-Y.height/2,Y.x=k[0]-Y.width/2;else{var re=r.getBoxLayoutParams();re.aspect=P,Y=Mo(re,{width:R,height:L})}this.setViewRect(Y.x,Y.y,Y.width,Y.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function Ij(r,t){Ne(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var bj=function(){function r(){this.dimensions=FR}return r.prototype.create=function(t,e){var n=[];function i(s){return{nameProperty:s.get("nameProperty"),aspectScale:s.get("aspectScale"),projection:s.get("projection")}}t.eachComponent("geo",function(s,l){var f=s.get("map"),v=new K8(f+l,f,ar({nameMap:s.get("nameMap")},i(s)));v.zoomLimit=s.get("scaleLimit"),n.push(v),s.coordinateSystem=v,v.model=s,v.resize=LR,v.resize(s,e)}),t.eachSeries(function(s){var l=s.get("coordinateSystem");if(l==="geo"){var f=s.get("geoIndex")||0;s.coordinateSystem=n[f]}});var o={};return t.eachSeriesByType("map",function(s){if(!s.getHostGeoModel()){var l=s.getMapType();o[l]=o[l]||[],o[l].push(s)}}),Ne(o,function(s,l){var f=pr(s,function(C){return C.get("nameMap")}),v=new K8(l,l,ar({nameMap:Us(f)},i(s[0])));v.zoomLimit=Bs.apply(null,pr(s,function(C){return C.get("scaleLimit")})),n.push(v),v.resize=LR,v.resize(s[0],e),Ne(s,function(C){C.coordinateSystem=v,Ij(v,C)})}),n},r.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),s=mn(),l=0;l=0;s--){var l=i[s];l.hierNode={defaultAncestor:null,ancestor:l,prelim:0,modifier:0,change:0,shift:0,i:s,thread:null},e.push(l)}}function Qj(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,i=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){_j(r);var o=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+t(r,i),r.hierNode.modifier=r.hierNode.prelim-o):r.hierNode.prelim=o}else i&&(r.hierNode.prelim=i.hierNode.prelim+t(r,i));r.parentNode.hierNode.defaultAncestor=Dj(r,i,r.parentNode.hierNode.defaultAncestor||n[0],t)}function xj(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function GR(r){return arguments.length?r:Fj}function G4(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function Sj(r,t){return Mo(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function _j(r){for(var t=r.children,e=t.length,n=0,i=0;--e>=0;){var o=t[e];o.hierNode.prelim+=n,o.hierNode.modifier+=n,i+=o.hierNode.change,n+=o.hierNode.shift+i}}function Dj(r,t,e,n){if(t){for(var i=r,o=r,s=o.parentNode.children[0],l=t,f=i.hierNode.modifier,v=o.hierNode.modifier,C=s.hierNode.modifier,w=l.hierNode.modifier;l=Z8(l),o=X8(o),l&&o;){i=Z8(i),s=X8(s),i.hierNode.ancestor=r;var x=l.hierNode.prelim+w-o.hierNode.prelim-v+n(l,o);x>0&&(Mj(Rj(l,r,e),r,x),v+=x,f+=x),w+=l.hierNode.modifier,v+=o.hierNode.modifier,f+=i.hierNode.modifier,C+=s.hierNode.modifier}l&&!Z8(i)&&(i.hierNode.thread=l,i.hierNode.modifier+=w-f),o&&!X8(s)&&(s.hierNode.thread=o,s.hierNode.modifier+=v-C,e=r)}return e}function Z8(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function X8(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function Rj(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function Mj(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function Fj(r,t){return r.parentNode===t.parentNode?1:2}var Tj=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),Lj=function(r){kt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Tj},t.prototype.buildPath=function(e,n){var i=n.childPoints,o=i.length,s=n.parentPoint,l=i[0],f=i[o-1];if(o===1){e.moveTo(s[0],s[1]),e.lineTo(l[0],l[1]);return}var v=n.orient,C=v==="TB"||v==="BT"?0:1,w=1-C,x=jr(n.forkPosition,1),Q=[];Q[C]=s[C],Q[w]=s[w]+(f[w]-s[w])*x,e.moveTo(s[0],s[1]),e.lineTo(Q[0],Q[1]),e.moveTo(l[0],l[1]),Q[C]=l[C],e.lineTo(Q[0],Q[1]),Q[C]=f[C],e.lineTo(Q[0],Q[1]),e.lineTo(f[0],f[1]);for(var R=1;Rk.x,re||(Y=Y-Math.PI));var le=re?"left":"right",pe=l.getModel("label"),ve=pe.get("rotate"),Ee=ve*(Math.PI/180),Se=P.getTextContent();Se&&(P.setTextConfig({position:pe.get("position")||le,rotation:ve==null?-Y:Ee,origin:"center"}),Se.setStyle("verticalAlign","middle"))}var ke=l.get(["emphasis","focus"]),Le=ke==="relative"?x0(s.getAncestorsIndices(),s.getDescendantIndices()):ke==="ancestor"?s.getAncestorsIndices():ke==="descendant"?s.getDescendantIndices():null;Le&&(Un(e).focus=Le),Oj(i,s,C,e,R,Q,L,n),e.__edge&&(e.onHoverStateChange=function(be){if(be!=="blur"){var ze=s.parentNode&&r.getItemGraphicEl(s.parentNode.dataIndex);ze&&ze.hoverState===Mi||bp(e.__edge,be)}})}function Oj(r,t,e,n,i,o,s,l){var f=t.getModel(),v=r.get("edgeShape"),C=r.get("layout"),w=r.getOrient(),x=r.get(["lineStyle","curveness"]),Q=r.get("edgeForkPosition"),R=f.getModel("lineStyle").getLineStyle(),L=n.__edge;if(v==="curve")t.parentNode&&t.parentNode!==e&&(L||(L=n.__edge=new Bp({shape:$8(C,w,x,i,i)})),ga(L,{shape:$8(C,w,x,o,s)},r));else if(v==="polyline"&&C==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var P=t.children,M=[],k=0;ke&&(e=i.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var n=e.getData().tree.root,i=r.targetNode;if(en(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var o=r.targetNodeId;if(o!=null&&(i=n.getNodeById(o)))return{node:i}}}function zR(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function rS(r,t){var e=zR(r);return Vn(e,t)>=0}function a9(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var qj=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},i=e.leaves||{},o=new Ia(i,this,this.ecModel),s=tS.createTree(n,this,l);function l(w){w.wrapMethod("getItemModel",function(x,Q){var R=s.getNodeByDataIndex(Q);return R&&R.children.length&&R.isExpand||(x.parentModel=o),x})}var f=0;s.eachNode("preorder",function(w){w.depth>f&&(f=w.depth)});var v=e.expandAndCollapse,C=v&&e.initialTreeDepth>=0?e.initialTreeDepth:f;return s.root.eachNode("preorder",function(w){var x=w.hostTree.data.getRawDataItem(w.dataIndex);w.isExpand=x&&x.collapsed!=null?!x.collapsed:w.depth<=C}),s.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(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,n,i){for(var o=this.getData().tree,s=o.root.children[0],l=o.getNodeByDataIndex(e),f=l.getValue(),v=l.name;l&&l!==s;)v=l.parentNode.name+"."+v,l=l.parentNode;return Xs("nameValue",{name:v,value:f,noValue:isNaN(f)||f==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=a9(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={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}(no);function zj(r,t,e){for(var n=[r],i=[],o;o=n.pop();)if(i.push(o),o.isExpand){var s=o.children;if(s.length)for(var l=0;l=0;o--)e.push(i[o])}}function Kj(r,t){r.eachSeriesByType("tree",function(e){Vj(e,t)})}function Vj(r,t){var e=Sj(r,t);r.layoutInfo=e;var n=r.get("layout"),i=0,o=0,s=null;n==="radial"?(i=2*Math.PI,o=Math.min(e.height,e.width)/2,s=GR(function(G,Y){return(G.parentNode===Y.parentNode?1:2)/G.depth})):(i=e.width,o=e.height,s=GR());var l=r.getData().tree.root,f=l.children[0];if(f){kj(l),zj(f,Qj,s),l.hierNode.modifier=-f.hierNode.prelim,j4(f,xj);var v=f,C=f,w=f;j4(f,function(G){var Y=G.getLayout().x;YC.getLayout().x&&(C=G),G.depth>w.depth&&(w=G)});var x=v===C?1:s(v,C)/2,Q=x-v.getLayout().x,R=0,L=0,P=0,M=0;if(n==="radial")R=i/(C.getLayout().x+x+Q),L=o/(w.depth-1||1),j4(f,function(G){P=(G.getLayout().x+Q)*R,M=(G.depth-1)*L;var Y=G4(P,M);G.setLayout({x:Y.x,y:Y.y,rawX:P,rawY:M},!0)});else{var k=r.getOrient();k==="RL"||k==="LR"?(L=o/(C.getLayout().x+x+Q),R=i/(w.depth-1||1),j4(f,function(G){M=(G.getLayout().x+Q)*L,P=k==="LR"?(G.depth-1)*R:i-(G.depth-1)*R,G.setLayout({x:P,y:M},!0)})):(k==="TB"||k==="BT")&&(R=i/(C.getLayout().x+x+Q),L=o/(w.depth-1||1),j4(f,function(G){P=(G.getLayout().x+Q)*R,M=k==="TB"?(G.depth-1)*L:o-(G.depth-1)*L,G.setLayout({x:P,y:M},!0)}))}}}function Zj(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(i){var o=i.getModel(),s=o.getModel("itemStyle").getItemStyle(),l=e.ensureUniqueItemVisual(i.dataIndex,"style");ar(l,s)})})}function Xj(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,o=n.getData().tree,s=o.getNodeByDataIndex(i);s.isExpand=!s.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var o=i.coordinateSystem,s=V8(o,t,void 0,n);i.setCenter&&i.setCenter(s.center),i.setZoom&&i.setZoom(s.zoom)})})}function $j(r){r.registerChartView(Nj),r.registerSeriesModel(qj),r.registerLayout(Kj),r.registerVisual(Zj),Xj(r)}var KR=["treemapZoomToNode","treemapRender","treemapMove"];function eH(r){for(var t=0;t1;)o=o.parentNode;var s=lb(r.ecModel,o.name||o.dataIndex+"",n);i.setVisual("decal",s)})}var tH=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var i={name:e.name,children:e.data};ZR(i);var o=e.levels||[],s=this.designatedVisualItemStyle={},l=new Ia({itemStyle:s},this,n);o=e.levels=rH(o,n);var f=pr(o||[],function(w){return new Ia(w,l,n)},this),v=tS.createTree(i,this,C);function C(w){w.wrapMethod("getItemModel",function(x,Q){var R=v.getNodeByDataIndex(Q),L=R?f[R.depth]:null;return x.parentModel=L||l,x})}return v.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,i){var o=this.getData(),s=this.getRawValue(e),l=o.getName(e);return Xs("nameValue",{name:l,value:s})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=a9(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},ar(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=mn(),this._idIndexMapCount=0);var i=n.get(e);return i==null&&n.set(e,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){VR(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:.32*.32,scaleLimit:null,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"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},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%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(no);function ZR(r){var t=0;Ne(r.children,function(n){ZR(n);var i=n.value;yr(i)&&(i=i[0]),t+=i});var e=r.value;yr(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),yr(r.value)?r.value[0]=e:r.value=e}function rH(r,t){var e=ja(t.get("color")),n=ja(t.get(["aria","decal","decals"]));if(e){r=r||[];var i,o;Ne(r,function(l){var f=new Ia(l),v=f.get("color"),C=f.get("decal");(f.get(["itemStyle","color"])||v&&v!=="none")&&(i=!0),(f.get(["itemStyle","decal"])||C&&C!=="none")&&(o=!0)});var s=r[0]||(r[0]={});return i||(s.color=e.slice()),!o&&n&&(s.decal=n.slice()),r}}var nH=8,XR=8,nS=5,iH=function(){function r(t){this.group=new Nn,t.add(this.group)}return r.prototype.render=function(t,e,n,i){var o=t.getModel("breadcrumb"),s=this.group;if(s.removeAll(),!(!o.get("show")||!n)){var l=o.getModel("itemStyle"),f=o.getModel("emphasis"),v=l.getModel("textStyle"),C=f.getModel(["itemStyle","textStyle"]),w={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,w,v),this._renderContent(t,w,l,f,v,C,i),OA(s,w.pos,w.box)}},r.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var o=es(i.getModel().get("name"),""),s=n.getTextRect(o),l=Math.max(s.width+nH*2,e.emptyItemWidth);e.totalWidth+=l+XR,e.renderList.push({node:i,text:o,width:l})}},r.prototype._renderContent=function(t,e,n,i,o,s,l){for(var f=0,v=e.emptyItemWidth,C=t.get(["breadcrumb","height"]),w=R1(e.pos,e.box),x=e.totalWidth,Q=e.renderList,R=i.getModel("itemStyle").getItemStyle(),L=Q.length-1;L>=0;L--){var P=Q[L],M=P.node,k=P.width,G=P.text;x>w.width&&(x-=k-v,k=v,G=null);var Y=new Yu({shape:{points:aH(f,0,k,C,L===Q.length-1,L===0)},style:pn(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Mn({style:La(o,{text:G})}),textConfig:{position:"inside"},z2:Ip*1e4,onclick:ni(l,M)});Y.disableLabelAnimation=!0,Y.getTextContent().ensureState("emphasis").style=La(s,{text:G}),Y.ensureState("emphasis").style=R,uo(Y,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(Y),oH(Y,t,M),f+=k+XR}},r.prototype.remove=function(){this.group.removeAll()},r}();function aH(r,t,e,n,i,o){var s=[[i?r:r-nS,t],[r+e,t],[r+e,t+n],[i?r:r-nS,t+n]];return!o&&s.splice(2,0,[r+e+nS,t+n/2]),!i&&s.push([r,t+n/2]),s}function oH(r,t,e){Un(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&a9(e,t)}}var sH=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,i,o){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:o}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,o=this._storage.length;ieM||Math.abs(e.dy)>eM)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(e){var n=e.originX,i=e.originY,o=e.scale;if(this._state!=="animating"){var s=this.seriesModel.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var f=new gi(l.x,l.y,l.width,l.height),v=null,C=this._controllerHost;v=C.zoomLimit;var w=C.zoom=C.zoom||1;if(w*=o,v){var x=v.min||0,Q=v.max||1/0;w=Math.max(Math.min(Q,w),x)}var R=w/C.zoom;C.zoom=w;var L=this.seriesModel.layoutInfo;n-=L.x,i-=L.y;var P=Lu();Hs(P,P,[-n,-i]),Rv(P,P,[R,R]),Hs(P,P,[n,i]),f.applyTransform(P),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:f.x,y:f.y,width:f.width,height:f.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(i){if(n._state==="ready"){var o=n.seriesModel.get("nodeClick",!0);if(o){var s=n.findTarget(i.offsetX,i.offsetY);if(s){var l=s.node;if(l.getLayout().isLeafRoot)n._rootToNode(s);else if(o==="zoomToNode")n._zoomToNode(s);else if(o==="link"){var f=l.hostTree.data.getItemModel(l.dataIndex),v=f.get("link",!0),C=f.get("target",!0)||"blank";v&&nm(v,C)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,i){var o=this;i||(i=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new iH(this.group))).render(e,n,i.node,function(s){o._state!=="animating"&&(rS(e.getViewRoot(),s)?o._rootToNode({node:s}):o._zoomToNode({node:s}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=H4(),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,n){var i,o=this.seriesModel.getViewRoot();return o.eachNode({attr:"viewChildren",order:"preorder"},function(s){var l=this._storage.background[s.getRawIndex()];if(l){var f=l.transformCoordToLocal(e,n),v=l.shape;if(v.x<=f[0]&&f[0]<=v.x+v.width&&v.y<=f[1]&&f[1]<=v.y+v.height)i={node:s,offsetX:f[0],offsetY:f[1]};else return!1}},this),i},t.type="treemap",t}(d);function H4(){return{nodeGroup:[],background:[],content:[]}}function AH(r,t,e,n,i,o,s,l,f,v){if(!s)return;var C=s.getLayout(),w=r.getData(),x=s.getModel();if(w.setItemGraphicEl(s.dataIndex,null),!C||!C.isInView)return;var Q=C.width,R=C.height,L=C.borderWidth,P=C.invisible,M=s.getRawIndex(),k=l&&l.getRawIndex(),G=s.viewChildren,Y=C.upperHeight,re=G&&G.length,ie=x.getModel("itemStyle"),le=x.getModel(["emphasis","itemStyle"]),pe=x.getModel(["blur","itemStyle"]),ve=x.getModel(["select","itemStyle"]),Ee=ie.get("borderRadius")||0,Se=ir("nodeGroup",iS);if(!Se)return;if(f.add(Se),Se.x=C.x||0,Se.y=C.y||0,Se.markRedraw(),o9(Se).nodeWidth=Q,o9(Se).nodeHeight=R,C.isAboveViewRoot)return Se;var ke=ir("background",$R,v,lH);ke&&Gt(Se,ke,re&&C.upperLabelHeight);var Le=x.getModel("emphasis"),be=Le.get("focus"),ze=Le.get("blurScope"),ut=Le.get("disabled"),ft=be==="ancestor"?s.getAncestorsIndices():be==="descendant"?s.getDescendantIndices():be;if(re)Pu(Se)&&SA(Se,!1),ke&&(SA(ke,!ut),w.setItemGraphicEl(s.dataIndex,ke),xA(ke,ft,ze));else{var Qt=ir("content",$R,v,hH);Qt&&Ct(Se,Qt),ke.disableMorphing=!0,ke&&Pu(ke)&&SA(ke,!1),SA(Se,!ut),w.setItemGraphicEl(s.dataIndex,Se);var vt=x.getShallow("cursor");vt&&Qt.attr("cursor",vt),xA(Se,ft,ze)}return Se;function Gt(Vr,qr,Tn){var zr=Un(qr);if(zr.dataIndex=s.dataIndex,zr.seriesIndex=r.seriesIndex,qr.setShape({x:0,y:0,width:Q,height:R,r:Ee}),P)St(qr);else{qr.invisible=!1;var Qn=s.getVisual("style"),Yi=Qn.stroke,Pe=nM(ie);Pe.fill=Yi;var hr=yC(le);hr.fill=le.get("borderColor");var rr=yC(pe);rr.fill=pe.get("borderColor");var Bt=yC(ve);if(Bt.fill=ve.get("borderColor"),Tn){var wt=Q-2*L;dr(qr,Yi,Qn.opacity,{x:L,y:0,width:wt,height:Y})}else qr.removeTextContent();qr.setStyle(Pe),qr.ensureState("emphasis").style=hr,qr.ensureState("blur").style=rr,qr.ensureState("select").style=Bt,xl(qr)}Vr.add(qr)}function Ct(Vr,qr){var Tn=Un(qr);Tn.dataIndex=s.dataIndex,Tn.seriesIndex=r.seriesIndex;var zr=Math.max(Q-2*L,0),Qn=Math.max(R-2*L,0);if(qr.culling=!0,qr.setShape({x:L,y:L,width:zr,height:Qn,r:Ee}),P)St(qr);else{qr.invisible=!1;var Yi=s.getVisual("style"),Pe=Yi.fill,hr=nM(ie);hr.fill=Pe,hr.decal=Yi.decal;var rr=yC(le),Bt=yC(pe),wt=yC(ve);dr(qr,Pe,Yi.opacity,null),qr.setStyle(hr),qr.ensureState("emphasis").style=rr,qr.ensureState("blur").style=Bt,qr.ensureState("select").style=wt,xl(qr)}Vr.add(qr)}function St(Vr){!Vr.invisible&&o.push(Vr)}function dr(Vr,qr,Tn,zr){var Qn=x.getModel(zr?rM:tM),Yi=es(x.get("name"),null),Pe=Qn.getShallow("show");Uo(Vr,_s(x,zr?rM:tM),{defaultText:Pe?Yi:null,inheritColor:qr,defaultOpacity:Tn,labelFetcher:r,labelDataIndex:s.dataIndex});var hr=Vr.getTextContent();if(hr){var rr=hr.style,Bt=yl(rr.padding||0);zr&&(Vr.setTextConfig({layoutRect:zr}),hr.disableLabelLayout=!0),hr.beforeUpdate=function(){var Yt=Math.max((zr?zr.width:Vr.shape.width)-Bt[1]-Bt[3],0),Br=Math.max((zr?zr.height:Vr.shape.height)-Bt[0]-Bt[2],0);(rr.width!==Yt||rr.height!==Br)&&hr.setStyle({width:Yt,height:Br})},rr.truncateMinChar=2,rr.lineOverflow="truncate",ur(rr,zr,C);var wt=hr.getState("emphasis");ur(wt?wt.style:null,zr,C)}}function ur(Vr,qr,Tn){var zr=Vr?Vr.text:null;if(!qr&&Tn.isLeafRoot&&zr!=null){var Qn=r.get("drillDownIcon",!0);Vr.text=Qn?Qn+" "+zr:zr}}function ir(Vr,qr,Tn,zr){var Qn=k!=null&&e[Vr][k],Yi=i[Vr];return Qn?(e[Vr][k]=null,Fn(Yi,Qn)):P||(Qn=new qr,Qn instanceof ii&&(Qn.z2=dH(Tn,zr)),Ei(Yi,Qn)),t[Vr][M]=Qn}function Fn(Vr,qr){var Tn=Vr[M]={};qr instanceof iS?(Tn.oldX=qr.x,Tn.oldY=qr.y):Tn.oldShape=ar({},qr.shape)}function Ei(Vr,qr){var Tn=Vr[M]={},zr=s.parentNode,Qn=qr instanceof Nn;if(zr&&(!n||n.direction==="drillDown")){var Yi=0,Pe=0,hr=i.background[zr.getRawIndex()];!n&&hr&&hr.oldShape&&(Yi=hr.oldShape.width,Pe=hr.oldShape.height),Qn?(Tn.oldX=0,Tn.oldY=Pe):Tn.oldShape={x:Yi,y:Pe,width:0,height:0}}Tn.fadein=!Qn}}function dH(r,t){return r*cH+t}var Y4=Ne,gH=Ln,s9=-1,Ic=function(){function r(t){var e=t.mappingMethod,n=t.type,i=this.option=Bn(t);this.type=n,this.mappingMethod=e,this._normalizeData=yH[e];var o=r.visualHandlers[n];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[e],e==="piecewise"?(aS(i),pH(i)):e==="category"?i.categories?vH(i):aS(i,!0):(tc(e!=="linear"||i.dataExtent),aS(i))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return an(this._normalizeData,this)},r.listVisualTypes=function(){return fi(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){Ln(t)?Ne(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var i,o=yr(t)?[]:Ln(t)?{}:(i=!0,null);return r.eachVisual(t,function(s,l){var f=e.call(n,s,l);i?o=f:o[l]=f}),o},r.retrieveVisuals=function(t){var e={},n;return t&&Y4(r.visualHandlers,function(i,o){t.hasOwnProperty(o)&&(e[o]=t[o],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(yr(t))t=t.slice();else if(gH(t)){var e=[];Y4(t,function(n,i){e.push(i)}),t=e}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var i,o=1/0,s=0,l=e.length;s=0;o--)n[o]==null&&(delete e[t[o]],t.pop())}function aS(r,t){var e=r.visual,n=[];Ln(e)?Y4(e,function(o){n.push(o)}):e!=null&&n.push(e);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(r.type)&&(n[1]=n[0]),aM(r,n)}function u9(r){return{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("color",r(e("color"),i))},_normalizedToVisual:oS([0,1])}}function iM(r){var t=this.option.visual;return t[Math.round(ea(r,[0,1],[0,t.length-1],!0))]||{}}function J4(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function W4(r){var t=this.option.visual;return t[this.option.loop&&r!==s9?r%t.length:r]}function mC(){return this.option.visual[0]}function oS(r){return{linear:function(t){return ea(t,r,this.option.visual,!0)},category:W4,piecewise:function(t,e){var n=sS.call(this,e);return n==null&&(n=ea(t,r,this.option.visual,!0)),n},fixed:mC}}function sS(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=Ic.findPieceIndex(r,e),i=e[n];if(i&&i.visual)return i.visual[this.type]}}function aM(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=pr(t,function(e){var n=qc(e);return n||[0,0,0,1]})),t}var yH={linear:function(r){return ea(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Ic.findPieceIndex(r,t,!0);if(e!=null)return ea(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??s9},fixed:$o};function c9(r,t,e){return r?t<=e:t=e.length||L===e[L.depth]){var M=EH(i,f,L,P,R,n);sM(L,M,e,n)}})}}}function bH(r,t,e){var n=ar({},t),i=e.designatedVisualItemStyle;return Ne(["color","colorAlpha","colorSaturation"],function(o){i[o]=t[o];var s=r.get(o);i[o]=null,s!=null&&(n[o]=s)}),n}function uM(r){var t=uS(r,"color");if(t){var e=uS(r,"colorAlpha"),n=uS(r,"colorSaturation");return n&&(t=Vg(t,null,null,n)),e&&(t=Zg(t,e)),t}}function CH(r,t){return t!=null?Vg(t,null,null,r):null}function uS(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function wH(r,t,e,n,i,o){if(!(!o||!o.length)){var s=cS(t,"color")||i.color!=null&&i.color!=="none"&&(cS(t,"colorAlpha")||cS(t,"colorSaturation"));if(s){var l=t.get("visualMin"),f=t.get("visualMax"),v=e.dataExtent.slice();l!=null&&lv[1]&&(v[1]=f);var C=t.get("colorMappingBy"),w={type:s.name,dataExtent:v,visual:s.range};w.type==="color"&&(C==="index"||C==="id")?(w.mappingMethod="category",w.loop=!0):w.mappingMethod="linear";var x=new Ic(w);return oM(x).drColorMappingBy=C,x}}}function cS(r,t){var e=r.get(t);return yr(e)&&e.length?{name:t,range:e}:null}function EH(r,t,e,n,i,o){var s=ar({},t);if(i){var l=i.type,f=l==="color"&&oM(i).drColorMappingBy,v=f==="index"?n:f==="id"?o.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));s[l]=i.mapValueToVisual(v)}return s}var q4=Math.max,l9=Math.min,cM=Bs,lS=Ne,lM=["itemStyle","borderWidth"],BH=["itemStyle","gapWidth"],kH=["upperLabel","show"],QH=["upperLabel","height"];const xH={seriesType:"treemap",reset:function(r,t,e,n){var i=e.getWidth(),o=e.getHeight(),s=r.option,l=Mo(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),f=s.size||[],v=jr(cM(l.width,f[0]),i),C=jr(cM(l.height,f[1]),o),w=n&&n.type,x=["treemapZoomToNode","treemapRootToNode"],Q=U4(n,x,r),R=w==="treemapRender"||w==="treemapMove"?n.rootRect:null,L=r.getViewRoot(),P=zR(L);if(w!=="treemapMove"){var M=w==="treemapZoomToNode"?FH(r,Q,L,v,C):R?[R.width,R.height]:[v,C],k=s.sort;k&&k!=="asc"&&k!=="desc"&&(k="desc");var G={squareRatio:s.squareRatio,sort:k,leafDepth:s.leafDepth};L.hostTree.clearLayouts();var Y={x:0,y:0,width:M[0],height:M[1],area:M[0]*M[1]};L.setLayout(Y),hM(L,G,!1,0),Y=L.getLayout(),lS(P,function(ie,le){var pe=(P[le+1]||L).getValue();ie.setLayout(ar({dataExtent:[pe,pe],borderWidth:0,upperHeight:0},Y))})}var re=r.getData().tree.root;re.setLayout(TH(l,R,Q),!0),r.setLayoutInfo(l),AM(re,new gi(-l.x,-l.y,i,o),P,L,0)}};function hM(r,t,e,n){var i,o;if(!r.isRemoved()){var s=r.getLayout();i=s.width,o=s.height;var l=r.getModel(),f=l.get(lM),v=l.get(BH)/2,C=dM(l),w=Math.max(f,C),x=f-v,Q=w-v;r.setLayout({borderWidth:f,upperHeight:w,upperLabelHeight:C},!0),i=q4(i-2*x,0),o=q4(o-x-Q,0);var R=i*o,L=SH(r,l,R,t,e,n);if(L.length){var P={x,y:Q,width:i,height:o},M=l9(i,o),k=1/0,G=[];G.area=0;for(var Y=0,re=L.length;Y=0;f--){var v=i[n==="asc"?s-f-1:f].getValue();v/e*tl[1]&&(l[1]=v)})),{sum:n,dataExtent:l}}function MH(r,t,e){for(var n=0,i=1/0,o=0,s=void 0,l=r.length;on&&(n=s));var f=r.area*r.area,v=t*t*e;return f?q4(v*n/f,f/(v*i)):1/0}function fM(r,t,e,n,i){var o=t===e.width?0:1,s=1-o,l=["x","y"],f=["width","height"],v=e[l[o]],C=t?r.area/t:0;(i||C>e[f[s]])&&(C=e[f[s]]);for(var w=0,x=r.length;wAf&&(v=Af),o=l}vn&&(n=t);var o=n%2?n+2:n+3;i=[];for(var s=0;s0&&(re[0]=-re[0],re[1]=-re[1]);var le=Y[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var pe=-Math.atan2(Y[1],Y[0]);w[0].8?"left":x[0]<-.8?"right":"center",L=x[1]>.8?"top":x[1]<-.8?"bottom":"middle";break;case"start":o.x=-x[0]*M+C[0],o.y=-x[1]*k+C[1],R=x[0]>.8?"right":x[0]<-.8?"left":"center",L=x[1]>.8?"bottom":x[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=M*le+C[0],o.y=C[1]+ve,R=Y[0]<0?"right":"left",o.originX=-M*le,o.originY=-ve;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=ie[0],o.y=ie[1]+ve,R="center",o.originY=-ve;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-M*le+w[0],o.y=w[1]+ve,R=Y[0]>=0?"right":"left",o.originX=M*le,o.originY=-ve;break}o.scaleX=o.scaleY=s,o.setStyle({verticalAlign:o.__verticalAlign||L,align:o.__align||R})}},t}(Nn),CS=function(){function r(t){this.group=new Nn,this._LineCtor=t||bS}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,o=n._lineData;n._lineData=t,o||i.removeAll();var s=BM(t);t.diff(o).add(function(l){e._doAdd(t,l,s)}).update(function(l,f){e._doUpdate(o,t,f,l,s)}).remove(function(l){i.remove(o.getItemGraphicEl(l))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=BM(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(l){!l.isGroup&&!$H(l)&&(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function BM(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:_s(t)}}function kM(r){return isNaN(r[0])||isNaN(r[1])}function wS(r){return r&&!kM(r[0])&&!kM(r[1])}var ES=[],BS=[],kS=[],p3=su,QS=tA,QM=Math.abs;function xM(r,t,e){for(var n=r[0],i=r[1],o=r[2],s=1/0,l,f=e*e,v=.1,C=.1;C<=.9;C+=.1){ES[0]=p3(n[0],i[0],o[0],C),ES[1]=p3(n[1],i[1],o[1],C);var w=QM(QS(ES,t)-f);w=0?l=l+v:l=l-v:R>=0?l=l-v:l=l+v}return l}function xS(r,t){var e=[],n=j0,i=[[],[],[]],o=[[],[]],s=[];t/=2,r.eachEdge(function(l,f){var v=l.getLayout(),C=l.getVisual("fromSymbol"),w=l.getVisual("toSymbol");v.__original||(v.__original=[ql(v[0]),ql(v[1])],v[2]&&v.__original.push(ql(v[2])));var x=v.__original;if(v[2]!=null){if(rc(i[0],x[0]),rc(i[1],x[2]),rc(i[2],x[1]),C&&C!=="none"){var Q=V4(l.node1),R=xM(i,x[0],Q*t);n(i[0][0],i[1][0],i[2][0],R,e),i[0][0]=e[3],i[1][0]=e[4],n(i[0][1],i[1][1],i[2][1],R,e),i[0][1]=e[3],i[1][1]=e[4]}if(w&&w!=="none"){var Q=V4(l.node2),R=xM(i,x[1],Q*t);n(i[0][0],i[1][0],i[2][0],R,e),i[1][0]=e[1],i[2][0]=e[2],n(i[0][1],i[1][1],i[2][1],R,e),i[1][1]=e[1],i[2][1]=e[2]}rc(v[0],i[0]),rc(v[1],i[2]),rc(v[2],i[1])}else{if(rc(o[0],x[0]),rc(o[1],x[1]),Xf(s,o[1],o[0]),Ti(s,s),C&&C!=="none"){var Q=V4(l.node1);A2(o[0],o[0],s,Q*t)}if(w&&w!=="none"){var Q=V4(l.node2);A2(o[1],o[1],s,-Q*t)}rc(v[0],o[0]),rc(v[1],o[1])}})}function SM(r){return r.type==="view"}var eY=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){var i=new Gm,o=new CS,s=this.group;this._controller=new N4(n.getZr()),this._controllerHost={target:s},s.add(i.group),s.add(o.group),this._symbolDraw=i,this._lineDraw=o,this._firstRender=!0},t.prototype.render=function(e,n,i){var o=this,s=e.coordinateSystem;this._model=e;var l=this._symbolDraw,f=this._lineDraw,v=this.group;if(SM(s)){var C={x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY};this._firstRender?v.attr(C):ga(v,C,e)}xS(e.getGraph(),K4(e));var w=e.getData();l.updateData(w);var x=e.getEdgeData();f.updateData(x),this._updateNodeAndLinkScale(),this._updateController(e,n,i),clearTimeout(this._layoutTimeout);var Q=e.forceLayout,R=e.get(["force","layoutAnimation"]);Q&&this._startForceLayoutIteration(Q,R);var L=e.get("layout");w.graph.eachNode(function(G){var Y=G.dataIndex,re=G.getGraphicEl(),ie=G.getModel();if(re){re.off("drag").off("dragend");var le=ie.get("draggable");le&&re.on("drag",function(ve){switch(L){case"force":Q.warmUp(),!o._layouting&&o._startForceLayoutIteration(Q,R),Q.setFixed(Y),w.setItemLayout(Y,[re.x,re.y]);break;case"circular":w.setItemLayout(Y,[re.x,re.y]),G.setLayout({fixed:!0},!0),pS(e,"symbolSize",G,[ve.offsetX,ve.offsetY]),o.updateLayout(e);break;case"none":default:w.setItemLayout(Y,[re.x,re.y]),dS(e.getGraph(),e),o.updateLayout(e);break}}).on("dragend",function(){Q&&Q.setUnfixed(Y)}),re.setDraggable(le,!!ie.get("cursor"));var pe=ie.get(["emphasis","focus"]);pe==="adjacency"&&(Un(re).focus=G.getAdjacentDataIndices())}}),w.graph.eachEdge(function(G){var Y=G.getGraphicEl(),re=G.getModel().get(["emphasis","focus"]);Y&&re==="adjacency"&&(Un(Y).focus={edge:[G.dataIndex],node:[G.node1.dataIndex,G.node2.dataIndex]})});var P=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),M=w.getLayout("cx"),k=w.getLayout("cy");w.graph.eachNode(function(G){mM(G,P,M,k)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var i=this;(function o(){e.step(function(s){i.updateLayout(i._model),(i._layouting=!s)&&(n?i._layoutTimeout=setTimeout(o,16):o())})})()},t.prototype._updateController=function(e,n,i){var o=this,s=this._controller,l=this._controllerHost,f=this.group;if(s.setPointerChecker(function(v,C,w){var x=f.getBoundingRect();return x.applyTransform(f.transform),x.contain(C,w)&&!e9(v,i,e)}),!SM(e.coordinateSystem)){s.disable();return}s.enable(e.get("roam")),l.zoomLimit=e.get("scaleLimit"),l.zoom=e.coordinateSystem.getZoom(),s.off("pan").off("zoom").on("pan",function(v){H8(l,v.dx,v.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:v.dx,dy:v.dy})}).on("zoom",function(v){Y8(l,v.scale,v.originX,v.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:v.scale,originX:v.originX,originY:v.originY}),o._updateNodeAndLinkScale(),xS(e.getGraph(),K4(e)),o._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),i=K4(e);n.eachItemGraphicEl(function(o,s){o&&o.setSymbolScale(i)})},t.prototype.updateLayout=function(e){xS(e.getGraph(),K4(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(d);function v3(r){return"_EC_"+r}var tY=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[v3(t)]){var i=new IC(t,e);return i.hostGraph=this,this.nodes.push(i),n[v3(t)]=i,i}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[v3(t)]},r.prototype.addEdge=function(t,e,n){var i=this._nodesMap,o=this._edgesMap;if($i(t)&&(t=this.nodes[t]),$i(e)&&(e=this.nodes[e]),t instanceof IC||(t=i[v3(t)]),e instanceof IC||(e=i[v3(e)]),!(!t||!e)){var s=t.id+"-"+e.id,l=new _M(t,e,n);return l.hostGraph=this,this._directed&&(t.outEdges.push(l),e.inEdges.push(l)),t.edges.push(l),t!==e&&e.edges.push(l),this.edges.push(l),o[s]=l,l}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof IC&&(t=t.id),e instanceof IC&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,o=0;o=0&&t.call(e,n[o],o)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,o=0;o=0&&n[o].node1.dataIndex>=0&&n[o].node2.dataIndex>=0&&t.call(e,n[o],o)},r.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof IC||(e=this._nodesMap[v3(e)]),!!e){for(var o=n==="out"?"outEdges":n==="in"?"inEdges":"edges",s=0;s=0&&f.node2.dataIndex>=0});for(var o=0,s=i.length;o=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}Ea(IC,DM("hostGraph","data")),Ea(_M,DM("hostGraph","edgeData"));function RM(r,t,e,n,i){for(var o=new tY(n),s=0;s "+x)),v++)}var Q=e.get("coordinateSystem"),R;if(Q==="cartesian2d"||Q==="polar")R=WA(r,e);else{var L=T1.get(Q),P=L?L.dimensions||[]:[];Vn(P,"value")<0&&P.concat(["value"]);var M=jb(r,{coordDimensions:P,encodeDefine:e.getEncode()}).dimensions;R=new sl(M,e),R.initData(r)}var k=new sl(["value"],e);return k.initData(f,l),i&&i(R,k),WR({mainData:R,struct:o,structAttr:"graph",datas:{node:R,edge:k},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var rY=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new F4(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),xd(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var i=e.edges||e.links||[],o=e.data||e.nodes||[],s=this;{jH(this);var l=RM(o,i,this,!0,f);return Ne(l.edges,function(v){HH(v.node1,v.node2,this,v.dataIndex)},this),l.data}function f(v,C){v.wrapMethod("getItemModel",function(R){var L=s._categoriesModels,P=R.getShallow("category"),M=L[P];return M&&(M.parentModel=R.parentModel,R.parentModel=M),R});var w=Ia.prototype.getModel;function x(R,L){var P=w.call(this,R,L);return P.resolveParentPath=Q,P}C.wrapMethod("getItemModel",function(R){return R.resolveParentPath=Q,R.getModel=x,R});function Q(R){if(R&&(R[0]==="label"||R[1]==="label")){var L=R.slice();return R[0]==="label"?L[0]="edgeLabel":R[1]==="label"&&(L[1]="edgeLabel"),L}return R}}},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,n,i){if(i==="edge"){var o=this.getData(),s=this.getDataParams(e,i),l=o.graph.getEdgeByIndex(e),f=o.getName(l.node1.dataIndex),v=o.getName(l.node2.dataIndex),C=[];return f!=null&&C.push(f),v!=null&&C.push(v),Xs("nameValue",{name:C.join(" > "),value:s.value,noValue:s.value==null})}var w=Y1({series:this,dataIndex:e,multipleSeries:n});return w},t.prototype._updateCategoriesData=function(){var e=pr(this.option.categories||[],function(i){return i.value!=null?i:ar({value:0},i)}),n=new sl(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={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}(no),nY={type:"graphRoam",event:"graphRoam",update:"none"};function iY(r){r.registerChartView(eY),r.registerSeriesModel(rY),r.registerProcessor(NH),r.registerVisual(OH),r.registerVisual(PH),r.registerLayout(YH),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,WH),r.registerLayout(zH),r.registerCoordinateSystem("graphView",{dimensions:P4.dimensions,create:VH}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},$o),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},$o),r.registerAction(nY,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(i){var o=i.coordinateSystem,s=V8(o,t,void 0,n);i.setCenter&&i.setCenter(s.center),i.setZoom&&i.setZoom(s.zoom)})})}var aY=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),oY=function(r){kt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new aY},t.prototype.buildPath=function(e,n){var i=Math.cos,o=Math.sin,s=n.r,l=n.width,f=n.angle,v=n.x-i(f)*l*(l>=s/3?1:2),C=n.y-o(f)*l*(l>=s/3?1:2);f=n.angle-Math.PI/2,e.moveTo(v,C),e.lineTo(n.x+i(f)*l,n.y+o(f)*l),e.lineTo(n.x+i(n.angle)*s,n.y+o(n.angle)*s),e.lineTo(n.x-i(f)*l,n.y-o(f)*l),e.lineTo(v,C)},t}(Si);function sY(r,t){var e=r.get("center"),n=t.getWidth(),i=t.getHeight(),o=Math.min(n,i),s=jr(e[0],t.getWidth()),l=jr(e[1],t.getHeight()),f=jr(r.get("radius"),o/2);return{cx:s,cy:l,r:f}}function A9(r,t){var e=r==null?"":r+"";return t&&(en(t)?e=t.replace("{value}",e):bn(t)&&(e=t(r))),e}var uY=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeAll();var o=e.get(["axisLine","lineStyle","color"]),s=sY(e,i);this._renderMain(e,n,i,o,s),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,i,o,s){var l=this.group,f=e.get("clockwise"),v=-e.get("startAngle")/180*Math.PI,C=-e.get("endAngle")/180*Math.PI,w=e.getModel("axisLine"),x=w.get("roundCap"),Q=x?i3:Hu,R=w.get("show"),L=w.getModel("lineStyle"),P=L.get("width"),M=[v,C];fI(M,!f),v=M[0],C=M[1];for(var k=C-v,G=v,Y=[],re=0;R&&re=ve&&(Ee===0?0:o[Ee-1][0])Math.PI/2&&(ur+=Math.PI)):dr==="tangential"?ur=-pe-Math.PI/2:$i(dr)&&(ur=dr*Math.PI/180),ur===0?w.add(new Mn({style:La(G,{text:vt,x:Ct,y:St,verticalAlign:ze<-.8?"top":ze>.8?"bottom":"middle",align:be<-.4?"left":be>.4?"right":"center"},{inheritColor:Gt}),silent:!0})):w.add(new Mn({style:La(G,{text:vt,x:Ct,y:St,verticalAlign:"middle",align:"center"},{inheritColor:Gt}),silent:!0,originX:Ct,originY:St,rotation:ur}))}if(k.get("show")&&ut!==Y){var ft=k.get("distance");ft=ft?ft+C:C;for(var ir=0;ir<=re;ir++){be=Math.cos(pe),ze=Math.sin(pe);var Fn=new Vs({shape:{x1:be*(R-ft)+x,y1:ze*(R-ft)+Q,x2:be*(R-le-ft)+x,y2:ze*(R-le-ft)+Q},silent:!0,style:ke});ke.stroke==="auto"&&Fn.setStyle({stroke:o((ut+ir/re)/Y)}),w.add(Fn),pe+=Ee}pe-=Ee}else pe+=ve}},t.prototype._renderPointer=function(e,n,i,o,s,l,f,v,C){var w=this.group,x=this._data,Q=this._progressEls,R=[],L=e.get(["pointer","show"]),P=e.getModel("progress"),M=P.get("show"),k=e.getData(),G=k.mapDimension("value"),Y=+e.get("min"),re=+e.get("max"),ie=[Y,re],le=[l,f];function pe(Ee,Se){var ke=k.getItemModel(Ee),Le=ke.getModel("pointer"),be=jr(Le.get("width"),s.r),ze=jr(Le.get("length"),s.r),ut=e.get(["pointer","icon"]),ft=Le.get("offsetCenter"),Qt=jr(ft[0],s.r),vt=jr(ft[1],s.r),Gt=Le.get("keepAspect"),Ct;return ut?Ct=yt(ut,Qt-be/2,vt-ze,be,ze,null,Gt):Ct=new oY({shape:{angle:-Math.PI/2,width:be,r:ze,x:Qt,y:vt}}),Ct.rotation=-(Se+Math.PI/2),Ct.x=s.cx,Ct.y=s.cy,Ct}function ve(Ee,Se){var ke=P.get("roundCap"),Le=ke?i3:Hu,be=P.get("overlap"),ze=be?P.get("width"):C/k.count(),ut=be?s.r-ze:s.r-(Ee+1)*ze,ft=be?s.r:s.r-Ee*ze,Qt=new Le({shape:{startAngle:l,endAngle:Se,cx:s.cx,cy:s.cy,clockwise:v,r0:ut,r:ft}});return be&&(Qt.z2=ea(k.get(G,Ee),[Y,re],[100,0],!0)),Qt}(M||L)&&(k.diff(x).add(function(Ee){var Se=k.get(G,Ee);if(L){var ke=pe(Ee,l);Co(ke,{rotation:-((isNaN(+Se)?le[0]:ea(Se,ie,le,!0))+Math.PI/2)},e),w.add(ke),k.setItemGraphicEl(Ee,ke)}if(M){var Le=ve(Ee,l),be=P.get("clip");Co(Le,{shape:{endAngle:ea(Se,ie,le,be)}},e),w.add(Le),h1(e.seriesIndex,k.dataType,Ee,Le),R[Ee]=Le}}).update(function(Ee,Se){var ke=k.get(G,Ee);if(L){var Le=x.getItemGraphicEl(Se),be=Le?Le.rotation:l,ze=pe(Ee,be);ze.rotation=be,ga(ze,{rotation:-((isNaN(+ke)?le[0]:ea(ke,ie,le,!0))+Math.PI/2)},e),w.add(ze),k.setItemGraphicEl(Ee,ze)}if(M){var ut=Q[Se],ft=ut?ut.shape.endAngle:l,Qt=ve(Ee,ft),vt=P.get("clip");ga(Qt,{shape:{endAngle:ea(ke,ie,le,vt)}},e),w.add(Qt),h1(e.seriesIndex,k.dataType,Ee,Qt),R[Ee]=Qt}}).execute(),k.each(function(Ee){var Se=k.getItemModel(Ee),ke=Se.getModel("emphasis"),Le=ke.get("focus"),be=ke.get("blurScope"),ze=ke.get("disabled");if(L){var ut=k.getItemGraphicEl(Ee),ft=k.getItemVisual(Ee,"style"),Qt=ft.fill;if(ut instanceof Ws){var vt=ut.style;ut.useStyle(ar({image:vt.image,x:vt.x,y:vt.y,width:vt.width,height:vt.height},ft))}else ut.useStyle(ft),ut.type!=="pointer"&&ut.setColor(Qt);ut.setStyle(Se.getModel(["pointer","itemStyle"]).getItemStyle()),ut.style.fill==="auto"&&ut.setStyle("fill",o(ea(k.get(G,Ee),ie,[0,1],!0))),ut.z2EmphasisLift=0,hu(ut,Se),uo(ut,Le,be,ze)}if(M){var Gt=R[Ee];Gt.useStyle(k.getItemVisual(Ee,"style")),Gt.setStyle(Se.getModel(["progress","itemStyle"]).getItemStyle()),Gt.z2EmphasisLift=0,hu(Gt,Se),uo(Gt,Le,be,ze)}}),this._progressEls=R)},t.prototype._renderAnchor=function(e,n){var i=e.getModel("anchor"),o=i.get("show");if(o){var s=i.get("size"),l=i.get("icon"),f=i.get("offsetCenter"),v=i.get("keepAspect"),C=yt(l,n.cx-s/2+jr(f[0],n.r),n.cy-s/2+jr(f[1],n.r),s,s,null,v);C.z2=i.get("showAbove")?1:0,C.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(C)}},t.prototype._renderTitleAndDetail=function(e,n,i,o,s){var l=this,f=e.getData(),v=f.mapDimension("value"),C=+e.get("min"),w=+e.get("max"),x=new Nn,Q=[],R=[],L=e.isAnimationEnabled(),P=e.get(["pointer","showAbove"]);f.diff(this._data).add(function(M){Q[M]=new Mn({silent:!0}),R[M]=new Mn({silent:!0})}).update(function(M,k){Q[M]=l._titleEls[k],R[M]=l._detailEls[k]}).execute(),f.each(function(M){var k=f.getItemModel(M),G=f.get(v,M),Y=new Nn,re=o(ea(G,[C,w],[0,1],!0)),ie=k.getModel("title");if(ie.get("show")){var le=ie.get("offsetCenter"),pe=s.cx+jr(le[0],s.r),ve=s.cy+jr(le[1],s.r),Ee=Q[M];Ee.attr({z2:P?0:2,style:La(ie,{x:pe,y:ve,text:f.getName(M),align:"center",verticalAlign:"middle"},{inheritColor:re})}),Y.add(Ee)}var Se=k.getModel("detail");if(Se.get("show")){var ke=Se.get("offsetCenter"),Le=s.cx+jr(ke[0],s.r),be=s.cy+jr(ke[1],s.r),ze=jr(Se.get("width"),s.r),ut=jr(Se.get("height"),s.r),ft=e.get(["progress","show"])?f.getItemVisual(M,"style").fill:re,Ee=R[M],Qt=Se.get("formatter");Ee.attr({z2:P?0:2,style:La(Se,{x:Le,y:be,text:A9(G,Qt),width:isNaN(ze)?null:ze,height:isNaN(ut)?null:ut,align:"center",verticalAlign:"middle"},{inheritColor:ft})}),CE(Ee,{normal:Se},G,function(Gt){return A9(Gt,Qt)}),L&&wE(Ee,M,f,e,{getFormattedLabel:function(Gt,Ct,St,dr,ur,ir){return A9(ir?ir.interpolatedValue:G,Qt)}}),Y.add(Ee)}x.add(Y)}),this.group.add(x),this._titleEls=Q,this._detailEls=R},t.type="gauge",t}(d),cY=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return f3(this,["value"])},t.type="series.gauge",t.defaultOption={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,rotate:0},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}(no);function lY(r){r.registerChartView(uY),r.registerSeriesModel(cY)}var hY=["itemStyle","opacity"],fY=function(r){kt(t,r);function t(e,n){var i=r.call(this)||this,o=i,s=new pc,l=new Mn;return o.setTextContent(l),i.setTextGuideLine(s),i.updateData(e,n,!0),i}return t.prototype.updateData=function(e,n,i){var o=this,s=e.hostModel,l=e.getItemModel(n),f=e.getItemLayout(n),v=l.getModel("emphasis"),C=l.get(hY);C=C??1,i||_l(o),o.useStyle(e.getItemVisual(n,"style")),o.style.lineJoin="round",i?(o.setShape({points:f.points}),o.style.opacity=0,Co(o,{style:{opacity:C}},s,n)):ga(o,{style:{opacity:C},shape:{points:f.points}},s,n),hu(o,l),this._updateLabel(e,n),uo(this,v.get("focus"),v.get("blurScope"),v.get("disabled"))},t.prototype._updateLabel=function(e,n){var i=this,o=this.getTextGuideLine(),s=i.getTextContent(),l=e.hostModel,f=e.getItemModel(n),v=e.getItemLayout(n),C=v.label,w=e.getItemVisual(n,"style"),x=w.fill;Uo(s,_s(f),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:w.opacity,defaultText:e.getName(n)},{normal:{align:C.textAlign,verticalAlign:C.verticalAlign}}),i.setTextConfig({local:!0,inside:!!C.inside,insideStroke:x,outsideFill:x});var Q=C.linePoints;o.setShape({points:Q}),i.textGuideLineConfig={anchor:Q?new ci(Q[0][0],Q[0][1]):null},ga(s,{style:{x:C.x,y:C.y}},l,n),s.attr({rotation:C.rotation,originX:C.x,originY:C.y,z2:10}),o4(i,ev(f),{stroke:x})},t}(Yu),AY=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i){var o=e.getData(),s=this._data,l=this.group;o.diff(s).add(function(f){var v=new fY(o,f);o.setItemGraphicEl(f,v),l.add(v)}).update(function(f,v){var C=s.getItemGraphicEl(v);C.updateData(o,f),l.add(C),o.setItemGraphicEl(f,C)}).remove(function(f){var v=s.getItemGraphicEl(f);kp(v,e,f)}).execute(),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(d),dY=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new F4(an(this.getData,this),an(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return f3(this,{coordDimensions:["value"],encodeDefaulter:ni(ab,this)})},t.prototype._defaultLabelLine=function(e){xd(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),i=r.prototype.getDataParams.call(this,e),o=n.mapDimension("value"),s=n.getSum(o);return i.percent=s?+(n.get(o,e)/s*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={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}(no);function gY(r,t){return Mo(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function pY(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(f){return f}),i=[],o=t==="ascending",s=0,l=r.count();sRY)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!_S(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function _S(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var TY=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&Kn(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var i=e.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(e){Ne(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],i=Ii(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(o){return(o.get("parallelIndex")||0)===this.componentIndex},this);Ne(i,function(o){e.push("dim"+o.get("dim")),n.push(o.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={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}(Oi),LY=function(r){kt(t,r);function t(e,n,i,o,s){var l=r.call(this,e,n,i)||this;return l.type=o||"value",l.axisIndex=s,l}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(_u);function bC(r,t,e,n,i,o){r=r||0;var s=e[1]-e[0];if(i!=null&&(i=y3(i,[0,s])),o!=null&&(o=Math.max(o,i??0)),n==="all"){var l=Math.abs(t[1]-t[0]);l=y3(l,[0,s]),i=o=y3(l,[i,o]),n=0}t[0]=y3(t[0],e),t[1]=y3(t[1],e);var f=DS(t,n);t[n]+=r;var v=i||0,C=e.slice();f.sign<0?C[0]+=v:C[1]-=v,t[n]=y3(t[n],C);var w;return w=DS(t,n),i!=null&&(w.sign!==f.sign||w.spano&&(t[1-n]=t[n]+w.sign*o),t}function DS(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function y3(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var RS=Ne,LM=Math.min,NM=Math.max,OM=Math.floor,NY=Math.ceil,PM=Ra,OY=Math.PI,PY=function(){function r(t,e,n){this.type="parallel",this._axesMap=mn(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var i=t.dimensions,o=t.parallelAxisIndex;RS(i,function(s,l){var f=o[l],v=e.getComponent("parallelAxis",f),C=this._axesMap.set(s,new LY(s,$b(v),[0,0],v.get("type"),f)),w=C.type==="category";C.onBand=w&&v.get("boundaryGap"),C.inverse=v.get("inverse"),v.axis=C,C.model=v,C.coordinateSystem=v.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,o=e.pixelDimIndex,s=t[1-o],l=t[o];return s>=n&&s<=n+e.axisLength&&l>=i&&l<=i+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();RS(this.dimensions,function(o){var s=this._axesMap.get(o);s.scale.unionExtentFromData(i,i.mapDimension(o)),l0(s.scale,s.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=Mo(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],i=["width","height"],o=t.get("layout"),s=o==="horizontal"?0:1,l=e[i[s]],f=[0,l],v=this.dimensions.length,C=d9(t.get("axisExpandWidth"),f),w=d9(t.get("axisExpandCount")||0,[0,v]),x=t.get("axisExpandable")&&v>3&&v>w&&w>1&&C>0&&l>0,Q=t.get("axisExpandWindow"),R;if(Q)R=d9(Q[1]-Q[0],f),Q[1]=Q[0]+R;else{R=d9(C*(w-1),f);var L=t.get("axisExpandCenter")||OM(v/2);Q=[C*L-R/2],Q[1]=Q[0]+R}var P=(l-R)/(v-w);P<3&&(P=0);var M=[OM(PM(Q[0]/C,1))+1,NY(PM(Q[1]/C,1))-1],k=P/C*Q[0];return{layout:o,pixelDimIndex:s,layoutBase:e[n[s]],layoutLength:l,axisBase:e[n[1-s]],axisLength:e[i[1-s]],axisExpandable:x,axisExpandWidth:C,axisCollapseWidth:P,axisExpandWindow:Q,axisCount:v,winInnerIndices:M,axisExpandWindow0Pos:k}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;e.each(function(s){var l=[0,i.axisLength],f=s.inverse?1:0;s.setExtent(l[f],l[1-f])}),RS(n,function(s,l){var f=(i.axisExpandable?UY:GY)(l,i),v={horizontal:{x:f.position,y:i.axisLength},vertical:{x:0,y:f.position}},C={horizontal:OY/2,vertical:0},w=[v[o].x+t.x,v[o].y+t.y],x=C[o],Q=Lu();nf(Q,Q,x),Hs(Q,Q,w),this._axesLayout[s]={position:w,rotation:x,transform:Q,axisNameAvailableWidth:f.axisNameAvailableWidth,axisLabelShow:f.axisLabelShow,nameTruncateMaxWidth:f.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,i){n==null&&(n=0),i==null&&(i=t.count());var o=this._axesMap,s=this.dimensions,l=[],f=[];Ne(s,function(P){l.push(t.mapDimension(P)),f.push(o.get(P).model)});for(var v=this.hasAxisBrushed(),C=n;Co*(1-w[0])?(v="jump",f=l-o*(1-w[2])):(f=l-o*w[1])>=0&&(f=l-o*(1-w[1]))<=0&&(f=0),f*=e.axisExpandWidth/C,f?bC(f,i,s,"all"):v="none";else{var Q=i[1]-i[0],R=s[1]*l/Q;i=[NM(0,R-Q/2)],i[1]=LM(s[1],i[0]+Q),i[0]=i[1]-Q}return{axisExpandWindow:i,behavior:v}},r}();function d9(r,t){return LM(NM(r,t[0]),t[1])}function GY(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function UY(r,t){var e=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,o=t.axisCollapseWidth,s=t.winInnerIndices,l,f=o,v=!1,C;return r=0;i--)ki(n[i])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var o=0,s=n.length;oWY}function qM(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function zM(r,t,e,n){var i=new Nn;return i.add(new ta({name:"main",style:GS(e),silent:!0,draggable:!0,cursor:"move",drift:ni(ZM,r,t,i,["n","s","w","e"]),ondragend:ni(wC,t,{isEnd:!0})})),Ne(n,function(o){i.add(new ta({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ni(ZM,r,t,i,o),ondragend:ni(wC,t,{isEnd:!0})}))}),i}function KM(r,t,e,n){var i=n.brushStyle.lineWidth||0,o=m3(i,qY),s=e[0][0],l=e[1][0],f=s-i/2,v=l-i/2,C=e[0][1],w=e[1][1],x=C-o+i/2,Q=w-o+i/2,R=C-s,L=w-l,P=R+i,M=L+i;hv(r,t,"main",s,l,R,L),n.transformable&&(hv(r,t,"w",f,v,o,M),hv(r,t,"e",x,v,o,M),hv(r,t,"n",f,v,P,o),hv(r,t,"s",f,Q,P,o),hv(r,t,"nw",f,v,o,o),hv(r,t,"ne",x,v,o,o),hv(r,t,"sw",f,Q,o,o),hv(r,t,"se",x,Q,o,o))}function PS(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(GS(e)),i.attr({silent:!n,cursor:n?"move":"default"}),Ne([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var s=t.childOfName(o.join("")),l=o.length===1?US(r,o[0]):$Y(r,o);s&&s.attr({silent:!n,invisible:!n,cursor:n?KY[l]+"-resize":null})})}function hv(r,t,e,n,i,o,s){var l=t.childOfName(e);l&&l.setShape(tJ(jS(r,t,[[n,i],[n+o,i+s]])))}function GS(r){return pn({strokeNoScale:!0},r.brushStyle)}function VM(r,t,e,n){var i=[Z4(r,e),Z4(t,n)],o=[m3(r,e),m3(t,n)];return[[i[0],o[0]],[i[1],o[1]]]}function XY(r){return og(r.group)}function US(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=C1(e[t],XY(r));return n[i]}function $Y(r,t){var e=[US(r,t[0]),US(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function ZM(r,t,e,n,i,o){var s=e.__brushOption,l=r.toRectRange(s.range),f=XM(t,i,o);Ne(n,function(v){var C=zY[v];l[C[0]][C[1]]+=f[C[0]]}),s.range=r.fromRectRange(VM(l[0][0],l[1][0],l[0][1],l[1][1])),TS(t,e),wC(t,{isEnd:!1})}function eJ(r,t,e,n){var i=t.__brushOption.range,o=XM(r,e,n);Ne(i,function(s){s[0]+=o[0],s[1]+=o[1]}),TS(r,t),wC(r,{isEnd:!1})}function XM(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),o=n.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function jS(r,t,e){var n=WM(r,t);return n&&n!==CC?n.clipPath(e,r._transform):Bn(e)}function tJ(r){var t=Z4(r[0][0],r[1][0]),e=Z4(r[0][1],r[1][1]),n=m3(r[0][0],r[1][0]),i=m3(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function rJ(r,t,e){if(!(!r._brushType||iJ(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,o=NS(r,t,e);if(!r._dragging)for(var s=0;sn.getWidth()||e<0||e>n.getHeight()}var g9={lineX:rF(0),lineY:rF(1),rect:{createCover:function(r,t){function e(n){return n}return zM({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=qM(r);return VM(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){KM(r,t,e,n)},updateCommon:PS,contain:YS},polygon:{createCover:function(r,t){var e=new Nn;return e.add(new pc({name:"main",style:GS(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Yu({name:"main",draggable:!0,drift:ni(eJ,r,t),ondragend:ni(wC,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:jS(r,t,e)})},updateCommon:PS,contain:YS}};function rF(r){return{createCover:function(t,e){return zM({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=qM(t),n=Z4(e[0][r],e[1][r]),i=m3(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var o,s=WM(t,e);if(s!==CC&&s.getLinearBrushOtherExtent)o=s.getLinearBrushOtherExtent(r);else{var l=t._zr;o=[0,[l.getWidth(),l.getHeight()][1-r]]}var f=[n,o];r&&f.reverse(),KM(t,e,f,i)},updateCommon:PS,contain:YS}}function nF(r){return r=JS(r),function(t){return mE(t,r)}}function iF(r,t){return r=JS(r),function(e){var n=t??e,i=n?r.width:r.height,o=n?r.x:r.y;return[o,o+(i||0)]}}function aF(r,t,e){var n=JS(r);return function(i,o){return n.contain(o[0],o[1])&&!e9(i,t,e)}}function JS(r){return gi.create(r)}var aJ=["axisLine","axisTickLabel","axisName"],oJ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){r.prototype.init.apply(this,arguments),(this._brushController=new FS(n.getZr())).on("brush",an(this._onBrush,this))},t.prototype.render=function(e,n,i,o){if(!sJ(e,n,o)){this.axisModel=e,this.api=i,this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new Nn,this.group.add(this._axisGroup),!!e.get("show")){var l=cJ(e,n),f=l.coordinateSystem,v=e.getAreaSelectStyle(),C=v.width,w=e.axis.dim,x=f.getAxisLayout(w),Q=ar({strokeContainThreshold:C},x),R=new mh(e,Q);Ne(aJ,R.add,R),this._axisGroup.add(R.getGroup()),this._refreshBrushController(Q,v,e,l,C,i),w1(s,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,i,o,s,l){var f=i.axis.getExtent(),v=f[1]-f[0],C=Math.min(30,Math.abs(v)*.1),w=gi.create({x:f[0],y:-s/2,width:v,height:s});w.x-=C,w.width+=2*C,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:nF(w),isTargetByCursor:aF(w,l,o),getLinearBrushOtherExtent:iF(w,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(uJ(i))},t.prototype._onBrush=function(e){var n=e.areas,i=this.axisModel,o=i.axis,s=pr(n,function(l){return[o.coordToData(l.range[0],!0),o.coordToData(l.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:s})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(a);function sJ(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function uJ(r){var t=r.axis;return pr(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function cJ(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var lJ={type:"axisAreaSelect",event:"axisAreaSelected"};function hJ(r){r.registerAction(lJ,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var fJ={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function oF(r){r.registerComponentView(MY),r.registerComponentModel(TY),r.registerCoordinateSystem("parallel",HY),r.registerPreprocessor(SY),r.registerComponentModel(MS),r.registerComponentView(oJ),A3(r,"parallel",MS,fJ),hJ(r)}function AJ(r){Fi(oF),r.registerChartView(bY),r.registerSeriesModel(EY),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,xY)}var dJ=function(){function r(){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}return r}(),gJ=function(r){kt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new dJ},t.prototype.buildPath=function(e,n){var i=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+i,n.y2),e.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(e.lineTo(n.x2,n.y2+i),e.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),e.closePath()},t.prototype.highlight=function(){Dc(this)},t.prototype.downplay=function(){ko(this)},t}(Si),pJ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,n,i){var o=this,s=e.getGraph(),l=this.group,f=e.layoutInfo,v=f.width,C=f.height,w=e.getData(),x=e.getData("edge"),Q=e.get("orient");this._model=e,l.removeAll(),l.x=f.x,l.y=f.y,s.eachEdge(function(R){var L=new gJ,P=Un(L);P.dataIndex=R.dataIndex,P.seriesIndex=e.seriesIndex,P.dataType="edge";var M=R.getModel(),k=M.getModel("lineStyle"),G=k.get("curveness"),Y=R.node1.getLayout(),re=R.node1.getModel(),ie=re.get("localX"),le=re.get("localY"),pe=R.node2.getLayout(),ve=R.node2.getModel(),Ee=ve.get("localX"),Se=ve.get("localY"),ke=R.getLayout(),Le,be,ze,ut,ft,Qt,vt,Gt;L.shape.extent=Math.max(1,ke.dy),L.shape.orient=Q,Q==="vertical"?(Le=(ie!=null?ie*v:Y.x)+ke.sy,be=(le!=null?le*C:Y.y)+Y.dy,ze=(Ee!=null?Ee*v:pe.x)+ke.ty,ut=Se!=null?Se*C:pe.y,ft=Le,Qt=be*(1-G)+ut*G,vt=ze,Gt=be*G+ut*(1-G)):(Le=(ie!=null?ie*v:Y.x)+Y.dx,be=(le!=null?le*C:Y.y)+ke.sy,ze=Ee!=null?Ee*v:pe.x,ut=(Se!=null?Se*C:pe.y)+ke.ty,ft=Le*(1-G)+ze*G,Qt=be,vt=Le*G+ze*(1-G),Gt=ut),L.setShape({x1:Le,y1:be,x2:ze,y2:ut,cpx1:ft,cpy1:Qt,cpx2:vt,cpy2:Gt}),L.useStyle(k.getItemStyle()),sF(L.style,Q,R);var Ct=""+M.get("value"),St=_s(M,"edgeLabel");Uo(L,St,{labelFetcher:{getFormattedLabel:function(ir,Fn,Ei,Vr,qr,Tn){return e.getFormattedLabel(ir,Fn,"edge",Vr,ec(qr,St.normal&&St.normal.get("formatter"),Ct),Tn)}},labelDataIndex:R.dataIndex,defaultText:Ct}),L.setTextConfig({position:"inside"});var dr=M.getModel("emphasis");hu(L,M,"lineStyle",function(ir){var Fn=ir.getItemStyle();return sF(Fn,Q,R),Fn}),l.add(L),x.setItemGraphicEl(R.dataIndex,L);var ur=dr.get("focus");uo(L,ur==="adjacency"?R.getAdjacentDataIndices():ur==="trajectory"?R.getTrajectoryDataIndices():ur,dr.get("blurScope"),dr.get("disabled"))}),s.eachNode(function(R){var L=R.getLayout(),P=R.getModel(),M=P.get("localX"),k=P.get("localY"),G=P.getModel("emphasis"),Y=P.get(["itemStyle","borderRadius"])||0,re=new ta({shape:{x:M!=null?M*v:L.x,y:k!=null?k*C:L.y,width:L.dx,height:L.dy,r:Y},style:P.getModel("itemStyle").getItemStyle(),z2:10});Uo(re,_s(P),{labelFetcher:{getFormattedLabel:function(le,pe){return e.getFormattedLabel(le,pe,"node")}},labelDataIndex:R.dataIndex,defaultText:R.id}),re.disableLabelAnimation=!0,re.setStyle("fill",R.getVisual("color")),re.setStyle("decal",R.getVisual("style").decal),hu(re,P),l.add(re),w.setItemGraphicEl(R.dataIndex,re),Un(re).dataType="node";var ie=G.get("focus");uo(re,ie==="adjacency"?R.getAdjacentDataIndices():ie==="trajectory"?R.getTrajectoryDataIndices():ie,G.get("blurScope"),G.get("disabled"))}),w.eachItemGraphicEl(function(R,L){var P=w.getItemModel(L);P.get("draggable")&&(R.drift=function(M,k){o._focusAdjacencyDisabled=!0,this.shape.x+=M,this.shape.y+=k,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:w.getRawIndex(L),localX:this.shape.x/v,localY:this.shape.y/C})},R.ondragend=function(){o._focusAdjacencyDisabled=!1},R.draggable=!0,R.cursor="move")}),!this._data&&e.isAnimationEnabled()&&l.setClipPath(vJ(l.getBoundingRect(),e,function(){l.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(d);function sF(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var n=e.node1.getVisual("color"),i=e.node2.getVisual("color");en(n)&&en(i)&&(r.fill=new tg(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function vJ(r,t,e){var n=new ta({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Co(n,{shape:{width:r.width+20}},t,e),n}var yJ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){var i=e.edges||e.links||[],o=e.data||e.nodes||[],s=e.levels||[];this.levelModels=[];for(var l=this.levelModels,f=0;f=0&&(l[s[f].depth]=new Ia(s[f],this,n));var v=RM(o,i,this,!0,C);return v.data;function C(w,x){w.wrapMethod("getItemModel",function(Q,R){var L=Q.parentModel,P=L.getData().getItemLayout(R);if(P){var M=P.depth,k=L.levelModels[M];k&&(Q.parentModel=k)}return Q}),x.wrapMethod("getItemModel",function(Q,R){var L=Q.parentModel,P=L.getGraph().getEdgeByIndex(R),M=P.node1.getLayout();if(M){var k=M.depth,G=L.levelModels[k];G&&(Q.parentModel=G)}return Q})}},t.prototype.setNodePosition=function(e,n){var i=this.option.data||this.option.nodes,o=i[e];o.localX=n[0],o.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,i){function o(Q){return isNaN(Q)||Q==null}if(i==="edge"){var s=this.getDataParams(e,i),l=s.data,f=s.value,v=l.source+" -- "+l.target;return Xs("nameValue",{name:v,value:f,noValue:o(f)})}else{var C=this.getGraph().getNodeByIndex(e),w=C.getLayout().value,x=this.getDataParams(e,i).data.name;return Xs("nameValue",{name:x!=null?x+"":null,value:w,noValue:o(w)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var i=r.prototype.getDataParams.call(this,e,n);if(i.value==null&&n==="node"){var o=this.getGraph().getNodeByIndex(e),s=o.getLayout().value;i.value=s}return i},t.type="series.sankey",t.defaultOption={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},edgeLabel:{show:!1,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}(no);function mJ(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),o=IJ(e,t);e.layoutInfo=o;var s=o.width,l=o.height,f=e.getGraph(),v=f.nodes,C=f.edges;CJ(v);var w=Ii(v,function(L){return L.getLayout().value===0}),x=w.length!==0?0:e.get("layoutIterations"),Q=e.get("orient"),R=e.get("nodeAlign");bJ(v,C,n,i,s,l,x,Q,R)})}function IJ(r,t){return Mo(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function bJ(r,t,e,n,i,o,s,l,f){wJ(r,t,e,i,o,l,f),QJ(r,t,o,i,n,s,l),LJ(r,l)}function CJ(r){Ne(r,function(t){var e=Ym(t.outEdges,p9),n=Ym(t.inEdges,p9),i=t.getValue()||0,o=Math.max(e,n,i);t.setLayout({value:o},!0)})}function wJ(r,t,e,n,i,o,s){for(var l=[],f=[],v=[],C=[],w=0,x=0;x=0;M&&P.depth>Q&&(Q=P.depth),L.setLayout({depth:M?P.depth:w},!0),o==="vertical"?L.setLayout({dy:e},!0):L.setLayout({dx:e},!0);for(var k=0;kw-1?Q:w-1;s&&s!=="left"&&EJ(r,s,o,le);var pe=o==="vertical"?(i-e)/le:(n-e)/le;kJ(r,pe,o)}function uF(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function EJ(r,t,e,n){if(t==="right"){for(var i=[],o=r,s=0;o.length;){for(var l=0;l0;o--)f*=.99,_J(l,f,s),WS(l,i,e,n,s),TJ(l,f,s),WS(l,i,e,n,s)}function xJ(r,t){var e=[],n=t==="vertical"?"y":"x",i=n1(r,function(o){return o.getLayout()[n]});return i.keys.sort(function(o,s){return o-s}),Ne(i.keys,function(o){e.push(i.buckets.get(o))}),e}function SJ(r,t,e,n,i,o){var s=1/0;Ne(r,function(l){var f=l.length,v=0;Ne(l,function(w){v+=w.getLayout().value});var C=o==="vertical"?(n-(f-1)*i)/v:(e-(f-1)*i)/v;C0&&(l=f.getLayout()[o]+v,i==="vertical"?f.setLayout({x:l},!0):f.setLayout({y:l},!0)),C=f.getLayout()[o]+f.getLayout()[x]+t;var R=i==="vertical"?n:e;if(v=C-t-R,v>0){l=f.getLayout()[o]-v,i==="vertical"?f.setLayout({x:l},!0):f.setLayout({y:l},!0),C=l;for(var Q=w-2;Q>=0;--Q)f=s[Q],v=f.getLayout()[o]+f.getLayout()[x]+t-C,v>0&&(l=f.getLayout()[o]-v,i==="vertical"?f.setLayout({x:l},!0):f.setLayout({y:l},!0)),C=f.getLayout()[o]}})}function _J(r,t,e){Ne(r.slice().reverse(),function(n){Ne(n,function(i){if(i.outEdges.length){var o=Ym(i.outEdges,DJ,e)/Ym(i.outEdges,p9);if(isNaN(o)){var s=i.outEdges.length;o=s?Ym(i.outEdges,RJ,e)/s:0}if(e==="vertical"){var l=i.getLayout().x+(o-Hm(i,e))*t;i.setLayout({x:l},!0)}else{var f=i.getLayout().y+(o-Hm(i,e))*t;i.setLayout({y:f},!0)}}})})}function DJ(r,t){return Hm(r.node2,t)*r.getValue()}function RJ(r,t){return Hm(r.node2,t)}function MJ(r,t){return Hm(r.node1,t)*r.getValue()}function FJ(r,t){return Hm(r.node1,t)}function Hm(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function p9(r){return r.getValue()}function Ym(r,t,e){for(var n=0,i=r.length,o=-1;++os&&(s=f)}),Ne(n,function(l){var f=new Ic({type:"color",mappingMethod:"linear",dataExtent:[o,s],visual:t.get("color")}),v=f.mapValueToVisual(l.getLayout().value),C=l.getModel().get(["itemStyle","color"]);C!=null?(l.setVisual("color",C),l.setVisual("style",{fill:C})):(l.setVisual("color",v),l.setVisual("style",{fill:v}))})}i.length&&Ne(i,function(l){var f=l.getModel().get("lineStyle");l.setVisual("style",f)})})}function OJ(r){r.registerChartView(pJ),r.registerSeriesModel(yJ),r.registerLayout(mJ),r.registerVisual(NJ),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var cF=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var n,i=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),s=i.get("type"),l=o.get("type"),f;s==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),f=!this._hasEncodeRule("x")):l==="category"?(t.layout="vertical",n=o.getOrdinalMeta(),f=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var v=["x","y"],C=t.layout==="horizontal"?0:1,w=this._baseAxisDim=v[C],x=v[1-C],Q=[i,o],R=Q[C].get("type"),L=Q[1-C].get("type"),P=t.data;if(P&&f){var M=[];Ne(P,function(Y,re){var ie;yr(Y)?(ie=Y.slice(),Y.unshift(re)):yr(Y.value)?(ie=ar({},Y),ie.value=ie.value.slice(),Y.value.unshift(re)):ie=Y,M.push(ie)}),t.data=M}var k=this.defaultValueDimensions,G=[{name:w,type:W1(R),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:x,type:W1(L),dimsDef:k.slice()}];return f3(this,{coordDimensions:G,dimensionsCount:k.length+1,encodeDefaulter:ni(ib,G,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),lF=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={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}(no);Ea(lF,cF,!0);var PJ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var o=e.getData(),s=this.group,l=this._data;this._data||s.removeAll();var f=e.get("layout")==="horizontal"?1:0;o.diff(l).add(function(v){if(o.hasValue(v)){var C=o.getItemLayout(v),w=hF(C,o,v,f,!0);o.setItemGraphicEl(v,w),s.add(w)}}).update(function(v,C){var w=l.getItemGraphicEl(C);if(!o.hasValue(v)){s.remove(w);return}var x=o.getItemLayout(v);w?(_l(w),fF(x,w,o,v)):w=hF(x,o,v,f),s.add(w),o.setItemGraphicEl(v,w)}).remove(function(v){var C=l.getItemGraphicEl(v);C&&s.remove(C)}).execute(),this._data=o},t.prototype.remove=function(e){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(o){o&&n.remove(o)})},t.type="boxplot",t}(d),GJ=function(){function r(){}return r}(),UJ=function(r){kt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new GJ},t.prototype.buildPath=function(e,n){var i=n.points,o=0;for(e.moveTo(i[o][0],i[o][1]),o++;o<4;o++)e.lineTo(i[o][0],i[o][1]);for(e.closePath();oL){var Y=[M,G];n.push(Y)}}}return{boxData:e,outliers:n}}var zJ={type:"echarts:boxplot",transform:function(r){var t=r.upstream;if(t.sourceFormat!==Qu){var e="";Ba(e)}var n=qJ(t.getRawData(),r.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function KJ(r){r.registerSeriesModel(lF),r.registerChartView(PJ),r.registerLayout(HJ),r.registerTransform(zJ)}var VJ=["itemStyle","borderColor"],ZJ=["itemStyle","borderColor0"],XJ=["itemStyle","borderColorDoji"],$J=["itemStyle","color"],eW=["itemStyle","color0"];function qS(r,t){return t.get(r>0?$J:eW)}function zS(r,t){return t.get(r===0?XJ:r>0?VJ:ZJ)}var tW={seriesType:"candlestick",plan:c(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(n,i){for(var o;(o=n.next())!=null;){var s=i.getItemModel(o),l=i.getItemLayout(o).sign,f=s.getItemStyle();f.fill=qS(l,s),f.stroke=zS(l,s)||f.fill;var v=i.ensureUniqueItemVisual(o,"style");ar(v,f)}}}}}},rW=["color","borderColor"],nW=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,i,o){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){Fl(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),i=this._data,o=this.group,s=n.getLayout("isSimpleBox"),l=e.get("clip",!0),f=e.coordinateSystem,v=f.getArea&&f.getArea();this._data||o.removeAll(),n.diff(i).add(function(C){if(n.hasValue(C)){var w=n.getItemLayout(C);if(l&&AF(v,w))return;var x=KS(w,C,!0);Co(x,{shape:{points:w.ends}},e,C),VS(x,n,C,s),o.add(x),n.setItemGraphicEl(C,x)}}).update(function(C,w){var x=i.getItemGraphicEl(w);if(!n.hasValue(C)){o.remove(x);return}var Q=n.getItemLayout(C);if(l&&AF(v,Q)){o.remove(x);return}x?(ga(x,{shape:{points:Q.ends}},e,C),_l(x)):x=KS(Q),VS(x,n,C,s),o.add(x),n.setItemGraphicEl(C,x)}).remove(function(C){var w=i.getItemGraphicEl(C);w&&o.remove(w)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),dF(e,this.group);var n=e.get("clip",!0)?av(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var i=n.getData(),o=i.getLayout("isSimpleBox"),s;(s=e.next())!=null;){var l=i.getItemLayout(s),f=KS(l);VS(f,i,s,o),f.incremental=!0,this.group.add(f),this._progressiveEls.push(f)}},t.prototype._incrementalRenderLarge=function(e,n){dF(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(d),iW=function(){function r(){}return r}(),aW=function(r){kt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new iW},t.prototype.buildPath=function(e,n){var i=n.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t}(Si);function KS(r,t,e){var n=r.ends;return new aW({shape:{points:e?oW(n,r):n},z2:100})}function AF(r,t){for(var e=!0,n=0;nre?Se[o]:Ee[o],ends:be,brushRect:vt(ie,le,G)})}function ft(Ct,St){var dr=[];return dr[i]=St,dr[o]=Ct,isNaN(St)||isNaN(Ct)?[NaN,NaN]:t.dataToPoint(dr)}function Qt(Ct,St,dr){var ur=St.slice(),ir=St.slice();ur[i]=Dl(ur[i]+n/2,1,!1),ir[i]=Dl(ir[i]-n/2,1,!0),dr?Ct.push(ur,ir):Ct.push(ir,ur)}function vt(Ct,St,dr){var ur=ft(Ct,dr),ir=ft(St,dr);return ur[i]-=n/2,ir[i]-=n/2,{x:ur[0],y:ur[1],width:n,height:ir[1]-ur[1]}}function Gt(Ct){return Ct[i]=Dl(Ct[i],1),Ct}}function R(L,P){for(var M=Ho(L.count*4),k=0,G,Y=[],re=[],ie,le=P.getStore(),pe=!!r.get(["itemStyle","borderColorDoji"]);(ie=L.next())!=null;){var ve=le.get(l,ie),Ee=le.get(v,ie),Se=le.get(C,ie),ke=le.get(w,ie),Le=le.get(x,ie);if(isNaN(ve)||isNaN(ke)||isNaN(Le)){M[k++]=NaN,k+=3;continue}M[k++]=pF(le,ie,Ee,Se,C,pe),Y[i]=ve,Y[o]=ke,G=t.dataToPoint(Y,null,re),M[k++]=G?G[0]:NaN,M[k++]=G?G[1]:NaN,Y[o]=Le,G=t.dataToPoint(Y,null,re),M[k++]=G?G[1]:NaN}P.setLayout("largePoints",M)}}};function pF(r,t,e,n,i,o){var s;return e>n?s=-1:e0?r.get(i,t-1)<=n?1:-1:1,s}function lW(r,t){var e=r.getBaseAxis(),n,i=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=jr($n(r.get("barMaxWidth"),i),i),s=jr($n(r.get("barMinWidth"),1),i),l=r.get("barWidth");return l!=null?jr(l,i):Math.max(Math.min(i/2,o),s)}function hW(r){r.registerChartView(nW),r.registerSeriesModel(gF),r.registerPreprocessor(uW),r.registerVisual(tW),r.registerLayout(cW)}function vF(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var fW=function(r){kt(t,r);function t(e,n){var i=r.call(this)||this,o=new fC(e,n),s=new Nn;return i.add(o),i.add(s),i.updateData(e,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,i=e.color,o=e.rippleNumber,s=this.childAt(1),l=0;l0&&(l=this._getLineLength(o)/C*1e3),l!==this._period||f!==this._loop||v!==this._roundTrip){o.stopAnimation();var x=void 0;bn(w)?x=w(i):x=w,o.__t>0&&(x=-l*o.__t),this._animateSymbol(o,l,x,f,v)}this._period=l,this._loop=f,this._roundTrip=v}},t.prototype._animateSymbol=function(e,n,i,o,s){if(n>0){e.__t=0;var l=this,f=e.animate("",o).when(s?n*2:n,{__t:s?2:1}).delay(i).during(function(){l._updateSymbolPosition(e)});o||f.done(function(){l.remove(e)}),f.start()}},t.prototype._getLineLength=function(e){return eA(e.__p1,e.__cp1)+eA(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,i){this.childAt(0).updateData(e,n,i),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,i=e.__p2,o=e.__cp1,s=e.__t<1?e.__t:2-e.__t,l=[e.x,e.y],f=l.slice(),v=su,C=Gv;l[0]=v(n[0],o[0],i[0],s),l[1]=v(n[1],o[1],i[1],s);var w=e.__t<1?C(n[0],o[0],i[0],s):C(i[0],o[0],n[0],1-s),x=e.__t<1?C(n[1],o[1],i[1],s):C(i[1],o[1],n[1],1-s);e.rotation=-Math.atan2(x,w)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(o[f]<=n);f--);f=Math.min(f,s-2)}else{for(f=l;fn);f++);f=Math.min(f-1,s-2)}var C=(n-o[f])/(o[f+1]-o[f]),w=i[f],x=i[f+1];e.x=w[0]*(1-C)+C*x[0],e.y=w[1]*(1-C)+C*x[1];var Q=e.__t<1?x[0]-w[0]:w[0]-x[0],R=e.__t<1?x[1]-w[1]:w[1]-x[1];e.rotation=-Math.atan2(R,Q)-Math.PI/2,this._lastFrame=f,this._lastFramePercent=n,e.ignore=!1}},t}(yF),vW=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),yW=function(r){kt(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new vW},t.prototype.buildPath=function(e,n){var i=n.segs,o=n.curveness,s;if(n.polyline)for(s=this._off;s0){e.moveTo(i[s++],i[s++]);for(var f=1;f0){var Q=(v+w)/2-(C-x)*o,R=(C+x)/2-(w-v)*o;e.quadraticCurveTo(Q,R,w,x)}else e.lineTo(w,x)}this.incremental&&(this._off=s,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var i=this.shape,o=i.segs,s=i.curveness,l=this.style.lineWidth;if(i.polyline)for(var f=0,v=0;v0)for(var w=o[v++],x=o[v++],Q=1;Q0){var P=(w+R)/2-(x-L)*s,M=(x+L)/2-(R-w)*s;if(Nw(w,x,P,M,R,L,l,e,n))return f}else if(bA(w,x,R,L,l,e,n))return f;f++}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),o=this.getBoundingRect();if(e=i[0],n=i[1],o.contain(e,n)){var s=this.hoverDataIdx=this.findDataIndex(e,n);return s>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,i=n.segs,o=1/0,s=1/0,l=-1/0,f=-1/0,v=0;v0&&(s.dataIndex=f+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),IF={seriesType:"lines",plan:c(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(i,o){var s=[];if(n){var l=void 0,f=i.end-i.start;if(e){for(var v=0,C=i.start;C0&&(C||v.configLayer(l,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(f/10+.9,1),0)})),s.updateData(o);var w=e.get("clip",!0)&&av(e.coordinateSystem,!1,e);w?this.group.setClipPath(w):this.group.removeClipPath(),this._lastZlevel=l,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var o=e.getData(),s=this._updateLineDraw(o,e);s.incrementalPrepareUpdate(o),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._lineDraw.incrementalUpdate(e,n.getData()),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,i){var o=e.getData(),s=e.pipelineContext;if(!this._finished||s.large||s.progressiveRender)return{update:!0};var l=IF.reset(e,n,i);l.progress&&l.progress({start:0,end:o.count(),count:o.count()},o),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(e,n){var i=this._lineDraw,o=this._showEffect(n),s=!!n.get("polyline"),l=n.pipelineContext,f=l.large;return(!i||o!==this._hasEffet||s!==this._isPolyline||f!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=f?new mW:new CS(s?o?pW:mF:o?yF:bS),this._hasEffet=o,this._isPolyline=s,this._isLargeDraw=f),this.group.add(i.group),i},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}(d),bW=typeof Uint32Array>"u"?Array:Uint32Array,CW=typeof Float64Array>"u"?Array:Float64Array;function bF(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=pr(t,function(e){var n=[e[0].coord,e[1].coord],i={coords:n};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),Us([i,e[0],e[1]])}))}var wW=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],bF(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(bF(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=x0(this._flatCoords,n.flatCoords),this._flatCoordsOffset=x0(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[e*2],o=this._flatCoordsOffset[e*2+1],s=0;si}}return{flatCoordsOffset:new Uint32Array(o.buffer,0,f),flatCoords:s,count:v}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,n){var i=new sl(["value"],this);return i.hasItemOption=!1,i.initData(e.data,[],function(o,s,l,f){if(o instanceof Array)return NaN;i.hasItemOption=!0;var v=o.value;if(v!=null)return v instanceof Array?v[f]:v}),i},t.prototype.formatTooltip=function(e,n,i){var o=this.getData(),s=o.getItemModel(e),l=s.get("name");if(l)return l;var f=s.get("fromName"),v=s.get("toName"),C=[];return f!=null&&C.push(f),v!=null&&C.push(v),Xs("nameValue",{name:C.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",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}(no);function v9(r){return r instanceof Array||(r=[r,r]),r}var EW={seriesType:"lines",reset:function(r){var t=v9(r.get("symbol")),e=v9(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function i(o,s){var l=o.getItemModel(s),f=v9(l.getShallow("symbol",!0)),v=v9(l.getShallow("symbolSize",!0));f[0]&&o.setItemVisual(s,"fromSymbol",f[0]),f[1]&&o.setItemVisual(s,"toSymbol",f[1]),v[0]&&o.setItemVisual(s,"fromSymbolSize",v[0]),v[1]&&o.setItemVisual(s,"toSymbolSize",v[1])}return{dataEach:n.hasItemOption?i:null}}};function BW(r){r.registerChartView(IW),r.registerSeriesModel(wW),r.registerLayout(IF),r.registerVisual(EW)}var kW=256,QW=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=oo.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,i,o,s){var l=this._getBrush(),f=this._getGradient(o,"inRange"),v=this._getGradient(o,"outOfRange"),C=this.pointSize+this.blurSize,w=this.canvas,x=w.getContext("2d"),Q=t.length;w.width=e,w.height=n;for(var R=0;R0){var ke=s(G)?f:v;G>0&&(G=G*Ee+pe),re[ie++]=ke[Se],re[ie++]=ke[Se+1],re[ie++]=ke[Se+2],re[ie++]=ke[Se+3]*G*256}else ie+=4}return x.putImageData(Y,0,0),w},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=oo.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(256*4)),o=[0,0,0,0],s=0,l=0;l<256;l++)t[e](l/255,!0,o),i[s++]=o[0],i[s++]=o[1],i[s++]=o[2],i[s++]=o[3];return i},r}();function xW(r,t,e){var n=r[1]-r[0];t=pr(t,function(s){return{interval:[(s.interval[0]-r[0])/n,(s.interval[1]-r[0])/n]}});var i=t.length,o=0;return function(s){var l;for(l=o;l=0;l--){var f=t[l].interval;if(f[0]<=s&&s<=f[1]){o=l;break}}return l>=0&&l=t[0]&&n<=t[1]}}function CF(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var _W=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var o;n.eachComponent("visualMap",function(l){l.eachTargetSeries(function(f){f===e&&(o=l)})}),this._progressiveEls=null,this.group.removeAll();var s=e.coordinateSystem;s.type==="cartesian2d"||s.type==="calendar"?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):CF(s)&&this._renderOnGeo(s,e,o,i)},t.prototype.incrementalPrepareRender=function(e,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,i,o){var s=n.coordinateSystem;s&&(CF(s)?this.render(n,i,o):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,o,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Fl(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,i,o,s){var l=e.coordinateSystem,f=v0(l,"cartesian2d"),v,C,w,x;if(f){var Q=l.getAxis("x"),R=l.getAxis("y");v=Q.getBandWidth()+.5,C=R.getBandWidth()+.5,w=Q.scale.getExtent(),x=R.scale.getExtent()}for(var L=this.group,P=e.getData(),M=e.getModel(["emphasis","itemStyle"]).getItemStyle(),k=e.getModel(["blur","itemStyle"]).getItemStyle(),G=e.getModel(["select","itemStyle"]).getItemStyle(),Y=e.get(["itemStyle","borderRadius"]),re=_s(e),ie=e.getModel("emphasis"),le=ie.get("focus"),pe=ie.get("blurScope"),ve=ie.get("disabled"),Ee=f?[P.mapDimension("x"),P.mapDimension("y"),P.mapDimension("value")]:[P.mapDimension("time"),P.mapDimension("value")],Se=i;Sew[1]||zex[1])continue;var ut=l.dataToPoint([be,ze]);ke=new ta({shape:{x:ut[0]-v/2,y:ut[1]-C/2,width:v,height:C},style:Le})}else{if(isNaN(P.get(Ee[1],Se)))continue;ke=new ta({z2:1,shape:l.dataToRect([P.get(Ee[0],Se)]).contentShape,style:Le})}if(P.hasItemOption){var ft=P.getItemModel(Se),Qt=ft.getModel("emphasis");M=Qt.getModel("itemStyle").getItemStyle(),k=ft.getModel(["blur","itemStyle"]).getItemStyle(),G=ft.getModel(["select","itemStyle"]).getItemStyle(),Y=ft.get(["itemStyle","borderRadius"]),le=Qt.get("focus"),pe=Qt.get("blurScope"),ve=Qt.get("disabled"),re=_s(ft)}ke.shape.r=Y;var vt=e.getRawValue(Se),Gt="-";vt&&vt[2]!=null&&(Gt=vt[2]+""),Uo(ke,re,{labelFetcher:e,labelDataIndex:Se,defaultOpacity:Le.opacity,defaultText:Gt}),ke.ensureState("emphasis").style=M,ke.ensureState("blur").style=k,ke.ensureState("select").style=G,uo(ke,le,pe,ve),ke.incremental=s,s&&(ke.states.emphasis.hoverLayer=!0),L.add(ke),P.setItemGraphicEl(Se,ke),this._progressiveEls&&this._progressiveEls.push(ke)}},t.prototype._renderOnGeo=function(e,n,i,o){var s=i.targetVisuals.inRange,l=i.targetVisuals.outOfRange,f=n.getData(),v=this._hmLayer||this._hmLayer||new QW;v.blurSize=n.get("blurSize"),v.pointSize=n.get("pointSize"),v.minOpacity=n.get("minOpacity"),v.maxOpacity=n.get("maxOpacity");var C=e.getViewRect().clone(),w=e.getRoamTransform();C.applyTransform(w);var x=Math.max(C.x,0),Q=Math.max(C.y,0),R=Math.min(C.width+C.x,o.getWidth()),L=Math.min(C.height+C.y,o.getHeight()),P=R-x,M=L-Q,k=[f.mapDimension("lng"),f.mapDimension("lat"),f.mapDimension("value")],G=f.mapArray(k,function(le,pe,ve){var Ee=e.dataToPoint([le,pe]);return Ee[0]-=x,Ee[1]-=Q,Ee.push(ve),Ee}),Y=i.getExtent(),re=i.type==="visualMap.continuous"?SW(Y,i.option.range):xW(Y,i.getPieceList(),i.option.selected);v.update(G,P,M,s.color.getNormalizer(),{inRange:s.color.getColorMapper(),outOfRange:l.color.getColorMapper()},re);var ie=new Ws({style:{width:P,height:M,x,y:Q,image:v.canvas},silent:!0});this.group.add(ie)},t.type="heatmap",t}(d),DW=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return WA(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=T1.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(no);function RW(r){r.registerChartView(_W),r.registerSeriesModel(DW)}var MW=["itemStyle","borderWidth"],wF=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],$S=new Gu,FW=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var o=this.group,s=e.getData(),l=this._data,f=e.coordinateSystem,v=f.getBaseAxis(),C=v.isHorizontal(),w=f.master.getRect(),x={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:f,coordSysExtent:[[w.x,w.x+w.width],[w.y,w.y+w.height]],isHorizontal:C,valueDim:wF[+C],categoryDim:wF[1-+C]};s.diff(l).add(function(R){if(s.hasValue(R)){var L=_F(s,R),P=EF(s,R,L,x),M=DF(s,x,P);s.setItemGraphicEl(R,M),o.add(M),FF(M,x,P)}}).update(function(R,L){var P=l.getItemGraphicEl(L);if(!s.hasValue(R)){o.remove(P);return}var M=_F(s,R),k=EF(s,R,M,x),G=MF(s,k);P&&G!==P.__pictorialShapeStr&&(o.remove(P),s.setItemGraphicEl(R,null),P=null),P?UW(P,x,k):P=DF(s,x,k,!0),s.setItemGraphicEl(R,P),P.__pictorialSymbolMeta=k,o.add(P),FF(P,x,k)}).remove(function(R){var L=l.getItemGraphicEl(R);L&&RF(l,R,L.__pictorialSymbolMeta.animationModel,L)}).execute();var Q=e.get("clip",!0)?av(e.coordinateSystem,!1,e):null;return Q?o.setClipPath(Q):o.removeClipPath(),this._data=s,this.group},t.prototype.remove=function(e,n){var i=this.group,o=this._data;e.get("animation")?o&&o.eachItemGraphicEl(function(s){RF(o,Un(s).dataIndex,e,s)}):i.removeAll()},t.type="pictorialBar",t}(d);function EF(r,t,e,n){var i=r.getItemLayout(t),o=e.get("symbolRepeat"),s=e.get("symbolClip"),l=e.get("symbolPosition")||"start",f=e.get("symbolRotate"),v=(f||0)*Math.PI/180||0,C=e.get("symbolPatternSize")||2,w=e.isAnimationEnabled(),x={dataIndex:t,layout:i,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:s,symbolRepeat:o,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:C,rotation:v,animationModel:w?e:null,hoverScale:w&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};TW(e,o,i,n,x),LW(r,t,i,o,s,x.boundingLength,x.pxSign,C,n,x),NW(e,x.symbolScale,v,n,x);var Q=x.symbolSize,R=cr(e.get("symbolOffset"),Q);return OW(e,Q,i,o,s,R,l,x.valueLineWidth,x.boundingLength,x.repeatCutLength,n,x),x}function TW(r,t,e,n,i){var o=n.valueDim,s=r.get("symbolBoundingData"),l=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),f=l.toGlobalCoord(l.dataToCoord(0)),v=1-+(e[o.wh]<=0),C;if(yr(s)){var w=[e7(l,s[0])-f,e7(l,s[1])-f];w[1]=0?1:-1:C>0?1:-1}function e7(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function LW(r,t,e,n,i,o,s,l,f,v){var C=f.valueDim,w=f.categoryDim,x=Math.abs(e[w.wh]),Q=r.getItemVisual(t,"symbolSize"),R;yr(Q)?R=Q.slice():Q==null?R=["100%","100%"]:R=[Q,Q],R[w.index]=jr(R[w.index],x),R[C.index]=jr(R[C.index],n?x:Math.abs(o)),v.symbolSize=R;var L=v.symbolScale=[R[0]/l,R[1]/l];L[C.index]*=(f.isHorizontal?-1:1)*s}function NW(r,t,e,n,i){var o=r.get(MW)||0;o&&($S.attr({scaleX:t[0],scaleY:t[1],rotation:e}),$S.updateTransform(),o/=$S.getLineScale(),o*=t[n.valueDim.index]),i.valueLineWidth=o||0}function OW(r,t,e,n,i,o,s,l,f,v,C,w){var x=C.categoryDim,Q=C.valueDim,R=w.pxSign,L=Math.max(t[Q.index]+l,0),P=L;if(n){var M=Math.abs(f),k=Bs(r.get("symbolMargin"),"15%")+"",G=!1;k.lastIndexOf("!")===k.length-1&&(G=!0,k=k.slice(0,k.length-1));var Y=jr(k,t[Q.index]),re=Math.max(L+Y*2,0),ie=G?0:Y*2,le=e1(n),pe=le?n:TF((M+ie)/re),ve=M-pe*L;Y=ve/2/(G?pe:Math.max(pe-1,1)),re=L+Y*2,ie=G?0:Y*2,!le&&n!=="fixed"&&(pe=v?TF((Math.abs(v)+ie)/re):0),P=pe*re-ie,w.repeatTimes=pe,w.symbolMargin=Y}var Ee=R*(P/2),Se=w.pathPosition=[];Se[x.index]=e[x.wh]/2,Se[Q.index]=s==="start"?Ee:s==="end"?f-Ee:f/2,o&&(Se[0]+=o[0],Se[1]+=o[1]);var ke=w.bundlePosition=[];ke[x.index]=e[x.xy],ke[Q.index]=e[Q.xy];var Le=w.barRectShape=ar({},e);Le[Q.wh]=R*Math.max(Math.abs(e[Q.wh]),Math.abs(Se[Q.index]+Ee)),Le[x.wh]=e[x.wh];var be=w.clipShape={};be[x.xy]=-e[x.xy],be[x.wh]=C.ecSize[x.wh],be[Q.xy]=0,be[Q.wh]=e[Q.wh]}function BF(r){var t=r.symbolPatternSize,e=yt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function kF(r,t,e,n){var i=r.__pictorialBundle,o=e.symbolSize,s=e.valueLineWidth,l=e.pathPosition,f=t.valueDim,v=e.repeatTimes||0,C=0,w=o[t.valueDim.index]+s+e.symbolMargin*2;for(t7(r,function(L){L.__pictorialAnimationIndex=C,L.__pictorialRepeatTimes=v,C0:M<0)&&(k=v-1-L),P[f.index]=w*(k-v/2+.5)+l[f.index],{x:P[0],y:P[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function QF(r,t,e,n){var i=r.__pictorialBundle,o=r.__pictorialMainPath;o?I3(o,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(o=r.__pictorialMainPath=BF(e),i.add(o),I3(o,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function xF(r,t,e){var n=ar({},t.barRectShape),i=r.__pictorialBarRect;i?I3(i,null,{shape:n},t,e):(i=r.__pictorialBarRect=new ta({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function SF(r,t,e,n){if(e.symbolClip){var i=r.__pictorialClipPath,o=ar({},e.clipShape),s=t.valueDim,l=e.animationModel,f=e.dataIndex;if(i)ga(i,{shape:o},l,f);else{o[s.wh]=0,i=new ta({shape:o}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var v={};v[s.wh]=e.clipShape[s.wh],Tl[n?"updateProps":"initProps"](i,{shape:v},l,f)}}}function _F(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=PW,e.isAnimationEnabled=GW,e}function PW(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function GW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function DF(r,t,e,n){var i=new Nn,o=new Nn;return i.add(o),i.__pictorialBundle=o,o.x=e.bundlePosition[0],o.y=e.bundlePosition[1],e.symbolRepeat?kF(i,t,e):QF(i,t,e),xF(i,e,n),SF(i,t,e,n),i.__pictorialShapeStr=MF(r,e),i.__pictorialSymbolMeta=e,i}function UW(r,t,e){var n=e.animationModel,i=e.dataIndex,o=r.__pictorialBundle;ga(o,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,i),e.symbolRepeat?kF(r,t,e,!0):QF(r,t,e,!0),xF(r,e,!0),SF(r,t,e,!0)}function RF(r,t,e,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var o=[];t7(n,function(s){o.push(s)}),n.__pictorialMainPath&&o.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),Ne(o,function(s){Nh(s,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function MF(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function t7(r,t,e){Ne(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function I3(r,t,e,n,i,o){t&&r.attr(t),n.symbolClip&&!i?e&&r.attr(e):e&&Tl[i?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,o)}function FF(r,t,e){var n=e.dataIndex,i=e.itemModel,o=i.getModel("emphasis"),s=o.getModel("itemStyle").getItemStyle(),l=i.getModel(["blur","itemStyle"]).getItemStyle(),f=i.getModel(["select","itemStyle"]).getItemStyle(),v=i.getShallow("cursor"),C=o.get("focus"),w=o.get("blurScope"),x=o.get("scale");t7(r,function(L){if(L instanceof Ws){var P=L.style;L.useStyle(ar({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},e.style))}else L.useStyle(e.style);var M=L.ensureState("emphasis");M.style=s,x&&(M.scaleX=L.scaleX*1.1,M.scaleY=L.scaleY*1.1),L.ensureState("blur").style=l,L.ensureState("select").style=f,v&&(L.cursor=v),L.z2=e.z2});var Q=t.valueDim.posDesc[+(e.boundingLength>0)],R=r.__pictorialBarRect;R.ignoreClip=!0,Uo(R,_s(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:d0(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:Q}),uo(r,C,w,o.get("disabled"))}function TF(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var jW=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=TA(sv.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(sv);function HW(r){r.registerChartView(FW),r.registerSeriesModel(jW),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ni(YQ,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,JQ("pictorialBar"))}var YW=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,n,i){var o=e.getData(),s=this,l=this.group,f=e.getLayerSeries(),v=o.getLayout("layoutInfo"),C=v.rect,w=v.boundaryGap;l.x=0,l.y=C.y+w[0];function x(P){return P.name}var Q=new Wh(this._layersSeries||[],f,x,x),R=[];Q.add(an(L,this,"add")).update(an(L,this,"update")).remove(an(L,this,"remove")).execute();function L(P,M,k){var G=s._layers;if(P==="remove"){l.remove(G[M]);return}for(var Y=[],re=[],ie,le=f[M].indices,pe=0;peo&&(o=l),n.push(l)}for(var v=0;vo&&(o=w)}return{y0:i,max:o}}function KW(r){r.registerChartView(YW),r.registerSeriesModel(WW),r.registerLayout(qW),r.registerProcessor(Um("themeRiver"))}var VW=2,ZW=4,NF=function(r){kt(t,r);function t(e,n,i,o){var s=r.call(this)||this;s.z2=VW,s.textConfig={inside:!0},Un(s).seriesIndex=n.seriesIndex;var l=new Mn({z2:ZW,silent:e.getModel().get(["label","silent"])});return s.setTextContent(l),s.updateData(!0,e,n,i,o),s}return t.prototype.updateData=function(e,n,i,o,s){this.node=n,n.piece=this,i=i||this._seriesModel,o=o||this._ecModel;var l=this;Un(l).dataIndex=n.dataIndex;var f=n.getModel(),v=f.getModel("emphasis"),C=n.getLayout(),w=ar({},C);w.label=null;var x=n.getVisual("style");x.lineJoin="bevel";var Q=n.getVisual("decal");Q&&(x.decal=Ms(Q,s));var R=We(f.getModel("itemStyle"),w,!0);ar(w,R),Ne(bi,function(k){var G=l.ensureState(k),Y=f.getModel([k,"itemStyle"]);G.style=Y.getItemStyle();var re=We(Y,w);re&&(G.shape=re)}),e?(l.setShape(w),l.shape.r=C.r0,Co(l,{shape:{r:C.r}},i,n.dataIndex)):(ga(l,{shape:w},i),_l(l)),l.useStyle(x),this._updateLabel(i);var L=f.getShallow("cursor");L&&l.attr("cursor",L),this._seriesModel=i||this._seriesModel,this._ecModel=o||this._ecModel;var P=v.get("focus"),M=P==="relative"?x0(n.getAncestorsIndices(),n.getDescendantIndices()):P==="ancestor"?n.getAncestorsIndices():P==="descendant"?n.getDescendantIndices():P;uo(this,M,v.get("blurScope"),v.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,i=this.node.getModel(),o=i.getModel("label"),s=this.node.getLayout(),l=s.endAngle-s.startAngle,f=(s.startAngle+s.endAngle)/2,v=Math.cos(f),C=Math.sin(f),w=this,x=w.getTextContent(),Q=this.node.dataIndex,R=o.get("minAngle")/180*Math.PI,L=o.get("show")&&!(R!=null&&Math.abs(l)be&&!Jo(ut-be)&&ut0?(s.virtualPiece?s.virtualPiece.updateData(!1,k,e,n,i):(s.virtualPiece=new NF(k,e,n,i),C.add(s.virtualPiece)),G.piece.off("click"),s.virtualPiece.on("click",function(Y){s._rootToNode(G.parentNode)})):s.virtualPiece&&(C.remove(s.virtualPiece),s.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,o=e.seriesModel.getViewRoot();o.eachNode(function(s){if(!i&&s.piece&&s.piece===n.target){var l=s.getModel().get("nodeClick");if(l==="rootToNode")e._rootToNode(s);else if(l==="link"){var f=s.getModel(),v=f.get("link");if(v){var C=f.get("target",!0)||"_blank";nm(v,C)}}i=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:n7,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var i=n.getData(),o=i.getItemLayout(0);if(o){var s=e[0]-o.cx,l=e[1]-o.cy,f=Math.sqrt(s*s+l*l);return f<=o.r&&f>=o.r0}},t.type="sunburst",t}(d),tq=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,n){var i={name:e.name,children:e.data};PF(i);var o=this._levelModels=pr(e.levels||[],function(f){return new Ia(f,this,n)},this),s=tS.createTree(i,this,l);function l(f){f.wrapMethod("getItemModel",function(v,C){var w=s.getNodeByDataIndex(C),x=o[w.depth];return x&&(v.parentModel=x),v})}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=a9(i,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 n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){VR(this)},t.type="series.sunburst",t.defaultOption={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}(no);function PF(r){var t=0;Ne(r.children,function(n){PF(n);var i=n.value;yr(i)&&(i=i[0]),t+=i});var e=r.value;yr(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),yr(r.value)?r.value[0]=e:r.value=e}var GF=Math.PI/180;function rq(r,t,e){t.eachSeriesByType(r,function(n){var i=n.get("center"),o=n.get("radius");yr(o)||(o=[0,o]),yr(i)||(i=[i,i]);var s=e.getWidth(),l=e.getHeight(),f=Math.min(s,l),v=jr(i[0],s),C=jr(i[1],l),w=jr(o[0],f/2),x=jr(o[1],f/2),Q=-n.get("startAngle")*GF,R=n.get("minAngle")*GF,L=n.getData().tree.root,P=n.getViewRoot(),M=P.depth,k=n.get("sort");k!=null&&UF(P,k);var G=0;Ne(P.children,function(ut){!isNaN(ut.getValue())&&G++});var Y=P.getValue(),re=Math.PI/(Y||G)*2,ie=P.depth>0,le=P.height-(ie?-1:1),pe=(x-w)/(le||1),ve=n.get("clockwise"),Ee=n.get("stillShowZeroSum"),Se=ve?1:-1,ke=function(ut,ft){if(ut){var Qt=ft;if(ut!==L){var vt=ut.getValue(),Gt=Y===0&&Ee?re:vt*re;Gt1;)s=s.parentNode;var l=i.getColorFromPalette(s.name||s.dataIndex+"",t);return n.depth>1&&en(l)&&(l=S2(l,(n.depth-1)/(o-1)*.5)),l}r.eachSeriesByType("sunburst",function(n){var i=n.getData(),o=i.tree;o.eachNode(function(s){var l=s.getModel(),f=l.getModel("itemStyle").getItemStyle();f.fill||(f.fill=e(s,n,o.root.height));var v=i.ensureUniqueItemVisual(s.dataIndex,"style");ar(v,f)})})}function aq(r){r.registerChartView(eq),r.registerSeriesModel(tq),r.registerLayout(ni(rq,"sunburst")),r.registerProcessor(ni(Um,"sunburst")),r.registerVisual(iq),$W(r)}var jF={color:"fill",borderColor:"stroke"},oq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},fv=Vi(),sq=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return WA(null,this)},t.prototype.getDataParams=function(e,n,i){var o=r.prototype.getDataParams.call(this,e,n);return i&&(o.info=fv(i).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(no);function uq(r,t){return t=t||[0,0],pr(["x","y"],function(e,n){var i=this.getAxis(e),o=t[n],s=r[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s))},this)}function cq(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:an(uq,r)}}}function lq(r,t){return t=t||[0,0],pr([0,1],function(e){var n=t[e],i=r[e]/2,o=[],s=[];return o[e]=n-i,s[e]=n+i,o[1-e]=s[1-e]=t[1-e],Math.abs(this.dataToPoint(o)[e]-this.dataToPoint(s)[e])},this)}function hq(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:an(lq,r)}}}function fq(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,i=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-i)-e.dataToCoord(n+i))}function Aq(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:an(fq,r)}}}function dq(r,t){return t=t||[0,0],pr(["Radius","Angle"],function(e,n){var i="get"+e+"Axis",o=this[i](),s=t[n],l=r[n]/2,f=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(s-l)-o.dataToCoord(s+l));return e==="Angle"&&(f=f*Math.PI/180),f},this)}function gq(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(i){var o=t.dataToRadius(i[0]),s=e.dataToAngle(i[1]),l=r.coordToPoint([o,s]);return l.push(o,s*Math.PI/180),l},size:an(dq,r)}}}function pq(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,i){return r.dataToPoint(n,i)}}}}function HF(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||ln(r,"text")))}function YF(r,t,e){var n=r,i,o,s;if(t==="text")s=n;else{s={},ln(n,"text")&&(s.text=n.text),ln(n,"rich")&&(s.rich=n.rich),ln(n,"textFill")&&(s.fill=n.textFill),ln(n,"textStroke")&&(s.stroke=n.textStroke),ln(n,"fontFamily")&&(s.fontFamily=n.fontFamily),ln(n,"fontSize")&&(s.fontSize=n.fontSize),ln(n,"fontStyle")&&(s.fontStyle=n.fontStyle),ln(n,"fontWeight")&&(s.fontWeight=n.fontWeight),o={type:"text",style:s,silent:!0},i={};var l=ln(n,"textPosition");e?i.position=l?n.textPosition:"inside":l&&(i.position=n.textPosition),ln(n,"textPosition")&&(i.position=n.textPosition),ln(n,"textOffset")&&(i.offset=n.textOffset),ln(n,"textRotation")&&(i.rotation=n.textRotation),ln(n,"textDistance")&&(i.distance=n.textDistance)}return JF(s,r),Ne(s.rich,function(f){JF(f,f)}),{textConfig:i,textContent:o}}function JF(r,t){t&&(t.font=t.textFont||t.font,ln(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),ln(t,"textAlign")&&(r.align=t.textAlign),ln(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),ln(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),ln(t,"textWidth")&&(r.width=t.textWidth),ln(t,"textHeight")&&(r.height=t.textHeight),ln(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),ln(t,"textPadding")&&(r.padding=t.textPadding),ln(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),ln(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),ln(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),ln(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),ln(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),ln(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),ln(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function WF(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var i=n.textPosition.indexOf("inside")>=0,o=r.fill||"#000";qF(n,t);var s=n.textFill==null;return i?s&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=o),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(s&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,Ne(t.rich,function(l){qF(l,l)}),n}function qF(r,t){t&&(ln(t,"fill")&&(r.textFill=t.fill),ln(t,"stroke")&&(r.textStroke=t.fill),ln(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),ln(t,"font")&&(r.font=t.font),ln(t,"fontStyle")&&(r.fontStyle=t.fontStyle),ln(t,"fontWeight")&&(r.fontWeight=t.fontWeight),ln(t,"fontSize")&&(r.fontSize=t.fontSize),ln(t,"fontFamily")&&(r.fontFamily=t.fontFamily),ln(t,"align")&&(r.textAlign=t.align),ln(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),ln(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),ln(t,"width")&&(r.textWidth=t.width),ln(t,"height")&&(r.textHeight=t.height),ln(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),ln(t,"padding")&&(r.textPadding=t.padding),ln(t,"borderColor")&&(r.textBorderColor=t.borderColor),ln(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),ln(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),ln(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),ln(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),ln(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),ln(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),ln(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),ln(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),ln(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),ln(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var zF={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},KF=fi(zF);xa(Zl,function(r,t){return r[t]=1,r},{}),Zl.join(", ");var y9=["","style","shape","extra"],b3=Vi();function i7(r,t,e,n,i){var o=r+"Animation",s=ig(r,n,i)||{},l=b3(t).userDuring;return s.duration>0&&(s.during=l?an(bq,{el:t,userDuring:l}):null,s.setToFinal=!0,s.scope=r),ar(s,e[o]),s}function m9(r,t,e,n){n=n||{};var i=n.dataIndex,o=n.isInit,s=n.clearStyle,l=e.isAnimationEnabled(),f=b3(r),v=t.style;f.userDuring=t.during;var C={},w={};if(wq(r,t,w),XF("shape",t,w),XF("extra",t,w),!o&&l&&(Cq(r,t,C),ZF("shape",r,t,C),ZF("extra",r,t,C),Eq(r,t,v,C)),w.style=v,vq(r,w,s),mq(r,t),l)if(o){var x={};Ne(y9,function(R){var L=R?t[R]:t;L&&L.enterFrom&&(R&&(x[R]=x[R]||{}),ar(R?x[R]:x,L.enterFrom))});var Q=i7("enter",r,t,e,i);Q.duration>0&&r.animateFrom(x,Q)}else yq(r,t,i||0,e,C);VF(r,t),v?r.dirty():r.markRedraw()}function VF(r,t){for(var e=b3(r).leaveToProps,n=0;n0&&r.animateFrom(i,o)}}function mq(r,t){ln(t,"silent")&&(r.silent=t.silent),ln(t,"ignore")&&(r.ignore=t.ignore),r instanceof ii&&ln(t,"invisible")&&(r.invisible=t.invisible),r instanceof Si&&ln(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var y0={},Iq={setTransform:function(r,t){return y0.el[r]=t,this},getTransform:function(r){return y0.el[r]},setShape:function(r,t){var e=y0.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=y0.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=y0.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=y0.el.style;if(t)return t[r]},setExtra:function(r,t){var e=y0.el.extra||(y0.el.extra={});return e[r]=t,this},getExtra:function(r){var t=y0.el.extra;if(t)return t[r]}};function bq(){var r=this,t=r.el;if(t){var e=b3(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}y0.el=t,n(Iq)}}function ZF(r,t,e,n){var i=e[r];if(i){var o=t[r],s;if(o){var l=e.transition,f=i.transition;if(f)if(!s&&(s=n[r]={}),EC(f))ar(s,o);else for(var v=ja(f),C=0;C=0){!s&&(s=n[r]={});for(var Q=fi(o),C=0;C=0)){var x=r.getAnimationStyleProps(),Q=x?x.style:null;if(Q){!o&&(o=n.style={});for(var R=fi(e),v=0;v=0?t.getStore().get(ft,ze):void 0}var Qt=t.get(ut.name,ze),vt=ut&&ut.ordinalMeta;return vt?vt.categories[Qt]:Qt}function ie(be,ze){ze==null&&(ze=v);var ut=t.getItemVisual(ze,"style"),ft=ut&&ut.fill,Qt=ut&&ut.opacity,vt=k(ze,Jm).getItemStyle();ft!=null&&(vt.fill=ft),Qt!=null&&(vt.opacity=Qt);var Gt={inheritColor:en(ft)?ft:"#000"},Ct=G(ze,Jm),St=La(Ct,null,Gt,!1,!0);St.text=Ct.getShallow("show")?$n(r.getFormattedLabel(ze,Jm),d0(t,ze)):null;var dr=Ef(Ct,Gt,!1);return ve(be,vt),vt=WF(vt,St,dr),be&&pe(vt,be),vt.legacy=!0,vt}function le(be,ze){ze==null&&(ze=v);var ut=k(ze,Av).getItemStyle(),ft=G(ze,Av),Qt=La(ft,null,null,!0,!0);Qt.text=ft.getShallow("show")?ec(r.getFormattedLabel(ze,Av),r.getFormattedLabel(ze,Jm),d0(t,ze)):null;var vt=Ef(ft,null,!0);return ve(be,ut),ut=WF(ut,Qt,vt),be&&pe(ut,be),ut.legacy=!0,ut}function pe(be,ze){for(var ut in ze)ln(ze,ut)&&(be[ut]=ze[ut])}function ve(be,ze){be&&(be.textFill&&(ze.textFill=be.textFill),be.textPosition&&(ze.textPosition=be.textPosition))}function Ee(be,ze){if(ze==null&&(ze=v),ln(jF,be)){var ut=t.getItemVisual(ze,"style");return ut?ut[jF[be]]:null}if(ln(oq,be))return t.getItemVisual(ze,be)}function Se(be){if(o.type==="cartesian2d"){var ze=o.getBaseAxis();return Tk(pn({axis:ze},be))}}function ke(){return e.getCurrentSeriesIndices()}function Le(be){return zy(be,e)}}function Fq(r){var t={};return Ne(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var i=n.coordDim,o=t[i]=t[i]||[];o[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function A7(r,t,e,n,i,o,s){if(!n){o.remove(t);return}var l=d7(r,t,e,n,i,o);return l&&s.setItemGraphicEl(e,l),l&&uo(l,n.focus,n.blurScope,n.emphasisDisabled),l}function d7(r,t,e,n,i,o){var s=-1,l=t;t&&nT(t,n,i)&&(s=Vn(o.childrenRef(),t),t=null);var f=!t,v=t;v?v.clearStates():(v=h7(n),l&&_q(l,v)),n.morph===!1?v.disableMorphing=!0:v.disableMorphing&&(v.disableMorphing=!1),ad.normal.cfg=ad.normal.conOpt=ad.emphasis.cfg=ad.emphasis.conOpt=ad.blur.cfg=ad.blur.conOpt=ad.select.cfg=ad.select.conOpt=null,ad.isLegacy=!1,Lq(v,e,n,i,f,ad),Tq(v,e,n,i,f),f7(r,v,e,n,ad,i,f),ln(n,"info")&&(fv(v).info=n.info);for(var C=0;C=0?o.replaceAt(v,s):o.add(v),v}function nT(r,t,e){var n=fv(r),i=t.type,o=t.shape,s=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&Uq(o)&&sT(o)!==n.customPathData||i==="image"&&ln(s,"image")&&s.image!==n.customImagePath}function Tq(r,t,e,n,i){var o=e.clipPath;if(o===!1)r&&r.getClipPath()&&r.removeClipPath();else if(o){var s=r.getClipPath();s&&nT(s,o,n)&&(s=null),s||(s=h7(o),r.setClipPath(s)),f7(null,s,t,o,null,n,i)}}function Lq(r,t,e,n,i,o){if(!r.isGroup){iT(e,null,o),iT(e,Av,o);var s=o.normal.conOpt,l=o.emphasis.conOpt,f=o.blur.conOpt,v=o.select.conOpt;if(s!=null||l!=null||v!=null||f!=null){var C=r.getTextContent();if(s===!1)C&&r.removeTextContent();else{s=o.normal.conOpt=s||{type:"text"},C?C.clearStates():(C=h7(s),r.setTextContent(C)),f7(null,C,t,s,null,n,i);for(var w=s&&s.style,x=0;x=C;Q--){var R=t.childAt(Q);Oq(t,R,i)}}}function Oq(r,t,e){t&&I9(t,fv(r).option,e)}function Pq(r){new Wh(r.oldChildren,r.newChildren,aT,aT,r).add(oT).update(oT).remove(Gq).execute()}function aT(r,t){var e=r&&r.name;return e??xq+t}function oT(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,i=t!=null?e.oldChildren[t]:null;d7(e.api,i,e.dataIndex,n,e.seriesModel,e.group)}function Gq(r){var t=this.context,e=t.oldChildren[r];e&&I9(e,fv(e).option,t.seriesModel)}function sT(r){return r&&(r.pathData||r.d)}function Uq(r){return r&&(ln(r,"pathData")||ln(r,"d"))}function jq(r){r.registerChartView(Dq),r.registerSeriesModel(sq)}var BC=Vi(),uT=Bn,p7=an,v7=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var o=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===o&&this._lastStatus===s)){this._lastValue=o,this._lastStatus=s;var l=this._group,f=this._handle;if(!s||s==="hide"){l&&l.hide(),f&&f.hide();return}l&&l.show(),f&&f.show();var v={};this.makeElOption(v,o,t,e,n);var C=v.graphicKey;C!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=C;var w=this._moveAnimation=this.determineAnimation(t,e);if(!l)l=this._group=new Nn,this.createPointerEl(l,v,t,e),this.createLabelEl(l,v,t,e),n.getZr().add(l);else{var x=ni(cT,e,w);this.updatePointerEl(l,v,x),this.updateLabelEl(l,v,x,e)}fT(l,e,!0),this._renderHandle(o)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,o=i.type==="category",s=e.get("snap");if(!s&&!o)return!1;if(n==="auto"||n==null){var l=this.animationThreshold;if(o&&i.getBandWidth()>l)return!0;if(s){var f=O8(t).seriesDataCount,v=i.getExtent();return Math.abs(v[0]-v[1])/f>l}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,o){},r.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;if(o){var s=BC(t).pointerEl=new Tl[o.type](uT(e.pointer));t.add(s)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var o=BC(t).labelEl=new Mn(uT(e.label));t.add(o),hT(o,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=BC(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var o=BC(t).labelEl;o&&(o.setStyle(e.label.style),n(o,{x:e.label.x,y:e.label.y}),hT(o,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),s=e.get("status");if(!o.get("show")||!s||s==="hide"){i&&n.remove(i),this._handle=null;return}var l;this._handle||(l=!0,i=this._handle=RA(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(v){rf(v.event)},onmousedown:p7(this._onHandleDragMove,this,0,0),drift:p7(this._onHandleDragMove,this),ondragend:p7(this._onHandleDragEnd,this)}),n.add(i)),fT(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var f=o.get("size");yr(f)||(f=[f,f]),i.scaleX=f[0]/2,i.scaleY=f[1]/2,S(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,l)}},r.prototype._moveHandleToValue=function(t,e){cT(this._axisPointerModel,!e&&this._moveAnimation,this._handle,y7(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(y7(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(y7(i)),BC(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),_(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function cT(r,t,e,n){lT(BC(e).lastProp,n)||(BC(e).lastProp=n,t?ga(e,n,r):(e.stopAnimation(),e.attr(n)))}function lT(r,t){if(Ln(r)&&Ln(t)){var e=!0;return Ne(t,function(n,i){e=e&&lT(r[i],n)}),!!e}else return r===t}function hT(r,t){r[t.get(["label","show"])?"show":"hide"]()}function y7(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function fT(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(o){o.type!=="group"&&(n!=null&&(o.z=n),i!=null&&(o.zlevel=i),o.silent=e)})}function m7(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function AT(r,t,e,n,i){var o=e.get("value"),s=dT(o,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),l=e.getModel("label"),f=lg(l.get("padding")||0),v=l.getFont(),C=V0(s,v),w=i.position,x=C.width+f[1]+f[3],Q=C.height+f[0]+f[2],R=i.align;R==="right"&&(w[0]-=x),R==="center"&&(w[0]-=x/2);var L=i.verticalAlign;L==="bottom"&&(w[1]-=Q),L==="middle"&&(w[1]-=Q/2),Hq(w,x,Q,n);var P=l.get("backgroundColor");(!P||P==="auto")&&(P=t.get(["axisLine","lineStyle","color"])),r.label={x:w[0],y:w[1],style:La(l,{text:s,font:v,fill:l.getTextColor(),padding:f,backgroundColor:P}),z2:10}}function Hq(r,t,e,n){var i=n.getWidth(),o=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,o)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function dT(r,t,e,n,i){r=t.scale.parse(r);var o=t.scale.getLabel({value:r},{precision:i.precision}),s=i.formatter;if(s){var l={value:zA(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Ne(n,function(f){var v=e.getSeriesByIndex(f.seriesIndex),C=f.dataIndexInside,w=v&&v.getDataParams(C);w&&l.seriesData.push(w)}),en(s)?o=s.replace("{value}",o):bn(s)&&(o=s(l))}return o}function I7(r,t,e){var n=Lu();return nf(n,n,e.rotation),Hs(n,n,e.position),Rl([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function gT(r,t,e,n,i,o){var s=mh.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),AT(t,n,i,o,{position:I7(n.axis,r,e),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function b7(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function pT(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function vT(r,t,e,n,i,o){return{cx:r,cy:t,r0:e,r:n,startAngle:i,endAngle:o,clockwise:!0}}var Yq=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,o,s){var l=i.axis,f=l.grid,v=o.get("type"),C=yT(f,l).getOtherAxis(l).getGlobalExtent(),w=l.toGlobalCoord(l.dataToCoord(n,!0));if(v&&v!=="none"){var x=m7(o),Q=Jq[v](l,w,C);Q.style=x,e.graphicKey=Q.type,e.pointer=Q}var R=F8(f.model,i);gT(n,e,R,i,o,s)},t.prototype.getHandleTransform=function(e,n,i){var o=F8(n.axis.grid.model,n,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var s=I7(n.axis,e,o);return{x:s[0],y:s[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,o){var s=i.axis,l=s.grid,f=s.getGlobalExtent(!0),v=yT(l,s).getOtherAxis(s).getGlobalExtent(),C=s.dim==="x"?0:1,w=[e.x,e.y];w[C]+=n[C],w[C]=Math.min(f[1],w[C]),w[C]=Math.max(f[0],w[C]);var x=(v[1]+v[0])/2,Q=[x,x];Q[C]=w[C];var R=[{verticalAlign:"middle"},{align:"center"}];return{x:w[0],y:w[1],rotation:e.rotation,cursorPoint:Q,tooltipOption:R[C]}},t}(v7);function yT(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var Jq={line:function(r,t,e){var n=b7([t,e[0]],[t,e[1]],mT(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:pT([t-n/2,e[0]],[n,i],mT(r))}}};function mT(r){return r.dim==="x"?0:1}var Wq=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}(Oi),dv=Vi(),qq=Ne;function IT(r,t,e){if(!Yn.node){var n=t.getZr();dv(n).records||(dv(n).records={}),zq(n,t);var i=dv(n).records[r]||(dv(n).records[r]={});i.handler=e}}function zq(r,t){if(dv(r).initialized)return;dv(r).initialized=!0,e("click",ni(bT,"click")),e("mousemove",ni(bT,"mousemove")),e("globalout",Vq);function e(n,i){r.on(n,function(o){var s=Zq(t);qq(dv(r).records,function(l){l&&i(l,o,s.dispatchAction)}),Kq(s.pendings,t)})}}function Kq(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Vq(r,t,e){r.handler("leave",null,e)}function bT(r,t,e,n){t.handler(r,e,n)}function Zq(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function C7(r,t){if(!Yn.node){var e=t.getZr(),n=(dv(e).records||{})[r];n&&(dv(e).records[r]=null)}}var Xq=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var o=n.getComponent("tooltip"),s=e.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";IT("axisPointer",i,function(l,f,v){s!=="none"&&(l==="leave"||s.indexOf(l)>=0)&&v({type:"updateAxisPointer",currTrigger:l,x:f&&f.offsetX,y:f&&f.offsetY})})},t.prototype.remove=function(e,n){C7("axisPointer",n)},t.prototype.dispose=function(e,n){C7("axisPointer",n)},t.type="axisPointer",t}(a);function CT(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var o=i.getData(),s=uc(o,r);if(s==null||s<0||yr(s))return{point:[]};var l=o.getItemGraphicEl(s),f=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(s)||[];else if(f&&f.dataToPoint)if(r.isStacked){var v=f.getBaseAxis(),C=f.getOtherAxis(v),w=C.dim,x=v.dim,Q=w==="x"||w==="radius"?1:0,R=o.mapDimension(x),L=[];L[Q]=o.get(R,s),L[1-Q]=o.get(o.getCalculationInfo("stackResultDimension"),s),e=f.dataToPoint(L)||[]}else e=f.dataToPoint(o.getValues(pr(f.dimensions,function(M){return o.mapDimension(M)}),s))||[];else if(l){var P=l.getBoundingRect().clone();P.applyTransform(l.transform),e=[P.x+P.width/2,P.y+P.height/2]}return{point:e,el:l}}var wT=Vi();function $q(r,t,e){var n=r.currTrigger,i=[r.x,r.y],o=r,s=r.dispatchAction||an(e.dispatchAction,e),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){w9(i)&&(i=CT({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var f=w9(i),v=o.axesInfo,C=l.axesInfo,w=n==="leave"||w9(i),x={},Q={},R={list:[],map:{}},L={showPointer:ni(tz,Q),showTooltip:ni(rz,R)};Ne(l.coordSysMap,function(M,k){var G=f||M.containPoint(i);Ne(l.coordSysAxesInfo[k],function(Y,re){var ie=Y.axis,le=oz(v,Y);if(!w&&G&&(!v||le)){var pe=le&&le.value;pe==null&&!f&&(pe=ie.pointToData(i)),pe!=null&&ET(Y,pe,L,!1,x)}})});var P={};return Ne(C,function(M,k){var G=M.linkGroup;G&&!Q[k]&&Ne(G.axesInfo,function(Y,re){var ie=Q[re];if(Y!==M&&ie){var le=ie.value;G.mapper&&(le=M.axis.scale.parse(G.mapper(le,BT(Y),BT(M)))),P[M.key]=le}})}),Ne(P,function(M,k){ET(C[k],M,L,!0,x)}),nz(Q,C,x),iz(R,i,r,s),az(C,s,e),x}}function ET(r,t,e,n,i){var o=r.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var s=ez(t,r),l=s.payloadBatch,f=s.snapToValue;l[0]&&i.seriesIndex==null&&ar(i,l[0]),!n&&r.snap&&o.containData(f)&&f!=null&&(t=f),e.showPointer(r,t,l),e.showTooltip(r,s,f)}}function ez(r,t){var e=t.axis,n=e.dim,i=r,o=[],s=Number.MAX_VALUE,l=-1;return Ne(t.seriesModels,function(f,v){var C=f.getData().mapDimensionsAll(n),w,x;if(f.getAxisTooltipData){var Q=f.getAxisTooltipData(C,r,e);x=Q.dataIndices,w=Q.nestestValue}else{if(x=f.getData().indicesOfNearest(C[0],r,e.type==="category"?.5:null),!x.length)return;w=f.getData().get(C[0],x[0])}if(!(w==null||!isFinite(w))){var R=r-w,L=Math.abs(R);L<=s&&((L=0&&l<0)&&(s=L,l=R,i=w,o.length=0),Ne(x,function(P){o.push({seriesIndex:f.seriesIndex,dataIndexInside:P,dataIndex:f.getData().getRawIndex(P)})}))}}),{payloadBatch:o,snapToValue:i}}function tz(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function rz(r,t,e,n){var i=e.payloadBatch,o=t.axis,s=o.model,l=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var f=t.coordSys.model,v=T4(f),C=r.map[v];C||(C=r.map[v]={coordSysId:f.id,coordSysIndex:f.componentIndex,coordSysType:f.type,coordSysMainType:f.mainType,dataByAxis:[]},r.list.push(C)),C.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function nz(r,t,e){var n=e.axesInfo=[];Ne(t,function(i,o){var s=i.axisPointerModel.option,l=r[o];l?(!i.useHandle&&(s.status="show"),s.value=l.value,s.seriesDataIndices=(l.payloadBatch||[]).slice()):!i.useHandle&&(s.status="hide"),s.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:s.value})})}function iz(r,t,e,n){if(w9(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function az(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",o=wT(n)[i]||{},s=wT(n)[i]={};Ne(r,function(v,C){var w=v.axisPointerModel.option;w.status==="show"&&v.triggerEmphasis&&Ne(w.seriesDataIndices,function(x){var Q=x.seriesIndex+" | "+x.dataIndex;s[Q]=x})});var l=[],f=[];Ne(o,function(v,C){!s[C]&&f.push(v)}),Ne(s,function(v,C){!o[C]&&l.push(v)}),f.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:f}),l.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function oz(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function BT(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function w9(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function $4(r){gC.registerAxisPointerClass("CartesianAxisPointer",Yq),r.registerComponentModel(Wq),r.registerComponentView(Xq),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!yr(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=pU(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$q)}function sz(r){Fi(aR),Fi($4)}var uz=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,o,s){var l=i.axis;l.dim==="angle"&&(this.animationThreshold=Math.PI/18);var f=l.polar,v=f.getOtherAxis(l),C=v.getExtent(),w=l.dataToCoord(n),x=o.get("type");if(x&&x!=="none"){var Q=m7(o),R=lz[x](l,f,w,C);R.style=Q,e.graphicKey=R.type,e.pointer=R}var L=o.get(["label","margin"]),P=cz(n,i,o,f,L);AT(e,i,o,s,P)},t}(v7);function cz(r,t,e,n,i){var o=t.axis,s=o.dataToCoord(r),l=n.getAngleAxis().getExtent()[0];l=l/180*Math.PI;var f=n.getRadiusAxis().getExtent(),v,C,w;if(o.dim==="radius"){var x=Lu();nf(x,x,l),Hs(x,x,[n.cx,n.cy]),v=Rl([s,-i],x);var Q=t.getModel("axisLabel").get("rotate")||0,R=mh.innerTextLayout(l,Q*Math.PI/180,-1);C=R.textAlign,w=R.textVerticalAlign}else{var L=f[1];v=n.coordToPoint([L+i,s]);var P=n.cx,M=n.cy;C=Math.abs(v[0]-P)/L<.3?"center":v[0]>P?"left":"right",w=Math.abs(v[1]-M)/L<.3?"middle":v[1]>M?"top":"bottom"}return{position:v,align:C,verticalAlign:w}}var lz={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:b7(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var i=Math.max(1,r.getBandWidth()),o=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:vT(t.cx,t.cy,n[0],n[1],(-e-i/2)*o,(-e+i/2)*o)}:{type:"Sector",shape:vT(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}},hz=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,i=this.ecModel;return i.eachComponent(e,function(o){o.getCoordSysModel()===this&&(n=o)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Oi),w7=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",fs).models[0]},t.type="polarAxis",t}(Oi);Ea(w7,Z1);var fz=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(w7),Az=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(w7),E7=function(r){kt(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(_u);E7.prototype.dataToRadius=_u.prototype.dataToCoord,E7.prototype.radiusToData=_u.prototype.coordToData;var dz=Vi(),B7=function(r){kt(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),i=e.scale,o=i.getExtent(),s=i.count();if(o[1]-o[0]<1)return 0;var l=o[0],f=e.dataToCoord(l+1)-e.dataToCoord(l),v=Math.abs(f),C=V0(l==null?"":l+"",n.getFont(),"center","top"),w=Math.max(C.height,7),x=w/v;isNaN(x)&&(x=1/0);var Q=Math.max(0,Math.floor(x)),R=dz(e.model),L=R.lastAutoInterval,P=R.lastTickCount;return L!=null&&P!=null&&Math.abs(L-Q)<=1&&Math.abs(P-s)<=1&&L>Q?Q=L:(R.lastTickCount=s,R.lastAutoInterval=Q),Q},t}(_u);B7.prototype.dataToAngle=_u.prototype.dataToCoord,B7.prototype.angleToData=_u.prototype.coordToData;var kT=["radius","angle"],gz=function(){function r(t){this.dimensions=kT,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new E7,this._angleAxis=new B7,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),s=Math.min(o[0],o[1]),l=Math.max(o[0],o[1]);i.inverse?s=l-360:l=s+360;var f=Math.sqrt(e*e+n*n);e/=f,n/=f;for(var v=Math.atan2(-n,e)/Math.PI*180,C=vl;)v+=C*360;return[f,v]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,o=-Math.sin(n)*e+this.cy;return[i,o]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),o=Math.PI/180,s=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*o,endAngle:-i[1]*o,clockwise:t.inverse,contain:function(l,f){var v=l-this.cx,C=f-this.cy,w=v*v+C*C,x=this.r,Q=this.r0;return x!==Q&&w-s<=x*x&&w+s>=Q*Q}}},r.prototype.convertToPixel=function(t,e,n){var i=QT(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=QT(e);return i===this?this.pointToData(n):null},r}();function QT(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function pz(r,t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight();r.cx=jr(n[0],i),r.cy=jr(n[1],o);var s=r.getRadiusAxis(),l=Math.min(i,o)/2,f=t.get("radius");f==null?f=[0,"100%"]:yr(f)||(f=[0,f]);var v=[jr(f[0],l),jr(f[1],l)];s.inverse?s.setExtent(v[1],v[0]):s.setExtent(v[0],v[1])}function vz(r,t){var e=this,n=e.getAngleAxis(),i=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(l){if(l.coordinateSystem===e){var f=l.getData();Ne(Dm(f,"radius"),function(v){i.scale.unionExtentFromData(f,v)}),Ne(Dm(f,"angle"),function(v){n.scale.unionExtentFromData(f,v)})}}),l0(n.scale,n.model),l0(i.scale,i.model),n.type==="category"&&!n.onBand){var o=n.getExtent(),s=360/n.scale.count();n.inverse?o[1]+=s:o[1]-=s,n.setExtent(o[0],o[1])}}function yz(r){return r.mainType==="angleAxis"}function xT(r,t){var e;if(r.type=t.get("type"),r.scale=$b(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),yz(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,i)}t.axis=r,r.model=t}var mz={dimensions:kT,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,i){var o=new gz(i+"");o.update=vz;var s=o.getRadiusAxis(),l=o.getAngleAxis(),f=n.findAxisModel("radiusAxis"),v=n.findAxisModel("angleAxis");xT(s,f),xT(l,v),pz(o,n,t),e.push(o),n.coordinateSystem=o,o.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",fs).models[0];n.coordinateSystem=i.coordinateSystem}}),e}},Iz=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E9(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),i=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function B9(r){var t=r.getRadiusAxis();return t.inverse?0:1}function ST(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var bz=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var i=e.axis,o=i.polar,s=o.getRadiusAxis().getExtent(),l=i.getTicksCoords(),f=i.getMinorTicksCoords(),v=pr(i.getViewLabels(),function(C){C=Bn(C);var w=i.scale,x=w.type==="ordinal"?w.getRawOrdinalNumber(C.tickValue):C.tickValue;return C.coord=i.dataToCoord(x),C});ST(v),ST(l),Ne(Iz,function(C){e.get([C,"show"])&&(!i.scale.isBlank()||C==="axisLine")&&Cz[C](this.group,e,o,l,f,s,v)},this)}},t.type="angleAxis",t}(gC),Cz={axisLine:function(r,t,e,n,i,o){var s=t.getModel(["axisLine","lineStyle"]),l=e.getAngleAxis(),f=Math.PI/180,v=l.getExtent(),C=B9(e),w=C?0:1,x,Q=Math.abs(v[1]-v[0])===360?"Circle":"Arc";o[w]===0?x=new Tl[Q]({shape:{cx:e.cx,cy:e.cy,r:o[C],startAngle:-v[0]*f,endAngle:-v[1]*f,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):x=new nh({shape:{cx:e.cx,cy:e.cy,r:o[C],r0:o[w]},style:s.getLineStyle(),z2:1,silent:!0}),x.style.fill=null,r.add(x)},axisTick:function(r,t,e,n,i,o){var s=t.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),f=o[B9(e)],v=pr(n,function(C){return new Vs({shape:E9(e,[f,f+l],C.coord)})});r.add(tl(v,{style:pn(s.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,i,o){if(i.length){for(var s=t.getModel("axisTick"),l=t.getModel("minorTick"),f=(s.get("inside")?-1:1)*l.get("length"),v=o[B9(e)],C=[],w=0;wM?"left":"right",Y=Math.abs(P[1]-k)/L<.3?"middle":P[1]>k?"top":"bottom";if(l&&l[R]){var re=l[R];Ln(re)&&re.textStyle&&(Q=new Ia(re.textStyle,f,f.ecModel))}var ie=new Mn({silent:mh.isLabelSilent(t),style:La(Q,{x:P[0],y:P[1],fill:Q.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:w.formattedLabel,align:G,verticalAlign:Y})});if(r.add(ie),C){var le=mh.makeAxisEventDataBase(t);le.targetType="axisLabel",le.value=w.rawLabel,Un(ie).eventData=le}},this)},splitLine:function(r,t,e,n,i,o){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),f=l.get("color"),v=0;f=f instanceof Array?f:[f];for(var C=[],w=0;w=0?"p":"n",ze=ve;re&&(n[C][Le]||(n[C][Le]={p:ve,n:ve}),ze=n[C][Le][be]);var ut=void 0,ft=void 0,Qt=void 0,vt=void 0;if(R.dim==="radius"){var Gt=R.dataToCoord(ke)-ve,Ct=f.dataToCoord(Le);Math.abs(Gt)=vt})}}})}function Sz(r){var t={};Ne(r,function(n,i){var o=n.getData(),s=n.coordinateSystem,l=s.getBaseAxis(),f=DT(s,l),v=l.getExtent(),C=l.type==="category"?l.getBandWidth():Math.abs(v[1]-v[0])/o.count(),w=t[f]||{bandWidth:C,remainedWidth:C,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},x=w.stacks;t[f]=w;var Q=_T(n);x[Q]||w.autoWidthCount++,x[Q]=x[Q]||{width:0,maxWidth:0};var R=jr(n.get("barWidth"),C),L=jr(n.get("barMaxWidth"),C),P=n.get("barGap"),M=n.get("barCategoryGap");R&&!x[Q].width&&(R=Math.min(w.remainedWidth,R),x[Q].width=R,w.remainedWidth-=R),L&&(x[Q].maxWidth=L),P!=null&&(w.gap=P),M!=null&&(w.categoryGap=M)});var e={};return Ne(t,function(n,i){e[i]={};var o=n.stacks,s=n.bandWidth,l=jr(n.categoryGap,s),f=jr(n.gap,1),v=n.remainedWidth,C=n.autoWidthCount,w=(v-l)/(C+(C-1)*f);w=Math.max(w,0),Ne(o,function(L,P){var M=L.maxWidth;M&&M=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],o=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=o===0?n.y+n.height/2:n.x+n.width/2,i},r.prototype.convertToPixel=function(t,e,n){var i=MT(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=MT(e);return i===this?this.pointToData(n):null},r}();function MT(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function Gz(r,t){var e=[];return r.eachComponent("singleAxis",function(n,i){var o=new Pz(n,r,t);o.name="single_"+i,o.resize(n,t),n.coordinateSystem=o,e.push(o)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",fs).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),e}var Uz={create:Gz,dimensions:RT},FT=["x","y"],jz=["width","height"],Hz=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,o,s){var l=i.axis,f=l.coordinateSystem,v=Q7(f,1-Q9(l)),C=f.dataToPoint(n)[0],w=o.get("type");if(w&&w!=="none"){var x=m7(o),Q=Yz[w](l,C,v);Q.style=x,e.graphicKey=Q.type,e.pointer=Q}var R=k7(i);gT(n,e,R,i,o,s)},t.prototype.getHandleTransform=function(e,n,i){var o=k7(n,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var s=I7(n.axis,e,o);return{x:s[0],y:s[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,o){var s=i.axis,l=s.coordinateSystem,f=Q9(s),v=Q7(l,f),C=[e.x,e.y];C[f]+=n[f],C[f]=Math.min(v[1],C[f]),C[f]=Math.max(v[0],C[f]);var w=Q7(l,1-f),x=(w[1]+w[0])/2,Q=[x,x];return Q[f]=C[f],{x:C[0],y:C[1],rotation:e.rotation,cursorPoint:Q,tooltipOption:{verticalAlign:"middle"}}},t}(v7),Yz={line:function(r,t,e){var n=b7([t,e[0]],[t,e[1]],Q9(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),i=e[1]-e[0];return{type:"Rect",shape:pT([t-n/2,e[0]],[n,i],Q9(r))}}};function Q9(r){return r.isHorizontal()?0:1}function Q7(r,t){var e=r.getRect();return[e[FT[t]],e[FT[t]]+e[jz[t]]]}var Jz=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(a);function Wz(r){Fi($4),gC.registerAxisPointerClass("SingleAxisPointer",Hz),r.registerComponentView(Jz),r.registerComponentView(Lz),r.registerComponentModel(k9),A3(r,"single",k9,k9.defaultOption),r.registerCoordinateSystem("single",Uz)}var qz=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,i){var o=rl(e);r.prototype.init.apply(this,arguments),TT(e,o)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),TT(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={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}(Oi);function TT(r,t){var e=r.cellSize,n;yr(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var i=pr([0,1],function(o){return am(t,o)&&(n[o]="auto"),n[o]!=null&&n[o]!=="auto"});Ds(r,t,{type:"box",ignoreSize:i})}var zz=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var o=this.group;o.removeAll();var s=e.coordinateSystem,l=s.getRangeInfo(),f=s.getOrient(),v=n.getLocaleModel();this._renderDayRect(e,l,o),this._renderLines(e,l,f,o),this._renderYearText(e,l,f,o),this._renderMonthText(e,v,f,o),this._renderWeekText(e,v,l,f,o)},t.prototype._renderDayRect=function(e,n,i){for(var o=e.coordinateSystem,s=e.getModel("itemStyle").getItemStyle(),l=o.getCellWidth(),f=o.getCellHeight(),v=n.start.time;v<=n.end.time;v=o.getNextNDay(v,1).time){var C=o.dataToRect([v],!1).tl,w=new ta({shape:{x:C[0],y:C[1],width:l,height:f},cursor:"default",style:s});i.add(w)}},t.prototype._renderLines=function(e,n,i,o){var s=this,l=e.coordinateSystem,f=e.getModel(["splitLine","lineStyle"]).getLineStyle(),v=e.get(["splitLine","show"]),C=f.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var w=n.start,x=0;w.time<=n.end.time;x++){R(w.formatedDate),x===0&&(w=l.getDateInfo(n.start.y+"-"+n.start.m));var Q=w.date;Q.setMonth(Q.getMonth()+1),w=l.getDateInfo(Q)}R(l.getNextNDay(n.end.time,1).formatedDate);function R(L){s._firstDayOfMonth.push(l.getDateInfo(L)),s._firstDayPoints.push(l.dataToRect([L],!1).tl);var P=s._getLinePointsOfOneWeek(e,L,i);s._tlpoints.push(P[0]),s._blpoints.push(P[P.length-1]),v&&s._drawSplitline(P,f,o)}v&&this._drawSplitline(s._getEdgesPoints(s._tlpoints,C,i),f,o),v&&this._drawSplitline(s._getEdgesPoints(s._blpoints,C,i),f,o)},t.prototype._getEdgesPoints=function(e,n,i){var o=[e[0].slice(),e[e.length-1].slice()],s=i==="horizontal"?0:1;return o[0][s]=o[0][s]-n/2,o[1][s]=o[1][s]+n/2,o},t.prototype._drawSplitline=function(e,n,i){var o=new pc({z2:20,shape:{points:e},style:n});i.add(o)},t.prototype._getLinePointsOfOneWeek=function(e,n,i){for(var o=e.coordinateSystem,s=o.getDateInfo(n),l=[],f=0;f<7;f++){var v=o.getNextNDay(s.time,f),C=o.dataToRect([v.time],!1);l[2*v.day]=C.tl,l[2*v.day+1]=C[i==="horizontal"?"bl":"tr"]}return l},t.prototype._formatterLabel=function(e,n){return en(e)&&e?Z5(e,n):bn(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,i,o,s){var l=n[0],f=n[1],v=["center","bottom"];o==="bottom"?(f+=s,v=["center","top"]):o==="left"?l-=s:o==="right"?(l+=s,v=["center","top"]):f-=s;var C=0;return(o==="left"||o==="right")&&(C=Math.PI/2),{rotation:C,x:l,y:f,style:{align:v[0],verticalAlign:v[1]}}},t.prototype._renderYearText=function(e,n,i,o){var s=e.getModel("yearLabel");if(s.get("show")){var l=s.get("margin"),f=s.get("position");f||(f=i!=="horizontal"?"top":"left");var v=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],C=(v[0][0]+v[1][0])/2,w=(v[0][1]+v[1][1])/2,x=i==="horizontal"?0:1,Q={top:[C,v[x][1]],bottom:[C,v[1-x][1]],left:[v[1-x][0],w],right:[v[x][0],w]},R=n.start.y;+n.end.y>+n.start.y&&(R=R+"-"+n.end.y);var L=s.get("formatter"),P={start:n.start.y,end:n.end.y,nameMap:R},M=this._formatterLabel(L,P),k=new Mn({z2:30,style:La(s,{text:M}),silent:s.get("silent")});k.attr(this._yearTextPositionControl(k,Q[f],i,f,l)),o.add(k)}},t.prototype._monthTextPositionControl=function(e,n,i,o,s){var l="left",f="top",v=e[0],C=e[1];return i==="horizontal"?(C=C+s,n&&(l="center"),o==="start"&&(f="bottom")):(v=v+s,n&&(f="middle"),o==="start"&&(l="right")),{x:v,y:C,align:l,verticalAlign:f}},t.prototype._renderMonthText=function(e,n,i,o){var s=e.getModel("monthLabel");if(s.get("show")){var l=s.get("nameMap"),f=s.get("margin"),v=s.get("position"),C=s.get("align"),w=[this._tlpoints,this._blpoints];(!l||en(l))&&(l&&(n=zI(l)||n),l=n.get(["time","monthAbbr"])||[]);var x=v==="start"?0:1,Q=i==="horizontal"?0:1;f=v==="start"?-f:f;for(var R=C==="center",L=s.get("silent"),P=0;P=i.start.time&&n.timel.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var i=Math.floor(e[1].time/x7)-Math.floor(e[0].time/x7)+1,o=new Date(e[0].time),s=o.getDate(),l=e[1].date.getDate();o.setDate(s+i-1);var f=o.getDate();if(f!==l)for(var v=o.getTime()-e[1].time>0?1:-1;(f=o.getDate())!==l&&(o.getTime()-e[1].time)*v>0;)i-=v,o.setDate(f-v);var C=Math.floor((i+e[0].day+6)/7),w=n?-C+1:C-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:C,nthWeek:w,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&ei.lweek)return null;var o=(t-1)*7-i.fweek+e,s=new Date(i.start.time);return s.setDate(+i.start.d+o),this.getDateInfo(s)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(i){var o=new r(i);n.push(o),i.coordinateSystem=o}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function LT(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}function Vz(r){r.registerComponentModel(qz),r.registerComponentView(zz),r.registerCoordinateSystem("calendar",Kz)}function Zz(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function NT(r,t){var e;return Ne(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function Xz(r,t,e){var n=ar({},e),i=r[t],o=e.$action||"merge";o==="merge"?i?(Kn(i,n,!0),Ds(i,n,{ignoreSize:!0}),nb(e,i),x9(e,i),x9(e,i,"shape"),x9(e,i,"style"),x9(e,i,"extra"),e.clipPath=i.clipPath):r[t]=n:o==="replace"?r[t]=n:o==="remove"&&i&&(r[t]=null)}var OT=["transition","enterFrom","leaveTo"],$z=OT.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function x9(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?OT:$z,i=0;i=0;C--){var w=i[C],x=es(w.id,null),Q=x!=null?s.get(x):null;if(Q){var R=Q.parent,M=od(R),k=R===o?{width:l,height:f}:{width:M.width,height:M.height},G={},Y=OA(Q,w,k,null,{hv:w.hv,boundingMode:w.bounding},G);if(!od(Q).isNew&&Y){for(var re=w.transition,ie={},le=0;le=0)?ie[pe]=ve:Q[pe]=ve}ga(Q,ie,e,0)}else Q.attr(G)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(i){S9(i,od(i).option,n,e._lastGraphicModel)}),this._elMap=mn()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(a);function S7(r){var t=ln(PT,r)?PT[r]:GI(r),e=new t({});return od(e).type=r,e}function GT(r,t,e,n){var i=S7(e);return t.add(i),n.set(r,i),od(i).id=r,od(i).isNew=!0,i}function S9(r,t,e,n){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(o){S9(o,t,e,n)}),I9(r,t,n),e.removeKey(od(r).id))}function UT(r,t,e,n){r.isGroup||Ne([["cursor",ii.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(i){var o=i[0];ln(t,o)?r[o]=$n(t[o],i[1]):r[o]==null&&(r[o]=i[1])}),Ne(fi(t),function(i){if(i.indexOf("on")===0){var o=t[i];r[i]=bn(o)?o:null}}),ln(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function nK(r){return r=ar({},r),Ne(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(rb),function(t){delete r[t]}),r}function iK(r,t,e){var n=Un(r).eventData;!r.silent&&!r.ignore&&!n&&(n=Un(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function aK(r){r.registerComponentModel(tK),r.registerComponentView(rK),r.registerPreprocessor(function(t){var e=t.graphic;yr(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var jT=["x","y","radius","angle","single"],oK=["cartesian2d","polar","singleAxis"];function sK(r){var t=r.get("coordinateSystem");return Vn(oK,t)>=0}function qm(r){return r+"Axis"}function uK(r,t){var e=mn(),n=[],i=mn();r.eachComponent({mainType:"dataZoom",query:t},function(C){i.get(C.uid)||l(C)});var o;do o=!1,r.eachComponent("dataZoom",s);while(o);function s(C){!i.get(C.uid)&&f(C)&&(l(C),o=!0)}function l(C){i.set(C.uid,!0),n.push(C),v(C)}function f(C){var w=!1;return C.eachTargetAxis(function(x,Q){var R=e.get(x);R&&R[Q]&&(w=!0)}),w}function v(C){C.eachTargetAxis(function(w,x){(e.get(w)||e.set(w,[]))[x]=!0})}return n}function HT(r){var t=r.ecModel,e={infoList:[],infoMap:mn()};return r.eachTargetAxis(function(n,i){var o=t.getComponent(qm(n),i);if(o){var s=o.getCoordSysModel();if(s){var l=s.uid,f=e.infoMap.get(l);f||(f={model:s,axisModels:[]},e.infoList.push(f),e.infoMap.set(l,f)),f.axisModels.push(o)}}}),e}var _7=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),eQ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var o=YT(e);this.settledOption=o,this.mergeDefaultAndTheme(e,i),this._doInit(o)},t.prototype.mergeOption=function(e){var n=YT(e);Kn(this.option,e,!0),Kn(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;Ne([["start","startValue"],["end","endValue"]],function(o,s){this._rangePropMode[s]==="value"&&(n[o[0]]=i[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=mn(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return Ne(jT,function(i){var o=this.getReferringComponents(qm(i),El);if(o.specified){n=!0;var s=new _7;Ne(o.models,function(l){s.add(l.componentIndex)}),e.set(i,s)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,o=!0;if(o){var s=n==="vertical"?"y":"x",l=i.findComponents({mainType:s+"Axis"});f(l,s)}if(o){var l=i.findComponents({mainType:"singleAxis",filter:function(C){return C.get("orient",!0)===n}});f(l,"single")}function f(v,C){var w=v[0];if(w){var x=new _7;if(x.add(w.componentIndex),e.set(C,x),o=!1,C==="x"||C==="y"){var Q=w.getReferringComponents("grid",fs).models[0];Q&&Ne(v,function(R){w.componentIndex!==R.componentIndex&&Q===R.getReferringComponents("grid",fs).models[0]&&x.add(R.componentIndex)})}}}o&&Ne(jT,function(v){if(o){var C=i.findComponents({mainType:qm(v),filter:function(x){return x.get("type",!0)==="category"}});if(C[0]){var w=new _7;w.add(C[0].componentIndex),e.set(v,w),o=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");Ne([["start","startValue"],["end","endValue"]],function(o,s){var l=e[o[0]]!=null,f=e[o[1]]!=null;l&&!f?n[s]="percent":!l&&f?n[s]="value":i?n[s]=i[s]:l&&(n[s]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(qm(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,o){Ne(i.indexList,function(s){e.call(n,o,s)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(qm(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;Ne([["start","startValue"],["end","endValue"]],function(o){(e[o[0]]!=null||e[o[1]]!=null)&&(n[o[0]]=i[o[0]]=e[o[0]],n[o[1]]=i[o[1]]=e[o[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;Ne(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),o=0;os[1];if(G&&!Y&&!re)return!0;G&&(P=!0),Y&&(R=!0),re&&(L=!0)}return P&&R&&L})}else C3(C,function(Q){if(o==="empty")f.setData(v=v.map(Q,function(L){return l(L)?L:NaN}));else{var R={};R[Q]=s,v.selectRange(R)}});C3(C,function(Q){v.setApproximateExtent(s,Q)})}});function l(f){return f>=s[0]&&f<=s[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;C3(["min","max"],function(i){var o=e.get(i+"Span"),s=e.get(i+"ValueSpan");s!=null&&(s=this.getAxisModel().axis.scale.parse(s)),s!=null?o=ea(n[0]+s,n,[0,100],!0):o!=null&&(s=ea(o,[0,100],n,!0)-n[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=s},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=Ay(n,[0,500]);i=Math.min(i,20);var o=t.axis.scale.rawExtentInfo;e[0]!==0&&o.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&o.setDeterminedMinMax("max",+n[1].toFixed(i)),o.freeze()}},r}();function fK(r,t,e){var n=[1/0,-1/0];C3(e,function(s){i6(n,s.getData(),t)});var i=r.getAxisModel(),o=e6(i.axis.scale,i,n).calculate();return[o.min,o.max]}var AK={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(s,l){var f=r.getComponent(qm(s),l);i(s,l,f,o)})})}t(function(i,o,s,l){s.__dzAxisProxy=null});var e=[];t(function(i,o,s,l){s.__dzAxisProxy||(s.__dzAxisProxy=new hK(i,o,l,r),e.push(s.__dzAxisProxy))});var n=mn();return Ne(e,function(i){Ne(i.getTargetSeriesModels(),function(o){n.set(o.uid,o)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),o=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function dK(r){r.registerAction("dataZoom",function(t,e){var n=uK(e,t);Ne(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var WT=!1;function R7(r){WT||(WT=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,AK),dK(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function gK(r){r.registerComponentModel(cK),r.registerComponentView(lK),R7(r)}var sd=function(){function r(){}return r}(),qT={};function w3(r,t){qT[r]=t}function zT(r){return qT[r]}var pK=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;Ne(this.option.feature,function(n,i){var o=zT(i);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(e)),Kn(n,o.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,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}(Oi);function vK(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),o={width:e.getWidth(),height:e.getHeight()},s=Mo(n,o,i);Qf(t.get("orient"),r,t.get("itemGap"),s.width,s.height),OA(r,n,o,i)}function KT(r,t){var e=lg(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new ta({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var yK=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,o){var s=this.group;if(s.removeAll(),!e.get("show"))return;var l=+e.get("itemSize"),f=e.get("orient")==="vertical",v=e.get("feature")||{},C=this._features||(this._features={}),w=[];Ne(v,function(R,L){w.push(L)}),new Wh(this._featureNames||[],w).add(x).update(x).remove(ni(x,null)).execute(),this._featureNames=w;function x(R,L){var P=w[R],M=w[L],k=v[P],G=new Ia(k,e,e.ecModel),Y;if(o&&o.newTitle!=null&&o.featureName===P&&(k.title=o.newTitle),P&&!M){if(mK(P))Y={onclick:G.option.onclick,featureName:P};else{var re=zT(P);if(!re)return;Y=new re}C[P]=Y}else if(Y=C[M],!Y)return;Y.uid=Sp("toolbox-feature"),Y.model=G,Y.ecModel=n,Y.api=i;var ie=Y instanceof sd;if(!P&&M){ie&&Y.dispose&&Y.dispose(n,i);return}if(!G.get("show")||ie&&Y.unusable){ie&&Y.remove&&Y.remove(n,i);return}Q(G,Y,P),G.setIconStatus=function(le,pe){var ve=this.option,Ee=this.iconPaths;ve.iconStatus=ve.iconStatus||{},ve.iconStatus[le]=pe,Ee[le]&&(pe==="emphasis"?Dc:ko)(Ee[le])},Y instanceof sd&&Y.render&&Y.render(G,n,i,o)}function Q(R,L,P){var M=R.getModel("iconStyle"),k=R.getModel(["emphasis","iconStyle"]),G=L instanceof sd&&L.getIcons?L.getIcons():R.get("icon"),Y=R.get("title")||{},re,ie;en(G)?(re={},re[P]=G):re=G,en(Y)?(ie={},ie[P]=Y):ie=Y;var le=R.iconPaths={};Ne(re,function(pe,ve){var Ee=RA(pe,{},{x:-l/2,y:-l/2,width:l,height:l});Ee.setStyle(M.getItemStyle());var Se=Ee.ensureState("emphasis");Se.style=k.getItemStyle();var ke=new Mn({style:{text:ie[ve],align:k.get("textAlign"),borderRadius:k.get("textBorderRadius"),padding:k.get("textPadding"),fill:null,font:zy({fontStyle:k.get("textFontStyle"),fontFamily:k.get("textFontFamily"),fontSize:k.get("textFontSize"),fontWeight:k.get("textFontWeight")},n)},ignore:!0});Ee.setTextContent(ke),Ml({el:Ee,componentModel:e,itemName:ve,formatterParamsExtra:{title:ie[ve]}}),Ee.__title=ie[ve],Ee.on("mouseover",function(){var Le=k.getItemStyle(),be=f?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";ke.setStyle({fill:k.get("textFill")||Le.fill||Le.stroke||"#000",backgroundColor:k.get("textBackgroundColor")}),Ee.setTextConfig({position:k.get("textPosition")||be}),ke.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){R.get(["iconStatus",ve])!=="emphasis"&&i.leaveEmphasis(this),ke.hide()}),(R.get(["iconStatus",ve])==="emphasis"?Dc:ko)(Ee),s.add(Ee),Ee.on("click",an(L.onclick,L,n,i,ve)),le[ve]=Ee})}vK(s,e,i),s.add(KT(s.getBoundingRect(),e)),f||s.eachChild(function(R){var L=R.__title,P=R.ensureState("emphasis"),M=P.textConfig||(P.textConfig={}),k=R.getTextContent(),G=k&&k.ensureState("emphasis");if(G&&!bn(G)&&L){var Y=G.style||(G.style={}),re=V0(L,Mn.makeFont(Y)),ie=R.x+s.x,le=R.y+s.y+l,pe=!1;le+re.height>i.getHeight()&&(M.position="top",pe=!0);var ve=pe?-5-re.height:l+10;ie+re.width/2>i.getWidth()?(M.position=["100%",ve],Y.align="right"):ie-re.width/2<0&&(M.position=[0,ve],Y.align="left")}})},t.prototype.updateView=function(e,n,i,o){Ne(this._features,function(s){s instanceof sd&&s.updateView&&s.updateView(s.model,n,i,o)})},t.prototype.remove=function(e,n){Ne(this._features,function(i){i instanceof sd&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){Ne(this._features,function(i){i instanceof sd&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(a);function mK(r){return r.indexOf("my")===0}var IK=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,o=i.get("name")||e.get("title.0.text")||"echarts",s=n.getZr().painter.getType()==="svg",l=s?"svg":i.get("type",!0)||"png",f=n.getConnectedDataURL({type:l,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),v=Yn.browser;if(typeof MouseEvent=="function"&&(v.newEdge||!v.ie&&!v.edge)){var C=document.createElement("a");C.download=o+"."+l,C.target="_blank",C.href=f;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});C.dispatchEvent(w)}else if(window.navigator.msSaveOrOpenBlob||s){var x=f.split(","),Q=x[0].indexOf("base64")>-1,R=s?decodeURIComponent(x[1]):x[1];Q&&(R=window.atob(R));var L=o+"."+l;if(window.navigator.msSaveOrOpenBlob){for(var P=R.length,M=new Uint8Array(P);P--;)M[P]=R.charCodeAt(P);var k=new Blob([M]);window.navigator.msSaveOrOpenBlob(k,L)}else{var G=document.createElement("iframe");document.body.appendChild(G);var Y=G.contentWindow,re=Y.document;re.open("image/svg+xml","replace"),re.write(R),re.close(),Y.focus(),re.execCommand("SaveAs",!0,L),document.body.removeChild(G)}}else{var ie=i.get("lang"),le='',pe=window.open();pe.document.write(le),pe.document.title=o}},t.getDefaultOption=function(e){var n={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"])};return n},t}(sd),VT="__ec_magicType_stack__",bK=[["line","bar"],["stack"]],CK=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return Ne(e.get("type"),function(o){n[o]&&(i[o]=n[o])}),i},t.getDefaultOption=function(e){var n={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:{}};return n},t.prototype.onclick=function(e,n,i){var o=this.model,s=o.get(["seriesIndex",i]);if(ZT[i]){var l={series:[]},f=function(w){var x=w.subType,Q=w.id,R=ZT[i](x,Q,w,o);R&&(pn(R,w.option),l.series.push(R));var L=w.coordinateSystem;if(L&&L.type==="cartesian2d"&&(i==="line"||i==="bar")){var P=L.getAxesByScale("ordinal")[0];if(P){var M=P.dim,k=M+"Axis",G=w.getReferringComponents(k,fs).models[0],Y=G.componentIndex;l[k]=l[k]||[];for(var re=0;re<=Y;re++)l[k][Y]=l[k][Y]||{};l[k][Y].boundaryGap=i==="bar"}}};Ne(bK,function(w){Vn(w,i)>=0&&Ne(w,function(x){o.setIconStatus(x,"normal")})}),o.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:s==null?null:{seriesIndex:s}},f);var v,C=i;i==="stack"&&(v=Kn({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",i])!=="emphasis"&&(C="tiled")),n.dispatchAction({type:"changeMagicType",currentType:C,newOption:l,newTitle:v,featureName:"magicType"})}},t}(sd),ZT={line:function(r,t,e,n){if(r==="bar")return Kn({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Kn({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===VT;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Kn({id:t,stack:i?"":VT},n.get(["option","stack"])||{},!0)}};Qi({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var _9=new Array(60).join("-"),E3=" ";function wK(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var o=i.coordinateSystem;if(o&&(o.type==="cartesian2d"||o.type==="polar")){var s=o.getBaseAxis();if(s.type==="category"){var l=s.dim+"_"+s.index;t[l]||(t[l]={categoryAxis:s,valueAxis:o.getOtherAxis(s),series:[]},n.push({axisDim:s.dim,axisIndex:s.index})),t[l].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function EK(r){var t=[];return Ne(r,function(e,n){var i=e.categoryAxis,o=e.valueAxis,s=o.dim,l=[" "].concat(pr(e.series,function(Q){return Q.name})),f=[i.model.getCategories()];Ne(e.series,function(Q){var R=Q.getRawData();f.push(Q.getRawData().mapArray(R.mapDimension(s),function(L){return L}))});for(var v=[l.join(E3)],C=0;C=0)return!0}var M7=new RegExp("["+E3+"]+","g");function xK(r){for(var t=r.split(/\n+/g),e=D9(t.shift()).split(M7),n=[],i=pr(e,function(f){return{name:f,data:[]}}),o=0;o=0;o--){var s=e[o];if(s[i])break}if(o<0){var l=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(l){var f=l.getPercentRange();e[0][i]={dataZoomId:i,start:f[0],end:f[1]}}}}),e.push(t)}function FK(r){var t=F7(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return XT(e,function(i,o){for(var s=t.length-1;s>=0;s--)if(i=t[s][o],i){n[o]=i;break}}),n}function TK(r){$T(r).snapshots=null}function LK(r){return F7(r).length}function F7(r){var t=$T(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var NK=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){TK(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={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"])};return n},t}(sd);Qi({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var OK=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],T7=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var o=eL(e,t);Ne(PK,function(s,l){(!n||!n.include||Vn(n.include,l)>=0)&&s(o,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,o){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var s=N7[n.brushType](0,o,i);n.__rangeOffset={offset:iL[n.brushType](s.values,n.range,[1,1]),xyMinMax:s.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){Ne(t,function(i){var o=this.findTargetInfo(i,e);o&&o!==!0&&Ne(o.coordSyses,function(s){var l=N7[i.brushType](1,s,i.range,!0);n(i,l.values,s,e)})},this)},r.prototype.setInputRanges=function(t,e){Ne(t,function(n){var i=this.findTargetInfo(n,e);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var o=N7[n.brushType](0,i.coordSys,n.coordRange),s=n.__rangeOffset;n.range=s?iL[n.brushType](o.values,s.offset,GK(o.xyMinMax,s.xyMinMax)):o.values}},this)},r.prototype.makePanelOpts=function(t,e){return pr(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:nF(i),isTargetByCursor:aF(i,t,n.coordSysModel),getLinearBrushOtherExtent:iF(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&Vn(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=eL(e,t),o=0;or[1]&&r.reverse(),r}function eL(r,t){return gf(r,t,{includeMainTypes:OK})}var PK={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,o=mn(),s={},l={};!e&&!n&&!i||(Ne(e,function(f){var v=f.axis.grid.model;o.set(v.id,v),s[v.id]=!0}),Ne(n,function(f){var v=f.axis.grid.model;o.set(v.id,v),l[v.id]=!0}),Ne(i,function(f){o.set(f.id,f),s[f.id]=!0,l[f.id]=!0}),o.each(function(f){var v=f.coordinateSystem,C=[];Ne(v.getCartesians(),function(w,x){(Vn(e,w.getAxis("x").model)>=0||Vn(n,w.getAxis("y").model)>=0)&&C.push(w)}),t.push({panelId:"grid--"+f.id,gridModel:f,coordSysModel:f,coordSys:C[0],coordSyses:C,getPanelRect:rL.grid,xAxisDeclared:s[f.id],yAxisDeclared:l[f.id]})}))},geo:function(r,t){Ne(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:rL.geo})})}},tL=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],rL={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(og(r)),t}},N7={lineX:ni(nL,0),lineY:ni(nL,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),o=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),s=[L7([i[0],o[0]]),L7([i[1],o[1]])];return{values:s,xyMinMax:s}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],o=pr(e,function(s){var l=r?t.pointToData(s,n):t.dataToPoint(s,n);return i[0][0]=Math.min(i[0][0],l[0]),i[1][0]=Math.min(i[1][0],l[1]),i[0][1]=Math.max(i[0][1],l[0]),i[1][1]=Math.max(i[1][1],l[1]),l});return{values:o,xyMinMax:i}}};function nL(r,t,e,n){var i=e.getAxis(["x","y"][r]),o=L7(pr([0,1],function(l){return t?i.coordToData(i.toLocalCoord(n[l]),!0):i.toGlobalCoord(i.dataToCoord(n[l]))})),s=[];return s[r]=o,s[1-r]=[NaN,NaN],{values:o,xyMinMax:s}}var iL={lineX:ni(aL,0),lineY:ni(aL,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return pr(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function aL(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function GK(r,t){var e=oL(r),n=oL(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function oL(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var O7=Ne,UK=rI("toolbox-dataZoom_"),jK=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,o){this._brushController||(this._brushController=new FS(i.getZr()),this._brushController.on("brush",an(this._onBrush,this)).mount()),JK(e,n,this,o,i),YK(e,n)},t.prototype.onclick=function(e,n,i){HK[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},o=this.ecModel;this._brushController.updateCovers([]);var s=new T7(P7(this.model),o,{include:["grid"]});s.matchOutputRanges(n,o,function(v,C,w){if(w.type==="cartesian2d"){var x=v.brushType;x==="rect"?(l("x",w,C[0]),l("y",w,C[1])):l({lineX:"x",lineY:"y"}[x],w,C)}}),MK(o,i),this._dispatchZoomAction(i);function l(v,C,w){var x=C.getAxis(v),Q=x.model,R=f(v,Q,o),L=R.findRepresentativeAxisProxy(Q).getMinMaxSpan();(L.minValueSpan!=null||L.maxValueSpan!=null)&&(w=bC(0,w.slice(),x.scale.getExtent(),0,L.minValueSpan,L.maxValueSpan)),R&&(i[R.id]={dataZoomId:R.id,startValue:w[0],endValue:w[1]})}function f(v,C,w){var x;return w.eachComponent({mainType:"dataZoom",subType:"select"},function(Q){var R=Q.getAxisModel(v,C.componentIndex);R&&(x=Q)}),x}},t.prototype._dispatchZoomAction=function(e){var n=[];O7(e,function(i,o){n.push(Bn(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={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)"}};return n},t}(sd),HK={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(FK(this.ecModel))}};function P7(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function YK(r,t){r.setIconStatus("back",LK(t)>1?"emphasis":"normal")}function JK(r,t,e,n,i){var o=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(o=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=o,r.setIconStatus("zoom",o?"emphasis":"normal");var s=new T7(P7(r),t,{include:["grid"]}),l=s.makePanelOpts(i,function(f){return f.xAxisDeclared&&!f.yAxisDeclared?"lineX":!f.xAxisDeclared&&f.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(l).enableBrush(o&&l.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}UE("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],o=P7(n),s=gf(r,o);O7(s.xAxisModels,function(f){return l(f,"xAxis","xAxisIndex")}),O7(s.yAxisModels,function(f){return l(f,"yAxis","yAxisIndex")});function l(f,v,C){var w=f.componentIndex,x={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:UK+v+w};x[C]=w,i.push(x)}return i});function WK(r){r.registerComponentModel(pK),r.registerComponentView(yK),w3("saveAsImage",IK),w3("magicType",CK),w3("dataView",DK),w3("dataZoom",jK),w3("restore",NK),Fi(gK)}var qK=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={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}(Oi);function sL(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function uL(r){if(Yn.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(l+="top:50%",f+="translateY(-50%) rotate("+(v=o==="left"?-225:-45)+"deg)"):(l+="left:50%",f+="translateX(-50%) rotate("+(v=o==="top"?225:45)+"deg)");var C=v*Math.PI/180,w=s+i,x=w*Math.abs(Math.cos(C))+w*Math.abs(Math.sin(C)),Q=Math.round(((x-Math.SQRT2*i)/2+Math.SQRT2*i-(x-w)/2)*100)/100;l+=";"+o+":-"+Q+"px";var R=t+" solid "+i+"px;",L=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+f+";","border-bottom:"+R,"border-right:"+R,"background-color:"+n+";"];return'
'}function eV(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=Yn.transformSupported?","+G7+n:",left"+n+",top"+n),VK+":"+i}function hL(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Yn.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var o=Yn.transform3dSupported,s="translate"+(o?"3d":"")+"("+n+","+i+(o?",0":"")+")";return e?"top:0;left:0;"+G7+":"+s+";":[["top",0],["left",0],[cL,s]]}function tV(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var i=$n(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+i+"px");var o=r.get("textShadowColor"),s=r.get("textShadowBlur")||0,l=r.get("textShadowOffsetX")||0,f=r.get("textShadowOffsetY")||0;return o&&s&&t.push("text-shadow:"+l+"px "+f+"px "+s+"px "+o),Ne(["decoration","align"],function(v){var C=r.get(v);C&&t.push("text-"+v+":"+C)}),t.join(";")}function rV(r,t,e){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),f=r.get("shadowOffsetX"),v=r.get("shadowOffsetY"),C=r.getModel("textStyle"),w=j1(r,"html"),x=f+"px "+v+"px "+s+"px "+l;return n.push("box-shadow:"+x),t&&i&&n.push(eV(i,e)),o&&n.push("background-color:"+o),Ne(["width","color","radius"],function(Q){var R="border-"+Q,L=ku(R),P=r.get(L);P!=null&&n.push(R+":"+P+(Q==="color"?"":"px"))}),n.push(tV(C)),w!=null&&n.push("padding:"+lg(w).join("px ")+"px"),n.join(";")+";"}function fL(r,t,e,n,i){var o=t&&t.painter;if(e){var s=o&&o.getViewportRoot();s&&V3(r,s,e,n,i)}else{r[0]=n,r[1]=i;var l=o&&o.getViewportRootOffset();l&&(r[0]+=l.offsetLeft,r[1]+=l.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var nV=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Yn.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=e.appendTo,s=o&&(en(o)?document.querySelector(o):Zf(o)?o:bn(o)&&o(t.getDom()));fL(this._styleCoord,i,s,t.getWidth()/2,t.getHeight()/2),(s||t.getDom()).appendChild(n),this._api=t,this._container=s;var l=this;n.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},n.onmousemove=function(f){if(f=f||window.event,!l._enterable){var v=i.handler,C=i.painter.getViewportRoot();nc(C,f,!0),v.dispatch("mousemove",f)}},n.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=KK(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=ZK+rV(t,!this._firstShow,this._longHide)+hL(o[0],o[1],!0)+("border-color:"+NA(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,o){var s=this.el;if(t==null){s.innerHTML="";return}var l="";if(en(o)&&n.get("trigger")==="item"&&!sL(n)&&(l=$K(n,i,o)),en(t))s.innerHTML=t+l;else if(t){s.innerHTML="",yr(t)||(t=[t]);for(var f=0;f=0?this._tryShow(o,s):i==="leave"&&this._hide(s))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,o=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var s=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&s.manuallyShowTip(e,n,i,{x:s._lastX,y:s._lastY,dataByCoordSys:s._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,o){if(!(o.from===this.uid||Yn.node||!i.getDom())){var s=gL(o,i);this._ticket="";var l=o.dataByCoordSys,f=lV(o,n,i);if(f){var v=f.el.getBoundingRect().clone();v.applyTransform(f.el.transform),this._tryShow({offsetX:v.x+v.width/2,offsetY:v.y+v.height/2,target:f.el,position:o.position,positionDefault:"bottom"},s)}else if(o.tooltip&&o.x!=null&&o.y!=null){var C=aV;C.x=o.x,C.y=o.y,C.update(),Un(C).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:C},s)}else if(l)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:l,tooltipOption:o.tooltipOption},s);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,o))return;var w=CT(o,n),x=w.point[0],Q=w.point[1];x!=null&&Q!=null&&this._tryShow({offsetX:x,offsetY:Q,target:w.el,position:o.position,positionDefault:"bottom"},s)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},s))}},t.prototype.manuallyHideTip=function(e,n,i,o){var s=this._tooltipContent;this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(gL(o,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,o){var s=o.seriesIndex,l=o.dataIndex,f=n.getComponent("axisPointer").coordSysAxesInfo;if(!(s==null||l==null||f==null)){var v=n.getSeriesByIndex(s);if(v){var C=v.getData(),w=tQ([C.getItemModel(l),v,(v.coordinateSystem||{}).model],this._tooltipModel);if(w.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:s,dataIndex:l,position:o.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,o=this._tooltipModel;if(o){this._lastX=e.offsetX,this._lastY=e.offsetY;var s=e.dataByCoordSys;if(s&&s.length)this._showAxisTooltip(s,e);else if(i){var l=Un(i);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var f,v;_t(i,function(C){if(Un(C).dataIndex!=null)return f=C,!0;if(Un(C).tooltipConfig!=null)return v=C,!0},!0),f?this._showSeriesItemTooltip(e,f,n):v?this._showComponentItemTooltip(e,v,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=an(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,o=this._tooltipModel,s=[n.offsetX,n.offsetY],l=tQ([n.tooltipOption],o),f=this._renderMode,v=[],C=Xs("section",{blocks:[],noHeader:!0}),w=[],x=new H1;Ne(e,function(k){Ne(k.dataByAxis,function(G){var Y=i.getComponent(G.axisDim+"Axis",G.axisIndex),re=G.value;if(!(!Y||re==null)){var ie=dT(re,Y.axis,i,G.seriesDataIndices,G.valueLabelOpt),le=Xs("section",{header:ie,noHeader:!Wl(ie),sortBlocks:!0,blocks:[]});C.blocks.push(le),Ne(G.seriesDataIndices,function(pe){var ve=i.getSeriesByIndex(pe.seriesIndex),Ee=pe.dataIndexInside,Se=ve.getDataParams(Ee);if(!(Se.dataIndex<0)){Se.axisDim=G.axisDim,Se.axisIndex=G.axisIndex,Se.axisType=G.axisType,Se.axisId=G.axisId,Se.axisValue=zA(Y.axis,{value:re}),Se.axisValueLabel=ie,Se.marker=x.makeTooltipMarker("item",NA(Se.color),f);var ke=xf(ve.formatTooltip(Ee,!0,null)),Le=ke.frag;if(Le){var be=tQ([ve],o).get("valueFormatter");le.blocks.push(be?ar({valueFormatter:be},Le):Le)}ke.text&&w.push(ke.text),v.push(Se)}})}})}),C.blocks.reverse(),w.reverse();var Q=n.position,R=l.get("order"),L=Tb(C,x,f,R,i.get("useUTC"),l.get("textStyle"));L&&w.unshift(L);var P=f==="richText"?` `:"
",M=w.join(P);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(e,v)?this._updatePosition(l,Q,s[0],s[1],this._tooltipContent,v):this._showTooltipContent(l,M,v,Math.random()+"",s[0],s[1],Q,null,x)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var o=this._ecModel,s=Un(n),l=s.seriesIndex,f=o.getSeriesByIndex(l),v=s.dataModel||f,C=s.dataIndex,w=s.dataType,x=v.getData(w),Q=this._renderMode,R=e.positionDefault,L=tQ([x.getItemModel(C),v,f&&(f.coordinateSystem||{}).model],this._tooltipModel,R?{position:R}:null),P=L.get("trigger");if(!(P!=null&&P!=="item")){var M=v.getDataParams(C,w),k=new H1;M.marker=k.makeTooltipMarker("item",NA(M.color),Q);var G=xf(v.formatTooltip(C,!1,w)),Y=L.get("order"),re=L.get("valueFormatter"),ie=G.frag,le=ie?Tb(re?ar({valueFormatter:re},ie):ie,k,Q,Y,o.get("useUTC"),L.get("textStyle")):G.text,pe="item_"+v.name+"_"+C;this._showOrMove(L,function(){this._showTooltipContent(L,le,M,pe,e.offsetX,e.offsetY,e.position,e.target,k)}),i({type:"showTip",dataIndexInside:C,dataIndex:x.getRawIndex(C),seriesIndex:l,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var o=this._renderMode==="html",s=Un(n),l=s.tooltipConfig,f=l.option||{},v=f.encodeHTMLContent;if(en(f)){var C=f;f={content:C,formatter:C},v=!0}v&&o&&f.content&&(f=Bn(f),f.content=ou(f.content));var w=[f],x=this._ecModel.getComponent(s.componentMainType,s.componentIndex);x&&w.push(x),w.push({formatter:f.content});var Q=e.positionDefault,R=tQ(w,this._tooltipModel,Q?{position:Q}:null),L=R.get("content"),P=Math.random()+"",M=new H1;this._showOrMove(R,function(){var k=Bn(R.get("formatterParams")||{});this._showTooltipContent(R,L,k,P,e.offsetX,e.offsetY,e.position,n,M)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,o,s,l,f,v,C){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var w=this._tooltipContent;w.setEnterable(e.get("enterable"));var x=e.get("formatter");f=f||e.get("position");var Q=n,R=this._getNearestPoint([s,l],i,e.get("trigger"),e.get("borderColor")),L=R.color;if(x)if(en(x)){var P=e.ecModel.get("useUTC"),M=yr(i)?i[0]:i,k=M&&M.axisType&&M.axisType.indexOf("time")>=0;Q=x,k&&(Q=Q1(M.axisValue,Q,P)),Q=S1(Q,i,!0)}else if(bn(x)){var G=an(function(Y,re){Y===this._ticket&&(w.setContent(re,C,e,L,f),this._updatePosition(e,f,s,l,w,i,v))},this);this._ticket=o,Q=x(i,o,G)}else Q=x;w.setContent(Q,C,e,L,f),w.show(e,L),this._updatePosition(e,f,s,l,w,i,v)}},t.prototype._getNearestPoint=function(e,n,i,o){if(i==="axis"||yr(n))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!yr(n))return{color:o||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,o,s,l,f){var v=this._api.getWidth(),C=this._api.getHeight();n=n||e.get("position");var w=s.getSize(),x=e.get("align"),Q=e.get("verticalAlign"),R=f&&f.getBoundingRect().clone();if(f&&R.applyTransform(f.transform),bn(n)&&(n=n([i,o],l,s.el,R,{viewSize:[v,C],contentSize:w.slice()})),yr(n))i=jr(n[0],v),o=jr(n[1],C);else if(Ln(n)){var L=n;L.width=w[0],L.height=w[1];var P=Mo(L,{width:v,height:C});i=P.x,o=P.y,x=null,Q=null}else if(en(n)&&f){var M=cV(n,R,w,e.get("borderWidth"));i=M[0],o=M[1]}else{var M=sV(i,o,s,v,C,x?null:20,Q?null:20);i=M[0],o=M[1]}if(x&&(i-=pL(x)?w[0]/2:x==="right"?w[0]:0),Q&&(o-=pL(Q)?w[1]/2:Q==="bottom"?w[1]:0),sL(e)){var M=uV(i,o,s,v,C);i=M[0],o=M[1]}s.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,o=this._cbParamsList,s=!!i&&i.length===e.length;return s&&Ne(i,function(l,f){var v=l.dataByAxis||[],C=e[f]||{},w=C.dataByAxis||[];s=s&&v.length===w.length,s&&Ne(v,function(x,Q){var R=w[Q]||{},L=x.seriesDataIndices||[],P=R.seriesDataIndices||[];s=s&&x.value===R.value&&x.axisType===R.axisType&&x.axisId===R.axisId&&L.length===P.length,s&&Ne(L,function(M,k){var G=P[k];s=s&&M.seriesIndex===G.seriesIndex&&M.dataIndex===G.dataIndex}),o&&Ne(x.seriesDataIndices,function(M){var k=M.seriesIndex,G=n[k],Y=o[k];G&&Y&&Y.data!==G.data&&(s=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!s},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){Yn.node||!n.getDom()||(_(this,"_updatePosition"),this._tooltipContent.dispose(),C7("itemTooltip",n))},t.type="tooltip",t}(a);function tQ(r,t,e){var n=t.ecModel,i;e?(i=new Ia(e,n,n),i=new Ia(t.option,i,n)):i=t;for(var o=r.length-1;o>=0;o--){var s=r[o];s&&(s instanceof Ia&&(s=s.get("tooltip",!0)),en(s)&&(s={formatter:s}),s&&(i=new Ia(s,i,n)))}return i}function gL(r,t){return r.dispatchAction||an(t.dispatchAction,t)}function sV(r,t,e,n,i,o,s){var l=e.getSize(),f=l[0],v=l[1];return o!=null&&(r+f+o+2>n?r-=f+o:r+=o),s!=null&&(t+v+s>i?t-=v+s:t+=s),[r,t]}function uV(r,t,e,n,i){var o=e.getSize(),s=o[0],l=o[1];return r=Math.min(r+s,n)-s,t=Math.min(t+l,i)-l,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function cV(r,t,e,n){var i=e[0],o=e[1],s=Math.ceil(Math.SQRT2*n)+8,l=0,f=0,v=t.width,C=t.height;switch(r){case"inside":l=t.x+v/2-i/2,f=t.y+C/2-o/2;break;case"top":l=t.x+v/2-i/2,f=t.y-o-s;break;case"bottom":l=t.x+v/2-i/2,f=t.y+C+s;break;case"left":l=t.x-i-s,f=t.y+C/2-o/2;break;case"right":l=t.x+v+s,f=t.y+C/2-o/2}return[l,f]}function pL(r){return r==="center"||r==="middle"}function lV(r,t,e){var n=Iy(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var o=$c(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),s=o.models[0];if(s){var l=e.getViewOfComponentModel(s),f;if(l.group.traverse(function(v){var C=Un(v).tooltipConfig;if(C&&C.name===r.name)return f=v,!0}),f)return{componentMainType:i,componentIndex:s.componentIndex,el:f}}}}function hV(r){Fi($4),r.registerComponentModel(qK),r.registerComponentView(oV),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$o),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$o)}var fV=["rect","polygon","keep","clear"];function AV(r,t){var e=ja(r?r.brush:[]);if(e.length){var n=[];Ne(e,function(f){var v=f.hasOwnProperty("toolbox")?f.toolbox:[];v instanceof Array&&(n=n.concat(v))});var i=r&&r.toolbox;yr(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var o=i.feature||(i.feature={}),s=o.brush||(o.brush={}),l=s.type||(s.type=[]);l.push.apply(l,n),dV(l),t&&!l.length&&l.push.apply(l,fV)}}function dV(r){var t={};Ne(r,function(e){t[e]=1}),r.length=0,Ne(t,function(e,n){r.push(n)})}var vL=Ne;function yL(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function U7(r,t,e){var n={};return vL(t,function(o){var s=n[o]=i();vL(r[o],function(l,f){if(Ic.isValidType(f)){var v={type:f,visual:l};e&&e(v,o),s[f]=new Ic(v),f==="opacity"&&(v=Bn(v),v.type="colorAlpha",s.__hidden.__alphaForOpacity=new Ic(v))}})}),n;function i(){var o=function(){};o.prototype.__hidden=o.prototype;var s=new o;return s}}function mL(r,t,e){var n;Ne(e,function(i){t.hasOwnProperty(i)&&yL(t[i])&&(n=!0)}),n&&Ne(e,function(i){t.hasOwnProperty(i)&&yL(t[i])?r[i]=Bn(t[i]):delete r[i]})}function gV(r,t,e,n,i,o){var s={};Ne(r,function(w){var x=Ic.prepareVisualTypes(t[w]);s[w]=x});var l;function f(w){return Ie(e,l,w)}function v(w,x){qe(e,l,w,x)}e.each(C);function C(w,x){l=w;var Q=e.getRawDataItem(l);if(!(Q&&Q.visualMap===!1))for(var R=n.call(i,w),L=t[R],P=s[R],M=0,k=P.length;Mt[0][1]&&(t[0][1]=o[0]),o[1]t[1][1]&&(t[1][1]=o[1])}return t&&BL(t)}};function BL(r){return new gi(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var wV=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new FS(n.getZr())).on("brush",an(this._onBrush,this)).mount()},t.prototype.render=function(e,n,i,o){this.model=e,this._updateController(e,n,i,o)},t.prototype.updateTransform=function(e,n,i,o){wL(n),this._updateController(e,n,i,o)},t.prototype.updateVisual=function(e,n,i,o){this.updateTransform(e,n,i,o)},t.prototype.updateView=function(e,n,i,o){this._updateController(e,n,i,o)},t.prototype._updateController=function(e,n,i,o){(!o||o.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Bn(i),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Bn(i),$from:n})},t.type="brush",t}(a),EV="#ddd",BV=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var i=this.option;!n&&mL(i,e,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:EV},o.hasOwnProperty("liftZ")||(o.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=pr(e,function(n){return kL(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=kL(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}(Oi);function kL(r,t){return Kn({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ia(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var kV=["rect","polygon","lineX","lineY","keep","clear"],QV=function(r){kt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i){var o,s,l;n.eachComponent({mainType:"brush"},function(f){o=f.brushType,s=f.brushOption.brushMode||"single",l=l||!!f.areas.length}),this._brushType=o,this._brushMode=s,Ne(e.get("type",!0),function(f){e.setIconStatus(f,(f==="keep"?s==="multiple":f==="clear"?l:f===o)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,i){this.render(e,n,i)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),i={};return Ne(e.get("type",!0),function(o){n[o]&&(i[o]=n[o])}),i},t.prototype.onclick=function(e,n,i){var o=this._brushType,s=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?o:o===i?!1:i,brushMode:i==="keep"?s==="multiple"?"single":"multiple":s}})},t.getDefaultOption=function(e){var n={show:!0,type:kV.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"])};return n},t}(sd);function xV(r){r.registerComponentView(wV),r.registerComponentModel(BV),r.registerPreprocessor(AV),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,yV),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},$o),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},$o),w3("brush",QV)}var SV=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={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}(Oi),_V=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var o=this.group,s=e.getModel("textStyle"),l=e.getModel("subtextStyle"),f=e.get("textAlign"),v=$n(e.get("textBaseline"),e.get("textVerticalAlign")),C=new Mn({style:La(s,{text:e.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),w=C.getBoundingRect(),x=e.get("subtext"),Q=new Mn({style:La(l,{text:x,fill:l.getTextColor(),y:w.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),R=e.get("link"),L=e.get("sublink"),P=e.get("triggerEvent",!0);C.silent=!R&&!P,Q.silent=!L&&!P,R&&C.on("click",function(){nm(R,"_"+e.get("target"))}),L&&Q.on("click",function(){nm(L,"_"+e.get("subtarget"))}),Un(C).eventData=Un(Q).eventData=P?{componentType:"title",componentIndex:e.componentIndex}:null,o.add(C),x&&o.add(Q);var M=o.getBoundingRect(),k=e.getBoxLayoutParams();k.width=M.width,k.height=M.height;var G=Mo(k,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));f||(f=e.get("left")||e.get("right"),f==="middle"&&(f="center"),f==="right"?G.x+=G.width:f==="center"&&(G.x+=G.width/2)),v||(v=e.get("top")||e.get("bottom"),v==="center"&&(v="middle"),v==="bottom"?G.y+=G.height:v==="middle"&&(G.y+=G.height/2),v=v||"top"),o.x=G.x,o.y=G.y,o.markRedraw();var Y={align:f,verticalAlign:v};C.setStyle(Y),Q.setStyle(Y),M=o.getBoundingRect();var re=G.margin,ie=e.getItemStyle(["color","opacity"]);ie.fill=e.get("backgroundColor");var le=new ta({shape:{x:M.x-re[3],y:M.y-re[0],width:M.width+re[1]+re[3],height:M.height+re[0]+re[2],r:e.get("borderRadius")},style:ie,subPixelOptimize:!0,silent:!0});o.add(le)}},t.type="title",t}(a);function DV(r){r.registerComponentModel(SV),r.registerComponentView(_V)}var QL=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-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=this.option,n=e.data||[],i=e.axisType,o=this._names=[],s;i==="category"?(s=[],Ne(n,function(v,C){var w=es(Sd(v),""),x;Ln(v)?(x=Bn(v),x.value=C):x=C,s.push(x),o.push(w)})):s=n;var l={category:"ordinal",time:"time",value:"number"}[i]||"number",f=this._data=new sl([{name:"value",type:l}],this);f.initData(s,o)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={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}(Oi),xL=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=TA(QL.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}(QL);Ea(xL,O1.prototype);var RV=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(a),MV=function(r){kt(t,r);function t(e,n,i,o){var s=r.call(this,e,n,i)||this;return s.type=o||"value",s}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(_u),Y7=Math.PI,SL=Vi(),FV=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,i){if(this.model=e,this.api=i,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var o=this._layout(e,i),s=this._createGroup("_mainGroup"),l=this._createGroup("_labelGroup"),f=this._axis=this._createAxis(o,e);e.formatTooltip=function(v){var C=f.scale.getLabel({value:v});return Xs("nameValue",{noName:!0,value:C})},Ne(["AxisLine","AxisTick","Control","CurrentPointer"],function(v){this["_render"+v](o,s,f,e)},this),this._renderAxisLabel(o,l,f,e),this._position(o,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,n){var i=e.get(["label","position"]),o=e.get("orient"),s=LV(e,n),l;i==null||i==="auto"?l=o==="horizontal"?s.y+s.height/2=0||l==="+"?"left":"right"},v={horizontal:l>=0||l==="+"?"top":"bottom",vertical:"middle"},C={horizontal:0,vertical:Y7/2},w=o==="vertical"?s.height:s.width,x=e.getModel("controlStyle"),Q=x.get("show",!0),R=Q?x.get("itemSize"):0,L=Q?x.get("itemGap"):0,P=R+L,M=e.get(["label","rotate"])||0;M=M*Y7/180;var k,G,Y,re=x.get("position",!0),ie=Q&&x.get("showPlayBtn",!0),le=Q&&x.get("showPrevBtn",!0),pe=Q&&x.get("showNextBtn",!0),ve=0,Ee=w;re==="left"||re==="bottom"?(ie&&(k=[0,0],ve+=P),le&&(G=[ve,0],ve+=P),pe&&(Y=[Ee-R,0],Ee-=P)):(ie&&(k=[Ee-R,0],Ee-=P),le&&(G=[0,0],ve+=P),pe&&(Y=[Ee-R,0],Ee-=P));var Se=[ve,Ee];return e.get("inverse")&&Se.reverse(),{viewRect:s,mainLength:w,orient:o,rotation:C[o],labelRotation:M,labelPosOpt:l,labelAlign:e.get(["label","align"])||f[o],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||v[o],playPosition:k,prevBtnPosition:G,nextBtnPosition:Y,axisExtent:Se,controlSize:R,controlGap:L}},t.prototype._position=function(e,n){var i=this._mainGroup,o=this._labelGroup,s=e.viewRect;if(e.orient==="vertical"){var l=Lu(),f=s.x,v=s.y+s.height;Hs(l,l,[-f,-v]),nf(l,l,-Y7/2),Hs(l,l,[f,v]),s=s.clone(),s.applyTransform(l)}var C=k(s),w=k(i.getBoundingRect()),x=k(o.getBoundingRect()),Q=[i.x,i.y],R=[o.x,o.y];R[0]=Q[0]=C[0][0];var L=e.labelPosOpt;if(L==null||en(L)){var P=L==="+"?0:1;G(Q,w,C,1,P),G(R,x,C,1,1-P)}else{var P=L>=0?0:1;G(Q,w,C,1,P),R[1]=Q[1]+L}i.setPosition(Q),o.setPosition(R),i.rotation=o.rotation=e.rotation,M(i),M(o);function M(Y){Y.originX=C[0][0]-Y.x,Y.originY=C[1][0]-Y.y}function k(Y){return[[Y.x,Y.x+Y.width],[Y.y,Y.y+Y.height]]}function G(Y,re,ie,le,pe){Y[le]+=ie[le][pe]-re[le][pe]}},t.prototype._createAxis=function(e,n){var i=n.getData(),o=n.get("axisType"),s=TV(n,o);s.getTicks=function(){return i.mapArray(["value"],function(v){return{value:v}})};var l=i.getDataExtent("value");s.setExtent(l[0],l[1]),s.calcNiceTicks();var f=new MV("value",s,e.axisExtent,o);return f.model=n,f},t.prototype._createGroup=function(e){var n=this[e]=new Nn;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,i,o){var s=i.getExtent();if(o.get(["lineStyle","show"])){var l=new Vs({shape:{x1:s[0],y1:0,x2:s[1],y2:0},style:ar({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(l);var f=this._progressLine=new Vs({shape:{x1:s[0],x2:this._currentPointer?this._currentPointer.x:s[0],y1:0,y2:0},style:pn({lineCap:"round",lineWidth:l.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(f)}},t.prototype._renderAxisTick=function(e,n,i,o){var s=this,l=o.getData(),f=i.scale.getTicks();this._tickSymbols=[],Ne(f,function(v){var C=i.dataToCoord(v.value),w=l.getItemModel(v.value),x=w.getModel("itemStyle"),Q=w.getModel(["emphasis","itemStyle"]),R=w.getModel(["progress","itemStyle"]),L={x:C,y:0,onclick:an(s._changeTimeline,s,v.value)},P=_L(w,x,n,L);P.ensureState("emphasis").style=Q.getItemStyle(),P.ensureState("progress").style=R.getItemStyle(),QA(P);var M=Un(P);w.get("tooltip")?(M.dataIndex=v.value,M.dataModel=o):M.dataIndex=M.dataModel=null,s._tickSymbols.push(P)})},t.prototype._renderAxisLabel=function(e,n,i,o){var s=this,l=i.getLabelModel();if(l.get("show")){var f=o.getData(),v=i.getViewLabels();this._tickLabels=[],Ne(v,function(C){var w=C.tickValue,x=f.getItemModel(w),Q=x.getModel("label"),R=x.getModel(["emphasis","label"]),L=x.getModel(["progress","label"]),P=i.dataToCoord(C.tickValue),M=new Mn({x:P,y:0,rotation:e.labelRotation-e.rotation,onclick:an(s._changeTimeline,s,w),silent:!1,style:La(Q,{text:C.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});M.ensureState("emphasis").style=La(R),M.ensureState("progress").style=La(L),n.add(M),QA(M),SL(M).dataIndex=w,s._tickLabels.push(M)})}},t.prototype._renderControl=function(e,n,i,o){var s=e.controlSize,l=e.rotation,f=o.getModel("controlStyle").getItemStyle(),v=o.getModel(["emphasis","controlStyle"]).getItemStyle(),C=o.getPlayState(),w=o.get("inverse",!0);x(e.nextBtnPosition,"next",an(this._changeTimeline,this,w?"-":"+")),x(e.prevBtnPosition,"prev",an(this._changeTimeline,this,w?"+":"-")),x(e.playPosition,C?"stop":"play",an(this._handlePlayClick,this,!C),!0);function x(Q,R,L,P){if(Q){var M=Do($n(o.get(["controlStyle",R+"BtnSize"]),s),s),k=[0,-M/2,M,M],G=NV(o,R+"Icon",k,{x:Q[0],y:Q[1],originX:s/2,originY:0,rotation:P?-l:0,rectHover:!0,style:f,onclick:L});G.ensureState("emphasis").style=v,n.add(G),QA(G)}}},t.prototype._renderCurrentPointer=function(e,n,i,o){var s=o.getData(),l=o.getCurrentIndex(),f=s.getItemModel(l).getModel("checkpointStyle"),v=this,C={onCreate:function(w){w.draggable=!0,w.drift=an(v._handlePointerDrag,v),w.ondragend=an(v._handlePointerDragend,v),DL(w,v._progressLine,l,i,o,!0)},onUpdate:function(w){DL(w,v._progressLine,l,i,o)}};this._currentPointer=_L(f,f,this._mainGroup,{},this._currentPointer,C)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var i=this._toAxisCoord(e)[0],o=this._axis,s=ki(o.getExtent().slice());i>s[1]&&(i=s[1]),i=0&&(s[o]=+s[o].toFixed(x)),[s,w]}var q7={min:ni(F9,"min"),max:ni(F9,"max"),average:ni(F9,"average"),median:ni(F9,"median")};function nQ(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,i=n&&n.dimensions;if(!HV(t)&&!yr(t.coord)&&yr(i)){var o=ML(t,e,n,r);if(t=Bn(t),t.type&&q7[t.type]&&o.baseAxis&&o.valueAxis){var s=Vn(i,o.baseAxis.dim),l=Vn(i,o.valueAxis.dim),f=q7[t.type](e,o.baseDataDim,o.valueDataDim,s,l);t.coord=f[0],t.value=f[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!yr(i))t.coord=[];else for(var v=t.coord,C=0;C<2;C++)q7[v[C]]&&(v[C]=z7(e,e.mapDimension(i[C]),v[C]));return t}}function ML(r,t,e,n){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,i.valueAxis=e.getAxis(YV(n,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function YV(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function iQ(r,t){return r&&r.containData&&t.coord&&!W7(t)?r.containData(t.coord):!0}function JV(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!W7(t)&&!W7(e)?r.containZone(t.coord,e.coord):!0}function FL(r,t){return r?function(e,n,i,o){var s=o<2?e.coord&&e.coord[o]:e.value;return Sf(s,t[o])}:function(e,n,i,o){return Sf(e.value,t[o])}}function z7(r,t,e){if(e==="average"){var n=0,i=0;return r.each(t,function(o,s){isNaN(o)||(n+=o,i++)}),n/i}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var K7=Vi(),V7=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=mn()},t.prototype.render=function(e,n,i){var o=this,s=this.markerGroupMap;s.each(function(l){K7(l).keep=!1}),n.eachSeries(function(l){var f=gv.getMarkerModelFromSeries(l,o.type);f&&o.renderSeries(l,f,n,i)}),s.each(function(l){!K7(l).keep&&o.group.remove(l.group)})},t.prototype.markKeep=function(e){K7(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var i=this;Ne(e,function(o){var s=gv.getMarkerModelFromSeries(o,i.type);if(s){var l=s.getData();l.eachItemGraphicEl(function(f){f&&(n?Jd(f):Wd(f))})}})},t.type="marker",t}(a);function TL(r,t,e){var n=t.coordinateSystem;r.each(function(i){var o=r.getItemModel(i),s,l=jr(o.get("x"),e.getWidth()),f=jr(o.get("y"),e.getHeight());if(!isNaN(l)&&!isNaN(f))s=[l,f];else if(t.getMarkerPosition)s=t.getMarkerPosition(r.getValues(r.dimensions,i));else if(n){var v=r.get(n.dimensions[0],i),C=r.get(n.dimensions[1],i);s=n.dataToPoint([v,C])}isNaN(l)||(s[0]=l),isNaN(f)||(s[1]=f),r.setItemLayout(i,s)})}var WV=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(o){var s=gv.getMarkerModelFromSeries(o,"markPoint");s&&(TL(s.getData(),o,i),this.markerGroupMap.get(o.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,i,o){var s=e.coordinateSystem,l=e.id,f=e.getData(),v=this.markerGroupMap,C=v.get(l)||v.set(l,new Gm),w=qV(s,e,n);n.setData(w),TL(n.getData(),e,o),w.each(function(x){var Q=w.getItemModel(x),R=Q.getShallow("symbol"),L=Q.getShallow("symbolSize"),P=Q.getShallow("symbolRotate"),M=Q.getShallow("symbolOffset"),k=Q.getShallow("symbolKeepAspect");if(bn(R)||bn(L)||bn(P)||bn(M)){var G=n.getRawValue(x),Y=n.getDataParams(x);bn(R)&&(R=R(G,Y)),bn(L)&&(L=L(G,Y)),bn(P)&&(P=P(G,Y)),bn(M)&&(M=M(G,Y))}var re=Q.getModel("itemStyle").getItemStyle(),ie=Re(f,"color");re.fill||(re.fill=ie),w.setItemVisual(x,{symbol:R,symbolSize:L,symbolRotate:P,symbolOffset:M,symbolKeepAspect:k,style:re})}),C.updateData(w),this.group.add(C.group),w.eachItemGraphicEl(function(x){x.traverse(function(Q){Un(Q).dataModel=n})}),this.markKeep(C),C.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(V7);function qV(r,t,e){var n;r?n=pr(r&&r.dimensions,function(l){var f=t.getData().getDimensionInfo(t.getData().mapDimension(l))||{};return ar(ar({},f),{name:l,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sl(n,e),o=pr(e.get("data"),ni(nQ,t));r&&(o=Ii(o,ni(iQ,r)));var s=FL(!!r,n);return i.initData(o,null,s),i}function zV(r){r.registerComponentModel(jV),r.registerComponentView(WV),r.registerPreprocessor(function(t){J7(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var KV=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={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}(gv),T9=Vi(),VV=function(r,t,e,n){var i=r.getData(),o;if(yr(n))o=n;else{var s=n.type;if(s==="min"||s==="max"||s==="average"||s==="median"||n.xAxis!=null||n.yAxis!=null){var l=void 0,f=void 0;if(n.yAxis!=null||n.xAxis!=null)l=t.getAxis(n.yAxis!=null?"y":"x"),f=Bs(n.yAxis,n.xAxis);else{var v=ML(n,i,t,r);l=v.valueAxis;var C=JA(i,v.valueDataDim);f=z7(i,C,s)}var w=l.dim==="x"?0:1,x=1-w,Q=Bn(n),R={coord:[]};Q.type=null,Q.coord=[],Q.coord[x]=-1/0,R.coord[x]=1/0;var L=e.get("precision");L>=0&&$i(f)&&(f=+f.toFixed(Math.min(L,20))),Q.coord[w]=R.coord[w]=f,o=[Q,R,{type:s,valueIndex:n.valueIndex,value:f}]}else o=[]}var P=[nQ(r,o[0]),nQ(r,o[1]),ar({},o[2])];return P[2].type=P[2].type||null,Kn(P[2],P[0]),Kn(P[2],P[1]),P};function L9(r){return!isNaN(r)&&!isFinite(r)}function LL(r,t,e,n){var i=1-r,o=n.dimensions[r];return L9(t[i])&&L9(e[i])&&t[r]===e[r]&&n.getAxis(o).containData(t[r])}function ZV(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(LL(1,e,n,r)||LL(0,e,n,r)))return!0}return iQ(r,t[0])&&iQ(r,t[1])}function Z7(r,t,e,n,i){var o=n.coordinateSystem,s=r.getItemModel(t),l,f=jr(s.get("x"),i.getWidth()),v=jr(s.get("y"),i.getHeight());if(!isNaN(f)&&!isNaN(v))l=[f,v];else{if(n.getMarkerPosition)l=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var C=o.dimensions,w=r.get(C[0],t),x=r.get(C[1],t);l=o.dataToPoint([w,x])}if(v0(o,"cartesian2d")){var Q=o.getAxis("x"),R=o.getAxis("y"),C=o.dimensions;L9(r.get(C[0],t))?l[0]=Q.toGlobalCoord(Q.getExtent()[e?0:1]):L9(r.get(C[1],t))&&(l[1]=R.toGlobalCoord(R.getExtent()[e?0:1]))}isNaN(f)||(l[0]=f),isNaN(v)||(l[1]=v)}r.setItemLayout(t,l)}var XV=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(o){var s=gv.getMarkerModelFromSeries(o,"markLine");if(s){var l=s.getData(),f=T9(s).from,v=T9(s).to;f.each(function(C){Z7(f,C,!0,o,i),Z7(v,C,!1,o,i)}),l.each(function(C){l.setItemLayout(C,[f.getItemLayout(C),v.getItemLayout(C)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,i,o){var s=e.coordinateSystem,l=e.id,f=e.getData(),v=this.markerGroupMap,C=v.get(l)||v.set(l,new CS);this.group.add(C.group);var w=$V(s,e,n),x=w.from,Q=w.to,R=w.line;T9(n).from=x,T9(n).to=Q,n.setData(R);var L=n.get("symbol"),P=n.get("symbolSize"),M=n.get("symbolRotate"),k=n.get("symbolOffset");yr(L)||(L=[L,L]),yr(P)||(P=[P,P]),yr(M)||(M=[M,M]),yr(k)||(k=[k,k]),w.from.each(function(Y){G(x,Y,!0),G(Q,Y,!1)}),R.each(function(Y){var re=R.getItemModel(Y).getModel("lineStyle").getLineStyle();R.setItemLayout(Y,[x.getItemLayout(Y),Q.getItemLayout(Y)]),re.stroke==null&&(re.stroke=x.getItemVisual(Y,"style").fill),R.setItemVisual(Y,{fromSymbolKeepAspect:x.getItemVisual(Y,"symbolKeepAspect"),fromSymbolOffset:x.getItemVisual(Y,"symbolOffset"),fromSymbolRotate:x.getItemVisual(Y,"symbolRotate"),fromSymbolSize:x.getItemVisual(Y,"symbolSize"),fromSymbol:x.getItemVisual(Y,"symbol"),toSymbolKeepAspect:Q.getItemVisual(Y,"symbolKeepAspect"),toSymbolOffset:Q.getItemVisual(Y,"symbolOffset"),toSymbolRotate:Q.getItemVisual(Y,"symbolRotate"),toSymbolSize:Q.getItemVisual(Y,"symbolSize"),toSymbol:Q.getItemVisual(Y,"symbol"),style:re})}),C.updateData(R),w.line.eachItemGraphicEl(function(Y){Un(Y).dataModel=n,Y.traverse(function(re){Un(re).dataModel=n})});function G(Y,re,ie){var le=Y.getItemModel(re);Z7(Y,re,ie,e,o);var pe=le.getModel("itemStyle").getItemStyle();pe.fill==null&&(pe.fill=Re(f,"color")),Y.setItemVisual(re,{symbolKeepAspect:le.get("symbolKeepAspect"),symbolOffset:$n(le.get("symbolOffset",!0),k[ie?0:1]),symbolRotate:$n(le.get("symbolRotate",!0),M[ie?0:1]),symbolSize:$n(le.get("symbolSize"),P[ie?0:1]),symbol:$n(le.get("symbol",!0),L[ie?0:1]),style:pe})}this.markKeep(C),C.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(V7);function $V(r,t,e){var n;r?n=pr(r&&r.dimensions,function(v){var C=t.getData().getDimensionInfo(t.getData().mapDimension(v))||{};return ar(ar({},C),{name:v,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sl(n,e),o=new sl(n,e),s=new sl([],e),l=pr(e.get("data"),ni(VV,t,r,e));r&&(l=Ii(l,ni(ZV,r)));var f=FL(!!r,n);return i.initData(pr(l,function(v){return v[0]}),null,f),o.initData(pr(l,function(v){return v[1]}),null,f),s.initData(pr(l,function(v){return v[2]})),s.hasItemOption=!0,{from:i,to:o,line:s}}function eZ(r){r.registerComponentModel(KV),r.registerComponentView(XV),r.registerPreprocessor(function(t){J7(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var tZ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(gv),N9=Vi(),rZ=function(r,t,e,n){var i=n[0],o=n[1];if(!(!i||!o)){var s=nQ(r,i),l=nQ(r,o),f=s.coord,v=l.coord;f[0]=Bs(f[0],-1/0),f[1]=Bs(f[1],-1/0),v[0]=Bs(v[0],1/0),v[1]=Bs(v[1],1/0);var C=Us([{},s,l]);return C.coord=[s.coord,l.coord],C.x0=s.x,C.y0=s.y,C.x1=l.x,C.y1=l.y,C}};function O9(r){return!isNaN(r)&&!isFinite(r)}function NL(r,t,e,n){var i=1-r;return O9(t[i])&&O9(e[i])}function nZ(r,t){var e=t.coord[0],n=t.coord[1],i={coord:e,x:t.x0,y:t.y0},o={coord:n,x:t.x1,y:t.y1};return v0(r,"cartesian2d")?e&&n&&(NL(1,e,n)||NL(0,e,n))?!0:JV(r,i,o):iQ(r,i)||iQ(r,o)}function OL(r,t,e,n,i){var o=n.coordinateSystem,s=r.getItemModel(t),l,f=jr(s.get(e[0]),i.getWidth()),v=jr(s.get(e[1]),i.getHeight());if(!isNaN(f)&&!isNaN(v))l=[f,v];else{if(n.getMarkerPosition){var C=r.getValues(["x0","y0"],t),w=r.getValues(["x1","y1"],t),x=o.clampData(C),Q=o.clampData(w),R=[];e[0]==="x0"?R[0]=x[0]>Q[0]?w[0]:C[0]:R[0]=x[0]>Q[0]?C[0]:w[0],e[1]==="y0"?R[1]=x[1]>Q[1]?w[1]:C[1]:R[1]=x[1]>Q[1]?C[1]:w[1],l=n.getMarkerPosition(R,e,!0)}else{var L=r.get(e[0],t),P=r.get(e[1],t),M=[L,P];o.clampData&&o.clampData(M,M),l=o.dataToPoint(M,!0)}if(v0(o,"cartesian2d")){var k=o.getAxis("x"),G=o.getAxis("y"),L=r.get(e[0],t),P=r.get(e[1],t);O9(L)?l[0]=k.toGlobalCoord(k.getExtent()[e[0]==="x0"?0:1]):O9(P)&&(l[1]=G.toGlobalCoord(G.getExtent()[e[1]==="y0"?0:1]))}isNaN(f)||(l[0]=f),isNaN(v)||(l[1]=v)}return l}var PL=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],iZ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(o){var s=gv.getMarkerModelFromSeries(o,"markArea");if(s){var l=s.getData();l.each(function(f){var v=pr(PL,function(w){return OL(l,f,w,o,i)});l.setItemLayout(f,v);var C=l.getItemGraphicEl(f);C.setShape("points",v)})}},this)},t.prototype.renderSeries=function(e,n,i,o){var s=e.coordinateSystem,l=e.id,f=e.getData(),v=this.markerGroupMap,C=v.get(l)||v.set(l,{group:new Nn});this.group.add(C.group),this.markKeep(C);var w=aZ(s,e,n);n.setData(w),w.each(function(x){var Q=pr(PL,function(pe){return OL(w,x,pe,e,o)}),R=s.getAxis("x").scale,L=s.getAxis("y").scale,P=R.getExtent(),M=L.getExtent(),k=[R.parse(w.get("x0",x)),R.parse(w.get("x1",x))],G=[L.parse(w.get("y0",x)),L.parse(w.get("y1",x))];ki(k),ki(G);var Y=!(P[0]>k[1]||P[1]G[1]||M[1]=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={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}(Oi),B3=ni,$7=Ne,P9=Nn,GL=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new P9),this.group.add(this._selectorGroup=new P9),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var s=e.get("align"),l=e.get("orient");(!s||s==="auto")&&(s=e.get("left")==="right"&&l==="vertical"?"right":"left");var f=e.get("selector",!0),v=e.get("selectorPosition",!0);f&&(!v||v==="auto")&&(v=l==="horizontal"?"end":"start"),this.renderInner(s,e,n,i,f,l,v);var C=e.getBoxLayoutParams(),w={width:i.getWidth(),height:i.getHeight()},x=e.get("padding"),Q=Mo(C,w,x),R=this.layoutInner(e,s,Q,o,f,v),L=Mo(pn({width:R.width,height:R.height},C),w,x);this.group.x=L.x-R.x,this.group.y=L.y-R.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KT(R,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,o,s,l,f){var v=this.getContentGroup(),C=mn(),w=n.get("selectedMode"),x=[];i.eachRawSeries(function(Q){!Q.get("legendHoverLink")&&x.push(Q.id)}),$7(n.getData(),function(Q,R){var L=Q.get("name");if(!this.newlineDisabled&&(L===""||L===` `)){var P=new P9;P.newline=!0,v.add(P);return}var M=i.getSeriesByName(L)[0];if(!C.get(L))if(M){var k=M.getData(),G=k.getVisual("legendLineStyle")||{},Y=k.getVisual("legendIcon"),re=k.getVisual("style"),ie=this._createItem(M,L,R,Q,n,e,G,re,Y,w,o);ie.on("click",B3(UL,L,null,o,x)).on("mouseover",B3(e_,M.name,null,o,x)).on("mouseout",B3(t_,M.name,null,o,x)),i.ssr&&ie.eachChild(function(le){var pe=Un(le);pe.seriesIndex=M.seriesIndex,pe.dataIndex=R,pe.ssrType="legend"}),C.set(L,!0)}else i.eachRawSeries(function(le){if(!C.get(L)&&le.legendVisualProvider){var pe=le.legendVisualProvider;if(!pe.containName(L))return;var ve=pe.indexOfName(L),Ee=pe.getItemVisual(ve,"style"),Se=pe.getItemVisual(ve,"legendIcon"),ke=qc(Ee.fill);ke&&ke[3]===0&&(ke[3]=.2,Ee=ar(ar({},Ee),{fill:cf(ke,"rgba")}));var Le=this._createItem(le,L,R,Q,n,e,{},Ee,Se,w,o);Le.on("click",B3(UL,null,L,o,x)).on("mouseover",B3(e_,null,L,o,x)).on("mouseout",B3(t_,null,L,o,x)),i.ssr&&Le.eachChild(function(be){var ze=Un(be);ze.seriesIndex=le.seriesIndex,ze.dataIndex=R,ze.ssrType="legend"}),C.set(L,!0)}},this)},this),s&&this._createSelector(s,n,o,l,f)},t.prototype._createSelector=function(e,n,i,o,s){var l=this.getSelectorGroup();$7(e,function(f){var v=f.type,C=new Mn({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:v==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});l.add(C);var w=n.getModel("selectorLabel"),x=n.getModel(["emphasis","selectorLabel"]);Uo(C,{normal:w,emphasis:x},{defaultText:f.title}),QA(C)})},t.prototype._createItem=function(e,n,i,o,s,l,f,v,C,w,x){var Q=e.visualDrawType,R=s.get("itemWidth"),L=s.get("itemHeight"),P=s.isSelected(n),M=o.get("symbolRotate"),k=o.get("symbolKeepAspect"),G=o.get("icon");C=G||C||"roundRect";var Y=uZ(C,o,f,v,Q,P,x),re=new P9,ie=o.getModel("textStyle");if(bn(e.getLegendIcon)&&(!G||G==="inherit"))re.add(e.getLegendIcon({itemWidth:R,itemHeight:L,icon:C,iconRotate:M,itemStyle:Y.itemStyle,lineStyle:Y.lineStyle,symbolKeepAspect:k}));else{var le=G==="inherit"&&e.getData().getVisual("symbol")?M==="inherit"?e.getData().getVisual("symbolRotate"):M:0;re.add(cZ({itemWidth:R,itemHeight:L,icon:C,iconRotate:le,itemStyle:Y.itemStyle,symbolKeepAspect:k}))}var pe=l==="left"?R+5:-5,ve=l,Ee=s.get("formatter"),Se=n;en(Ee)&&Ee?Se=Ee.replace("{name}",n??""):bn(Ee)&&(Se=Ee(n));var ke=P?ie.getTextColor():o.get("inactiveColor");re.add(new Mn({style:La(ie,{text:Se,x:pe,y:L/2,fill:ke,align:ve,verticalAlign:"middle"},{inheritColor:ke})}));var Le=new ta({shape:re.getBoundingRect(),style:{fill:"transparent"}}),be=o.getModel("tooltip");return be.get("show")&&Ml({el:Le,componentModel:s,itemName:n,itemTooltipOption:be.option}),re.add(Le),re.eachChild(function(ze){ze.silent=!0}),Le.silent=!w,this.getContentGroup().add(re),QA(re),re.__legendDataIndex=i,re},t.prototype.layoutInner=function(e,n,i,o,s,l){var f=this.getContentGroup(),v=this.getSelectorGroup();Qf(e.get("orient"),f,e.get("itemGap"),i.width,i.height);var C=f.getBoundingRect(),w=[-C.x,-C.y];if(v.markRedraw(),f.markRedraw(),s){Qf("horizontal",v,e.get("selectorItemGap",!0));var x=v.getBoundingRect(),Q=[-x.x,-x.y],R=e.get("selectorButtonGap",!0),L=e.getOrient().index,P=L===0?"width":"height",M=L===0?"height":"width",k=L===0?"y":"x";l==="end"?Q[L]+=C[P]+R:w[L]+=x[P]+R,Q[1-L]+=C[M]/2-x[M]/2,v.x=Q[0],v.y=Q[1],f.x=w[0],f.y=w[1];var G={x:0,y:0};return G[P]=C[P]+R+x[P],G[M]=Math.max(C[M],x[M]),G[k]=Math.min(0,x[k]+Q[1-L]),G}else return f.x=w[0],f.y=w[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(a);function uZ(r,t,e,n,i,o,s){function l(P,M){P.lineWidth==="auto"&&(P.lineWidth=M.lineWidth>0?2:0),$7(P,function(k,G){P[G]==="inherit"&&(P[G]=M[G])})}var f=t.getModel("itemStyle"),v=f.getItemStyle(),C=r.lastIndexOf("empty",0)===0?"fill":"stroke",w=f.getShallow("decal");v.decal=!w||w==="inherit"?n.decal:Ms(w,s),v.fill==="inherit"&&(v.fill=n[i]),v.stroke==="inherit"&&(v.stroke=n[C]),v.opacity==="inherit"&&(v.opacity=(i==="fill"?n:e).opacity),l(v,n);var x=t.getModel("lineStyle"),Q=x.getLineStyle();if(l(Q,e),v.fill==="auto"&&(v.fill=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),Q.stroke==="auto"&&(Q.stroke=n.fill),!o){var R=t.get("inactiveBorderWidth"),L=v[C];v.lineWidth=R==="auto"?n.lineWidth>0&&L?2:0:v.lineWidth,v.fill=t.get("inactiveColor"),v.stroke=t.get("inactiveBorderColor"),Q.stroke=x.get("inactiveColor"),Q.lineWidth=x.get("inactiveWidth")}return{itemStyle:v,lineStyle:Q}}function cZ(r){var t=r.icon||"roundRect",e=yt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function UL(r,t,e,n){t_(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),e_(r,t,e,n)}function jL(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;ni[s],P=[-Q.x,-Q.y];n||(P[o]=C[v]);var M=[0,0],k=[-R.x,-R.y],G=$n(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(L){var Y=e.get("pageButtonPosition",!0);Y==="end"?k[o]+=i[s]-R[s]:M[o]+=R[s]+G}k[1-o]+=Q[l]/2-R[l]/2,C.setPosition(P),w.setPosition(M),x.setPosition(k);var re={x:0,y:0};if(re[s]=L?i[s]:Q[s],re[l]=Math.max(Q[l],R[l]),re[f]=Math.min(0,R[f]+k[1-o]),w.__rectSize=i[s],L){var ie={x:0,y:0};ie[s]=Math.max(i[s]-R[s]-G,0),ie[l]=re[l],w.setClipPath(new ta({shape:ie})),w.__rectSize=ie[s]}else x.eachChild(function(pe){pe.attr({invisible:!0,silent:!0})});var le=this._getPageInfo(e);return le.pageIndex!=null&&ga(C,{x:le.contentPosition[0],y:le.contentPosition[1]},L?e:null),this._updatePageInfoView(e,le),re},t.prototype._pageGo=function(e,n,i){var o=this._getPageInfo(n)[e];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;Ne(["pagePrev","pageNext"],function(C){var w=C+"DataIndex",x=n[w]!=null,Q=i.childOfName(C);Q&&(Q.setStyle("fill",x?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),Q.cursor=x?"pointer":"default")});var o=i.childOfName("pageText"),s=e.get("pageFormatter"),l=n.pageIndex,f=l!=null?l+1:0,v=n.pageCount;o&&s&&o.setStyle("text",en(s)?s.replace("{current}",f==null?"":f+"").replace("{total}",v==null?"":v+""):s({current:f,total:v}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,s=e.getOrient().index,l=r_[s],f=n_[s],v=this._findTargetItemIndex(n),C=i.children(),w=C[v],x=C.length,Q=x?1:0,R={contentPosition:[i.x,i.y],pageCount:Q,pageIndex:Q-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!w)return R;var L=Y(w);R.contentPosition[s]=-L.s;for(var P=v+1,M=L,k=L,G=null;P<=x;++P)G=Y(C[P]),(!G&&k.e>M.s+o||G&&!re(G,M.s))&&(k.i>M.i?M=k:M=G,M&&(R.pageNextDataIndex==null&&(R.pageNextDataIndex=M.i),++R.pageCount)),k=G;for(var P=v-1,M=L,k=L,G=null;P>=-1;--P)G=Y(C[P]),(!G||!re(k,G.s))&&M.i=le&&ie.s<=le+o}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),o;return i.eachChild(function(s,l){var f=s.__legendDataIndex;o==null&&f!=null&&(o=l),f===e&&(n=l)}),n??o},t.type="legend.scroll",t}(GL);function dZ(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function gZ(r){Fi(YL),r.registerComponentModel(fZ),r.registerComponentView(AZ),dZ(r)}function pZ(r){Fi(YL),Fi(gZ)}var vZ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=TA(eQ.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(eQ),i_=Vi();function yZ(r,t,e){i_(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function mZ(r,t){for(var e=i_(r).coordSysRecordMap,n=e.keys(),i=0;in[e+t]&&(t=l),i=i&&s.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function EZ(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=i_(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=mn());i.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var s=HT(o);Ne(s.infoList,function(l){var f=l.model.uid,v=i.get(f)||i.set(f,IZ(e,l.model)),C=v.dataZoomInfoMap||(v.dataZoomInfoMap=mn());C.set(o.uid,{dzReferCoordSysInfo:l,model:o,getRange:null})})}),i.each(function(o){var s=o.controller,l,f=o.dataZoomInfoMap;if(f){var v=f.keys()[0];v!=null&&(l=f.get(v))}if(!l){qL(i,o);return}var C=wZ(f);s.enable(C.controlType,C.opt),s.setPointerChecker(o.containsPoint),S(o,"dispatchAction",l.model.get("throttle",!0),"fixRate")})})}var BZ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),yZ(i,e,{pan:an(a_.pan,this),zoom:an(a_.zoom,this),scrollMove:an(a_.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){mZ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(D7),a_={zoom:function(r,t,e,n){var i=this.range,o=i.slice(),s=r.axisModels[0];if(s){var l=o_[t](null,[n.originX,n.originY],s,e,r),f=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0],v=Math.max(1/n.scale,0);o[0]=(o[0]-f)*v+f,o[1]=(o[1]-f)*v+f;var C=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(bC(0,o,[0,100],0,C.minSpan,C.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}},pan:zL(function(r,t,e,n,i,o){var s=o_[n]([o.oldX,o.oldY],[o.newX,o.newY],t,i,e);return s.signal*(r[1]-r[0])*s.pixel/s.pixelLength}),scrollMove:zL(function(r,t,e,n,i,o){var s=o_[n]([0,0],[o.scrollDelta,o.scrollDelta],t,i,e);return s.signal*(r[1]-r[0])*o.scrollDelta})};function zL(r){return function(t,e,n,i){var o=this.range,s=o.slice(),l=t.axisModels[0];if(l){var f=r(s,l,t,e,n,i);if(bC(f,s,[0,100],"all"),this.range=s,o[0]!==s[0]||o[1]!==s[1])return s}}}var o_={grid:function(r,t,e,n,i){var o=e.axis,s={},l=i.model.coordinateSystem.getRect();return r=r||[0,0],o.dim==="x"?(s.pixel=t[0]-r[0],s.pixelLength=l.width,s.pixelStart=l.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=l.height,s.pixelStart=l.y,s.signal=o.inverse?-1:1),s},polar:function(r,t,e,n,i){var o=e.axis,s={},l=i.model.coordinateSystem,f=l.getRadiusAxis().getExtent(),v=l.getAngleAxis().getExtent();return r=r?l.pointToCoord(r):[0,0],t=l.pointToCoord(t),e.mainType==="radiusAxis"?(s.pixel=t[0]-r[0],s.pixelLength=f[1]-f[0],s.pixelStart=f[0],s.signal=o.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=v[1]-v[0],s.pixelStart=v[0],s.signal=o.inverse?-1:1),s},singleAxis:function(r,t,e,n,i){var o=e.axis,s=i.model.coordinateSystem.getRect(),l={};return r=r||[0,0],o.orient==="horizontal"?(l.pixel=t[0]-r[0],l.pixelLength=s.width,l.pixelStart=s.x,l.signal=o.inverse?1:-1):(l.pixel=t[1]-r[1],l.pixelLength=s.height,l.pixelStart=s.y,l.signal=o.inverse?-1:1),l}};function KL(r){R7(r),r.registerComponentModel(vZ),r.registerComponentView(BZ),EZ(r)}var kZ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=TA(eQ.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(eQ),oQ=ta,VL=7,QZ=1,s_=30,xZ=7,sQ="horizontal",ZL="vertical",SZ=5,_Z=["line","bar","candlestick","scatter"],DZ={easing:"cubicOut",duration:100,delay:0},RZ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=an(this._onBrush,this),this._onBrushEnd=an(this._onBrushEnd,this)},t.prototype.render=function(e,n,i,o){if(r.prototype.render.apply(this,arguments),S(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){_(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.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 n=this._displayables.sliderGroup=new Nn;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,i=e.get("brushSelect"),o=i?xZ:0,s=this._findCoordRect(),l={width:n.getWidth(),height:n.getHeight()},f=this._orient===sQ?{right:l.width-s.x-s.width,top:l.height-s_-VL-o,width:s.width,height:s_}:{right:VL,top:s.y,width:s_,height:s.height},v=rl(e.option);Ne(["right","top","width","height"],function(w){v[w]==="ph"&&(v[w]=f[w])});var C=Mo(v,l);this._location={x:C.x,y:C.y},this._size=[C.width,C.height],this._orient===ZL&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,i=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),s=o&&o.get("inverse"),l=this._displayables.sliderGroup,f=(this._dataShadowInfo||{}).otherAxisInverse;l.attr(i===sQ&&!s?{scaleY:f?1:-1,scaleX:1}:i===sQ&&s?{scaleY:f?1:-1,scaleX:-1}:i===ZL&&!s?{scaleY:f?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:f?-1:1,scaleX:-1,rotation:Math.PI/2});var v=e.getBoundingRect([l]);e.x=n.x-v.x,e.y=n.y-v.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,o=e.get("brushSelect");i.add(new oQ({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var s=new oQ({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:an(this._onClickPanel,this)}),l=this.api.getZr();o?(s.on("mousedown",this._onBrushStart,this),s.cursor="crosshair",l.on("mousemove",this._onBrush),l.on("mouseup",this._onBrushEnd)):(l.off("mousemove",this._onBrush),l.off("mouseup",this._onBrushEnd)),i.add(s)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,i=this._shadowSize||[],o=e.series,s=o.getRawData(),l=o.getShadowDim&&o.getShadowDim(),f=l&&s.getDimensionInfo(l)?o.getShadowDim():e.otherDim;if(f==null)return;var v=this._shadowPolygonPts,C=this._shadowPolylinePts;if(s!==this._shadowData||f!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var w=s.getDataExtent(f),x=(w[1]-w[0])*.3;w=[w[0]-x,w[1]+x];var Q=[0,n[1]],R=[0,n[0]],L=[[n[0],0],[0,0]],P=[],M=R[1]/(s.count()-1),k=0,G=Math.round(s.count()/n[0]),Y;s.each([f],function(ve,Ee){if(G>0&&Ee%G){k+=M;return}var Se=ve==null||isNaN(ve)||ve==="",ke=Se?0:ea(ve,w,Q,!0);Se&&!Y&&Ee?(L.push([L[L.length-1][0],0]),P.push([P[P.length-1][0],0])):!Se&&Y&&(L.push([k,0]),P.push([k,0])),L.push([k,ke]),P.push([k,ke]),k+=M,Y=Se}),v=this._shadowPolygonPts=L,C=this._shadowPolylinePts=P}this._shadowData=s,this._shadowDim=f,this._shadowSize=[n[0],n[1]];var re=this.dataZoomModel;function ie(ve){var Ee=re.getModel(ve?"selectedDataBackground":"dataBackground"),Se=new Nn,ke=new Yu({shape:{points:v},segmentIgnoreThreshold:1,style:Ee.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),Le=new pc({shape:{points:C},segmentIgnoreThreshold:1,style:Ee.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return Se.add(ke),Se.add(Le),Se}for(var le=0;le<3;le++){var pe=ie(le===1);this._displayables.sliderGroup.add(pe),this._displayables.dataShadowSegs.push(pe)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var i,o=this.ecModel;return e.eachTargetAxis(function(s,l){var f=e.getAxisProxy(s,l).getTargetSeriesModels();Ne(f,function(v){if(!i&&!(n!==!0&&Vn(_Z,v.get("type"))<0)){var C=o.getComponent(qm(s),l).axis,w=MZ(s),x,Q=v.coordinateSystem;w!=null&&Q.getOtherAxis&&(x=Q.getOtherAxis(C).inverse),w=v.getData().mapDimension(w),i={thisAxis:C,series:v,thisDim:s,otherDim:w,otherAxisInverse:x}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,i=n.handles=[null,null],o=n.handleLabels=[null,null],s=this._displayables.sliderGroup,l=this._size,f=this.dataZoomModel,v=this.api,C=f.get("borderRadius")||0,w=f.get("brushSelect"),x=n.filler=new oQ({silent:w,style:{fill:f.get("fillerColor")},textConfig:{position:"inside"}});s.add(x),s.add(new oQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:l[0],height:l[1],r:C},style:{stroke:f.get("dataBackgroundColor")||f.get("borderColor"),lineWidth:QZ,fill:"rgba(0,0,0,0)"}})),Ne([0,1],function(G){var Y=f.get("handleIcon");!Xe[Y]&&Y.indexOf("path://")<0&&Y.indexOf("image://")<0&&(Y="path://"+Y);var re=yt(Y,-1,0,2,2,null,!0);re.attr({cursor:XL(this._orient),draggable:!0,drift:an(this._onDragMove,this,G),ondragend:an(this._onDragEnd,this),onmouseover:an(this._showDataInfo,this,!0),onmouseout:an(this._showDataInfo,this,!1),z2:5});var ie=re.getBoundingRect(),le=f.get("handleSize");this._handleHeight=jr(le,this._size[1]),this._handleWidth=ie.width/ie.height*this._handleHeight,re.setStyle(f.getModel("handleStyle").getItemStyle()),re.style.strokeNoScale=!0,re.rectHover=!0,re.ensureState("emphasis").style=f.getModel(["emphasis","handleStyle"]).getItemStyle(),QA(re);var pe=f.get("handleColor");pe!=null&&(re.style.fill=pe),s.add(i[G]=re);var ve=f.getModel("textStyle"),Ee=f.get("handleLabel")||{},Se=Ee.show||!1;e.add(o[G]=new Mn({silent:!0,invisible:!Se,style:La(ve,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:ve.getTextColor(),font:ve.getFont()}),z2:10}))},this);var Q=x;if(w){var R=jr(f.get("moveHandleSize"),l[1]),L=n.moveHandle=new ta({style:f.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:l[1]-.5,height:R}}),P=R*.8,M=n.moveHandleIcon=yt(f.get("moveHandleIcon"),-P/2,-P/2,P,P,"#fff",!0);M.silent=!0,M.y=l[1]+R/2-.5,L.ensureState("emphasis").style=f.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var k=Math.min(l[1]/2,Math.max(R,10));Q=n.moveZone=new ta({invisible:!0,shape:{y:l[1]-k,height:R+k}}),Q.on("mouseover",function(){v.enterEmphasis(L)}).on("mouseout",function(){v.leaveEmphasis(L)}),s.add(L),s.add(M),s.add(Q)}Q.attr({draggable:!0,cursor:XL(this._orient),drift:an(this._onDragMove,this,"all"),ondragstart:an(this._showDataInfo,this,!0),ondragend:an(this._onDragEnd,this),onmouseover:an(this._showDataInfo,this,!0),onmouseout:an(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ea(e[0],[0,100],n,!0),ea(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var i=this.dataZoomModel,o=this._handleEnds,s=this._getViewExtent(),l=i.findRepresentativeAxisProxy().getMinMaxSpan(),f=[0,100];bC(n,o,s,i.get("zoomLock")?"all":e,l.minSpan!=null?ea(l.minSpan,f,s,!0):null,l.maxSpan!=null?ea(l.maxSpan,f,s,!0):null);var v=this._range,C=this._range=ki([ea(o[0],s,f,!0),ea(o[1],s,f,!0)]);return!v||v[0]!==C[0]||v[1]!==C[1]},t.prototype._updateView=function(e){var n=this._displayables,i=this._handleEnds,o=ki(i.slice()),s=this._size;Ne([0,1],function(Q){var R=n.handles[Q],L=this._handleHeight;R.attr({scaleX:L/2,scaleY:L/2,x:i[Q]+(Q?-1:1),y:s[1]/2-L/2})},this),n.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:s[1]});var l={x:o[0],width:o[1]-o[0]};n.moveHandle&&(n.moveHandle.setShape(l),n.moveZone.setShape(l),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",l.x+l.width/2));for(var f=n.dataShadowSegs,v=[0,o[0],o[1],s[0]],C=0;Cn[0]||i[1]<0||i[1]>n[1])){var o=this._handleEnds,s=(o[0]+o[1])/2,l=this._updateInterval("all",i[0]-s);this._updateView(),l&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,i=e.offsetY;this._brushStart=new ci(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(i.width)<5)){var s=this._getViewExtent(),l=[0,100];this._range=ki([ea(i.x,s,l,!0),ea(i.x+i.width,s,l,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(rf(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var i=this._displayables,o=this.dataZoomModel,s=i.brushRect;s||(s=i.brushRect=new oQ({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(s)),s.attr("ignore",!1);var l=this._brushStart,f=this._displayables.sliderGroup,v=f.transformCoordToLocal(e,n),C=f.transformCoordToLocal(l.x,l.y),w=this._size;v[0]=Math.max(Math.min(w[0],v[0]),0),s.setShape({x:C[0],y:0,width:v[0]-C[0],height:w[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?DZ:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=HT(this.dataZoomModel).infoList;if(!e&&n.length){var i=n[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var o=this.api.getWidth(),s=this.api.getHeight();e={x:o*.2,y:s*.2,width:o*.6,height:s*.6}}return e},t.type="dataZoom.slider",t}(D7);function MZ(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function XL(r){return r==="vertical"?"ns-resize":"ew-resize"}function $L(r){r.registerComponentModel(kZ),r.registerComponentView(RZ),R7(r)}function FZ(r){Fi(KL),Fi($L)}var eN={get:function(r,t,e){var n=Bn((TZ[r]||{})[t]);return e&&yr(n)?n[n.length-1]:n}},TZ={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]}},tN=Ic.mapVisual,LZ=Ic.eachVisual,NZ=yr,rN=Ne,OZ=ki,PZ=ea,G9=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,n){var i=this.option;!n&&mL(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=an(e,this),this.controllerVisuals=U7(this.option.controller,n,e),this.targetVisuals=U7(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(i,o){n.push(o)}):n=ja(e),n},t.prototype.eachTargetSeries=function(e,n){Ne(this.getTargetSeriesIndices(),function(i){var o=this.ecModel.getSeriesByIndex(i);o&&e.call(n,o)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(i){i===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,i){var o=this.option,s=o.precision,l=this.dataBound,f=o.formatter,v;i=i||["<",">"],yr(e)&&(e=e.slice(),v=!0);var C=n?e:v?[w(e[0]),w(e[1])]:w(e);if(en(f))return f.replace("{value}",v?C[0]:C).replace("{value2}",v?C[1]:C);if(bn(f))return v?f(e[0],e[1]):f(e);if(v)return e[0]===l[0]?i[0]+" "+C[1]:e[1]===l[1]?i[1]+" "+C[0]:C[0]+" - "+C[1];return C;function w(x){return x===l[0]?"min":x===l[1]?"max":(+x).toFixed(Math.min(s,20))}},t.prototype.resetExtent=function(){var e=this.option,n=OZ([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var i=e.dimensions,o=i.length-1;o>=0;o--){var s=i[o],l=e.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},o=n.target||(n.target={}),s=n.controller||(n.controller={});Kn(o,i),Kn(s,i);var l=this.isCategory();f.call(this,o),f.call(this,s),v.call(this,o,"inRange","outOfRange"),C.call(this,s);function f(w){NZ(n.color)&&!w.inRange&&(w.inRange={color:n.color.slice().reverse()}),w.inRange=w.inRange||{color:e.get("gradientColor")}}function v(w,x,Q){var R=w[x],L=w[Q];R&&!L&&(L=w[Q]={},rN(R,function(P,M){if(Ic.isValidType(M)){var k=eN.get(M,"inactive",l);k!=null&&(L[M]=k,M==="color"&&!L.hasOwnProperty("opacity")&&!L.hasOwnProperty("colorAlpha")&&(L.opacity=[0,0]))}}))}function C(w){var x=(w.inRange||{}).symbol||(w.outOfRange||{}).symbol,Q=(w.inRange||{}).symbolSize||(w.outOfRange||{}).symbolSize,R=this.get("inactiveColor"),L=this.getItemSymbol(),P=L||"roundRect";rN(this.stateList,function(M){var k=this.itemSize,G=w[M];G||(G=w[M]={color:l?R:[R]}),G.symbol==null&&(G.symbol=x&&Bn(x)||(l?P:[P])),G.symbolSize==null&&(G.symbolSize=Q&&Bn(Q)||(l?k[0]:[k[0],k[0]])),G.symbol=tN(G.symbol,function(ie){return ie==="none"?P:ie});var Y=G.symbolSize;if(Y!=null){var re=-1/0;LZ(Y,function(ie){ie>re&&(re=ie)}),G.symbolSize=tN(Y,function(ie){return PZ(ie,[0,re],[0,k[0]],!0)})}},this)}},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,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}(Oi),nN=[20,140],GZ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=nN[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=nN[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):yr(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),Ne(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=ki((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=i[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,f){e[0]<=l&&l<=e[1]&&o.push(f)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getVisualMeta=function(e){var n=iN(this,"outOfRange",this.getExtent()),i=iN(this,"inRange",this.option.range.slice()),o=[];function s(Q,R){o.push({value:Q,color:e(Q,R)})}for(var l=0,f=0,v=i.length,C=n.length;fe[1])break;o.push({color:this.getControllerVisual(f,"color",n),offset:l/i})}return o.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),o},t.prototype._createBarPoints=function(e,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,i=this.visualMapModel.get("inverse");return new Nn(n==="horizontal"&&!i?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var i=this._shapes,o=this.visualMapModel,s=i.handleThumbs,l=i.handleLabels,f=o.itemSize,v=o.getExtent(),C=this._applyTransform("left",i.mainGroup);UZ([0,1],function(w){var x=s[w];x.setStyle("fill",n.handlesColor[w]),x.y=e[w];var Q=m0(e[w],[0,f[1]],v,!0),R=this.getControllerVisual(Q,"symbolSize");x.scaleX=x.scaleY=R/f[0],x.x=f[0]-R/2;var L=Rl(i.handleLabelPoints[w],og(x,this.group));if(this._orient==="horizontal"){var P=C==="left"||C==="top"?(f[0]-R)/2:(f[0]-R)/-2;L[1]+=P}l[w].setStyle({x:L[0],y:L[1],text:o.formatValueText(this._dataInterval[w]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,i,o){var s=this.visualMapModel,l=s.getExtent(),f=s.itemSize,v=[0,f[1]],C=this._shapes,w=C.indicator;if(w){w.attr("invisible",!1);var x={convertOpacityToAlpha:!0},Q=this.getControllerVisual(e,"color",x),R=this.getControllerVisual(e,"symbolSize"),L=m0(e,l,v,!0),P=f[0]-R/2,M={x:w.x,y:w.y};w.y=L,w.x=P;var k=Rl(C.indicatorLabelPoint,og(w,this.group)),G=C.indicatorLabel;G.attr("invisible",!1);var Y=this._applyTransform("left",C.mainGroup),re=this._orient,ie=re==="horizontal";G.setStyle({text:(i||"")+s.formatValueText(n),verticalAlign:ie?Y:"middle",align:ie?"center":Y});var le={x:P,y:L,style:{fill:Q}},pe={style:{x:k[0],y:k[1]}};if(s.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var ve={duration:100,easing:"cubicInOut",additive:!0};w.x=M.x,w.y=M.y,w.animateTo(le,ve),G.animateTo(pe,ve)}else w.attr(le),G.attr(pe);this._firstShowIndicator=!1;var Ee=this._shapes.handleLabels;if(Ee)for(var Se=0;Ses[1]&&(w[1]=1/0),n&&(w[0]===-1/0?this._showIndicator(C,w[1],"< ",f):w[1]===1/0?this._showIndicator(C,w[0],"> ",f):this._showIndicator(C,C,"≈ ",f));var x=this._hoverLinkDataIndices,Q=[];(n||lN(i))&&(Q=this._hoverLinkDataIndices=i.findTargetDataIndices(w));var R=Sh(x,Q);this._dispatchHighDown("downplay",U9(R[0],i)),this._dispatchHighDown("highlight",U9(R[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(_t(e.target,function(f){var v=Un(f);if(v.dataIndex!=null)return n=v,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(i)){var s=i.getData(n.dataType),l=s.getStore().get(o.getDataDimensionIndex(s),n.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(o.dimension=s,n.push(o))}}),r.getData().setVisual("visualMeta",n)}}];function KZ(r,t,e,n){for(var i=t.targetVisuals[n],o=Ic.prepareVisualTypes(i),s={color:Re(r.getData(),"color")},l=0,f=o.length;l0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(WZ,qZ),Ne(zZ,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(VZ))}function gN(r){r.registerComponentModel(GZ),r.registerComponentView(YZ),dN(r)}var ZZ=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],XZ[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var o=this.option.categories;this.resetVisual(function(s,l){i==="categories"?(s.mappingMethod="category",s.categories=Bn(o)):(s.dataExtent=this.getExtent(),s.mappingMethod="piecewise",s.pieceList=pr(this._pieceList,function(f){return f=Bn(f),l!=="inRange"&&(f.visual=null),f}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},i=Ic.listVisualTypes(),o=this.isCategory();Ne(e.pieces,function(l){Ne(i,function(f){l.hasOwnProperty(f)&&(n[f]=1)})}),Ne(n,function(l,f){var v=!1;Ne(this.stateList,function(C){v=v||s(e,C,f)||s(e.target,C,f)},this),!v&&Ne(this.stateList,function(C){(e[C]||(e[C]={}))[f]=eN.get(f,C==="inRange"?"active":"inactive",o)})},this);function s(l,f,v){return l&&l[f]&&l[f].hasOwnProperty(v)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var i=this.option,o=this._pieceList,s=(n?i:e).selected||{};if(i.selected=s,Ne(o,function(f,v){var C=this.getSelectedMapKey(f);s.hasOwnProperty(C)||(s[C]=!0)},this),i.selectedMode==="single"){var l=!1;Ne(o,function(f,v){var C=this.getSelectedMapKey(f);s[C]&&(l?s[C]=!1:l=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?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=Bn(e)},t.prototype.getValueState=function(e){var n=Ic.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],i=this._pieceList;return this.eachTargetSeries(function(o){var s=[],l=o.getData();l.each(this.getDataDimensionIndex(l),function(f,v){var C=Ic.findPieceIndex(f,i);C===e&&s.push(v)},this),n.push({seriesId:o.id,dataIndex:s})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var i=e.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],i=["",""],o=this;function s(C,w){var x=o.getRepresentValue({interval:C});w||(w=o.getValueState(x));var Q=e(x,w);C[0]===-1/0?i[0]=Q:C[1]===1/0?i[1]=Q:n.push({value:C[0],color:Q},{value:C[1],color:Q})}var l=this._pieceList.slice();if(!l.length)l.push({interval:[-1/0,1/0]});else{var f=l[0].interval[0];f!==-1/0&&l.unshift({interval:[-1/0,f]}),f=l[l.length-1].interval[1],f!==1/0&&l.push({interval:[f,1/0]})}var v=-1/0;return Ne(l,function(C){var w=C.interval;w&&(w[0]>v&&s([v,w[0]],"outOfRange"),s(w.slice()),v=w[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=TA(G9.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}(G9),XZ={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var o=(n[1]-n[0])/i;+o.toFixed(e)!==o&&e<5;)e++;t.precision=e,o=+o.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var s=0,l=n[0];s","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,i)},this)}};function pN(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var $Z=function(r){kt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,i=n.get("textGap"),o=n.textStyleModel,s=o.getFont(),l=o.getTextColor(),f=this._getItemAlign(),v=n.itemSize,C=this._getViewData(),w=C.endsText,x=Bs(n.get("showLabel",!0),!w),Q=!n.get("selectedMode");w&&this._renderEndsText(e,w[0],v,x,f),Ne(C.viewPieceList,function(R){var L=R.piece,P=new Nn;P.onclick=an(this._onItemClick,this,L),this._enableHoverLink(P,R.indexInModelPieceList);var M=n.getRepresentValue(L);if(this._createItemSymbol(P,M,[0,0,v[0],v[1]],Q),x){var k=this.visualMapModel.getValueState(M);P.add(new Mn({style:{x:f==="right"?-i:v[0]+i,y:v[1]/2,text:L.text,verticalAlign:"middle",align:f,font:s,fill:l,opacity:k==="outOfRange"?.5:1},silent:Q}))}e.add(P)},this),w&&this._renderEndsText(e,w[1],v,x,f),Qf(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var i=this;e.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(s){var l=i.visualMapModel;l.option.hoverLink&&i.api.dispatchAction({type:s,batch:U9(l.findTargetDataIndices(n),l)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return sN(e,this.api,e.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(e,n,i,o,s){if(n){var l=new Nn,f=this.visualMapModel.textStyleModel;l.add(new Mn({style:La(f,{x:o?s==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:o?s:"center",text:n})})),e.add(l)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=pr(e.getPieceList(),function(l,f){return{piece:l,indexInModelPieceList:f}}),i=e.get("text"),o=e.get("orient"),s=e.get("inverse");return(o==="horizontal"?s:!s)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(e,n,i,o){var s=yt(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color"));s.silent=o,e.add(s)},t.prototype._onItemClick=function(e){var n=this.visualMapModel,i=n.option,o=i.selectedMode;if(o){var s=Bn(i.selected),l=n.getSelectedMapKey(e);o==="single"||o===!0?(s[l]=!0,Ne(s,function(f,v){s[v]=v===l})):s[l]=!s[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:s})}},t.type="visualMap.piecewise",t}(aN);function vN(r){r.registerComponentModel(ZZ),r.registerComponentView($Z),dN(r)}function eX(r){Fi(gN),Fi(vN)}var tX={label:{enabled:!0},decal:{show:!1}},yN=Vi(),rX={};function nX(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=Bn(tX);Kn(n.label,r.getLocaleModel().get("aria"),!1),Kn(e.option,n,!1),i(),o();function i(){var v=e.getModel("decal"),C=v.get("show");if(C){var w=mn();r.eachSeries(function(x){if(!x.isColorBySeries()){var Q=w.get(x.type);Q||(Q={},w.set(x.type,Q)),yN(x).scope=Q}}),r.eachRawSeries(function(x){if(r.isSeriesFiltered(x))return;if(bn(x.enableAriaDecal)){x.enableAriaDecal();return}var Q=x.getData();if(x.isColorBySeries()){var R=lb(x.ecModel,x.name,rX,r.getSeriesCount()),L=Q.getVisual("decal");Q.setVisual("decal",Y(L,R))}else{var P=x.getRawData(),M={},k=yN(x).scope;Q.each(function(re){var ie=Q.getRawIndex(re);M[ie]=re});var G=P.count();P.each(function(re){var ie=M[re],le=P.getName(re)||re+"",pe=lb(x.ecModel,le,k,G),ve=Q.getItemVisual(ie,"decal");Q.setItemVisual(ie,"decal",Y(ve,pe))})}function Y(re,ie){var le=re?ar(ar({},ie),re):ie;return le.dirty=!0,le}})}}function o(){var v=t.getZr().dom;if(v){var C=r.getLocaleModel().get("aria"),w=e.getModel("label");if(w.option=pn(w.option,C),!!w.get("enabled")){if(v.setAttribute("role","img"),w.get("description")){v.setAttribute("aria-label",w.get("description"));return}var x=r.getSeriesCount(),Q=w.get(["data","maxCount"])||10,R=w.get(["series","maxCount"])||10,L=Math.min(x,R),P;if(!(x<1)){var M=l();if(M){var k=w.get(["general","withTitle"]);P=s(k,{title:M})}else P=w.get(["general","withoutTitle"]);var G=[],Y=x>1?w.get(["series","multiple","prefix"]):w.get(["series","single","prefix"]);P+=s(Y,{seriesCount:x}),r.eachSeries(function(pe,ve){if(ve1?w.get(["series","multiple",ke]):w.get(["series","single",ke]),Ee=s(Ee,{seriesId:pe.seriesIndex,seriesName:pe.get("name"),seriesType:f(pe.subType)});var Le=pe.getData();if(Le.count()>Q){var be=w.get(["data","partialData"]);Ee+=s(be,{displayCnt:Q})}else Ee+=w.get(["data","allData"]);for(var ze=w.get(["data","separator","middle"]),ut=w.get(["data","separator","end"]),ft=w.get(["data","excludeDimensionId"]),Qt=[],vt=0;vt":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},oX=function(){function r(t){var e=this._condVal=en(t)?new RegExp(t):z3(t)?t:null;if(e==null){var n="";Ba(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return en(e)?this._condVal.test(t):$i(e)?this._condVal.test(t+""):!1},r}(),sX=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),uX=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(i),i=[Le,be]}function C(Le,be,ze,ut){Q3(Le,ze)&&Q3(be,ut)||i.push(Le,be,ze,ut,ze,ut)}function w(Le,be,ze,ut,ft,Qt){var vt=Math.abs(be-Le),Gt=Math.tan(vt/4)*4/3,Ct=bepe:Se2&&n.push(i),n}function h_(r,t,e,n,i,o,s,l,f,v){if(Q3(r,e)&&Q3(t,n)&&Q3(i,s)&&Q3(o,l)){f.push(s,l);return}var C=2/v,w=C*C,x=s-r,Q=l-t,R=Math.sqrt(x*x+Q*Q);x/=R,Q/=R;var L=e-r,P=n-t,M=i-s,k=o-l,G=L*L+P*P,Y=M*M+k*k;if(G=0&&pe=0){f.push(s,l);return}var ve=[],Ee=[];sf(r,e,i,s,.5,ve),sf(t,n,o,l,.5,Ee),h_(ve[0],Ee[0],ve[1],Ee[1],ve[2],Ee[2],ve[3],Ee[3],f,v),h_(ve[4],Ee[4],ve[5],Ee[5],ve[6],Ee[6],ve[7],Ee[7],f,v)}function CX(r,t){var e=l_(r),n=[];t=t||1;for(var i=0;i0)for(var v=0;vMath.abs(v),w=CN([f,v],C?0:1,t),x=(C?l:v)/w.length,Q=0;Qi,s=CN([n,i],o?0:1,t),l=o?"width":"height",f=o?"height":"width",v=o?"x":"y",C=o?"y":"x",w=r[l]/s.length,x=0;x1?null:new ci(L*f+r,L*v+t)}function BX(r,t,e){var n=new ci;ci.sub(n,e,t),n.normalize();var i=new ci;ci.sub(i,r,t);var o=i.dot(n);return o}function x3(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function kX(r,t,e){for(var n=r.length,i=[],o=0;os?(v.x=C.x=l+o/2,v.y=f,C.y=f+s):(v.y=C.y=f+s/2,v.x=l,C.x=l+o),kX(t,v,C)}function j9(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),o=r(t);j9(r,o[0],i,n),j9(r,o[1],e-i,n)}return n}function QX(r,t){for(var e=[],n=0;n0;v/=2){var C=0,w=0;(r&v)>0&&(C=1),(t&v)>0&&(w=1),l+=v*v*(3*C^w),w===0&&(C===1&&(r=v-1-r,t=v-1-t),f=r,r=t,t=f)}return l}function J9(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,o=pr(r,function(l){var f=l.getBoundingRect(),v=l.getComputedTransform(),C=f.x+f.width/2+(v?v[4]:0),w=f.y+f.height/2+(v?v[5]:0);return t=Math.min(C,t),e=Math.min(w,e),n=Math.max(C,n),i=Math.max(w,i),[C,w]}),s=pr(o,function(l,f){return{cp:l,z:LX(l[0],l[1],t,e,n,i),path:r[f]}});return s.sort(function(l,f){return l.z-f.z}).map(function(l){return l.path})}function DN(r){return _X(r.path,r.count)}function A_(){return{fromIndividuals:[],toIndividuals:[],count:0}}function NX(r,t,e){var n=[];function i(re){for(var ie=0;ie=0;i--)if(!e[i].many.length){var f=e[l].many;if(f.length<=1)if(l)l=0;else return e;var o=f.length,v=Math.ceil(o/2);e[i].many=f.slice(v,o),e[l].many=f.slice(0,v),l++}return e}var PX={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var l=n.getModel("universalTransition").get("delay"),f=Object.assign({setToFinal:!0},s),v,C;RN(r)&&(v=r,C=t),RN(t)&&(v=t,C=r);function w(M,k,G,Y,re){var ie=M.many,le=M.one;if(ie.length===1&&!re){var pe=k?ie[0]:le,ve=k?le:ie[0];if(H9(pe))w({many:[pe],one:ve},!0,G,Y,!0);else{var Ee=l?pn({delay:l(G,Y)},f):f;f_(pe,ve,Ee),o(pe,ve,pe,ve,Ee)}}else for(var Se=pn({dividePath:PX[e],individualDelay:l&&function(ft,Qt,vt,Gt){return l(ft+G,Y)}},f),ke=k?NX(ie,le,Se):OX(le,ie,Se),Le=ke.fromIndividuals,be=ke.toIndividuals,ze=Le.length,ut=0;utt.length,Q=v?MN(C,v):MN(x?t:r,[x?r:t]),R=0,L=0;LFN))for(var o=n.getIndices(),s=0;s0&&ie.group.traverse(function(pe){pe instanceof Si&&!pe.animators.length&&pe.animateFrom({style:{opacity:0}},le)})})}function GN(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function UN(r){return yr(r)?r.sort().join(","):r}function Km(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function WX(r,t){var e=mn(),n=mn(),i=mn();return Ne(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],f=r.oldData[s],v=GN(o),C=UN(v);n.set(C,{dataGroupId:l,data:f}),yr(v)&&Ne(v,function(w){i.set(w,{key:C,dataGroupId:l,data:f})})}),Ne(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),f=GN(o),v=UN(f),C=n.get(v);if(C)e.set(v,{oldSeries:[{dataGroupId:C.dataGroupId,divide:Km(C.data),data:C.data}],newSeries:[{dataGroupId:s,divide:Km(l),data:l}]});else if(yr(f)){var w=[];Ne(f,function(R){var L=n.get(R);L.data&&w.push({dataGroupId:L.dataGroupId,divide:Km(L.data),data:L.data})}),w.length&&e.set(v,{oldSeries:w,newSeries:[{dataGroupId:s,data:l,divide:Km(l)}]})}else{var x=i.get(f);if(x){var Q=e.get(x.key);Q||(Q={oldSeries:[{dataGroupId:x.dataGroupId,data:x.data,divide:Km(x.data)}],newSeries:[]},e.set(x.key,Q)),Q.newSeries.push({dataGroupId:s,data:l,divide:Km(l)})}}}}),e}function jN(r,t){for(var e=0;e=0&&i.push({dataGroupId:t.oldDataGroupIds[l],data:t.oldData[l],divide:Km(t.oldData[l]),groupIdDim:s.dimension})}),Ne(ja(r.to),function(s){var l=jN(e.updatedSeries,s);if(l>=0){var f=e.updatedSeries[l].getData();o.push({dataGroupId:t.oldDataGroupIds[l],data:f,divide:Km(f),groupIdDim:s.dimension})}}),i.length>0&&o.length>0&&PN(i,o,n)}function zX(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){Ne(ja(n.seriesTransition),function(i){Ne(ja(i.to),function(o){for(var s=n.updatedSeries,l=0;l/= `,C=0;return W9=1,HN(function w(){for(var x=[];r[C];){if(r.charCodeAt(C)==t){if(r.charCodeAt(C+1)===i)return C=r.indexOf(">",C),x;if(r.charCodeAt(C+1)===o){if(r.charCodeAt(C+2)==n){for(;r.charCodeAt(C)!==e||r.charCodeAt(C-1)!=n||r.charCodeAt(C-2)!=n||C==-1;)C=r.indexOf(">",C+1);C===-1&&(C=r.length)}else for(C+=2;r.charCodeAt(C)!==e;C++);C++;continue}if(r.charCodeAt(C+1)===f){C=r.indexOf(">",C),C++;continue}for(var Q=++C;v.indexOf(r[C])===-1;C++);for(var R=r.slice(Q,C),L=!1,P={};r.charCodeAt(C)!==e;C++){var M=r.charCodeAt(C);if(M>64&&M<91||M>96&&M<123){for(Q=C;v.indexOf(r[C])===-1;C++);for(var k=r.slice(Q,C),G=r.charCodeAt(C);G!==s&&G!==l;)C++,G=r.charCodeAt(C);var Y=r[C],re=++C;C=r.indexOf(Y,re);var ie=r.slice(re,C);L||(P={},L=!0),P[k]=ie}}var le=[];r.charCodeAt(C-1)!==i&&(C++,le=w()),x.push({children:le,tagName:R,attrs:P})}else{var pe=C;(C=r.indexOf("<",C)-1)===-2&&(C=r.length);var ve=r.slice(pe,C+1);ve.length>0&&x.push(ve)}C++}return x}())}function HN(r){var t={};if(r===void 0)return{};if(r.length===1&&typeof r[0]=="string")return r[0];for(var e in r.forEach(function(n){if(t[n.tagName]||(t[n.tagName]=[]),typeof n=="object"){var i=HN(n.children);typeof i=="object"&&(n.attrs&&(i.attrs=n.attrs),i.attrs===void 0?i.attrs={order:W9}:i.attrs.order=W9),W9++,t[n.tagName].push(i)}}),t)t[e].length==1&&(t[e]=t[e][0]);return t}function Ya(r){return r/12700}function q9(r){return r/100}function z9(r){return r/6e4}function Vm(r){return r/1e5}function v_(r){var t=Math.ceil(r/26),e=(r%26||26)-1+65;return String.fromCharCode(e).repeat(t)}function nu(r,t,e){var n={type:"solidFill"};if(r["a:srgbClr"])n.color="#"+r["a:srgbClr"].attrs.val;else if(r["a:schemeClr"]){var i=r["a:schemeClr"].attrs.val;e&&(i=e.getColorThemeName(i)),n.color=t.getColor(i)}else if(r["a:sysClr"])n.color="#"+r["a:sysClr"].attrs.lastClr;else if(r["a:prstClr"]){var o=It.get(r["a:prstClr"],["attrs","val"]);n.color=function(x){var Q,R=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],L=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"],P=R.indexOf(x);return P!=-1&&(Q=L[P]),"#".concat(Q||"000000")}(o)}var s=r["a:srgbClr"]||r["a:schemeClr"]||r["a:sysClr"],l=It.get(s,["a:alpha","attrs","val"],1e5);n.alpha=l/1e5;var f=It.get(s,["a:shade","attrs","val"]);f&&(n.shade=f/1e5);var v=It.get(s,["a:lumMod","attrs","val"]);v&&(n.lumMod=v/1e5);var C=It.get(s,["a:lumOff","attrs","val"]);C&&(n.lumOff=C/1e5);var w=It.get(s,["a:tint","attrs","val"]);return w&&(n.tint=w/1e5),n}function cQ(r,t,e){var n,i={type:"blipFill"},o=It.get(r,["a:blip","attrs","r:embed"]);if(o){var s=(n=e.rels[o])===null||n===void 0?void 0:n.target;s&&(i.base64=t.getMedia(s))}var l=It.get(r,["a:blip","a:alphaModFix","attrs","amt"]);l&&(i.alpha=l/1e5);var f=It.get(r,["a:stretch","a:fillRect","attrs"]);return f&&(i.fillRect={},f.b&&(i.fillRect.b=f.b/1e5),f.t&&(i.fillRect.t=f.t/1e5),f.r&&(i.fillRect.r=f.r/1e5),f.l&&(i.fillRect.l=f.l/1e5)),i}function lQ(r,t,e){var n={type:"gradFill",tileRect:{},lin:{},gsList:[]};n.flip=r.attrs.flip,n.path=It.get(r,["a:path","attrs","path"])||"linear",n.rotWithShape=r.attrs.rotWithShape==="1",It.get(r,["a:lin","attrs","ang"])&&(n.lin.ang=z9(r["a:lin"].attrs.ang)),It.get(r,["a:lin","attrs","scaled"])&&(n.lin.scaled=r["a:lin"].attrs.scaled==="1");var i=It.get(r,["a:gsLst","a:gs"])||[];return n.gsList=i.map(function(o){return{color:nu(o,t,e),pos:Vm(o.attrs.pos)}}),It.get(r,["a:tileRect","attrs","l"])&&(n.tileRect.l=Vm(r["a:tileRect"].attrs.l)),It.get(r,["a:tileRect","attrs","t"])&&(n.tileRect.t=Vm(r["a:tileRect"].attrs.t)),It.get(r,["a:tileRect","attrs","r"])&&(n.tileRect.r=Vm(r["a:tileRect"].attrs.r)),It.get(r,["a:tileRect","attrs","b"])&&(n.tileRect.b=Vm(r["a:tileRect"].attrs.b)),n}function y_(r){return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function m_(r){return r<.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055}function YN(r,t){var e=r[0],n=r[1],i=r[2],o=y_(e/255)*t,s=y_(n/255)*t,l=y_(i/255)*t;return[Math.round(255*m_(o)),Math.round(255*m_(s)),Math.round(255*m_(l))]}function I_(r,t,e){var n=r/255,i=t/255,o=e/255,s=Math.max(n,i,o),l=Math.min(n,i,o),f=s-l,v=0,C=(s+l)/2;return f===0?v=0:s===n?v=(i-o)/f%6:s===i?v=(o-n)/f+2:s===o&&(v=(n-i)/f+4),(v=Math.round(60*v))<0&&(v+=360),{h:v,s:f===0||C===0||C===1?0:f/(1-Math.abs(2*C-1)),l:C}}function b_(r,t,e){var n,i,o,s=(1-Math.abs(2*e-1))*t,l=s*(1-Math.abs(r/60%2-1)),f=e-s/2;return r<60?(n=s,i=l,o=0):r<120?(n=l,i=s,o=0):r<180?(n=0,i=s,o=l):r<240?(n=0,i=l,o=s):r<300?(n=l,i=0,o=s):(n=s,i=0,o=l),[n=Math.round(255*(n+f)),i=Math.round(255*(i+f)),o=Math.round(255*(o+f))]}function $a(r,t){if(!r||r.type==="none")return"";if(r.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(r.color)){var e=parseInt(r.color.substr(1,2),16),n=parseInt(r.color.substr(3,2),16),i=parseInt(r.color.substr(5,2),16);if(r.shade){var o=YN([e,n,i],r.shade);e=o[0],n=o[1],i=o[2]}if(r.lumMod){var s=function(C,w,x,Q){var R=I_(C,w,x),L=R.h,P=R.l*Q;return P>=1&&(P=1),b_(L,R.s,P)}(e,n,i,r.lumMod);e=s[0],n=s[1],i=s[2]}if(r.lumOff&&(s=function(C,w,x,Q){var R=I_(C,w,x),L=R.h,P=Q+R.l;return P>1&&(P=1),b_(L,R.s,P)}(e,n,i,r.lumOff),e=s[0],n=s[1],i=s[2]),r.tint||t!=null&&t.light){var l=function(C,w,x,Q){var R=I_(C,w,x),L=R.h,P=R.l;return Q>=1&&(Q=1),b_(L,R.s,P*Q+(1-Q))}(e,n,i,r.tint||(t==null?void 0:t.light));e=l[0],n=l[1],i=l[2]}if(t!=null&&t.dark){var f=YN([e,n,i],t==null?void 0:t.dark);e=f[0],n=f[1],i=f[2]}var v=r.alpha;return"rgba(".concat(e,",").concat(n,",").concat(i,",").concat(v,")")}}var hQ=function(){function r(t,e,n){this.uuid=xr(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=t,this.ctx=e,this.group=n;var i=It.get(t,["p:nvSpPr","p:nvPr"]);if(i){var o=It.get(i,"p:ph");o&&o.attrs&&(this.idx=o.attrs.idx,this.type=o.attrs.type),It.get(i,["attrs","userDrawn"])&&(this.userDrawn=It.get(i,["attrs","userDrawn"])==="1")}if(this.order=It.get(t,"attrs.order",0),this.source["p:spPr"])(s=this.getXfrm())&&(this.offset={x:Math.round(Ya(parseInt(s["a:off"].attrs.x))),y:Math.round(Ya(parseInt(s["a:off"].attrs.y)))},this.extend={w:Math.round(Ya(parseInt(s["a:ext"].attrs.cx))),h:Math.round(Ya(parseInt(s["a:ext"].attrs.cy||"0")))},this.rotate=z9(parseInt(It.get(s,"attrs.rot",0))),this.flipV=It.get(s,"attrs.flipV")==="1",this.flipH=It.get(s,"attrs.flipH")==="1");else if(this.source["p:xfrm"]){var s=this.source["p:xfrm"];this.offset={x:Math.round(Ya(parseInt(s["a:off"].attrs.x))),y:Math.round(Ya(parseInt(s["a:off"].attrs.y)))},this.extend={w:Math.round(Ya(parseInt(s["a:ext"].attrs.cx))),h:Math.round(Ya(parseInt(s["a:ext"].attrs.cy)))}}if(n){var l=n.extend,f=n.chExtend,v=n.chOffset,C=f.w===0?0:l.w/f.w,w=f.h===0?0:l.h/f.h;this.extend.w=this.extend.w*C,this.extend.h=this.extend.h*w,this.offset.x=(this.offset.x-v.x)*C,this.offset.y=(this.offset.y-v.y)*w}}return Object.defineProperty(r.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),r.prototype.getColorThemeName=function(t){return this.ctx.getColorThemeName(t)},r.prototype.getXfrm=function(){var t=this.source["p:spPr"]["a:xfrm"];return t||(this.idx?t=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(t=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),t},r}(),KX=function(){function r(t,e){this.props={},this.inheritProps={},this.source=t,this.node=e,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return r.prototype._getInheritBodyProps=function(){var t,e=this.node.ctx,n=this.node.type,i=this.node.idx;if(n||i)switch(e.slideType){case"slideMaster":break;case"slideLayout":(t=n?e.slideMaster.getNodeByType(n):e.slideMaster.getNodeByIdx(i))&&(this.inheritProps=It.get(t,["textBody","props"])||{});break;case"slide":(t=n?e.slideLayout.slideMaster.getNodeByType(n):e.slideLayout.slideMaster.getNodeByIdx(i))&&Object.assign(this.inheritProps,It.get(t,["textBody","props"])||{}),(t=n?e.slideLayout.getNodeByType(n):e.slideLayout.getNodeByIdx(i))&&Object.assign(this.inheritProps,It.get(t,["textBody","props"])||{})}},r.prototype._parseBodyProps=function(){var t=this,e=It.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(e).forEach(function(s){switch(s){case"anchor":t.props.anchor=e[s];break;case"rtlCol":t.props.rtlCol=e[s]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":t.props[s]=Ya(parseInt(e[s]));break;case"order":break;default:t.props[s]=e[s]}});var n=It.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(n){this.props.normAutofit={};var i=n.fontScale;i&&(this.props.normAutofit.fontScale=Vm(parseInt(i)));var o=n.lnSpcReduction;o&&(this.props.normAutofit.lnSpcReduction=Vm(parseInt(o)))}},r.prototype._parseLstStyle=function(){var t=this,e={},n=It.get(this.source,"a:lstStyle")||{};Object.keys(n).forEach(function(i){if(i.startsWith("a:")&&i.endsWith("pPr")){var o=i.substr(2,i.length-5);e[o]={props:t._formatPPr(n[i])};var s=It.get(n[i],["a:defRPr"]);e[o].defRPr=t._formatRPr(s)}}),this.lstStyle=e},r.prototype._parseText=function(){var t=this,e=It.get(this.source,["a:p"])||[];Array.isArray(e)||(e=[e]),this.paragraphs=e.map(function(n){return t._parseParagraph(n)})},r.prototype._parseParagraph=function(t){var e=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},i=It.get(t,["a:pPr"])||{};n.props=this._formatPPr(i);var o=It.get(t,["a:endParaRPr"]);n.endParaRProps=this._formatRPr(o);var s=It.get(t,["a:r"])||[];Array.isArray(s)||(s=[s]);var l=It.get(t,["a:br"])||[];return Array.isArray(l)||(l=[l]),(s=s.concat(l.map(function(f){return Wr({isBr:!0},f)}))).sort(function(f,v){return It.get(f,["attrs","order"])-It.get(v,["attrs","order"])}),n.rows=s.map(function(f){return e._parseRow(f)}),n.inheritProps=this._getInheritPProps(n.props.level),n.inheritRProps=this._getInheritRProps(n.props.level),n},r.prototype._getInheritPProps=function(t){t===void 0&&(t="0");var e,n={},i=this.node.ctx,o=this.node.type,s=this.node.idx;switch(i.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,It.get(i.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,It.get(i,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,It.get(i.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,It.get(i.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{}),(o||s)&&(e=o?i.slideMaster.getNodeByType(o):i.slideMaster.getNodeByIdx(s))&&Object.assign(n,It.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,It.get(i.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,It.get(i.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{}),(o||s)&&(["subTitle","ctrTitle","title"].includes(o)&&Object.assign(n,It.get(i.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(t?+t+1:1),"props"])||{}),(e=o?i.slideLayout.slideMaster.getNodeByType(o):i.slideLayout.slideMaster.getNodeByIdx(s))&&Object.assign(n,It.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{}),(e=o?i.slideLayout.getNodeByType(o):i.slideLayout.getNodeByIdx(s))&&Object.assign(n,It.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{}))}return n},r.prototype._getInheritRProps=function(t){t===void 0&&(t="0");var e,n={},i=this.node.ctx,o=this.node.type,s=this.node.idx;switch(i.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,It.get(i.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,It.get(i,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,It.get(i.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,It.get(i.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(o||s)&&(e=o?i.slideMaster.getNodeByType(o):i.slideMaster.getNodeByIdx(s))&&(n=It.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,It.get(i.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,It.get(i.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(o||s)&&(["subTitle","ctrTitle","title"].includes(o)&&Object.assign(n,It.get(i.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(e=o?i.slideLayout.slideMaster.getNodeByType(o):i.slideLayout.slideMaster.getNodeByIdx(s))&&Object.assign(n,It.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(e=o?i.slideLayout.getNodeByType(o):i.slideLayout.getNodeByIdx(s))&&Object.assign(n,It.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}))}var l=It.get(this.node.source,["p:style","a:fontRef"]);return It.get(l,"a:schemeClr")&&(n.color=nu(l,this.node.theme,this.node)),It.get(this.lstStyle,["lvl".concat(t?+t+1:1),"defRPr"])&&Object.assign(n,It.get(this.lstStyle,["lvl".concat(t?+t+1:1),"defRPr"])),n},r.prototype._formatPPr=function(t){var e={},n=It.get(t,"attrs")||{};return Object.keys(n).forEach(function(i){switch(i){case"algn":e.align=n[i];break;case"marL":e.marginLeft=Ya(parseInt(n[i]));break;case"indent":e.indent=Ya(parseInt(n[i]));break;case"lvl":e.level=n[i]}}),It.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),It.get(t,["a:buAutoNum","attrs","type"])&&(e.buAutoNum=t["a:buAutoNum"].attrs.type),It.get(t,["a:buChar","attrs","char"])&&(e.buChar=t["a:buChar"].attrs.char),It.get(t,["a:spcBef","a:spcPts","attrs","val"])&&(e.spaceBefore=q9(parseInt(t["a:spcBef"]["a:spcPts"].attrs.val))),It.get(t,["a:spcAft","a:spcPts","attrs","val"])&&(e.spaceAfter=q9(parseInt(t["a:spcAft"]["a:spcPts"].attrs.val))),e},r.prototype._parseRow=function(t){if(t.isBr)return{isBr:!0};var e={props:{},text:""},n=It.get(t,["a:rPr"])||{};return e.props=this._formatRPr(n),e.text=It.get(t,"a:t")||"",e},r.prototype._formatRPr=function(t){var e={},n=It.get(t,"attrs")||{};Object.keys(n).forEach(function(s){switch(s){case"sz":e.size=parseInt(n[s])/100;break;case"b":e.bold=n[s]==="1";break;case"i":e.italic=n[s]==="1";break;case"u":e.underline=n[s];break;case"strike":e.strike=n[s];break;case"order":case"dirty":break;default:e[s]=n[s]}});var i=It.get(t,"a:solidFill");i&&(e.color=nu(i,this.node.theme,this.node));var o=It.get(t,"a:highlight");return o&&(e.background=nu(o,this.node.theme,this.node)),e.typeface=It.get(t,["a:ea","attrs","typeface"]),e},r}();function _3(r,t,e){var n={};if(!It.get(r,"a:noFill")){It.get(r,"attrs.w")&&(n.width=Ya(parseInt(It.get(r,"attrs.w"))));var i=It.get(r,"a:solidFill");i&&(n.color=nu(i,t,e));var o=It.get(r,"a:prstDash");if(o&&(n.type=o.attrs.val),It.get(r,["a:miter"])&&(n.lineJoin="miter"),It.get(r,["a:bevel"])&&(n.lineJoin="bevel"),It.get(r,["a:round"])&&(n.lineJoin="round"),It.get(r,["a:miter","attrs","lim"])&&(n.miterLim=Ya(parseInt(It.get(r,["a:miter","attrs","lim"])))),It.get(r,["a:headEnd"])){var s=It.get(r,["a:headEnd","attrs"]);n.headEnd={type:s.type,len:s.len,w:s.w}}if(It.get(r,["a:tailEnd"])){var l=It.get(r,["a:tailEnd","attrs"]);n.tailEnd={type:l.type,len:l.len,w:l.w}}return n}}var fQ=function(r){function t(e,n,i,o){var s=r.call(this,e,i,o)||this;return s.border={},s.prstGeom={},s.isTextBox=!1,s.pptx=n,s._parseShape(),s._parIsTextBox(),s._parsePrstGeom(),s._parseBackground(),s._parseBorder(),s._parseTxt(),s}return Gs(t,r),t.prototype._parseShape=function(){if(this.shape=It.get(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&It.get(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var e=It.get(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),n=[],i=[],o=function(l){switch(l){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":i=Array.isArray(e[l])?e[l]:[e[l]],n=n.concat(i.map(function(f){return{order:f.attrs.order,type:l.split(":")[1],points:(Array.isArray(f["a:pt"])?f["a:pt"]:[f["a:pt"]]).map(function(v){return[Ya(parseInt(It.get(v,["attrs","x"]))),Ya(parseInt(It.get(v,["attrs","y"])))]})}}));break;case"a:close":i=Array.isArray(e[l])?e[l]:[e[l]],n=n.concat(i.map(function(f){return{order:f.attrs.order,type:l.split(":")[1]}}))}};for(var s in e)o(s);n.sort(function(l,f){return l.order-f.order}),this.prstGeom.pathList=n,It.get(e,["attrs","w"])&&(this.prstGeom.w=Ya(parseInt(It.get(e,["attrs","w"])))),It.get(e,["attrs","h"])&&(this.prstGeom.h=Ya(parseInt(It.get(e,["attrs","h"]))))}},t.prototype._parIsTextBox=function(){this.isTextBox=It.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},t.prototype._parsePrstGeom=function(){var e=this,n=It.get(this.source,["p:spPr","a:prstGeom"]),i=It.get(n,["a:avLst","a:gd"]);i&&(Array.isArray(i)||(i=[i]),this.prstGeom.gd=i.map(function(o){var s=["pie","chord","arc"].includes(e.shape)||["blockArc"].includes(e.shape)&&["adj1","adj2"].includes(o.attrs.name)?z9(parseInt(o.attrs.fmla.split(" ")[1])):Vm(parseInt(o.attrs.fmla.split(" ")[1]));return{name:o.attrs.name,fmla:s}}))},t.prototype._parseBackground=function(){if(!It.get(this.source,["p:spPr","a:noFill"]))if(It.get(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var e=It.get(this.source,["p:spPr","a:solidFill"]);if(e)this.background=nu(e,this.theme,this);else{var n=It.get(this.source,["p:spPr","a:gradFill"]);if(n)this.background=lQ(n,this.theme,this);else{var i=It.get(this.source,["p:spPr","a:blipFill"]);if(i)this.background=cQ(i,this.pptx,this.ctx);else{var o=It.get(this.source,["p:style","a:fillRef"]);o&&(this.background=nu(o,this.theme,this))}}}}},t.prototype._parseBorder=function(){var e=It.get(this.source,["p:style","a:lnRef"]);if(e){var n=parseInt(e.attrs.idx),i=this.theme.getLineStyle(n);this.border=Wr(Wr({},i),this.border),this.border.color&&this.border.color.color||(this.border.color=nu(e,this.theme,this))}var o=It.get(this.source,["p:spPr","a:ln"]);o&&Object.assign(this.border,_3(o,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=t.defaultBorderWidth)},t.prototype._parseTxt=function(){this.textBody=new KX(It.get(this.source,["p:txBody"]),this)},t.defaultBorderWidth=.75,t}(hQ),K9=function(r){function t(e,n,i,o,s){var l,f,v=r.call(this,n,o,s)||this;v.userDrawn=!0,v.pptx=i,v.path=e;var C=It.get(v.source,["p:blipFill","a:srcRect"]);C&&(v.clip={},C.attrs.b&&(v.clip.b=parseInt(C.attrs.b)/1e5),C.attrs.t&&(v.clip.t=parseInt(C.attrs.t)/1e5),C.attrs.l&&(v.clip.l=parseInt(C.attrs.l)/1e5),C.attrs.r&&(v.clip.r=parseInt(C.attrs.r)/1e5));var w=It.get(n,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(w){var x=(l=v.ctx.rels[w])===null||l===void 0?void 0:l.target;v.audioFile=v.pptx.getMedia(x)}var Q=It.get(n,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(Q){var R=(f=v.ctx.rels[Q])===null||f===void 0?void 0:f.target;v.videoFile=v.pptx.getMedia(R)}return v}return Gs(t,r),Object.defineProperty(t.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),t}(hQ),JN=function(r){function t(e,n,i,o){var s=r.call(this,e,i,o)||this;return s.userDrawn=!0,s.props={tableStyleId:""},s.tableGrid={gridCol:[]},s.tr=[],s.tableStyles={},s.pptx=n,s._parseTableProps(),s._parseTableGrid(),s._parseTr(),s._parseInheritStyles(),s}return Gs(t,r),Object.defineProperty(t.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),t.prototype._parseTableProps=function(){var e=It.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=It.get(e,"a:tableStyleId"),this.tableStyles=It.get(this.slideMaster.tableStyles,this.props.tableStyleId)||{},It.get(e,["attrs","bandCol"])==="1"&&(this.props.bandCol=!0),It.get(e,["attrs","bandRow"])==="1"&&(this.props.bandRow=!0),It.get(e,["attrs","firstCol"])==="1"&&(this.props.firstCol=!0),It.get(e,["attrs","firstRow"])==="1"&&(this.props.firstRow=!0),It.get(e,["attrs","lastCol"])==="1"&&(this.props.lastCol=!0),It.get(e,["attrs","lastRow"])==="1"&&(this.props.lastRow=!0)},t.prototype._parseTableGrid=function(){var e=It.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(e)for(var n=0;n>>0))),[4,i.async("base64")]):[3,4];case 2:s=L.sent(),this.medias[i.name]="data:".concat(o,";base64,").concat(s),L.label=3;case 3:return e++,[3,1];case 4:l=Object.keys(this._zipContents.files).filter(function(M){return M.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(M.split(".").pop().toLowerCase())}).map(function(M){return R._zipContents.files[M]}),f=0,v=l,L.label=5;case 5:return f3999)throw new Error("Input must be a number between 1 and 3999.");for(var l="",f=0;f=s[f].value;)l+=s[f].numeral,o-=s[f].value;return l}(e)+".";break;case"alphaUcPeriod":n.textContent=v_(e)+".";break;case"alphaLcPeriod":n.textContent=v_(e).toLowerCase()+".";break;case"alphaLcParenR":n.textContent=v_(e).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":n.textContent=function(o){var s=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(o)||o<0)return"";for(var l="",f=o.toString(),v=0;v0&&o3*Math.PI/2&&o<2*Math.PI?t+Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(o),2)/Math.pow(i,2))):t-Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(o),2)/Math.pow(i,2))),o===0||o===2*Math.PI||o===Math.PI?e:o===Math.PI/2?e+i:o===3*Math.PI/2?e-i:o>Math.PI&&o<2*Math.PI?e-Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(1/Math.tan(o),2)/Math.pow(n,2))):e+Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(1/Math.tan(o),2)/Math.pow(n,2)))]}function gQ(r,t){var e=0;return(t>r&&t-r>180||t2*Y&&(G=2*Y);var le=["M0,".concat(k.h-Y),"L".concat(re,",").concat(k.h-2*Y),"L".concat(re,",").concat(k.h-Y-G/2),"L".concat(k.w/2-G/2,",").concat(k.h-Y-G/2),"L".concat(k.w/2-G/2,",").concat(re),"L".concat(k.w/2-Y,",").concat(re),"L".concat(k.w/2,",0"),"L".concat(k.w/2+Y,",").concat(re),"L".concat(k.w/2+G/2,",").concat(re),"L".concat(k.w/2+G/2,",").concat(k.h-Y-G/2),"L".concat(k.w-re,",").concat(k.h-Y-G/2),"L".concat(k.w-re,",").concat(k.h-2*Y),"L".concat(k.w,",").concat(k.h-Y),"L".concat(k.w-re,",").concat(k.h),"L".concat(k.w-re,",").concat(k.h-Y+G/2),"L".concat(re,",").concat(k.h-Y+G/2),"L".concat(re,",").concat(k.h),"Z"].join(" ");return ie.setAttribute("d",le),ie}(r),Q=function(M){var k=M.extend,G=Tr("adj1",M,.225*Math.min(k.w,k.h)),Y=Tr("adj2",M,.225*Math.min(k.w,k.h)),re=Tr("adj3",M,.225*Math.min(k.w,k.h)),ie=Y===0?0:G*re/Y/2;return{top:k.h-Y-G/2,bottom:Y-G/2,left:ie,right:ie,w:k.w-2*ie,h:G}}(r);break;case"bentArrow":w=function(M){var k=M.extend,G=Tr("adj1",M,.25*Math.min(k.w,k.h)),Y=Tr("adj2",M,.25*Math.min(k.w,k.h)),re=Tr("adj3",M,.25*Math.min(k.w,k.h)),ie=Tr("adj4",M,.4375*Math.min(k.w,k.h)),le=Pr("path");G>2*Y&&(G=2*Y);var pe=ie-G;pe<0&&(pe=0);var ve=["M0,".concat(k.h),"L0,".concat(Y-G/2+ie),"A".concat(ie," ").concat(ie," 0 0 1 ").concat(ie," ").concat(Y-G/2),"L".concat(k.w-re,",").concat(Y-G/2),"L".concat(k.w-re,",0"),"L".concat(k.w,",").concat(Y),"L".concat(k.w-re,",").concat(2*Y),"L".concat(k.w-re,",").concat(Y+G/2),"L".concat(G+pe,",").concat(Y+G/2),"A".concat(pe," ").concat(pe," 0 0 0 ").concat(G," ").concat(Y+G/2+pe),"L".concat(G,",").concat(k.h),"Z"].join(" ");return le.setAttribute("d",ve),le}(r);break;case"uturnArrow":w=function(M){var k=M.extend,G=Tr("adj1",M,.25*Math.min(k.w,k.h)),Y=Tr("adj2",M,.25*Math.min(k.w,k.h)),re=Tr("adj3",M,.25*Math.min(k.w,k.h)),ie=Tr("adj4",M,.4375*Math.min(k.w,k.h)),le=Tr("adj5",M,.75*Math.min(k.w,k.h)),pe=Pr("path");G>2*Y&&(G=2*Y),lele-re&&(ie=le-re);var ve=ie-G;ve>le-re-G&&(ve=le-re-G),ve<0&&(ve=0);var Ee=Y-G/2,Se=["M0,".concat(k.h),"L0,".concat(ie),"A".concat(ie," ").concat(ie," 0 0 1 ").concat(ie," 0"),"L".concat(k.w-ie-Ee,",0"),"A".concat(ie," ").concat(ie," 0 0 1 ").concat(k.w-Ee," ").concat(ie),"L".concat(k.w-Ee,",").concat(le-re),"L".concat(k.w,",").concat(le-re),"L".concat(k.w-Y,",").concat(le),"L".concat(k.w-2*Y,",").concat(le-re),"L".concat(k.w-Y-G/2,",").concat(le-re),"L".concat(k.w-Y-G/2,",").concat(G+ve),"A".concat(ve," ").concat(ve," 0 0 0 ").concat(k.w-ve-Y-G/2," ").concat(G),"L".concat(G+ve,",").concat(G),"A".concat(ve," ").concat(ve," 0 0 0 ").concat(G," ").concat(G+ve),"L".concat(G,",").concat(k.h),"Z"].join(" ");return pe.setAttribute("d",Se),pe}(r);break;case"leftUpArrow":w=function(M){var k=M.extend,G=Tr("adj1",M,.25*Math.min(k.w,k.h)),Y=Tr("adj2",M,.25*Math.min(k.w,k.h)),re=Tr("adj3",M,.25*Math.min(k.w,k.h));G>2*Y&&(G=2*Y);var ie=Math.min(k.w,k.h)-2*Y;re>ie&&(re=ie),re<0&&(re=0);var le=Y-G/2,pe=Pr("path"),ve=["M0,".concat(k.h-Y),"L".concat(re,",").concat(k.h-2*Y),"L".concat(re,",").concat(k.h-Y-G/2),"L".concat(k.w-Y-G/2,",").concat(k.h-Y-G/2),"L".concat(k.w-Y-G/2,",").concat(re),"L".concat(k.w-2*Y,",").concat(re),"L".concat(k.w-Y,",0"),"L".concat(k.w,",").concat(re),"L".concat(k.w-le,",").concat(re),"L".concat(k.w-le,",").concat(k.h-le),"L".concat(re,",").concat(k.h-le),"L".concat(re,",").concat(k.h),"Z"].join(" ");return pe.setAttribute("d",ve),pe}(r),Q=function(M){var k=M.extend,G=Tr("adj1",M,.25*Math.min(k.w,k.h)),Y=Tr("adj2",M,.25*Math.min(k.w,k.h)),re=Tr("adj3",M,.25*Math.min(k.w,k.h));G>2*Y&&(G=2*Y);var ie=Math.min(k.w,k.h)-2*Y;re>ie&&(re=ie),re<0&&(re=0);var le=Y===0?0:G*re/Y/2;return{top:k.h-Y-G/2,bottom:Y-G/2,left:le,right:Y,w:k.w-le-Y,h:G}}(r);break;case"bentUpArrow":w=function(M){var k=M.extend,G=Tr("adj1",M,.25*Math.min(k.w,k.h)),Y=Tr("adj2",M,.25*Math.min(k.w,k.h)),re=Tr("adj3",M,.25*Math.min(k.w,k.h));G>2*Y&&(G=2*Y);var ie=Math.min(k.w,k.h)-2*Y;re>ie&&(re=ie),re<0&&(re=0);var le=Y-G/2,pe=Pr("path"),ve=["M0,".concat(k.h),"L0,".concat(k.h-G),"L".concat(k.w-Y-G/2,",").concat(k.h-G),"L".concat(k.w-Y-G/2,",").concat(re),"L".concat(k.w-2*Y,",").concat(re),"L".concat(k.w-Y,",0"),"L".concat(k.w,",").concat(re),"L".concat(k.w-le,",").concat(re),"L".concat(k.w-le,",").concat(k.h),"Z"].join(" ");return pe.setAttribute("d",ve),pe}(r),Q=function(M){var k=M.extend,G=Tr("adj1",M,.25*Math.min(k.w,k.h));return{top:k.h-G,bottom:0,left:0,right:0,w:k.w,h:G}}(r);break;case"curvedRightArrow":w=function(M){var k=M.extend,G=M.background,Y=Tr("adj1",M,.25*Math.min(k.w,k.h)),re=Tr("adj2",M,.5*Math.min(k.w,k.h)),ie=Tr("adj3",M,.25*Math.min(k.w,k.h));Y>re&&(Y=re);var le=re/2-Y/2,pe=(k.h-re/2-Y/2)/2,ve=(k.h-le-Y)/2,Ee=Pr("g"),Se=Pr("path"),ke=["M".concat(k.w,",0"),"A ".concat(k.w," ").concat(pe," 0 0 0 ").concat(0," ").concat(pe),"L0,".concat(ve+Y),"A ".concat(k.w," ").concat(ve," 0 0 1 ").concat(k.w," ").concat(Y),"Z"].join(" ");Se.setAttribute("d",ke),(G==null?void 0:G.type)==="solidFill"&&Se.setAttribute("fill",$a(G,{dark:.6})||"transparent");var Le=Pr("path"),be=["M0,".concat(pe),"A ".concat(k.w," ").concat(pe," 0 0 0 ").concat(k.w-ie," ").concat(k.h-re/2-Y/2),"L".concat(k.w-ie,",").concat(k.h-re),"L".concat(k.w,",").concat(k.h-re/2),"L".concat(k.w-ie,",").concat(k.h),"L".concat(k.w-ie,",").concat(k.h-le),"A ".concat(k.w," ").concat(ve," 0 0 1 0 ").concat(Y+ve),"Z"].join(" ");return Le.setAttribute("d",be),Ee.appendChild(Se),Ee.appendChild(Le),Ee}(r);break;case"curvedLeftArrow":w=function(M){var k=M.extend,G=M.background,Y=Tr("adj1",M,.25*Math.min(k.w,k.h)),re=Tr("adj2",M,.5*Math.min(k.w,k.h)),ie=Tr("adj3",M,.25*Math.min(k.w,k.h));Y>re&&(Y=re);var le=re/2-Y/2,pe=(k.h-re/2-Y/2)/2,ve=(k.h-le-Y)/2,Ee=Pr("g"),Se=Pr("path"),ke=["M0,".concat(k.h-re/2),"L".concat(ie,",").concat(k.h-re),"L".concat(ie,",").concat(k.h-re/2-Y/2),"A".concat(k.w," ").concat(pe," 0 0 0 ").concat(k.w," ").concat(pe),"L".concat(k.w,",").concat(ve+Y),"A ".concat(k.w," ").concat(ve," 0 0 1 ").concat(ie," ").concat(k.h-le),"L".concat(ie,",").concat(k.h),"Z"].join(" ");Se.setAttribute("d",ke);var Le=Pr("path"),be=["M0,0","A ".concat(k.w," ").concat(pe," 0 0 1 ").concat(k.w," ").concat(pe),"L".concat(k.w,",").concat(ve+Y),"A ".concat(k.w," ").concat(ve," 0 0 0 ").concat(0," ").concat(Y),"Z"].join(" ");return Le.setAttribute("d",be),(G==null?void 0:G.type)==="solidFill"&&Le.setAttribute("fill",$a(G,{dark:.6})||"transparent"),Ee.appendChild(Se),Ee.appendChild(Le),Ee}(r);break;case"curvedUpArrow":w=function(M){var k=M.extend,G=M.background,Y=Tr("adj1",M,.25*Math.min(k.w,k.h)),re=Tr("adj2",M,.5*Math.min(k.w,k.h)),ie=Tr("adj3",M,.25*Math.min(k.w,k.h));Y>re&&(Y=re);var le=re/2-Y/2,pe=(k.w-re/2-Y/2)/2,ve=(k.w-le-Y)/2,Ee=Pr("g"),Se=Pr("path"),ke=["M".concat(k.w-re/2,",").concat(0),"L".concat(k.w-re,",").concat(ie),"L".concat(k.w-re/2-Y/2,",").concat(ie),"A".concat(pe," ").concat(k.h," 0 0 1 ").concat(pe," ").concat(k.h),"L".concat(pe+Y,",").concat(k.h),"A".concat(ve," ").concat(k.h," 0 0 0 ").concat(k.w-le," ").concat(ie),"L".concat(k.w,",").concat(ie),"Z"].join(" ");Se.setAttribute("d",ke);var Le=Pr("path"),be=["M".concat(Y,",0"),"L".concat(0,",").concat(0),"A ".concat(pe," ").concat(k.h," 0 0 0 ").concat(pe," ").concat(k.h),"L".concat(pe+Y,",").concat(k.h),"A ".concat(ve," ").concat(k.h," 0 0 1 ").concat(Y," ").concat(0),"Z"].join(" ");return Le.setAttribute("d",be),(G==null?void 0:G.type)==="solidFill"&&Le.setAttribute("fill",$a(G,{dark:.6})||"transparent"),Ee.appendChild(Se),Ee.appendChild(Le),Ee}(r);break;case"curvedDownArrow":w=function(M){var k=M.extend,G=M.background,Y=Tr("adj1",M,.25*Math.min(k.w,k.h)),re=Tr("adj2",M,.5*Math.min(k.w,k.h)),ie=Tr("adj3",M,.25*Math.min(k.w,k.h));Y>re&&(Y=re);var le=re/2-Y/2,pe=(k.w-re/2-Y/2)/2,ve=(k.w-le-Y)/2,Ee=Pr("g"),Se=Pr("path"),ke=["M".concat(0,",").concat(k.h),"L".concat(Y,",").concat(k.h),"A".concat(ve," ").concat(k.h," 0 0 1 ").concat(ve+Y," ").concat(0),"L".concat(pe,",").concat(0),"A".concat(pe," ").concat(k.h," 0 0 0 ").concat(0," ").concat(k.h),"Z"].join(" ");Se.setAttribute("d",ke),(G==null?void 0:G.type)==="solidFill"&&Se.setAttribute("fill",$a(G,{dark:.6})||"transparent");var Le=Pr("path"),be=["M".concat(k.w-re/2,",").concat(k.h),"L".concat(k.w-re,",").concat(k.h-ie),"L".concat(k.w-re/2-Y/2,",").concat(k.h-ie),"A ".concat(pe," ").concat(k.h," 0 0 0 ").concat(pe," ").concat(0),"L".concat(pe+Y,",").concat(0),"A ".concat(ve," ").concat(k.h," 0 0 1 ").concat(k.w-le," ").concat(k.h-ie),"L".concat(k.w,",").concat(k.h-ie),"Z"].join(" ");return Le.setAttribute("d",be),Ee.appendChild(Se),Ee.appendChild(Le),Ee}(r);break;case"stripedRightArrow":w=function(M){var k=M.extend,G=Pr("g"),Y=Math.min(k.w,k.h),re=mi("adj1",M,.5)*k.h,ie=mi("adj2",M,.5)*Y,le=Y/8,pe=Y/16,ve=Y/32,Ee=5*Y/32,Se=k.h/2-re/2,ke=k.h/2+re/2,Le=Pr("path");Le.setAttribute("d",["M".concat(0,",").concat(Se),"L".concat(ve,",").concat(Se),"L".concat(ve,",").concat(ke),"L".concat(0,",").concat(ke),"Z"].join(" "));var be=Pr("path");be.setAttribute("d",["M".concat(pe,",").concat(Se),"L".concat(le,",").concat(Se),"L".concat(le,",").concat(ke),"L".concat(pe,",").concat(ke),"Z"].join(" "));var ze=Pr("path"),ut=["M".concat(Ee,",").concat(Se),"L".concat(k.w-ie,",").concat(Se),"L".concat(k.w-ie,",").concat(0),"L".concat(k.w,",").concat(k.h/2),"L".concat(k.w-ie,",").concat(k.h),"L".concat(k.w-ie,",").concat(ke),"L".concat(Ee,",").concat(ke),"Z"].join(" ");return ze.setAttribute("d",ut),G.appendChild(ze),G.appendChild(Le),G.appendChild(be),G}(r),Q=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj1",M,.5)*k.h,re=Y*(mi("adj2",M,.5)*G)/k.h;return{top:k.h/2-Y/2,bottom:k.h/2-Y/2,left:0,right:re,w:k.w-re,h:Y}}(r);break;case"notchedRightArrow":w=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj1",M,.5)*k.h,re=mi("adj2",M,.5)*G,ie=Y*re/k.h,le=k.h/2-Y/2,pe=k.h/2+Y/2,ve=Pr("path"),Ee=["M".concat(0,",").concat(le),"L".concat(k.w-re,",").concat(le),"L".concat(k.w-re,",").concat(0),"L".concat(k.w,",").concat(k.h/2),"L".concat(k.w-re,",").concat(k.h),"L".concat(k.w-re,",").concat(pe),"L".concat(0,",").concat(pe),"L".concat(ie,",").concat(k.h/2),"Z"].join(" ");return ve.setAttribute("d",Ee),ve}(r),Q=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj1",M,.5)*k.h,re=mi("adj2",M,.5)*G,ie=Y*re/k.h,le=Y*re/k.h;return{top:k.h/2-Y/2,bottom:k.h/2-Y/2,left:ie,right:le,w:k.w-ie-le,h:Y}}(r);break;case"homePlate":w=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj",M,.5)*G,re=Pr("path"),ie=["M".concat(0,",").concat(0),"L".concat(k.w-Y,",").concat(0),"L".concat(k.w,",").concat(k.h/2),"L".concat(k.w-Y,",").concat(k.h),"L".concat(0,",").concat(k.h),"Z"].join(" ");return re.setAttribute("d",ie),re}(r),Q=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj",M,.5)*G;return{top:0,bottom:0,left:0,right:Y/2,w:k.w-Y/2,h:k.h}}(r);break;case"chevron":w=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj",M,.5)*G,re=Pr("path"),ie=["M".concat(0,",").concat(0),"L".concat(k.w-Y,",").concat(0),"L".concat(k.w,",").concat(k.h/2),"L".concat(k.w-Y,",").concat(k.h),"L".concat(0,",").concat(k.h),"L".concat(Y,",").concat(k.h/2),"Z"].join(" ");return re.setAttribute("d",ie),re}(r),Q=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj",M,.5)*G;return{top:0,bottom:0,left:Y,right:Y,w:k.w-2*Y,h:k.h}}(r);break;case"blockArc":w=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=Pr("path"),re=mi("adj1",M,180),ie=mi("adj2",M,0),le=Tr("adj3",M,.25*G),pe=k.w/2,ve=k.h/2,Ee=k.w/2,Se=k.h/2,ke=k.w/2-le,Le=k.h/2-le,be=Hl(re,pe,ve,Ee,Se),ze=be[0],ut=be[1],ft=Hl(ie,pe,ve,Ee,Se),Qt=ft[0],vt=ft[1],Gt=Hl(re,pe,ve,ke,Le),Ct=Gt[0],St=Gt[1],dr=Hl(ie,pe,ve,ke,Le),ur=dr[0],ir=dr[1],Fn=gQ(re,ie),Ei=["M".concat(ze,",").concat(ut),"A".concat(Ee," ").concat(Se," 0 ").concat(Fn," 1 ").concat(Qt," ").concat(vt),"L".concat(ur,",").concat(ir),"A".concat(ke," ").concat(Le," 0 ").concat(Fn," 0 ").concat(Ct," ").concat(St),"Z"].join(" ");return Y.setAttribute("d",Ei),Y}(r),Q=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj1",M,180),re=mi("adj2",M,0),ie=Tr("adj3",M,.25*G),le=k.w/2,pe=k.h/2,ve=k.w/2,Ee=k.h/2,Se=k.w/2-ie,ke=k.h/2-ie,Le=Hl(Y,le,pe,ve,Ee),be=Le[0],ze=Le[1],ut=Hl(re,le,pe,ve,Ee),ft=ut[0],Qt=ut[1],vt=Hl(Y,le,pe,Se,ke),Gt=vt[0],Ct=vt[1],St=Hl(re,le,pe,Se,ke),dr=[[be,ze],[ft,Qt],[Gt,Ct],[St[0],St[1]]];dr.push(),Y>re&&dr.push([k.w,k.h/2]),(re>180&&re<=360&&Y<180||Y>re&&re>=0&&re<180&&Y<180)&&dr.push([0,k.h/2]),(Y90||Y>re&&re>90||Y>re&&Y<90)&&dr.push([k.w/2,k.h]),(Y270||Y>re&&re>270||Y>re&&Y<270)&&dr.push([k.w/2,0]);var ur=1/0,ir=1/0,Fn=-1/0,Ei=-1/0;return dr.forEach(function(Vr){ur=Math.min(Vr[0],ur),ir=Math.min(Vr[1],ir),Fn=Math.max(Vr[0],Fn),Ei=Math.max(Vr[1],Ei)}),{top:ir,bottom:k.h-Ei,left:ur,right:k.w-Fn,w:Fn-ur,h:Ei-ir}}(r);break;case"foldedCorner":w=function(M){var k=M.extend,G=M.background,Y=Pr("g"),re=Pr("path"),ie=Tr("adj",M,.16667*Math.min(k.w,k.h)),le=["M0,0","L".concat(k.w,",0"),"L".concat(k.w,",").concat(k.h-ie),"L".concat(k.w-ie,",").concat(k.h),"L".concat(0,",").concat(k.h),"Z"].join(" ");re.setAttribute("d",le);var pe=ie*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(75/180*Math.PI),ve=Pr("path"),Ee=["M".concat(k.w-ie+pe,", ").concat(k.h-ie+pe),"L".concat(k.w,",").concat(k.h-ie),"L".concat(k.w-ie,",").concat(k.h),"Z"].join(" ");return ve.setAttribute("d",Ee),(G==null?void 0:G.type)==="solidFill"&&ve.setAttribute("fill",$a(G,{dark:.6})||"transparent"),Y.appendChild(re),Y.appendChild(ve),Y}(r),Q=function(M){var k=M.extend,G=Tr("adj",M,.16667*Math.min(k.w,k.h));return{top:0,bottom:G,left:0,right:0,w:k.w,h:k.h-G}}(r);break;case"rightArrowCallout":w=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj1",M,.25)*G,re=mi("adj2",M,.25)*G,ie=mi("adj3",M,.25)*G,le=mi("adj4",M,.64977)*k.w,pe=Pr("path"),ve=["M".concat(0,",").concat(0),"L".concat(le,",").concat(0),"L".concat(le,",").concat(k.h/2-Y/2),"L".concat(k.w-ie,",").concat(k.h/2-Y/2),"L".concat(k.w-ie,",").concat(k.h/2-re),"L".concat(k.w,",").concat(k.h/2),"L".concat(k.w-ie,",").concat(k.h/2+re),"L".concat(k.w-ie,",").concat(k.h/2+Y/2),"L".concat(le,",").concat(k.h/2+Y/2),"L".concat(le,",").concat(k.h),"L".concat(0,",").concat(k.h),"Z"].join(" ");return pe.setAttribute("d",ve),pe}(r),Q=function(M){var k=M.extend,G=mi("adj4",M,.64977)*k.w;return{top:0,bottom:0,left:0,right:k.w-G,w:G,h:k.h}}(r);break;case"leftArrowCallout":w=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj1",M,.25)*G,re=mi("adj2",M,.25)*G,ie=mi("adj3",M,.25)*G,le=mi("adj4",M,.64977)*k.w,pe=Pr("path"),ve=["M".concat(0,",").concat(k.h/2),"L".concat(ie,",").concat(k.h/2-re),"L".concat(ie,",").concat(k.h/2-Y/2),"L".concat(k.w-le,",").concat(k.h/2-Y/2),"L".concat(k.w-le,",").concat(0),"L".concat(k.w,",").concat(0),"L".concat(k.w,",").concat(k.h),"L".concat(k.w-le,",").concat(k.h),"L".concat(k.w-le,",").concat(k.h/2+Y/2),"L".concat(ie,",").concat(k.h/2+Y/2),"L".concat(ie,",").concat(k.h/2+re),"Z"].join(" ");return pe.setAttribute("d",ve),pe}(r),Q=function(M){var k=M.extend,G=mi("adj4",M,.64977)*k.w;return{top:0,bottom:0,left:k.w-G,right:0,w:G,h:k.h}}(r);break;case"upArrowCallout":w=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj1",M,.25)*G,re=mi("adj2",M,.25)*G,ie=mi("adj3",M,.25)*G,le=mi("adj4",M,.64977)*k.h,pe=Pr("path"),ve=["M".concat(0,",").concat(k.h-le),"L".concat(k.w/2-Y/2,",").concat(k.h-le),"L".concat(k.w/2-Y/2,",").concat(ie),"L".concat(k.w/2-re,",").concat(ie),"L".concat(k.w/2,",").concat(0),"L".concat(k.w/2+re,",").concat(ie),"L".concat(k.w/2+Y/2,",").concat(ie),"L".concat(k.w/2+Y/2,",").concat(k.h-le),"L".concat(k.w,",").concat(k.h-le),"L".concat(k.w,",").concat(k.h),"L".concat(0,",").concat(k.h),"Z"].join(" ");return pe.setAttribute("d",ve),pe}(r),Q=function(M){var k=M.extend,G=mi("adj4",M,.64977)*k.h;return{top:k.h-G,bottom:0,left:0,right:0,w:k.w,h:G}}(r);break;case"downArrowCallout":w=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj1",M,.25)*G,re=mi("adj2",M,.25)*G,ie=mi("adj3",M,.25)*G,le=mi("adj4",M,.64977)*k.h,pe=Pr("path"),ve=["M".concat(0,",").concat(0),"L".concat(k.w,",").concat(0),"L".concat(k.w,",").concat(le),"L".concat(k.w/2+Y/2,",").concat(le),"L".concat(k.w/2+Y/2,",").concat(k.h-ie),"L".concat(k.w/2+re,",").concat(k.h-ie),"L".concat(k.w/2,",").concat(k.h),"L".concat(k.w/2-re,",").concat(k.h-ie),"L".concat(k.w/2-Y/2,",").concat(k.h-ie),"L".concat(k.w/2-Y/2,",").concat(le),"L".concat(0,",").concat(le),"Z"].join(" ");return pe.setAttribute("d",ve),pe}(r),Q=function(M){var k=M.extend,G=mi("adj4",M,.64977)*k.h;return{top:0,bottom:k.h-G,left:0,right:0,w:k.w,h:G}}(r);break;case"leftRightArrowCallout":w=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj1",M,.25)*G,re=mi("adj2",M,.25)*G,ie=mi("adj3",M,.25)*G,le=mi("adj4",M,.48123)*k.w,pe=Pr("path"),ve=["M".concat(0,",").concat(k.h/2),"L".concat(ie,",").concat(k.h/2-re),"L".concat(ie,",").concat(k.h/2-Y/2),"L".concat(k.w/2-le/2,",").concat(k.h/2-Y/2),"L".concat(k.w/2-le/2,",").concat(0),"L".concat(k.w/2+le/2,",").concat(0),"L".concat(k.w/2+le/2,",").concat(k.h/2-Y/2),"L".concat(k.w-ie,",").concat(k.h/2-Y/2),"L".concat(k.w-ie,",").concat(k.h/2-re),"L".concat(k.w,",").concat(k.h/2),"L".concat(k.w-ie,",").concat(k.h/2+re),"L".concat(k.w-ie,",").concat(k.h/2+Y/2),"L".concat(k.w/2+le/2,",").concat(k.h/2+Y/2),"L".concat(k.w/2+le/2,",").concat(k.h),"L".concat(k.w/2-le/2,",").concat(k.h),"L".concat(k.w/2-le/2,",").concat(k.h/2+Y/2),"L".concat(ie,",").concat(k.h/2+Y/2),"L".concat(ie,",").concat(k.h/2+re),"Z"].join(" ");return pe.setAttribute("d",ve),pe}(r),Q=function(M){var k=M.extend,G=mi("adj4",M,.48123)*k.w;return{top:0,bottom:0,left:k.w/2-G/2,right:k.w/2-G/2,w:G,h:k.h}}(r);break;case"quadArrowCallout":w=function(M){var k=M.extend,G=Math.min(k.w,k.h),Y=mi("adj1",M,.18515)*G,re=mi("adj2",M,.18515)*G,ie=mi("adj3",M,.18515)*G,le=mi("adj4",M,.48123)*k.w,pe=mi("adj4",M,.48123)*k.h,ve=Pr("path"),Ee=["M".concat(0,",").concat(k.h/2),"L".concat(ie,",").concat(k.h/2-re),"L".concat(ie,",").concat(k.h/2-Y/2),"L".concat(k.w/2-le/2,",").concat(k.h/2-Y/2),"L".concat(k.w/2-le/2,",").concat(k.h/2-pe/2),"L".concat(k.w/2-Y/2,",").concat(k.h/2-pe/2),"L".concat(k.w/2-Y/2,",").concat(ie),"L".concat(k.w/2-re,",").concat(ie),"L".concat(k.w/2,",").concat(0),"L".concat(k.w/2+re,",").concat(ie),"L".concat(k.w/2+Y/2,",").concat(ie),"L".concat(k.w/2+Y/2,",").concat(k.h/2-pe/2),"L".concat(k.w/2+le/2,",").concat(k.h/2-pe/2),"L".concat(k.w/2+le/2,",").concat(k.h/2-Y/2),"L".concat(k.w-ie,",").concat(k.h/2-Y/2),"L".concat(k.w-ie,",").concat(k.h/2-re),"L".concat(k.w,",").concat(k.h/2),"L".concat(k.w-ie,",").concat(k.h/2+re),"L".concat(k.w-ie,",").concat(k.h/2+Y/2),"L".concat(k.w/2+le/2,",").concat(k.h/2+Y/2),"L".concat(k.w/2+le/2,",").concat(k.h/2+pe/2),"L".concat(k.w/2+Y/2,",").concat(k.h/2+pe/2),"L".concat(k.w/2+Y/2,",").concat(k.h-ie),"L".concat(k.w/2+re,",").concat(k.h-ie),"L".concat(k.w/2,",").concat(k.h),"L".concat(k.w/2-re,",").concat(k.h-ie),"L".concat(k.w/2-Y/2,",").concat(k.h-ie),"L".concat(k.w/2-Y/2,",").concat(k.h/2+pe/2),"L".concat(k.w/2-le/2,",").concat(k.h/2+pe/2),"L".concat(k.w/2-le/2,",").concat(k.h/2+Y/2),"L".concat(ie,",").concat(k.h/2+Y/2),"L".concat(ie,",").concat(k.h/2+re),"Z"].join(" ");return ve.setAttribute("d",Ee),ve}(r),Q=function(M){var k=M.extend,G=mi("adj4",M,.48123)*k.w,Y=mi("adj4",M,.48123)*k.h;return{top:k.h/2-Y/2,bottom:k.h/2-Y/2,left:k.w/2-G/2,right:k.w/2-G/2,w:G,h:Y}}(r)}w&&(R?(i==null?void 0:i.type)==="blipFill"?function(M,k,G){var Y=M.background,re=Y===void 0?{}:Y,ie=M.extend,le=re.base64,pe=re.alpha,ve=re.fillRect,Ee=ve===void 0?{}:ve,Se=Ee.b,ke=Se===void 0?0:Se,Le=Ee.t,be=Le===void 0?0:Le,ze=Ee.l,ut=ze===void 0?0:ze,ft=Ee.r,Qt=ft===void 0?0:ft,vt=Pr("defs"),Gt=Pr("pattern");Gt.setAttribute("id","background_"+M.uuid),Gt.setAttribute("patternUnits","userSpaceOnUse"),Gt.setAttribute("width",ie.w+""),Gt.setAttribute("height",ie.h+"");var Ct=Pr("image");Ct.setAttribute("href",le),Ct.setAttribute("preserveAspectRatio","none");var St=ie.w*ut,dr=ie.h*be,ur=ie.w*(1-ut-Qt),ir=ie.h*(1-be-ke);Ct.setAttribute("width",ur+""),Ct.setAttribute("height",ir+""),Ct.setAttribute("x",St+""),Ct.setAttribute("y",dr+""),typeof pe=="number"&&Ct.setAttribute("opacity",pe+""),Gt.appendChild(Ct),vt.appendChild(Gt),k.appendChild(vt),G.setAttribute("fill","url(#background_".concat(M.uuid,")"))}(r,x,w):(i==null?void 0:i.type)==="gradFill"?function(M,k,G){var Y=M.background,re=Y===void 0?{}:Y;M.extend;var ie=re.gsList,le=re.lin,pe=re.path,ve=re.tileRect,Ee=ve===void 0?{}:ve,Se=Pr("defs"),ke=Pr(pe==="circle"?"radialGradient":"linearGradient");ke.setAttribute("id","background_grad_fill_"+M.uuid);var Le=ie||[];if(Le.sort(function(Qt,vt){return Qt.pos-vt.pos}),Le.forEach(function(Qt){var vt=Pr("stop");vt.setAttribute("offset","".concat(100*Qt.pos,"%")),vt.setAttribute("stop-color",$a(Qt.color)),ke.appendChild(vt)}),pe==="circle"){var be=Ee.r,ze=Ee.l,ut=Ee.t,ft=Ee.b;be===-1?ke.setAttribute("cx","100%"):ze===-1&&ke.setAttribute("cx","0%"),ut===-1?ke.setAttribute("cy","0%"):ft===-1&&ke.setAttribute("cy","100%")}else le!=null&&le.ang&&ke.setAttribute("gradientTransform","rotate(".concat(le.ang,")"));Se.appendChild(ke),k.appendChild(Se),G.setAttribute("fill","url(#background_grad_fill_".concat(M.uuid,")"))}(r,x,w):w.setAttribute("fill",$a(i)||"transparent"):w.setAttribute("fill","transparent"),n.width?(w.setAttribute("stroke-width",n.width+"px"),w.setAttribute("stroke",$a(n.color)||"transparent")):w.setAttribute("stroke-width","0"),w.setAttribute("stroke-dasharray",function(M){return M&&M.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[M.type]||[]).map(function(k){return k*M.width}).join(","):""}(n)),w.setAttribute("stroke-linecap",n.cap&&{sq:"square",rnd:"round",flat:"butt"}[n.cap]||"square"),w.setAttribute("stroke-linejoin",n.lineJoin||"round"),n.lineJoin==="miter"&&w.setAttribute("stroke-miterlimit",n.miterLim+""),x.appendChild(w));var L=[];s&&L.push("scaleX(-1)"),l&&L.push("scaleY(-1)"),x.style.setProperty("transform",L.join(" ")),f.appendChild(x);var P=function(M,k,G){var Y;G===void 0&&(G=!1);var re=M.inheritProps,ie=M.props,le=M.paragraphs;if(!le||le.length===0)return null;var pe=Wr(Wr({},re),ie),ve=document.createElement("div");switch(ve.className="text-wrapper",ve.style.boxSizing="border-box",ve.style.position="absolute",ve.style.left=k.left+"px",pe.vert==="eaVert"?(ve.style.writingMode="vertical-rl",ve.style.height=k.h+"px"):ve.style.width=k.w+"px",pe.anchor){case"b":ve.style.bottom=k.bottom+"px";break;case"t":ve.style.top=k.top+"px";break;case"ctr":ve.style.top=k.top+k.h/2+"px",ve.style.transform="translateY(-50%)";break;default:G?ve.style.top=k.top+"px":(ve.style.top=k.top+k.h/2+"px",ve.style.transform="translateY(-50%)")}var Ee=[pe.hasOwnProperty("tIns")?Math.floor(pe.tIns)+"px":"3px",pe.hasOwnProperty("rIns")?Math.floor(pe.rIns)+"px":"5px",pe.hasOwnProperty("bIns")?Math.floor(pe.bIns)+"px":"3px",pe.hasOwnProperty("lIns")?Math.floor(pe.lIns)+"px":"5px"];ve.style.padding=Ee.join(" ");for(var Se={},ke=0,Le=function(ut){var ft=Wr(Wr({},ut.inheritProps),ut.props),Qt=void 0;if(ft.buAutoNum){var vt=ft.level?+ft.level:0;Se[vt]||(Se[vt]=0),!((Y=ut.rows)===null||Y===void 0)&&Y.length&&Se[vt]++,Object.keys(Se).forEach(function(Gt){+Gt>vt&&(Se[Gt]=0)}),Qt=V9(ut,Se[vt],{isFirst:ke===0,isLast:le.length-1===ke,bodyProps:pe})}else Qt=V9(ut,0,{isFirst:ke===0,isLast:le.length-1===ke,bodyProps:pe});ve.appendChild(Qt),ke++},be=0,ze=le;bef.order?1:-1});for(var o=0;of.order?1:-1});for(var o=0;of.order?1:-1});for(var o=0;oSt&&(Le[dr]=0)}),Ct=V9(vt,Le[St],{isFirst:ze===0,isLast:re.length-1===ze,bodyProps:ke})}else Ct=V9(vt,0,{isFirst:ze===0,isLast:re.length-1===ze,bodyProps:ke});Ee.appendChild(Ct),ze++},ft=0,Qt=be;ft{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},u$=ua.defineComponent({name:"VueOfficePptx",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["rendered","error"],setup(r,{emit:t}){let e=null;const n=ua.ref(null);function i(){let l=n.value,f=r.options.width||l.getBoundingClientRect().width||960,v=r.options.height||l.getBoundingClientRect().height||540;e=o$(l,{width:f,height:v})}function o(l){if(typeof l=="string")return fetch(l,r.requestOptions).then(f=>f.arrayBuffer());if(l instanceof ArrayBuffer)return Promise.resolve(l)}function s(){r.src&&o(r.src).then(l=>{e.preview(l).then(f=>{t("rendered",f)}).catch(f=>{t("error",f)})}).catch(l=>{t("error",l)})}return ua.onMounted(()=>{i(),s()}),ua.watch(()=>r.src,()=>{s()}),{rootRef:n}}}),c$={class:"vue-office-pptx"},l$={class:"vue-office-pptx-main",ref:"rootRef",style:{width:"100%",height:"100%"}};function h$(r,t,e,n,i,o){return vi.openBlock(),vi.createElementBlock("div",c$,[vi.createElementVNode("div",l$,null,512)])}const Z9=s$(u$,[["render",h$]]);return Z9.install=function(r){r.component(Z9.name,Z9)},Z9})}(Hx)),Hx.exports}var use=sse();const cse=Jx(use);var Yx={exports:{}};/* @license Papa Parse v5.5.3 https://github.com/mholt/PapaParse License: MIT */var lse=Yx.exports,UG;function hse(){return UG||(UG=1,function(mo,Fg){((ua,vi)=>{mo.exports=vi()})(lse,function ua(){var vi=typeof self<"u"?self:typeof window<"u"?window:vi!==void 0?vi:{},Bo,Gs=!vi.document&&!!vi.postMessage,Wr=vi.IS_PAPA_WORKER||!1,Ua={},Va=0,Wn={};function ao(Kt){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(er){var xr=vl(er);xr.chunkSize=parseInt(xr.chunkSize),er.step||er.chunk||(xr.chunkSize=null),this._handle=new jc(xr),(this._handle.streamer=this)._config=xr}).call(this,Kt),this.parseChunk=function(er,xr){var Hn=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview),Wr)vi.postMessage({results:kt,workerId:Wn.WORKER_ID,finished:Hn});else if(Da(this._config.chunk)&&!xr){if(this._config.chunk(kt,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=kt=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(kt.data),this._completeResults.errors=this._completeResults.errors.concat(kt.errors),this._completeResults.meta=kt.meta),this._completed||!Hn||!Da(this._config.complete)||kt&&kt.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Hn||kt&&kt.meta.paused||this._nextChunk(),kt}this._halted=!0},this._sendError=function(er){Da(this._config.error)?this._config.error(er):Wr&&this._config.error&&vi.postMessage({workerId:Wn.WORKER_ID,error:er,finished:!1})}}function En(Kt){var er;(Kt=Kt||{}).chunkSize||(Kt.chunkSize=Wn.RemoteChunkSize),ao.call(this,Kt),this._nextChunk=Gs?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(xr){this._input=xr,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(er=new XMLHttpRequest,this._config.withCredentials&&(er.withCredentials=this._config.withCredentials),Gs||(er.onload=Eh(this._chunkLoaded,this),er.onerror=Eh(this._chunkError,this)),er.open(this._config.downloadRequestBody?"POST":"GET",this._input,!Gs),this._config.downloadRequestHeaders){var xr,Hn=this._config.downloadRequestHeaders;for(xr in Hn)er.setRequestHeader(xr,Hn[xr])}var kt;this._config.chunkSize&&(kt=this._start+this._config.chunkSize-1,er.setRequestHeader("Range","bytes="+this._start+"-"+kt));try{er.send(this._config.downloadRequestBody)}catch(da){this._chunkError(da.message)}Gs&&er.status===0&&this._chunkError()}},this._chunkLoaded=function(){er.readyState===4&&(er.status<200||400<=er.status?this._chunkError():(this._start+=this._config.chunkSize||er.responseText.length,this._finished=!this._config.chunkSize||this._start>=(xr=>(xr=xr.getResponseHeader("Content-Range"))!==null?parseInt(xr.substring(xr.lastIndexOf("/")+1)):-1)(er),this.parseChunk(er.responseText)))},this._chunkError=function(xr){xr=er.statusText||xr,this._sendError(new Error(xr))}}function Et(Kt){(Kt=Kt||{}).chunkSize||(Kt.chunkSize=Wn.LocalChunkSize),ao.call(this,Kt);var er,xr,Hn=typeof FileReader<"u";this.stream=function(kt){this._input=kt,xr=kt.slice||kt.webkitSlice||kt.mozSlice,Hn?((er=new FileReader).onload=Eh(this._chunkLoaded,this),er.onerror=Eh(this._chunkError,this)):er=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(kt.target.result)},this._chunkError=function(){this._sendError(er.error)}}function Zo(Kt){var er;ao.call(this,Kt=Kt||{}),this.stream=function(xr){return er=xr,this._nextChunk()},this._nextChunk=function(){var xr,Hn;if(!this._finished)return xr=this._config.chunkSize,er=xr?(Hn=er.substring(0,xr),er.substring(xr)):(Hn=er,""),this._finished=!er,this.parseChunk(Hn)}}function xt(Kt){ao.call(this,Kt=Kt||{});var er=[],xr=!0,Hn=!1;this.pause=function(){ao.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){ao.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(kt){this._input=kt,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){Hn&&er.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),er.length?this.parseChunk(er.shift()):xr=!0},this._streamData=Eh(function(kt){try{er.push(typeof kt=="string"?kt:kt.toString(this._config.encoding)),xr&&(xr=!1,this._checkIsFinished(),this.parseChunk(er.shift()))}catch(da){this._streamError(da)}},this),this._streamError=Eh(function(kt){this._streamCleanUp(),this._sendError(kt)},this),this._streamEnd=Eh(function(){this._streamCleanUp(),Hn=!0,this._streamData("")},this),this._streamCleanUp=Eh(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function jc(Kt){var er,xr,Hn,kt,da=Math.pow(2,53),cs=-da,Yn=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Xu=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,ca=this,_o=0,hi=0,ws=!1,Ri=!1,Bi=[],si={data:[],errors:[],meta:{}};function ls(Ji){return Kt.skipEmptyLines==="greedy"?Ji.join("").trim()==="":Ji.length===1&&Ji[0].length===0}function oo(){if(si&&Hn&&(bu("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+Wn.DefaultDelimiter+"'"),Hn=!1),Kt.skipEmptyLines&&(si.data=si.data.filter(function(In){return!ls(In)})),hs()){let In=function(Io,Xo){Da(Kt.transformHeader)&&(Io=Kt.transformHeader(Io,Xo)),Bi.push(Io)};if(si)if(Array.isArray(si.data[0])){for(var Ji=0;hs()&&Ji(Ao=>(Kt.dynamicTypingFunction&&Kt.dynamicTyping[Ao]===void 0&&(Kt.dynamicTyping[Ao]=Kt.dynamicTypingFunction(Ao)),(Kt.dynamicTyping[Ao]||Kt.dynamicTyping)===!0))(Hc)?zi==="true"||zi==="TRUE"||zi!=="false"&&zi!=="FALSE"&&((Ao=>{if(Yn.test(Ao)&&(Ao=parseFloat(Ao),cs=Bi.length?"__parsed_extra":Bi[la]:wa,qi=Kt.transform?Kt.transform(qi,wa):qi);wa==="__parsed_extra"?(Xo[wa]=Xo[wa]||[],Xo[wa].push(qi)):Xo[wa]=qi}return Kt.header&&(la>Bi.length?bu("FieldMismatch","TooManyFields","Too many fields: expected "+Bi.length+" fields but parsed "+la,hi+Io):laKt.preview?xr.abort():(si.data=si.data[0],kt(si,ca))))}),this.parse=function(Ji,Ca,Wi){var In=Kt.quoteChar||'"',In=(Kt.newline||(Kt.newline=this.guessLineEndings(Ji,In)),Hn=!1,Kt.delimiter?Da(Kt.delimiter)&&(Kt.delimiter=Kt.delimiter(Ji),si.meta.delimiter=Kt.delimiter):((In=((Io,Xo,la,wa,qi)=>{var Hc,zi,Ao,Bn;qi=qi||[","," ","|",";",Wn.RECORD_SEP,Wn.UNIT_SEP];for(var Kn=0;Kn=Wi.length/2?`\r `:"\r"}}function wc(Kt){return Kt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function It(Kt){var er=(Kt=Kt||{}).delimiter,xr=Kt.newline,Hn=Kt.comments,kt=Kt.step,da=Kt.preview,cs=Kt.fastMode,Yn=null,Xu=!1,ca=Kt.quoteChar==null?'"':Kt.quoteChar,_o=ca;if(Kt.escapeChar!==void 0&&(_o=Kt.escapeChar),(typeof er!="string"||-1=da)return pn(!0);break}Wi.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Ca.length,index:hi}),zi++}}else if(Hn&&In.length===0&&Ri.substring(hi,hi+bu)===Hn){if(qi===-1)return pn();hi=qi+hs,qi=Ri.indexOf(xr,hi),wa=Ri.indexOf(er,hi)}else if(wa!==-1&&(wa=da)return pn(!0)}return Us();function Bn(Es){Ca.push(Es),Io=hi}function Kn(Es){var Ea=0;return Ea=Es!==-1&&(Es=Ri.substring(zi+1,Es))&&Es.trim()===""?Es.length:Ea}function Us(Es){return si||(Es===void 0&&(Es=Ri.substring(hi)),In.push(Es),hi=ls,Bn(In),Ji&&Vn()),pn()}function ar(Es){hi=Es,Bn(In),In=[],qi=Ri.indexOf(xr,hi)}function pn(Es){if(Kt.header&&!Bi&&Ca.length&&!Xu){var Ea=Ca[0],bo=Object.create(null),Ne=new Set(Ea);let pr=!1;for(let xa=0;xaHn.charCodeAt(0)!==65279?Hn:Hn.slice(1))(Kt),xr=new(er.download?En:Zo)(er)):Kt.readable===!0&&Da(Kt.read)&&Da(Kt.on)?xr=new xt(er):(vi.File&&Kt instanceof File||Kt instanceof Object)&&(xr=new Et(er)),xr.stream(Kt);(xr=(()=>{var Hn;return!!Wn.WORKERS_SUPPORTED&&(Hn=(()=>{var kt=vi.URL||vi.webkitURL||null,da=ua.toString();return Wn.BLOB_URL||(Wn.BLOB_URL=kt.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",da,")();"],{type:"text/javascript"})))})(),(Hn=new vi.Worker(Hn)).onmessage=Vt,Hn.id=Va++,Ua[Hn.id]=Hn)})()).userStep=er.step,xr.userChunk=er.chunk,xr.userComplete=er.complete,xr.userError=er.error,er.step=Da(er.step),er.chunk=Da(er.chunk),er.complete=Da(er.complete),er.error=Da(er.error),delete er.worker,xr.postMessage({input:Kt,config:er,workerId:xr.id})},Wn.unparse=function(Kt,er){var xr=!1,Hn=!0,kt=",",da=`\r `,cs='"',Yn=cs+cs,Xu=!1,ca=null,_o=!1,hi=((()=>{if(typeof er=="object"){if(typeof er.delimiter!="string"||Wn.BAD_DELIMITERS.filter(function(Bi){return er.delimiter.indexOf(Bi)!==-1}).length||(kt=er.delimiter),typeof er.quotes!="boolean"&&typeof er.quotes!="function"&&!Array.isArray(er.quotes)||(xr=er.quotes),typeof er.skipEmptyLines!="boolean"&&typeof er.skipEmptyLines!="string"||(Xu=er.skipEmptyLines),typeof er.newline=="string"&&(da=er.newline),typeof er.quoteChar=="string"&&(cs=er.quoteChar),typeof er.header=="boolean"&&(Hn=er.header),Array.isArray(er.columns)){if(er.columns.length===0)throw new Error("Option columns is empty");ca=er.columns}er.escapeChar!==void 0&&(Yn=er.escapeChar+cs),er.escapeFormulae instanceof RegExp?_o=er.escapeFormulae:typeof er.escapeFormulae=="boolean"&&er.escapeFormulae&&(_o=/^[=+\-@\t\r].*$/)}})(),new RegExp(wc(cs),"g"));if(typeof Kt=="string"&&(Kt=JSON.parse(Kt)),Array.isArray(Kt)){if(!Kt.length||Array.isArray(Kt[0]))return ws(null,Kt,Xu);if(typeof Kt[0]=="object")return ws(ca||Object.keys(Kt[0]),Kt,Xu)}else if(typeof Kt=="object")return typeof Kt.data=="string"&&(Kt.data=JSON.parse(Kt.data)),Array.isArray(Kt.data)&&(Kt.fields||(Kt.fields=Kt.meta&&Kt.meta.fields||ca),Kt.fields||(Kt.fields=Array.isArray(Kt.data[0])?Kt.fields:typeof Kt.data[0]=="object"?Object.keys(Kt.data[0]):[]),Array.isArray(Kt.data[0])||typeof Kt.data[0]=="object"||(Kt.data=[Kt.data])),ws(Kt.fields||[],Kt.data||[],Xu);throw new Error("Unable to serialize unrecognized input");function ws(Bi,si,ls){var oo="",hs=(typeof Bi=="string"&&(Bi=JSON.parse(Bi)),typeof si=="string"&&(si=JSON.parse(si)),Array.isArray(Bi)&&0{for(var Ji=0;Ji[]}},setup(mo){const{proxy:Fg}=joe();PC([]);let ua=0;const vi=PC([]),Bo=PC([]),Gs=Wr=>{if(!Wr||Wr.length<=0)return;const Ua=Wr.shift(),Va=Wr,Wn=[],ao=[];for(let Et=0;Etua&&(ua=jc+1))}ao.push(xt)}const En=ua-Wn.length;for(let Et=0;Etmo.tabdata,Wr=>{Gs(Wr)},{immediate:!0}),(Wr,Ua)=>{const Va=FG("el-table-v2"),Wn=FG("el-auto-resizer");return OC(),YG("div",Ase,[TG(Wn,null,{default:Hoe(({height:ao,width:En})=>[TG(Va,{columns:W3(Bo),data:W3(vi),width:En,height:ao,fixed:""},null,8,["columns","data","width","height"])]),_:1})])}}},gse={class:"fileView"},pse=Joe({name:"FileView"}),vse=Object.assign(pse,{props:{selectData:{type:Object,default:()=>{}},reviewtype:{type:String,default:"temp"}},setup(mo){const Fg=LG(()=>mo.selectData||{}),ua=LG(()=>Fg.value.nameSuffix),vi=PC(null),Bo=PC(!0),Gs=[],Wr=PC([]);PC([]);const Ua=()=>{Gs.forEach(En=>{URL.revokeObjectURL(En)})},Va=()=>{mo.reviewtype=="my"?Voe({id:Fg.value.id,isOnlyOffice:!0,isTemplate:!1}).then(En=>{En.code==0&&(vi.value=En.data.url,["csv"].indexOf(ua.value)>=0&&jG.parse(vi.value,{download:!0,complete:Et=>{Wr.value=Et.data}}))}).catch(()=>{NG.error("获取文件资源失败")}).finally(()=>{Bo.value=!1}):Zoe(Fg.value.id).then(En=>{vi.value=En.data.fileLink,["csv"].indexOf(ua.value)>=0&&jG.parse(vi.value,{download:!0,complete:Et=>{Wr.value=Et.data}})}).catch(()=>{NG.error("获取文件资源失败")}).finally(()=>{Bo.value=!1})};Woe(()=>{console.log("释放 blobUrl"),Ua()});const Wn=()=>{console.log("渲染完成"),Bo.value=!1},ao=En=>{console.log("渲染失败",En),Bo.value=!1};return HG(()=>mo.selectData,En=>{En&&mo.reviewtype!=="ai"?Koe(()=>{Va()}):(vi.value=En.fileUrl,Bo.value=!1)},{immediate:!0}),(En,Et)=>{const Zo=qoe("loading");return zoe((OC(),YG("div",gse,[["docx","doc"].indexOf(ua.value)>=0?(OC(),MQ(W3(Uoe),{key:0,src:vi.value,onRendered:Wn,onError:ao,style:{width:"100%",height:"100%"}},null,8,["src"])):FQ("",!0),["xlsx","xls"].indexOf(ua.value)>=0?(OC(),MQ(W3(tse),{key:1,src:vi.value,onRendered:Wn,onError:ao,style:{width:"100%",height:"100%"}},null,8,["src"])):FQ("",!0),["pptx","ppt"].indexOf(ua.value)>=0?(OC(),MQ(W3(cse),{key:2,src:vi.value,onRendered:Wn,onError:ao,style:{width:"100%",height:"100%"}},null,8,["src"])):FQ("",!0),["csv"].indexOf(ua.value)>=0?(OC(),MQ(dse,{key:3,tabdata:Wr.value},null,8,["tabdata"])):FQ("",!0),["pdf"].indexOf(ua.value)>=0?(OC(),MQ(W3(ase),{key:4,src:vi.value,style:{width:"100%",height:"100%"}},null,8,["src"])):FQ("",!0)])),[[Zo,Bo.value]])}}}),kse=Yoe(vse,[["__scopeId","data-v-c38d561d"]]);export{kse as F,Bse as a,Ese as b,Ise as c,bse as f,Cse as g,wse as s};