mirror of
https://github.com/501351981/vue-office.git
synced 2025-06-15 07:00:00 +08:00
97 lines
1.1 MiB
97 lines
1.1 MiB
import{y as Nt,z as Pi}from"./index-5d373288.js";import{c as Ia}from"./_commonjs-dynamic-modules-302442b1.js";import{g as Z1}from"./url-de9b02cf.js";class Li{constructor(b,e=""){typeof b=="string"?(this.el=document.createElement(b),this.el.className=e):this.el=b,this.data={}}data(b,e){return e!==void 0?(this.data[b]=e,this):this.data[b]}on(b,e){const[d,...m]=b.split(".");let f=d;return f==="mousewheel"&&/Firefox/i.test(window.navigator.userAgent)&&(f="DOMMouseScroll"),this.el.addEventListener(f,c=>{e(c);for(let u=0;u<m.length;u+=1){const s=m[u];if(s==="left"&&c.button!==0||s==="right"&&c.button!==2)return;s==="stop"&&c.stopPropagation()}}),this}offset(b){if(b!==void 0)return Object.keys(b).forEach(c=>{this.css(c,`${b[c]}px`)}),this;const{offsetTop:e,offsetLeft:d,offsetHeight:m,offsetWidth:f}=this.el;return{top:e,left:d,height:m,width:f}}scroll(b){const{el:e}=this;return b!==void 0&&(b.left!==void 0&&(e.scrollLeft=b.left),b.top!==void 0&&(e.scrollTop=b.top)),{left:e.scrollLeft,top:e.scrollTop}}box(){return this.el.getBoundingClientRect()}parent(){return new Li(this.el.parentNode)}children(...b){return arguments.length===0?this.el.childNodes:(b.forEach(e=>this.child(e)),this)}removeChild(b){this.el.removeChild(b)}child(b){let e=b;return typeof b=="string"?e=document.createTextNode(b):b instanceof Li&&(e=b.el),this.el.appendChild(e),this}contains(b){return this.el.contains(b)}className(b){return b!==void 0?(this.el.className=b,this):this.el.className}addClass(b){return this.el.classList.add(b),this}hasClass(b){return this.el.classList.contains(b)}removeClass(b){return this.el.classList.remove(b),this}toggle(b="active"){return this.toggleClass(b)}toggleClass(b){return this.el.classList.toggle(b)}active(b=!0,e="active"){return b?this.addClass(e):this.removeClass(e),this}checked(b=!0){return this.active(b,"checked"),this}disabled(b=!0){return b?this.addClass("disabled"):this.removeClass("disabled"),this}attr(b,e){if(e!==void 0)this.el.setAttribute(b,e);else{if(typeof b=="string")return this.el.getAttribute(b);Object.keys(b).forEach(d=>{this.el.setAttribute(d,b[d])})}return this}removeAttr(b){return this.el.removeAttribute(b),this}html(b){return b!==void 0?(this.el.innerHTML=b,this):this.el.innerHTML}val(b){return b!==void 0?(this.el.value=b,this):this.el.value}focus(){this.el.focus()}cssRemoveKeys(...b){return b.forEach(e=>this.el.style.removeProperty(e)),this}css(b,e){return e===void 0&&typeof b!="string"?(Object.keys(b).forEach(d=>{this.el.style[d]=b[d]}),this):e!==void 0?(this.el.style[b]=e,this):this.el.style[b]}computedStyle(){return window.getComputedStyle(this.el,null)}show(){return this.css("display","block"),this}hide(){return this.css("display","none"),this}}const $e=(N,b="")=>new Li(N,b),wi=["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 rh(N){let b="",e=N;for(;e>=wi.length;)e/=wi.length,e-=1,b+=wi[parseInt(e,10)%wi.length];const d=N%wi.length;return b+=wi[d],b}function J1(N){let b=0;for(let e=0;e<N.length-1;e+=1){const d=N.charCodeAt(e)-65,m=N.length-1-e;b+=wi.length**m+wi.length*d}return b+=N.charCodeAt(N.length-1)-65,b}function xi(N){let b="",e="";for(let d=0;d<N.length;d+=1)N.charAt(d)>="0"&&N.charAt(d)<="9"?e+=N.charAt(d):b+=N.charAt(d);return[J1(b),parseInt(e,10)-1]}function ai(N,b){return`${rh(N)}${b+1}`}function $s(N,b,e,d=()=>!0){if(b===0&&e===0)return N;const[m,f]=xi(N);return d(m,f)?ai(m+b,f+e):N}class _r{constructor(b,e,d,m,f=0,c=0){this.sri=b,this.sci=e,this.eri=d,this.eci=m,this.w=f,this.h=c}set(b,e,d,m){this.sri=b,this.sci=e,this.eri=d,this.eci=m}multiple(){return this.eri-this.sri>0||this.eci-this.sci>0}includes(...b){let[e,d]=[0,0];b.length===1?[d,e]=xi(b[0]):b.length===2&&([e,d]=b);const{sri:m,sci:f,eri:c,eci:u}=this;return m<=e&&e<=c&&f<=d&&d<=u}each(b,e=()=>!0){const{sri:d,sci:m,eri:f,eci:c}=this;for(let u=d;u<=f;u+=1)if(e(u))for(let s=m;s<=c;s+=1)b(u,s)}contains(b){return this.sri<=b.sri&&this.sci<=b.sci&&this.eri>=b.eri&&this.eci>=b.eci}within(b){return this.sri>=b.sri&&this.sci>=b.sci&&this.eri<=b.eri&&this.eci<=b.eci}disjoint(b){return this.sri>b.eri||this.sci>b.eci||b.sri>this.eri||b.sci>this.eci}intersects(b){return this.sri<=b.eri&&this.sci<=b.eci&&b.sri<=this.eri&&b.sci<=this.eci}union(b){const{sri:e,sci:d,eri:m,eci:f}=this;return new _r(b.sri<e?b.sri:e,b.sci<d?b.sci:d,b.eri>m?b.eri:m,b.eci>f?b.eci:f)}difference(b){const e=[],d=(i,o,l,a)=>{e.push(new _r(i,o,l,a))},{sri:m,sci:f,eri:c,eci:u}=this,s=b.sri-m,t=b.sci-f,n=c-b.eri,r=u-b.eci;return s>0?(d(m,f,b.sri-1,u),n>0?(d(b.eri+1,f,c,u),t>0&&d(b.sri,f,b.eri,b.sci-1),r>0&&d(b.sri,b.eci+1,b.eri,u)):(t>0&&d(b.sri,f,c,b.sci-1),r>0&&d(b.sri,b.eci+1,c,u))):n>0&&(d(b.eri+1,f,c,u),t>0&&d(m,f,b.eri,b.sci-1),r>0&&d(m,b.eci+1,b.eri,u)),t>0?(d(m,f,c,b.sci-1),r>0?(d(m,b.eri+1,c,u),s>0&&d(m,b.sci,b.sri-1,b.eci),n>0&&d(b.sri+1,b.sci,c,b.eci)):(s>0&&d(m,b.sci,b.sri-1,u),n>0&&d(b.sri+1,b.sci,c,u))):r>0&&(d(c,b.eci+1,c,u),s>0&&d(m,f,b.sri-1,b.eci),n>0&&d(b.eri+1,f,c,b.eci)),e}size(){return[this.eri-this.sri+1,this.eci-this.sci+1]}toString(){const{sri:b,sci:e,eri:d,eci:m}=this;let f=ai(e,b);return this.multiple()&&(f=`${f}:${ai(m,d)}`),f}clone(){const{sri:b,sci:e,eri:d,eci:m,w:f,h:c}=this;return new _r(b,e,d,m,f,c)}equals(b){return this.eri===b.eri&&this.eci===b.eci&&this.sri===b.sri&&this.sci===b.sci}static valueOf(b){const e=b.split(":"),[d,m]=xi(e[0]);let[f,c]=[m,d];return e.length>1&&([c,f]=xi(e[1])),new _r(m,d,f,c)}}let Q1=class{constructor(){this.range=new _r(0,0,0,0),this.ri=0,this.ci=0}multiple(){return this.range.multiple()}setIndexes(b,e){this.ri=b,this.ci=e}size(){return this.range.size()}};class q1{constructor(){this.x=0,this.y=0,this.ri=0,this.ci=0}}class eg{constructor(){this.undoItems=[],this.redoItems=[]}add(b){this.undoItems.push(JSON.stringify(b)),this.redoItems=[]}canUndo(){return this.undoItems.length>0}canRedo(){return this.redoItems.length>0}undo(b,e){const{undoItems:d,redoItems:m}=this;this.canUndo()&&(m.push(JSON.stringify(b)),e(JSON.parse(d.pop())))}redo(b,e){const{undoItems:d,redoItems:m}=this;this.canRedo()&&(d.push(JSON.stringify(b)),e(JSON.parse(m.pop())))}}class tg{constructor(){this.range=null,this.state="clear"}copy(b){return this.range=b,this.state="copy",this}cut(b){return this.range=b,this.state="cut",this}isCopy(){return this.state==="copy"}isCut(){return this.state==="cut"}isClear(){return this.state==="clear"}clear(){this.range=null,this.state="clear"}}class Sc{constructor(b,e,d){this.ci=b,this.operator=e,this.value=d}set(b,e){this.operator=b,this.value=e}includes(b){const{operator:e,value:d}=this;return e==="all"?!0:e==="in"?d.includes(b):!1}vlength(){const{operator:b,value:e}=this;return b==="in"?e.length:0}getData(){const{ci:b,operator:e,value:d}=this;return{ci:b,operator:e,value:d}}}class Ec{constructor(b,e){this.ci=b,this.order=e}asc(){return this.order==="asc"}desc(){return this.order==="desc"}}class rg{constructor(){this.ref=null,this.filters=[],this.sort=null}setData({ref:b,filters:e,sort:d}){b!=null&&(this.ref=b,this.filters=e.map(m=>new Sc(m.ci,m.operator,m.value)),d&&(this.sort=new Ec(d.ci,d.order)))}getData(){if(this.active()){const{ref:b,filters:e,sort:d}=this;return{ref:b,filters:e.map(m=>m.getData()),sort:d}}return{}}addFilter(b,e,d){const m=this.getFilter(b);m==null?this.filters.push(new Sc(b,e,d)):m.set(e,d)}setSort(b,e){this.sort=e?new Ec(b,e):null}includes(b,e){return this.active()?this.hrange().includes(b,e):!1}getSort(b){const{sort:e}=this;return e&&e.ci===b?e:null}getFilter(b){const{filters:e}=this;for(let d=0;d<e.length;d+=1)if(e[d].ci===b)return e[d];return null}filteredRows(b){const e=new Set,d=new Set;if(this.active()){const{sri:m,eri:f}=this.range(),{filters:c}=this;for(let u=m+1;u<=f;u+=1)for(let s=0;s<c.length;s+=1){const t=c[s],n=b(u,t.ci),r=n?n.text:"";if(t.includes(r))d.add(u);else{e.add(u);break}}}return{rset:e,fset:d}}items(b,e){const d={};if(this.active()){const{sri:m,eri:f}=this.range();for(let c=m+1;c<=f;c+=1){const u=e(c,b);if(u!==null&&!/^\s*$/.test(u.text)){const s=u.text,t=(d[s]||0)+1;d[s]=t}else d[""]=(d[""]||0)+1}}return d}range(){return _r.valueOf(this.ref)}hrange(){const b=this.range();return b.eri=b.sri,b}clear(){this.ref=null,this.filters=[],this.sort=null}active(){return this.ref!==null}}class vf{constructor(b=[]){this._=b}forEach(b){this._.forEach(b)}deleteWithin(b){this._=this._.filter(e=>!e.within(b))}getFirstIncludes(b,e){for(let d=0;d<this._.length;d+=1){const m=this._[d];if(m.includes(b,e))return m}return null}filterIntersects(b){return new vf(this._.filter(e=>e.intersects(b)))}intersects(b){for(let e=0;e<this._.length;e+=1)if(this._[e].intersects(b))return!0;return!1}union(b){let e=b;return this._.forEach(d=>{d.intersects(e)&&(e=d.union(e))}),e}add(b){this.deleteWithin(b),this._.push(b)}shift(b,e,d,m){this._.forEach(f=>{const{sri:c,sci:u,eri:s,eci:t}=f,n=f;b==="row"?c>=e?(n.sri+=d,n.eri+=d):c<e&&e<=s&&(n.eri+=d,m(c,u,d,0)):b==="column"&&(u>=e?(n.sci+=d,n.eci+=d):u<e&&e<=t&&(n.eci+=d,m(c,u,0,d)))})}move(b,e,d){this._.forEach(m=>{const f=m;f.within(b)&&(f.eri+=e,f.sri+=e,f.sci+=d,f.eci+=d)})}setData(b){return this._=b.map(e=>_r.valueOf(e)),this}getData(){return this._.map(b=>b.toString())}}function ng(N){return JSON.parse(JSON.stringify(N))}const nh=(N={},...b)=>(b.forEach(e=>{Object.keys(e).forEach(d=>{const m=e[d];typeof m=="string"||typeof m=="number"||typeof m=="boolean"?N[d]=m:typeof m!="function"&&!Array.isArray(m)&&m instanceof Object?(N[d]=N[d]||{},nh(N[d],m)):N[d]=m})}),N);function lf(N,b){const e=Object.keys(N);if(e.length!==Object.keys(b).length)return!1;for(let d=0;d<e.length;d+=1){const m=e[d],f=N[m],c=b[m];if(c===void 0)return!1;if(typeof f=="string"||typeof f=="number"||typeof f=="boolean"){if(f!==c)return!1}else if(Array.isArray(f)){if(f.length!==c.length)return!1;for(let u=0;u<f.length;u+=1)if(!lf(f[u],c[u]))return!1}else if(typeof f!="function"&&!Array.isArray(f)&&f instanceof Object&&!lf(f,c))return!1}return!0}const ig=(N,b=e=>e)=>{let e=0,d=0;return Object.keys(N).forEach(m=>{e+=b(N[m],m),d+=1}),[e,d]};function sg(N,b){const e=N[`${b}`];return delete N[`${b}`],e}function ag(N,b,e,d,m,f){let c=e,u=d,s=N;for(;s<b&&!(c>m);s+=1)u=f(s),c+=u;return[s,c-u,u]}function og(N,b,e){let d=0;for(let m=N;m<b;m+=1)d+=e(m);return d}function fg(N,b,e){for(let d=N;d<b;d+=1)e(d)}function lg(N,b){if(N.length===b.length){for(let e=0;e<N.length;e+=1)if(N[e]!==b[e])return!1}else return!1;return!0}function Jo(N){const b=`${N}`;let e=0,d=!1;for(let m=0;m<b.length;m+=1)d===!0&&(e+=1),b.charAt(m)==="."&&(d=!0);return e}function Ni(N,b,e){if(Number.isNaN(b)||Number.isNaN(e))return b+N+e;const d=Jo(b),m=Jo(e),f=Number(b),c=Number(e);let u=0;if(N==="-")u=f-c;else if(N==="+")u=f+c;else if(N==="*")u=f*c;else if(N==="/")return u=f/c,Jo(u)>5?u.toFixed(2):u;return u.toFixed(Math.max(d,m))}const qr={cloneDeep:ng,merge:(...N)=>nh({},...N),equals:lf,arrayEquals:lg,sum:ig,rangeEach:fg,rangeSum:og,rangeReduceIf:ag,deleteProperty:sg,numberCalc:Ni};class cg{constructor({len:b,height:e}){this._={},this.len=b,this.height=e}getHeight(b){if(this.isHide(b))return 0;const e=this.get(b);return e&&e.height?e.height:this.height}setHeight(b,e){const d=this.getOrNew(b);d.height=e}unhide(b){let e=b;for(;e>0&&(e-=1,this.isHide(e));)this.setHide(e,!1)}isHide(b){const e=this.get(b);return e&&e.hide}setHide(b,e){const d=this.getOrNew(b);e===!0?d.hide=!0:delete d.hide}setStyle(b,e){const d=this.getOrNew(b);d.style=e}sumHeight(b,e,d){return qr.rangeSum(b,e,m=>d&&d.has(m)?0:this.getHeight(m))}totalHeight(){return this.sumHeight(0,this.len)}get(b){return this._[b]}getOrNew(b){return this._[b]=this._[b]||{cells:{}},this._[b]}getCell(b,e){const d=this.get(b);return d!==void 0&&d.cells!==void 0&&d.cells[e]!==void 0?d.cells[e]:null}getCellMerge(b,e){const d=this.getCell(b,e);return d&&d.merge?d.merge:[0,0]}getCellOrNew(b,e){const d=this.getOrNew(b);return d.cells[e]=d.cells[e]||{},d.cells[e]}setCell(b,e,d,m="all"){const f=this.getOrNew(b);m==="all"?f.cells[e]=d:m==="text"?(f.cells[e]=f.cells[e]||{},f.cells[e].text=d.text):m==="format"&&(f.cells[e]=f.cells[e]||{},f.cells[e].style=d.style,d.merge&&(f.cells[e].merge=d.merge))}setCellText(b,e,d){const m=this.getCellOrNew(b,e);m.editable!==!1&&(m.text=d)}copyPaste(b,e,d,m=!1,f=()=>{}){const{sri:c,sci:u,eri:s,eci:t}=b,n=e.sri,r=e.sci,i=e.eri,o=e.eci,[l,a]=b.size(),[g,v]=e.size();let h=!0,w=0;(i<c||o<u)&&(h=!1,i<c?w=g:w=v);for(let y=c;y<=s;y+=1)if(this._[y]){for(let S=u;S<=t;S+=1)if(this._[y].cells&&this._[y].cells[S])for(let E=n;E<=i;E+=l)for(let I=r;I<=o;I+=a){const F=E+(y-c),B=I+(S-u),j=qr.cloneDeep(this._[y].cells[S]);if(m&&j&&j.text&&j.text.length>0){const{text:X}=j;let G=I-r+(E-n)+2;if(h||(G-=w+1),X[0]==="=")j.text=X.replace(/[a-zA-Z]{1,3}\d+/g,V=>{let[J,H]=[0,0];return c===n?J=G-1:H=G-1,/^\d+$/.test(V)?V:$s(V,J,H)});else if(l<=1&&a>1&&(n>s||i<c)||a<=1&&l>1&&(r>t||o<u)||l<=1&&a<=1){const V=/[\\.\d]+$/.exec(X);if(V!==null){const J=Number(V[0])+G-1;j.text=X.substring(0,V.index)+J}}}this.setCell(F,B,j,d),f(F,B,j)}}}cutPaste(b,e){const d={};this.each(m=>{this.eachCells(m,f=>{let c=parseInt(m,10),u=parseInt(f,10);b.includes(m,f)&&(c=e.sri+(c-b.sri),u=e.sci+(u-b.sci)),d[c]=d[c]||{cells:{}},d[c].cells[u]=this._[m].cells[f]})}),this._=d}paste(b,e){if(b.length<=0)return;const{sri:d,sci:m}=e;b.forEach((f,c)=>{const u=d+c;f.forEach((s,t)=>{const n=m+t;this.setCellText(u,n,s)})})}insert(b,e=1){const d={};this.each((m,f)=>{let c=parseInt(m,10);c>=b&&(c+=e,this.eachCells(m,(u,s)=>{s.text&&s.text[0]==="="&&(s.text=s.text.replace(/[a-zA-Z]{1,3}\d+/g,t=>$s(t,0,e,(n,r)=>r>=b)))})),d[c]=f}),this._=d,this.len+=e}delete(b,e){const d=e-b+1,m={};this.each((f,c)=>{const u=parseInt(f,10);u<b?m[u]=c:f>e&&(m[u-d]=c,this.eachCells(f,(s,t)=>{t.text&&t.text[0]==="="&&(t.text=t.text.replace(/[a-zA-Z]{1,3}\d+/g,n=>$s(n,0,-d,(r,i)=>i>e)))}))}),this._=m,this.len-=d}insertColumn(b,e=1){this.each((d,m)=>{const f={};this.eachCells(d,(c,u)=>{let s=parseInt(c,10);s>=b&&(s+=e,u.text&&u.text[0]==="="&&(u.text=u.text.replace(/[a-zA-Z]{1,3}\d+/g,t=>$s(t,e,0,n=>n>=b)))),f[s]=u}),m.cells=f})}deleteColumn(b,e){const d=e-b+1;this.each((m,f)=>{const c={};this.eachCells(m,(u,s)=>{const t=parseInt(u,10);t<b?c[t]=s:t>e&&(c[t-d]=s,s.text&&s.text[0]==="="&&(s.text=s.text.replace(/[a-zA-Z]{1,3}\d+/g,n=>$s(n,-d,0,r=>r>e))))}),f.cells=c})}deleteCells(b,e="all"){b.each((d,m)=>{this.deleteCell(d,m,e)})}deleteCell(b,e,d="all"){const m=this.get(b);if(m!==null){const f=this.getCell(b,e);f!==null&&f.editable!==!1&&(d==="all"?delete m.cells[e]:d==="text"?(f.text&&delete f.text,f.value&&delete f.value):d==="format"?(f.style!==void 0&&delete f.style,f.merge&&delete f.merge):d==="merge"&&f.merge&&delete f.merge)}}maxCell(){const b=Object.keys(this._),e=b[b.length-1],d=this._[e];if(d){const{cells:m}=d,f=Object.keys(m),c=f[f.length-1];return[parseInt(e,10),parseInt(c,10)]}return[0,0]}each(b){Object.entries(this._).forEach(([e,d])=>{b(e,d)})}eachCells(b,e){this._[b]&&this._[b].cells&&Object.entries(this._[b].cells).forEach(([d,m])=>{e(d,m)})}setData(b){b.len&&(this.len=b.len,delete b.len),this._=b}getData(){const{len:b}=this;return Object.assign({len:b},this._)}}class hg{constructor({len:b,width:e,indexWidth:d,minWidth:m}){this._={},this.len=b,this.width=e,this.indexWidth=d,this.minWidth=m}setData(b){b.len&&(this.len=b.len,delete b.len),this._=b}getData(){const{len:b}=this;return Object.assign({len:b},this._)}getWidth(b){if(this.isHide(b))return 0;const e=this._[b];return e&&e.width?e.width:this.width}getOrNew(b){return this._[b]=this._[b]||{},this._[b]}setWidth(b,e){const d=this.getOrNew(b);d.width=e}unhide(b){let e=b;for(;e>0&&(e-=1,this.isHide(e));)this.setHide(e,!1)}isHide(b){const e=this._[b];return e&&e.hide}setHide(b,e){const d=this.getOrNew(b);e===!0?d.hide=!0:delete d.hide}setStyle(b,e){const d=this.getOrNew(b);d.style=e}sumWidth(b,e){return qr.rangeSum(b,e,d=>this.getWidth(d))}totalWidth(){return this.sumWidth(0,this.len)}}const ug={toolbar:{undo:"Undo",redo:"Redo",print:"Print",paintformat:"Paint format",clearformat:"Clear format",format:"Format",fontName:"Font",fontSize:"Font size",fontBold:"Font bold",fontItalic:"Font italic",underline:"Underline",strike:"Strike",color:"Text color",bgcolor:"Fill color",border:"Borders",merge:"Merge cells",align:"Horizontal align",valign:"Vertical align",textwrap:"Text wrapping",freeze:"Freeze cell",autofilter:"Filter",formula:"Functions",more:"More"},contextmenu:{copy:"Copy",cut:"Cut",paste:"Paste",pasteValue:"Paste values only",pasteFormat:"Paste format only",hide:"Hide",insertRow:"Insert row",insertColumn:"Insert column",deleteSheet:"Delete",deleteRow:"Delete row",deleteColumn:"Delete column",deleteCell:"Delete cell",deleteCellText:"Delete cell text",validation:"Data validations",cellprintable:"Enable export",cellnonprintable:"Disable export",celleditable:"Enable editing",cellnoneditable:"Disable editing"},print:{size:"Paper size",orientation:"Page orientation",orientations:["Landscape","Portrait"]},format:{normal:"Normal",text:"Plain Text",number:"Number",percent:"Percent",rmb:"RMB",usd:"USD",eur:"EUR",date:"Date",time:"Time",datetime:"Date time",duration:"Duration"},formula:{sum:"Sum",average:"Average",max:"Max",min:"Min",_if:"IF",and:"AND",or:"OR",concat:"Concat"},validation:{required:"it must be required",notMatch:"it not match its validation rule",between:"it is between {} and {}",notBetween:"it is not between {} and {}",notIn:"it is not in list",equal:"it equal to {}",notEqual:"it not equal to {}",lessThan:"it less than {}",lessThanEqual:"it less than or equal to {}",greaterThan:"it greater than {}",greaterThanEqual:"it greater than or equal to {}"},error:{pasteForMergedCell:"Unable to do this for merged cells"},calendar:{weeks:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]},button:{next:"Next",cancel:"Cancel",remove:"Remove",save:"Save",ok:"OK"},sort:{desc:"Sort Z -> 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"}}};let cf=["en"];const ih={en:ug};function Cc(N,b){if(b)for(const e of cf){if(!b[e])break;let d=b[e];const m=N.match(/(?:\\.|[^.])+/g);for(let f=0;f<m.length;f+=1){const c=m[f],u=d[c];if(!u)break;if(f===m.length-1)return u;d=u}}}function Cr(N){let b=Cc(N,ih);return!b&&window&&window.x_spreadsheet&&window.x_spreadsheet.$messages&&(b=Cc(N,window.x_spreadsheet.$messages)),b||""}function Wt(N){return()=>Cr(N)}function sh(N,b,e=!1){e?cf=[N]:cf.unshift(N),b&&(ih[N]=b)}const Tc={phone:/^[1-9]\d{10}$/,email:/w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/};function Pn(N,b,...e){let d="";return N||(d=Cr(`validation.${b}`,...e)),[N,d]}class ah{constructor(b,e,d,m){this.required=e,this.value=d,this.type=b,this.operator=m,this.message=""}parseValue(b){const{type:e}=this;return e==="date"?new Date(b):e==="number"?Number(b):b}equals(b){let e=this.type===b.type&&this.required===b.required&&this.operator===b.operator;return e&&(Array.isArray(this.value)?e=qr.arrayEquals(this.value,b.value):e=this.value===b.value),e}values(){return this.value.split(",")}validate(b){const{required:e,operator:d,value:m,type:f}=this;if(e&&/^\s*$/.test(b))return Pn(!1,"required");if(/^\s*$/.test(b))return[!0];if(Tc[f]&&!Tc[f].test(b))return Pn(!1,"notMatch");if(f==="list")return Pn(this.values().includes(b),"notIn");if(d){const c=this.parseValue(b);if(d==="be"){const[u,s]=m;return Pn(c>=this.parseValue(u)&&c<=this.parseValue(s),"between",u,s)}if(d==="nbe"){const[u,s]=m;return Pn(c<this.parseValue(u)||c>this.parseValue(s),"notBetween",u,s)}if(d==="eq")return Pn(c===this.parseValue(m),"equal",m);if(d==="neq")return Pn(c!==this.parseValue(m),"notEqual",m);if(d==="lt")return Pn(c<this.parseValue(m),"lessThan",m);if(d==="lte")return Pn(c<=this.parseValue(m),"lessThanEqual",m);if(d==="gt")return Pn(c>this.parseValue(m),"greaterThan",m);if(d==="gte")return Pn(c>=this.parseValue(m),"greaterThanEqual",m)}return[!0]}}class Ua{constructor(b,e,d){this.refs=e,this.mode=b,this.validator=d}includes(b,e){const{refs:d}=this;for(let m=0;m<d.length;m+=1)if(_r.valueOf(d[m]).includes(b,e))return!0;return!1}addRef(b){this.remove(_r.valueOf(b)),this.refs.push(b)}remove(b){const e=[];this.refs.forEach(d=>{const m=_r.valueOf(d);m.intersects(b)?m.difference(b).forEach(c=>e.push(c.toString())):e.push(d)}),this.refs=e}getData(){const{refs:b,mode:e,validator:d}=this,{type:m,required:f,operator:c,value:u}=d;return{refs:b,mode:e,type:m,required:f,operator:c,value:u}}static valueOf({refs:b,mode:e,type:d,required:m,operator:f,value:c}){return new Ua(e,b,new ah(d,m,c,f))}}class dg{constructor(){this._=[],this.errors=new Map}getError(b,e){return this.errors.get(`${b}_${e}`)}validate(b,e,d){const m=this.get(b,e),f=`${b}_${e}`,{errors:c}=this;if(m!==null){const[u,s]=m.validator.validate(d);u?c.delete(f):c.set(f,s)}else c.delete(f);return!0}add(b,e,{type:d,required:m,value:f,operator:c}){const u=new ah(d,m,f,c),s=this.getByValidator(u);s!==null?s.addRef(e):this._.push(new Ua(b,[e],u))}getByValidator(b){for(let e=0;e<this._.length;e+=1){const d=this._[e];if(d.validator.equals(b))return d}return null}get(b,e){for(let d=0;d<this._.length;d+=1){const m=this._[d];if(m.includes(b,e))return m}return null}remove(b){this.each(e=>{e.remove(b)})}each(b){this._.forEach(e=>b(e))}getData(){return this._.filter(b=>b.refs.length>0).map(b=>b.getData())}setData(b){this._=b.map(e=>Ua.valueOf(e))}}const pg={mode:"edit",view:{height:()=>document.documentElement.clientHeight,width:()=>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"}},mg=41,gg=41,Ac=(N,b)=>Object.prototype.hasOwnProperty.call(N,b);function kc(N,b,e=()=>{}){const{merges:d}=this,m=b.clone(),[f,c]=N.size(),[u,s]=b.size();return f>u&&(m.eri=b.sri+f-1),c>s&&(m.eci=b.sci+c-1),d.intersects(m)?(e(Cr("error.pasteForMergedCell")),!1):!0}function Mc(N,b,e,d=!1){const{rows:m,merges:f}=this;(e==="all"||e==="format")&&(m.deleteCells(b,e),f.deleteWithin(b)),m.copyPaste(N,b,e,d,(c,u,s)=>{if(s&&s.merge){const[t,n]=s.merge;if(t<=0&&n<=0)return;f.add(new _r(c,u,c+t,u+n))}})}function bg(N,b){const{clipboard:e,rows:d,merges:m}=this;d.cutPaste(N,b),m.move(N,b.sri-N.sri,b.sci-N.sci),e.clear()}function hs(N,b,e){const{styles:d,rows:m}=this,f=m.getCellOrNew(N,b);let c={};f.style!==void 0&&(c=qr.cloneDeep(d[f.style])),c=qr.merge(c,{border:e}),f.style=this.addStyle(c)}function vg({mode:N,style:b,color:e}){const{styles:d,selector:m,rows:f}=this,{sri:c,sci:u,eri:s,eci:t}=m.range,n=!this.isSignleSelected();if(!(!n&&(N==="inside"||N==="horizontal"||N==="vertical"))){if(N==="outside"&&!n)hs.call(this,c,u,{top:[b,e],bottom:[b,e],left:[b,e],right:[b,e]});else if(N==="none")m.range.each((r,i)=>{const o=f.getCell(r,i);if(o&&o.style!==void 0){const l=qr.cloneDeep(d[o.style]);delete l.border,o.style=this.addStyle(l)}});else if(N==="all"||N==="inside"||N==="outside"||N==="horizontal"||N==="vertical"){const r=[];for(let i=c;i<=s;i+=1)for(let o=u;o<=t;o+=1){const l=[];for(let S=0;S<r.length;S+=1){const[E,I,F,B]=r[S];if(i===E+F+1&&l.push(S),E<=i&&i<=E+F&&o===I){o+=B+1;break}}if(l.forEach(S=>r.splice(S,1)),o>t)break;const a=f.getCell(i,o);let[g,v]=[0,0];a&&a.merge&&([g,v]=a.merge,r.push([i,o,g,v]));const h=g>0&&i+g===s,w=v>0&&o+v===t;let y={};N==="all"?y={bottom:[b,e],top:[b,e],left:[b,e],right:[b,e]}:N==="inside"?(!w&&o<t&&(y.right=[b,e]),!h&&i<s&&(y.bottom=[b,e])):N==="horizontal"?!h&&i<s&&(y.bottom=[b,e]):N==="vertical"?!w&&o<t&&(y.right=[b,e]):N==="outside"&&n&&(c===i&&(y.top=[b,e]),(h||s===i)&&(y.bottom=[b,e]),u===o&&(y.left=[b,e]),(w||t===o)&&(y.right=[b,e])),Object.keys(y).length>0&&hs.call(this,i,o,y),o+=v}}else if(N==="top"||N==="bottom")for(let r=u;r<=t;r+=1)N==="top"&&(hs.call(this,c,r,{top:[b,e]}),r+=f.getCellMerge(c,r)[1]),N==="bottom"&&(hs.call(this,s,r,{bottom:[b,e]}),r+=f.getCellMerge(s,r)[1]);else if(N==="left"||N==="right")for(let r=c;r<=s;r+=1)N==="left"&&(hs.call(this,r,u,{left:[b,e]}),r+=f.getCellMerge(r,u)[0]),N==="right"&&(hs.call(this,r,t,{right:[b,e]}),r+=f.getCellMerge(r,t)[0])}}function yg(N,b){const{rows:e}=this,d=this.freezeTotalHeight();let m=e.height;d+e.height<N&&(m-=b);const f=this.exceptRowSet;let c=0,u=m,{height:s}=e;for(;c<e.len&&!(u>N);c+=1)f.has(c)||(s=e.getHeight(c),u+=s);return u-=s,u<=0?{ri:-1,top:0,height:s}:{ri:c-1,top:u,height:s}}function wg(N,b){const{cols:e}=this,d=this.freezeTotalWidth();let m=e.indexWidth;d+e.indexWidth<N&&(m-=b);const[f,c,u]=qr.rangeReduceIf(0,e.len,m,e.indexWidth,N,s=>e.getWidth(s));return c<=0?{ci:-1,left:0,width:e.indexWidth}:{ci:f-1,left:c,width:u}}class xg{constructor(b,e){this.settings=qr.merge(pg,e||{}),this.name=b||"sheet",this.freeze=[0,0],this.styles=[],this.merges=new vf,this.rows=new cg(this.settings.row),this.cols=new hg(this.settings.col),this.validations=new dg,this.hyperlinks={},this.comments={},this.selector=new Q1,this.scroll=new q1,this.history=new eg,this.clipboard=new tg,this.autoFilter=new rg,this.change=()=>{},this.exceptRowSet=new Set,this.sortedRowMap=new Map,this.unsortedRowMap=new Map}addValidation(b,e,d){this.changeData(()=>{this.validations.add(b,e,d)})}removeValidation(){const{range:b}=this.selector;this.changeData(()=>{this.validations.remove(b)})}getSelectedValidator(){const{ri:b,ci:e}=this.selector,d=this.validations.get(b,e);return d?d.validator:null}getSelectedValidation(){const{ri:b,ci:e,range:d}=this.selector,m=this.validations.get(b,e),f={ref:d.toString()};return m!==null&&(f.mode=m.mode,f.validator=m.validator),f}canUndo(){return this.history.canUndo()}canRedo(){return this.history.canRedo()}undo(){this.history.undo(this.getData(),b=>{this.setData(b)})}redo(){this.history.redo(this.getData(),b=>{this.setData(b)})}copy(){this.clipboard.copy(this.selector.range)}copyToSystemClipboard(){if(navigator.clipboard===void 0)return;let b="";const e=this.rows.getData();for(let d=this.selector.range.sri;d<=this.selector.range.eri;d+=1){if(Ac(e,d)){for(let m=this.selector.range.sci;m<=this.selector.range.eci;m+=1)if(m>this.selector.range.sci&&(b+=" "),Ac(e[d].cells,m)){const f=String(e[d].cells[m].text);f.indexOf(`
|
||
`)===-1&&f.indexOf(" ")===-1&&f.indexOf('"')===-1?b+=f:b+=`"${f}"`}}else for(let m=this.selector.range.sci;m<=this.selector.range.eci;m+=1)b+=" ";b+=`
|
||
`}navigator.clipboard.writeText(b).then(()=>{},d=>{console.log("text copy to the system clipboard error ",b,d)})}cut(){this.clipboard.cut(this.selector.range)}paste(b="all",e=()=>{}){const{clipboard:d,selector:m}=this;return d.isClear()||!kc.call(this,d.range,m.range,e)?!1:(this.changeData(()=>{d.isCopy()?Mc.call(this,d.range,m.range,b):d.isCut()&&bg.call(this,d.range,m.range)}),!0)}pasteFromText(b){const e=b.split(`\r
|
||
`).map(f=>f.replace(/"/g,"").split(" "));e.length>0&&(e.length-=1);const{rows:d,selector:m}=this;this.changeData(()=>{d.paste(e,m.range)})}autofill(b,e,d=()=>{}){const m=this.selector.range;return kc.call(this,m,b,d)?(this.changeData(()=>{Mc.call(this,m,b,e,!0)}),!0):!1}clearClipboard(){this.clipboard.clear()}calSelectedRangeByEnd(b,e){const{selector:d,rows:m,cols:f,merges:c}=this;let{sri:u,sci:s,eri:t,eci:n}=d.range;const r=d.ri,i=d.ci;let[o,l]=[b,e];return b<0&&(o=m.len-1),e<0&&(l=f.len-1),o>r?[u,t]=[r,o]:[u,t]=[o,r],l>i?[s,n]=[i,l]:[s,n]=[l,i],d.range=c.union(new _r(u,s,t,n)),d.range=c.union(d.range),d.range}calSelectedRangeByStart(b,e){const{selector:d,rows:m,cols:f,merges:c}=this;let u=c.getFirstIncludes(b,e);return u===null&&(u=new _r(b,e,b,e),b===-1&&(u.sri=0,u.eri=m.len-1),e===-1&&(u.sci=0,u.eci=f.len-1)),d.range=u,u}setSelectedCellAttr(b,e){this.changeData(()=>{const{selector:d,styles:m,rows:f}=this;if(b==="merge")e?this.merge():this.unmerge();else if(b==="border")vg.call(this,e);else if(b==="formula"){const{ri:c,ci:u,range:s}=d;if(d.multiple()){const[t,n]=d.size(),{sri:r,sci:i,eri:o,eci:l}=s;if(t>1)for(let a=i;a<=l;a+=1){const g=f.getCellOrNew(o+1,a);g.text=`=${e}(${ai(a,r)}:${ai(a,o)})`}else if(n>1){const a=f.getCellOrNew(c,l+1);a.text=`=${e}(${ai(i,c)}:${ai(l,c)})`}}else{const t=f.getCellOrNew(c,u);t.text=`=${e}()`}}else d.range.each((c,u)=>{const s=f.getCellOrNew(c,u);let t={};if(s.style!==void 0&&(t=qr.cloneDeep(m[s.style])),b==="format")t.format=e,s.style=this.addStyle(t);else if(b==="font-bold"||b==="font-italic"||b==="font-name"||b==="font-size"){const n={};n[b.split("-")[1]]=e,t.font=Object.assign(t.font||{},n),s.style=this.addStyle(t)}else b==="strike"||b==="textwrap"||b==="underline"||b==="align"||b==="valign"||b==="color"||b==="bgcolor"?(t[b]=e,s.style=this.addStyle(t)):s[b]=e})})}setSelectedCellText(b,e="input"){const{autoFilter:d,selector:m,rows:f}=this,{ri:c,ci:u}=m;let s=c;this.unsortedRowMap.has(c)&&(s=this.unsortedRowMap.get(c));const t=f.getCell(s,u),n=t?t.text:"";if(this.setCellText(s,u,b,e),d.active()){const r=d.getFilter(u);if(r){const i=r.value.findIndex(o=>o===n);i>=0&&r.value.splice(i,1,b)}}}getSelectedCell(){const{ri:b,ci:e}=this.selector;let d=b;return this.unsortedRowMap.has(b)&&(d=this.unsortedRowMap.get(b)),this.rows.getCell(d,e)}xyInSelectedRect(b,e){const{left:d,top:m,width:f,height:c}=this.getSelectedRect(),u=b-this.cols.indexWidth,s=e-this.rows.height;return u>d&&u<d+f&&s>m&&s<m+c}getSelectedRect(){return this.getRect(this.selector.range)}getClipboardRect(){const{clipboard:b}=this;return b.isClear()?{left:-100,top:-100}:this.getRect(b.range)}getRect(b){const{scroll:e,rows:d,cols:m,exceptRowSet:f}=this,{sri:c,sci:u,eri:s,eci:t}=b;if(c<0&&u<0)return{left:0,l:0,top:0,t:0,scroll:e};const n=m.sumWidth(0,u),r=d.sumHeight(0,c,f),i=d.sumHeight(c,s+1,f),o=m.sumWidth(u,t+1);let l=n-e.x,a=r-e.y;const g=this.freezeTotalHeight(),v=this.freezeTotalWidth();return v>0&&v>n&&(l=n),g>0&&g>r&&(a=r),{l:n,t:r,left:l,top:a,height:i,width:o,scroll:e}}getCellRectByXY(b,e){const{scroll:d,merges:m,rows:f,cols:c}=this;let{ri:u,top:s,height:t}=yg.call(this,e,d.y),{ci:n,left:r,width:i}=wg.call(this,b,d.x);if(n===-1&&(i=c.totalWidth()),u===-1&&(t=f.totalHeight()),u>=0||n>=0){const o=m.getFirstIncludes(u,n);o&&(u=o.sri,n=o.sci,{left:r,top:s,width:i,height:t}=this.cellRect(u,n))}return{ri:u,ci:n,left:r,top:s,width:i,height:t}}isSignleSelected(){const{sri:b,sci:e,eri:d,eci:m}=this.selector.range,f=this.getCell(b,e);if(f&&f.merge){const[c,u]=f.merge;if(b+c===d&&e+u===m)return!0}return!this.selector.multiple()}canUnmerge(){const{sri:b,sci:e,eri:d,eci:m}=this.selector.range,f=this.getCell(b,e);if(f&&f.merge){const[c,u]=f.merge;if(b+c===d&&e+u===m)return!0}return!1}merge(){const{selector:b,rows:e}=this;if(this.isSignleSelected())return;const[d,m]=b.size();if(d>1||m>1){const{sri:f,sci:c}=b.range;this.changeData(()=>{const u=e.getCellOrNew(f,c);u.merge=[d-1,m-1],this.merges.add(b.range),this.rows.deleteCells(b.range),this.rows.setCell(f,c,u)})}}unmerge(){const{selector:b}=this;if(!this.isSignleSelected())return;const{sri:e,sci:d}=b.range;this.changeData(()=>{this.rows.deleteCell(e,d,"merge"),this.merges.deleteWithin(b.range)})}canAutofilter(){return!this.autoFilter.active()}autofilter(){const{autoFilter:b,selector:e}=this;this.changeData(()=>{b.active()?(b.clear(),this.exceptRowSet=new Set,this.sortedRowMap=new Map,this.unsortedRowMap=new Map):b.ref=e.range.toString()})}setAutoFilter(b,e,d,m){const{autoFilter:f}=this;f.addFilter(b,d,m),f.setSort(b,e),this.resetAutoFilter()}resetAutoFilter(){const{autoFilter:b,rows:e}=this;if(!b.active())return;const{sort:d}=b,{rset:m,fset:f}=b.filteredRows((s,t)=>e.getCell(s,t)),c=Array.from(f),u=Array.from(f);d&&c.sort((s,t)=>d.order==="asc"?s-t:d.order==="desc"?t-s:0),this.exceptRowSet=m,this.sortedRowMap=new Map,this.unsortedRowMap=new Map,c.forEach((s,t)=>{this.sortedRowMap.set(u[t],s),this.unsortedRowMap.set(s,u[t])})}deleteCell(b="all"){const{selector:e}=this;this.changeData(()=>{this.rows.deleteCells(e.range,b),(b==="all"||b==="format")&&this.merges.deleteWithin(e.range)})}insert(b,e=1){this.changeData(()=>{const{sri:d,sci:m}=this.selector.range,{rows:f,merges:c,cols:u}=this;let s=d;b==="row"?f.insert(d,e):b==="column"&&(f.insertColumn(m,e),s=m,u.len+=1),c.shift(b,s,e,(t,n,r,i)=>{const o=f.getCell(t,n);o.merge[0]+=r,o.merge[1]+=i})})}delete(b){this.changeData(()=>{const{rows:e,merges:d,selector:m,cols:f}=this,{range:c}=m,{sri:u,sci:s,eri:t,eci:n}=m.range,[r,i]=m.range.size();let o=u,l=r;b==="row"?e.delete(u,t):b==="column"&&(e.deleteColumn(s,n),o=c.sci,l=i,f.len-=1),d.shift(b,o,-l,(a,g,v,h)=>{const w=e.getCell(a,g);w.merge[0]+=v,w.merge[1]+=h,w.merge[0]===0&&w.merge[1]===0&&delete w.merge})})}scrollx(b,e){const{scroll:d,freeze:m,cols:f}=this,[,c]=m,[u,s,t]=qr.rangeReduceIf(c,f.len,0,0,b,r=>f.getWidth(r));let n=s;b>0&&(n+=t),d.x!==n&&(d.ci=b>0?u:0,d.x=n,e())}scrolly(b,e){const{scroll:d,freeze:m,rows:f}=this,[c]=m,[u,s,t]=qr.rangeReduceIf(c,f.len,0,0,b,r=>f.getHeight(r));let n=s;b>0&&(n+=t),d.y!==n&&(d.ri=b>0?u:0,d.y=n,e())}cellRect(b,e){const{rows:d,cols:m}=this,f=m.sumWidth(0,e),c=d.sumHeight(0,b),u=d.getCell(b,e);let s=m.getWidth(e),t=d.getHeight(b);if(u!==null&&u.merge){const[n,r]=u.merge;if(n>0)for(let i=1;i<=n;i+=1)t+=d.getHeight(b+i);if(r>0)for(let i=1;i<=r;i+=1)s+=m.getWidth(e+i)}return{left:f,top:c,width:s,height:t,cell:u}}getCell(b,e){return this.rows.getCell(b,e)}getCellTextOrDefault(b,e){const d=this.getCell(b,e);return d&&d.text?d.text:""}getCellStyle(b,e){const d=this.getCell(b,e);return d&&d.style!==void 0?this.styles[d.style]:null}getCellStyleOrDefault(b,e){const{styles:d,rows:m}=this,f=m.getCell(b,e),c=f&&f.style!==void 0?d[f.style]:{};return qr.merge(this.defaultStyle(),c)}getSelectedCellStyle(){const{ri:b,ci:e}=this.selector;return this.getCellStyleOrDefault(b,e)}setCellText(b,e,d,m){const{rows:f,history:c,validations:u}=this;m==="finished"?(f.setCellText(b,e,""),c.add(this.getData()),f.setCellText(b,e,d)):(f.setCellText(b,e,d),this.change(this.getData())),u.validate(b,e,d)}freezeIsActive(){const[b,e]=this.freeze;return b>0||e>0}setFreeze(b,e){this.changeData(()=>{this.freeze=[b,e]})}freezeTotalWidth(){return this.cols.sumWidth(0,this.freeze[1])}freezeTotalHeight(){return this.rows.sumHeight(0,this.freeze[0])}setRowHeight(b,e){this.changeData(()=>{this.rows.setHeight(b,e)})}setColWidth(b,e){this.changeData(()=>{this.cols.setWidth(b,e)})}viewHeight(){const{view:b,showToolbar:e,showBottomBar:d}=this.settings;let m=b.height();return d&&(m-=gg),e&&(m-=mg),m}viewWidth(){return this.settings.view.width()}freezeViewRange(){const[b,e]=this.freeze;return new _r(0,0,b-1,e-1,this.freezeTotalWidth(),this.freezeTotalHeight())}contentRange(){const{rows:b,cols:e}=this,[d,m]=b.maxCell(),f=b.sumHeight(0,d+1),c=e.sumWidth(0,m+1);return new _r(0,0,d,m,c,f)}exceptRowTotalHeight(b,e){const{exceptRowSet:d,rows:m}=this,f=Array.from(d);let c=0;return f.forEach(u=>{if(u<b||u>e){const s=m.getHeight(u);c+=s}}),c}viewRange(){const{scroll:b,rows:e,cols:d,freeze:m,exceptRowSet:f}=this;let{ri:c,ci:u}=b;c<=0&&([c]=m),u<=0&&([,u]=m);let[s,t]=[0,0],[n,r]=[e.len,d.len];for(let i=c;i<e.len&&(f.has(i)||(t+=e.getHeight(i),n=i),!(t>this.viewHeight()));i+=1);for(let i=u;i<d.len&&(s+=d.getWidth(i),r=i,!(s>this.viewWidth()));i+=1);return new _r(c,u,n,r,s,t)}eachMergesInView(b,e){this.merges.filterIntersects(b).forEach(d=>e(d))}hideRowsOrCols(){const{rows:b,cols:e,selector:d}=this,[m,f]=d.size(),{sri:c,sci:u,eri:s,eci:t}=d.range;if(m===b.len)for(let n=u;n<=t;n+=1)e.setHide(n,!0);else if(f===e.len)for(let n=c;n<=s;n+=1)b.setHide(n,!0)}unhideRowsOrCols(b,e){this[`${b}s`].unhide(e)}rowEach(b,e,d){let m=0;const{rows:f}=this,c=this.exceptRowSet,u=[...c];let s=0;for(let t=0;t<u.length;t+=1)u[t]<b&&(s+=1);for(let t=b+s;t<=e+s;t+=1)if(c.has(t))s+=1;else{const n=f.getHeight(t);if(n>0&&(d(t,m,n),m+=n,m>this.viewHeight()))break}}colEach(b,e,d){let m=0;const{cols:f}=this;for(let c=b;c<=e;c+=1){const u=f.getWidth(c);if(u>0&&(d(c,m,u),m+=u,m>this.viewWidth()))break}}defaultStyle(){return this.settings.style}addStyle(b){const{styles:e}=this;for(let d=0;d<e.length;d+=1){const m=e[d];if(qr.equals(m,b))return d}return e.push(b),e.length-1}changeData(b){this.history.add(this.getData()),b(),this.change(this.getData())}setData(b){return Object.keys(b).forEach(e=>{if(e==="merges"||e==="rows"||e==="cols"||e==="validations")this[e].setData(b[e]);else if(e==="freeze"){const[d,m]=xi(b[e]);this.freeze=[m,d]}else e==="autofilter"?this.autoFilter.setData(b[e]):b[e]!==void 0&&(this[e]=b[e])}),this}getData(){const{name:b,freeze:e,styles:d,merges:m,rows:f,cols:c,validations:u,autoFilter:s}=this;return{name:b,freeze:ai(e[1],e[0]),styles:d,merges:m.getData(),rows:f.getData(),cols:c.getData(),validations:u.getData(),autofilter:s.getData()}}}function tn(N,b,e){N.addEventListener(b,e)}function Xa(N,b,e){N.removeEventListener(b,e)}function gs(N){N.xclickoutside&&(Xa(window.document.body,"click",N.xclickoutside),delete N.xclickoutside)}function Ws(N,b){N.xclickoutside=e=>{e.detail===2||N.contains(e.target)||(b?b(N):(N.hide(),gs(N)))},tn(window.document.body,"click",N.xclickoutside)}function oh(N,b,e){tn(N,"mousemove",b);const d=N;d.xEvtUp=m=>{Xa(N,"mousemove",b),Xa(N,"mouseup",N.xEvtUp),e(m)},tn(N,"mouseup",N.xEvtUp)}function Rc(N,b,e,d){let m="";Math.abs(N)>Math.abs(b)?(m=N>0?"right":"left",d(m,N,e)):(m=b>0?"down":"up",d(m,b,e))}function _g(N,{move:b,end:e}){let d=0,m=0;tn(N,"touchstart",f=>{const{pageX:c,pageY:u}=f.touches[0];d=c,m=u}),tn(N,"touchmove",f=>{if(!b)return;const{pageX:c,pageY:u}=f.changedTouches[0],s=c-d,t=u-m;(Math.abs(s)>10||Math.abs(t)>10)&&(Rc(s,t,f,b),d=c,m=u),f.preventDefault()}),tn(N,"touchend",f=>{if(!e)return;const{pageX:c,pageY:u}=f.changedTouches[0],s=c-d,t=u-m;Rc(s,t,f,e)})}function Sg(){const N=new Map;function b(c,u){const s=()=>{const n=N.get(c);return Array.isArray(n)&&n.push(u)||!1},t=()=>N.set(c,[].concat(u));return N.has(c)&&s()||t()}function e(c,u){const s=()=>{const t=N.get(c);for(const n of t)n.call(null,...u)};return N.has(c)&&s()}function d(c,u){const s=()=>{const t=N.get(c),n=t.indexOf(u);return n>=0&&t.splice(n,1)&&N.get(c).length===0&&N.delete(c)};return N.has(c)&&s()}function m(c,u){const s=(...t)=>{u.call(null,...t),d(c,s)};return b(c,s)}function f(){N.clear()}return{get current(){return N},on:b,once:m,fire:e,removeListener:d,removeAllListeners:f}}const Ze="x-spreadsheet";class Ic{constructor(b=!1,e){this.moving=!1,this.vertical=b,this.el=$e("div",`${Ze}-resizer ${b?"vertical":"horizontal"}`).children(this.unhideHoverEl=$e("div",`${Ze}-resizer-hover`).on("dblclick.stop",d=>this.mousedblclickHandler(d)).css("position","absolute").hide(),this.hoverEl=$e("div",`${Ze}-resizer-hover`).on("mousedown.stop",d=>this.mousedownHandler(d)),this.lineEl=$e("div",`${Ze}-resizer-line`).hide()).hide(),this.cRect=null,this.finishedFn=null,this.minDistance=e,this.unhideFn=()=>{}}showUnhide(b){this.unhideIndex=b,this.unhideHoverEl.show()}hideUnhide(){this.unhideHoverEl.hide()}show(b,e){const{moving:d,vertical:m,hoverEl:f,lineEl:c,el:u,unhideHoverEl:s}=this;if(d)return;this.cRect=b;const{left:t,top:n,width:r,height:i}=b;u.offset({left:m?t+r-5:t,top:m?n:n+i-5}).show(),f.offset({width:m?5:r,height:m?i:5}),c.offset({width:m?0:e.width,height:m?e.height:0}),s.offset({left:m?5-r:t,top:m?n:5-i,width:m?5:r,height:m?i:5})}hide(){this.el.offset({left:0,top:0}).hide(),this.hideUnhide()}mousedblclickHandler(){this.unhideIndex&&this.unhideFn(this.unhideIndex)}mousedownHandler(b){let e=b;const{el:d,lineEl:m,cRect:f,vertical:c,minDistance:u}=this;let s=c?f.width:f.height;m.show(),oh(window,t=>{this.moving=!0,e!==null&&t.buttons===1&&(c?(s+=t.movementX,s>u&&d.css("left",`${f.left+s}px`)):(s+=t.movementY,s>u&&d.css("top",`${f.top+s}px`)),e=t)},()=>{e=null,m.hide(),this.moving=!1,this.hide(),this.finishedFn&&(s<u&&(s=u),this.finishedFn(f,s))})}}class Oc{constructor(b){this.vertical=b,this.moveFn=null,this.el=$e("div",`${Ze}-scrollbar ${b?"vertical":"horizontal"}`).child(this.contentEl=$e("div","")).on("mousemove.stop",()=>{}).on("scroll.stop",e=>{const{scrollTop:d,scrollLeft:m}=e.target;this.moveFn&&this.moveFn(this.vertical?d:m,e)})}move(b){return this.el.scroll(b),this}scroll(){return this.el.scroll()}set(b,e){const d=b-1;if(e>d){const m=this.vertical?"height":"width";this.el.css(m,`${d-15}px`).show(),this.contentEl.css(this.vertical?"width":"height","1px").css(m,`${e}px`)}else this.el.hide();return this}}const Oa=2*2-1;let hf=10;class Fa{constructor(b=!1){this.useHideInput=b,this.inputChange=()=>{},this.cornerEl=$e("div",`${Ze}-selector-corner`),this.areaEl=$e("div",`${Ze}-selector-area`).child(this.cornerEl).hide(),this.clipboardEl=$e("div",`${Ze}-selector-clipboard`).hide(),this.autofillEl=$e("div",`${Ze}-selector-autofill`).hide(),this.el=$e("div",`${Ze}-selector`).css("z-index",`${hf}`).children(this.areaEl,this.clipboardEl,this.autofillEl).hide(),b&&(this.hideInput=$e("input","").on("compositionend",e=>{this.inputChange(e.target.value)}),this.el.child(this.hideInputDiv=$e("div","hide-input").child(this.hideInput)),this.el.child(this.hideInputDiv=$e("div","hide-input").child(this.hideInput))),hf+=1}setOffset(b){return this.el.offset(b).show(),this}hide(){return this.el.hide(),this}setAreaOffset(b){const{left:e,top:d,width:m,height:f}=b,c={width:m-Oa+.8,height:f-Oa+.8,left:e-.8,top:d-.8};this.areaEl.offset(c).show(),this.useHideInput&&(this.hideInputDiv.offset(c),this.hideInput.val("").focus())}setClipboardOffset(b){const{left:e,top:d,width:m,height:f}=b;this.clipboardEl.offset({left:e,top:d,width:m-5,height:f-5})}showAutofill(b){const{left:e,top:d,width:m,height:f}=b;this.autofillEl.offset({width:m-Oa,height:f-Oa,left:e,top:d}).show()}hideAutofill(){this.autofillEl.hide()}showClipboard(){this.clipboardEl.show()}hideClipboard(){this.clipboardEl.hide()}}function yf(N){const{data:b}=this,{left:e,top:d,width:m,height:f,scroll:c,l:u,t:s}=N,t=b.freezeTotalWidth(),n=b.freezeTotalHeight();let r=e-t;t>u&&(r-=c.x);let i=d-n;return n>s&&(i-=c.y),{left:r,top:i,width:m,height:f}}function wf(N){const{data:b}=this,{left:e,width:d,height:m,l:f,t:c,scroll:u}=N,s=b.freezeTotalWidth();let t=e-s;return s>f&&(t-=u.x),{left:t,top:c,width:d,height:m}}function xf(N){const{data:b}=this,{top:e,width:d,height:m,l:f,t:c,scroll:u}=N,s=b.freezeTotalHeight();let t=e-s;return s>c&&(t-=u.y),{left:f,top:t,width:d,height:m}}function uf(N){const{br:b}=this;b.setAreaOffset(yf.call(this,N))}function Eg(N){const{tl:b}=this;b.setAreaOffset(N)}function fh(N){const{t:b}=this;b.setAreaOffset(wf.call(this,N))}function lh(N){const{l:b}=this;b.setAreaOffset(xf.call(this,N))}function ch(N){const{l:b}=this;b.setClipboardOffset(xf.call(this,N))}function df(N){const{br:b}=this;b.setClipboardOffset(yf.call(this,N))}function Cg(N){const{tl:b}=this;b.setClipboardOffset(N)}function hh(N){const{t:b}=this;b.setClipboardOffset(wf.call(this,N))}function Fc(N){uf.call(this,N),Eg.call(this,N),fh.call(this,N),lh.call(this,N)}function Pc(N){df.call(this,N),Cg.call(this,N),hh.call(this,N),ch.call(this,N)}class Tg{constructor(b){this.inputChange=()=>{},this.data=b,this.br=new Fa(!0),this.t=new Fa,this.l=new Fa,this.tl=new Fa,this.br.inputChange=e=>{this.inputChange(e)},this.br.el.show(),this.offset=null,this.areaOffset=null,this.indexes=null,this.range=null,this.arange=null,this.el=$e("div",`${Ze}-selectors`).children(this.tl.el,this.t.el,this.l.el,this.br.el).hide(),this.lastri=-1,this.lastci=-1,hf+=1}resetData(b){this.data=b,this.range=b.selector.range,this.resetAreaOffset()}hide(){this.el.hide()}resetOffset(){const{data:b,tl:e,t:d,l:m,br:f}=this,c=b.freezeTotalHeight(),u=b.freezeTotalWidth();c>0||u>0?(e.setOffset({width:u,height:c}),d.setOffset({left:u,height:c}),m.setOffset({top:c,width:u}),f.setOffset({left:u,top:c})):(e.hide(),d.hide(),m.hide(),f.setOffset({left:0,top:0}))}resetAreaOffset(){const b=this.data.getSelectedRect(),e=this.data.getClipboardRect();Fc.call(this,b),Pc.call(this,e),this.resetOffset()}resetBRTAreaOffset(){const b=this.data.getSelectedRect(),e=this.data.getClipboardRect();uf.call(this,b),fh.call(this,b),df.call(this,e),hh.call(this,e),this.resetOffset()}resetBRLAreaOffset(){const b=this.data.getSelectedRect(),e=this.data.getClipboardRect();uf.call(this,b),lh.call(this,b),df.call(this,e),ch.call(this,e),this.resetOffset()}set(b,e,d=!0){const{data:m}=this,f=m.calSelectedRangeByStart(b,e),{sri:c,sci:u}=f;if(d){let[s,t]=[b,e];b<0&&(s=0),e<0&&(t=0),m.selector.setIndexes(s,t),this.indexes=[s,t]}this.moveIndexes=[c,u],this.range=f,this.resetAreaOffset(),this.el.show()}setEnd(b,e,d=!0){const{data:m,lastri:f,lastci:c}=this;if(d){if(b===f&&e===c)return;this.lastri=b,this.lastci=e}this.range=m.calSelectedRangeByEnd(b,e),Fc.call(this,this.data.getSelectedRect())}reset(){const{eri:b,eci:e}=this.data.selector.range;this.setEnd(b,e)}showAutofill(b,e){if(b===-1&&e===-1)return;const{sri:d,sci:m,eri:f,eci:c}=this.range,[u,s]=[b,e],t=d-b,n=m-e,r=f-b,i=c-e;if(n>0)this.arange=new _r(d,s,f,m-1);else if(t>0)this.arange=new _r(u,m,d-1,c);else if(i<0)this.arange=new _r(d,c+1,f,s);else if(r<0)this.arange=new _r(f+1,m,u,c);else{this.arange=null;return}if(this.arange!==null){const o=this.data.getRect(this.arange);o.width+=2,o.height+=2;const{br:l,l:a,t:g,tl:v}=this;l.showAutofill(yf.call(this,o)),a.showAutofill(xf.call(this,o)),g.showAutofill(wf.call(this,o)),v.showAutofill(o)}}hideAutofill(){["br","l","t","tl"].forEach(b=>{this[b].hideAutofill()})}showClipboard(){const b=this.data.getClipboardRect();Pc.call(this,b),["br","l","t","tl"].forEach(e=>{this[e].showClipboard()})}hideClipboard(){["br","l","t","tl"].forEach(b=>{this[b].hideClipboard()})}}function Ag(N){N.preventDefault(),N.stopPropagation();const{filterItems:b}=this;b.length<=0||(this.itemIndex>=0&&b[this.itemIndex].toggle(),this.itemIndex-=1,this.itemIndex<0&&(this.itemIndex=b.length-1),b[this.itemIndex].toggle())}function kg(N){N.stopPropagation();const{filterItems:b}=this;b.length<=0||(this.itemIndex>=0&&b[this.itemIndex].toggle(),this.itemIndex+=1,this.itemIndex>b.length-1&&(this.itemIndex=0),b[this.itemIndex].toggle())}function Nc(N){N.preventDefault();const{filterItems:b}=this;b.length<=0||(N.stopPropagation(),this.itemIndex<0&&(this.itemIndex=0),b[this.itemIndex].el.click(),this.hide())}function Mg(N){const{keyCode:b}=N;switch(N.ctrlKey&&N.stopPropagation(),b){case 37:N.stopPropagation();break;case 38:Ag.call(this,N);break;case 39:N.stopPropagation();break;case 40:kg.call(this,N);break;case 13:Nc.call(this,N);break;case 9:Nc.call(this,N);break;default:N.stopPropagation();break}}class uh{constructor(b,e,d="200px"){this.filterItems=[],this.items=b,this.el=$e("div",`${Ze}-suggest`).css("width",d).hide(),this.itemClick=e,this.itemIndex=-1}setOffset(b){this.el.cssRemoveKeys("top","bottom").offset(b)}hide(){const{el:b}=this;this.filterItems=[],this.itemIndex=-1,b.hide(),gs(this.el.parent())}setItems(b){this.items=b}search(b){let{items:e}=this;if(/^\s*$/.test(b)||(e=e.filter(m=>(m.key||m).startsWith(b.toUpperCase()))),e=e.map(m=>{let{title:f}=m;f?typeof f=="function"&&(f=f()):f=m;const c=$e("div",`${Ze}-item`).child(f).on("click.stop",()=>{this.itemClick(m),this.hide()});return m.label&&c.child($e("div","label").html(m.label)),c}),this.filterItems=e,e.length<=0)return;const{el:d}=this;d.html("").children(...e).show(),Ws(d.parent(),()=>{this.hide()})}bindInputEvents(b){b.on("keydown",e=>Mg.call(this,e))}}class jr extends Li{constructor(b){super("div",`${Ze}-icon`),this.iconNameEl=$e("div",`${Ze}-icon-img ${b}`),this.child(this.iconNameEl)}setName(b){this.iconNameEl.className(`${Ze}-icon-img ${b}`)}}function Dc(N,b){N.setMonth(N.getMonth()+b)}function Rg(N,b){const e=new Date(N);return e.setDate(b-N.getDay()+1),e}function Ig(N,b,e){const d=new Date(N,b,1,23,59,59),m=[[],[],[],[],[],[]];for(let f=0;f<6;f+=1)for(let c=0;c<7;c+=1){const u=f*7+c,s=Rg(d,u),t=s.getMonth()!==b,n=s.getMonth()===e.getMonth()&&s.getDate()===e.getDate();m[f][c]={d:s,disabled:t,active:n}}return m}class Og{constructor(b){this.value=b,this.cvalue=new Date(b),this.headerLeftEl=$e("div","calendar-header-left"),this.bodyEl=$e("tbody",""),this.buildAll(),this.el=$e("div","x-spreadsheet-calendar").children($e("div","calendar-header").children(this.headerLeftEl,$e("div","calendar-header-right").children($e("a","calendar-prev").on("click.stop",()=>this.prev()).child(new jr("chevron-left")),$e("a","calendar-next").on("click.stop",()=>this.next()).child(new jr("chevron-right")))),$e("table","calendar-body").children($e("thead","").child($e("tr","").children(...Cr("calendar.weeks").map(e=>$e("th","cell").child(e)))),this.bodyEl)),this.selectChange=()=>{}}setValue(b){this.value=b,this.cvalue=new Date(b),this.buildAll()}prev(){const{value:b}=this;Dc(b,-1),this.buildAll()}next(){const{value:b}=this;Dc(b,1),this.buildAll()}buildAll(){this.buildHeaderLeft(),this.buildBody()}buildHeaderLeft(){const{value:b}=this;this.headerLeftEl.html(`${Cr("calendar.months")[b.getMonth()]} ${b.getFullYear()}`)}buildBody(){const{value:b,cvalue:e,bodyEl:d}=this,f=Ig(b.getFullYear(),b.getMonth(),e).map(c=>{const u=c.map(s=>{let t="cell";return s.disabled&&(t+=" disabled"),s.active&&(t+=" active"),$e("td","").child($e("div",t).on("click.stop",()=>{this.selectChange(s.d)}).child(s.d.getDate().toString()))});return $e("tr","").children(...u)});d.html("").children(...f)}}class Fg{constructor(){this.calendar=new Og(new Date),this.el=$e("div",`${Ze}-datepicker`).child(this.calendar.el).hide()}setValue(b){const{calendar:e}=this;return typeof b=="string"?/^\d{4}-\d{1,2}-\d{1,2}$/.test(b)&&e.setValue(new Date(b.replace(new RegExp("-","g"),"/"))):b instanceof Date&&e.setValue(b),this}change(b){this.calendar.selectChange=e=>{b(e),this.hide()}}show(){this.el.show()}hide(){this.el.hide()}}function Wa(){const{inputText:N}=this;if(!/^\s*$/.test(N)){const{textlineEl:b,textEl:e,areaOffset:d}=this,m=N.split(`
|
||
`),f=Math.max(...m.map(r=>r.length)),u=b.offset().width/N.length,s=(f+1)*u+5,t=this.viewFn().width-d.left-u;let n=m.length;if(s>d.width){let r=s;s>t&&(r=t,n+=parseInt(s/t,10),n+=s%t>0?1:0),e.css("width",`${r}px`)}n*=this.rowHeight,n>d.height&&e.css("height",`${n}px`)}}function Pg({target:N},b){const{value:e,selectionEnd:d}=N,m=`${e.slice(0,d)}${b}${e.slice(d)}`;N.value=m,N.setSelectionRange(d+1,d+1),this.inputText=m,this.textlineEl.html(m),Wa.call(this)}function Ng(N){const{keyCode:b,altKey:e}=N;b!==13&&b!==9&&N.stopPropagation(),b===13&&e&&(Pg.call(this,N,`
|
||
`),N.stopPropagation()),b===13&&!e&&N.preventDefault()}function Dg(N){const b=N.target.value,{suggest:e,textlineEl:d,validator:m}=this,{cell:f}=this;if(f!==null)if("editable"in f&&f.editable===!0||f.editable===void 0){if(this.inputText=b,m)m.type==="list"?e.search(b):e.hide();else{const c=b.lastIndexOf("=");c!==-1?e.search(b.substring(c+1)):e.hide()}d.html(b),Wa.call(this),this.change("input",b)}else N.target.value=f.text;else{if(this.inputText=b,m)m.type==="list"?e.search(b):e.hide();else{const c=b.lastIndexOf("=");c!==-1?e.search(b.substring(c+1)):e.hide()}d.html(b),Wa.call(this),this.change("input",b)}}function Bg(N){const{el:b}=this.textEl;setTimeout(()=>{b.focus(),b.setSelectionRange(N,N)},0)}function dh(N,b){const{textEl:e,textlineEl:d}=this;e.el.blur(),e.val(N),d.html(N),Bg.call(this,b)}function Lg(N){const{inputText:b,validator:e}=this;let d=0;if(e&&e.type==="list")this.inputText=N,d=this.inputText.length;else{const m=b.lastIndexOf("="),f=b.substring(0,m+1);let c=b.substring(m+1);c.indexOf(")")!==-1?c=c.substring(c.indexOf(")")):c="",this.inputText=`${f+N.key}(`,d=this.inputText.length,this.inputText+=`)${c}`}dh.call(this,this.inputText,d)}function jg(){this.suggest.setItems(this.formulas)}function $g(N){let b=N.getMonth()+1,e=N.getDate();return b<10&&(b=`0${b}`),e<10&&(e=`0${e}`),`${N.getFullYear()}-${b}-${e}`}class Hg{constructor(b,e,d){this.viewFn=e,this.rowHeight=d,this.formulas=b,this.suggest=new uh(b,m=>{Lg.call(this,m)}),this.datepicker=new Fg,this.datepicker.change(m=>{this.setText($g(m)),this.clear()}),this.areaEl=$e("div",`${Ze}-editor-area`).children(this.textEl=$e("textarea","").on("input",m=>Dg.call(this,m)).on("paste.stop",()=>{}).on("keydown",m=>Ng.call(this,m)),this.textlineEl=$e("div","textline"),this.suggest.el,this.datepicker.el).on("mousemove.stop",()=>{}).on("mousedown.stop",()=>{}),this.el=$e("div",`${Ze}-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=()=>{}}setFreezeLengths(b,e){this.freeze.w=b,this.freeze.h=e}clear(){this.inputText!==""&&this.change("finished",this.inputText),this.cell=null,this.areaOffset=null,this.inputText="",this.el.hide(),this.textEl.val(""),this.textlineEl.html(""),jg.call(this),this.datepicker.hide()}setOffset(b,e="top"){const{textEl:d,areaEl:m,suggest:f,freeze:c,el:u}=this;if(b){this.areaOffset=b;const{left:s,top:t,width:n,height:r,l:i,t:o}=b,l={left:0,top:0};c.w>i&&c.h>o||(c.w<i&&c.h<o?(l.left=c.w,l.top=c.h):c.w>i?l.top=c.h:c.h>o&&(l.left=c.w)),u.offset(l),m.offset({left:s-l.left-.8,top:t-l.top-.8}),d.offset({width:n-9+.8,height:r-3+.8});const a={left:0};a[e]=r,f.setOffset(a),f.hide()}}setCell(b,e){const{el:d,datepicker:m,suggest:f}=this;d.show(),this.cell=b;const c=b&&b.text||"";if(this.setText(c),this.validator=e,e){const{type:u}=e;u==="date"&&(m.show(),/^\s*$/.test(c)||m.setValue(c)),u==="list"&&(f.setItems(e.values()),f.search(""))}}setText(b){this.inputText=b,dh.call(this,b,b.length),Wa.call(this)}}class Di extends Li{constructor(b,e=""){super("div",`${Ze}-button ${e}`),this.child(Cr(`button.${b}`))}}function Va(){return window.devicePixelRatio||1}function _f(){return Va()-.5}function Ft(N){return parseInt(N*Va(),10)}function us(N){const b=Ft(N);return b>0?b-.5:.5}class zg{constructor(b,e,d,m,f=0){this.x=b,this.y=e,this.width=d,this.height=m,this.padding=f,this.bgcolor="#ffffff",this.borderTop=null,this.borderRight=null,this.borderBottom=null,this.borderLeft=null}setBorders({top:b,bottom:e,left:d,right:m}){b&&(this.borderTop=b),m&&(this.borderRight=m),e&&(this.borderBottom=e),d&&(this.borderLeft=d)}innerWidth(){return this.width-this.padding*2-2}innerHeight(){return this.height-this.padding*2-2}textx(b){const{width:e,padding:d}=this;let{x:m}=this;return b==="left"?m+=d:b==="center"?m+=e/2:b==="right"&&(m+=e-d),m}texty(b,e){const{height:d,padding:m}=this;let{y:f}=this;return b==="top"?f+=m:b==="middle"?f+=d/2-e/2:b==="bottom"&&(f+=d-m-e),f}topxys(){const{x:b,y:e,width:d}=this;return[[b,e],[b+d,e]]}rightxys(){const{x:b,y:e,width:d,height:m}=this;return[[b+d,e],[b+d,e+m]]}bottomxys(){const{x:b,y:e,width:d,height:m}=this;return[[b,e+m],[b+d,e+m]]}leftxys(){const{x:b,y:e,height:d}=this;return[[b,e],[b,e+d]]}}function Bc(N,b,e,d,m,f,c){const u={x:0,y:0};N==="underline"?m==="bottom"?u.y=0:m==="top"?u.y=-(f+2):u.y=-f/2:N==="strike"&&(m==="bottom"?u.y=f/2:m==="top"&&(u.y=-(f/2+2))),d==="center"?u.x=c/2:d==="right"&&(u.x=c),this.line([b-u.x,e-u.y],[b-u.x+c,e-u.y])}class ph{constructor(b,e,d){this.el=b,this.ctx=b.getContext("2d"),this.resize(e,d),this.ctx.scale(Va(),Va())}resize(b,e){this.el.style.width=`${b}px`,this.el.style.height=`${e}px`,this.el.width=Ft(b),this.el.height=Ft(e)}clear(){const{width:b,height:e}=this.el;return this.ctx.clearRect(0,0,b,e),this}attr(b){return Object.assign(this.ctx,b),this}save(){return this.ctx.save(),this.ctx.beginPath(),this}restore(){return this.ctx.restore(),this}beginPath(){return this.ctx.beginPath(),this}translate(b,e){return this.ctx.translate(Ft(b),Ft(e)),this}scale(b,e){return this.ctx.scale(b,e),this}clearRect(b,e,d,m){return this.ctx.clearRect(b,e,d,m),this}fillRect(b,e,d,m){return this.ctx.fillRect(Ft(b)-.5,Ft(e)-.5,Ft(d),Ft(m)),this}fillText(b,e,d){return this.ctx.fillText(b,Ft(e),Ft(d)),this}text(b,e,d={},m=!0){const{ctx:f}=this,{align:c,valign:u,font:s,color:t,strike:n,underline:r}=d,i=e.textx(c);f.save(),f.beginPath(),this.attr({textAlign:c,textBaseline:u,font:`${s.italic?"italic":""} ${s.bold?"bold":""} ${Ft(s.size)}px ${s.name}`,fillStyle:t,strokeStyle:t});const o=`${b}`.split(`
|
||
`),l=e.innerWidth(),a=[];o.forEach(h=>{const w=f.measureText(h).width;if(m&&w>Ft(l)){let y={w:0,len:0,start:0};for(let S=0;S<h.length;S+=1)y.w>=Ft(l)&&(a.push(h.substr(y.start,y.len)),y={w:0,len:0,start:S}),y.len+=1,y.w+=f.measureText(h[S]).width+1;y.len>0&&a.push(h.substr(y.start,y.len))}else a.push(h)});const g=(a.length-1)*(s.size+2);let v=e.texty(u,g);return a.forEach(h=>{const w=f.measureText(h).width;this.fillText(h,i,v),n&&Bc.call(this,"strike",i,v,c,u,s.size,w),r&&Bc.call(this,"underline",i,v,c,u,s.size,w),v+=s.size+2}),f.restore(),this}border(b,e){const{ctx:d}=this;return d.lineWidth=_f,d.strokeStyle=e,b==="medium"?d.lineWidth=Ft(2)-.5:b==="thick"?d.lineWidth=Ft(3):b==="dashed"?d.setLineDash([Ft(3),Ft(2)]):b==="dotted"?d.setLineDash([Ft(1),Ft(1)]):b==="double"&&d.setLineDash([Ft(2),0]),this}line(...b){const{ctx:e}=this;if(b.length>1){e.beginPath();const[d,m]=b[0];e.moveTo(us(d),us(m));for(let f=1;f<b.length;f+=1){const[c,u]=b[f];e.lineTo(us(c),us(u))}e.stroke()}return this}strokeBorders(b){const{ctx:e}=this;e.save();const{borderTop:d,borderRight:m,borderBottom:f,borderLeft:c}=b;d&&(this.border(...d),this.line(...b.topxys())),m&&(this.border(...m),this.line(...b.rightxys())),f&&(this.border(...f),this.line(...b.bottomxys())),c&&(this.border(...c),this.line(...b.leftxys())),e.restore()}dropdown(b){const{ctx:e}=this,{x:d,y:m,width:f,height:c}=b,u=d+f-15,s=m+c-15;e.save(),e.beginPath(),e.moveTo(Ft(u),Ft(s)),e.lineTo(Ft(u+8),Ft(s)),e.lineTo(Ft(u+4),Ft(s+6)),e.closePath(),e.fillStyle="rgba(0, 0, 0, .45)",e.fill(),e.restore()}error(b){const{ctx:e}=this,{x:d,y:m,width:f}=b,c=d+f-1;e.save(),e.beginPath(),e.moveTo(Ft(c-8),Ft(m-1)),e.lineTo(Ft(c),Ft(m-1)),e.lineTo(Ft(c),Ft(m+8)),e.closePath(),e.fillStyle="rgba(255, 0, 0, .65)",e.fill(),e.restore()}frozen(b){const{ctx:e}=this,{x:d,y:m,width:f}=b,c=d+f-1;e.save(),e.beginPath(),e.moveTo(Ft(c-8),Ft(m-1)),e.lineTo(Ft(c),Ft(m-1)),e.lineTo(Ft(c),Ft(m+8)),e.closePath(),e.fillStyle="rgba(0, 255, 0, .85)",e.fill(),e.restore()}rect(b,e){const{ctx:d}=this,{x:m,y:f,width:c,height:u,bgcolor:s}=b;d.save(),d.beginPath(),d.fillStyle=s||"#fff",d.rect(us(m+1),us(f+1),Ft(c-2),Ft(u-2)),d.clip(),d.fill(),e(),d.restore()}}const Lc=[{key:"Arial",title:"Arial"},{key:"Helvetica",title:"Helvetica"},{key:"Source Sans Pro",title:"Source Sans Pro"},{key:"Comic Sans MS",title:"Comic Sans MS"},{key:"Courier New",title:"Courier New"},{key:"Verdana",title:"Verdana"},{key:"Lato",title:"Lato"}],pf=[{pt:7.5,px:10},{pt:8,px:11},{pt:9,px:12},{pt:10,px:13},{pt:10.5,px:14},{pt:11,px:15},{pt:12,px:16},{pt:14,px:18.7},{pt:15,px:20},{pt:16,px:21.3},{pt:18,px:24},{pt:22,px:29.3},{pt:24,px:32},{pt:26,px:34.7},{pt:36,px:48},{pt:42,px:56}];function Ug(N){for(let b=0;b<pf.length;b+=1){const e=pf[b];if(e.pt===N)return e.px}return N}const Xg=N=>{const b=[],e=[];let d=[],m=0,f="",c=1,u="";for(let s=0;s<N.length;s+=1){const t=N.charAt(s);if(t!==" "){if(t>="a"&&t<="z")d.push(t.toUpperCase());else if(t>="0"&&t<="9"||t>="A"&&t<="Z"||t===".")d.push(t);else if(t==='"'){for(s+=1;N.charAt(s)!=='"';)d.push(N.charAt(s)),s+=1;e.push(`"${d.join("")}`),d=[]}else if(t==="-"&&/[+\-*/,(]/.test(u))d.push(t);else{if(t!=="("&&d.length>0&&e.push(d.join("")),t===")"){let n=b.pop();if(m===2)try{const[r,i]=xi(e.pop()),[o,l]=xi(e.pop());let a=0;for(let g=o;g<=r;g+=1)for(let v=l;v<=i;v+=1)e.push(ai(g,v)),a+=1;e.push([n,a])}catch{}else if(m===1||m===3)m===3&&e.push(f),e.push([n,c]),c=1;else for(;n!=="("&&(e.push(n),!(b.length<=0));)n=b.pop();m=0}else if(t==="="||t===">"||t==="<"){const n=N.charAt(s+1);f=t,(n==="="||n==="-")&&(f+=n,s+=1),m=3}else if(t===":")m=2;else if(t===",")m===3&&e.push(f),m=1,c+=1;else if(t==="("&&d.length>0)b.push(d.join(""));else{if(b.length>0&&(t==="+"||t==="-")){let n=b[b.length-1];if(n!=="("&&e.push(b.pop()),n==="*"||n==="/")for(;b.length>0&&(n=b[b.length-1],n!=="(");)e.push(b.pop())}else if(b.length>0){const n=b[b.length-1];(n==="*"||n==="/")&&e.push(b.pop())}b.push(t)}d=[]}u=t}}for(d.length>0&&e.push(d.join(""));b.length>0;)e.push(b.pop());return e},Wg=(N,b)=>{const[e]=N;let d=N;if(e==='"')return N.substring(1);let m=1;if(e==="-"&&(d=N.substring(1),m=-1),d[0]>="0"&&d[0]<="9")return m*Number(d);const[f,c]=xi(d);return m*b(f,c)},Vg=(N,b,e,d)=>{const m=[];for(let f=0;f<N.length;f+=1){const c=N[f],u=c[0];if(c==="+"){const s=m.pop();m.push(Ni("+",m.pop(),s))}else if(c==="-")if(m.length===1){const s=m.pop();m.push(Ni("*",s,-1))}else{const s=m.pop();m.push(Ni("-",m.pop(),s))}else if(c==="*")m.push(Ni("*",m.pop(),m.pop()));else if(c==="/"){const s=m.pop();m.push(Ni("/",m.pop(),s))}else if(u==="="||u===">"||u==="<"){let s=m.pop();Number.isNaN(s)||(s=Number(s));let t=m.pop();Number.isNaN(t)||(t=Number(t));let n=!1;u==="="?n=t===s:c===">"?n=t>s:c===">="?n=t>=s:c==="<"?n=t<s:c==="<="&&(n=t<=s),m.push(n)}else if(Array.isArray(c)){const[s,t]=c,n=[];for(let r=0;r<t;r+=1)n.push(m.pop());m.push(b[s].render(n.reverse()))}else{if(d.includes(c))return 0;(u>="a"&&u<="z"||u>="A"&&u<="Z")&&d.push(c),m.push(Wg(c,e)),d.pop()}}return m[0]},mh=(N,b,e,d=[])=>{if(N[0]==="="){const m=Xg(N.substring(1));return m.length<=0?N:Vg(m,b,(f,c)=>mh(e(f,c),b,e,d),d)}return N},Kg={render:mh},Sf=[{key:"SUM",title:Wt("formula.sum"),render:N=>N.reduce((b,e)=>Ni("+",b,e),0)},{key:"AVERAGE",title:Wt("formula.average"),render:N=>N.reduce((b,e)=>Number(b)+Number(e),0)/N.length},{key:"MAX",title:Wt("formula.max"),render:N=>Math.max(...N.map(b=>Number(b)))},{key:"MIN",title:Wt("formula.min"),render:N=>Math.min(...N.map(b=>Number(b)))},{key:"IF",title:Wt("formula._if"),render:([N,b,e])=>N?b:e},{key:"AND",title:Wt("formula.and"),render:N=>N.every(b=>b)},{key:"OR",title:Wt("formula.or"),render:N=>N.some(b=>b)},{key:"CONCAT",title:Wt("formula.concat"),render:N=>N.join("")}],Gg=Sf,gh={};Sf.forEach(N=>{gh[N.key]=N});const ds=N=>N,Pa=N=>{if(/^(-?\d*.?\d*)$/.test(N)){const b=Number(N).toFixed(2).toString(),[e,...d]=b.split("\\.");return[e.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),...d]}return N},Hs=[{key:"normal",title:Wt("format.normal"),type:"string",render:ds},{key:"text",title:Wt("format.text"),type:"string",render:ds},{key:"number",title:Wt("format.number"),type:"number",label:"1,000.12",render:Pa},{key:"percent",title:Wt("format.percent"),type:"number",label:"10.12%",render:N=>`${N}%`},{key:"rmb",title:Wt("format.rmb"),type:"number",label:"¥10.00",render:N=>`¥${Pa(N)}`},{key:"usd",title:Wt("format.usd"),type:"number",label:"$10.00",render:N=>`$${Pa(N)}`},{key:"eur",title:Wt("format.eur"),type:"number",label:"€10.00",render:N=>`€${Pa(N)}`},{key:"date",title:Wt("format.date"),type:"date",label:"26/09/2008",render:ds},{key:"time",title:Wt("format.time"),type:"date",label:"15:59:00",render:ds},{key:"datetime",title:Wt("format.datetime"),type:"date",label:"26/09/2008 15:59:00",render:ds},{key:"duration",title:Wt("format.duration"),type:"date",label:"24:01:00",render:ds}],bh={};Hs.forEach(N=>{bh[N.key]=N});const Yg=5,Zg={fillStyle:"#f4f5f8"},Jg={fillStyle:"#fff",lineWidth:_f,strokeStyle:"#e6e6e6"};function Qg(){return{textAlign:"center",textBaseline:"middle",font:`500 ${Ft(12)}px Source Sans Pro`,fillStyle:"#585757",lineWidth:_f(),strokeStyle:"#e6e6e6"}}function vh(N,b,e,d=0){const{left:m,top:f,width:c,height:u}=N.cellRect(b,e);return new zg(m,f+d,c,u,Yg)}function Ka(N,b,e,d,m=0){const{sortedRowMap:f,rows:c,cols:u}=b;if(c.isHide(e)||u.isHide(d))return;let s=e;f.has(e)&&(s=f.get(e));const t=b.getCell(s,d);if(t===null)return;let n=!1;"editable"in t&&t.editable===!1&&(n=!0);const r=b.getCellStyleOrDefault(s,d),i=vh(b,e,d,m);i.bgcolor=r.bgcolor,r.border!==void 0&&(i.setBorders(r.border),N.strokeBorders(i)),N.rect(i,()=>{let o="";b.settings.evalPaused?o=t.text||"":o=Kg.render(t.text||"",gh,(g,v)=>b.getCellTextOrDefault(v,g)),r.format&&(o=bh[r.format].render(o));const l=Object.assign({},r.font);l.size=Ug(l.size),N.text(o,i,{align:r.align,valign:r.valign,font:l,color:r.color,strike:r.strike,underline:r.underline},r.textwrap),b.validations.getError(e,d)&&N.error(i),n&&N.frozen(i)})}function qg(N){const{data:b,draw:e}=this;if(N){const{autoFilter:d}=b;if(!d.active())return;const m=d.hrange();N.intersects(m)&&m.each((f,c)=>{const u=vh(b,f,c);e.dropdown(u)})}}function Na(N,b,e,d,m){const{draw:f,data:c}=this;f.save(),f.translate(b,e).translate(d,m);const{exceptRowSet:u}=c,s=r=>{const i=u.has(r);if(i){const o=c.rows.getHeight(r);f.translate(0,-o)}return!i},t=c.exceptRowTotalHeight(N.sri,N.eri);f.save(),f.translate(0,-t),N.each((r,i)=>{Ka(f,c,r,i)},r=>s(r)),f.restore();const n=new Set;f.save(),f.translate(0,-t),c.eachMergesInView(N,({sri:r,sci:i,eri:o})=>{if(!u.has(r))Ka(f,c,r,i);else if(!n.has(r)){n.add(r);const l=c.rows.sumHeight(r,o+1);f.translate(0,-l)}}),f.restore(),qg.call(this,N),f.restore()}function jc(N,b,e,d){const{draw:m}=this;m.save(),m.attr({fillStyle:"rgba(75, 137, 255, 0.08)"}).fillRect(N,b,e,d),m.restore()}function Da(N,b,e,d,m,f){const{draw:c,data:u}=this,s=b.h,t=b.w,n=f+d,r=m+e;c.save(),c.attr(Zg),(N==="all"||N==="left")&&c.fillRect(0,n,e,s),(N==="all"||N==="top")&&c.fillRect(r,0,t,d);const{sri:i,sci:o,eri:l,eci:a}=u.selector.range;c.attr(Qg()),(N==="all"||N==="left")&&(u.rowEach(b.sri,b.eri,(g,v,h)=>{const w=n+v,y=g;c.line([0,w],[e,w]),i<=y&&y<l+1&&jc.call(this,0,w,e,h),c.fillText(y+1,e/2,w+h/2),g>0&&u.rows.isHide(g-1)&&(c.save(),c.attr({strokeStyle:"#c6c6c6"}),c.line([5,w+5],[e-5,w+5]),c.restore())}),c.line([0,s+n],[e,s+n]),c.line([e,n],[e,s+n])),(N==="all"||N==="top")&&(u.colEach(b.sci,b.eci,(g,v,h)=>{const w=r+v,y=g;c.line([w,0],[w,d]),o<=y&&y<a+1&&jc.call(this,w,0,h,d),c.fillText(rh(y),w+h/2,d/2),g>0&&u.cols.isHide(g-1)&&(c.save(),c.attr({strokeStyle:"#c6c6c6"}),c.line([w+5,5],[w+5,d-5]),c.restore())}),c.line([t+r,0],[t+r,d]),c.line([0,d],[t+r,d])),c.restore()}function eb(N,b){const{draw:e}=this;e.save(),e.attr({fillStyle:"#f4f5f8"}).fillRect(0,0,N,b),e.restore()}function Ba({sri:N,sci:b,eri:e,eci:d,w:m,h:f},c,u,s,t){const{draw:n,data:r}=this,{settings:i}=r;if(n.save(),n.attr(Jg).translate(c+s,u+t),!i.showGrid){n.restore();return}r.rowEach(N,e,(o,l,a)=>{o!==N&&n.line([0,l],[m,l]),o===e&&n.line([0,l+a],[m,l+a])}),r.colEach(b,d,(o,l,a)=>{o!==b&&n.line([l,0],[l,f]),o===d&&n.line([l+a,0],[l+a,f])}),n.restore()}function tb(N,b,e,d){const{draw:m,data:f}=this,c=f.viewWidth()-N,u=f.viewHeight()-b;m.save().translate(N,b).attr({strokeStyle:"rgba(75, 137, 255, .6)"}),m.line([0,d],[c,d]),m.line([e,0],[e,u]),m.restore()}class rb{constructor(b,e){this.el=b,this.draw=new ph(b,e.viewWidth(),e.viewHeight()),this.data=e}resetData(b){this.data=b,this.render()}render(){const{data:b}=this,{rows:e,cols:d}=b,m=d.indexWidth,f=e.height;this.draw.resize(b.viewWidth(),b.viewHeight()),this.clear();const c=b.viewRange(),u=b.freezeTotalWidth(),s=b.freezeTotalHeight(),{x:t,y:n}=b.scroll;Ba.call(this,c,m,f,u,s),Na.call(this,c,m,f,-t,-n),Da.call(this,"all",c,m,f,u,s),eb.call(this,m,f);const[r,i]=b.freeze;if(r>0||i>0){if(r>0){const l=c.clone();l.sri=0,l.eri=r-1,l.h=s,Ba.call(this,l,m,f,u,0),Na.call(this,l,m,f,-t,0),Da.call(this,"top",l,m,f,u,0)}if(i>0){const l=c.clone();l.sci=0,l.eci=i-1,l.w=u,Ba.call(this,l,m,f,0,s),Da.call(this,"left",l,m,f,0,s),Na.call(this,l,m,f,0,-n)}const o=b.freezeViewRange();Ba.call(this,o,m,f,0,0),Da.call(this,"all",o,m,f,0,0),Na.call(this,o,m,f,0,0),tb.call(this,m,f,u,s)}}clear(){this.draw.clear()}}const La=[["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]],mf=["landscape","portrait"];function Ga(N){return parseInt(96*N,10)}function $c(N){N==="cancel"?this.el.hide():this.toPrint()}function nb(N){const{paper:b}=this,{value:e}=N.target,d=La[e];b.w=Ga(d[1]),b.h=Ga(d[2]),this.preview()}function ib(N){const{paper:b}=this,{value:e}=N.target,d=mf[e];b.orientation=d,this.preview()}let sb=class{constructor(b){this.paper={w:Ga(La[0][1]),h:Ga(La[0][2]),padding:50,orientation:mf[0],get width(){return this.orientation==="landscape"?this.h:this.w},get height(){return this.orientation==="landscape"?this.w:this.h}},this.data=b,this.el=$e("div",`${Ze}-print`).children($e("div",`${Ze}-print-bar`).children($e("div","-title").child("Print settings"),$e("div","-right").children($e("div",`${Ze}-buttons`).children(new Di("cancel").on("click",$c.bind(this,"cancel")),new Di("next","primary").on("click",$c.bind(this,"next"))))),$e("div",`${Ze}-print-content`).children(this.contentEl=$e("div","-content"),$e("div","-sider").child($e("form","").children($e("fieldset","").children($e("label","").child(`${Cr("print.size")}`),$e("select","").children(...La.map((e,d)=>$e("option","").attr("value",d).child(`${e[0]} ( ${e[1]}''x${e[2]}'' )`))).on("change",nb.bind(this))),$e("fieldset","").children($e("label","").child(`${Cr("print.orientation")}`),$e("select","").children(...mf.map((e,d)=>$e("option","").attr("value",d).child(`${Cr("print.orientations")[d]}`))).on("change",ib.bind(this))))))).hide()}resetData(b){this.data=b}preview(){const{data:b,paper:e}=this,{width:d,height:m,padding:f}=e,c=d-f*2,u=m-f*2,s=b.contentRange(),t=parseInt(s.h/u,10)+1,n=c/s.w;let r=f;const i=f;n>1&&(r+=(c-s.w)/2);let o=0,l=0;this.contentEl.html(""),this.canvases=[];const a={sri:0,sci:0,eri:0,eci:0};for(let g=0;g<t;g+=1){let v=0,h=0;const w=$e("div",`${Ze}-canvas-card`),y=$e("canvas",`${Ze}-canvas`);this.canvases.push(y.el);const S=new ph(y.el,d,m);for(S.save(),S.translate(r,i),n<1&&S.scale(n,n);o<=s.eri;o+=1){const I=b.rows.getHeight(o);if(v+=I,v<u)for(let F=0;F<=s.eci;F+=1)Ka(S,b,o,F,l),a.eci=F;else{h=-(v-I);break}}a.eri=o,S.restore(),S.save(),S.translate(r,i),n<1&&S.scale(n,n);const E=l;b.eachMergesInView(a,({sri:I,sci:F})=>{Ka(S,b,I,F,E)}),S.restore(),a.sri=a.eri,a.sci=a.eci,l+=h,this.contentEl.child($e("div",`${Ze}-canvas-card-wraper`).child(w.child(y)))}this.el.show()}toPrint(){this.el.hide();const{paper:b}=this,e=$e("iframe","").hide(),{el:d}=e;window.document.body.appendChild(d);const{contentWindow:m}=d,f=m.document,c=document.createElement("style");c.innerHTML=`
|
||
@page { size: ${b.width}px ${b.height}px; };
|
||
canvas {
|
||
page-break-before: auto;
|
||
page-break-after: always;
|
||
image-rendering: pixelated;
|
||
};
|
||
`,f.head.appendChild(c),this.canvases.forEach(u=>{const s=u.cloneNode(!1);s.getContext("2d").drawImage(u,0,0),f.body.appendChild(s)}),m.print()}};const ab=[{key:"copy",title:Wt("contextmenu.copy"),label:"Ctrl+C"},{key:"cut",title:Wt("contextmenu.cut"),label:"Ctrl+X"},{key:"paste",title:Wt("contextmenu.paste"),label:"Ctrl+V"},{key:"paste-value",title:Wt("contextmenu.pasteValue"),label:"Ctrl+Shift+V"},{key:"paste-format",title:Wt("contextmenu.pasteFormat"),label:"Ctrl+Alt+V"},{key:"divider"},{key:"insert-row",title:Wt("contextmenu.insertRow")},{key:"insert-column",title:Wt("contextmenu.insertColumn")},{key:"divider"},{key:"delete-row",title:Wt("contextmenu.deleteRow")},{key:"delete-column",title:Wt("contextmenu.deleteColumn")},{key:"delete-cell-text",title:Wt("contextmenu.deleteCellText")},{key:"hide",title:Wt("contextmenu.hide")},{key:"divider"},{key:"validation",title:Wt("contextmenu.validation")},{key:"divider"},{key:"cell-printable",title:Wt("contextmenu.cellprintable")},{key:"cell-non-printable",title:Wt("contextmenu.cellnonprintable")},{key:"divider"},{key:"cell-editable",title:Wt("contextmenu.celleditable")},{key:"cell-non-editable",title:Wt("contextmenu.cellnoneditable")}];function ob(N){return N.key==="divider"?$e("div",`${Ze}-item divider`):$e("div",`${Ze}-item`).on("click",()=>{this.itemClick(N.key),this.hide()}).children(N.title(),$e("div","label").child(N.label||""))}function fb(){return ab.map(N=>ob.call(this,N))}let lb=class{constructor(b,e=!1){this.menuItems=fb.call(this),this.el=$e("div",`${Ze}-contextmenu`).children(...this.menuItems).hide(),this.viewFn=b,this.itemClick=()=>{},this.isHide=e,this.setMode("range")}setMode(b){const e=this.menuItems[12];b==="row-col"?e.show():e.hide()}hide(){const{el:b}=this;b.hide(),gs(b)}setPosition(b,e){if(this.isHide)return;const{el:d}=this,{width:m}=d.show().offset(),f=this.viewFn(),c=f.height/2;let u=b;f.width-b<=m&&(u-=m),d.css("left",`${u}px`),e>c?d.css("bottom",`${f.height-e}px`).css("max-height",`${e}px`).css("top","auto"):d.css("top",`${e}px`).css("max-height",`${f.height-e}px`).css("bottom","auto"),Ws(d)}};function cb(N,b){if(b.classList.contains("active"))return;const{left:e,top:d,width:m,height:f}=b.getBoundingClientRect(),c=$e("div",`${Ze}-tooltip`).html(N).show();document.body.appendChild(c.el);const u=c.box();c.css("left",`${e+m/2-u.width/2}px`).css("top",`${d+f+2}px`),tn(b,"mouseleave",()=>{document.body.contains(c.el)&&document.body.removeChild(c.el)}),tn(b,"click",()=>{document.body.contains(c.el)&&document.body.removeChild(c.el)})}class Ef{constructor(b,e,d){this.tip=Cr(`toolbar.${b.replace(/-[a-z]/g,m=>m[1].toUpperCase())}`),e&&(this.tip+=` (${e})`),this.tag=b,this.shortcut=e,this.value=d,this.el=this.element(),this.change=()=>{}}element(){const{tip:b}=this;return $e("div",`${Ze}-toolbar-btn`).on("mouseenter",e=>{cb(b,e.target)}).attr("data-tooltip",b)}setState(){}}class Xn extends Ef{dropdown(){}getValue(b){return b}element(){const{tag:b}=this;return this.dd=this.dropdown(),this.dd.change=e=>this.change(b,this.getValue(e)),super.element().child(this.dd)}setState(b){b&&(this.value=b,this.dd.setTitle(b))}}class Wn extends Li{constructor(b,e,d,m,...f){super("div",`${Ze}-dropdown ${m}`),this.title=b,this.change=()=>{},this.headerClick=()=>{},typeof b=="string"?this.title=$e("div",`${Ze}-dropdown-title`).child(b):d&&this.title.addClass("arrow-left"),this.contentEl=$e("div",`${Ze}-dropdown-content`).css("width",e).hide(),this.setContentChildren(...f),this.headerEl=$e("div",`${Ze}-dropdown-header`),this.headerEl.on("click",()=>{this.contentEl.css("display")!=="block"?this.show():this.hide()}).children(this.title,d?$e("div",`${Ze}-icon arrow-right`).child($e("div",`${Ze}-icon-img arrow-down`)):""),this.children(this.headerEl,this.contentEl)}setContentChildren(...b){this.contentEl.html(""),b.length>0&&this.contentEl.children(...b)}setTitle(b){this.title.html(b),this.hide()}show(){const{contentEl:b}=this;b.show(),this.parent().active(),Ws(this.parent(),()=>{this.hide()})}hide(){this.parent().active(!1),this.contentEl.hide(),gs(this.parent())}}function hb(N){return $e("div",`${Ze}-item`).child(new jr(N))}class yh extends Wn{constructor(b,e){const d=new jr(`align-${e}`),m=b.map(f=>hb(`align-${f}`).on("click",()=>{this.setTitle(f),this.change(f)}));super(d,"auto",!0,"bottom-left",...m)}setTitle(b){this.title.setName(`align-${b}`),this.hide()}}class ub extends Xn{constructor(b){super("align","",b)}dropdown(){const{value:b}=this;return new yh(["left","center","right"],b)}}class db extends Xn{constructor(b){super("valign","",b)}dropdown(){const{value:b}=this;return new yh(["top","middle","bottom"],b)}}class oi extends Ef{element(){const{tag:b}=this;return super.element().child(new jr(b)).on("click",()=>this.click())}click(){this.change(this.tag,this.toggle())}setState(b){this.el.active(b)}toggle(){return this.el.toggle()}active(){return this.el.hasClass("active")}}class pb extends oi{constructor(){super("autofilter")}setState(){}}class mb extends oi{constructor(){super("font-bold","Ctrl+B")}}class gb extends oi{constructor(){super("font-italic","Ctrl+I")}}class bb extends oi{constructor(){super("strike","Ctrl+U")}}class vb extends oi{constructor(){super("underline","Ctrl+U")}}const yb=["#ffffff","#000100","#e7e5e6","#445569","#5b9cd6","#ed7d31","#a5a5a5","#ffc001","#4371c6","#71ae47"],wb=[["#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"]],xb=["#c00000","#fe0000","#fdc101","#ffff01","#93d051","#00b04e","#01b0f1","#0170c1","#012060","#7030a0"];function Qo(N){return $e("td","").child($e("div",`${Ze}-color-palette-cell`).on("click.stop",()=>this.change(N)).css("background-color",N))}class _b{constructor(){this.el=$e("div",`${Ze}-color-palette`),this.change=()=>{};const b=$e("table","").children($e("tbody","").children($e("tr",`${Ze}-theme-color-placeholders`).children(...yb.map(e=>Qo.call(this,e))),...wb.map(e=>$e("tr",`${Ze}-theme-colors`).children(...e.map(d=>Qo.call(this,d)))),$e("tr",`${Ze}-standard-colors`).children(...xb.map(e=>Qo.call(this,e)))));this.el.child(b)}}class Cf extends Wn{constructor(b,e){const d=new jr(b).css("height","16px").css("border-bottom",`3px solid ${e}`),m=new _b;m.change=f=>{this.setTitle(f),this.change(f)},super(d,"auto",!1,"bottom-left",m.el)}setTitle(b){this.title.css("border-color",b),this.hide()}}const Sb=[["thin",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" style="user-select: none;"></line></svg>'],["medium",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="2" style="user-select: none;"><line x1="0" y1="1.0" x2="50" y2="1.0" stroke-width="2" stroke="black" style="user-select: none;"></line></svg>'],["thick",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="3" style="user-select: none;"><line x1="0" y1="1.5" x2="50" y2="1.5" stroke-width="3" stroke="black" style="user-select: none;"></line></svg>'],["dashed",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" stroke-dasharray="2" style="user-select: none;"></line></svg>'],["dotted",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" stroke-dasharray="1" style="user-select: none;"></line></svg>']];class Eb extends Wn{constructor(b){const e=new jr("line-type");let d=0;const m=Sb.map((f,c)=>$e("div",`${Ze}-item state ${b===f[0]?"checked":""}`).on("click",()=>{m[d].toggle("checked"),m[c].toggle("checked"),d=c,this.hide(),this.change(f)}).child($e("div",`${Ze}-line-type`).html(f[1])));super(e,"auto",!1,"bottom-left",...m)}}function Hc(...N){return $e("table","").child($e("tbody","").children(...N))}function zc(N){return $e("td","").child($e("div",`${Ze}-border-palette-cell`).child(new jr(`border-${N}`)).on("click",()=>{this.mode=N;const{mode:b,style:e,color:d}=this;this.change({mode:b,style:e,color:d})}))}class Cb{constructor(){this.color="#000",this.style="thin",this.mode="all",this.change=()=>{},this.ddColor=new Cf("line-color",this.color),this.ddColor.change=e=>{this.color=e},this.ddType=new Eb(this.style),this.ddType.change=([e])=>{this.style=e},this.el=$e("div",`${Ze}-border-palette`);const b=Hc($e("tr","").children($e("td",`${Ze}-border-palette-left`).child(Hc($e("tr","").children(...["all","inside","horizontal","vertical","outside"].map(e=>zc.call(this,e))),$e("tr","").children(...["left","top","right","bottom","none"].map(e=>zc.call(this,e))))),$e("td",`${Ze}-border-palette-right`).children($e("div",`${Ze}-toolbar-btn`).child(this.ddColor.el),$e("div",`${Ze}-toolbar-btn`).child(this.ddType.el))));this.el.child(b)}}class Tb extends Wn{constructor(){const b=new jr("border-all"),e=new Cb;e.change=d=>{this.change(d),this.hide()},super(b,"auto",!1,"bottom-left",e.el)}}class Ab extends Xn{constructor(){super("border")}dropdown(){return new Tb}}class Ja extends Ef{element(){return super.element().child(new jr(this.tag)).on("click",()=>this.change(this.tag))}setState(b){this.el.disabled(b)}}class kb extends Ja{constructor(){super("clearformat")}}class Mb extends oi{constructor(){super("paintformat")}setState(){}}class Rb extends Xn{constructor(b){super("color",void 0,b)}dropdown(){const{tag:b,value:e}=this;return new Cf(b,e)}}class Ib extends Xn{constructor(b){super("bgcolor",void 0,b)}dropdown(){const{tag:b,value:e}=this;return new Cf(b,e)}}class Ob extends Wn{constructor(){const b=pf.map(e=>$e("div",`${Ze}-item`).on("click",()=>{this.setTitle(`${e.pt}`),this.change(e)}).child(`${e.pt}`));super("10","60px",!0,"bottom-left",...b)}}let Fb=class extends Xn{constructor(){super("font-size")}getValue(b){return b.pt}dropdown(){return new Ob}};class Pb extends Wn{constructor(){const b=Lc.map(e=>$e("div",`${Ze}-item`).on("click",()=>{this.setTitle(e.title),this.change(e)}).child(e.title));super(Lc[0].title,"160px",!0,"bottom-left",...b)}}class Nb extends Xn{constructor(){super("font-name")}getValue(b){return b.key}dropdown(){return new Pb}}class Db extends Wn{constructor(){let b=Hs.slice(0);b.splice(2,0,{key:"divider"}),b.splice(8,0,{key:"divider"}),b=b.map(e=>{const d=$e("div",`${Ze}-item`);return e.key==="divider"?d.addClass("divider"):(d.child(e.title()).on("click",()=>{this.setTitle(e.title()),this.change(e)}),e.label&&d.child($e("div","label").html(e.label))),d}),super("Normal","220px",!0,"bottom-left",...b)}setTitle(b){for(let e=0;e<Hs.length;e+=1)Hs[e].key===b&&this.title.html(Hs[e].title());this.hide()}}let Bb=class extends Xn{constructor(){super("format")}getValue(b){return b.key}dropdown(){return new Db}};class Lb extends Wn{constructor(){const b=Sf.map(e=>$e("div",`${Ze}-item`).on("click",()=>{this.hide(),this.change(e)}).child(e.key));super(new jr("formula"),"180px",!0,"bottom-left",...b)}}class jb extends Xn{constructor(){super("formula")}getValue(b){return b.key}dropdown(){return new Lb}}class $b extends oi{constructor(){super("freeze")}}class Hb extends oi{constructor(){super("merge")}setState(b,e){this.el.active(b).disabled(e)}}class zb extends Ja{constructor(){super("redo","Ctrl+Y")}}class Ub extends Ja{constructor(){super("undo","Ctrl+Z")}}class Xb extends Ja{constructor(){super("print","Ctrl+P")}}class Wb extends oi{constructor(){super("textwrap")}}let Vb=class extends Wn{constructor(){const b=new jr("ellipsis"),e=$e("div",`${Ze}-toolbar-more`);super(b,"auto",!1,"bottom-right",e),this.moreBtns=e,this.contentEl.css("max-width","420px")}};class Kb extends Xn{constructor(){super("more"),this.el.hide()}dropdown(){return new Vb}show(){this.el.show()}hide(){this.el.hide()}}function ps(){return $e("div",`${Ze}-toolbar-divider`)}function Gb(){this.btns2=[],this.items.forEach(N=>{if(Array.isArray(N))N.forEach(({el:b})=>{const e=b.box(),{marginLeft:d,marginRight:m}=b.computedStyle();this.btns2.push([b,e.width+parseInt(d,10)+parseInt(m,10)])});else{const b=N.box(),{marginLeft:e,marginRight:d}=N.computedStyle();this.btns2.push([N,b.width+parseInt(e,10)+parseInt(d,10)])}})}function Uc(){const{el:N,btns:b,moreEl:e,btns2:d}=this,{moreBtns:m,contentEl:f}=e.dd;N.css("width",`${this.widthFn()-60}px`);const c=N.box();let u=160,s=12;const t=[],n=[];d.forEach(([r,i],o)=>{u+=i,o===d.length-1||u<c.width?t.push(r):(s+=i,n.push(r))}),b.html("").children(...t),m.html("").children(...n),f.css("width",`${s}px`),n.length>0?e.show():e.hide()}class Yb{constructor(b,e,d=!1){this.data=b,this.change=()=>{},this.widthFn=e,this.isHide=d;const m=b.defaultStyle();this.items=[[this.undoEl=new Ub,this.redoEl=new zb,new Xb,this.paintformatEl=new Mb,this.clearformatEl=new kb],ps(),[this.formatEl=new Bb],ps(),[this.fontEl=new Nb,this.fontSizeEl=new Fb],ps(),[this.boldEl=new mb,this.italicEl=new gb,this.underlineEl=new vb,this.strikeEl=new bb,this.textColorEl=new Rb(m.color)],ps(),[this.fillColorEl=new Ib(m.bgcolor),this.borderEl=new Ab,this.mergeEl=new Hb],ps(),[this.alignEl=new ub(m.align),this.valignEl=new db(m.valign),this.textwrapEl=new Wb],ps(),[this.freezeEl=new $b,this.autofilterEl=new pb,this.formulaEl=new jb,this.moreEl=new Kb]],this.el=$e("div",`${Ze}-toolbar`),this.btns=$e("div",`${Ze}-toolbar-btns`),this.items.forEach(f=>{Array.isArray(f)?f.forEach(c=>{this.btns.child(c.el),c.change=(...u)=>{this.change(...u)}}):this.btns.child(f.el)}),this.el.child(this.btns),d?this.el.hide():(this.reset(),setTimeout(()=>{Gb.call(this),Uc.call(this)},0),tn(window,"resize",()=>{Uc.call(this)}))}paintformatActive(){return this.paintformatEl.active()}paintformatToggle(){this.paintformatEl.toggle()}trigger(b){this[`${b}El`].click()}resetData(b){this.data=b,this.reset()}reset(){if(this.isHide)return;const{data:b}=this,e=b.getSelectedCellStyle();this.undoEl.setState(!b.canUndo()),this.redoEl.setState(!b.canRedo()),this.mergeEl.setState(b.canUnmerge(),!b.selector.multiple()),this.autofilterEl.setState(!b.canAutofilter());const{font:d,format:m}=e;this.formatEl.setState(m),this.fontEl.setState(d.name),this.fontSizeEl.setState(d.size),this.boldEl.setState(d.bold),this.italicEl.setState(d.italic),this.underlineEl.setState(e.underline),this.strikeEl.setState(e.strike),this.textColorEl.setState(e.color),this.fillColorEl.setState(e.bgcolor),this.alignEl.setState(e.align),this.valignEl.setState(e.valign),this.textwrapEl.setState(e.textwrap),this.freezeEl.setState(b.freezeIsActive())}}class Zb{constructor(b,e,d="600px"){this.title=b,this.el=$e("div",`${Ze}-modal`).css("width",d).children($e("div",`${Ze}-modal-header`).children(new jr("close").on("click.stop",()=>this.hide()),this.title),$e("div",`${Ze}-modal-content`).children(...e)).hide()}show(){this.dimmer=$e("div",`${Ze}-dimmer active`),document.body.appendChild(this.dimmer.el);const{width:b,height:e}=this.el.show().box(),{clientHeight:d,clientWidth:m}=document.documentElement;this.el.offset({left:(m-b)/2,top:(d-e)/3}),window.xkeydownEsc=f=>{f.keyCode===27&&this.hide()},tn(window,"keydown",window.xkeydownEsc)}hide(){this.el.hide(),document.body.removeChild(this.dimmer.el),Xa(window,"keydown",window.xkeydownEsc),delete window.xkeydownEsc}}class ms{constructor(b,e){this.vchange=()=>{},this.el=$e("div",`${Ze}-form-input`),this.input=$e("input","").css("width",b).on("input",d=>this.vchange(d)).attr("placeholder",e),this.el.child(this.input)}focus(){setTimeout(()=>{this.input.el.focus()},10)}hint(b){this.input.attr("placeholder",b)}val(b){return this.input.val(b)}}class qo{constructor(b,e,d,m=c=>c,f=()=>{}){this.key=b,this.getTitle=m,this.vchange=()=>{},this.el=$e("div",`${Ze}-form-select`),this.suggest=new uh(e.map(c=>({key:c,title:this.getTitle(c)})),c=>{this.itemClick(c.key),f(c.key),this.vchange(c.key)},d,this.el),this.el.children(this.itemEl=$e("div","input-text").html(this.getTitle(b)),this.suggest.el).on("click",()=>this.show())}show(){this.suggest.search("")}itemClick(b){this.key=b,this.itemEl.html(this.getTitle(b))}val(b){return b!==void 0?(this.key=b,this.itemEl.html(this.getTitle(b)),this):this.key}}const Jb={number:/(^\d+$)|(^\d+(\.\d{0,4})?$)/,date:/^\d{4}-\d{1,2}-\d{1,2}$/};class yi{constructor(b,e,d,m){this.label="",this.rule=e,d&&(this.label=$e("label","label").css("width",`${m}px`).html(d)),this.tip=$e("div","tip").child("tip").hide(),this.input=b,this.input.vchange=()=>this.validate(),this.el=$e("div",`${Ze}-form-field`).children(this.label,b.el,this.tip)}isShow(){return this.el.css("display")!=="none"}show(){this.el.show()}hide(){return this.el.hide(),this}val(b){return this.input.val(b)}hint(b){this.input.hint(b)}validate(){const{input:b,rule:e,tip:d,el:m}=this,f=b.val();return e.required&&/^\s*$/.test(f)?(d.html(Cr("validation.required")),m.addClass("error"),!1):(e.type||e.pattern)&&!(e.pattern||Jb[e.type]).test(f)?(d.html(Cr("validation.notMatch")),m.addClass("error"),!1):(m.removeClass("error"),!0)}}const Xc=100;class Qb extends Zb{constructor(){const b=new yi(new qo("cell",["cell"],"100%",t=>Cr(`dataValidation.modeType.${t}`)),{required:!0},`${Cr("dataValidation.range")}:`,Xc),e=new yi(new ms("120px","E3 or E3:F12"),{required:!0,pattern:/^([A-Z]{1,2}[1-9]\d*)(:[A-Z]{1,2}[1-9]\d*)?$/}),d=new yi(new qo("list",["list","number","date","phone","email"],"100%",t=>Cr(`dataValidation.type.${t}`),t=>this.criteriaSelected(t)),{required:!0},`${Cr("dataValidation.criteria")}:`,Xc),m=new yi(new qo("be",["be","nbe","eq","neq","lt","lte","gt","gte"],"160px",t=>Cr(`dataValidation.operator.${t}`),t=>this.criteriaOperatorSelected(t)),{required:!0}).hide(),f=new yi(new ms("70px","10"),{required:!0}).hide(),c=new yi(new ms("70px","100"),{required:!0,type:"number"}).hide(),u=new yi(new ms("120px","a,b,c"),{required:!0}),s=new yi(new ms("70px","10"),{required:!0,type:"number"}).hide();super(Cr("contextmenu.validation"),[$e("div",`${Ze}-form-fields`).children(b.el,e.el),$e("div",`${Ze}-form-fields`).children(d.el,m.el,f.el,c.el,s.el,u.el),$e("div",`${Ze}-buttons`).children(new Di("cancel").on("click",()=>this.btnClick("cancel")),new Di("remove").on("click",()=>this.btnClick("remove")),new Di("save","primary").on("click",()=>this.btnClick("save")))]),this.mf=b,this.rf=e,this.cf=d,this.of=m,this.minvf=f,this.maxvf=c,this.vf=s,this.svf=u,this.change=()=>{}}showVf(b){const e=b==="date"?"2018-11-12":"10",{vf:d}=this;d.input.hint(e),d.show()}criteriaSelected(b){const{of:e,minvf:d,maxvf:m,vf:f,svf:c}=this;b==="date"||b==="number"?(e.show(),d.rule.type=b,m.rule.type=b,b==="date"?(d.hint("2018-11-12"),m.hint("2019-11-12")):(d.hint("10"),m.hint("100")),d.show(),m.show(),f.hide(),c.hide()):(b==="list"?c.show():c.hide(),f.hide(),e.hide(),d.hide(),m.hide())}criteriaOperatorSelected(b){if(!b)return;const{minvf:e,maxvf:d,vf:m}=this;if(b==="be"||b==="nbe")e.show(),d.show(),m.hide();else{const f=this.cf.val();m.rule.type=f,f==="date"?m.hint("2018-11-12"):m.hint("10"),m.show(),e.hide(),d.hide()}}btnClick(b){if(b==="cancel")this.hide();else if(b==="remove")this.change("remove"),this.hide();else if(b==="save"){const e=["mf","rf","cf","of","svf","vf","minvf","maxvf"];for(let s=0;s<e.length;s+=1){const t=this[e[s]];if(t.isShow()&&!t.validate())return}const d=this.mf.val(),m=this.rf.val(),f=this.cf.val(),c=this.of.val();let u=this.svf.val();(f==="number"||f==="date")&&(c==="be"||c==="nbe"?u=[this.minvf.val(),this.maxvf.val()]:u=this.vf.val()),this.change("save",d,m,{type:f,operator:c,required:!1,value:u}),this.hide()}}setValue(b){if(b){const{mf:e,rf:d,cf:m,of:f,svf:c,vf:u,minvf:s,maxvf:t}=this,{mode:n,ref:r,validator:i}=b,{type:o,operator:l,value:a}=i||{type:"list"};e.val(n||"cell"),d.val(r),m.val(o),f.val(l),Array.isArray(a)?(s.val(a[0]),t.val(a[1])):(c.val(a||""),u.val(a||"")),this.criteriaSelected(o),this.criteriaOperatorSelected(l)}this.show()}}function wh(N){return $e("div",`${Ze}-item ${N}`)}function Wc(N){return wh("state").child(Cr(`sort.${N}`)).on("click.stop",()=>this.itemClick(N))}function qb(N){const{filterbEl:b,filterValues:e}=this;b.html(""),Object.keys(N).forEach((m,f)=>{const c=N[m],u=e.includes(m)?"checked":"";b.child($e("div",`${Ze}-item state ${u}`).on("click.stop",()=>this.filterClick(f,m)).children(m===""?Cr("filter.empty"):m,$e("div","label").html(`(${c})`)))})}function Vc(){const{filterhEl:N,filterValues:b,values:e}=this;N.html(`${b.length} / ${e.length}`),N.checked(b.length===e.length)}class ev{constructor(){this.filterbEl=$e("div",`${Ze}-body`),this.filterhEl=$e("div",`${Ze}-header state`).on("click.stop",()=>this.filterClick(0,"all")),this.el=$e("div",`${Ze}-sort-filter`).children(this.sortAscEl=Wc.call(this,"asc"),this.sortDescEl=Wc.call(this,"desc"),wh("divider"),$e("div",`${Ze}-filter`).children(this.filterhEl,this.filterbEl),$e("div",`${Ze}-buttons`).children(new Di("cancel").on("click",()=>this.btnClick("cancel")),new Di("ok","primary").on("click",()=>this.btnClick("ok")))).hide(),this.ci=null,this.sortDesc=null,this.values=null,this.filterValues=[]}btnClick(b){if(b==="ok"){const{ci:e,sort:d,filterValues:m}=this;this.ok&&this.ok(e,d,"in",m)}this.hide()}itemClick(b){this.sort=b;const{sortAscEl:e,sortDescEl:d}=this;e.checked(b==="asc"),d.checked(b==="desc")}filterClick(b,e){const{filterbEl:d,filterValues:m,values:f}=this,c=d.children();e==="all"?c.length===m.length?(this.filterValues=[],c.forEach(u=>$e(u).checked(!1))):(this.filterValues=Array.from(f),c.forEach(u=>$e(u).checked(!0))):$e(c[b]).toggle("checked")?m.push(e):m.splice(m.findIndex(s=>s===e),1),Vc.call(this)}set(b,e,d,m){this.ci=b;const{sortAscEl:f,sortDescEl:c}=this;m!==null?(this.sort=m.order,f.checked(m.asc()),c.checked(m.desc())):(this.sortDesc=null,f.checked(!1),c.checked(!1)),this.values=Object.keys(e),this.filterValues=d?Array.from(d.value):Object.keys(e),qb.call(this,e,d),Vc.call(this)}setOffset(b){this.el.offset(b).show();let e=1;Ws(this.el,()=>{e<=0&&this.hide(),e-=1})}show(){this.el.show()}hide(){this.el.hide(),gs(this.el)}}function xh(N,b){const e=$e("div",`${Ze}-toast`),d=$e("div",`${Ze}-dimmer active`),m=()=>{document.body.removeChild(e.el),document.body.removeChild(d.el)};e.children($e("div",`${Ze}-toast-header`).children(new jr("close").on("click.stop",()=>m()),N),$e("div",`${Ze}-toast-content`).html(b)),document.body.appendChild(e.el),document.body.appendChild(d.el);const{width:f,height:c}=e.box(),{clientHeight:u,clientWidth:s}=document.documentElement;e.offset({left:(s-f)/2,top:(u-c)/3})}function ef(N,b){let e;return(...d)=>{const m=this,f=d;e||(e=setTimeout(()=>{e=null,N.apply(m,f)},b))}}function tv(){const{data:N,verticalScrollbar:b,horizontalScrollbar:e}=this,{l:d,t:m,left:f,top:c,width:u,height:s}=N.getSelectedRect(),t=this.getTableOffset();if(Math.abs(f)+u>t.width)e.move({left:d+u-t.width});else{const n=N.freezeTotalWidth();f<n&&e.move({left:d-1-n})}if(Math.abs(c)+s>t.height)b.move({top:m+s-t.height-1});else{const n=N.freezeTotalHeight();c<n&&b.move({top:m-1-n})}}function Bi(N,b,e,d=!0,m=!1){if(b===-1&&e===-1)return;const{table:f,selector:c,toolbar:u,data:s,contextMenu:t}=this;t.setMode(b===-1||e===-1?"row-col":"range");const n=s.getCell(b,e);N?(c.setEnd(b,e,m),this.trigger("cells-selected",n,c.range)):(c.set(b,e,d),this.trigger("cell-selected",n,b,e)),u.reset(),f.render()}function zn(N,b){const{selector:e,data:d}=this,{rows:m,cols:f}=d;let[c,u]=e.indexes;const{eri:s,eci:t}=e.range;N&&([c,u]=e.moveIndexes),b==="left"?u>0&&(u-=1):b==="right"?(t!==u&&(u=t),u<f.len-1&&(u+=1)):b==="up"?c>0&&(c-=1):b==="down"?(s!==c&&(c=s),c<m.len-1&&(c+=1)):b==="row-first"?u=0:b==="row-last"?u=f.len-1:b==="col-first"?c=0:b==="col-last"&&(c=m.len-1),N&&(e.moveIndexes=[c,u]),Bi.call(this,N,c,u),tv.call(this)}function rv(N){if(N.buttons!==0||N.target.className===`${Ze}-resizer-hover`)return;const{offsetX:b,offsetY:e}=N,{rowResizer:d,colResizer:m,tableEl:f,data:c}=this,{rows:u,cols:s}=c;if(b>s.indexWidth&&e>u.height){d.hide(),m.hide();return}const t=f.box(),n=c.getCellRectByXY(N.offsetX,N.offsetY);n.ri>=0&&n.ci===-1?(n.width=s.indexWidth,d.show(n,{width:t.width}),u.isHide(n.ri-1)?d.showUnhide(n.ri):d.hideUnhide()):d.hide(),n.ri===-1&&n.ci>=0?(n.height=u.height,m.show(n,{height:t.height}),s.isHide(n.ci-1)?m.showUnhide(n.ci):m.hideUnhide()):m.hide()}function nv(N){const{verticalScrollbar:b,horizontalScrollbar:e,data:d}=this,{top:m}=b.scroll(),{left:f}=e.scroll(),{rows:c,cols:u}=d,{deltaY:s,deltaX:t}=N,n=(g,v)=>{let h=g,w=0;do w=v(h),h+=1;while(w<=0);return w},r=g=>{if(g>0){const v=d.scroll.ri+1;if(v<c.len){const h=n(v,w=>c.getHeight(w));b.move({top:m+h-1})}}else{const v=d.scroll.ri-1;if(v>=0){const h=n(v,w=>c.getHeight(w));b.move({top:v===0?0:m-h})}}},i=g=>{if(g>0){const v=d.scroll.ci+1;if(v<u.len){const h=n(v,w=>u.getWidth(w));e.move({left:f+h-1})}}else{const v=d.scroll.ci-1;if(v>=0){const h=n(v,w=>u.getWidth(w));e.move({left:v===0?0:f-h})}}},o=Math.abs(s),l=Math.abs(t),a=Math.max(o,l);/Firefox/i.test(window.navigator.userAgent)&&ef(r(N.detail),50),a===l&&ef(i(t),50),a===o&&ef(r(s),50)}function iv(N,b){const{verticalScrollbar:e,horizontalScrollbar:d}=this,{top:m}=e.scroll(),{left:f}=d.scroll();N==="left"||N==="right"?d.move({left:f-b}):(N==="up"||N==="down")&&e.move({top:m-b})}function Tf(){const{data:N,verticalScrollbar:b}=this,{height:e}=this.getTableOffset(),d=N.exceptRowTotalHeight(0,-1);b.set(e,N.rows.totalHeight()-d)}function Af(){const{data:N,horizontalScrollbar:b}=this,{width:e}=this.getTableOffset();N&&b.set(e,N.cols.totalWidth())}function sv(){const{selector:N,data:b,editor:e}=this,[d,m]=b.freeze;if(d>0||m>0){const f=b.freezeTotalWidth(),c=b.freezeTotalHeight();e.setFreezeLengths(f,c)}N.resetAreaOffset()}function en(){const{tableEl:N,overlayerEl:b,overlayerCEl:e,table:d,toolbar:m,selector:f,el:c}=this,u=this.getTableOffset(),s=this.getRect();N.attr(s),b.offset(s),e.offset(u),c.css("width",`${s.width}px`),Tf.call(this),Af.call(this),sv.call(this),d.render(),m.reset(),f.reset()}function Vs(){const{data:N,selector:b}=this;N.clearClipboard(),b.hideClipboard()}function gf(){const{data:N,selector:b}=this;N.copy(),N.copyToSystemClipboard(),b.showClipboard()}function Kc(){const{data:N,selector:b}=this;N.cut(),b.showClipboard()}function zs(N,b){const{data:e}=this;if(e.settings.mode!=="read"){if(e.paste(N,d=>xh("Tip",d)))en.call(this);else if(b){const d=b.clipboardData.getData("text/plain");this.data.pasteFromText(d),en.call(this)}}}function av(){this.data.hideRowsOrCols(),en.call(this)}function Gc(N,b){this.data.unhideRowsOrCols(N,b),en.call(this)}function ov(){const{data:N}=this;N.autofilter(),en.call(this)}function fv(){const{toolbar:N}=this;N.paintformatActive()&&(zs.call(this,"format"),Vs.call(this),N.paintformatToggle())}function Yc(N){const{selector:b,data:e,table:d,sortFilter:m}=this,{offsetX:f,offsetY:c}=N,u=N.target.className===`${Ze}-selector-corner`,s=e.getCellRectByXY(f,c),{left:t,top:n,width:r,height:i}=s;let{ri:o,ci:l}=s;const{autoFilter:a}=e;if(a.includes(o,l)&&t+r-20<f&&n+i-20<c){const g=a.items(l,(v,h)=>e.rows.getCell(v,h));m.hide(),m.set(l,g,a.getFilter(l),a.getSort(l)),m.setOffset({left:t,top:n+i+2});return}N.shiftKey||(u?b.showAutofill(o,l):Bi.call(this,!1,o,l),oh(window,g=>{({ri:o,ci:l}=e.getCellRectByXY(g.offsetX,g.offsetY)),u?b.showAutofill(o,l):g.buttons===1&&!g.shiftKey&&Bi.call(this,!0,o,l,!0,!0)},()=>{u&&b.arange&&e.settings.mode!=="read"&&e.autofill(b.arange,"all",g=>xh("Tip",g))&&d.render(),b.hideAutofill(),fv.call(this)})),!u&&N.buttons===1&&N.shiftKey&&Bi.call(this,!0,o,l)}function Ks(){const{editor:N,data:b}=this,e=b.getSelectedRect(),d=this.getTableOffset();let m="top";e.top>d.height/2&&(m="bottom"),N.setOffset(e,m)}function Us(){const{editor:N,data:b}=this;b.settings.mode!=="read"&&(Ks.call(this),N.setCell(b.getSelectedCell(),b.getSelectedValidator()),Vs.call(this))}function lv(N){const{data:b,table:e,selector:d}=this;b.scrolly(N,()=>{d.resetBRLAreaOffset(),Ks.call(this),e.render()})}function cv(N){const{data:b,table:e,selector:d}=this;b.scrollx(N,()=>{d.resetBRTAreaOffset(),Ks.call(this),e.render()})}function hv(N,b){const{ri:e}=N,{table:d,selector:m,data:f}=this;f.rows.setHeight(e,b),d.render(),m.resetAreaOffset(),Tf.call(this),Ks.call(this)}function uv(N,b){const{ci:e}=N,{table:d,selector:m,data:f}=this;f.cols.setWidth(e,b),d.render(),m.resetAreaOffset(),Af.call(this),Ks.call(this)}function tf(N,b="finished"){const{data:e,table:d}=this;if(e.settings.mode==="read")return;e.setSelectedCellText(N,b);const{ri:m,ci:f}=e.selector;b==="finished"?d.render():this.trigger("cell-edited",N,m,f)}function ja(N){const{data:b}=this;b.settings.mode!=="read"&&(N==="insert-row"?b.insert("row"):N==="delete-row"?b.delete("row"):N==="insert-column"?b.insert("column"):N==="delete-column"?b.delete("column"):N==="delete-cell"?b.deleteCell():N==="delete-cell-format"?b.deleteCell("format"):N==="delete-cell-text"?b.deleteCell("text"):N==="cell-printable"?b.setSelectedCellAttr("printable",!0):N==="cell-non-printable"?b.setSelectedCellAttr("printable",!1):N==="cell-editable"?b.setSelectedCellAttr("editable",!0):N==="cell-non-editable"&&b.setSelectedCellAttr("editable",!1),Vs.call(this),en.call(this))}function dv(N,b){const{data:e}=this;if(N==="undo")this.undo();else if(N==="redo")this.redo();else if(N==="print")this.print.preview();else if(N==="paintformat")b===!0?gf.call(this):Vs.call(this);else if(N==="clearformat")ja.call(this,"delete-cell-format");else if(N!=="link"){if(N!=="chart")if(N==="autofilter")ov.call(this);else if(N==="freeze")if(b){const{ri:d,ci:m}=e.selector;this.freeze(d,m)}else this.freeze(0,0);else e.setSelectedCellAttr(N,b),N==="formula"&&!e.selector.multiple()&&Us.call(this),en.call(this)}}function pv(N,b,e,d){this.data.setAutoFilter(N,b,e,d),en.call(this)}function mv(){const{selector:N,overlayerEl:b,rowResizer:e,colResizer:d,verticalScrollbar:m,horizontalScrollbar:f,editor:c,contextMenu:u,toolbar:s,modalValidation:t,sortFilter:n}=this;b.on("mousemove",r=>{rv.call(this,r)}).on("mousedown",r=>{c.clear(),u.hide(),r.buttons===2?(this.data.xyInSelectedRect(r.offsetX,r.offsetY)||Yc.call(this,r),u.setPosition(r.offsetX,r.offsetY),r.stopPropagation()):r.detail===2?Us.call(this):Yc.call(this,r)}).on("mousewheel.stop",r=>{nv.call(this,r)}).on("mouseout",r=>{const{offsetX:i,offsetY:o}=r;o<=0&&d.hide(),i<=0&&e.hide()}),N.inputChange=r=>{tf.call(this,r,"input"),Us.call(this)},_g(b.el,{move:(r,i)=>{iv.call(this,r,i)}}),s.change=(r,i)=>dv.call(this,r,i),n.ok=(r,i,o,l)=>pv.call(this,r,i,o,l),e.finishedFn=(r,i)=>{hv.call(this,r,i)},d.finishedFn=(r,i)=>{uv.call(this,r,i)},e.unhideFn=r=>{Gc.call(this,"row",r)},d.unhideFn=r=>{Gc.call(this,"col",r)},m.moveFn=(r,i)=>{lv.call(this,r,i)},f.moveFn=(r,i)=>{cv.call(this,r,i)},c.change=(r,i)=>{tf.call(this,i,r)},t.change=(r,...i)=>{r==="save"?this.data.addValidation(...i):this.data.removeValidation()},u.itemClick=r=>{r==="validation"?t.setValue(this.data.getSelectedValidation()):r==="copy"?gf.call(this):r==="cut"?Kc.call(this):r==="paste"?zs.call(this,"all"):r==="paste-value"?zs.call(this,"text"):r==="paste-format"?zs.call(this,"format"):r==="hide"?av.call(this):ja.call(this,r)},tn(window,"resize",()=>{this.reload()}),tn(window,"click",r=>{this.focusing=b.contains(r.target)}),tn(window,"paste",r=>{this.focusing&&(zs.call(this,"all",r),r.preventDefault())}),tn(window,"keydown",r=>{if(!this.focusing)return;const i=r.keyCode||r.which,{key:o,ctrlKey:l,shiftKey:a,metaKey:g}=r;if(l||g)switch(i){case 90:this.undo(),r.preventDefault();break;case 89:this.redo(),r.preventDefault();break;case 67:gf.call(this),r.preventDefault();break;case 88:Kc.call(this),r.preventDefault();break;case 85:s.trigger("underline"),r.preventDefault();break;case 86:break;case 37:zn.call(this,a,"row-first"),r.preventDefault();break;case 38:zn.call(this,a,"col-first"),r.preventDefault();break;case 39:zn.call(this,a,"row-last"),r.preventDefault();break;case 40:zn.call(this,a,"col-last"),r.preventDefault();break;case 32:Bi.call(this,!1,-1,this.data.selector.ci,!1),r.preventDefault();break;case 66:s.trigger("bold");break;case 73:s.trigger("italic");break}else{switch(i){case 32:a&&Bi.call(this,!1,this.data.selector.ri,-1,!1);break;case 27:u.hide(),Vs.call(this);break;case 37:zn.call(this,a,"left"),r.preventDefault();break;case 38:zn.call(this,a,"up"),r.preventDefault();break;case 39:zn.call(this,a,"right"),r.preventDefault();break;case 40:zn.call(this,a,"down"),r.preventDefault();break;case 9:c.clear(),zn.call(this,!1,a?"left":"right"),r.preventDefault();break;case 13:c.clear(),zn.call(this,!1,a?"up":"down"),r.preventDefault();break;case 8:ja.call(this,"delete-cell-text"),r.preventDefault();break}o==="Delete"?(ja.call(this,"delete-cell-text"),r.preventDefault()):i>=65&&i<=90||i>=48&&i<=57||i>=96&&i<=105||r.key==="="?(tf.call(this,r.key,"input"),Us.call(this)):i===113&&Us.call(this)}})}class gv{constructor(b,e){this.eventMap=Sg();const{view:d,showToolbar:m,showContextmenu:f}=e.settings;this.el=$e("div",`${Ze}-sheet`),this.toolbar=new Yb(e,d.width,!m),this.print=new sb(e),b.children(this.toolbar.el,this.el,this.print.el),this.data=e,this.tableEl=$e("canvas",`${Ze}-table`),this.rowResizer=new Ic(!1,e.rows.height),this.colResizer=new Ic(!0,e.cols.minWidth),this.verticalScrollbar=new Oc(!0),this.horizontalScrollbar=new Oc(!1),this.editor=new Hg(Gg,()=>this.getTableOffset(),e.rows.height),this.modalValidation=new Qb,this.contextMenu=new lb(()=>this.getRect(),!f),this.selector=new Tg(e),this.overlayerCEl=$e("div",`${Ze}-overlayer-content`).children(this.editor.el,this.selector.el),this.overlayerEl=$e("div",`${Ze}-overlayer`).child(this.overlayerCEl),this.sortFilter=new ev,this.el.children(this.tableEl,this.overlayerEl.el,this.rowResizer.el,this.colResizer.el,this.verticalScrollbar.el,this.horizontalScrollbar.el,this.contextMenu.el,this.modalValidation.el,this.sortFilter.el),this.table=new rb(this.tableEl.el,e),mv.call(this),en.call(this),Bi.call(this,!1,0,0)}on(b,e){return this.eventMap.on(b,e),this}trigger(b,...e){const{eventMap:d}=this;d.fire(b,e)}resetData(b){this.editor.clear(),this.data=b,Tf.call(this),Af.call(this),this.toolbar.resetData(b),this.print.resetData(b),this.selector.resetData(b),this.table.resetData(b)}loadData(b){return this.data.setData(b),en.call(this),this}freeze(b,e){const{data:d}=this;return d.setFreeze(b,e),en.call(this),this}undo(){this.data.undo(),en.call(this)}redo(){this.data.redo(),en.call(this)}reload(){return en.call(this),this}getRect(){const{data:b}=this;return{width:b.viewWidth(),height:b.viewHeight()}}getTableOffset(){const{rows:b,cols:e}=this.data,{width:d,height:m}=this.getRect();return{width:d-e.indexWidth,height:m-b.height,left:e.indexWidth,top:b.height}}}class bv extends Wn{constructor(b){const e=new jr("ellipsis");super(e,"auto",!1,"top-left"),this.contentClick=b}reset(b){const e=b.map((d,m)=>$e("div",`${Ze}-item`).css("width","150px").css("font-weight","normal").on("click",()=>{this.contentClick(m),this.hide()}).child(d));this.setContentChildren(...e)}setTitle(){}}const vv=[{key:"delete",title:Wt("contextmenu.deleteSheet")}];function yv(N){return $e("div",`${Ze}-item`).child(N.title()).on("click",()=>{this.itemClick(N.key),this.hide()})}function wv(){return vv.map(N=>yv.call(this,N))}class xv{constructor(){this.el=$e("div",`${Ze}-contextmenu`).css("width","160px").children(...wv.call(this)).hide(),this.itemClick=()=>{}}hide(){const{el:b}=this;b.hide(),gs(b)}setOffset(b){const{el:e}=this;e.offset(b),e.show(),Ws(e)}}class _v{constructor(b=()=>{},e=()=>{},d=()=>{},m=()=>{}){this.swapFunc=e,this.updateFunc=m,this.dataNames=[],this.activeEl=null,this.deleteEl=null,this.items=[],this.moreEl=new bv(f=>{this.clickSwap2(this.items[f])}),this.contextMenu=new xv,this.contextMenu.itemClick=d,this.el=$e("div",`${Ze}-bottombar`).children(this.contextMenu.el,this.menuEl=$e("ul",`${Ze}-menu`).child($e("li","").children(new jr("add").on("click",()=>{b()}),$e("span","").child(this.moreEl))))}addItem(b,e){this.dataNames.push(b);const d=$e("li",e?"active":"").child(b);d.on("click",()=>{this.clickSwap2(d)}).on("contextmenu",m=>{const{offsetLeft:f,offsetHeight:c}=m.target;this.contextMenu.setOffset({left:f,bottom:c+1}),this.deleteEl=d}).on("dblclick",()=>{const m=d.html(),f=new ms("auto","");f.val(m),f.input.on("blur",({target:c})=>{const{value:u}=c,s=this.dataNames.findIndex(t=>t===m);this.renameItem(s,u)}),d.html("").child(f.el),f.focus()}),e&&this.clickSwap(d),this.items.push(d),this.menuEl.child(d),this.moreEl.reset(this.dataNames)}renameItem(b,e){this.dataNames.splice(b,1,e),this.moreEl.reset(this.dataNames),this.items[b].html("").child(e),this.updateFunc(b,e)}clear(){this.items.forEach(b=>{this.menuEl.removeChild(b.el)}),this.items=[],this.dataNames=[],this.moreEl.reset(this.dataNames)}deleteItem(){const{activeEl:b,deleteEl:e}=this;if(this.items.length>1){const d=this.items.findIndex(m=>m===e);if(this.items.splice(d,1),this.dataNames.splice(d,1),this.menuEl.removeChild(e.el),this.moreEl.reset(this.dataNames),b===e){const[m]=this.items;return this.activeEl=m,this.activeEl.toggle(),[d,0]}return[d,-1]}return[-1]}clickSwap2(b){const e=this.items.findIndex(d=>d===b);this.clickSwap(b),this.activeEl.toggle(),this.swapFunc(e)}clickSwap(b){this.activeEl!==null&&this.activeEl.toggle(),this.activeEl=b}}class Sv{constructor(b,e={}){let d=b;this.options={showBottomBar:!0,...e},this.sheetIndex=1,this.datas=[],typeof b=="string"&&(d=document.querySelector(b)),this.bottombar=this.options.showBottomBar?new _v(()=>{const f=this.addSheet();this.sheet.resetData(f)},f=>{const c=this.datas[f];this.sheet.resetData(c)},()=>{this.deleteSheet()},(f,c)=>{this.datas[f].name=c}):null,this.data=this.addSheet();const m=$e("div",`${Ze}`).on("contextmenu",f=>f.preventDefault());d.appendChild(m.el),this.sheet=new gv(m,this.data),this.bottombar!==null&&m.child(this.bottombar.el)}addSheet(b,e=!0){const d=b||`sheet${this.sheetIndex}`,m=new xg(d,this.options);return m.change=(...f)=>{this.sheet.trigger("change",...f)},this.datas.push(m),this.bottombar!==null&&this.bottombar.addItem(d,e),this.sheetIndex+=1,m}deleteSheet(){if(this.bottombar===null)return;const[b,e]=this.bottombar.deleteItem();b>=0&&(this.datas.splice(b,1),e>=0&&this.sheet.resetData(this.datas[e]))}loadData(b){const e=Array.isArray(b)?b:[b];if(this.bottombar!==null&&this.bottombar.clear(),this.datas=[],e.length>0)for(let d=0;d<e.length;d+=1){const m=e[d],f=this.addSheet(m.name,d===0);f.setData(m),d===0&&this.sheet.resetData(f)}return this}getData(){return this.datas.map(b=>b.getData())}cellText(b,e,d,m=0){return this.datas[m].setCellText(b,e,d,"finished"),this}cell(b,e,d=0){return this.datas[d].getCell(b,e)}cellStyle(b,e,d=0){return this.datas[d].getCellStyle(b,e)}reRender(){return this.sheet.table.render(),this}on(b,e){return this.sheet.on(b,e),this}validate(){const{validations:b}=this.data;return b.errors.size<=0}change(b){return this.sheet.on("change",b),this}static locale(b,e){sh(b,e)}}const Ev=(N,b={})=>new Sv(N,b);window&&(window.x_spreadsheet=Ev,window.x_spreadsheet.locale=(N,b)=>sh(N,b));var _h={exports:{}};(function(N,b){(function(e){N.exports=e()})(function(){return function(){function e(d,m,f){function c(t,n){if(!m[t]){if(!d[t]){var r=typeof Ia=="function"&&Ia;if(!n&&r)return r(t,!0);if(u)return u(t,!0);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}var o=m[t]={exports:{}};d[t][0].call(o.exports,function(l){var a=d[t][1][l];return c(a||l)},o,o.exports,e,d,m,f)}return m[t].exports}for(var u=typeof Ia=="function"&&Ia,s=0;s<f.length;s++)c(f[s]);return c}return e}()({1:[function(e,d,m){const f=e("fs"),c=e("fast-csv"),u=e("dayjs/plugin/customParseFormat"),s=e("dayjs/plugin/utc"),t=e("dayjs").extend(u).extend(s),n=e("../utils/stream-buf"),{fs:{exists:r}}=e("../utils/utils"),i={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};class o{constructor(a){this.workbook=a,this.worksheet=null}async readFile(a,g){if(g=g||{},!await r(a))throw new Error(`File not found: ${a}`);const v=f.createReadStream(a),h=await this.read(v,g);return v.close(),h}read(a,g){return g=g||{},new Promise((v,h)=>{const w=this.workbook.addWorksheet(g.sheetName),y=g.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],S=g.map||function(I){if(I==="")return null;const F=Number(I);if(!Number.isNaN(F)&&F!==1/0)return F;const B=y.reduce((X,G)=>{if(X)return X;const V=t(I,G,!0);return V.isValid()?V:null},null);if(B)return new Date(B.valueOf());const j=i[I];return j!==void 0?j:I},E=c.parse(g.parserOptions).on("data",I=>{w.addRow(I.map(S))}).on("end",()=>{E.emit("worksheet",w)});E.on("worksheet",v).on("error",h),a.pipe(E)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#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")}write(a,g){return new Promise((v,h)=>{g=g||{};const w=this.workbook.getWorksheet(g.sheetName||g.sheetId),y=c.format(g.formatterOptions);a.on("finish",()=>{v()}),y.on("error",h),y.pipe(a);const{dateFormat:S,dateUTC:E}=g,I=g.map||(j=>{if(j){if(j.text||j.hyperlink)return j.hyperlink||j.text||"";if(j.formula||j.result)return j.result||"";if(j instanceof Date)return S?E?t.utc(j).format(S):t(j).format(S):E?t.utc(j).format():t(j).format();if(j.error)return j.error;if(typeof j=="object")return JSON.stringify(j)}return j}),F=g.includeEmptyRows===void 0||g.includeEmptyRows;let B=1;w&&w.eachRow((j,X)=>{if(F)for(;B++<X-1;)y.write([]);const{values:G}=j;G.shift(),y.write(G.map(I)),B=X}),y.end()})}writeFile(a,g){g=g||{};const v={encoding:g.encoding||"utf8"},h=f.createWriteStream(a,v);return this.write(h,g)}async writeBuffer(a){const g=new n;return await this.write(g,a),g.read()}}d.exports=o},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,d,m){const f=e("../utils/col-cache");class c{constructor(s,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=s,!t)this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0;else if(typeof t=="string"){const r=f.decodeAddress(t);this.nativeCol=r.col+n,this.nativeColOff=0,this.nativeRow=r.row+n,this.nativeRowOff=0}else t.nativeCol!==void 0?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):t.col!==void 0?(this.col=t.col+n,this.row=t.row+n):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0)}static asInstance(s){return s instanceof c||s==null?s:new c(s)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(s){this.nativeCol=Math.floor(s),this.nativeColOff=Math.floor((s-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(s){this.nativeRow=Math.floor(s),this.nativeRowOff=Math.floor((s-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(this.worksheet.getColumn(this.nativeCol+1).width*1e4):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(this.worksheet.getRow(this.nativeRow+1).height*1e4):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(s){this.nativeCol=s.nativeCol,this.nativeColOff=s.nativeColOff,this.nativeRow=s.nativeRow,this.nativeRowOff=s.nativeRowOff}}d.exports=c},{"../utils/col-cache":19}],3:[function(e,d,m){const f=e("../utils/col-cache"),c=e("../utils/under-dash"),u=e("./enums"),{slideFormula:s}=e("../utils/shared-formula"),t=e("./note");class n{constructor(B,j,X){if(!B||!j)throw new Error("A Cell needs a Row");this._row=B,this._column=j,f.validateAddress(X),this._address=X,this._value=I.create(n.Types.Null,this),this.style=this._mergeStyle(B.style,j.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(B){this.style.numFmt=B}get font(){return this.style.font}set font(B){this.style.font=B}get alignment(){return this.style.alignment}set alignment(B){this.style.alignment=B}get border(){return this.style.border}set border(B){this.style.border=B}get fill(){return this.style.fill}set fill(B){this.style.fill=B}get protection(){return this.style.protection}set protection(B){this.style.protection=B}_mergeStyle(B,j,X){const G=B&&B.numFmt||j&&j.numFmt;G&&(X.numFmt=G);const V=B&&B.font||j&&j.font;V&&(X.font=V);const J=B&&B.alignment||j&&j.alignment;J&&(X.alignment=J);const H=B&&B.border||j&&j.border;H&&(X.border=H);const M=B&&B.fill||j&&j.fill;M&&(X.fill=M);const T=B&&B.protection||j&&j.protection;return T&&(X.protection=T),X}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===n.Types.Merge}merge(B,j){this._value.release(),this._value=I.create(n.Types.Merge,this,B),j||(this.style=B.style)}unmerge(){this.type===n.Types.Merge&&(this._value.release(),this._value=I.create(n.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(B){return this._value.type!==n.Types.Merge?!1:this._value.isMergedTo(B)}get master(){return this.type===n.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===n.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(B){if(this.type===n.Types.Merge){this._value.master.value=B;return}this._value.release(),this._value=I.create(I.getType(B),this,B)}get note(){return this._comment&&this._comment.note}set note(B){this._comment=new t(B)}get text(){return this._value.toString()}get html(){return c.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(B){this.type===n.Types.String&&(this._value=I.create(n.Types.Hyperlink,this,{text:this._value.value,hyperlink:B}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:B}=this._row;return{sheetName:B.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(B){this.names=[B]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(B){const{definedNames:j}=this.workbook;j.removeAllNames(this.fullAddress),B.forEach(X=>{j.addEx(this.fullAddress,X)})}addName(B){this.workbook.definedNames.addEx(this.fullAddress,B)}removeName(B){this.workbook.definedNames.removeEx(this.fullAddress,B)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(B){this._dataValidations.add(this.address,B)}get model(){const{model:B}=this._value;return B.style=this.style,this._comment&&(B.comment=this._comment.model),B}set model(B){if(this._value.release(),this._value=I.create(B.type,this),this._value.model=B,B.comment)switch(B.comment.type){case"note":this._comment=t.fromModel(B.comment);break}B.style?this.style=B.style:this.style={}}}n.Types=u.ValueType;class r{constructor(B){this.model={address:B.address,type:n.Types.Null}}get value(){return null}set value(B){}get type(){return n.Types.Null}get effectiveType(){return n.Types.Null}get address(){return this.model.address}set address(B){this.model.address=B}toCsvString(){return""}release(){}toString(){return""}}class i{constructor(B,j){this.model={address:B.address,type:n.Types.Number,value:j}}get value(){return this.model.value}set value(B){this.model.value=B}get type(){return n.Types.Number}get effectiveType(){return n.Types.Number}get address(){return this.model.address}set address(B){this.model.address=B}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class o{constructor(B,j){this.model={address:B.address,type:n.Types.String,value:j}}get value(){return this.model.value}set value(B){this.model.value=B}get type(){return n.Types.String}get effectiveType(){return n.Types.String}get address(){return this.model.address}set address(B){this.model.address=B}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}class l{constructor(B,j){this.model={address:B.address,type:n.Types.String,value:j}}get value(){return this.model.value}set value(B){this.model.value=B}toString(){return this.model.value.richText.map(B=>B.text).join("")}get type(){return n.Types.RichText}get effectiveType(){return n.Types.RichText}get address(){return this.model.address}set address(B){this.model.address=B}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}class a{constructor(B,j){this.model={address:B.address,type:n.Types.Date,value:j}}get value(){return this.model.value}set value(B){this.model.value=B}get type(){return n.Types.Date}get effectiveType(){return n.Types.Date}get address(){return this.model.address}set address(B){this.model.address=B}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}class g{constructor(B,j){this.model={address:B.address,type:n.Types.Hyperlink,text:j?j.text:void 0,hyperlink:j?j.hyperlink:void 0},j&&j.tooltip&&(this.model.tooltip=j.tooltip)}get value(){const B={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(B.tooltip=this.model.tooltip),B}set value(B){this.model={text:B.text,hyperlink:B.hyperlink},B.tooltip&&(this.model.tooltip=B.tooltip)}get text(){return this.model.text}set text(B){this.model.text=B}get hyperlink(){return this.model.hyperlink}set hyperlink(B){this.model.hyperlink=B}get type(){return n.Types.Hyperlink}get effectiveType(){return n.Types.Hyperlink}get address(){return this.model.address}set address(B){this.model.address=B}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}class v{constructor(B,j){this.model={address:B.address,type:n.Types.Merge,master:j?j.address:void 0},this._master=j,j&&j.addMergeRef()}get value(){return this._master.value}set value(B){B instanceof n?(this._master&&this._master.releaseMergeRef(),B.addMergeRef(),this._master=B):this._master.value=B}isMergedTo(B){return B===this._master}get master(){return this._master}get type(){return n.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(B){this.model.address=B}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}class h{constructor(B,j){this.cell=B,this.model={address:B.address,type:n.Types.Formula,shareType:j?j.shareType:void 0,ref:j?j.ref:void 0,formula:j?j.formula:void 0,sharedFormula:j?j.sharedFormula:void 0,result:j?j.result:void 0}}_copyModel(B){const j={},X=G=>{const V=B[G];V&&(j[G]=V)};return X("formula"),X("result"),X("ref"),X("shareType"),X("sharedFormula"),j}get value(){return this._copyModel(this.model)}set value(B){this.model=this._copyModel(B)}validate(B){switch(I.getType(B)){case n.Types.Null:case n.Types.String:case n.Types.Number:case n.Types.Date:break;case n.Types.Hyperlink:case n.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){const B=this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),j=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);return{ranges:B,cells:j}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(B){this.model.formula=B}get formulaType(){return this.model.formula?u.FormulaType.Master:this.model.sharedFormula?u.FormulaType.Shared:u.FormulaType.None}get result(){return this.model.result}set result(B){this.model.result=B}get type(){return n.Types.Formula}get effectiveType(){const B=this.model.result;return B==null?u.ValueType.Null:B instanceof String||typeof B=="string"?u.ValueType.String:typeof B=="number"?u.ValueType.Number:B instanceof Date?u.ValueType.Date:B.text&&B.hyperlink?u.ValueType.Hyperlink:B.formula?u.ValueType.Formula:u.ValueType.Null}get address(){return this.model.address}set address(B){this.model.address=B}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:B}=this.cell,j=B.findCell(this.model.sharedFormula);this._translatedFormula=j&&s(j.formula,j.address,this.model.address)}return this._translatedFormula}toCsvString(){return`${this.model.result||""}`}release(){}toString(){return this.model.result?this.model.result.toString():""}}class w{constructor(B,j){this.model={address:B.address,type:n.Types.SharedString,value:j}}get value(){return this.model.value}set value(B){this.model.value=B}get type(){return n.Types.SharedString}get effectiveType(){return n.Types.SharedString}get address(){return this.model.address}set address(B){this.model.address=B}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class y{constructor(B,j){this.model={address:B.address,type:n.Types.Boolean,value:j}}get value(){return this.model.value}set value(B){this.model.value=B}get type(){return n.Types.Boolean}get effectiveType(){return n.Types.Boolean}get address(){return this.model.address}set address(B){this.model.address=B}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}class S{constructor(B,j){this.model={address:B.address,type:n.Types.Error,value:j}}get value(){return this.model.value}set value(B){this.model.value=B}get type(){return n.Types.Error}get effectiveType(){return n.Types.Error}get address(){return this.model.address}set address(B){this.model.address=B}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}class E{constructor(B,j){this.model={address:B.address,type:n.Types.String,value:JSON.stringify(j),rawValue:j}}get value(){return this.model.rawValue}set value(B){this.model.rawValue=B,this.model.value=JSON.stringify(B)}get type(){return n.Types.String}get effectiveType(){return n.Types.String}get address(){return this.model.address}set address(B){this.model.address=B}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}const I={getType(F){return F==null?n.Types.Null:F instanceof String||typeof F=="string"?n.Types.String:typeof F=="number"?n.Types.Number:typeof F=="boolean"?n.Types.Boolean:F instanceof Date?n.Types.Date:F.text&&F.hyperlink?n.Types.Hyperlink:F.formula||F.sharedFormula?n.Types.Formula:F.richText?n.Types.RichText:F.sharedString?n.Types.SharedString:F.error?n.Types.Error:n.Types.JSON},types:[{t:n.Types.Null,f:r},{t:n.Types.Number,f:i},{t:n.Types.String,f:o},{t:n.Types.Date,f:a},{t:n.Types.Hyperlink,f:g},{t:n.Types.Formula,f:h},{t:n.Types.Merge,f:v},{t:n.Types.JSON,f:E},{t:n.Types.SharedString,f:w},{t:n.Types.RichText,f:l},{t:n.Types.Boolean,f:y},{t:n.Types.Error,f:S}].reduce((F,B)=>(F[B.t]=B.f,F),[]),create(F,B,j){const X=this.types[F];if(!X)throw new Error(`Could not create Value of type ${F}`);return new X(B,j)}};d.exports=n},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,d,m){const f=e("../utils/under-dash"),c=e("./enums"),u=e("../utils/col-cache"),s=9;class t{constructor(r,i,o){this._worksheet=r,this._number=i,o!==!1&&(this.defn=o)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return u.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==s}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(r){r?(this.key=r.key,this.width=r.width!==void 0?r.width:s,this.outlineLevel=r.outlineLevel,r.style?this.style=r.style:this.style={},this.header=r.header,this._hidden=!!r.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(r){r!==void 0?(this._header=r,this.headers.forEach((i,o)=>{this._worksheet.getCell(o+1,this.number).value=i})):this._header=void 0}get key(){return this._key}set key(r){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=r,r&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(r){this._hidden=r}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(r){this._outlineLevel=r}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(r){return this.width===r.width&&this.hidden===r.hidden&&this.outlineLevel===r.outlineLevel&&f.isEqual(this.style,r.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const r=this.style;return!(r&&(r.font||r.numFmt||r.alignment||r.border||r.fill||r.protection))}get headerCount(){return this.headers.length}eachCell(r,i){const o=this.number;i||(i=r,r=null),this._worksheet.eachRow(r,(l,a)=>{i(l.getCell(o),a)})}get values(){const r=[];return this.eachCell((i,o)=>{i&&i.type!==c.ValueType.Null&&(r[o]=i.value)}),r}set values(r){if(!r)return;const i=this.number;let o=0;r.hasOwnProperty("0")&&(o=1),r.forEach((l,a)=>{this._worksheet.getCell(a+o,i).value=l})}_applyStyle(r,i){return this.style[r]=i,this.eachCell(o=>{o[r]=i}),i}get numFmt(){return this.style.numFmt}set numFmt(r){this._applyStyle("numFmt",r)}get font(){return this.style.font}set font(r){this._applyStyle("font",r)}get alignment(){return this.style.alignment}set alignment(r){this._applyStyle("alignment",r)}get protection(){return this.style.protection}set protection(r){this._applyStyle("protection",r)}get border(){return this.style.border}set border(r){this._applyStyle("border",r)}get fill(){return this.style.fill}set fill(r){this._applyStyle("fill",r)}static toModel(r){const i=[];let o=null;return r&&r.forEach((l,a)=>{l.isDefault?o&&(o=null):!o||!l.equivalentTo(o)?(o={min:a+1,max:a+1,width:l.width!==void 0?l.width:s,style:l.style,isCustomWidth:l.isCustomWidth,hidden:l.hidden,outlineLevel:l.outlineLevel,collapsed:l.collapsed},i.push(o)):o.max=a+1}),i.length?i:void 0}static fromModel(r,i){i=i||[];const o=[];let l=1,a=0;for(i=i.sort(function(g,v){return g.min-v.min});a<i.length;){const g=i[a++];for(;l<g.min;)o.push(new t(r,l++));for(;l<=g.max;)o.push(new t(r,l++,g))}return o.length?o:null}}d.exports=t},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,d,m){class f{constructor(u){this.model=u||{}}add(u,s){return this.model[u]=s}find(u){return this.model[u]}remove(u){this.model[u]=void 0}}d.exports=f},{}],6:[function(e,d,m){const f=e("../utils/under-dash"),c=e("../utils/col-cache"),u=e("../utils/cell-matrix"),s=e("./range"),t=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;class n{constructor(){this.matrixMap={}}getMatrix(i){return this.matrixMap[i]||(this.matrixMap[i]=new u)}add(i,o){const l=c.decodeEx(i);this.addEx(l,o)}addEx(i,o){const l=this.getMatrix(o);if(i.top)for(let a=i.left;a<=i.right;a++)for(let g=i.top;g<=i.bottom;g++){const v={sheetName:i.sheetName,address:c.n2l(a)+g,row:g,col:a};l.addCellEx(v)}else l.addCellEx(i)}remove(i,o){const l=c.decodeEx(i);this.removeEx(l,o)}removeEx(i,o){this.getMatrix(o).removeCellEx(i)}removeAllNames(i){f.each(this.matrixMap,o=>{o.removeCellEx(i)})}forEach(i){f.each(this.matrixMap,(o,l)=>{o.forEach(a=>{i(l,a)})})}getNames(i){return this.getNamesEx(c.decodeEx(i))}getNamesEx(i){return f.map(this.matrixMap,(o,l)=>o.findCellEx(i)&&l).filter(Boolean)}_explore(i,o){o.mark=!1;const{sheetName:l}=o,a=new s(o.row,o.col,o.row,o.col,l);let g,v;function h(y,S){const E=i.findCellAt(l,y,o.col);return!E||!E.mark?!1:(a[S]=y,E.mark=!1,!0)}for(v=o.row-1;h(v,"top");v--);for(v=o.row+1;h(v,"bottom");v++);function w(y,S){const E=[];for(v=a.top;v<=a.bottom;v++){const I=i.findCellAt(l,v,y);if(I&&I.mark)E.push(I);else return!1}a[S]=y;for(let I=0;I<E.length;I++)E[I].mark=!1;return!0}for(g=o.col-1;w(g,"left");g--);for(g=o.col+1;w(g,"right");g++);return a}getRanges(i,o){if(o=o||this.matrixMap[i],!o)return{name:i,ranges:[]};o.forEach(a=>{a.mark=!0});const l=o.map(a=>a.mark&&this._explore(o,a)).filter(Boolean).map(a=>a.$shortRange);return{name:i,ranges:l}}normaliseMatrix(i,o){i.forEachInSheet(o,(l,a,g)=>{l&&(l.row!==a||l.col!==g)&&(l.row=a,l.col=g,l.address=c.n2l(g)+a)})}spliceRows(i,o,l,a){f.each(this.matrixMap,g=>{g.spliceRows(i,o,l,a),this.normaliseMatrix(g,i)})}spliceColumns(i,o,l,a){f.each(this.matrixMap,g=>{g.spliceColumns(i,o,l,a),this.normaliseMatrix(g,i)})}get model(){return f.map(this.matrixMap,(i,o)=>this.getRanges(o,i)).filter(i=>i.ranges.length)}set model(i){const o=this.matrixMap={};i.forEach(l=>{const a=o[l.name]=new u;l.ranges.forEach(g=>{t.test(g.split("!").pop()||"")&&a.addCell(g)})})}}d.exports=n},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,d,m){d.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,d,m){const f=e("../utils/col-cache"),c=e("./anchor");class u{constructor(t,n){this.worksheet=t,this.model=n}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(t){let{type:n,imageId:r,range:i,hyperlinks:o}=t;if(this.type=n,this.imageId=r,n==="image")if(typeof i=="string"){const l=f.decode(i);this.range={tl:new c(this.worksheet,{col:l.left,row:l.top},-1),br:new c(this.worksheet,{col:l.right,row:l.bottom},0),editAs:"oneCell"}}else this.range={tl:new c(this.worksheet,i.tl,0),br:i.br&&new c(this.worksheet,i.br,0),ext:i.ext,editAs:i.editAs,hyperlinks:o||i.hyperlinks}}}d.exports=u},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,d,m){const f=e("../utils/under-dash");class c{constructor(s){this.note=s}get model(){let s=null;switch(typeof this.note){case"string":s={type:"note",note:{texts:[{text:this.note}]}};break;default:s={type:"note",note:this.note};break}return f.deepMerge({},c.DEFAULT_CONFIGS,s)}set model(s){const{note:t}=s,{texts:n}=t;n.length===1&&Object.keys(n[0]).length===1?this.note=n[0].text:this.note=t}static fromModel(s){const t=new c;return t.model=s,t}}c.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},d.exports=c},{"../utils/under-dash":26}],10:[function(e,d,m){const f=e("../utils/col-cache");class c{constructor(){this.decode(arguments)}setTLBR(s,t,n,r,i){if(arguments.length<4){const o=f.decodeAddress(s),l=f.decodeAddress(t);this.model={top:Math.min(o.row,l.row),left:Math.min(o.col,l.col),bottom:Math.max(o.row,l.row),right:Math.max(o.col,l.col),sheetName:n},this.setTLBR(o.row,o.col,l.row,l.col,i)}else this.model={top:Math.min(s,n),left:Math.min(t,r),bottom:Math.max(s,n),right:Math.max(t,r),sheetName:i}}decode(s){switch(s.length){case 5:this.setTLBR(s[0],s[1],s[2],s[3],s[4]);break;case 4:this.setTLBR(s[0],s[1],s[2],s[3]);break;case 3:this.setTLBR(s[0],s[1],s[2]);break;case 2:this.setTLBR(s[0],s[1]);break;case 1:{const t=s[0];if(t instanceof c)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const n=f.decodeEx(t);n.top?this.model={top:n.top,left:n.left,bottom:n.bottom,right:n.right,sheetName:n.sheetName}:this.model={top:n.row,left:n.col,bottom:n.row,right:n.col,sheetName:n.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error(`Invalid number of arguments to _getDimensions() - ${s.length}`)}}get top(){return this.model.top||1}set top(s){this.model.top=s}get left(){return this.model.left||1}set left(s){this.model.left=s}get bottom(){return this.model.bottom||1}set bottom(s){this.model.bottom=s}get right(){return this.model.right||1}set right(s){this.model.right=s}get sheetName(){return this.model.sheetName}set sheetName(s){this.model.sheetName=s}get _serialisedSheetName(){const{sheetName:s}=this.model;return s?/^[a-zA-Z0-9]*$/.test(s)?`${s}!`:`'${s}'!`:""}expand(s,t,n,r){(!this.model.top||s<this.top)&&(this.top=s),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||n>this.bottom)&&(this.bottom=n),(!this.model.right||r>this.right)&&(this.right=r)}expandRow(s){if(s){const{dimensions:t,number:n}=s;t&&this.expand(n,t.min,n,t.max)}}expandToAddress(s){const t=f.decodeEx(s);this.expand(t.row,t.col,t.row,t.col)}get tl(){return f.n2l(this.left)+this.top}get $t$l(){return`$${f.n2l(this.left)}$${this.top}`}get br(){return f.n2l(this.right)+this.bottom}get $b$r(){return`$${f.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(s){return!(s.sheetName&&this.sheetName&&s.sheetName!==this.sheetName||s.bottom<this.top||s.top>this.bottom||s.right<this.left||s.left>this.right)}contains(s){const t=f.decodeEx(s);return this.containsEx(t)}containsEx(s){return s.sheetName&&this.sheetName&&s.sheetName!==this.sheetName?!1:s.row>=this.top&&s.row<=this.bottom&&s.col>=this.left&&s.col<=this.right}forEachAddress(s){for(let t=this.left;t<=this.right;t++)for(let n=this.top;n<=this.bottom;n++)s(f.encodeAddress(n,t),n,t)}}d.exports=c},{"../utils/col-cache":19}],11:[function(e,d,m){const f=e("../utils/under-dash"),c=e("./enums"),u=e("../utils/col-cache"),s=e("./cell");class t{constructor(r,i){this._worksheet=r,this._number=i,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(r){return this._cells[r-1]}getCellEx(r){let i=this._cells[r.col-1];if(!i){const o=this._worksheet.getColumn(r.col);i=new s(this,o,r.address),this._cells[r.col-1]=i}return i}getCell(r){if(typeof r=="string"){const i=this._worksheet.getColumnKey(r);i?r=i.number:r=u.l2n(r)}return this._cells[r-1]||this.getCellEx({address:u.encodeAddress(this._number,r),row:this._number,col:r})}splice(r,i){const o=r+i;for(var l=arguments.length,a=new Array(l>2?l-2:0),g=2;g<l;g++)a[g-2]=arguments[g];const v=a.length-i,h=this._cells.length;let w,y,S;if(v<0)for(w=r+a.length;w<=h;w++)S=this._cells[w-1],y=this._cells[w-v-1],y?(S=this.getCell(w),S.value=y.value,S.style=y.style,S._comment=y._comment):S&&(S.value=null,S.style={},S._comment=void 0);else if(v>0)for(w=h;w>=o;w--)y=this._cells[w-1],y?(S=this.getCell(w+v),S.value=y.value,S.style=y.style,S._comment=y._comment):this._cells[w+v-1]=void 0;for(w=0;w<a.length;w++)S=this.getCell(r+w),S.value=a[w],S.style={},S._comment=void 0}eachCell(r,i){if(i||(i=r,r=null),r&&r.includeEmpty){const o=this._cells.length;for(let l=1;l<=o;l++)i(this.getCell(l),l)}else this._cells.forEach((o,l)=>{o&&o.type!==c.ValueType.Null&&i(o,l+1)})}addPageBreak(r,i){const o=this._worksheet,l=Math.max(0,r-1)||0,a=Math.max(0,i-1)||16838,g={id:this._number,max:a,man:1};l&&(g.min=l),o.rowBreaks.push(g)}get values(){const r=[];return this._cells.forEach(i=>{i&&i.type!==c.ValueType.Null&&(r[i.col]=i.value)}),r}set values(r){if(this._cells=[],r)if(r instanceof Array){let i=0;r.hasOwnProperty("0")&&(i=1),r.forEach((o,l)=>{o!==void 0&&(this.getCellEx({address:u.encodeAddress(this._number,l+i),row:this._number,col:l+i}).value=o)})}else this._worksheet.eachColumnKey((i,o)=>{r[o]!==void 0&&(this.getCellEx({address:u.encodeAddress(this._number,i.number),row:this._number,col:i.number}).value=r[o])})}get hasValues(){return f.some(this._cells,r=>r&&r.type!==c.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let r=0;return this.eachCell(()=>{r++}),r}get dimensions(){let r=0,i=0;return this._cells.forEach(o=>{o&&o.type!==c.ValueType.Null&&((!r||r>o.col)&&(r=o.col),i<o.col&&(i=o.col))}),r>0?{min:r,max:i}:null}_applyStyle(r,i){return this.style[r]=i,this._cells.forEach(o=>{o&&(o[r]=i)}),i}get numFmt(){return this.style.numFmt}set numFmt(r){this._applyStyle("numFmt",r)}get font(){return this.style.font}set font(r){this._applyStyle("font",r)}get alignment(){return this.style.alignment}set alignment(r){this._applyStyle("alignment",r)}get protection(){return this.style.protection}set protection(r){this._applyStyle("protection",r)}get border(){return this.style.border}set border(r){this._applyStyle("border",r)}get fill(){return this.style.fill}set fill(r){this._applyStyle("fill",r)}get hidden(){return!!this._hidden}set hidden(r){this._hidden=r}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(r){this._outlineLevel=r}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const r=[];let i=0,o=0;return this._cells.forEach(l=>{if(l){const a=l.model;a&&((!i||i>l.col)&&(i=l.col),o<l.col&&(o=l.col),r.push(a))}}),this.height||r.length?{cells:r,number:this.number,min:i,max:o,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(r){if(r.number!==this._number)throw new Error("Invalid row number in model");this._cells=[];let i;r.cells.forEach(o=>{switch(o.type){case s.Types.Merge:break;default:{let l;if(o.address)l=u.decodeAddress(o.address);else if(i){const{row:g}=i,v=i.col+1;l={row:g,col:v,address:u.encodeAddress(g,v),$col$row:`$${u.n2l(v)}$${g}`}}i=l;const a=this.getCellEx(l);a.model=o;break}}}),r.height?this.height=r.height:delete this.height,this.hidden=r.hidden,this.outlineLevel=r.outlineLevel||0,this.style=r.style&&JSON.parse(JSON.stringify(r.style))||{}}}d.exports=t},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,d,m){const f=e("../utils/col-cache");class c{constructor(t,n,r){this.table=t,this.column=n,this.index=r}_set(t,n){this.table.cacheState(),this.column[t]=n}get name(){return this.column.name}set name(t){this._set("name",t)}get filterButton(){return this.column.filterButton}set filterButton(t){this.column.filterButton=t}get style(){return this.column.style}set style(t){this.column.style=t}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(t){this._set("totalsRowLabel",t)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(t){this._set("totalsRowFunction",t)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(t){this._set("totalsRowResult",t)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(t){this._set("totalsRowFormula",t)}}class u{constructor(t,n){this.worksheet=t,n&&(this.table=n,this.validate(),this.store())}getFormula(t){switch(t.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${t.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${t.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${t.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${t.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${t.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${t.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${t.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${t.name}])`;case"custom":return t.totalsRowFormula;default:throw new Error(`Invalid Totals Row Function: ${t.totalsRowFunction}`)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:t}=this,n=(v,h,w)=>{v[h]===void 0&&(v[h]=w)};n(t,"headerRow",!0),n(t,"totalsRow",!1),n(t,"style",{}),n(t.style,"theme","TableStyleMedium2"),n(t.style,"showFirstColumn",!1),n(t.style,"showLastColumn",!1),n(t.style,"showRowStripes",!1),n(t.style,"showColumnStripes",!1);const r=(v,h)=>{if(!v)throw new Error(h)};r(t.ref,"Table must have ref"),r(t.columns,"Table must have column definitions"),r(t.rows,"Table must have row definitions"),t.tl=f.decodeAddress(t.ref);const{row:i,col:o}=t.tl;r(i>0,"Table must be on valid row"),r(o>0,"Table must be on valid col");const{width:l,filterHeight:a,tableHeight:g}=this;t.autoFilterRef=f.encode(i,o,i+a-1,o+l-1),t.tableRef=f.encode(i,o,i+g-1,o+l-1),t.columns.forEach((v,h)=>{r(v.name,`Column ${h} must have a name`),h===0?n(v,"totalsRowLabel","Total"):(n(v,"totalsRowFunction","none"),v.totalsRowFormula=this.getFormula(v))})}store(){const t=(a,g)=>{g&&Object.keys(g).forEach(v=>{a[v]=g[v]})},{worksheet:n,table:r}=this,{row:i,col:o}=r.tl;let l=0;if(r.headerRow){const a=n.getRow(i+l++);r.columns.forEach((g,v)=>{const{style:h,name:w}=g,y=a.getCell(o+v);y.value=w,t(y,h)})}if(r.rows.forEach(a=>{const g=n.getRow(i+l++);a.forEach((v,h)=>{const w=g.getCell(o+h);w.value=v,t(w,r.columns[h].style)})}),r.totalsRow){const a=n.getRow(i+l++);r.columns.forEach((g,v)=>{const h=a.getCell(o+v);v===0?h.value=g.totalsRowLabel:this.getFormula(g)?h.value={formula:g.totalsRowFormula,result:g.totalsRowResult}:h.value=null,t(h,g.style)})}}load(t){const{table:n}=this,{row:r,col:i}=n.tl;let o=0;if(n.headerRow){const l=t.getRow(r+o++);n.columns.forEach((a,g)=>{const v=l.getCell(i+g);v.value=a.name})}if(n.rows.forEach(l=>{const a=t.getRow(r+o++);l.forEach((g,v)=>{const h=a.getCell(i+v);h.value=g})}),n.totalsRow){const l=t.getRow(r+o++);n.columns.forEach((a,g)=>{const v=l.getCell(i+g);g===0?v.value=a.totalsRowLabel:this.getFormula(a)&&(v.value={formula:a.totalsRowFormula,result:a.totalsRowResult})})}}get model(){return this.table}set model(t){this.table=t}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const t=f.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let n=0;n<this._cache.tableHeight;n++){const r=this.worksheet.getRow(t.row+n);for(let i=0;i<this._cache.width;i++){const o=r.getCell(t.col+i);o.value=null}}else{for(let n=this.tableHeight;n<this._cache.tableHeight;n++){const r=this.worksheet.getRow(t.row+n);for(let i=0;i<this._cache.width;i++){const o=r.getCell(t.col+i);o.value=null}}for(let n=0;n<this.tableHeight;n++){const r=this.worksheet.getRow(t.row+n);for(let i=this.width;i<this._cache.width;i++){const o=r.getCell(t.col+i);o.value=null}}}this.store()}addRow(t,n){this.cacheState(),n===void 0?this.table.rows.push(t):this.table.rows.splice(n,0,t)}removeRows(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(t,n)}getColumn(t){const n=this.table.columns[t];return new c(this,n,t)}addColumn(t,n,r){this.cacheState(),r===void 0?(this.table.columns.push(t),this.table.rows.forEach((i,o)=>{i.push(n[o])})):(this.table.columns.splice(r,0,t),this.table.rows.forEach((i,o)=>{i.splice(r,0,n[o])}))}removeColumns(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(t,n),this.table.rows.forEach(r=>{r.splice(t,n)})}_assign(t,n,r){this.cacheState(),t[n]=r}get ref(){return this.table.ref}set ref(t){this._assign(this.table,"ref",t)}get name(){return this.table.name}set name(t){this.table.name=t}get displayName(){return this.table.displyName||this.table.name}set displayNamename(t){this.table.displayName=t}get headerRow(){return this.table.headerRow}set headerRow(t){this._assign(this.table,"headerRow",t)}get totalsRow(){return this.table.totalsRow}set totalsRow(t){this._assign(this.table,"totalsRow",t)}get theme(){return this.table.style.name}set theme(t){this.table.style.name=t}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(t){this.table.style.showFirstColumn=t}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(t){this.table.style.showLastColumn=t}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(t){this.table.style.showRowStripes=t}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(t){this.table.style.showColumnStripes=t}}d.exports=u},{"../utils/col-cache":19}],13:[function(e,d,m){const f=e("./worksheet"),c=e("./defined-names"),u=e("../xlsx/xlsx"),s=e("../csv/csv");class t{constructor(){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 c}get xlsx(){return this._xlsx||(this._xlsx=new u(this)),this._xlsx}get csv(){return this._csv||(this._csv=new s(this)),this._csv}get nextId(){for(let r=1;r<this._worksheets.length;r++)if(!this._worksheets[r])return r;return this._worksheets.length||1}addWorksheet(r,i){const o=this.nextId;i&&(typeof i=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),i={properties:{tabColor:{argb:i}}}):(i.argb||i.theme||i.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),i={properties:{tabColor:i}}));const l=this._worksheets.reduce((v,h)=>(h&&h.orderNo)>v?h.orderNo:v,0),a=Object.assign({},i,{id:o,name:r,orderNo:l+1,workbook:this}),g=new f(a);return this._worksheets[o]=g,g}removeWorksheetEx(r){delete this._worksheets[r.id]}removeWorksheet(r){const i=this.getWorksheet(r);i&&i.destroy()}getWorksheet(r){if(r===void 0)return this._worksheets.find(Boolean);if(typeof r=="number")return this._worksheets[r];if(typeof r=="string")return this._worksheets.find(i=>i&&i.name===r)}get worksheets(){return this._worksheets.slice(1).sort((r,i)=>r.orderNo-i.orderNo).filter(Boolean)}eachSheet(r){this.worksheets.forEach(i=>{r(i,i.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(r){const i=this.media.length;return this.media.push(Object.assign({},r,{type:"image"})),i}getImage(r){return this.media[r]}get model(){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(r=>r.model),sheets:this.worksheets.map(r=>r.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 model(r){this.creator=r.creator,this.lastModifiedBy=r.lastModifiedBy,this.lastPrinted=r.lastPrinted,this.created=r.created,this.modified=r.modified,this.company=r.company,this.manager=r.manager,this.title=r.title,this.subject=r.subject,this.keywords=r.keywords,this.category=r.category,this.description=r.description,this.language=r.language,this.revision=r.revision,this.contentStatus=r.contentStatus,this.properties=r.properties,this.calcProperties=r.calcProperties,this._worksheets=[],r.worksheets.forEach(i=>{const{id:o,name:l,state:a}=i,g=r.sheets&&r.sheets.findIndex(h=>h.id===o),v=this._worksheets[o]=new f({id:o,name:l,orderNo:g,state:a,workbook:this});v.model=i}),this._definedNames.model=r.definedNames,this.views=r.views,this._themes=r.themes,this.media=r.media||[]}}d.exports=t},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,d,m){const f=e("../utils/under-dash"),c=e("../utils/col-cache"),u=e("./range"),s=e("./row"),t=e("./column"),n=e("./enums"),r=e("./image"),i=e("./table"),o=e("./data-validations"),l=e("../utils/encryptor"),{copyStyle:a}=e("../utils/copy-style");class g{constructor(h){h=h||{},this._workbook=h.workbook,this.id=h.id,this.orderNo=h.orderNo,this.name=h.name,this.state=h.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},h.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:!!(h.pageSetup&&(h.pageSetup.fitToWidth||h.pageSetup.fitToHeight)&&!h.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},h.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},h.headerFooter),this.dataValidations=new o,this.views=h.views||[],this.autoFilter=h.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(h){if(h===void 0&&(h=`sheet${this.id}`),this._name!==h){if(typeof h!="string")throw new Error("The name has to be a string.");if(h==="")throw new Error("The name can't be empty.");if(h==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(h))throw new Error(`Worksheet name ${h} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(h))throw new Error(`The first or last character of worksheet name cannot be a single quotation mark: ${h}`);if(h&&h.length>31&&(console.warn(`Worksheet name ${h} exceeds 31 chars. This will be truncated`),h=h.substring(0,31)),this._workbook._worksheets.find(w=>w&&w.name.toLowerCase()===h.toLowerCase()))throw new Error(`Worksheet name already exists: ${h}`);this._name=h}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const h=new u;return this._rows.forEach(w=>{if(w){const y=w.dimensions;y&&h.expand(w.number,y.min,w.number,y.max)}}),h}get columns(){return this._columns}set columns(h){this._headerRowCount=h.reduce((S,E)=>{const I=E.header&&1||E.headers&&E.headers.length||0;return Math.max(S,I)},0);let w=1;const y=this._columns=[];h.forEach(S=>{const E=new t(this,w++,!1);y.push(E),E.defn=S})}getColumnKey(h){return this._keys[h]}setColumnKey(h,w){this._keys[h]=w}deleteColumnKey(h){delete this._keys[h]}eachColumnKey(h){f.each(this._keys,h)}getColumn(h){if(typeof h=="string"){const w=this._keys[h];if(w)return w;h=c.l2n(h)}if(this._columns||(this._columns=[]),h>this._columns.length){let w=this._columns.length+1;for(;w<=h;)this._columns.push(new t(this,w++))}return this._columns[h-1]}spliceColumns(h,w){const S=this._rows.length;for(var E=arguments.length,I=new Array(E>2?E-2:0),F=2;F<E;F++)I[F-2]=arguments[F];if(I.length>0)for(let G=0;G<S;G++){const V=[h,w];I.forEach(H=>{V.push(H[G]||null)});const J=this.getRow(G+1);J.splice.apply(J,V)}else this._rows.forEach(G=>{G&&G.splice(h,w)});const B=I.length-w,j=h+w,X=this._columns.length;if(B<0)for(let G=h+I.length;G<=X;G++)this.getColumn(G).defn=this.getColumn(G-B).defn;else if(B>0)for(let G=X;G>=j;G--)this.getColumn(G+B).defn=this.getColumn(G).defn;for(let G=h;G<h+I.length;G++)this.getColumn(G).defn=null;this.workbook.definedNames.spliceColumns(this.name,h,w,I.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let h=0;return this.eachRow(w=>{h=Math.max(h,w.cellCount)}),h}get actualColumnCount(){const h=[];let w=0;return this.eachRow(y=>{y.eachCell(S=>{let{col:E}=S;h[E]||(h[E]=!0,w++)})}),w}_commitRow(){}get _lastRowNumber(){const h=this._rows;let w=h.length;for(;w>0&&h[w-1]===void 0;)w--;return w}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(h){return this._rows[h-1]}findRows(h,w){return this._rows.slice(h-1,h-1+w)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let h=0;return this.eachRow(()=>{h++}),h}getRow(h){let w=this._rows[h-1];return w||(w=this._rows[h-1]=new s(this,h)),w}getRows(h,w){if(w<1)return;const y=[];for(let S=h;S<h+w;S++)y.push(this.getRow(S));return y}addRow(h){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const y=this._nextRow,S=this.getRow(y);return S.values=h,this._setStyleOption(y,w[0]==="i"?w:"n"),S}addRows(h){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const y=[];return h.forEach(S=>{y.push(this.addRow(S,w))}),y}insertRow(h,w){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(h,0,w),this._setStyleOption(h,y),this.getRow(h)}insertRows(h,w){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(h,0,...w),y!=="n")for(let S=0;S<w.length;S++)y[0]==="o"&&this.findRow(w.length+h+S)!==void 0?this._copyStyle(w.length+h+S,h+S,y[1]==="+"):y[0]==="i"&&this.findRow(h-1)!==void 0&&this._copyStyle(h-1,h+S,y[1]==="+");return this.getRows(h,w.length)}_setStyleOption(h){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";w[0]==="o"&&this.findRow(h+1)!==void 0?this._copyStyle(h+1,h,w[1]==="+"):w[0]==="i"&&this.findRow(h-1)!==void 0&&this._copyStyle(h-1,h,w[1]==="+")}_copyStyle(h,w){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const S=this.getRow(h),E=this.getRow(w);E.style=a(S.style),S.eachCell({includeEmpty:y},(I,F)=>{E.getCell(F).style=a(I.style)}),E.height=S.height}duplicateRow(h,w){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const S=this._rows[h-1],E=new Array(w).fill(S.values);this.spliceRows(h+1,y?0:w,...E);for(let I=0;I<w;I++){const F=this._rows[h+I];F.style=S.style,F.height=S.height,S.eachCell({includeEmpty:!0},(B,j)=>{F.getCell(j).style=B.style})}}spliceRows(h,w){const y=h+w;for(var S=arguments.length,E=new Array(S>2?S-2:0),I=2;I<S;I++)E[I-2]=arguments[I];const F=E.length,B=F-w,j=this._rows.length;let X,G;if(B<0)for(h===j&&(this._rows[j-1]=void 0),X=y;X<=j;X++)if(G=this._rows[X-1],G){const V=this.getRow(X+B);V.values=G.values,V.style=G.style,V.height=G.height,G.eachCell({includeEmpty:!0},(J,H)=>{V.getCell(H).style=J.style}),this._rows[X-1]=void 0}else this._rows[X+B-1]=void 0;else if(B>0)for(X=j;X>=y;X--)if(G=this._rows[X-1],G){const V=this.getRow(X+B);V.values=G.values,V.style=G.style,V.height=G.height,G.eachCell({includeEmpty:!0},(J,H)=>{if(V.getCell(H).style=J.style,J._value.constructor.name==="MergeValue"){const M=this.getRow(J._row._number+F).getCell(H),T=J._value._master,_=this.getRow(T._row._number+F).getCell(T._column._number);M.merge(_)}})}else this._rows[X+B-1]=void 0;for(X=0;X<F;X++){const V=this.getRow(h+X);V.style={},V.values=E[X]}this.workbook.definedNames.spliceRows(this.name,h,w,F)}eachRow(h,w){if(w||(w=h,h=void 0),h&&h.includeEmpty){const y=this._rows.length;for(let S=1;S<=y;S++)w(this.getRow(S),S)}else this._rows.forEach(y=>{y&&y.hasValues&&w(y,y.number)})}getSheetValues(){const h=[];return this._rows.forEach(w=>{w&&(h[w.number]=w.values)}),h}findCell(h,w){const y=c.getAddress(h,w),S=this._rows[y.row-1];return S?S.findCell(y.col):void 0}getCell(h,w){const y=c.getAddress(h,w);return this.getRow(y.row).getCellEx(y)}mergeCells(){for(var h=arguments.length,w=new Array(h),y=0;y<h;y++)w[y]=arguments[y];const S=new u(w);this._mergeCellsInternal(S)}mergeCellsWithoutStyle(){for(var h=arguments.length,w=new Array(h),y=0;y<h;y++)w[y]=arguments[y];const S=new u(w);this._mergeCellsInternal(S,!0)}_mergeCellsInternal(h,w){f.each(this._merges,S=>{if(S.intersects(h))throw new Error("Cannot merge already merged cells")});const y=this.getCell(h.top,h.left);for(let S=h.top;S<=h.bottom;S++)for(let E=h.left;E<=h.right;E++)(S>h.top||E>h.left)&&this.getCell(S,E).merge(y,w);this._merges[y.address]=h}_unMergeMaster(h){const w=this._merges[h.address];if(w){for(let y=w.top;y<=w.bottom;y++)for(let S=w.left;S<=w.right;S++)this.getCell(y,S).unmerge();delete this._merges[h.address]}}get hasMerges(){return f.some(this._merges,Boolean)}unMergeCells(){for(var h=arguments.length,w=new Array(h),y=0;y<h;y++)w[y]=arguments[y];const S=new u(w);for(let E=S.top;E<=S.bottom;E++)for(let I=S.left;I<=S.right;I++){const F=this.findCell(E,I);F&&(F.type===n.ValueType.Merge?this._unMergeMaster(F.master):this._merges[F.address]&&this._unMergeMaster(F))}}fillFormula(h,w,y){let S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const E=c.decode(h),{top:I,left:F,bottom:B,right:j}=E,X=j-F+1,G=c.encodeAddress(I,F),V=S==="shared";let J;typeof y=="function"?J=y:Array.isArray(y)?Array.isArray(y[0])?J=(M,T)=>y[M-I][T-F]:J=(M,T)=>y[(M-I)*X+(T-F)]:J=()=>{};let H=!0;for(let M=I;M<=B;M++)for(let T=F;T<=j;T++)H?(this.getCell(M,T).value={shareType:S,formula:w,ref:h,result:J(M,T)},H=!1):this.getCell(M,T).value=V?{sharedFormula:G,result:J(M,T)}:J(M,T)}addImage(h,w){const y={type:"image",imageId:h,range:w};this._media.push(new r(this,y))}getImages(){return this._media.filter(h=>h.type==="image")}addBackgroundImage(h){const w={type:"background",imageId:h};this._media.push(new r(this,w))}getBackgroundImageId(){const h=this._media.find(w=>w.type==="background");return h&&h.imageId}protect(h,w){return new Promise(y=>{this.sheetProtection={sheet:!0},w&&"spinCount"in w&&(w.spinCount=Number.isFinite(w.spinCount)?Math.round(Math.max(0,w.spinCount)):1e5),h&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=l.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=w&&"spinCount"in w?w.spinCount:1e5,this.sheetProtection.hashValue=l.convertPasswordToHash(h,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),w&&(this.sheetProtection=Object.assign(this.sheetProtection,w),!h&&"spinCount"in w&&delete this.sheetProtection.spinCount),y()})}unprotect(){this.sheetProtection=null}addTable(h){const w=new i(this,h);return this.tables[h.name]=w,w}getTable(h){return this.tables[h]}removeTable(h){delete this.tables[h]}getTables(){return Object.values(this.tables)}addConditionalFormatting(h){this.conditionalFormattings.push(h)}removeConditionalFormatting(h){typeof h=="number"?this.conditionalFormattings.splice(h,1):h instanceof Function?this.conditionalFormattings=this.conditionalFormattings.filter(h):this.conditionalFormattings=[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(h){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=h}get model(){const h={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(S=>S.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(S=>S.model),conditionalFormattings:this.conditionalFormattings};h.cols=t.toModel(this.columns);const w=h.rows=[],y=h.dimensions=new u;return this._rows.forEach(S=>{const E=S&&S.model;E&&(y.expand(E.number,E.min,E.number,E.max),w.push(E))}),h.merges=[],f.each(this._merges,S=>{h.merges.push(S.range)}),h}_parseRows(h){this._rows=[],h.rows.forEach(w=>{const y=new s(this,w.number);this._rows[y.number-1]=y,y.model=w})}_parseMergeCells(h){f.each(h.mergeCells,w=>{this.mergeCellsWithoutStyle(w)})}set model(h){this.name=h.name,this._columns=t.fromModel(this,h.cols),this._parseRows(h),this._parseMergeCells(h),this.dataValidations=new o(h.dataValidations),this.properties=h.properties,this.pageSetup=h.pageSetup,this.headerFooter=h.headerFooter,this.views=h.views,this.autoFilter=h.autoFilter,this._media=h.media.map(w=>new r(this,w)),this.sheetProtection=h.sheetProtection,this.tables=h.tables.reduce((w,y)=>{const S=new i;return S.model=y,w[y.name]=S,w},{}),this.conditionalFormattings=h.conditionalFormattings}}d.exports=g},{"../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(e,d,m){e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const f={Workbook:e("./doc/workbook")},c=e("./doc/enums");Object.keys(c).forEach(u=>{f[u]=c[u]}),d.exports=f},{"./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(e,d,m){const f=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");function c(u){return typeof u=="string"?u:f?f.decode(u):u.toString()}m.bufferToString=c},{}],17:[function(e,d,m){const f=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:c}=e("buffer");function u(s){return typeof s!="string"?s:f?c.from(f.encode(s).buffer):c.from(s)}m.stringToBuffer=u},{buffer:220}],18:[function(e,d,m){const f=e("./under-dash"),c=e("./col-cache");class u{constructor(t){this.template=t,this.sheets={}}addCell(t){this.addCellEx(c.decodeEx(t))}getCell(t){return this.findCellEx(c.decodeEx(t),!0)}findCell(t){return this.findCellEx(c.decodeEx(t),!1)}findCellAt(t,n,r){const i=this.sheets[t],o=i&&i[n];return o&&o[r]}addCellEx(t){if(t.top)for(let n=t.top;n<=t.bottom;n++)for(let r=t.left;r<=t.right;r++)this.getCellAt(t.sheetName,n,r);else this.findCellEx(t,!0)}getCellEx(t){return this.findCellEx(t,!0)}findCellEx(t,n){const r=this.findSheet(t,n),i=this.findSheetRow(r,t,n);return this.findRowCell(i,t,n)}getCellAt(t,n,r){const i=this.sheets[t]||(this.sheets[t]=[]),o=i[n]||(i[n]=[]);return o[r]||(o[r]={sheetName:t,address:c.n2l(r)+n,row:n,col:r})}removeCellEx(t){const n=this.findSheet(t);if(!n)return;const r=this.findSheetRow(n,t);r&&delete r[t.col]}forEachInSheet(t,n){const r=this.sheets[t];r&&r.forEach((i,o)=>{i&&i.forEach((l,a)=>{l&&n(l,o,a)})})}forEach(t){f.each(this.sheets,(n,r)=>{this.forEachInSheet(r,t)})}map(t){const n=[];return this.forEach(r=>{n.push(t(r))}),n}findSheet(t,n){const r=t.sheetName;if(this.sheets[r])return this.sheets[r];if(n)return this.sheets[r]=[]}findSheetRow(t,n,r){const{row:i}=n;if(t&&t[i])return t[i];if(r)return t[i]=[]}findRowCell(t,n,r){const{col:i}=n;if(t&&t[i])return t[i];if(r)return t[i]=this.template?Object.assign(n,JSON.parse(JSON.stringify(this.template))):n}spliceRows(t,n,r,i){const o=this.sheets[t];if(o){const l=[];for(let a=0;a<i;a++)l.push([]);o.splice(n,r,...l)}}spliceColumns(t,n,r,i){const o=this.sheets[t];if(o){const l=[];for(let a=0;a<i;a++)l.push(null);f.each(o,a=>{a.splice(n,r,...l)})}}}d.exports=u},{"./col-cache":19,"./under-dash":26}],19:[function(e,d,m){const f=/^[A-Z]+\d+$/,c={_dictionary:["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"],_l2nFill:0,_l2n:{},_n2l:[],_level(u){return u<=26?1:u<=676?2:3},_fill(u){let s,t,n,r,i,o=1;if(u>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&u>=1){for(;o<=26;)s=this._dictionary[o-1],this._n2l[o]=s,this._l2n[s]=o,o++;this._l2nFill=1}if(this._l2nFill<2&&u>=2){for(o=27;o<=702;)t=o-27,n=t%26,r=Math.floor(t/26),s=this._dictionary[r]+this._dictionary[n],this._n2l[o]=s,this._l2n[s]=o,o++;this._l2nFill=2}if(this._l2nFill<3&&u>=3){for(o=703;o<=16384;)t=o-703,n=t%26,r=Math.floor(t/26)%26,i=Math.floor(t/676),s=this._dictionary[i]+this._dictionary[r]+this._dictionary[n],this._n2l[o]=s,this._l2n[s]=o,o++;this._l2nFill=3}},l2n(u){if(this._l2n[u]||this._fill(u.length),!this._l2n[u])throw new Error(`Out of bounds. Invalid column letter: ${u}`);return this._l2n[u]},n2l(u){if(u<1||u>16384)throw new Error(`${u} is out of bounds. Excel supports columns from 1 to 16384`);return this._n2l[u]||this._fill(this._level(u)),this._n2l[u]},_hash:{},validateAddress(u){if(!f.test(u))throw new Error(`Invalid Address: ${u}`);return!0},decodeAddress(u){const s=u.length<5&&this._hash[u];if(s)return s;let t=!1,n="",r=0,i=!1,o="",l=0;for(let g=0,v;g<u.length;g++)if(v=u.charCodeAt(g),!i&&v>=65&&v<=90)t=!0,n+=u[g],r=r*26+v-64;else if(v>=48&&v<=57)i=!0,o+=u[g],l=l*10+v-48;else if(i&&t&&v!==36)break;if(!t)r=void 0;else if(r>16384)throw new Error(`Out of bounds. Invalid column letter: ${n}`);i||(l=void 0),u=n+o;const a={address:u,col:r,row:l,$col$row:`$${n}$${o}`};return r<=100&&l<=100&&(this._hash[u]=a,this._hash[a.$col$row]=a),a},getAddress(u,s){if(s){const t=this.n2l(s)+u;return this.decodeAddress(t)}return this.decodeAddress(u)},decode(u){const s=u.split(":");if(s.length===2){const t=this.decodeAddress(s[0]),n=this.decodeAddress(s[1]),r={top:Math.min(t.row,n.row),left:Math.min(t.col,n.col),bottom:Math.max(t.row,n.row),right:Math.max(t.col,n.col)};return r.tl=this.n2l(r.left)+r.top,r.br=this.n2l(r.right)+r.bottom,r.dimensions=`${r.tl}:${r.br}`,r}return this.decodeAddress(u)},decodeEx(u){const s=u.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),t=s[1]||s[2],n=s[3],r=n.split(":");if(r.length>1){let o=this.decodeAddress(r[0]),l=this.decodeAddress(r[1]);const a=Math.min(o.row,l.row),g=Math.min(o.col,l.col),v=Math.max(o.row,l.row),h=Math.max(o.col,l.col);return o=this.n2l(g)+a,l=this.n2l(h)+v,{top:a,left:g,bottom:v,right:h,sheetName:t,tl:{address:o,col:g,row:a,$col$row:`$${this.n2l(g)}$${a}`,sheetName:t},br:{address:l,col:h,row:v,$col$row:`$${this.n2l(h)}$${v}`,sheetName:t},dimensions:`${o}:${l}`}}if(n.startsWith("#"))return t?{sheetName:t,error:n}:{error:n};const i=this.decodeAddress(n);return t?{sheetName:t,...i}:i},encodeAddress(u,s){return c.n2l(s)+u},encode(){switch(arguments.length){case 2:return c.encodeAddress(arguments[0],arguments[1]);case 4:return`${c.encodeAddress(arguments[0],arguments[1])}:${c.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(u,s){const[t,n,,r,i]=u,[o,l]=s;return o>=t&&o<=r&&l>=n&&l<=i}};d.exports=c},{}],20:[function(e,d,m){const f=(t,n)=>({...t,...n.reduce((r,i)=>(t[i]&&(r[i]={...t[i]}),r),{})}),c=function(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];t[r]&&(n[r]=f(t[r],i))},u=t=>Object.keys(t).length===0,s=t=>{if(!t)return t;if(u(t))return{};const n={...t};return c(t,n,"font",["color"]),c(t,n,"alignment"),c(t,n,"protection"),t.border&&(c(t,n,"border"),c(t.border,n.border,"top",["color"]),c(t.border,n.border,"left",["color"]),c(t.border,n.border,"bottom",["color"]),c(t.border,n.border,"right",["color"]),c(t.border,n.border,"diagonal",["color"])),t.fill&&(c(t,n,"fill",["fgColor","bgColor","center"]),t.fill.stops&&(n.fill.stops=t.fill.stops.map(r=>f(r,["color"])))),n};m.copyStyle=s},{}],21:[function(e,d,m){(function(f){(function(){const c=e("crypto"),u={hash(s){const t=c.createHash(s);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.update(f.concat(r)),t.digest()},convertPasswordToHash(s,t,n,r){if(t=t.toLowerCase(),c.getHashes().indexOf(t)<0)throw new Error(`Hash algorithm '${t}' not supported!`);const o=f.from(s,"utf16le");let l=this.hash(t,f.from(n,"base64"),o);for(let a=0;a<r;a++){const g=f.alloc(4);g.writeUInt32LE(a,0),l=this.hash(t,l,g)}return l.toString("base64")},randomBytes(s){return c.randomBytes(s)}};d.exports=u}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,d,m){const{SaxesParser:f}=e("saxes"),{PassThrough:c}=e("readable-stream"),{bufferToString:u}=e("./browser-buffer-decode");d.exports=async function*(s){s.pipe&&!s[Symbol.asyncIterator]&&(s=s.pipe(new c));const t=new f;let n;t.on("error",i=>{n=i});let r=[];t.on("opentag",i=>r.push({eventType:"opentag",value:i})),t.on("text",i=>r.push({eventType:"text",value:i})),t.on("closetag",i=>r.push({eventType:"closetag",value:i}));for await(const i of s){if(t.write(u(i)),n)throw n;yield r,r=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,d,m){const f=e("./col-cache"),c=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,u=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;function s(t,n,r){const i=f.decode(n),o=f.decode(r);return t.replace(c,(l,a,g,v,h)=>{if(h)return l;const w=u.exec(v);if(w){const y=w[1],S=w[2].toUpperCase(),E=w[3],I=w[4];if(S.length>3||S.length===3&&S>"XFD")return l;let F=f.l2n(S),B=parseInt(I,10);return y||(F+=o.col-i.col),E||(B+=o.row-i.row),(a||"")+(y||"")+f.n2l(F)+(E||"")+B}return l})}d.exports={slideFormula:s}},{"./col-cache":19}],24:[function(e,d,m){(function(f,c){(function(){const u=e("readable-stream"),s=e("./utils"),t=e("./string-buf");class n{constructor(g,v){this._data=g,this._encoding=v}get length(){return this.toBuffer().length}copy(g,v,h,w){return this.toBuffer().copy(g,v,h,w)}toBuffer(){return this._buffer||(this._buffer=c.from(this._data,this._encoding)),this._buffer}}class r{constructor(g){this._data=g}get length(){return this._data.length}copy(g,v,h,w){return this._data._buf.copy(g,v,h,w)}toBuffer(){return this._data.toBuffer()}}class i{constructor(g){this._data=g}get length(){return this._data.length}copy(g,v,h,w){this._data.copy(g,v,h,w)}toBuffer(){return this._data}}class o{constructor(g){this.size=g,this.buffer=c.alloc(g),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const g=c.alloc(this.iWrite-this.iRead);return this.buffer.copy(g,0,this.iRead,this.iWrite),g}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(g){let v;return g===0?null:g===void 0||g>=this.length?(v=this.toBuffer(),this.iRead=this.iWrite,v):(v=c.alloc(g),this.buffer.copy(v,0,this.iRead,g),this.iRead+=g,v)}write(g,v,h){const w=Math.min(h,this.size-this.iWrite);return g.copy(this.buffer,this.iWrite,v,v+w),this.iWrite+=w,w}}const l=function(a){a=a||{},this.bufSize=a.bufSize||1024*1024,this.buffers=[],this.batch=a.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};s.inherits(l,u.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return c.concat(this.buffers.map(a=>a.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const g=this.buffers[this.buffers.length-1];if(!g.full)return g}const a=new o(this.bufSize);return this.buffers.push(a),a},async _pipe(a){const g=function(v){return new Promise(h=>{v.write(a.toBuffer(),()=>{h()})})};await Promise.all(this.pipes.map(g))},_writeToBuffers(a){let g=0;const v=a.length;for(;g<v;){const h=this._getWritableBuffer();g+=h.write(a,g,v-g)}},async write(a,g,v){g instanceof Function&&(v=g,g="utf8"),v=v||s.nop;let h;if(a instanceof t)h=new r(a);else if(a instanceof c)h=new i(a);else if(typeof a=="string"||a instanceof String||a instanceof ArrayBuffer)h=new n(a,g);else throw new Error("Chunk must be one of type String, Buffer or StringBuf.");if(this.pipes.length)if(this.batch)for(this._writeToBuffers(h);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(h),f.nextTick(v)):(await this._pipe(h),v());else this.paused||this.emit("data",h.toBuffer()),this._writeToBuffers(h),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(a,g,v){const h=w=>{w?v(w):(this._flush(),this.pipes.forEach(y=>{y.end()}),this.emit("finish"))};a?this.write(a,g,h):h()},read(a){let g;if(a){for(g=[];a&&this.buffers.length&&!this.buffers[0].eod;){const v=this.buffers[0],h=v.read(a);a-=h.length,g.push(h),v.eod&&v.full&&this.buffers.shift()}return c.concat(g)}return g=this.buffers.map(v=>v.toBuffer()).filter(Boolean),this.buffers=[],c.concat(g)},setEncoding(a){this.encoding=a},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(a){this.pipes.push(a),!this.paused&&this.buffers.length&&this.end()},unpipe(a){this.pipes=this.pipes.filter(g=>g!==a)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),d.exports=l}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,d,m){(function(f){(function(){class c{constructor(s){this._buf=f.alloc(s&&s.size||16384),this._encoding=s&&s.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=f.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(s){s=s||0,this._buffer=void 0,this._inPos=s}_grow(s){let t=this._buf.length*2;for(;t<s;)t*=2;const n=f.alloc(t);this._buf.copy(n,0),this._buf=n}addText(s){this._buffer=void 0;let t=this._inPos+this._buf.write(s,this._inPos,this._encoding);for(;t>=this._buf.length-4;)this._grow(this._inPos+s.length),t=this._inPos+this._buf.write(s,this._inPos,this._encoding);this._inPos=t}addStringBuf(s){s.length&&(this._buffer=void 0,this.length+s.length>this.capacity&&this._grow(this.length+s.length),s._buf.copy(this._buf,this._inPos,0,s.length),this._inPos+=s.length)}}d.exports=c}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,d,m){const{toString:f}=Object.prototype,c=/["&<>]/,u={each:function(t,n){t&&(Array.isArray(t)?t.forEach(n):Object.keys(t).forEach(r=>{n(t[r],r)}))},some:function(t,n){return t?Array.isArray(t)?t.some(n):Object.keys(t).some(r=>n(t[r],r)):!1},every:function(t,n){return t?Array.isArray(t)?t.every(n):Object.keys(t).every(r=>n(t[r],r)):!0},map:function(t,n){return t?Array.isArray(t)?t.map(n):Object.keys(t).map(r=>n(t[r],r)):[]},keyBy(s,t){return s.reduce((n,r)=>(n[r[t]]=r,n),{})},isEqual:function(t,n){const r=typeof t,i=typeof n,o=Array.isArray(t),l=Array.isArray(n);let a;if(r!==i)return!1;switch(typeof t){case"object":if(o||l)return o&&l?t.length===n.length&&t.every((g,v)=>{const h=n[v];return u.isEqual(g,h)}):!1;if(t===null||n===null)return t===n;if(a=Object.keys(t),Object.keys(n).length!==a.length)return!1;for(const g of a)if(!n.hasOwnProperty(g))return!1;return u.every(t,(g,v)=>{const h=n[v];return u.isEqual(g,h)});default:return t===n}},escapeHtml(s){const t=c.exec(s);if(!t)return s;let n="",r="",i=0,o=t.index;for(;o<s.length;o++){switch(s.charAt(o)){case'"':r=""";break;case"&":r="&";break;case"'":r="'";break;case"<":r="<";break;case">":r=">";break;default:continue}i!==o&&(n+=s.substring(i,o)),i=o+1,n+=r}return i!==o?n+s.substring(i,o):n},strcmp(s,t){return s<t?-1:s>t?1:0},isUndefined(s){return f.call(s)==="[object Undefined]"},isObject(s){return f.call(s)==="[object Object]"},deepMerge(){const s=arguments[0]||{},{length:t}=arguments;let n,r,i;function o(l,a){n=s[a],i=Array.isArray(l),u.isObject(l)||i?(i?(i=!1,r=n&&Array.isArray(n)?n:[]):r=n&&u.isObject(n)?n:{},s[a]=u.deepMerge(r,l)):u.isUndefined(l)||(s[a]=l)}for(let l=0;l<t;l++)u.each(arguments[l],o);return s}};d.exports=u},{}],27:[function(e,d,m){(function(f,c){(function(){const u=e("fs"),s=function(r,i,o,l){r.super_=i,l||(l=o,o=null),o&&Object.keys(o).forEach(g=>{Object.defineProperty(r,g,Object.getOwnPropertyDescriptor(o,g))});const a={constructor:{value:r,enumerable:!1,writable:!1,configurable:!0}};l&&Object.keys(l).forEach(g=>{a[g]=Object.getOwnPropertyDescriptor(l,g)}),r.prototype=Object.create(i.prototype,a)},t=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,n={nop(){},promiseImmediate(r){return new Promise(i=>{f.setImmediate?c(()=>{i(r)}):setTimeout(()=>{i(r)},1)})},inherits:s,dateToExcel(r,i){return 25569+r.getTime()/(24*3600*1e3)-(i?1462:0)},excelToDate(r,i){const o=Math.round((r-25569+(i?1462:0))*24*3600*1e3);return new Date(o)},parsePath(r){const i=r.lastIndexOf("/");return{path:r.substring(0,i),name:r.substring(i+1)}},getRelsPath(r){const i=n.parsePath(r);return`${i.path}/_rels/${i.name}.rels`},xmlEncode(r){const i=t.exec(r);if(!i)return r;let o="",l="",a=0,g=i.index;for(;g<r.length;g++){const v=r.charCodeAt(g);switch(v){case 34:l=""";break;case 38:l="&";break;case 39:l="'";break;case 60:l="<";break;case 62:l=">";break;case 127:l="";break;default:{if(v<=31&&(v<=8||v>=11&&v!==13)){l="";break}continue}}a!==g&&(o+=r.substring(a,g)),a=g+1,l&&(o+=l)}return a!==g?o+r.substring(a,g):o},xmlDecode(r){return r.replace(/&([a-z]*);/g,i=>{switch(i){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return i}})},validInt(r){const i=parseInt(r,10);return Number.isNaN(i)?0:i},isDateFmt(r){return r?(r=r.replace(/\[[^\]]*]/g,""),r=r.replace(/"[^"]*"/g,""),r.match(/[ymdhMsb]+/)!==null):!1},fs:{exists(r){return new Promise(i=>{u.access(r,u.constants.F_OK,o=>{i(!o)})})}},toIsoDateString(r){return r.toIsoString().subsstr(0,10)},parseBoolean(r){return r===!0||r==="true"||r===1||r==="1"}};d.exports=n}).call(this)}).call(this,typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,d,m){const f=e("./under-dash"),c=e("./utils"),u="<",s=">",t="</",n="/>";function r(l,a,g){l.push(` ${a}="${c.xmlEncode(g.toString())}"`)}function i(l,a){if(a){const g=[];f.each(a,(v,h)=>{v!==void 0&&r(g,h,v)}),l.push(g.join(""))}}class o{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(a){const g=this._xml;g.push("<?xml"),i(g,a),g.push(`?>
|
||
`)}openNode(a,g){const v=this.tos,h=this._xml;v&&this.open&&h.push(s),this._stack.push(a),h.push(u),h.push(a),i(h,g),this.leaf=!0,this.open=!0}addAttribute(a,g){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");g!==void 0&&r(this._xml,a,g)}addAttributes(a){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");i(this._xml,a)}writeText(a){const g=this._xml;this.open&&(g.push(s),this.open=!1),this.leaf=!1,g.push(c.xmlEncode(a.toString()))}writeXml(a){this.open&&(this._xml.push(s),this.open=!1),this.leaf=!1,this._xml.push(a)}closeNode(){const a=this._stack.pop(),g=this._xml;this.leaf?g.push(n):(g.push(t),g.push(a),g.push(s)),this.open=!1,this.leaf=!1}leafNode(a,g,v){this.openNode(a,g),v!==void 0&&this.writeText(v),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const a=this._rollbacks.pop();this._xml.length>a.xml&&this._xml.splice(a.xml,this._xml.length-a.xml),this._stack.length>a.stack&&this._stack.splice(a.stack,this._stack.length-a.stack),this.leaf=a.leaf,this.open=a.open}get xml(){return this.closeAll(),this._xml.join("")}}o.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},d.exports=o},{"./under-dash":26,"./utils":27}],29:[function(e,d,m){(function(f){(function(){const c=e("events"),u=e("jszip"),s=e("./stream-buf"),{stringToBuffer:t}=e("./browser-buffer-encode");class n extends c.EventEmitter{constructor(i){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},i),this.zip=new u,this.stream=new s}append(i,o){o.hasOwnProperty("base64")&&o.base64?this.zip.file(o.name,i,{base64:!0}):(f.browser&&typeof i=="string"&&(i=t(i)),this.zip.file(o.name,i))}async finalize(){const i=await this.zip.generateAsync(this.options);this.stream.end(i),this.emit("finish")}read(i){return this.stream.read(i)}setEncoding(i){return this.stream.setEncoding(i)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(i,o){return this.stream.pipe(i,o)}unpipe(i){return this.stream.unpipe(i)}unshift(i){return this.stream.unshift(i)}wrap(i){return this.stream.wrap(i)}}d.exports={ZipWriter:n}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,d,m){d.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(e,d,m){d.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(e,d,m){const f=e("../../utils/parse-sax"),c=e("../../utils/xml-stream");class u{prepare(){}render(){}parseOpen(t){}parseText(t){}parseClose(t){}reconcile(t,n){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(t=>{t instanceof u?t.reset():t.xform&&t.xform.reset()})}mergeModel(t){this.model=Object.assign(this.model||{},t)}async parse(t){for await(const n of t)for(const{eventType:r,value:i}of n)if(r==="opentag")this.parseOpen(i);else if(r==="text")this.parseText(i);else if(r==="closetag"&&!this.parseClose(i.name))return this.model;return this.model}async parseStream(t){return this.parse(f(t))}get xml(){return this.toXml(this.model)}toXml(t){const n=new c;return this.render(n,t),n.xml}static toAttribute(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(t===void 0){if(r)return n}else if(r||t!==n)return t.toString()}static toStringAttribute(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.toAttribute(t,n,r)}static toStringValue(t,n){return t===void 0?n:t}static toBoolAttribute(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(t===void 0){if(r)return n}else if(r||t!==n)return t?"1":"0"}static toBoolValue(t,n){return t===void 0?n:t==="1"}static toIntAttribute(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.toAttribute(t,n,r)}static toIntValue(t,n){return t===void 0?n:parseInt(t,10)}static toFloatAttribute(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.toAttribute(t,n,r)}static toFloatValue(t,n){return t===void 0?n:parseFloat(t)}}d.exports=u},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,d,m){const f=e("../base-xform"),c=e("../../../utils/col-cache");class u extends f{render(r,i){r.openNode("definedName",{name:i.name,localSheetId:i.localSheetId}),r.writeText(i.ranges.join(",")),r.closeNode()}parseOpen(r){switch(r.name){case"definedName":return this._parsedName=r.attributes.name,this._parsedLocalSheetId=r.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(r){this._parsedText.push(r)}parseClose(){return this.model={name:this._parsedName,ranges:t(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}function s(n){try{return c.decodeEx(n),!0}catch{return!1}}function t(n){const r=[];let i=!1,o="";return n.split(",").forEach(l=>{if(!l)return;const a=(l.match(/'/g)||[]).length;if(!a){i?o+=`${l},`:s(l)&&r.push(l);return}const g=a%2===0;!i&&g&&s(l)?r.push(l):i&&!g?(i=!1,s(o+l)&&r.push(o+l),o=""):(i=!0,o+=`${l},`)}),r}d.exports=u},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,d,m){const f=e("../../../utils/utils"),c=e("../base-xform");class u extends c{render(t,n){t.leafNode("sheet",{sheetId:n.id,name:n.name,state:n.state,"r:id":n.rId})}parseOpen(t){return t.name==="sheet"?(this.model={name:f.xmlDecode(t.attributes.name),id:parseInt(t.attributes.sheetId,10),state:t.attributes.state,rId:t.attributes["r:id"]},!0):!1}parseText(){}parseClose(){return!1}}d.exports=u},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,d,m){const f=e("../base-xform");class c extends f{render(s,t){s.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}parseOpen(s){return s.name==="calcPr"?(this.model={},!0):!1}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],36:[function(e,d,m){const f=e("../base-xform");class c extends f{render(s,t){s.leafNode("workbookPr",{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(s){return s.name==="workbookPr"?(this.model={date1904:s.attributes.date1904==="1"},!0):!1}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],37:[function(e,d,m){const f=e("../base-xform");class c extends f{render(s,t){const n={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&t.visibility!=="visible"&&(n.visibility=t.visibility),s.leafNode("workbookView",n)}parseOpen(s){if(s.name==="workbookView"){const t=this.model={},n=function(i,o,l){const a=o!==void 0?t[i]=o:l;a!==void 0&&(t[i]=a)},r=function(i,o,l){const a=o!==void 0?t[i]=parseInt(o,10):l;a!==void 0&&(t[i]=a)};return r("x",s.attributes.xWindow,0),r("y",s.attributes.yWindow,0),r("width",s.attributes.windowWidth,25e3),r("height",s.attributes.windowHeight,1e4),n("visibility",s.attributes.visibility,"visible"),r("activeTab",s.attributes.activeTab,void 0),r("firstSheet",s.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],38:[function(e,d,m){const f=e("../../../utils/under-dash"),c=e("../../../utils/col-cache"),u=e("../../../utils/xml-stream"),s=e("../base-xform"),t=e("../static-xform"),n=e("../list-xform"),r=e("./defined-name-xform"),i=e("./sheet-xform"),o=e("./workbook-view-xform"),l=e("./workbook-properties-xform"),a=e("./workbook-calc-properties-xform");class g extends s{constructor(){super(),this.map={fileVersion:g.STATIC_XFORMS.fileVersion,workbookPr:new l,bookViews:new n({tag:"bookViews",count:!1,childXform:new o}),sheets:new n({tag:"sheets",count:!1,childXform:new i}),definedNames:new n({tag:"definedNames",count:!1,childXform:new r}),calcPr:new a}}prepare(h){h.sheets=h.worksheets;const w=[];let y=0;h.sheets.forEach(S=>{if(S.pageSetup&&S.pageSetup.printArea&&S.pageSetup.printArea.split("&&").forEach(E=>{const I=E.split(":"),F={name:"_xlnm.Print_Area",ranges:[`'${S.name}'!$${I[0]}:$${I[1]}`],localSheetId:y};w.push(F)}),S.pageSetup&&(S.pageSetup.printTitlesRow||S.pageSetup.printTitlesColumn)){const E=[];if(S.pageSetup.printTitlesColumn){const F=S.pageSetup.printTitlesColumn.split(":");E.push(`'${S.name}'!$${F[0]}:$${F[1]}`)}if(S.pageSetup.printTitlesRow){const F=S.pageSetup.printTitlesRow.split(":");E.push(`'${S.name}'!$${F[0]}:$${F[1]}`)}const I={name:"_xlnm.Print_Titles",ranges:E,localSheetId:y};w.push(I)}y++}),w.length&&(h.definedNames=h.definedNames.concat(w)),(h.media||[]).forEach((S,E)=>{S.name=S.type+(E+1)})}render(h,w){h.openXml(u.StdDocAttributes),h.openNode("workbook",g.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(h),this.map.workbookPr.render(h,w.properties),this.map.bookViews.render(h,w.views),this.map.sheets.render(h,w.sheets),this.map.definedNames.render(h,w.definedNames),this.map.calcPr.render(h,w.calcProperties),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"workbook":return!0;default:return this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h),!0}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.parser=void 0),!0;switch(h){case"workbook":return 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;default:return!0}}reconcile(h){const w=(h.workbookRels||[]).reduce((F,B)=>(F[B.Id]=B,F),{}),y=[];let S,E=0;(h.sheets||[]).forEach(F=>{const B=w[F.rId];B&&(S=h.worksheetHash[`xl/${B.Target.replace(/^(\s|\/xl\/)+/,"")}`],S&&(S.name=F.name,S.id=F.id,S.state=F.state,y[E++]=S))});const I=[];f.each(h.definedNames,F=>{if(F.name==="_xlnm.Print_Area"){if(S=y[F.localSheetId],S){S.pageSetup||(S.pageSetup={});const B=c.decodeEx(F.ranges[0]);S.pageSetup.printArea=S.pageSetup.printArea?`${S.pageSetup.printArea}&&${B.dimensions}`:B.dimensions}}else if(F.name==="_xlnm.Print_Titles"){if(S=y[F.localSheetId],S){S.pageSetup||(S.pageSetup={});const B=F.ranges.join(","),j=/\$/g,X=/\$\d+:\$\d+/,G=B.match(X);if(G&&G.length){const H=G[0];S.pageSetup.printTitlesRow=H.replace(j,"")}const V=/\$[A-Z]+:\$[A-Z]+/,J=B.match(V);if(J&&J.length){const H=J[0];S.pageSetup.printTitlesColumn=H.replace(j,"")}}}else I.push(F)}),h.definedNames=I,h.media.forEach((F,B)=>{F.index=B})}}g.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"},g.STATIC_XFORMS={fileVersion:new t({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},d.exports=g},{"../../../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(e,d,m){const f=e("../strings/rich-text-xform"),c=e("../../../utils/utils"),u=e("../base-xform"),s=d.exports=function(t){this.model=t};c.inherits(s,u,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new f),this._richTextXform},render(t,n){n=n||this.model,t.openNode("comment",{ref:n.ref,authorId:0}),t.openNode("text"),n&&n.note&&n.note.texts&&n.note.texts.forEach(r=>{this.richTextXform.render(t,r)}),t.closeNode(),t.closeNode()},parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case"comment":return this.model={type:"note",note:{texts:[]},...t.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(t),!0;default:return!1}},parseText(t){this.parser&&this.parser.parseText(t)},parseClose(t){switch(t){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(t),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,d,m){const f=e("../../../utils/xml-stream"),c=e("../../../utils/utils"),u=e("../base-xform"),s=e("./comment-xform"),t=d.exports=function(){this.map={comment:new s}};c.inherits(t,u,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(n,r){r=r||this.model,n.openXml(f.StdDocAttributes),n.openNode("comments",t.COMMENTS_ATTRIBUTES),n.openNode("authors"),n.leafNode("author",null,"Author"),n.closeNode(),n.openNode("commentList"),r.comments.forEach(i=>{this.map.comment.render(n,i)}),n.closeNode(),n.closeNode()},parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(n),!0;default:return!1}},parseText(n){this.parser&&this.parser.parseText(n)},parseClose(n){switch(n){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(n),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,d,m){const f=e("../../base-xform");class c extends f{constructor(s){super(),this._model=s}get tag(){return this._model&&this._model.tag}render(s,t,n){t===n[2]?s.leafNode(this.tag):this.tag==="x:SizeWithCells"&&t===n[1]&&s.leafNode(this.tag)}parseOpen(s){switch(s.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}d.exports=c},{"../../base-xform":32}],42:[function(e,d,m){const f=e("../../base-xform");class c extends f{constructor(s){super(),this._model=s}get tag(){return this._model&&this._model.tag}render(s,t){s.leafNode(this.tag,null,t)}parseOpen(s){switch(s.name){case this.tag:return this.text="",!0;default:return!1}}parseText(s){this.text=s}parseClose(){return!1}}d.exports=c},{"../../base-xform":32}],43:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"x:Anchor"}getAnchorRect(s){const t=Math.floor(s.left),n=Math.floor((s.left-t)*68),r=Math.floor(s.top),i=Math.floor((s.top-r)*18),o=Math.floor(s.right),l=Math.floor((s.right-o)*68),a=Math.floor(s.bottom),g=Math.floor((s.bottom-a)*18);return[t,n,r,i,o,l,a,g]}getDefaultRect(s){const t=s.col,n=6,r=Math.max(s.row-2,0),i=14,o=t+2,l=2,a=r+4;return[t,n,r,i,o,l,a,16]}render(s,t){const n=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);s.leafNode("x:Anchor",null,n.join(", "))}parseOpen(s){switch(s.name){case this.tag:return this.text="",!0;default:return!1}}parseText(s){this.text=s}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],44:[function(e,d,m){const f=e("../base-xform"),c=e("./vml-anchor-xform"),u=e("./style/vml-protection-xform"),s=e("./style/vml-position-xform"),t=["twoCells","oneCells","absolute"];class n extends f{constructor(){super(),this.map={"x:Anchor":new c,"x:Locked":new u({tag:"x:Locked"}),"x:LockText":new u({tag:"x:LockText"}),"x:SizeWithCells":new s({tag:"x:SizeWithCells"}),"x:MoveWithCells":new s({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(i,o){const{protection:l,editAs:a}=o.note;i.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(i,a,t),this.map["x:SizeWithCells"].render(i,a,t),this.map["x:Anchor"].render(i,o),this.map["x:Locked"].render(i,l.locked),i.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(i,l.lockText),i.leafNode("x:Row",null,o.refAddress.row-1),i.leafNode("x:Column",null,o.refAddress.col-1),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i);break}return!0}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const i=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),o=Object.keys(i).length;this.model.editAs=t[o],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}}d.exports=n},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,d,m){const f=e("../../../utils/xml-stream"),c=e("../base-xform"),u=e("./vml-shape-xform");class s extends c{constructor(){super(),this.map={"v:shape":new u}}get tag(){return"xml"}render(n,r){n.openXml(f.StdDocAttributes),n.openNode(this.tag,s.DRAWING_ATTRIBUTES),n.openNode("o:shapelayout",{"v:ext":"edit"}),n.leafNode("o:idmap",{"v:ext":"edit",data:1}),n.closeNode(),n.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),n.leafNode("v:stroke",{joinstyle:"miter"}),n.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),n.closeNode(),r.comments.forEach((i,o)=>{this.map["v:shape"].render(n,i,o)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n);break}return!0}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(n){case this.tag:return!1;default:return!0}}reconcile(n,r){n.anchors.forEach(i=>{i.br?this.map["xdr:twoCellAnchor"].reconcile(i,r):this.map["xdr:oneCellAnchor"].reconcile(i,r)})}}s.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"},d.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,d,m){const f=e("../base-xform"),c=e("./vml-textbox-xform"),u=e("./vml-client-data-xform");class s extends f{constructor(){super(),this.map={"v:textbox":new c,"x:ClientData":new u}}get tag(){return"v:shape"}render(n,r,i){n.openNode("v:shape",s.V_SHAPE_ATTRIBUTES(r,i)),n.leafNode("v:fill",{color2:"infoBackground [80]"}),n.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),n.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(n,r),this.map["x:ClientData"].render(n,r),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset(),this.model={margins:{insetmode:n.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n);break}return!0}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return 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;default:return!0}}}s.V_SHAPE_ATTRIBUTES=(t,n)=>({id:`_x0000_s${1025+n}`,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":t.note.margins&&t.note.margins.insetmode}),d.exports=s},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"v:textbox"}conversionUnit(s,t,n){return`${parseFloat(s)*t.toFixed(2)}${n}`}reverseConversionUnit(s){return(s||"").split(",").map(t=>Number(parseFloat(this.conversionUnit(parseFloat(t),.1,"")).toFixed(2)))}render(s,t){const n={style:"mso-direction-alt:auto"};if(t&&t.note){let{inset:r}=t.note&&t.note.margins;Array.isArray(r)&&(r=r.map(i=>this.conversionUnit(i,10,"mm")).join(",")),r&&(n.inset=r)}s.openNode("v:textbox",n),s.leafNode("div",{style:"text-align:left"}),s.closeNode()}parseOpen(s){switch(s.name){case this.tag:return this.model={inset:this.reverseConversionUnit(s.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(s){switch(s){case this.tag:return!1;default:return!0}}}d.exports=c},{"../base-xform":32}],48:[function(e,d,m){const f=e("./base-xform");class c extends f{createNewModel(s){return{}}parseOpen(s){return this.parser=this.parser||this.map[s.name],this.parser?(this.parser.parseOpen(s),!0):s.name===this.tag?(this.model=this.createNewModel(s),!0):!1}parseText(s){this.parser&&this.parser.parseText(s)}onParserClose(s,t){this.model[s]=t.model}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.onParserClose(s,this.parser),this.parser=void 0),!0):s!==this.tag}}d.exports=c},{"./base-xform":32}],49:[function(e,d,m){const f=e("../base-xform");class c extends f{render(s,t){s.openNode("HeadingPairs"),s.openNode("vt:vector",{size:2,baseType:"variant"}),s.openNode("vt:variant"),s.leafNode("vt:lpstr",void 0,"Worksheets"),s.closeNode(),s.openNode("vt:variant"),s.leafNode("vt:i4",void 0,t.length),s.closeNode(),s.closeNode(),s.closeNode()}parseOpen(s){return s.name==="HeadingPairs"}parseText(){}parseClose(s){return s!=="HeadingPairs"}}d.exports=c},{"../base-xform":32}],50:[function(e,d,m){const f=e("../base-xform");class c extends f{render(s,t){s.openNode("TitlesOfParts"),s.openNode("vt:vector",{size:t.length,baseType:"lpstr"}),t.forEach(n=>{s.leafNode("vt:lpstr",void 0,n.name)}),s.closeNode(),s.closeNode()}parseOpen(s){return s.name==="TitlesOfParts"}parseText(){}parseClose(s){return s!=="TitlesOfParts"}}d.exports=c},{"../base-xform":32}],51:[function(e,d,m){const f=e("../../../utils/xml-stream"),c=e("../base-xform"),u=e("../simple/string-xform"),s=e("./app-heading-pairs-xform"),t=e("./app-titles-of-parts-xform");class n extends c{constructor(){super(),this.map={Company:new u({tag:"Company"}),Manager:new u({tag:"Manager"}),HeadingPairs:new s,TitleOfParts:new t}}render(i,o){i.openXml(f.StdDocAttributes),i.openNode("Properties",n.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,o.worksheets),this.map.TitleOfParts.render(i,o.worksheets),this.map.Company.render(i,o.company||""),this.map.Manager.render(i,o.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()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"Properties":return!0;default:return this.parser=this.map[i.name],this.parser?(this.parser.parseOpen(i),!0):!1}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}n.DateFormat=function(r){return r.toISOString().replace(/[.]\d{3,6}/,"")},n.DateAttrs={"xsi:type":"dcterms:W3CDTF"},n.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},d.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,d,m){const f=e("../../../utils/xml-stream"),c=e("../base-xform");class u extends c{render(t,n){t.openXml(f.StdDocAttributes),t.openNode("Types",u.PROPERTY_ATTRIBUTES);const r={};(n.media||[]).forEach(o=>{if(o.type==="image"){const l=o.extension;r[l]||(r[l]=!0,t.leafNode("Default",{Extension:l,ContentType:`image/${l}`}))}}),t.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),t.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),t.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),n.worksheets.forEach(o=>{const l=`/xl/worksheets/sheet${o.id}.xml`;t.leafNode("Override",{PartName:l,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),t.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),t.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),n.sharedStrings&&n.sharedStrings.count&&t.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),n.tables&&n.tables.forEach(o=>{t.leafNode("Override",{PartName:`/xl/tables/${o.target}`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),n.drawings&&n.drawings.forEach(o=>{t.leafNode("Override",{PartName:`/xl/drawings/${o.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),n.commentRefs&&(t.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),n.commentRefs.forEach(o=>{let{commentName:l}=o;t.leafNode("Override",{PartName:`/xl/${l}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),t.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),t.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),t.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}u.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},d.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,d,m){const f=e("../../../utils/xml-stream"),c=e("../base-xform"),u=e("../simple/date-xform"),s=e("../simple/string-xform"),t=e("../simple/integer-xform");class n extends c{constructor(){super(),this.map={"dc:creator":new s({tag:"dc:creator"}),"dc:title":new s({tag:"dc:title"}),"dc:subject":new s({tag:"dc:subject"}),"dc:description":new s({tag:"dc:description"}),"dc:identifier":new s({tag:"dc:identifier"}),"dc:language":new s({tag:"dc:language"}),"cp:keywords":new s({tag:"cp:keywords"}),"cp:category":new s({tag:"cp:category"}),"cp:lastModifiedBy":new s({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new u({tag:"cp:lastPrinted",format:n.DateFormat}),"cp:revision":new t({tag:"cp:revision"}),"cp:version":new s({tag:"cp:version"}),"cp:contentStatus":new s({tag:"cp:contentStatus"}),"cp:contentType":new s({tag:"cp:contentType"}),"dcterms:created":new u({tag:"dcterms:created",attrs:n.DateAttrs,format:n.DateFormat}),"dcterms:modified":new u({tag:"dcterms:modified",attrs:n.DateAttrs,format:n.DateFormat})}}render(i,o){i.openXml(f.StdDocAttributes),i.openNode("cp:coreProperties",n.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(i,o.creator),this.map["dc:title"].render(i,o.title),this.map["dc:subject"].render(i,o.subject),this.map["dc:description"].render(i,o.description),this.map["dc:identifier"].render(i,o.identifier),this.map["dc:language"].render(i,o.language),this.map["cp:keywords"].render(i,o.keywords),this.map["cp:category"].render(i,o.category),this.map["cp:lastModifiedBy"].render(i,o.lastModifiedBy),this.map["cp:lastPrinted"].render(i,o.lastPrinted),this.map["cp:revision"].render(i,o.revision),this.map["cp:version"].render(i,o.version),this.map["cp:contentStatus"].render(i,o.contentStatus),this.map["cp:contentType"].render(i,o.contentType),this.map["dcterms:created"].render(i,o.created),this.map["dcterms:modified"].render(i,o.modified),i.closeNode()}parseOpen(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: ${JSON.stringify(i)}`)}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(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: ${i}`)}}}n.DateFormat=function(r){return r.toISOString().replace(/[.]\d{3}/,"")},n.DateAttrs={"xsi:type":"dcterms:W3CDTF"},n.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"},d.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,d,m){const f=e("../base-xform");class c extends f{render(s,t){s.leafNode("Relationship",t)}parseOpen(s){switch(s.name){case"Relationship":return this.model=s.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],55:[function(e,d,m){const f=e("../../../utils/xml-stream"),c=e("../base-xform"),u=e("./relationship-xform");class s extends c{constructor(){super(),this.map={Relationship:new u}}render(n,r){r=r||this._values,n.openXml(f.StdDocAttributes),n.openNode("Relationships",s.RELATIONSHIPS_ATTRIBUTES),r.forEach(i=>{this.map.Relationship.render(n,i)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[n.name],this.parser)return this.parser.parseOpen(n),!0;throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(n)}`)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(n){case"Relationships":return!1;default:throw new Error(`Unexpected xml node in parseClose: ${n}`)}}}s.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},d.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,d,m){const f=e("../base-xform");class c extends f{parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset(),this.model={range:{editAs:s.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s);break}return!0}parseText(s){this.parser&&this.parser.parseText(s)}reconcilePicture(s,t){if(s&&s.rId){const r=t.rels[s.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(r){const i=r[1],o=t.mediaIndex[i];return t.media[o]}}}}d.exports=c},{"../base-xform":32}],57:[function(e,d,m){const f=e("../base-xform"),c=e("./blip-xform");class u extends f{constructor(){super(),this.map={"a:blip":new c}}get tag(){return"xdr:blipFill"}render(t,n){t.openNode(this.tag),this.map["a:blip"].render(t,n),t.openNode("a:stretch"),t.leafNode("a:fillRect"),t.closeNode(),t.closeNode()}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case this.tag:this.reset();break;default:this.parser=this.map[t.name],this.parser&&this.parser.parseOpen(t);break}return!0}parseText(){}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;switch(t){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}d.exports=u},{"../base-xform":32,"./blip-xform":58}],58:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"a:blip"}render(s,t){s.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}parseOpen(s){switch(s.name){case this.tag:return this.model={rId:s.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(s){switch(s){case this.tag:return!1;default:return!0}}}d.exports=c},{"../base-xform":32}],59:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"xdr:cNvPicPr"}render(s){s.openNode(this.tag),s.leafNode("a:picLocks",{noChangeAspect:"1"}),s.closeNode()}parseOpen(s){switch(s.name){case this.tag:return!0;default:return!0}}parseText(){}parseClose(s){switch(s){case this.tag:return!1;default:return!0}}}d.exports=c},{"../base-xform":32}],60:[function(e,d,m){const f=e("../base-xform"),c=e("./hlink-click-xform"),u=e("./ext-lst-xform");class s extends f{constructor(){super(),this.map={"a:hlinkClick":new c,"a:extLst":new u}}get tag(){return"xdr:cNvPr"}render(n,r){n.openNode(this.tag,{id:r.index,name:`Picture ${r.index}`}),this.map["a:hlinkClick"].render(n,r),this.map["a:extLst"].render(n,r),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset();break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n);break}return!0}parseText(){}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}d.exports=s},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,d,m){const f=e("../base-xform"),c=e("../simple/integer-xform");class u extends f{constructor(t){super(),this.tag=t.tag,this.map={"xdr:col":new c({tag:"xdr:col",zero:!0}),"xdr:colOff":new c({tag:"xdr:colOff",zero:!0}),"xdr:row":new c({tag:"xdr:row",zero:!0}),"xdr:rowOff":new c({tag:"xdr:rowOff",zero:!0})}}render(t,n){t.openNode(this.tag),this.map["xdr:col"].render(t,n.nativeCol),this.map["xdr:colOff"].render(t,n.nativeColOff),this.map["xdr:row"].render(t,n.nativeRow),this.map["xdr:rowOff"].render(t,n.nativeRowOff),t.closeNode()}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case this.tag:this.reset();break;default:this.parser=this.map[t.name],this.parser&&this.parser.parseOpen(t);break}return!0}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;switch(t){case this.tag:return 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;default:return!0}}}d.exports=u},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,d,m){const f=e("../../../utils/col-cache"),c=e("../../../utils/xml-stream"),u=e("../base-xform"),s=e("./two-cell-anchor-xform"),t=e("./one-cell-anchor-xform");function n(i){return(typeof i.range=="string"?f.decode(i.range):i.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}class r extends u{constructor(){super(),this.map={"xdr:twoCellAnchor":new s,"xdr:oneCellAnchor":new t}}prepare(o){o.anchors.forEach((l,a)=>{l.anchorType=n(l),this.map[l.anchorType].prepare(l,{index:a})})}get tag(){return"xdr:wsDr"}render(o,l){o.openXml(c.StdDocAttributes),o.openNode(this.tag,r.DRAWING_ATTRIBUTES),l.anchors.forEach(a=>{this.map[a.anchorType].render(o,a)}),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o);break}return!0}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(o){case this.tag:return!1;default:return!0}}reconcile(o,l){o.anchors.forEach(a=>{a.br?this.map["xdr:twoCellAnchor"].reconcile(a,l):this.map["xdr:oneCellAnchor"].reconcile(a,l)})}}r.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},d.exports=r},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"a:extLst"}render(s){s.openNode(this.tag),s.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),s.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),s.closeNode(),s.closeNode()}parseOpen(s){switch(s.name){case this.tag:return!0;default:return!0}}parseText(){}parseClose(s){switch(s){case this.tag:return!1;default:return!0}}}d.exports=c},{"../base-xform":32}],64:[function(e,d,m){const f=e("../base-xform"),c=9525;class u extends f{constructor(t){super(),this.tag=t.tag,this.map={}}render(t,n){t.openNode(this.tag);const r=Math.floor(n.width*c),i=Math.floor(n.height*c);t.addAttribute("cx",r),t.addAttribute("cy",i),t.closeNode()}parseOpen(t){return t.name===this.tag?(this.model={width:parseInt(t.attributes.cx||"0",10)/c,height:parseInt(t.attributes.cy||"0",10)/c},!0):!1}parseText(){}parseClose(){return!1}}d.exports=u},{"../base-xform":32}],65:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"a:hlinkClick"}render(s,t){t.hyperlinks&&t.hyperlinks.rId&&s.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}parseOpen(s){switch(s.name){case this.tag:return this.model={hyperlinks:{rId:s.attributes["r:id"],tooltip:s.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],66:[function(e,d,m){const f=e("../base-xform"),c=e("./c-nv-pr-xform"),u=e("./c-nv-pic-pr-xform");class s extends f{constructor(){super(),this.map={"xdr:cNvPr":new c,"xdr:cNvPicPr":new u}}get tag(){return"xdr:nvPicPr"}render(n,r){n.openNode(this.tag),this.map["xdr:cNvPr"].render(n,r),this.map["xdr:cNvPicPr"].render(n,r),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset();break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n);break}return!0}parseText(){}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}d.exports=s},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,d,m){const f=e("./base-cell-anchor-xform"),c=e("../static-xform"),u=e("./cell-position-xform"),s=e("./ext-xform"),t=e("./pic-xform");class n extends f{constructor(){super(),this.map={"xdr:from":new u({tag:"xdr:from"}),"xdr:ext":new s({tag:"xdr:ext"}),"xdr:pic":new t,"xdr:clientData":new c({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(i,o){this.map["xdr:pic"].prepare(i.picture,o)}render(i,o){i.openNode(this.tag,{editAs:o.range.editAs||"oneCell"}),this.map["xdr:from"].render(i,o.range.tl),this.map["xdr:ext"].render(i,o.range.ext),this.map["xdr:pic"].render(i,o.picture),this.map["xdr:clientData"].render(i,{}),i.closeNode()}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){case this.tag:return 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;default:return!0}}reconcile(i,o){i.medium=this.reconcilePicture(i.picture,o)}}d.exports=n},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,d,m){const f=e("../base-xform"),c=e("../static-xform"),u=e("./blip-fill-xform"),s=e("./nv-pic-pr-xform"),t=e("./sp-pr");class n extends f{constructor(){super(),this.map={"xdr:nvPicPr":new s,"xdr:blipFill":new u,"xdr:spPr":new c(t)}}get tag(){return"xdr:pic"}prepare(i,o){i.index=o.index+1}render(i,o){i.openNode(this.tag),this.map["xdr:nvPicPr"].render(i,o),this.map["xdr:blipFill"].render(i,o),this.map["xdr:spPr"].render(i,o),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.tag:this.reset();break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i);break}return!0}parseText(){}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(i){case this.tag:return!1;default:return!0}}}d.exports=n},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,d,m){d.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(e,d,m){const f=e("./base-cell-anchor-xform"),c=e("../static-xform"),u=e("./cell-position-xform"),s=e("./pic-xform");class t extends f{constructor(){super(),this.map={"xdr:from":new u({tag:"xdr:from"}),"xdr:to":new u({tag:"xdr:to"}),"xdr:pic":new s,"xdr:clientData":new c({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(r,i){this.map["xdr:pic"].prepare(r.picture,i)}render(r,i){r.openNode(this.tag,{editAs:i.range.editAs||"oneCell"}),this.map["xdr:from"].render(r,i.range.tl),this.map["xdr:to"].render(r,i.range.br),this.map["xdr:pic"].render(r,i.picture),this.map["xdr:clientData"].render(r,{}),r.closeNode()}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return 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;default:return!0}}reconcile(r,i){r.medium=this.reconcilePicture(r.picture,i)}}d.exports=t},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,d,m){const f=e("./base-xform");class c extends f{constructor(s){super(),this.tag=s.tag,this.always=!!s.always,this.count=s.count,this.empty=s.empty,this.$count=s.$count||"count",this.$=s.$,this.childXform=s.childXform,this.maxItems=s.maxItems}prepare(s,t){const{childXform:n}=this;s&&s.forEach((r,i)=>{t.index=i,n.prepare(r,t)})}render(s,t){if(this.always||t&&t.length){s.openNode(this.tag,this.$),this.count&&s.addAttribute(this.$count,t&&t.length||0);const{childXform:n}=this;(t||[]).forEach((r,i)=>{n.render(s,r,i)}),s.closeNode()}else this.empty&&s.leafNode(this.tag)}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:return this.model=[],!0;default:return this.childXform.parseOpen(s)?(this.parser=this.childXform,!0):!1}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser){if(!this.parser.parseClose(s)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(s,t){if(s){const{childXform:n}=this;s.forEach(r=>{n.reconcile(r,t)})}}}d.exports=c},{"./base-xform":32}],72:[function(e,d,m){const f=e("../../../utils/col-cache"),c=e("../base-xform");class u extends c{get tag(){return"autoFilter"}render(t,n){if(n)if(typeof n=="string")t.leafNode("autoFilter",{ref:n});else{const r=function(l){return typeof l=="string"?l:f.getAddress(l.row,l.column).address},i=r(n.from),o=r(n.to);i&&o&&t.leafNode("autoFilter",{ref:`${i}:${o}`})}}parseOpen(t){t.name==="autoFilter"&&(this.model=t.attributes.ref)}}d.exports=u},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,d,m){const f=e("../../../utils/utils"),c=e("../base-xform"),u=e("../../../doc/range"),s=e("../../../doc/enums"),t=e("../strings/rich-text-xform");function n(o){if(o==null)return s.ValueType.Null;if(o instanceof String||typeof o=="string")return s.ValueType.String;if(typeof o=="number")return s.ValueType.Number;if(typeof o=="boolean")return s.ValueType.Boolean;if(o instanceof Date)return s.ValueType.Date;if(o.text&&o.hyperlink)return s.ValueType.Hyperlink;if(o.formula)return s.ValueType.Formula;if(o.error)return s.ValueType.Error;throw new Error("I could not understand type of value")}function r(o){switch(o.type){case s.ValueType.Formula:return n(o.result);default:return o.type}}class i extends c{constructor(){super(),this.richTextXForm=new t}get tag(){return"c"}prepare(l,a){const g=a.styles.addStyleModel(l.style||{},r(l));switch(g&&(l.styleId=g),l.comment&&a.comments.push({...l.comment,ref:l.address}),l.type){case s.ValueType.String:case s.ValueType.RichText:a.sharedStrings&&(l.ssId=a.sharedStrings.add(l.value));break;case s.ValueType.Date:a.date1904&&(l.date1904=!0);break;case s.ValueType.Hyperlink:a.sharedStrings&&l.text!==void 0&&l.text!==null&&(l.ssId=a.sharedStrings.add(l.text)),a.hyperlinks.push({address:l.address,target:l.hyperlink,tooltip:l.tooltip});break;case s.ValueType.Merge:a.merges.add(l);break;case s.ValueType.Formula:if(a.date1904&&(l.date1904=!0),l.shareType==="shared"&&(l.si=a.siFormulae++),l.formula)a.formulae[l.address]=l;else if(l.sharedFormula){const v=a.formulae[l.sharedFormula];if(!v)throw new Error(`Shared Formula master must exist above and or left of clone for cell ${l.address}`);v.si===void 0?(v.shareType="shared",v.si=a.siFormulae++,v.range=new u(v.address,l.address)):v.range&&v.range.expandToAddress(l.address),l.si=v.si}break}}renderFormula(l,a){let g=null;switch(a.shareType){case"shared":g={t:"shared",ref:a.ref||a.range.range,si:a.si};break;case"array":g={t:"array",ref:a.ref};break;default:a.si!==void 0&&(g={t:"shared",si:a.si});break}switch(n(a.result)){case s.ValueType.Null:l.leafNode("f",g,a.formula);break;case s.ValueType.String:l.addAttribute("t","str"),l.leafNode("f",g,a.formula),l.leafNode("v",null,a.result);break;case s.ValueType.Number:l.leafNode("f",g,a.formula),l.leafNode("v",null,a.result);break;case s.ValueType.Boolean:l.addAttribute("t","b"),l.leafNode("f",g,a.formula),l.leafNode("v",null,a.result?1:0);break;case s.ValueType.Error:l.addAttribute("t","e"),l.leafNode("f",g,a.formula),l.leafNode("v",null,a.result.error);break;case s.ValueType.Date:l.leafNode("f",g,a.formula),l.leafNode("v",null,f.dateToExcel(a.result,a.date1904));break;default:throw new Error("I could not understand type of value")}}render(l,a){if(!(a.type===s.ValueType.Null&&!a.styleId)){switch(l.openNode("c"),l.addAttribute("r",a.address),a.styleId&&l.addAttribute("s",a.styleId),a.type){case s.ValueType.Null:break;case s.ValueType.Number:l.leafNode("v",null,a.value);break;case s.ValueType.Boolean:l.addAttribute("t","b"),l.leafNode("v",null,a.value?"1":"0");break;case s.ValueType.Error:l.addAttribute("t","e"),l.leafNode("v",null,a.value.error);break;case s.ValueType.String:case s.ValueType.RichText:a.ssId!==void 0?(l.addAttribute("t","s"),l.leafNode("v",null,a.ssId)):a.value&&a.value.richText?(l.addAttribute("t","inlineStr"),l.openNode("is"),a.value.richText.forEach(g=>{this.richTextXForm.render(l,g)}),l.closeNode("is")):(l.addAttribute("t","str"),l.leafNode("v",null,a.value));break;case s.ValueType.Date:l.leafNode("v",null,f.dateToExcel(a.value,a.date1904));break;case s.ValueType.Hyperlink:a.ssId!==void 0?(l.addAttribute("t","s"),l.leafNode("v",null,a.ssId)):(l.addAttribute("t","str"),l.leafNode("v",null,a.text));break;case s.ValueType.Formula:this.renderFormula(l,a);break;case s.ValueType.Merge:break}l.closeNode()}}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"c":return this.model={address:l.attributes.r},this.t=l.attributes.t,l.attributes.s&&(this.model.styleId=parseInt(l.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=l.attributes.si,this.model.shareType=l.attributes.t,this.model.ref=l.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(l),!0;default:return!1}}parseText(l){if(this.parser){this.parser.parseText(l);return}switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+l:l;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+l:l:this.model.value=this.model.value?this.model.value+l:l;break}}parseClose(l){switch(l){case"c":{const{model:a}=this;if(a.formula||a.shareType)a.type=s.ValueType.Formula,a.value&&(this.t==="str"?a.result=f.xmlDecode(a.value):this.t==="b"?a.result=parseInt(a.value,10)!==0:this.t==="e"?a.result={error:a.value}:a.result=parseFloat(a.value),a.value=void 0);else if(a.value!==void 0)switch(this.t){case"s":a.type=s.ValueType.String,a.value=parseInt(a.value,10);break;case"str":a.type=s.ValueType.String,a.value=f.xmlDecode(a.value);break;case"inlineStr":a.type=s.ValueType.String;break;case"b":a.type=s.ValueType.Boolean,a.value=parseInt(a.value,10)!==0;break;case"e":a.type=s.ValueType.Error,a.value={error:a.value};break;default:a.type=s.ValueType.Number,a.value=parseFloat(a.value);break}else a.styleId?a.type=s.ValueType.Null:a.type=s.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(l),!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(l),!0):!1}}reconcile(l,a){const g=l.styleId&&a.styles&&a.styles.getStyleModel(l.styleId);switch(g&&(l.style=g),l.styleId!==void 0&&(l.styleId=void 0),l.type){case s.ValueType.String:typeof l.value=="number"&&a.sharedStrings&&(l.value=a.sharedStrings.getString(l.value)),l.value.richText&&(l.type=s.ValueType.RichText);break;case s.ValueType.Number:g&&f.isDateFmt(g.numFmt)&&(l.type=s.ValueType.Date,l.value=f.excelToDate(l.value,a.date1904));break;case s.ValueType.Formula:l.result!==void 0&&g&&f.isDateFmt(g.numFmt)&&(l.result=f.excelToDate(l.result,a.date1904)),l.shareType==="shared"&&(l.ref?a.formulae[l.si]=l.address:(l.sharedFormula=a.formulae[l.si],delete l.shareType),delete l.si);break}const v=a.hyperlinkMap[l.address];v&&(l.type===s.ValueType.Formula?(l.text=l.result,l.result=void 0):(l.text=l.value,l.value=void 0),l.type=s.ValueType.Hyperlink,l.hyperlink=v);const h=a.commentsMap&&a.commentsMap[l.address];h&&(l.comment=h)}}d.exports=i},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,d,m){const f=e("../../base-xform");class c extends f{get tag(){return"x14:cfIcon"}render(s,t){s.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}parseOpen(s){let{attributes:t}=s;this.model={iconSet:t.iconSet,iconId:f.toIntValue(t.iconId)}}parseClose(s){return s!==this.tag}}d.exports=c},{"../../base-xform":32}],75:[function(e,d,m){const{v4:f}=e("uuid"),c=e("../../base-xform"),u=e("../../composite-xform"),s=e("./databar-ext-xform"),t=e("./icon-set-ext-xform"),n={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class r extends u{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new s,"x14:iconSet":this.iconSetXform=new t}}get tag(){return"x14:cfRule"}static isExt(o){return o.type==="dataBar"?s.isExt(o):!!(o.type==="iconSet"&&(o.custom||n[o.iconSet]))}prepare(o){r.isExt(o)&&(o.x14Id=`{${f()}}`.toUpperCase())}render(o,l){if(r.isExt(l))switch(l.type){case"dataBar":this.renderDataBar(o,l);break;case"iconSet":this.renderIconSet(o,l);break}}renderDataBar(o,l){o.openNode(this.tag,{type:"dataBar",id:l.x14Id}),this.databarXform.render(o,l),o.closeNode()}renderIconSet(o,l){o.openNode(this.tag,{type:"iconSet",priority:l.priority,id:l.x14Id||`{${f()}}`}),this.iconSetXform.render(o,l),o.closeNode()}createNewModel(o){let{attributes:l}=o;return{type:l.type,x14Id:l.id,priority:c.toIntValue(l.priority)}}onParserClose(o,l){Object.assign(this.model,l.model)}}d.exports=r},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,d,m){const f=e("../../composite-xform"),c=e("./f-ext-xform");class u extends f{constructor(){super(),this.map={"xm:f":this.fExtXform=new c}}get tag(){return"x14:cfvo"}render(t,n){t.openNode(this.tag,{type:n.type}),n.value!==void 0&&this.fExtXform.render(t,n.value),t.closeNode()}createNewModel(t){return{type:t.attributes.type}}onParserClose(t,n){switch(t){case"xm:f":this.model.value=n.model?parseFloat(n.model):0;break}}}d.exports=u},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,d,m){const f=e("../../composite-xform"),c=e("./sqref-ext-xform"),u=e("./cf-rule-ext-xform");class s extends f{constructor(){super(),this.map={"xm:sqref":this.sqRef=new c,"x14:cfRule":this.cfRule=new u}}get tag(){return"x14:conditionalFormatting"}prepare(n,r){n.rules.forEach(i=>{this.cfRule.prepare(i,r)})}render(n,r){r.rules.some(u.isExt)&&(n.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),r.rules.filter(u.isExt).forEach(i=>this.cfRule.render(n,i)),this.sqRef.render(n,r.ref),n.closeNode())}createNewModel(){return{rules:[]}}onParserClose(n,r){switch(n){case"xm:sqref":this.model.ref=r.model;break;case"x14:cfRule":this.model.rules.push(r.model);break}}}d.exports=s},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,d,m){const f=e("../../composite-xform"),c=e("./cf-rule-ext-xform"),u=e("./conditional-formatting-ext-xform");class s extends f{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new u}}get tag(){return"x14:conditionalFormattings"}hasContent(n){return n.hasExtContent===void 0&&(n.hasExtContent=n.some(r=>r.rules.some(c.isExt))),n.hasExtContent}prepare(n,r){n.forEach(i=>{this.cfXform.prepare(i,r)})}render(n,r){this.hasContent(r)&&(n.openNode(this.tag),r.forEach(i=>this.cfXform.render(n,i)),n.closeNode())}createNewModel(){return[]}onParserClose(n,r){this.model.push(r.model)}}d.exports=s},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,d,m){const f=e("../../base-xform"),c=e("../../composite-xform"),u=e("../../style/color-xform"),s=e("./cfvo-ext-xform");class t extends c{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new s,"x14:borderColor":this.borderColorXform=new u("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new u("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new u("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new u("x14:axisColor")}}static isExt(r){return!r.gradient}get tag(){return"x14:dataBar"}render(r,i){r.openNode(this.tag,{minLength:f.toIntAttribute(i.minLength,0,!0),maxLength:f.toIntAttribute(i.maxLength,100,!0),border:f.toBoolAttribute(i.border,!1),gradient:f.toBoolAttribute(i.gradient,!0),negativeBarColorSameAsPositive:f.toBoolAttribute(i.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:f.toBoolAttribute(i.negativeBarBorderColorSameAsPositive,!0),axisPosition:f.toAttribute(i.axisPosition,"auto"),direction:f.toAttribute(i.direction,"leftToRight")}),i.cfvo.forEach(o=>{this.cfvoXform.render(r,o)}),this.borderColorXform.render(r,i.borderColor),this.negativeBorderColorXform.render(r,i.negativeBorderColor),this.negativeFillColorXform.render(r,i.negativeFillColor),this.axisColorXform.render(r,i.axisColor),r.closeNode()}createNewModel(r){let{attributes:i}=r;return{cfvo:[],minLength:f.toIntValue(i.minLength,0),maxLength:f.toIntValue(i.maxLength,100),border:f.toBoolValue(i.border,!1),gradient:f.toBoolValue(i.gradient,!0),negativeBarColorSameAsPositive:f.toBoolValue(i.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:f.toBoolValue(i.negativeBarBorderColorSameAsPositive,!0),axisPosition:f.toStringValue(i.axisPosition,"auto"),direction:f.toStringValue(i.direction,"leftToRight")}}onParserClose(r,i){const[,o]=r.split(":");switch(o){case"cfvo":this.model.cfvo.push(i.model);break;default:this.model[o]=i.model;break}}}d.exports=t},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,d,m){const f=e("../../base-xform");class c extends f{get tag(){return"xm:f"}render(s,t){s.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(s){this.model+=s}parseClose(s){return s!==this.tag}}d.exports=c},{"../../base-xform":32}],81:[function(e,d,m){const f=e("../../base-xform"),c=e("../../composite-xform"),u=e("./cfvo-ext-xform"),s=e("./cf-icon-ext-xform");class t extends c{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new u,"x14:cfIcon":this.cfIconXform=new s}}get tag(){return"x14:iconSet"}render(r,i){r.openNode(this.tag,{iconSet:f.toStringAttribute(i.iconSet),reverse:f.toBoolAttribute(i.reverse,!1),showValue:f.toBoolAttribute(i.showValue,!0),custom:f.toBoolAttribute(i.icons,!1)}),i.cfvo.forEach(o=>{this.cfvoXform.render(r,o)}),i.icons&&i.icons.forEach((o,l)=>{o.iconId=l,this.cfIconXform.render(r,o)}),r.closeNode()}createNewModel(r){let{attributes:i}=r;return{cfvo:[],iconSet:f.toStringValue(i.iconSet,"3TrafficLights"),reverse:f.toBoolValue(i.reverse,!1),showValue:f.toBoolValue(i.showValue,!0)}}onParserClose(r,i){const[,o]=r.split(":");switch(o){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[o]=i.model;break}}}d.exports=t},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,d,m){const f=e("../../base-xform");class c extends f{get tag(){return"xm:sqref"}render(s,t){s.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(s){this.model+=s}parseClose(s){return s!==this.tag}}d.exports=c},{"../../base-xform":32}],83:[function(e,d,m){const f=e("../../base-xform"),c=e("../../composite-xform"),u=e("../../../../doc/range"),s=e("./databar-xform"),t=e("./ext-lst-ref-xform"),n=e("./formula-xform"),r=e("./color-scale-xform"),i=e("./icon-set-xform"),o={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},l=h=>{if(h.formulae&&h.formulae[0])return h.formulae[0];const w=new u(h.ref),{tl:y}=w;switch(h.operator){case"containsText":return`NOT(ISERROR(SEARCH("${h.text}",${y})))`;case"containsBlanks":return`LEN(TRIM(${y}))=0`;case"notContainsBlanks":return`LEN(TRIM(${y}))>0`;case"containsErrors":return`ISERROR(${y})`;case"notContainsErrors":return`NOT(ISERROR(${y}))`;default:return}},a=h=>{if(h.formulae&&h.formulae[0])return h.formulae[0];const w=new u(h.ref),{tl:y}=w;switch(h.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${y},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${y},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${y},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${y},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${y},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${y},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${y},1)=TODAY()-1`;case"today":return`FLOOR(${y},1)=TODAY()`;case"tomorrow":return`FLOOR(${y},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${y},1)<=6,FLOOR(${y},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${y})=MONTH(EDATE(TODAY(),0-1)),YEAR(${y})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${y})=MONTH(TODAY()),YEAR(${y})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${y})=MONTH(EDATE(TODAY(),0+1)),YEAR(${y})=YEAR(EDATE(TODAY(),0+1)))`;default:return}},g=h=>{const{type:w,operator:y}=h;switch(w){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:w};default:return{type:w,operator:y}}};class v extends c{constructor(){super(),this.map={dataBar:this.databarXform=new s,extLst:this.extLstRefXform=new t,formula:this.formulaXform=new n,colorScale:this.colorScaleXform=new r,iconSet:this.iconSetXform=new i}}get tag(){return"cfRule"}static isPrimitive(w){return!(w.type==="iconSet"&&(w.custom||o[w.iconSet]))}render(w,y){switch(y.type){case"expression":this.renderExpression(w,y);break;case"cellIs":this.renderCellIs(w,y);break;case"top10":this.renderTop10(w,y);break;case"aboveAverage":this.renderAboveAverage(w,y);break;case"dataBar":this.renderDataBar(w,y);break;case"colorScale":this.renderColorScale(w,y);break;case"iconSet":this.renderIconSet(w,y);break;case"containsText":this.renderText(w,y);break;case"timePeriod":this.renderTimePeriod(w,y);break}}renderExpression(w,y){w.openNode(this.tag,{type:"expression",dxfId:y.dxfId,priority:y.priority}),this.formulaXform.render(w,y.formulae[0]),w.closeNode()}renderCellIs(w,y){w.openNode(this.tag,{type:"cellIs",dxfId:y.dxfId,priority:y.priority,operator:y.operator}),y.formulae.forEach(S=>{this.formulaXform.render(w,S)}),w.closeNode()}renderTop10(w,y){w.leafNode(this.tag,{type:"top10",dxfId:y.dxfId,priority:y.priority,percent:f.toBoolAttribute(y.percent,!1),bottom:f.toBoolAttribute(y.bottom,!1),rank:f.toIntValue(y.rank,10,!0)})}renderAboveAverage(w,y){w.leafNode(this.tag,{type:"aboveAverage",dxfId:y.dxfId,priority:y.priority,aboveAverage:f.toBoolAttribute(y.aboveAverage,!0)})}renderDataBar(w,y){w.openNode(this.tag,{type:"dataBar",priority:y.priority}),this.databarXform.render(w,y),this.extLstRefXform.render(w,y),w.closeNode()}renderColorScale(w,y){w.openNode(this.tag,{type:"colorScale",priority:y.priority}),this.colorScaleXform.render(w,y),w.closeNode()}renderIconSet(w,y){v.isPrimitive(y)&&(w.openNode(this.tag,{type:"iconSet",priority:y.priority}),this.iconSetXform.render(w,y),w.closeNode())}renderText(w,y){w.openNode(this.tag,{type:y.operator,dxfId:y.dxfId,priority:y.priority,operator:f.toStringAttribute(y.operator,"containsText")});const S=l(y);S&&this.formulaXform.render(w,S),w.closeNode()}renderTimePeriod(w,y){w.openNode(this.tag,{type:"timePeriod",dxfId:y.dxfId,priority:y.priority,timePeriod:y.timePeriod});const S=a(y);S&&this.formulaXform.render(w,S),w.closeNode()}createNewModel(w){let{attributes:y}=w;return{...g(y),dxfId:f.toIntValue(y.dxfId),priority:f.toIntValue(y.priority),timePeriod:y.timePeriod,percent:f.toBoolValue(y.percent),bottom:f.toBoolValue(y.bottom),rank:f.toIntValue(y.rank),aboveAverage:f.toBoolValue(y.aboveAverage)}}onParserClose(w,y){switch(w){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,y.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(y.model);break}}}d.exports=v},{"../../../../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(e,d,m){const f=e("../../base-xform");class c extends f{get tag(){return"cfvo"}render(s,t){s.leafNode(this.tag,{type:t.type,val:t.value})}parseOpen(s){this.model={type:s.attributes.type,value:f.toFloatValue(s.attributes.val)}}parseClose(s){return s!==this.tag}}d.exports=c},{"../../base-xform":32}],85:[function(e,d,m){const f=e("../../composite-xform"),c=e("../../style/color-xform"),u=e("./cfvo-xform");class s extends f{constructor(){super(),this.map={cfvo:this.cfvoXform=new u,color:this.colorXform=new c}}get tag(){return"colorScale"}render(n,r){n.openNode(this.tag),r.cfvo.forEach(i=>{this.cfvoXform.render(n,i)}),r.color.forEach(i=>{this.colorXform.render(n,i)}),n.closeNode()}createNewModel(n){return{cfvo:[],color:[]}}onParserClose(n,r){this.model[n].push(r.model)}}d.exports=s},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,d,m){const f=e("../../composite-xform"),c=e("./cf-rule-xform");class u extends f{constructor(){super(),this.map={cfRule:new c}}get tag(){return"conditionalFormatting"}render(t,n){n.rules.some(c.isPrimitive)&&(t.openNode(this.tag,{sqref:n.ref}),n.rules.forEach(r=>{c.isPrimitive(r)&&(r.ref=n.ref,this.map.cfRule.render(t,r))}),t.closeNode())}createNewModel(t){let{attributes:n}=t;return{ref:n.sqref,rules:[]}}onParserClose(t,n){this.model.rules.push(n.model)}}d.exports=u},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,d,m){const f=e("../../base-xform"),c=e("./conditional-formatting-xform");class u extends f{constructor(){super(),this.cfXform=new c}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(t,n){let r=t.reduce((i,o)=>Math.max(i,...o.rules.map(l=>l.priority||0)),1);t.forEach(i=>{i.rules.forEach(o=>{o.priority||(o.priority=r++),o.style&&(o.dxfId=n.styles.addDxfStyle(o.style))})})}render(t,n){n.forEach(r=>{this.cfXform.render(t,r)})}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(t),!0;default:return!1}}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){return this.parser?this.parser.parseClose(t)?!0:(this.model.push(this.parser.model),this.parser=void 0,!1):!1}reconcile(t,n){t.forEach(r=>{r.rules.forEach(i=>{i.dxfId!==void 0&&(i.style=n.styles.getDxfStyle(i.dxfId),delete i.dxfId)})})}}d.exports=u},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,d,m){const f=e("../../composite-xform"),c=e("../../style/color-xform"),u=e("./cfvo-xform");class s extends f{constructor(){super(),this.map={cfvo:this.cfvoXform=new u,color:this.colorXform=new c}}get tag(){return"dataBar"}render(n,r){n.openNode(this.tag),r.cfvo.forEach(i=>{this.cfvoXform.render(n,i)}),this.colorXform.render(n,r.color),n.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(n,r){switch(n){case"cfvo":this.model.cfvo.push(r.model);break;case"color":this.model.color=r.model;break}}}d.exports=s},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,d,m){const f=e("../../base-xform"),c=e("../../composite-xform");class u extends f{get tag(){return"x14:id"}render(r,i){r.leafNode(this.tag,null,i)}parseOpen(){this.model=""}parseText(r){this.model+=r}parseClose(r){return r!==this.tag}}class s extends c{constructor(){super(),this.map={"x14:id":this.idXform=new u}}get tag(){return"ext"}render(r,i){r.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(r,i.x14Id),r.closeNode()}createNewModel(){return{}}onParserClose(r,i){this.model.x14Id=i.model}}class t extends c{constructor(){super(),this.map={ext:new s}}get tag(){return"extLst"}render(r,i){r.openNode(this.tag),this.map.ext.render(r,i),r.closeNode()}createNewModel(){return{}}onParserClose(r,i){Object.assign(this.model,i.model)}}d.exports=t},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,d,m){const f=e("../../base-xform");class c extends f{get tag(){return"formula"}render(s,t){s.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(s){this.model+=s}parseClose(s){return s!==this.tag}}d.exports=c},{"../../base-xform":32}],91:[function(e,d,m){const f=e("../../base-xform"),c=e("../../composite-xform"),u=e("./cfvo-xform");class s extends c{constructor(){super(),this.map={cfvo:this.cfvoXform=new u}}get tag(){return"iconSet"}render(n,r){n.openNode(this.tag,{iconSet:f.toStringAttribute(r.iconSet,"3TrafficLights"),reverse:f.toBoolAttribute(r.reverse,!1),showValue:f.toBoolAttribute(r.showValue,!0)}),r.cfvo.forEach(i=>{this.cfvoXform.render(n,i)}),n.closeNode()}createNewModel(n){let{attributes:r}=n;return{iconSet:f.toStringValue(r.iconSet,"3TrafficLights"),reverse:f.toBoolValue(r.reverse),showValue:f.toBoolValue(r.showValue),cfvo:[]}}onParserClose(n,r){this.model[n].push(r.model)}}d.exports=s},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,d,m){const f=e("../../../utils/utils"),c=e("../base-xform");class u extends c{get tag(){return"col"}prepare(t,n){const r=n.styles.addStyleModel(t.style||{});r&&(t.styleId=r)}render(t,n){t.openNode("col"),t.addAttribute("min",n.min),t.addAttribute("max",n.max),n.width&&t.addAttribute("width",n.width),n.styleId&&t.addAttribute("style",n.styleId),n.hidden&&t.addAttribute("hidden","1"),n.bestFit&&t.addAttribute("bestFit","1"),n.outlineLevel&&t.addAttribute("outlineLevel",n.outlineLevel),n.collapsed&&t.addAttribute("collapsed","1"),t.addAttribute("customWidth","1"),t.closeNode()}parseOpen(t){if(t.name==="col"){const n=this.model={min:parseInt(t.attributes.min||"0",10),max:parseInt(t.attributes.max||"0",10),width:t.attributes.width===void 0?void 0:parseFloat(t.attributes.width||"0")};return t.attributes.style&&(n.styleId=parseInt(t.attributes.style,10)),f.parseBoolean(t.attributes.hidden)&&(n.hidden=!0),f.parseBoolean(t.attributes.bestFit)&&(n.bestFit=!0),t.attributes.outlineLevel&&(n.outlineLevel=parseInt(t.attributes.outlineLevel,10)),f.parseBoolean(t.attributes.collapsed)&&(n.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(t,n){t.styleId&&(t.style=n.styles.getStyleModel(t.styleId))}}d.exports=u},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,d,m){const f=e("../../../utils/under-dash"),c=e("../../../utils/utils"),u=e("../../../utils/col-cache"),s=e("../base-xform"),t=e("../../../doc/range");function n(l,a,g,v){const h=a[g];h!==void 0?l[g]=h:v!==void 0&&(l[g]=v)}function r(l,a,g,v){const h=a[g];h!==void 0?l[g]=c.parseBoolean(h):v!==void 0&&(l[g]=v)}function i(l){const a=f.map(l,(h,w)=>({address:w,dataValidation:h,marked:!1})).sort((h,w)=>f.strcmp(h.address,w.address)),g=f.keyBy(a,"address"),v=(h,w,y)=>{for(let S=0;S<w;S++){const E=u.encodeAddress(h.row+S,y);if(!l[E]||!f.isEqual(l[h.address],l[E]))return!1}return!0};return a.map(h=>{if(!h.marked){const w=u.decodeEx(h.address);if(w.dimensions)return g[w.dimensions].marked=!0,{...h.dataValidation,sqref:h.address};let y=1,S=u.encodeAddress(w.row+y,w.col);for(;l[S]&&f.isEqual(h.dataValidation,l[S]);)y++,S=u.encodeAddress(w.row+y,w.col);let E=1;for(;v(w,y,w.col+E);)E++;for(let I=0;I<y;I++)for(let F=0;F<E;F++)S=u.encodeAddress(w.row+I,w.col+F),g[S].marked=!0;if(y>1||E>1){const I=w.row+(y-1),F=w.col+(E-1);return{...h.dataValidation,sqref:`${h.address}:${u.encodeAddress(I,F)}`}}return{...h.dataValidation,sqref:h.address}}return null}).filter(Boolean)}class o extends s{get tag(){return"dataValidations"}render(a,g){const v=i(g);v.length&&(a.openNode("dataValidations",{count:v.length}),v.forEach(h=>{a.openNode("dataValidation"),h.type!=="any"&&(a.addAttribute("type",h.type),h.operator&&h.type!=="list"&&h.operator!=="between"&&a.addAttribute("operator",h.operator),h.allowBlank&&a.addAttribute("allowBlank","1")),h.showInputMessage&&a.addAttribute("showInputMessage","1"),h.promptTitle&&a.addAttribute("promptTitle",h.promptTitle),h.prompt&&a.addAttribute("prompt",h.prompt),h.showErrorMessage&&a.addAttribute("showErrorMessage","1"),h.errorStyle&&a.addAttribute("errorStyle",h.errorStyle),h.errorTitle&&a.addAttribute("errorTitle",h.errorTitle),h.error&&a.addAttribute("error",h.error),a.addAttribute("sqref",h.sqref),(h.formulae||[]).forEach((w,y)=>{a.openNode(`formula${y+1}`),h.type==="date"?a.writeText(c.dateToExcel(new Date(w))):a.writeText(w),a.closeNode()}),a.closeNode()}),a.closeNode())}parseOpen(a){switch(a.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=a.attributes.sqref;const g={type:a.attributes.type||"any",formulae:[]};switch(a.attributes.type&&r(g,a.attributes,"allowBlank"),r(g,a.attributes,"showInputMessage"),r(g,a.attributes,"showErrorMessage"),g.type){case"any":case"list":case"custom":break;default:n(g,a.attributes,"operator","between");break}return n(g,a.attributes,"promptTitle"),n(g,a.attributes,"prompt"),n(g,a.attributes,"errorStyle"),n(g,a.attributes,"errorTitle"),n(g,a.attributes,"error"),this._dataValidation=g,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(a){this._formula&&this._formula.push(a)}parseClose(a){switch(a){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(v=>{v.includes(":")?new t(v).forEachAddress(w=>{this.model[w]=this._dataValidation}):this.model[v]=this._dataValidation}),!0;case"formula1":case"formula2":{let g=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":g=parseInt(g,10);break;case"decimal":g=parseFloat(g);break;case"date":g=c.excelToDate(parseFloat(g));break}return this._dataValidation.formulae.push(g),this._formula=void 0,!0}default:return!0}}}d.exports=o},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"dimension"}render(s,t){t&&s.leafNode("dimension",{ref:t})}parseOpen(s){return s.name==="dimension"?(this.model=s.attributes.ref,!0):!1}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],95:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"drawing"}render(s,t){t&&s.leafNode(this.tag,{"r:id":t.rId})}parseOpen(s){switch(s.name){case this.tag:return this.model={rId:s.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],96:[function(e,d,m){const f=e("../composite-xform"),c=e("./cf-ext/conditional-formattings-ext-xform");class u extends f{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new c}}get tag(){return"ext"}hasContent(n){return this.conditionalFormattings.hasContent(n.conditionalFormattings)}prepare(n,r){this.conditionalFormattings.prepare(n.conditionalFormattings,r)}render(n,r){n.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(n,r.conditionalFormattings),n.closeNode()}createNewModel(){return{}}onParserClose(n,r){this.model[n]=r.model}}class s extends f{constructor(){super(),this.map={ext:this.ext=new u}}get tag(){return"extLst"}prepare(n,r){this.ext.prepare(n,r)}hasContent(n){return this.ext.hasContent(n)}render(n,r){this.hasContent(r)&&(n.openNode("extLst"),this.ext.render(n,r),n.closeNode())}createNewModel(){return{}}onParserClose(n,r){Object.assign(this.model,r.model)}}d.exports=s},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"headerFooter"}render(s,t){if(t){s.addRollback();let n=!1;s.openNode("headerFooter"),t.differentFirst&&(s.addAttribute("differentFirst","1"),n=!0),t.differentOddEven&&(s.addAttribute("differentOddEven","1"),n=!0),t.oddHeader&&typeof t.oddHeader=="string"&&(s.leafNode("oddHeader",null,t.oddHeader),n=!0),t.oddFooter&&typeof t.oddFooter=="string"&&(s.leafNode("oddFooter",null,t.oddFooter),n=!0),t.evenHeader&&typeof t.evenHeader=="string"&&(s.leafNode("evenHeader",null,t.evenHeader),n=!0),t.evenFooter&&typeof t.evenFooter=="string"&&(s.leafNode("evenFooter",null,t.evenFooter),n=!0),t.firstHeader&&typeof t.firstHeader=="string"&&(s.leafNode("firstHeader",null,t.firstHeader),n=!0),t.firstFooter&&typeof t.firstFooter=="string"&&(s.leafNode("firstFooter",null,t.firstFooter),n=!0),n?(s.closeNode(),s.commit()):s.rollback()}}parseOpen(s){switch(s.name){case"headerFooter":return this.model={},s.attributes.differentFirst&&(this.model.differentFirst=parseInt(s.attributes.differentFirst,0)===1),s.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(s.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}}parseText(s){switch(this.currentNode){case"oddHeader":this.model.oddHeader=s;break;case"oddFooter":this.model.oddFooter=s;break;case"evenHeader":this.model.evenHeader=s;break;case"evenFooter":this.model.evenFooter=s;break;case"firstHeader":this.model.firstHeader=s;break;case"firstFooter":this.model.firstFooter=s;break}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}d.exports=c},{"../base-xform":32}],98:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"hyperlink"}render(s,t){this.isInternalLink(t)?s.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target}):s.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}parseOpen(s){return s.name==="hyperlink"?(this.model={address:s.attributes.ref,rId:s.attributes["r:id"],tooltip:s.attributes.tooltip},s.attributes.location&&(this.model.target=s.attributes.location),!0):!1}parseText(){}parseClose(){return!1}isInternalLink(s){return s.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(s.target)}}d.exports=c},{"../base-xform":32}],99:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"mergeCell"}render(s,t){s.leafNode("mergeCell",{ref:t})}parseOpen(s){return s.name==="mergeCell"?(this.model=s.attributes.ref,!0):!1}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],100:[function(e,d,m){const f=e("../../../utils/under-dash"),c=e("../../../doc/range"),u=e("../../../utils/col-cache"),s=e("../../../doc/enums");class t{constructor(){this.merges={}}add(r){if(this.merges[r.master])this.merges[r.master].expandToAddress(r.address);else{const i=`${r.master}:${r.address}`;this.merges[r.master]=new c(i)}}get mergeCells(){return f.map(this.merges,r=>r.range)}reconcile(r,i){f.each(r,o=>{const l=u.decode(o);for(let a=l.top;a<=l.bottom;a++){const g=i[a-1];for(let v=l.left;v<=l.right;v++){const h=g.cells[v-1];h?h.type===s.ValueType.Merge&&(h.master=l.tl):g.cells[v]={type:s.ValueType.Null,address:u.encodeAddress(a,v)}}}})}getMasterAddress(r){const i=this.hash[r];return i&&i.tl}}d.exports=t},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,d,m){const f=e("../base-xform"),c=s=>typeof s<"u";class u extends f{get tag(){return"outlinePr"}render(t,n){return n&&(c(n.summaryBelow)||c(n.summaryRight))?(t.leafNode(this.tag,{summaryBelow:c(n.summaryBelow)?Number(n.summaryBelow):void 0,summaryRight:c(n.summaryRight)?Number(n.summaryRight):void 0}),!0):!1}parseOpen(t){return t.name===this.tag?(this.model={summaryBelow:c(t.attributes.summaryBelow)?!!Number(t.attributes.summaryBelow):void 0,summaryRight:c(t.attributes.summaryRight)?!!Number(t.attributes.summaryRight):void 0},!0):!1}parseText(){}parseClose(){return!1}}d.exports=u},{"../base-xform":32}],102:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"brk"}render(s,t){s.leafNode("brk",t)}parseOpen(s){return s.name==="brk"?(this.model=s.attributes.ref,!0):!1}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],103:[function(e,d,m){const f=e("../../../utils/under-dash"),c=e("../base-xform");class u extends c{get tag(){return"pageMargins"}render(t,n){if(n){const r={left:n.left,right:n.right,top:n.top,bottom:n.bottom,header:n.header,footer:n.footer};f.some(r,i=>i!==void 0)&&t.leafNode(this.tag,r)}}parseOpen(t){switch(t.name){case this.tag:return this.model={left:parseFloat(t.attributes.left||.7),right:parseFloat(t.attributes.right||.7),top:parseFloat(t.attributes.top||.75),bottom:parseFloat(t.attributes.bottom||.75),header:parseFloat(t.attributes.header||.3),footer:parseFloat(t.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}d.exports=u},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"pageSetUpPr"}render(s,t){return t&&t.fitToPage?(s.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),!0):!1}parseOpen(s){return s.name===this.tag?(this.model={fitToPage:s.attributes.fitToPage==="1"},!0):!1}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],105:[function(e,d,m){const f=e("../../../utils/under-dash"),c=e("../base-xform");function u(o){return o?"1":void 0}function s(o){switch(o){case"overThenDown":return o;default:return}}function t(o){switch(o){case"atEnd":case"asDisplyed":return o;default:return}}function n(o){switch(o){case"dash":case"blank":case"NA":return o;default:return}}function r(o){return o!==void 0?parseInt(o,10):void 0}class i extends c{get tag(){return"pageSetup"}render(l,a){if(a){const g={paperSize:a.paperSize,orientation:a.orientation,horizontalDpi:a.horizontalDpi,verticalDpi:a.verticalDpi,pageOrder:s(a.pageOrder),blackAndWhite:u(a.blackAndWhite),draft:u(a.draft),cellComments:t(a.cellComments),errors:n(a.errors),scale:a.scale,fitToWidth:a.fitToWidth,fitToHeight:a.fitToHeight,firstPageNumber:a.firstPageNumber,useFirstPageNumber:u(a.firstPageNumber),usePrinterDefaults:u(a.usePrinterDefaults),copies:a.copies};f.some(g,v=>v!==void 0)&&l.leafNode(this.tag,g)}}parseOpen(l){switch(l.name){case this.tag:return this.model={paperSize:r(l.attributes.paperSize),orientation:l.attributes.orientation||"portrait",horizontalDpi:parseInt(l.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(l.attributes.verticalDpi||"4294967295",10),pageOrder:l.attributes.pageOrder||"downThenOver",blackAndWhite:l.attributes.blackAndWhite==="1",draft:l.attributes.draft==="1",cellComments:l.attributes.cellComments||"None",errors:l.attributes.errors||"displayed",scale:parseInt(l.attributes.scale||"100",10),fitToWidth:parseInt(l.attributes.fitToWidth||"1",10),fitToHeight:parseInt(l.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(l.attributes.firstPageNumber||"1",10),useFirstPageNumber:l.attributes.useFirstPageNumber==="1",usePrinterDefaults:l.attributes.usePrinterDefaults==="1",copies:parseInt(l.attributes.copies||"1",10)},!0;default:return!1}}parseText(){}parseClose(){return!1}}d.exports=i},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"picture"}render(s,t){t&&s.leafNode(this.tag,{"r:id":t.rId})}parseOpen(s){switch(s.name){case this.tag:return this.model={rId:s.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],107:[function(e,d,m){const f=e("../../../utils/under-dash"),c=e("../base-xform");function u(t){return t?"1":void 0}class s extends c{get tag(){return"printOptions"}render(n,r){if(r){const i={headings:u(r.showRowColHeaders),gridLines:u(r.showGridLines),horizontalCentered:u(r.horizontalCentered),verticalCentered:u(r.verticalCentered)};f.some(i,o=>o!==void 0)&&n.leafNode(this.tag,i)}}parseOpen(n){switch(n.name){case this.tag:return this.model={showRowColHeaders:n.attributes.headings==="1",showGridLines:n.attributes.gridLines==="1",horizontalCentered:n.attributes.horizontalCentered==="1",verticalCentered:n.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}d.exports=s},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,d,m){const f=e("./page-breaks-xform"),c=e("../list-xform");class u extends c{constructor(){const t={tag:"rowBreaks",count:!0,childXform:new f};super(t)}render(t,n){if(n&&n.length){t.openNode(this.tag,this.$),this.count&&(t.addAttribute(this.$count,n.length),t.addAttribute("manualBreakCount",n.length));const{childXform:r}=this;n.forEach(i=>{r.render(t,i)}),t.closeNode()}else this.empty&&t.leafNode(this.tag)}}d.exports=u},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,d,m){const f=e("../base-xform"),c=e("../../../utils/utils"),u=e("./cell-xform");class s extends f{constructor(n){super(),this.maxItems=n&&n.maxItems,this.map={c:new u}}get tag(){return"row"}prepare(n,r){const i=r.styles.addStyleModel(n.style);i&&(n.styleId=i);const o=this.map.c;n.cells.forEach(l=>{o.prepare(l,r)})}render(n,r,i){n.openNode("row"),n.addAttribute("r",r.number),r.height&&(n.addAttribute("ht",r.height),n.addAttribute("customHeight","1")),r.hidden&&n.addAttribute("hidden","1"),r.min>0&&r.max>0&&r.min<=r.max&&n.addAttribute("spans",`${r.min}:${r.max}`),r.styleId&&(n.addAttribute("s",r.styleId),n.addAttribute("customFormat","1")),n.addAttribute("x14ac:dyDescent","0.25"),r.outlineLevel&&n.addAttribute("outlineLevel",r.outlineLevel),r.collapsed&&n.addAttribute("collapsed","1");const o=this.map.c;r.cells.forEach(l=>{o.render(n,l,i)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;if(n.name==="row"){this.numRowsSeen+=1;const r=n.attributes.spans?n.attributes.spans.split(":").map(o=>parseInt(o,10)):[void 0,void 0],i=this.model={number:parseInt(n.attributes.r,10),min:r[0],max:r[1],cells:[]};return n.attributes.s&&(i.styleId=parseInt(n.attributes.s,10)),c.parseBoolean(n.attributes.hidden)&&(i.hidden=!0),c.parseBoolean(n.attributes.bestFit)&&(i.bestFit=!0),n.attributes.ht&&(i.height=parseFloat(n.attributes.ht)),n.attributes.outlineLevel&&(i.outlineLevel=parseInt(n.attributes.outlineLevel,10)),c.parseBoolean(n.attributes.collapsed)&&(i.collapsed=!0),!0}return this.parser=this.map[n.name],this.parser?(this.parser.parseOpen(n),!0):!1}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(n,r){n.style=n.styleId?r.styles.getStyleModel(n.styleId):{},n.styleId!==void 0&&(n.styleId=void 0);const i=this.map.c;n.cells.forEach(o=>{i.reconcile(o,r)})}}d.exports=s},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,d,m){const f=e("../../../utils/under-dash"),c=e("../base-xform");class u extends c{get tag(){return"sheetFormatPr"}render(t,n){if(n){const r={defaultRowHeight:n.defaultRowHeight,outlineLevelRow:n.outlineLevelRow,outlineLevelCol:n.outlineLevelCol,"x14ac:dyDescent":n.dyDescent};n.defaultColWidth&&(r.defaultColWidth=n.defaultColWidth),(!n.defaultRowHeight||n.defaultRowHeight!==15)&&(r.customHeight="1"),f.some(r,i=>i!==void 0)&&t.leafNode("sheetFormatPr",r)}}parseOpen(t){return t.name==="sheetFormatPr"?(this.model={defaultRowHeight:parseFloat(t.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(t.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(t.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(t.attributes.outlineLevelCol||"0",10)},t.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(t.attributes.defaultColWidth)),!0):!1}parseText(){}parseClose(){return!1}}d.exports=u},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,d,m){const f=e("../base-xform"),c=e("../style/color-xform"),u=e("./page-setup-properties-xform"),s=e("./outline-properties-xform");class t extends f{constructor(){super(),this.map={tabColor:new c("tabColor"),pageSetUpPr:new u,outlinePr:new s}}get tag(){return"sheetPr"}render(r,i){if(i){r.addRollback(),r.openNode("sheetPr");let o=!1;o=this.map.tabColor.render(r,i.tabColor)||o,o=this.map.pageSetUpPr.render(r,i.pageSetup)||o,o=this.map.outlinePr.render(r,i.outlineProperties)||o,o?(r.closeNode(),r.commit()):r.rollback()}}parseOpen(r){return this.parser?(this.parser.parseOpen(r),!0):r.name===this.tag?(this.reset(),!0):this.map[r.name]?(this.parser=this.map[r.name],this.parser.parseOpen(r),!0):!1}parseText(r){return this.parser?(this.parser.parseText(r),!0):!1}parseClose(r){return this.parser?(this.parser.parseClose(r)||(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)}}d.exports=t},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,d,m){const f=e("../../../utils/under-dash"),c=e("../base-xform");function u(n,r){return n?r:void 0}function s(n,r){return n===r?!0:void 0}class t extends c{get tag(){return"sheetProtection"}render(r,i){if(i){const o={sheet:u(i.sheet,"1"),selectLockedCells:i.selectLockedCells===!1?"1":void 0,selectUnlockedCells:i.selectUnlockedCells===!1?"1":void 0,formatCells:u(i.formatCells,"0"),formatColumns:u(i.formatColumns,"0"),formatRows:u(i.formatRows,"0"),insertColumns:u(i.insertColumns,"0"),insertRows:u(i.insertRows,"0"),insertHyperlinks:u(i.insertHyperlinks,"0"),deleteColumns:u(i.deleteColumns,"0"),deleteRows:u(i.deleteRows,"0"),sort:u(i.sort,"0"),autoFilter:u(i.autoFilter,"0"),pivotTables:u(i.pivotTables,"0")};i.sheet&&(o.algorithmName=i.algorithmName,o.hashValue=i.hashValue,o.saltValue=i.saltValue,o.spinCount=i.spinCount,o.objects=u(i.objects===!1,"1"),o.scenarios=u(i.scenarios===!1,"1")),f.some(o,l=>l!==void 0)&&r.leafNode(this.tag,o)}}parseOpen(r){switch(r.name){case this.tag:return this.model={sheet:s(r.attributes.sheet,"1"),objects:r.attributes.objects==="1"?!1:void 0,scenarios:r.attributes.scenarios==="1"?!1:void 0,selectLockedCells:r.attributes.selectLockedCells==="1"?!1:void 0,selectUnlockedCells:r.attributes.selectUnlockedCells==="1"?!1:void 0,formatCells:s(r.attributes.formatCells,"0"),formatColumns:s(r.attributes.formatColumns,"0"),formatRows:s(r.attributes.formatRows,"0"),insertColumns:s(r.attributes.insertColumns,"0"),insertRows:s(r.attributes.insertRows,"0"),insertHyperlinks:s(r.attributes.insertHyperlinks,"0"),deleteColumns:s(r.attributes.deleteColumns,"0"),deleteRows:s(r.attributes.deleteRows,"0"),sort:s(r.attributes.sort,"0"),autoFilter:s(r.attributes.autoFilter,"0"),pivotTables:s(r.attributes.pivotTables,"0")},r.attributes.algorithmName&&(this.model.algorithmName=r.attributes.algorithmName,this.model.hashValue=r.attributes.hashValue,this.model.saltValue=r.attributes.saltValue,this.model.spinCount=parseInt(r.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}d.exports=t},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,d,m){const f=e("../../../utils/col-cache"),c=e("../base-xform"),u={frozen:"frozen",frozenSplit:"frozen",split:"split"};class s extends c{get tag(){return"sheetView"}prepare(n){switch(n.state){case"frozen":case"split":break;default:n.state="normal";break}}render(n,r){n.openNode("sheetView",{workbookViewId:r.workbookViewId||0});const i=function(v,h,w){w&&n.addAttribute(v,h)};i("rightToLeft","1",r.rightToLeft===!0),i("tabSelected","1",r.tabSelected),i("showRuler","0",r.showRuler===!1),i("showRowColHeaders","0",r.showRowColHeaders===!1),i("showGridLines","0",r.showGridLines===!1),i("zoomScale",r.zoomScale,r.zoomScale),i("zoomScaleNormal",r.zoomScaleNormal,r.zoomScaleNormal),i("view",r.style,r.style);let o,l,a,g;switch(r.state){case"frozen":l=r.xSplit||0,a=r.ySplit||0,o=r.topLeftCell||f.getAddress(a+1,l+1).address,g=r.xSplit&&r.ySplit&&"bottomRight"||r.xSplit&&"topRight"||"bottomLeft",n.leafNode("pane",{xSplit:r.xSplit||void 0,ySplit:r.ySplit||void 0,topLeftCell:o,activePane:g,state:"frozen"}),n.leafNode("selection",{pane:g,activeCell:r.activeCell,sqref:r.activeCell});break;case"split":r.activePane==="topLeft"&&(r.activePane=void 0),n.leafNode("pane",{xSplit:r.xSplit||void 0,ySplit:r.ySplit||void 0,topLeftCell:r.topLeftCell,activePane:r.activePane}),n.leafNode("selection",{pane:r.activePane,activeCell:r.activeCell,sqref:r.activeCell});break;case"normal":r.activeCell&&n.leafNode("selection",{activeCell:r.activeCell,sqref:r.activeCell});break}n.closeNode()}parseOpen(n){switch(n.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(n.attributes.workbookViewId,10),rightToLeft:n.attributes.rightToLeft==="1",tabSelected:n.attributes.tabSelected==="1",showRuler:n.attributes.showRuler!=="0",showRowColHeaders:n.attributes.showRowColHeaders!=="0",showGridLines:n.attributes.showGridLines!=="0",zoomScale:parseInt(n.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(n.attributes.zoomScaleNormal||"100",10),style:n.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(n.attributes.xSplit||"0",10),ySplit:parseInt(n.attributes.ySplit||"0",10),topLeftCell:n.attributes.topLeftCell,activePane:n.attributes.activePane||"topLeft",state:n.attributes.state},!0;case"selection":{const r=n.attributes.pane||"topLeft";return this.selections[r]={pane:r,activeCell:n.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(n){let r,i;switch(n){case"sheetView":return this.sheetView&&this.pane?(r=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:u[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"&&(r.activePane=this.pane.activePane),i=this.selections[this.pane.activePane],i&&i.activeCell&&(r.activeCell=i.activeCell),this.sheetView.style&&(r.style=this.sheetView.style)):(r=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&&i.activeCell&&(r.activeCell=i.activeCell),this.sheetView.style&&(r.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}d.exports=s},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"tablePart"}render(s,t){t&&s.leafNode(this.tag,{"r:id":t.rId})}parseOpen(s){switch(s.name){case this.tag:return this.model={rId:s.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],115:[function(e,d,m){const f=e("../../../utils/under-dash"),c=e("../../../utils/col-cache"),u=e("../../../utils/xml-stream"),s=e("../../rel-type"),t=e("./merges"),n=e("../base-xform"),r=e("../list-xform"),i=e("./row-xform"),o=e("./col-xform"),l=e("./dimension-xform"),a=e("./hyperlink-xform"),g=e("./merge-cell-xform"),v=e("./data-validations-xform"),h=e("./sheet-properties-xform"),w=e("./sheet-format-properties-xform"),y=e("./sheet-view-xform"),S=e("./sheet-protection-xform"),E=e("./page-margins-xform"),I=e("./page-setup-xform"),F=e("./print-options-xform"),B=e("./auto-filter-xform"),j=e("./picture-xform"),X=e("./drawing-xform"),G=e("./table-part-xform"),V=e("./row-breaks-xform"),J=e("./header-footer-xform"),H=e("./cf/conditional-formattings-xform"),M=e("./ext-lst-xform"),T=(P,L)=>{Object.keys(L).forEach($=>{const R=P[$],k=L[$];R===void 0&&k!==void 0&&(P[$]=k)})},_=(P,L)=>{if(!L||!L.length)return P;if(!P||!P.length)return L;const $={},R={};return P.forEach(k=>{$[k.ref]=k,k.rules.forEach(C=>{const{x14Id:O}=C;O&&(R[O]=C)})}),L.forEach(k=>{k.rules.forEach(C=>{const O=R[C.x14Id];O?T(O,C):$[k.ref]?$[k.ref].rules.push(C):P.push({ref:k.ref,rules:[C]})})}),P};class A extends n{constructor(L){super();const{maxRows:$,maxCols:R,ignoreNodes:k}=L||{};this.ignoreNodes=k||[],this.map={sheetPr:new h,dimension:new l,sheetViews:new r({tag:"sheetViews",count:!1,childXform:new y}),sheetFormatPr:new w,cols:new r({tag:"cols",count:!1,childXform:new o}),sheetData:new r({tag:"sheetData",count:!1,empty:!0,childXform:new i({maxItems:R}),maxItems:$}),autoFilter:new B,mergeCells:new r({tag:"mergeCells",count:!0,childXform:new g}),rowBreaks:new V,hyperlinks:new r({tag:"hyperlinks",count:!1,childXform:new a}),pageMargins:new E,dataValidations:new v,pageSetup:new I,headerFooter:new J,printOptions:new F,picture:new j,drawing:new X,sheetProtection:new S,tableParts:new r({tag:"tableParts",count:!0,childXform:new G}),conditionalFormatting:new H,extLst:new M}}prepare(L,$){$.merges=new t,L.hyperlinks=$.hyperlinks=[],L.comments=$.comments=[],$.formulae={},$.siFormulae=0,this.map.cols.prepare(L.cols,$),this.map.sheetData.prepare(L.rows,$),this.map.conditionalFormatting.prepare(L.conditionalFormattings,$),L.mergeCells=$.merges.mergeCells;const R=L.rels=[];function k(W){return`rId${W.length+1}`}if(L.hyperlinks.forEach(W=>{const ne=k(R);W.rId=ne,R.push({Id:ne,Type:s.Hyperlink,Target:W.target,TargetMode:"External"})}),L.comments.length>0){const W={Id:k(R),Type:s.Comments,Target:`../comments${L.id}.xml`};R.push(W);const ne={Id:k(R),Type:s.VmlDrawing,Target:`../drawings/vmlDrawing${L.id}.vml`};R.push(ne),L.comments.forEach(he=>{he.refAddress=c.decodeAddress(he.ref)}),$.commentRefs.push({commentName:`comments${L.id}`,vmlDrawing:`vmlDrawing${L.id}`})}const C=[];let O;L.media.forEach(W=>{if(W.type==="background"){const ne=k(R);O=$.media[W.imageId],R.push({Id:ne,Type:s.Image,Target:`../media/${O.name}.${O.extension}`}),L.background={rId:ne},L.image=$.media[W.imageId]}else if(W.type==="image"){let{drawing:ne}=L;O=$.media[W.imageId],ne||(ne=L.drawing={rId:k(R),name:`drawing${++$.drawingsCount}`,anchors:[],rels:[]},$.drawings.push(ne),R.push({Id:ne.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${ne.name}.xml`}));let he=this.preImageId===W.imageId?C[W.imageId]:C[ne.rels.length];he||(he=k(ne.rels),C[ne.rels.length]=he,ne.rels.push({Id:he,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${O.name}.${O.extension}`}));const ue={picture:{rId:he},range:W.range};if(W.hyperlinks&&W.hyperlinks.hyperlink){const Ae=k(ne.rels);C[ne.rels.length]=Ae,ue.picture.hyperlinks={tooltip:W.hyperlinks.tooltip,rId:Ae},ne.rels.push({Id:Ae,Type:s.Hyperlink,Target:W.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=W.imageId,ne.anchors.push(ue)}}),L.tables.forEach(W=>{const ne=k(R);W.rId=ne,R.push({Id:ne,Type:s.Table,Target:`../tables/${W.target}`}),W.columns.forEach(he=>{const{style:ue}=he;ue&&(he.dxfId=$.styles.addDxfStyle(ue))})}),this.map.extLst.prepare(L,$)}render(L,$){L.openXml(u.StdDocAttributes),L.openNode("worksheet",A.WORKSHEET_ATTRIBUTES);const R=$.properties?{defaultRowHeight:$.properties.defaultRowHeight,dyDescent:$.properties.dyDescent,outlineLevelCol:$.properties.outlineLevelCol,outlineLevelRow:$.properties.outlineLevelRow}:void 0;$.properties&&$.properties.defaultColWidth&&(R.defaultColWidth=$.properties.defaultColWidth);const k={outlineProperties:$.properties&&$.properties.outlineProperties,tabColor:$.properties&&$.properties.tabColor,pageSetup:$.pageSetup&&$.pageSetup.fitToPage?{fitToPage:$.pageSetup.fitToPage}:void 0},C=$.pageSetup&&$.pageSetup.margins,O={showRowColHeaders:$.pageSetup&&$.pageSetup.showRowColHeaders,showGridLines:$.pageSetup&&$.pageSetup.showGridLines,horizontalCentered:$.pageSetup&&$.pageSetup.horizontalCentered,verticalCentered:$.pageSetup&&$.pageSetup.verticalCentered},W=$.sheetProtection;this.map.sheetPr.render(L,k),this.map.dimension.render(L,$.dimensions),this.map.sheetViews.render(L,$.views),this.map.sheetFormatPr.render(L,R),this.map.cols.render(L,$.cols),this.map.sheetData.render(L,$.rows),this.map.sheetProtection.render(L,W),this.map.autoFilter.render(L,$.autoFilter),this.map.mergeCells.render(L,$.mergeCells),this.map.conditionalFormatting.render(L,$.conditionalFormattings),this.map.dataValidations.render(L,$.dataValidations),this.map.hyperlinks.render(L,$.hyperlinks),this.map.printOptions.render(L,O),this.map.pageMargins.render(L,C),this.map.pageSetup.render(L,$.pageSetup),this.map.headerFooter.render(L,$.headerFooter),this.map.rowBreaks.render(L,$.rowBreaks),this.map.drawing.render(L,$.drawing),this.map.picture.render(L,$.background),this.map.tableParts.render(L,$.tables),this.map.extLst.render(L,$),$.rels&&$.rels.forEach(ne=>{ne.Type===s.VmlDrawing&&L.leafNode("legacyDrawing",{"r:id":ne.Id})}),L.closeNode()}parseOpen(L){return this.parser?(this.parser.parseOpen(L),!0):L.name==="worksheet"?(f.each(this.map,$=>{$.reset()}),!0):(this.map[L.name]&&!this.ignoreNodes.includes(L.name)&&(this.parser=this.map[L.name],this.parser.parseOpen(L)),!0)}parseText(L){this.parser&&this.parser.parseText(L)}parseClose(L){if(this.parser)return this.parser.parseClose(L)||(this.parser=void 0),!0;switch(L){case"worksheet":{const $=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&($.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&($.outlineProperties=this.map.sheetPr.model.outlineProperties);const R={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},k=Object.assign(R,this.map.pageSetup.model,this.map.printOptions.model),C=_(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:$,views:this.map.sheetViews.model,pageSetup:k,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:C},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(L,$){const R=(L.relationships||[]).reduce((C,O)=>{if(C[O.Id]=O,O.Type===s.Comments&&(L.comments=$.comments[O.Target].comments),O.Type===s.VmlDrawing&&L.comments&&L.comments.length){const W=$.vmlDrawings[O.Target].comments;L.comments.forEach((ne,he)=>{ne.note=Object.assign({},ne.note,W[he])})}return C},{});if($.commentsMap=(L.comments||[]).reduce((C,O)=>(O.ref&&(C[O.ref]=O),C),{}),$.hyperlinkMap=(L.hyperlinks||[]).reduce((C,O)=>(O.rId&&(C[O.address]=R[O.rId].Target),C),{}),$.formulae={},L.rows=L.rows&&L.rows.filter(Boolean)||[],L.rows.forEach(C=>{C.cells=C.cells&&C.cells.filter(Boolean)||[]}),this.map.cols.reconcile(L.cols,$),this.map.sheetData.reconcile(L.rows,$),this.map.conditionalFormatting.reconcile(L.conditionalFormattings,$),L.media=[],L.drawing){const O=R[L.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(O){const W=O[1];$.drawings[W].anchors.forEach(he=>{if(he.medium){const ue={type:"image",imageId:he.medium.index,range:he.range,hyperlinks:he.picture.hyperlinks};L.media.push(ue)}})}}const k=L.background&&R[L.background.rId];if(k){const C=k.Target.split("/media/")[1],O=$.mediaIndex&&$.mediaIndex[C];O!==void 0&&L.media.push({type:"background",imageId:O})}L.tables=(L.tables||[]).map(C=>{const O=R[C.rId];return $.tables[O.Target]}),delete L.relationships,delete L.hyperlinks,delete L.comments}}A.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"},d.exports=A},{"../../../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(e,d,m){const f=e("../base-xform");class c extends f{constructor(s){super(),this.tag=s.tag,this.attr=s.attr}render(s,t){t&&(s.openNode(this.tag),s.closeNode())}parseOpen(s){s.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],117:[function(e,d,m){const f=e("../base-xform");class c extends f{constructor(s){super(),this.tag=s.tag,this.attr=s.attr,this.attrs=s.attrs,this._format=s.format||function(t){try{return Number.isNaN(t.getTime())?"":t.toISOString()}catch{return""}},this._parse=s.parse||function(t){return new Date(t)}}render(s,t){t&&(s.openNode(this.tag),this.attrs&&s.addAttributes(this.attrs),this.attr?s.addAttribute(this.attr,this._format(t)):s.writeText(this._format(t)),s.closeNode())}parseOpen(s){s.name===this.tag&&(this.attr?this.model=this._parse(s.attributes[this.attr]):this.text=[])}parseText(s){this.attr||this.text.push(s)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}d.exports=c},{"../base-xform":32}],118:[function(e,d,m){const f=e("../base-xform");class c extends f{constructor(s){super(),this.tag=s.tag,this.attr=s.attr,this.attrs=s.attrs,this.zero=s.zero}render(s,t){(t||this.zero)&&(s.openNode(this.tag),this.attrs&&s.addAttributes(this.attrs),this.attr?s.addAttribute(this.attr,t):s.writeText(t),s.closeNode())}parseOpen(s){return s.name===this.tag?(this.attr?this.model=parseInt(s.attributes[this.attr],10):this.text=[],!0):!1}parseText(s){this.attr||this.text.push(s)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}d.exports=c},{"../base-xform":32}],119:[function(e,d,m){const f=e("../base-xform");class c extends f{constructor(s){super(),this.tag=s.tag,this.attr=s.attr,this.attrs=s.attrs}render(s,t){t!==void 0&&(s.openNode(this.tag),this.attrs&&s.addAttributes(this.attrs),this.attr?s.addAttribute(this.attr,t):s.writeText(t),s.closeNode())}parseOpen(s){s.name===this.tag&&(this.attr?this.model=s.attributes[this.attr]:this.text=[])}parseText(s){this.attr||this.text.push(s)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}d.exports=c},{"../base-xform":32}],120:[function(e,d,m){const f=e("./base-xform"),c=e("../../utils/xml-stream");function u(t,n){t.openNode(n.tag,n.$),n.c&&n.c.forEach(r=>{u(t,r)}),n.t&&t.writeText(n.t),t.closeNode()}class s extends f{constructor(n){super(),this._model=n}render(n){if(!this._xml){const r=new c;u(r,this._model),this._xml=r.xml}n.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(n){switch(n){case this._model.tag:return!1;default:return!0}}}d.exports=s},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,d,m){const f=e("./text-xform"),c=e("./rich-text-xform"),u=e("../base-xform");class s extends u{constructor(){super(),this.map={r:new c,t:new f}}get tag(){return"rPh"}render(n,r){if(n.openNode(this.tag,{sb:r.sb||0,eb:r.eb||0}),r&&r.hasOwnProperty("richText")&&r.richText){const{r:i}=this.map;r.richText.forEach(o=>{i.render(n,o)})}else r&&this.map.t.render(n,r.text);n.closeNode()}parseOpen(n){const{name:r}=n;return this.parser?(this.parser.parseOpen(n),!0):r===this.tag?(this.model={sb:parseInt(n.attributes.sb,10),eb:parseInt(n.attributes.eb,10)},!0):(this.parser=this.map[r],this.parser?(this.parser.parseOpen(n),!0):!1)}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)){switch(n){case"r":{let r=this.model.richText;r||(r=this.model.richText=[]),r.push(this.parser.model);break}case"t":this.model.text=this.parser.model;break}this.parser=void 0}return!0}switch(n){case this.tag:return!1;default:return!0}}}d.exports=s},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,d,m){const f=e("./text-xform"),c=e("../style/font-xform"),u=e("../base-xform");class s extends u{constructor(n){super(),this.model=n}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new f)}get fontXform(){return this._fontXform||(this._fontXform=new c(s.FONT_OPTIONS))}render(n,r){r=r||this.model,n.openNode("r"),r.font&&this.fontXform.render(n,r.font),this.textXform.render(n,r.text),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(n),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){switch(n){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(n),!0}}}s.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},d.exports=s},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,d,m){const f=e("./text-xform"),c=e("./rich-text-xform"),u=e("./phonetic-text-xform"),s=e("../base-xform");class t extends s{constructor(r){super(),this.model=r,this.map={r:new c,t:new f,rPh:new u}}get tag(){return"si"}render(r,i){r.openNode(this.tag),i&&i.hasOwnProperty("richText")&&i.richText?i.richText.length?i.richText.forEach(o=>{this.map.r.render(r,o)}):this.map.t.render(r,""):i!=null&&this.map.t.render(r,i),r.closeNode()}parseOpen(r){const{name:i}=r;return this.parser?(this.parser.parseOpen(r),!0):i===this.tag?(this.model={},!0):(this.parser=this.map[i],this.parser?(this.parser.parseOpen(r),!0):!1)}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){switch(r){case"r":{let i=this.model.richText;i||(i=this.model.richText=[]),i.push(this.parser.model);break}case"t":this.model=this.parser.model;break}this.parser=void 0}return!0}switch(r){case this.tag:return!1;default:return!0}}}d.exports=t},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,d,m){const f=e("../../../utils/xml-stream"),c=e("../base-xform"),u=e("./shared-string-xform");class s extends c{constructor(n){super(),this.model=n||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new u)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(n){return this.model.values[n]}add(n){return n.richText?this.addRichText(n):this.addText(n)}addText(n){let r=this.hash[n];return r===void 0&&(r=this.hash[n]=this.model.values.length,this.model.values.push(n)),this.model.count++,r}addRichText(n){const r=this.sharedStringXform.toXml(n);let i=this.rich[r];return i===void 0&&(i=this.rich[r]=this.model.values.length,this.model.values.push(n)),this.model.count++,i}render(n,r){r=r||this._values,n.openXml(f.StdDocAttributes),n.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:r.count,uniqueCount:r.values.length});const i=this.sharedStringXform;r.values.forEach(o=>{i.render(n,o)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(n),!0;default:throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(n)}`)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(n){case"sst":return!1;default:throw new Error(`Unexpected xml node in parseClose: ${n}`)}}}d.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"t"}render(s,t){s.openNode("t"),/^\s|\n|\s$/.test(t)&&s.addAttribute("xml:space","preserve"),s.writeText(t),s.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(s,t)=>String.fromCharCode(parseInt(t,16)))}parseOpen(s){switch(s.name){case"t":return this._text=[],!0;default:return!1}}parseText(s){this._text.push(s)}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],126:[function(e,d,m){const f=e("../../../doc/enums"),c=e("../../../utils/utils"),u=e("../base-xform"),s={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((r,i)=>(r[i]=!0,r),{}),horizontal(r){return this.horizontalValues[r]?r:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((r,i)=>(r[i]=!0,r),{}),vertical(r){return r==="middle"?"center":this.verticalValues[r]?r:void 0},wrapText(r){return r?!0:void 0},shrinkToFit(r){return r?!0:void 0},textRotation(r){switch(r){case"vertical":return r;default:return r=c.validInt(r),r>=-90&&r<=90?r:void 0}},indent(r){return r=c.validInt(r),Math.max(0,r)},readingOrder(r){switch(r){case"ltr":return f.ReadingOrder.LeftToRight;case"rtl":return f.ReadingOrder.RightToLeft;default:return}}},t={toXml(r){if(r=s.textRotation(r),r){if(r==="vertical")return 255;const i=Math.round(r);if(i>=0&&i<=90)return i;if(i<0&&i>=-90)return 90-i}},toModel(r){const i=c.validInt(r);if(i!==void 0){if(i===255)return"vertical";if(i>=0&&i<=90)return i;if(i>90&&i<=180)return 90-i}}};class n extends u{get tag(){return"alignment"}render(i,o){i.addRollback(),i.openNode("alignment");let l=!1;function a(g,v){v&&(i.addAttribute(g,v),l=!0)}a("horizontal",s.horizontal(o.horizontal)),a("vertical",s.vertical(o.vertical)),a("wrapText",s.wrapText(o.wrapText)?"1":!1),a("shrinkToFit",s.shrinkToFit(o.shrinkToFit)?"1":!1),a("indent",s.indent(o.indent)),a("textRotation",t.toXml(o.textRotation)),a("readingOrder",s.readingOrder(o.readingOrder)),i.closeNode(),l?i.commit():i.rollback()}parseOpen(i){const o={};let l=!1;function a(g,v,h){g&&(o[v]=h,l=!0)}a(i.attributes.horizontal,"horizontal",i.attributes.horizontal),a(i.attributes.vertical,"vertical",i.attributes.vertical==="center"?"middle":i.attributes.vertical),a(i.attributes.wrapText,"wrapText",c.parseBoolean(i.attributes.wrapText)),a(i.attributes.shrinkToFit,"shrinkToFit",c.parseBoolean(i.attributes.shrinkToFit)),a(i.attributes.indent,"indent",parseInt(i.attributes.indent,10)),a(i.attributes.textRotation,"textRotation",t.toModel(i.attributes.textRotation)),a(i.attributes.readingOrder,"readingOrder",i.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=l?o:null}parseText(){}parseClose(){return!1}}d.exports=n},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,d,m){const f=e("../base-xform"),c=e("../../../utils/utils"),u=e("./color-xform");class s extends f{constructor(r){super(),this.name=r,this.map={color:new u}}get tag(){return this.name}render(r,i,o){const l=i&&i.color||o||this.defaultColor;r.openNode(this.name),i&&i.style&&(r.addAttribute("style",i.style),l&&this.map.color.render(r,l)),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.name:{const{style:i}=r.attributes;return i?this.model={style:i}:this.model=void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.parser=void 0),!0):(r===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(r){return s.validStyleValues[r]}}s.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((n,r)=>(n[r]=!0,n),{});class t extends f{constructor(){super(),this.map={top:new s("top"),left:new s("left"),bottom:new s("bottom"),right:new s("right"),diagonal:new s("diagonal")}}render(r,i){const{color:o}=i;r.openNode("border"),i.diagonal&&i.diagonal.style&&(i.diagonal.up&&r.addAttribute("diagonalUp","1"),i.diagonal.down&&r.addAttribute("diagonalDown","1"));function l(a,g){a&&!a.color&&i.color&&(a={...a,color:i.color}),g.render(r,a,o)}l(i.left,this.map.left),l(i.right,this.map.right),l(i.top,this.map.top),l(i.bottom,this.map.bottom),l(i.diagonal,this.map.diagonal),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"border":return this.reset(),this.diagonalUp=c.parseBoolean(r.attributes.diagonalUp),this.diagonalDown=c.parseBoolean(r.attributes.diagonalDown),!0;default:return this.parser=this.map[r.name],this.parser?(this.parser.parseOpen(r),!0):!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;if(r==="border"){const i=this.model={},o=function(l,a,g){a&&(g&&Object.assign(a,g),i[l]=a)};o("left",this.map.left.model),o("right",this.map.right.model),o("top",this.map.top.model),o("bottom",this.map.bottom.model),o("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}d.exports=t},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,d,m){const f=e("../base-xform");class c extends f{constructor(s){super(),this.name=s||"color"}get tag(){return this.name}render(s,t){return t?(s.openNode(this.name),t.argb?s.addAttribute("rgb",t.argb):t.theme!==void 0?(s.addAttribute("theme",t.theme),t.tint!==void 0&&s.addAttribute("tint",t.tint)):t.indexed!==void 0?s.addAttribute("indexed",t.indexed):s.addAttribute("auto","1"),s.closeNode(),!0):!1}parseOpen(s){return s.name===this.name?(s.attributes.rgb?this.model={argb:s.attributes.rgb}:s.attributes.theme?(this.model={theme:parseInt(s.attributes.theme,10)},s.attributes.tint&&(this.model.tint=parseFloat(s.attributes.tint))):s.attributes.indexed?this.model={indexed:parseInt(s.attributes.indexed,10)}:this.model=void 0,!0):!1}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],129:[function(e,d,m){const f=e("../base-xform"),c=e("./alignment-xform"),u=e("./border-xform"),s=e("./fill-xform"),t=e("./font-xform"),n=e("./numfmt-xform"),r=e("./protection-xform");class i extends f{constructor(){super(),this.map={alignment:new c,border:new u,fill:new s,font:new t,numFmt:new n,protection:new r}}get tag(){return"dxf"}render(l,a){if(l.openNode(this.tag),a.font&&this.map.font.render(l,a.font),a.numFmt&&a.numFmtId){const g={id:a.numFmtId,formatCode:a.numFmt};this.map.numFmt.render(l,g)}a.fill&&this.map.fill.render(l,a.fill),a.alignment&&this.map.alignment.render(l,a.alignment),a.border&&this.map.border.render(l,a.border),a.protection&&this.map.protection.render(l,a.protection),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l),!0}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):l===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):!0}}d.exports=i},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,d,m){const f=e("../base-xform"),c=e("./color-xform");class u extends f{constructor(){super(),this.map={color:new c}}get tag(){return"stop"}render(i,o){i.openNode("stop"),i.addAttribute("position",o.position),this.map.color.render(i,o.color),i.closeNode()}parseOpen(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}}parseText(){}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.model.color=this.parser.model,this.parser=void 0),!0):!1}}class s extends f{constructor(){super(),this.map={fgColor:new c("fgColor"),bgColor:new c("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(i,o){i.openNode("patternFill"),i.addAttribute("patternType",o.pattern),o.fgColor&&this.map.fgColor.render(i,o.fgColor),o.bgColor&&this.map.bgColor.render(i,o.bgColor),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"patternFill":return this.model={type:"pattern",pattern:i.attributes.patternType},!0;default:return this.parser=this.map[i.name],this.parser?(this.parser.parseOpen(i),!0):!1}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.parser.model&&(this.model[i]=this.parser.model),this.parser=void 0),!0):!1}}class t extends f{constructor(){super(),this.map={stop:new u}}get name(){return"gradient"}get tag(){return"gradientFill"}render(i,o){switch(i.openNode("gradientFill"),o.gradient){case"angle":i.addAttribute("degree",o.degree);break;case"path":i.addAttribute("type","path"),o.center.left&&(i.addAttribute("left",o.center.left),o.center.right===void 0&&i.addAttribute("right",o.center.left)),o.center.right&&i.addAttribute("right",o.center.right),o.center.top&&(i.addAttribute("top",o.center.top),o.center.bottom===void 0&&i.addAttribute("bottom",o.center.top)),o.center.bottom&&i.addAttribute("bottom",o.center.bottom);break}const l=this.map.stop;o.stops.forEach(a=>{l.render(i,a)}),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"gradientFill":{const o=this.model={stops:[]};return i.attributes.degree?(o.gradient="angle",o.degree=parseInt(i.attributes.degree,10)):i.attributes.type==="path"&&(o.gradient="path",o.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&&(o.center.right=i.attributes.right?parseFloat(i.attributes.right):0),i.attributes.bottom!==i.attributes.top&&(o.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}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0):!1}}class n extends f{constructor(){super(),this.map={patternFill:new s,gradientFill:new t}}get tag(){return"fill"}render(i,o){switch(i.addRollback(),i.openNode("fill"),o.type){case"pattern":this.map.patternFill.render(i,o);break;case"gradient":this.map.gradientFill.render(i,o);break;default:i.rollback();return}i.closeNode(),i.commit()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"fill":return this.model={},!0;default:return this.parser=this.map[i.name],this.parser?(this.parser.parseOpen(i),!0):!1}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0):!1}validStyle(i){return n.validPatternValues[i]}}n.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((r,i)=>(r[i]=!0,r),{}),n.StopXform=u,n.PatternFillXform=s,n.GradientFillXform=t,d.exports=n},{"../base-xform":32,"./color-xform":128}],131:[function(e,d,m){const f=e("./color-xform"),c=e("../simple/boolean-xform"),u=e("../simple/integer-xform"),s=e("../simple/string-xform"),t=e("./underline-xform"),n=e("../../../utils/under-dash"),r=e("../base-xform");class i extends r{constructor(l){super(),this.options=l||i.OPTIONS,this.map={b:{prop:"bold",xform:new c({tag:"b",attr:"val"})},i:{prop:"italic",xform:new c({tag:"i",attr:"val"})},u:{prop:"underline",xform:new t},charset:{prop:"charset",xform:new u({tag:"charset",attr:"val"})},color:{prop:"color",xform:new f},condense:{prop:"condense",xform:new c({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new c({tag:"extend",attr:"val"})},family:{prop:"family",xform:new u({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new c({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new s({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new s({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new c({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new c({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new u({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new s({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(l,a){const{map:g}=this;l.openNode(this.options.tagName),n.each(this.map,(v,h)=>{g[h].xform.render(l,a[v.prop])}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;if(this.map[l.name])return this.parser=this.map[l.name].xform,this.parser.parseOpen(l);switch(l.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser&&!this.parser.parseClose(l)){const a=this.map[l];return this.parser.model&&(this.model[a.prop]=this.parser.model),this.parser=void 0,!0}switch(l){case this.options.tagName:return!1;default:return!0}}}i.OPTIONS={tagName:"font",fontNameTag:"name"},d.exports=i},{"../../../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(e,d,m){const f=e("../../../utils/under-dash"),c=e("../../defaultnumformats"),u=e("../base-xform");function s(){const r={};return f.each(c,(i,o)=>{i.f&&(r[i.f]=parseInt(o,10))}),r}const t=s();class n extends u{constructor(i,o){super(),this.id=i,this.formatCode=o}get tag(){return"numFmt"}render(i,o){i.leafNode("numFmt",{numFmtId:o.id,formatCode:o.formatCode})}parseOpen(i){switch(i.name){case"numFmt":return this.model={id:parseInt(i.attributes.numFmtId,10),formatCode:i.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}n.getDefaultFmtId=function(i){return t[i]},n.getDefaultFmtCode=function(i){return c[i]&&c[i].f},d.exports=n},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,d,m){const f=e("../base-xform"),c={boolean(s,t){return s===void 0?t:s}};class u extends f{get tag(){return"protection"}render(t,n){t.addRollback(),t.openNode("protection");let r=!1;function i(o,l){l!==void 0&&(t.addAttribute(o,l),r=!0)}i("locked",c.boolean(n.locked,!0)?void 0:"0"),i("hidden",c.boolean(n.hidden,!1)?"1":void 0),t.closeNode(),r?t.commit():t.rollback()}parseOpen(t){const n={locked:t.attributes.locked!=="0",hidden:t.attributes.hidden==="1"},r=!n.locked||n.hidden;this.model=r?n:null}parseText(){}parseClose(){return!1}}d.exports=u},{"../base-xform":32}],134:[function(e,d,m){const f=e("../base-xform"),c=e("./alignment-xform"),u=e("./protection-xform");class s extends f{constructor(n){super(),this.xfId=!!(n&&n.xfId),this.map={alignment:new c,protection:new u}}get tag(){return"xf"}render(n,r){n.openNode("xf",{numFmtId:r.numFmtId||0,fontId:r.fontId||0,fillId:r.fillId||0,borderId:r.borderId||0}),this.xfId&&n.addAttribute("xfId",r.xfId||0),r.numFmtId&&n.addAttribute("applyNumberFormat","1"),r.fontId&&n.addAttribute("applyFont","1"),r.fillId&&n.addAttribute("applyFill","1"),r.borderId&&n.addAttribute("applyBorder","1"),r.alignment&&n.addAttribute("applyAlignment","1"),r.protection&&n.addAttribute("applyProtection","1"),r.alignment&&this.map.alignment.render(n,r.alignment),r.protection&&this.map.protection.render(n,r.protection),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"xf":return this.model={numFmtId:parseInt(n.attributes.numFmtId,10),fontId:parseInt(n.attributes.fontId,10),fillId:parseInt(n.attributes.fillId,10),borderId:parseInt(n.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(n.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(n),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):n!=="xf"}}d.exports=s},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,d,m){const f=e("../../../doc/enums"),c=e("../../../utils/xml-stream"),u=e("../base-xform"),s=e("../static-xform"),t=e("../list-xform"),n=e("./font-xform"),r=e("./fill-xform"),i=e("./border-xform"),o=e("./numfmt-xform"),l=e("./style-xform"),a=e("./dxf-xform"),g=164;class v extends u{constructor(y){super(),this.map={numFmts:new t({tag:"numFmts",count:!0,childXform:new o}),fonts:new t({tag:"fonts",count:!0,childXform:new n,$:{"x14ac:knownFonts":1}}),fills:new t({tag:"fills",count:!0,childXform:new r}),borders:new t({tag:"borders",count:!0,childXform:new i}),cellStyleXfs:new t({tag:"cellStyleXfs",count:!0,childXform:new l}),cellXfs:new t({tag:"cellXfs",count:!0,childXform:new l({xfId:!0})}),dxfs:new t({tag:"dxfs",always:!0,count:!0,childXform:new a}),numFmt:new o,font:new n,fill:new r,border:new i,style:new l({xfId:!0}),cellStyles:v.STATIC_XFORMS.cellStyles,tableStyles:v.STATIC_XFORMS.tableStyles,extLst:v.STATIC_XFORMS.extLst},y&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){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}render(y,S){S=S||this.model,y.openXml(c.StdDocAttributes),y.openNode("styleSheet",v.STYLESHEET_ATTRIBUTES),this.index?(S.numFmts&&S.numFmts.length&&(y.openNode("numFmts",{count:S.numFmts.length}),S.numFmts.forEach(E=>{y.writeXml(E)}),y.closeNode()),S.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),y.openNode("fonts",{count:S.fonts.length,"x14ac:knownFonts":1}),S.fonts.forEach(E=>{y.writeXml(E)}),y.closeNode(),y.openNode("fills",{count:S.fills.length}),S.fills.forEach(E=>{y.writeXml(E)}),y.closeNode(),y.openNode("borders",{count:S.borders.length}),S.borders.forEach(E=>{y.writeXml(E)}),y.closeNode(),this.map.cellStyleXfs.render(y,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),y.openNode("cellXfs",{count:S.styles.length}),S.styles.forEach(E=>{y.writeXml(E)}),y.closeNode()):(this.map.numFmts.render(y,S.numFmts),this.map.fonts.render(y,S.fonts),this.map.fills.render(y,S.fills),this.map.borders.render(y,S.borders),this.map.cellStyleXfs.render(y,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(y,S.styles)),v.STATIC_XFORMS.cellStyles.render(y),this.map.dxfs.render(y,S.dxfs),v.STATIC_XFORMS.tableStyles.render(y),v.STATIC_XFORMS.extLst.render(y),y.closeNode()}parseOpen(y){if(this.parser)return this.parser.parseOpen(y),!0;switch(y.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[y.name],this.parser&&this.parser.parseOpen(y),!0}}parseText(y){this.parser&&this.parser.parseText(y)}parseClose(y){if(this.parser)return this.parser.parseClose(y)||(this.parser=void 0),!0;switch(y){case"styleSheet":{this.model={};const S=(E,I)=>{I.model&&I.model.length&&(this.model[E]=I.model)};if(S("numFmts",this.map.numFmts),S("fonts",this.map.fonts),S("fills",this.map.fills),S("borders",this.map.borders),S("styles",this.map.cellXfs),S("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const E=this.index.numFmt;this.model.numFmts.forEach(I=>{E[I.id]=I.formatCode})}return!1}default:return!0}}addStyleModel(y,S){if(!y)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(y))return this.weakMap.get(y);const E={};if(S=S||f.ValueType.Number,y.numFmt)E.numFmtId=this._addNumFmtStr(y.numFmt);else switch(S){case f.ValueType.Number:E.numFmtId=this._addNumFmtStr("General");break;case f.ValueType.Date:E.numFmtId=this._addNumFmtStr("mm-dd-yy");break}y.font&&(E.fontId=this._addFont(y.font)),y.border&&(E.borderId=this._addBorder(y.border)),y.fill&&(E.fillId=this._addFill(y.fill)),y.alignment&&(E.alignment=y.alignment),y.protection&&(E.protection=y.protection);const I=this._addStyle(E);return this.weakMap&&this.weakMap.set(y,I),I}getStyleModel(y){const S=this.model.styles[y];if(!S)return null;let E=this.index.model[y];if(E)return E;if(E=this.index.model[y]={},S.numFmtId){const F=this.index.numFmt[S.numFmtId]||o.getDefaultFmtCode(S.numFmtId);F&&(E.numFmt=F)}function I(F,B,j){if(j||j===0){const X=B[j];X&&(E[F]=X)}}return I("font",this.model.fonts,S.fontId),I("border",this.model.borders,S.borderId),I("fill",this.model.fills,S.fillId),S.alignment&&(E.alignment=S.alignment),S.protection&&(E.protection=S.protection),E}addDxfStyle(y){return y.numFmt&&(y.numFmtId=this._addNumFmtStr(y.numFmt)),this.model.dxfs.push(y),this.model.dxfs.length-1}getDxfStyle(y){return this.model.dxfs[y]}_addStyle(y){const S=this.map.style.toXml(y);let E=this.index.style[S];return E===void 0&&(E=this.index.style[S]=this.model.styles.length,this.model.styles.push(S)),E}_addNumFmtStr(y){let S=o.getDefaultFmtId(y);if(S!==void 0||(S=this.index.numFmt[y],S!==void 0))return S;S=this.index.numFmt[y]=g+this.model.numFmts.length;const E=this.map.numFmt.toXml({id:S,formatCode:y});return this.model.numFmts.push(E),S}_addFont(y){const S=this.map.font.toXml(y);let E=this.index.font[S];return E===void 0&&(E=this.index.font[S]=this.model.fonts.length,this.model.fonts.push(S)),E}_addBorder(y){const S=this.map.border.toXml(y);let E=this.index.border[S];return E===void 0&&(E=this.index.border[S]=this.model.borders.length,this.model.borders.push(S)),E}_addFill(y){const S=this.map.fill.toXml(y);let E=this.index.fill[S];return E===void 0&&(E=this.index.fill[S]=this.model.fills.length,this.model.fills.push(S)),E}}v.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"},v.STATIC_XFORMS={cellStyles:new s({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new s({tag:"dxfs",$:{count:0}}),tableStyles:new s({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new s({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"}}]}]})};class h extends v{constructor(){super(),this.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"}]}}parseStream(y){return y.autodrain(),Promise.resolve()}addStyleModel(y,S){switch(S){case f.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const y={numFmtId:o.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(y)}return this._dateStyleId}getStyleModel(){return{}}}v.Mock=h,d.exports=v},{"../../../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(e,d,m){const f=e("../base-xform");class c extends f{constructor(s){super(),this.model=s}get tag(){return"u"}render(s,t){if(t=t||this.model,t===!0)s.leafNode("u");else{const n=c.Attributes[t];n&&s.leafNode("u",n)}}parseOpen(s){s.name==="u"&&(this.model=s.attributes.val||!0)}parseText(){}parseClose(){return!1}}c.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},d.exports=c},{"../base-xform":32}],137:[function(e,d,m){const f=e("../base-xform"),c=e("./filter-column-xform");class u extends f{constructor(){super(),this.map={filterColumn:new c}}get tag(){return"autoFilter"}prepare(t){t.columns.forEach((n,r)=>{this.map.filterColumn.prepare(n,{index:r})})}render(t,n){return t.openNode(this.tag,{ref:n.autoFilterRef}),n.columns.forEach(r=>{this.map.filterColumn.render(t,r)}),t.closeNode(),!0}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case this.tag:return this.model={autoFilterRef:t.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[t.name],this.parser)return this.parseOpen(t),!0;throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(t)}`)}}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(t){case this.tag:return!1;default:throw new Error(`Unexpected xml node in parseClose: ${t}`)}}}d.exports=u},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"customFilter"}render(s,t){s.leafNode(this.tag,{val:t.val,operator:t.operator})}parseOpen(s){return s.name===this.tag?(this.model={val:s.attributes.val,operator:s.attributes.operator},!0):!1}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],139:[function(e,d,m){const f=e("../base-xform"),c=e("../list-xform"),u=e("./custom-filter-xform"),s=e("./filter-xform");class t extends f{constructor(){super(),this.map={customFilters:new c({tag:"customFilters",count:!1,empty:!0,childXform:new u}),filters:new c({tag:"filters",count:!1,empty:!0,childXform:new s})}}get tag(){return"filterColumn"}prepare(r,i){r.colId=i.index.toString()}render(r,i){return i.customFilters?(r.openNode(this.tag,{colId:i.colId,hiddenButton:i.filterButton?"0":"1"}),this.map.customFilters.render(r,i.customFilters),r.closeNode(),!0):(r.leafNode(this.tag,{colId:i.colId,hiddenButton:i.filterButton?"0":"1"}),!0)}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;const{attributes:i}=r;switch(r.name){case this.tag:return this.model={filterButton:i.hiddenButton==="0"},!0;default:if(this.parser=this.map[r.name],this.parser)return this.parseOpen(r),!0;throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(r)}`)}}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}d.exports=t},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"filter"}render(s,t){s.leafNode(this.tag,{val:t.val})}parseOpen(s){return s.name===this.tag?(this.model={val:s.attributes.val},!0):!1}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],141:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"tableColumn"}prepare(s,t){s.id=t.index+1}render(s,t){return s.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}parseOpen(s){if(s.name===this.tag){const{attributes:t}=s;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],142:[function(e,d,m){const f=e("../base-xform");class c extends f{get tag(){return"tableStyleInfo"}render(s,t){return s.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"}),!0}parseOpen(s){if(s.name===this.tag){const{attributes:t}=s;return this.model={theme:t.name?t.name:null,showFirstColumn:t.showFirstColumn==="1",showLastColumn:t.showLastColumn==="1",showRowStripes:t.showRowStripes==="1",showColumnStripes:t.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}d.exports=c},{"../base-xform":32}],143:[function(e,d,m){const f=e("../../../utils/xml-stream"),c=e("../base-xform"),u=e("../list-xform"),s=e("./auto-filter-xform"),t=e("./table-column-xform"),n=e("./table-style-info-xform");class r extends c{constructor(){super(),this.map={autoFilter:new s,tableColumns:new u({tag:"tableColumns",count:!0,empty:!0,childXform:new t}),tableStyleInfo:new n}}prepare(o,l){this.map.autoFilter.prepare(o),this.map.tableColumns.prepare(o.columns,l)}get tag(){return"table"}render(o,l){o.openXml(f.StdDocAttributes),o.openNode(this.tag,{...r.TABLE_ATTRIBUTES,id:l.id,name:l.name,displayName:l.displayName||l.name,ref:l.tableRef,totalsRowCount:l.totalsRow?"1":void 0,totalsRowShown:l.totalsRow?void 0:"1",headerRowCount:l.headerRow?"1":"0"}),this.map.autoFilter.render(o,l),this.map.tableColumns.render(o,l.columns),this.map.tableStyleInfo.render(o,l.style),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;const{name:l,attributes:a}=o;switch(l){case this.tag:this.reset(),this.model={name:a.name,displayName:a.displayName||a.name,tableRef:a.ref,totalsRow:a.totalsRowCount==="1",headerRow:a.headerRowCount==="1"};break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o);break}return!0}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){case this.tag:return 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((l,a)=>{this.model.columns[a].filterButton=l.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(o,l){o.columns.forEach(a=>{a.dxfId!==void 0&&(a.style=l.styles.getDxfStyle(a.dxfId))})}}r.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"},d.exports=r},{"../../../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(e,d,m){(function(f,c){(function(){const u=e("fs"),s=e("jszip"),{PassThrough:t}=e("readable-stream"),n=e("../utils/zip-stream"),r=e("../utils/stream-buf"),i=e("../utils/utils"),o=e("../utils/xml-stream"),{bufferToString:l}=e("../utils/browser-buffer-decode"),a=e("./xform/style/styles-xform"),g=e("./xform/core/core-xform"),v=e("./xform/strings/shared-strings-xform"),h=e("./xform/core/relationships-xform"),w=e("./xform/core/content-types-xform"),y=e("./xform/core/app-xform"),S=e("./xform/book/workbook-xform"),E=e("./xform/sheet/worksheet-xform"),I=e("./xform/drawing/drawing-xform"),F=e("./xform/table/table-xform"),B=e("./xform/comment/comments-xform"),j=e("./xform/comment/vml-notes-xform"),X=e("./xml/theme1");function G(J,H){return new Promise((M,T)=>{u.readFile(J,H,(_,A)=>{_?T(_):M(A)})})}class V{constructor(H){this.workbook=H}async readFile(H,M){if(!await i.fs.exists(H))throw new Error(`File not found: ${H}`);const T=u.createReadStream(H);try{const _=await this.read(T,M);return T.close(),_}catch(_){throw T.close(),_}}parseRels(H){return new h().parseStream(H)}parseWorkbook(H){return new S().parseStream(H)}parseSharedStrings(H){return new v().parseStream(H)}reconcile(H,M){const T=new S,_=new E(M),A=new I,P=new F;T.reconcile(H);const L={media:H.media,mediaIndex:H.mediaIndex};Object.keys(H.drawings).forEach(k=>{const C=H.drawings[k],O=H.drawingRels[k];O&&(L.rels=O.reduce((W,ne)=>(W[ne.Id]=ne,W),{}),(C.anchors||[]).forEach(W=>{const ne=W.picture&&W.picture.hyperlinks;ne&&L.rels[ne.rId]&&(ne.hyperlink=L.rels[ne.rId].Target,delete ne.rId)}),A.reconcile(C,L))});const $={styles:H.styles};Object.values(H.tables).forEach(k=>{P.reconcile(k,$)});const R={styles:H.styles,sharedStrings:H.sharedStrings,media:H.media,mediaIndex:H.mediaIndex,date1904:H.properties&&H.properties.date1904,drawings:H.drawings,comments:H.comments,tables:H.tables,vmlDrawings:H.vmlDrawings};H.worksheets.forEach(k=>{k.relationships=H.worksheetRels[k.sheetNo],_.reconcile(k,R)}),delete H.worksheetHash,delete H.worksheetRels,delete H.globalRels,delete H.sharedStrings,delete H.workbookRels,delete H.sheetDefs,delete H.styles,delete H.mediaIndex,delete H.drawings,delete H.drawingRels,delete H.vmlDrawings}async _processWorksheetEntry(H,M,T,_,A){const L=await new E(_).parseStream(H);L.sheetNo=T,M.worksheetHash[A]=L,M.worksheets.push(L)}async _processCommentEntry(H,M,T){const A=await new B().parseStream(H);M.comments[`../${T}.xml`]=A}async _processTableEntry(H,M,T){const A=await new F().parseStream(H);M.tables[`../tables/${T}.xml`]=A}async _processWorksheetRelsEntry(H,M,T){const A=await new h().parseStream(H);M.worksheetRels[T]=A}async _processMediaEntry(H,M,T){const _=T.lastIndexOf(".");if(_>=1){const A=T.substr(_+1),P=T.substr(0,_);await new Promise((L,$)=>{const R=new r;R.on("finish",()=>{M.mediaIndex[T]=M.media.length,M.mediaIndex[P]=M.media.length;const k={type:"image",name:P,extension:A,buffer:R.toBuffer()};M.media.push(k),L()}),H.on("error",k=>{$(k)}),H.pipe(R)})}}async _processDrawingEntry(H,M,T){const A=await new I().parseStream(H);M.drawings[T]=A}async _processDrawingRelsEntry(H,M,T){const A=await new h().parseStream(H);M.drawingRels[T]=A}async _processVmlDrawingEntry(H,M,T){const A=await new j().parseStream(H);M.vmlDrawings[`../drawings/${T}.vml`]=A}async _processThemeEntry(H,M,T){await new Promise((_,A)=>{const P=new r;H.on("error",A),P.on("error",A),P.on("finish",()=>{M.themes[T]=P.read().toString(),_()}),H.pipe(P)})}createInputStream(){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")}async read(H,M){!H[Symbol.asyncIterator]&&H.pipe&&(H=H.pipe(new t));const T=[];for await(const _ of H)T.push(_);return this.load(c.concat(T),M)}async load(H,M){let T;M&&M.base64?T=c.from(H.toString(),"base64"):T=H;const _={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},A=await s.loadAsync(T);for(const P of Object.values(A.files))if(!P.dir){let L=P.name;L[0]==="/"&&(L=L.substr(1));let $;if(L.match(/xl\/media\//)||L.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))$=new t,$.write(await P.async("nodebuffer"));else{$=new t({writableObjectMode:!0,readableObjectMode:!0});let R;f.browser?R=l(await P.async("nodebuffer")):R=await P.async("string");const k=16*1024;for(let C=0;C<R.length;C+=k)$.write(R.substring(C,C+k))}switch($.end(),L){case"_rels/.rels":_.globalRels=await this.parseRels($);break;case"xl/workbook.xml":{const R=await this.parseWorkbook($);_.sheets=R.sheets,_.definedNames=R.definedNames,_.views=R.views,_.properties=R.properties,_.calcProperties=R.calcProperties;break}case"xl/_rels/workbook.xml.rels":_.workbookRels=await this.parseRels($);break;case"xl/sharedStrings.xml":_.sharedStrings=new v,await _.sharedStrings.parseStream($);break;case"xl/styles.xml":_.styles=new a,await _.styles.parseStream($);break;case"docProps/app.xml":{const k=await new y().parseStream($);_.company=k.company,_.manager=k.manager;break}case"docProps/core.xml":{const k=await new g().parseStream($);Object.assign(_,k);break}default:{let R=L.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(R){await this._processWorksheetEntry($,_,R[1],M,L);break}if(R=L.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),R){await this._processWorksheetRelsEntry($,_,R[1]);break}if(R=L.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),R){await this._processThemeEntry($,_,R[1]);break}if(R=L.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),R){await this._processMediaEntry($,_,R[1]);break}if(R=L.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),R){await this._processDrawingEntry($,_,R[1]);break}if(R=L.match(/xl\/(comments\d+)[.]xml/),R){await this._processCommentEntry($,_,R[1]);break}if(R=L.match(/xl\/tables\/(table\d+)[.]xml/),R){await this._processTableEntry($,_,R[1]);break}if(R=L.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),R){await this._processDrawingRelsEntry($,_,R[1]);break}if(R=L.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),R){await this._processVmlDrawingEntry($,_,R[1]);break}}}}return this.reconcile(_,M),this.workbook.model=_,this.workbook}async addMedia(H,M){await Promise.all(M.media.map(async T=>{if(T.type==="image"){const _=`xl/media/${T.name}.${T.extension}`;if(T.filename){const A=await G(T.filename);return H.append(A,{name:_})}if(T.buffer)return H.append(T.buffer,{name:_});if(T.base64){const A=T.base64,P=A.substring(A.indexOf(",")+1);return H.append(P,{name:_,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(H,M){const T=new I,_=new h;M.worksheets.forEach(A=>{const{drawing:P}=A;if(P){T.prepare(P,{});let L=T.toXml(P);H.append(L,{name:`xl/drawings/${P.name}.xml`}),L=_.toXml(P.rels),H.append(L,{name:`xl/drawings/_rels/${P.name}.xml.rels`})}})}addTables(H,M){const T=new F;M.worksheets.forEach(_=>{const{tables:A}=_;A.forEach(P=>{T.prepare(P,{});const L=T.toXml(P);H.append(L,{name:`xl/tables/${P.target}`})})})}async addContentTypes(H,M){const _=new w().toXml(M);H.append(_,{name:"[Content_Types].xml"})}async addApp(H,M){const _=new y().toXml(M);H.append(_,{name:"docProps/app.xml"})}async addCore(H,M){const T=new g;H.append(T.toXml(M),{name:"docProps/core.xml"})}async addThemes(H,M){const T=M.themes||{theme1:X};Object.keys(T).forEach(_=>{const A=T[_],P=`xl/theme/${_}.xml`;H.append(A,{name:P})})}async addOfficeRels(H){const T=new h().toXml([{Id:"rId1",Type:V.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:V.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:V.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);H.append(T,{name:"_rels/.rels"})}async addWorkbookRels(H,M){let T=1;const _=[{Id:`rId${T++}`,Type:V.RelType.Styles,Target:"styles.xml"},{Id:`rId${T++}`,Type:V.RelType.Theme,Target:"theme/theme1.xml"}];M.sharedStrings.count&&_.push({Id:`rId${T++}`,Type:V.RelType.SharedStrings,Target:"sharedStrings.xml"}),M.worksheets.forEach(L=>{L.rId=`rId${T++}`,_.push({Id:L.rId,Type:V.RelType.Worksheet,Target:`worksheets/sheet${L.id}.xml`})});const P=new h().toXml(_);H.append(P,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(H,M){M.sharedStrings&&M.sharedStrings.count&&H.append(M.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(H,M){const{xml:T}=M.styles;T&&H.append(T,{name:"xl/styles.xml"})}async addWorkbook(H,M){const T=new S;H.append(T.toXml(M),{name:"xl/workbook.xml"})}async addWorksheets(H,M){const T=new E,_=new h,A=new B,P=new j;M.worksheets.forEach(L=>{let $=new o;T.render($,L),H.append($.xml,{name:`xl/worksheets/sheet${L.id}.xml`}),L.rels&&L.rels.length&&($=new o,_.render($,L.rels),H.append($.xml,{name:`xl/worksheets/_rels/sheet${L.id}.xml.rels`})),L.comments.length>0&&($=new o,A.render($,L),H.append($.xml,{name:`xl/comments${L.id}.xml`}),$=new o,P.render($,L),H.append($.xml,{name:`xl/drawings/vmlDrawing${L.id}.vml`}))})}_finalize(H){return new Promise((M,T)=>{H.on("finish",()=>{M(this)}),H.on("error",T),H.finalize()})}prepareModel(H,M){H.creator=H.creator||"ExcelJS",H.lastModifiedBy=H.lastModifiedBy||"ExcelJS",H.created=H.created||new Date,H.modified=H.modified||new Date,H.useSharedStrings=M.useSharedStrings!==void 0?M.useSharedStrings:!0,H.useStyles=M.useStyles!==void 0?M.useStyles:!0,H.sharedStrings=new v,H.styles=H.useStyles?new a(!0):new a.Mock;const T=new S,_=new E;T.prepare(H);const A={sharedStrings:H.sharedStrings,styles:H.styles,date1904:H.properties.date1904,drawingsCount:0,media:H.media};A.drawings=H.drawings=[],A.commentRefs=H.commentRefs=[];let P=0;H.tables=[],H.worksheets.forEach(L=>{L.tables.forEach($=>{P++,$.target=`table${P}.xml`,$.id=P,H.tables.push($)}),_.prepare(L,A)})}async write(H,M){M=M||{};const{model:T}=this.workbook,_=new n.ZipWriter(M.zip);return _.pipe(H),this.prepareModel(T,M),await this.addContentTypes(_,T),await this.addOfficeRels(_,T),await this.addWorkbookRels(_,T),await this.addWorksheets(_,T),await this.addSharedStrings(_,T),await this.addDrawings(_,T),await this.addTables(_,T),await Promise.all([this.addThemes(_,T),this.addStyles(_,T)]),await this.addMedia(_,T),await Promise.all([this.addApp(_,T),this.addCore(_,T)]),await this.addWorkbook(_,T),this._finalize(_)}writeFile(H,M){const T=u.createWriteStream(H);return new Promise((_,A)=>{T.on("finish",()=>{_()}),T.on("error",P=>{A(P)}),this.write(T,M).then(()=>{T.end()}).catch(P=>{A(P)})})}async writeBuffer(H){const M=new r;return await this.write(M,H),M.read()}}V.RelType=e("./rel-type"),d.exports=V}).call(this)}).call(this,e("_process"),e("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(e,d,m){d.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(e,d,m){(function(f){(function(){Object.defineProperty(m,"__esModule",{value:!0}),m.CsvFormatterStream=void 0;const c=e("stream"),u=e("./formatter");class s extends c.Transform{constructor(n){super({writableObjectMode:n.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=n,this.rowFormatter=new u.RowFormatter(n),this.hasWrittenBOM=!n.writeBOM}transform(n){return this.rowFormatter.rowTransform=n,this}_transform(n,r,i){let o=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(n,(l,a)=>l?(o=!0,i(l)):(a&&a.forEach(g=>{this.push(f.from(g,"utf8"))}),o=!0,i()))}catch(l){if(o)throw l;i(l)}}_flush(n){this.rowFormatter.finish((r,i)=>r?n(r):(i&&i.forEach(o=>{this.push(f.from(o,"utf8"))}),n()))}}m.CsvFormatterStream=s}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.FormatterOptions=void 0;class f{constructor(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var s;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,u||{}),typeof(u==null?void 0:u.quoteHeaders)>"u"&&(this.quoteHeaders=this.quoteColumns),(u==null?void 0:u.quote)===!0?this.quote='"':(u==null?void 0:u.quote)===!1&&(this.quote=""),typeof(u==null?void 0:u.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((s=u.writeHeaders)!==null&&s!==void 0?s:!0),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}m.FormatterOptions=f},{}],148:[function(e,d,m){var f=function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(m,"__esModule",{value:!0}),m.FieldFormatter=void 0;const c=f(e("lodash.isboolean")),u=f(e("lodash.isnil")),s=f(e("lodash.escaperegexp"));class t{constructor(r){this._headers=null,this.formatterOptions=r,r.headers!==null&&(this.headers=r.headers),this.REPLACE_REGEXP=new RegExp(r.quote,"g");const i=`[${r.delimiter}${s.default(r.rowDelimiter)}|\r|
|
||
]`;this.ESCAPE_REGEXP=new RegExp(i)}set headers(r){this._headers=r}shouldQuote(r,i){const o=i?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return c.default(o)?o:Array.isArray(o)?o[r]:this._headers!==null?o[this._headers[r]]:!1}format(r,i,o){const l=`${u.default(r)?"":r}`.replace(/\0/g,""),{formatterOptions:a}=this;return a.quote!==""&&l.indexOf(a.quote)!==-1?this.quoteField(l.replace(this.REPLACE_REGEXP,a.escapedQuote)):l.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(i,o)?this.quoteField(l):l}quoteField(r){const{quote:i}=this.formatterOptions;return`${i}${r}${i}`}}m.FieldFormatter=t},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,d,m){var f=function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(m,"__esModule",{value:!0}),m.RowFormatter=void 0;const c=f(e("lodash.isfunction")),u=f(e("lodash.isequal")),s=e("./FieldFormatter"),t=e("../types");class n{constructor(i){this.rowCount=0,this.formatterOptions=i,this.fieldFormatter=new s.FieldFormatter(i),this.headers=i.headers,this.shouldWriteHeaders=i.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),i.transform&&(this.rowTransform=i.transform)}static isRowHashArray(i){return Array.isArray(i)?Array.isArray(i[0])&&i[0].length===2:!1}static isRowArray(i){return Array.isArray(i)&&!this.isRowHashArray(i)}static gatherHeaders(i){return n.isRowHashArray(i)?i.map(o=>o[0]):Array.isArray(i)?i:Object.keys(i)}static createTransform(i){return t.isSyncTransform(i)?(o,l)=>{let a=null;try{a=i(o)}catch(g){return l(g)}return l(null,a)}:(o,l)=>{i(o,l)}}set rowTransform(i){if(!c.default(i))throw new TypeError("The transform should be a function");this._rowTransform=n.createTransform(i)}format(i,o){this.callTransformer(i,(l,a)=>{if(l)return o(l);if(!i)return o(null);const g=[];if(a){const{shouldFormatColumns:v,headers:h}=this.checkHeaders(a);if(this.shouldWriteHeaders&&h&&!this.hasWrittenHeaders&&(g.push(this.formatColumns(h,!0)),this.hasWrittenHeaders=!0),v){const w=this.gatherColumns(a);g.push(this.formatColumns(w,!1))}}return o(null,g)})}finish(i){const o=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return i(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));o.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&o.push(this.formatterOptions.rowDelimiter),i(null,o)}checkHeaders(i){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const o=n.gatherHeaders(i);return this.headers=o,this.fieldFormatter.headers=o,this.shouldWriteHeaders?{shouldFormatColumns:!u.default(o,i),headers:o}:{shouldFormatColumns:!0,headers:null}}gatherColumns(i){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(i)?n.isRowHashArray(i)?this.headers.map((o,l)=>{const a=i[l];return a?a[1]:""}):n.isRowArray(i)&&!this.shouldWriteHeaders?i:this.headers.map((o,l)=>i[l]):this.headers.map(o=>i[o])}callTransformer(i,o){return this._rowTransform?this._rowTransform(i,o):o(null,i)}formatColumns(i,o){const l=i.map((g,v)=>this.fieldFormatter.format(g,v,o)).join(this.formatterOptions.delimiter),{rowCount:a}=this;return this.rowCount+=1,a?[this.formatterOptions.rowDelimiter,l].join(""):l}}m.RowFormatter=n},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.FieldFormatter=m.RowFormatter=void 0;var f=e("./RowFormatter");Object.defineProperty(m,"RowFormatter",{enumerable:!0,get:function(){return f.RowFormatter}});var c=e("./FieldFormatter");Object.defineProperty(m,"FieldFormatter",{enumerable:!0,get:function(){return c.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,d,m){(function(f){(function(){var c=Object.create?function(v,h,w,y){y===void 0&&(y=w),Object.defineProperty(v,y,{enumerable:!0,get:function(){return h[w]}})}:function(v,h,w,y){y===void 0&&(y=w),v[y]=h[w]},u=Object.create?function(v,h){Object.defineProperty(v,"default",{enumerable:!0,value:h})}:function(v,h){v.default=h},s=function(v){if(v&&v.__esModule)return v;var h={};if(v!=null)for(var w in v)w!=="default"&&Object.prototype.hasOwnProperty.call(v,w)&&c(h,v,w);return u(h,v),h},t=function(v,h){for(var w in v)w!=="default"&&!Object.prototype.hasOwnProperty.call(h,w)&&c(h,v,w)};Object.defineProperty(m,"__esModule",{value:!0}),m.writeToPath=m.writeToString=m.writeToBuffer=m.writeToStream=m.write=m.format=m.FormatterOptions=m.CsvFormatterStream=void 0;const n=e("util"),r=e("stream"),i=s(e("fs")),o=e("./FormatterOptions"),l=e("./CsvFormatterStream");t(e("./types"),m);var a=e("./CsvFormatterStream");Object.defineProperty(m,"CsvFormatterStream",{enumerable:!0,get:function(){return a.CsvFormatterStream}});var g=e("./FormatterOptions");Object.defineProperty(m,"FormatterOptions",{enumerable:!0,get:function(){return g.FormatterOptions}}),m.format=v=>new l.CsvFormatterStream(new o.FormatterOptions(v)),m.write=(v,h)=>{const w=m.format(h),y=n.promisify((S,E)=>{w.write(S,void 0,E)});return v.reduce((S,E)=>S.then(()=>y(E)),Promise.resolve()).then(()=>w.end()).catch(S=>{w.emit("error",S)}),w},m.writeToStream=(v,h,w)=>m.write(h,w).pipe(v),m.writeToBuffer=function(v){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const w=[],y=new r.Writable({write(S,E,I){w.push(S),I()}});return new Promise((S,E)=>{y.on("error",E).on("finish",()=>S(f.concat(w))),m.write(v,h).pipe(y)})},m.writeToString=(v,h)=>m.writeToBuffer(v,h).then(w=>w.toString()),m.writeToPath=(v,h,w)=>{const y=i.createWriteStream(v,{encoding:"utf8"});return m.write(h,w).pipe(y)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.isSyncTransform=void 0,m.isSyncTransform=f=>f.length===1},{}],153:[function(e,d,m){(function(f){(function(){Object.defineProperty(m,"__esModule",{value:!0}),m.CsvParserStream=void 0;const c=e("string_decoder"),u=e("stream"),s=e("./transforms"),t=e("./parser");class n extends u.Transform{constructor(i){super({objectMode:i.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=i,this.parser=new t.Parser(i),this.headerTransformer=new s.HeaderTransformer(i),this.decoder=new c.StringDecoder(i.encoding),this.rowTransformerValidator=new s.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(i){return this.rowTransformerValidator.rowTransform=i,this}validate(i){return this.rowTransformerValidator.rowValidator=i,this}emit(i){if(i==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var o=arguments.length,l=new Array(o>1?o-1:0),a=1;a<o;a++)l[a-1]=arguments[a];return super.emit(i,...l)}_transform(i,o,l){if(this.hasHitRowLimit)return l();const a=n.wrapDoneCallback(l);try{const{lines:g}=this,v=g+this.decoder.write(i),h=this.parse(v,!0);return this.processRows(h,a)}catch(g){return a(g)}}_flush(i){const o=n.wrapDoneCallback(i);if(this.hasHitRowLimit)return o();try{const l=this.lines+this.decoder.end(),a=this.parse(l,!1);return this.processRows(a,o)}catch(l){return o(l)}}parse(i,o){if(!i)return[];const{line:l,rows:a}=this.parser.parse(i,o);return this.lines=l,a}processRows(i,o){const l=i.length,a=g=>{const v=y=>{if(y)return o(y);if(g%100===0){f(()=>a(g+1));return}return a(g+1)};if(this.checkAndEmitHeaders(),g>=l||this.hasHitRowLimit)return o();if(this.parsedLineCount+=1,this.shouldSkipLine)return v();const h=i[g];this.rowCount+=1,this.parsedRowCount+=1;const w=this.rowCount;return this.transformRow(h,(y,S)=>{if(y)return this.rowCount-=1,v(y);if(!S)return v(new Error("expected transform result"));if(!S.isValid)this.emit("data-invalid",S.row,w,S.reason);else if(S.row)return this.pushRow(S.row,v);return v()})};a(0)}transformRow(i,o){try{this.headerTransformer.transform(i,(l,a)=>l?o(l):a?a.isValid?a.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(a.row,o):this.skipRow(o):(this.rowCount-=1,this.parsedRowCount-=1,o(null,{row:null,isValid:!0})):this.shouldEmitRows?o(null,{isValid:!1,row:i}):this.skipRow(o):o(new Error("Expected result from header transform")))}catch(l){o(l)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(i){return this.rowCount-=1,i(null,{row:null,isValid:!0})}pushRow(i,o){try{this.parserOptions.objectMode?this.push(i):this.push(JSON.stringify(i)),o()}catch(l){o(l)}}static wrapDoneCallback(i){let o=!1;return function(l){if(l){if(o)throw l;o=!0,i(l);return}for(var a=arguments.length,g=new Array(a>1?a-1:0),v=1;v<a;v++)g[v-1]=arguments[v];i(...g)}}}m.CsvParserStream=n}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,d,m){var f=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(m,"__esModule",{value:!0}),m.ParserOptions=void 0;const c=f(e("lodash.escaperegexp")),u=f(e("lodash.isnil"));class s{constructor(n){var r;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,n||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=c.default(this.delimiter),this.escapeChar=(r=this.escape)!==null&&r!==void 0?r:this.quote,this.supportsComments=!u.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}m.ParserOptions=s},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,d,m){var f=Object.create?function(a,g,v,h){h===void 0&&(h=v),Object.defineProperty(a,h,{enumerable:!0,get:function(){return g[v]}})}:function(a,g,v,h){h===void 0&&(h=v),a[h]=g[v]},c=Object.create?function(a,g){Object.defineProperty(a,"default",{enumerable:!0,value:g})}:function(a,g){a.default=g},u=function(a){if(a&&a.__esModule)return a;var g={};if(a!=null)for(var v in a)v!=="default"&&Object.prototype.hasOwnProperty.call(a,v)&&f(g,a,v);return c(g,a),g},s=function(a,g){for(var v in a)v!=="default"&&!Object.prototype.hasOwnProperty.call(g,v)&&f(g,a,v)};Object.defineProperty(m,"__esModule",{value:!0}),m.parseString=m.parseFile=m.parseStream=m.parse=m.ParserOptions=m.CsvParserStream=void 0;const t=u(e("fs")),n=e("stream"),r=e("./ParserOptions"),i=e("./CsvParserStream");s(e("./types"),m);var o=e("./CsvParserStream");Object.defineProperty(m,"CsvParserStream",{enumerable:!0,get:function(){return o.CsvParserStream}});var l=e("./ParserOptions");Object.defineProperty(m,"ParserOptions",{enumerable:!0,get:function(){return l.ParserOptions}}),m.parse=a=>new i.CsvParserStream(new r.ParserOptions(a)),m.parseStream=(a,g)=>a.pipe(new i.CsvParserStream(new r.ParserOptions(g))),m.parseFile=function(a){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.createReadStream(a).pipe(new i.CsvParserStream(new r.ParserOptions(g)))},m.parseString=(a,g)=>{const v=new n.Readable;return v.push(a),v.push(null),v.pipe(new i.CsvParserStream(new r.ParserOptions(g)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.Parser=void 0;const f=e("./Scanner"),c=e("./RowParser"),u=e("./Token");class s{constructor(n){this.parserOptions=n,this.rowParser=new c.RowParser(this.parserOptions)}static removeBOM(n){return n&&n.charCodeAt(0)===65279?n.slice(1):n}parse(n,r){const i=new f.Scanner({line:s.removeBOM(n),parserOptions:this.parserOptions,hasMoreData:r});return this.parserOptions.supportsComments?this.parseWithComments(i):this.parseWithoutComments(i)}parseWithoutComments(n){const r=[];let i=!0;for(;i;)i=this.parseRow(n,r);return{line:n.line,rows:r}}parseWithComments(n){const{parserOptions:r}=this,i=[];for(let o=n.nextCharacterToken;o!==null;o=n.nextCharacterToken)if(u.Token.isTokenComment(o,r)){if(n.advancePastLine()===null)return{line:n.lineFromCursor,rows:i};if(!n.hasMoreCharacters)return{line:n.lineFromCursor,rows:i};n.truncateToCursor()}else if(!this.parseRow(n,i))break;return{line:n.line,rows:i}}parseRow(n,r){if(!n.nextNonSpaceToken)return!1;const o=this.rowParser.parse(n);return o===null?!1:(this.parserOptions.ignoreEmpty&&c.RowParser.isEmptyRow(o)||r.push(o),!0)}}m.Parser=s},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.RowParser=void 0;const f=e("./column"),c=e("./Token"),u="";class s{constructor(n){this.parserOptions=n,this.columnParser=new f.ColumnParser(n)}static isEmptyRow(n){return n.join(u).replace(/\s+/g,u)===u}parse(n){const{parserOptions:r}=this,{hasMoreData:i}=n,o=n,l=[];let a=this.getStartToken(o,l);for(;a;){if(c.Token.isTokenRowDelimiter(a))return o.advancePastToken(a),!o.hasMoreCharacters&&c.Token.isTokenCarriageReturn(a,r)&&i?null:(o.truncateToCursor(),l);if(!this.shouldSkipColumnParse(o,a,l)){const g=this.columnParser.parse(o);if(g===null)return null;l.push(g)}a=o.nextNonSpaceToken}return i?null:(o.truncateToCursor(),l)}getStartToken(n,r){const i=n.nextNonSpaceToken;return i!==null&&c.Token.isTokenDelimiter(i,this.parserOptions)?(r.push(""),n.nextNonSpaceToken):i}shouldSkipColumnParse(n,r,i){const{parserOptions:o}=this;if(c.Token.isTokenDelimiter(r,o)){n.advancePastToken(r);const l=n.nextCharacterToken;if(!n.hasMoreCharacters||l!==null&&c.Token.isTokenRowDelimiter(l)||l!==null&&c.Token.isTokenDelimiter(l,o))return i.push(""),!0}return!1}}m.RowParser=s},{"./Token":159,"./column":164}],158:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.Scanner=void 0;const f=e("./Token"),c=/((?:\r\n)|\n|\r)/;class u{constructor(t){this.cursor=0,this.line=t.line,this.lineLength=this.line.length,this.parserOptions=t.parserOptions,this.hasMoreData=t.hasMoreData,this.cursor=t.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:t}=this,n=this.parserOptions.NEXT_TOKEN_REGEXP;if(t.search(n)===-1)return null;const r=n.exec(t);if(r==null)return null;const i=r[1],o=this.cursor+(r.index||0);return new f.Token({token:i,startCursor:o,endCursor:o+i.length-1})}get nextCharacterToken(){const{cursor:t,lineLength:n}=this;return n<=t?null:new f.Token({token:this.line[t],startCursor:t,endCursor:t})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const t=c.exec(this.lineFromCursor);return t?(this.cursor+=(t.index||0)+t[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(t){return this.cursor=t,this}advanceToToken(t){return this.cursor=t.startCursor,this}advancePastToken(t){return this.cursor=t.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}m.Scanner=u},{"./Token":159}],159:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.Token=void 0;class f{constructor(u){this.token=u.token,this.startCursor=u.startCursor,this.endCursor=u.endCursor}static isTokenRowDelimiter(u){const s=u.token;return s==="\r"||s===`
|
||
`||s===`\r
|
||
`}static isTokenCarriageReturn(u,s){return u.token===s.carriageReturn}static isTokenComment(u,s){return s.supportsComments&&!!u&&u.token===s.comment}static isTokenEscapeCharacter(u,s){return u.token===s.escapeChar}static isTokenQuote(u,s){return u.token===s.quote}static isTokenDelimiter(u,s){return u.token===s.delimiter}}m.Token=f},{}],160:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.ColumnFormatter=void 0;class f{constructor(u){u.trim?this.format=s=>s.trim():u.ltrim?this.format=s=>s.trimLeft():u.rtrim?this.format=s=>s.trimRight():this.format=s=>s}}m.ColumnFormatter=f},{}],161:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.ColumnParser=void 0;const f=e("./NonQuotedColumnParser"),c=e("./QuotedColumnParser"),u=e("../Token");class s{constructor(n){this.parserOptions=n,this.quotedColumnParser=new c.QuotedColumnParser(n),this.nonQuotedColumnParser=new f.NonQuotedColumnParser(n)}parse(n){const{nextNonSpaceToken:r}=n;return r!==null&&u.Token.isTokenQuote(r,this.parserOptions)?(n.advanceToToken(r),this.quotedColumnParser.parse(n)):this.nonQuotedColumnParser.parse(n)}}m.ColumnParser=s},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.NonQuotedColumnParser=void 0;const f=e("./ColumnFormatter"),c=e("../Token");class u{constructor(t){this.parserOptions=t,this.columnFormatter=new f.ColumnFormatter(t)}parse(t){if(!t.hasMoreCharacters)return null;const{parserOptions:n}=this,r=[];let i=t.nextCharacterToken;for(;i&&!(c.Token.isTokenDelimiter(i,n)||c.Token.isTokenRowDelimiter(i));i=t.nextCharacterToken)r.push(i.token),t.advancePastToken(i);return this.columnFormatter.format(r.join(""))}}m.NonQuotedColumnParser=u},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.QuotedColumnParser=void 0;const f=e("./ColumnFormatter"),c=e("../Token");class u{constructor(t){this.parserOptions=t,this.columnFormatter=new f.ColumnFormatter(t)}parse(t){if(!t.hasMoreCharacters)return null;const n=t.cursor,{foundClosingQuote:r,col:i}=this.gatherDataBetweenQuotes(t);if(!r){if(t.advanceTo(n),!t.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${t.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(t),i}gatherDataBetweenQuotes(t){const{parserOptions:n}=this;let r=!1,i=!1;const o=[];let l=t.nextCharacterToken;for(;!i&&l!==null;l=t.nextCharacterToken){const a=c.Token.isTokenQuote(l,n);if(!r&&a)r=!0;else if(r)if(c.Token.isTokenEscapeCharacter(l,n)){t.advancePastToken(l);const g=t.nextCharacterToken;g!==null&&(c.Token.isTokenQuote(g,n)||c.Token.isTokenEscapeCharacter(g,n))?(o.push(g.token),l=g):a?i=!0:o.push(l.token)}else a?i=!0:o.push(l.token);t.advancePastToken(l)}return{col:this.columnFormatter.format(o.join("")),foundClosingQuote:i}}checkForMalformedColumn(t){const{parserOptions:n}=this,{nextNonSpaceToken:r}=t;if(r){const i=c.Token.isTokenDelimiter(r,n),o=c.Token.isTokenRowDelimiter(r);if(!(i||o)){const l=t.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${n.escapedDelimiter}' OR new line got: '${r.token}'. at '${l}`)}t.advanceToToken(r)}else t.hasMoreData||t.advancePastLine()}}m.QuotedColumnParser=u},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.ColumnFormatter=m.QuotedColumnParser=m.NonQuotedColumnParser=m.ColumnParser=void 0;var f=e("./ColumnParser");Object.defineProperty(m,"ColumnParser",{enumerable:!0,get:function(){return f.ColumnParser}});var c=e("./NonQuotedColumnParser");Object.defineProperty(m,"NonQuotedColumnParser",{enumerable:!0,get:function(){return c.NonQuotedColumnParser}});var u=e("./QuotedColumnParser");Object.defineProperty(m,"QuotedColumnParser",{enumerable:!0,get:function(){return u.QuotedColumnParser}});var s=e("./ColumnFormatter");Object.defineProperty(m,"ColumnFormatter",{enumerable:!0,get:function(){return s.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.QuotedColumnParser=m.NonQuotedColumnParser=m.ColumnParser=m.Token=m.Scanner=m.RowParser=m.Parser=void 0;var f=e("./Parser");Object.defineProperty(m,"Parser",{enumerable:!0,get:function(){return f.Parser}});var c=e("./RowParser");Object.defineProperty(m,"RowParser",{enumerable:!0,get:function(){return c.RowParser}});var u=e("./Scanner");Object.defineProperty(m,"Scanner",{enumerable:!0,get:function(){return u.Scanner}});var s=e("./Token");Object.defineProperty(m,"Token",{enumerable:!0,get:function(){return s.Token}});var t=e("./column");Object.defineProperty(m,"ColumnParser",{enumerable:!0,get:function(){return t.ColumnParser}}),Object.defineProperty(m,"NonQuotedColumnParser",{enumerable:!0,get:function(){return t.NonQuotedColumnParser}}),Object.defineProperty(m,"QuotedColumnParser",{enumerable:!0,get:function(){return t.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,d,m){var f=function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(m,"__esModule",{value:!0}),m.HeaderTransformer=void 0;const c=f(e("lodash.isundefined")),u=f(e("lodash.isfunction")),s=f(e("lodash.uniq")),t=f(e("lodash.groupby"));class n{constructor(i){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=i,i.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(i.headers)?this.setHeaders(i.headers):u.default(i.headers)&&(this.headersTransform=i.headers)}transform(i,o){return this.shouldMapRow(i)?o(null,this.processRow(i)):o(null,{row:null,isValid:!0})}shouldMapRow(i){const{parserOptions:o}=this;if(!this.headersTransform&&o.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(i)){if(this.headersTransform)this.setHeaders(this.headersTransform(i));else if(this.shouldUseFirstRow)this.setHeaders(i);else return!0;return!1}return!0}processRow(i){if(!this.headers)return{row:i,isValid:!0};const{parserOptions:o}=this;if(!o.discardUnmappedColumns&&i.length>this.headersLength){if(!o.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${i.length}`);return{row:i,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${i.length}`}}return o.strictColumnHandling&&i.length<this.headersLength?{row:i,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${i.length}`}:{row:this.mapHeaders(i),isValid:!0}}mapHeaders(i){const o={},{headers:l,headersLength:a}=this;for(let g=0;g<a;g+=1){const v=l[g];if(!c.default(v)){const h=i[g];c.default(h)?o[v]="":o[v]=h}}return o}setHeaders(i){var o;const l=i.filter(a=>!!a);if(s.default(l).length!==l.length){const a=t.default(l),g=Object.keys(a).filter(v=>a[v].length>1);throw new Error(`Duplicate headers found ${JSON.stringify(g)}`)}this.headers=i,this.receivedHeaders=!0,this.headersLength=((o=this.headers)===null||o===void 0?void 0:o.length)||0}}m.HeaderTransformer=n},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,d,m){var f=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(m,"__esModule",{value:!0}),m.RowTransformerValidator=void 0;const c=f(e("lodash.isfunction")),u=e("../types");class s{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(n){return u.isSyncTransform(n)?(r,i)=>{let o=null;try{o=n(r)}catch(l){return i(l)}return i(null,o)}:n}static createValidator(n){return u.isSyncValidate(n)?(r,i)=>{i(null,{row:r,isValid:n(r)})}:(r,i)=>{n(r,(o,l,a)=>o?i(o):l?i(null,{row:r,isValid:l,reason:a}):i(null,{row:r,isValid:!1,reason:a}))}}set rowTransform(n){if(!c.default(n))throw new TypeError("The transform should be a function");this._rowTransform=s.createTransform(n)}set rowValidator(n){if(!c.default(n))throw new TypeError("The validate should be a function");this._rowValidator=s.createValidator(n)}transformAndValidate(n,r){return this.callTransformer(n,(i,o)=>i?r(i):o?this.callValidator(o,(l,a)=>l?r(l):a&&!a.isValid?r(null,{row:o,isValid:!1,reason:a.reason}):r(null,{row:o,isValid:!0})):r(null,{row:null,isValid:!0}))}callTransformer(n,r){return this._rowTransform?this._rowTransform(n,r):r(null,n)}callValidator(n,r){return this._rowValidator?this._rowValidator(n,r):r(null,{row:n,isValid:!0})}}m.RowTransformerValidator=s},{"../types":169,"lodash.isfunction":446}],168:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.HeaderTransformer=m.RowTransformerValidator=void 0;var f=e("./RowTransformerValidator");Object.defineProperty(m,"RowTransformerValidator",{enumerable:!0,get:function(){return f.RowTransformerValidator}});var c=e("./HeaderTransformer");Object.defineProperty(m,"HeaderTransformer",{enumerable:!0,get:function(){return c.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.isSyncValidate=m.isSyncTransform=void 0,m.isSyncTransform=f=>f.length===1,m.isSyncValidate=f=>f.length===1},{}],170:[function(e,d,m){const f=m;f.bignum=e("bn.js"),f.define=e("./asn1/api").define,f.base=e("./asn1/base"),f.constants=e("./asn1/constants"),f.decoders=e("./asn1/decoders"),f.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,d,m){const f=e("./encoders"),c=e("./decoders"),u=e("inherits"),s=m;s.define=function(r,i){return new t(r,i)};function t(n,r){this.name=n,this.body=r,this.decoders={},this.encoders={}}t.prototype._createNamed=function(r){const i=this.name;function o(l){this._initNamed(l,i)}return u(o,r),o.prototype._initNamed=function(a,g){r.call(this,a,g)},new o(this)},t.prototype._getDecoder=function(r){return r=r||"der",this.decoders.hasOwnProperty(r)||(this.decoders[r]=this._createNamed(c[r])),this.decoders[r]},t.prototype.decode=function(r,i,o){return this._getDecoder(i).decode(r,o)},t.prototype._getEncoder=function(r){return r=r||"der",this.encoders.hasOwnProperty(r)||(this.encoders[r]=this._createNamed(f[r])),this.encoders[r]},t.prototype.encode=function(r,i,o){return this._getEncoder(i).encode(r,o)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,d,m){const f=e("inherits"),c=e("../base/reporter").Reporter,u=e("safer-buffer").Buffer;function s(n,r){if(c.call(this,r),!u.isBuffer(n)){this.error("Input not Buffer");return}this.base=n,this.offset=0,this.length=n.length}f(s,c),m.DecoderBuffer=s,s.isDecoderBuffer=function(r){return r instanceof s?!0:typeof r=="object"&&u.isBuffer(r.base)&&r.constructor.name==="DecoderBuffer"&&typeof r.offset=="number"&&typeof r.length=="number"&&typeof r.save=="function"&&typeof r.restore=="function"&&typeof r.isEmpty=="function"&&typeof r.readUInt8=="function"&&typeof r.skip=="function"&&typeof r.raw=="function"},s.prototype.save=function(){return{offset:this.offset,reporter:c.prototype.save.call(this)}},s.prototype.restore=function(r){const i=new s(this.base);return i.offset=r.offset,i.length=this.offset,this.offset=r.offset,c.prototype.restore.call(this,r.reporter),i},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(r){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(r||"DecoderBuffer overrun")},s.prototype.skip=function(r,i){if(!(this.offset+r<=this.length))return this.error(i||"DecoderBuffer overrun");const o=new s(this.base);return o._reporterState=this._reporterState,o.offset=this.offset,o.length=this.offset+r,this.offset+=r,o},s.prototype.raw=function(r){return this.base.slice(r?r.offset:this.offset,this.length)};function t(n,r){if(Array.isArray(n))this.length=0,this.value=n.map(function(i){return t.isEncoderBuffer(i)||(i=new t(i,r)),this.length+=i.length,i},this);else if(typeof n=="number"){if(!(0<=n&&n<=255))return r.error("non-byte EncoderBuffer value");this.value=n,this.length=1}else if(typeof n=="string")this.value=n,this.length=u.byteLength(n);else if(u.isBuffer(n))this.value=n,this.length=n.length;else return r.error("Unsupported type: "+typeof n)}m.EncoderBuffer=t,t.isEncoderBuffer=function(r){return r instanceof t?!0:typeof r=="object"&&r.constructor.name==="EncoderBuffer"&&typeof r.length=="number"&&typeof r.join=="function"},t.prototype.join=function(r,i){return r||(r=u.alloc(this.length)),i||(i=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(o){o.join(r,i),i+=o.length}):(typeof this.value=="number"?r[i]=this.value:typeof this.value=="string"?r.write(this.value,i):u.isBuffer(this.value)&&this.value.copy(r,i),i+=this.length)),r}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,d,m){const f=m;f.Reporter=e("./reporter").Reporter,f.DecoderBuffer=e("./buffer").DecoderBuffer,f.EncoderBuffer=e("./buffer").EncoderBuffer,f.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,d,m){const f=e("../base/reporter").Reporter,c=e("../base/buffer").EncoderBuffer,u=e("../base/buffer").DecoderBuffer,s=e("minimalistic-assert"),t=["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"],n=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(t),r=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function i(l,a,g){const v={};this._baseState=v,v.name=g,v.enc=l,v.parent=a||null,v.children=null,v.tag=null,v.args=null,v.reverseArgs=null,v.choice=null,v.optional=!1,v.any=!1,v.obj=!1,v.use=null,v.useDecoder=null,v.key=null,v.default=null,v.explicit=null,v.implicit=null,v.contains=null,v.parent||(v.children=[],this._wrap())}d.exports=i;const o=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];i.prototype.clone=function(){const a=this._baseState,g={};o.forEach(function(h){g[h]=a[h]});const v=new this.constructor(g.parent);return v._baseState=g,v},i.prototype._wrap=function(){const a=this._baseState;n.forEach(function(g){this[g]=function(){const h=new this.constructor(this);return a.children.push(h),h[g].apply(h,arguments)}},this)},i.prototype._init=function(a){const g=this._baseState;s(g.parent===null),a.call(this),g.children=g.children.filter(function(v){return v._baseState.parent===this},this),s.equal(g.children.length,1,"Root node can have only one child")},i.prototype._useArgs=function(a){const g=this._baseState,v=a.filter(function(h){return h instanceof this.constructor},this);a=a.filter(function(h){return!(h instanceof this.constructor)},this),v.length!==0&&(s(g.children===null),g.children=v,v.forEach(function(h){h._baseState.parent=this},this)),a.length!==0&&(s(g.args===null),g.args=a,g.reverseArgs=a.map(function(h){if(typeof h!="object"||h.constructor!==Object)return h;const w={};return Object.keys(h).forEach(function(y){y==(y|0)&&(y|=0);const S=h[y];w[S]=y}),w}))},r.forEach(function(l){i.prototype[l]=function(){const g=this._baseState;throw new Error(l+" not implemented for encoding: "+g.enc)}}),t.forEach(function(l){i.prototype[l]=function(){const g=this._baseState,v=Array.prototype.slice.call(arguments);return s(g.tag===null),g.tag=l,this._useArgs(v),this}}),i.prototype.use=function(a){s(a);const g=this._baseState;return s(g.use===null),g.use=a,this},i.prototype.optional=function(){const a=this._baseState;return a.optional=!0,this},i.prototype.def=function(a){const g=this._baseState;return s(g.default===null),g.default=a,g.optional=!0,this},i.prototype.explicit=function(a){const g=this._baseState;return s(g.explicit===null&&g.implicit===null),g.explicit=a,this},i.prototype.implicit=function(a){const g=this._baseState;return s(g.explicit===null&&g.implicit===null),g.implicit=a,this},i.prototype.obj=function(){const a=this._baseState,g=Array.prototype.slice.call(arguments);return a.obj=!0,g.length!==0&&this._useArgs(g),this},i.prototype.key=function(a){const g=this._baseState;return s(g.key===null),g.key=a,this},i.prototype.any=function(){const a=this._baseState;return a.any=!0,this},i.prototype.choice=function(a){const g=this._baseState;return s(g.choice===null),g.choice=a,this._useArgs(Object.keys(a).map(function(v){return a[v]})),this},i.prototype.contains=function(a){const g=this._baseState;return s(g.use===null),g.contains=a,this},i.prototype._decode=function(a,g){const v=this._baseState;if(v.parent===null)return a.wrapResult(v.children[0]._decode(a,g));let h=v.default,w=!0,y=null;if(v.key!==null&&(y=a.enterKey(v.key)),v.optional){let E=null;if(v.explicit!==null?E=v.explicit:v.implicit!==null?E=v.implicit:v.tag!==null&&(E=v.tag),E===null&&!v.any){const I=a.save();try{v.choice===null?this._decodeGeneric(v.tag,a,g):this._decodeChoice(a,g),w=!0}catch{w=!1}a.restore(I)}else if(w=this._peekTag(a,E,v.any),a.isError(w))return w}let S;if(v.obj&&w&&(S=a.enterObject()),w){if(v.explicit!==null){const I=this._decodeTag(a,v.explicit);if(a.isError(I))return I;a=I}const E=a.offset;if(v.use===null&&v.choice===null){let I;v.any&&(I=a.save());const F=this._decodeTag(a,v.implicit!==null?v.implicit:v.tag,v.any);if(a.isError(F))return F;v.any?h=a.raw(I):a=F}if(g&&g.track&&v.tag!==null&&g.track(a.path(),E,a.length,"tagged"),g&&g.track&&v.tag!==null&&g.track(a.path(),a.offset,a.length,"content"),v.any||(v.choice===null?h=this._decodeGeneric(v.tag,a,g):h=this._decodeChoice(a,g)),a.isError(h))return h;if(!v.any&&v.choice===null&&v.children!==null&&v.children.forEach(function(F){F._decode(a,g)}),v.contains&&(v.tag==="octstr"||v.tag==="bitstr")){const I=new u(h);h=this._getUse(v.contains,a._reporterState.obj)._decode(I,g)}}return v.obj&&w&&(h=a.leaveObject(S)),v.key!==null&&(h!==null||w===!0)?a.leaveKey(y,v.key,h):y!==null&&a.exitKey(y),h},i.prototype._decodeGeneric=function(a,g,v){const h=this._baseState;return a==="seq"||a==="set"?null:a==="seqof"||a==="setof"?this._decodeList(g,a,h.args[0],v):/str$/.test(a)?this._decodeStr(g,a,v):a==="objid"&&h.args?this._decodeObjid(g,h.args[0],h.args[1],v):a==="objid"?this._decodeObjid(g,null,null,v):a==="gentime"||a==="utctime"?this._decodeTime(g,a,v):a==="null_"?this._decodeNull(g,v):a==="bool"?this._decodeBool(g,v):a==="objDesc"?this._decodeStr(g,a,v):a==="int"||a==="enum"?this._decodeInt(g,h.args&&h.args[0],v):h.use!==null?this._getUse(h.use,g._reporterState.obj)._decode(g,v):g.error("unknown tag: "+a)},i.prototype._getUse=function(a,g){const v=this._baseState;return v.useDecoder=this._use(a,g),s(v.useDecoder._baseState.parent===null),v.useDecoder=v.useDecoder._baseState.children[0],v.implicit!==v.useDecoder._baseState.implicit&&(v.useDecoder=v.useDecoder.clone(),v.useDecoder._baseState.implicit=v.implicit),v.useDecoder},i.prototype._decodeChoice=function(a,g){const v=this._baseState;let h=null,w=!1;return Object.keys(v.choice).some(function(y){const S=a.save(),E=v.choice[y];try{const I=E._decode(a,g);if(a.isError(I))return!1;h={type:y,value:I},w=!0}catch{return a.restore(S),!1}return!0},this),w?h:a.error("Choice not matched")},i.prototype._createEncoderBuffer=function(a){return new c(a,this.reporter)},i.prototype._encode=function(a,g,v){const h=this._baseState;if(h.default!==null&&h.default===a)return;const w=this._encodeValue(a,g,v);if(w!==void 0&&!this._skipDefault(w,g,v))return w},i.prototype._encodeValue=function(a,g,v){const h=this._baseState;if(h.parent===null)return h.children[0]._encode(a,g||new f);let w=null;if(this.reporter=g,h.optional&&a===void 0)if(h.default!==null)a=h.default;else return;let y=null,S=!1;if(h.any)w=this._createEncoderBuffer(a);else if(h.choice)w=this._encodeChoice(a,g);else if(h.contains)y=this._getUse(h.contains,v)._encode(a,g),S=!0;else if(h.children)y=h.children.map(function(E){if(E._baseState.tag==="null_")return E._encode(null,g,a);if(E._baseState.key===null)return g.error("Child should have a key");const I=g.enterKey(E._baseState.key);if(typeof a!="object")return g.error("Child expected, but input is not object");const F=E._encode(a[E._baseState.key],g,a);return g.leaveKey(I),F},this).filter(function(E){return E}),y=this._createEncoderBuffer(y);else if(h.tag==="seqof"||h.tag==="setof"){if(!(h.args&&h.args.length===1))return g.error("Too many args for : "+h.tag);if(!Array.isArray(a))return g.error("seqof/setof, but data is not Array");const E=this.clone();E._baseState.implicit=null,y=this._createEncoderBuffer(a.map(function(I){const F=this._baseState;return this._getUse(F.args[0],a)._encode(I,g)},E))}else h.use!==null?w=this._getUse(h.use,v)._encode(a,g):(y=this._encodePrimitive(h.tag,a),S=!0);if(!h.any&&h.choice===null){const E=h.implicit!==null?h.implicit:h.tag,I=h.implicit===null?"universal":"context";E===null?h.use===null&&g.error("Tag could be omitted only for .use()"):h.use===null&&(w=this._encodeComposite(E,S,I,y))}return h.explicit!==null&&(w=this._encodeComposite(h.explicit,!1,"context",w)),w},i.prototype._encodeChoice=function(a,g){const v=this._baseState,h=v.choice[a.type];return h||s(!1,a.type+" not found in "+JSON.stringify(Object.keys(v.choice))),h._encode(a.value,g)},i.prototype._encodePrimitive=function(a,g){const v=this._baseState;if(/str$/.test(a))return this._encodeStr(g,a);if(a==="objid"&&v.args)return this._encodeObjid(g,v.reverseArgs[0],v.args[1]);if(a==="objid")return this._encodeObjid(g,null,null);if(a==="gentime"||a==="utctime")return this._encodeTime(g,a);if(a==="null_")return this._encodeNull();if(a==="int"||a==="enum")return this._encodeInt(g,v.args&&v.reverseArgs[0]);if(a==="bool")return this._encodeBool(g);if(a==="objDesc")return this._encodeStr(g,a);throw new Error("Unsupported tag: "+a)},i.prototype._isNumstr=function(a){return/^[0-9 ]*$/.test(a)},i.prototype._isPrintstr=function(a){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(a)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,d,m){const f=e("inherits");function c(s){this._reporterState={obj:null,path:[],options:s||{},errors:[]}}m.Reporter=c,c.prototype.isError=function(t){return t instanceof u},c.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},c.prototype.restore=function(t){const n=this._reporterState;n.obj=t.obj,n.path=n.path.slice(0,t.pathLen)},c.prototype.enterKey=function(t){return this._reporterState.path.push(t)},c.prototype.exitKey=function(t){const n=this._reporterState;n.path=n.path.slice(0,t-1)},c.prototype.leaveKey=function(t,n,r){const i=this._reporterState;this.exitKey(t),i.obj!==null&&(i.obj[n]=r)},c.prototype.path=function(){return this._reporterState.path.join("/")},c.prototype.enterObject=function(){const t=this._reporterState,n=t.obj;return t.obj={},n},c.prototype.leaveObject=function(t){const n=this._reporterState,r=n.obj;return n.obj=t,r},c.prototype.error=function(t){let n;const r=this._reporterState,i=t instanceof u;if(i?n=t:n=new u(r.path.map(function(o){return"["+JSON.stringify(o)+"]"}).join(""),t.message||t,t.stack),!r.options.partial)throw n;return i||r.errors.push(n),n},c.prototype.wrapResult=function(t){const n=this._reporterState;return n.options.partial?{result:this.isError(t)?null:t,errors:n.errors}:t};function u(s,t){this.path=s,this.rethrow(t)}f(u,Error),u.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,u),!this.stack)try{throw new Error(this.message)}catch(n){this.stack=n.stack}return this}},{inherits:440}],176:[function(e,d,m){function f(c){const u={};return Object.keys(c).forEach(function(s){(s|0)==s&&(s=s|0);const t=c[s];u[t]=s}),u}m.tagClass={0:"universal",1:"application",2:"context",3:"private"},m.tagClassByName=f(m.tagClass),m.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"},m.tagByName=f(m.tag)},{}],177:[function(e,d,m){const f=m;f._reverse=function(u){const s={};return Object.keys(u).forEach(function(t){(t|0)==t&&(t=t|0);const n=u[t];s[n]=t}),s},f.der=e("./der")},{"./der":176}],178:[function(e,d,m){const f=e("inherits"),c=e("bn.js"),u=e("../base/buffer").DecoderBuffer,s=e("../base/node"),t=e("../constants/der");function n(l){this.enc="der",this.name=l.name,this.entity=l,this.tree=new r,this.tree._init(l.body)}d.exports=n,n.prototype.decode=function(a,g){return u.isDecoderBuffer(a)||(a=new u(a,g)),this.tree._decode(a,g)};function r(l){s.call(this,"der",l)}f(r,s),r.prototype._peekTag=function(a,g,v){if(a.isEmpty())return!1;const h=a.save(),w=i(a,'Failed to peek tag: "'+g+'"');return a.isError(w)?w:(a.restore(h),w.tag===g||w.tagStr===g||w.tagStr+"of"===g||v)},r.prototype._decodeTag=function(a,g,v){const h=i(a,'Failed to decode tag of "'+g+'"');if(a.isError(h))return h;let w=o(a,h.primitive,'Failed to get length of "'+g+'"');if(a.isError(w))return w;if(!v&&h.tag!==g&&h.tagStr!==g&&h.tagStr+"of"!==g)return a.error('Failed to match tag: "'+g+'"');if(h.primitive||w!==null)return a.skip(w,'Failed to match body of: "'+g+'"');const y=a.save(),S=this._skipUntilEnd(a,'Failed to skip indefinite length body: "'+this.tag+'"');return a.isError(S)?S:(w=a.offset-y.offset,a.restore(y),a.skip(w,'Failed to match body of: "'+g+'"'))},r.prototype._skipUntilEnd=function(a,g){for(;;){const v=i(a,g);if(a.isError(v))return v;const h=o(a,v.primitive,g);if(a.isError(h))return h;let w;if(v.primitive||h!==null?w=a.skip(h):w=this._skipUntilEnd(a,g),a.isError(w))return w;if(v.tagStr==="end")break}},r.prototype._decodeList=function(a,g,v,h){const w=[];for(;!a.isEmpty();){const y=this._peekTag(a,"end");if(a.isError(y))return y;const S=v.decode(a,"der",h);if(a.isError(S)&&y)break;w.push(S)}return w},r.prototype._decodeStr=function(a,g){if(g==="bitstr"){const v=a.readUInt8();return a.isError(v)?v:{unused:v,data:a.raw()}}else if(g==="bmpstr"){const v=a.raw();if(v.length%2===1)return a.error("Decoding of string type: bmpstr length mismatch");let h="";for(let w=0;w<v.length/2;w++)h+=String.fromCharCode(v.readUInt16BE(w*2));return h}else if(g==="numstr"){const v=a.raw().toString("ascii");return this._isNumstr(v)?v:a.error("Decoding of string type: numstr unsupported characters")}else{if(g==="octstr")return a.raw();if(g==="objDesc")return a.raw();if(g==="printstr"){const v=a.raw().toString("ascii");return this._isPrintstr(v)?v:a.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(g)?a.raw().toString():a.error("Decoding of string type: "+g+" unsupported")}},r.prototype._decodeObjid=function(a,g,v){let h;const w=[];let y=0,S=0;for(;!a.isEmpty();)S=a.readUInt8(),y<<=7,y|=S&127,S&128||(w.push(y),y=0);S&128&&w.push(y);const E=w[0]/40|0,I=w[0]%40;if(v?h=w:h=[E,I].concat(w.slice(1)),g){let F=g[h.join(" ")];F===void 0&&(F=g[h.join(".")]),F!==void 0&&(h=F)}return h},r.prototype._decodeTime=function(a,g){const v=a.raw().toString();let h,w,y,S,E,I;if(g==="gentime")h=v.slice(0,4)|0,w=v.slice(4,6)|0,y=v.slice(6,8)|0,S=v.slice(8,10)|0,E=v.slice(10,12)|0,I=v.slice(12,14)|0;else if(g==="utctime")h=v.slice(0,2)|0,w=v.slice(2,4)|0,y=v.slice(4,6)|0,S=v.slice(6,8)|0,E=v.slice(8,10)|0,I=v.slice(10,12)|0,h<70?h=2e3+h:h=1900+h;else return a.error("Decoding "+g+" time is not supported yet");return Date.UTC(h,w-1,y,S,E,I,0)},r.prototype._decodeNull=function(){return null},r.prototype._decodeBool=function(a){const g=a.readUInt8();return a.isError(g)?g:g!==0},r.prototype._decodeInt=function(a,g){const v=a.raw();let h=new c(v);return g&&(h=g[h.toString(10)]||h),h},r.prototype._use=function(a,g){return typeof a=="function"&&(a=a(g)),a._getDecoder("der").tree};function i(l,a){let g=l.readUInt8(a);if(l.isError(g))return g;const v=t.tagClass[g>>6],h=(g&32)===0;if((g&31)===31){let y=g;for(g=0;(y&128)===128;){if(y=l.readUInt8(a),l.isError(y))return y;g<<=7,g|=y&127}}else g&=31;const w=t.tag[g];return{cls:v,primitive:h,tag:g,tagStr:w}}function o(l,a,g){let v=l.readUInt8(g);if(l.isError(v))return v;if(!a&&v===128)return null;if(!(v&128))return v;const h=v&127;if(h>4)return l.error("length octect is too long");v=0;for(let w=0;w<h;w++){v<<=8;const y=l.readUInt8(g);if(l.isError(y))return y;v|=y}return v}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,d,m){const f=m;f.der=e("./der"),f.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,d,m){const f=e("inherits"),c=e("safer-buffer").Buffer,u=e("./der");function s(t){u.call(this,t),this.enc="pem"}f(s,u),d.exports=s,s.prototype.decode=function(n,r){const i=n.toString().split(/[\r\n]+/g),o=r.label.toUpperCase(),l=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,g=-1;for(let w=0;w<i.length;w++){const y=i[w].match(l);if(y!==null&&y[2]===o)if(a===-1){if(y[1]!=="BEGIN")break;a=w}else{if(y[1]!=="END")break;g=w;break}}if(a===-1||g===-1)throw new Error("PEM section not found for: "+o);const v=i.slice(a+1,g).join("");v.replace(/[^a-z0-9+/=]+/gi,"");const h=c.from(v,"base64");return u.prototype.decode.call(this,h,r)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,d,m){const f=e("inherits"),c=e("safer-buffer").Buffer,u=e("../base/node"),s=e("../constants/der");function t(o){this.enc="der",this.name=o.name,this.entity=o,this.tree=new n,this.tree._init(o.body)}d.exports=t,t.prototype.encode=function(l,a){return this.tree._encode(l,a).join()};function n(o){u.call(this,"der",o)}f(n,u),n.prototype._encodeComposite=function(l,a,g,v){const h=i(l,a,g,this.reporter);if(v.length<128){const S=c.alloc(2);return S[0]=h,S[1]=v.length,this._createEncoderBuffer([S,v])}let w=1;for(let S=v.length;S>=256;S>>=8)w++;const y=c.alloc(1+1+w);y[0]=h,y[1]=128|w;for(let S=1+w,E=v.length;E>0;S--,E>>=8)y[S]=E&255;return this._createEncoderBuffer([y,v])},n.prototype._encodeStr=function(l,a){if(a==="bitstr")return this._createEncoderBuffer([l.unused|0,l.data]);if(a==="bmpstr"){const g=c.alloc(l.length*2);for(let v=0;v<l.length;v++)g.writeUInt16BE(l.charCodeAt(v),v*2);return this._createEncoderBuffer(g)}else return a==="numstr"?this._isNumstr(l)?this._createEncoderBuffer(l):this.reporter.error("Encoding of string type: numstr supports only digits and space"):a==="printstr"?this._isPrintstr(l)?this._createEncoderBuffer(l):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(a)?this._createEncoderBuffer(l):a==="objDesc"?this._createEncoderBuffer(l):this.reporter.error("Encoding of string type: "+a+" unsupported")},n.prototype._encodeObjid=function(l,a,g){if(typeof l=="string"){if(!a)return this.reporter.error("string objid given, but no values map found");if(!a.hasOwnProperty(l))return this.reporter.error("objid not found in values map");l=a[l].split(/[\s.]+/g);for(let y=0;y<l.length;y++)l[y]|=0}else if(Array.isArray(l)){l=l.slice();for(let y=0;y<l.length;y++)l[y]|=0}if(!Array.isArray(l))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(l));if(!g){if(l[1]>=40)return this.reporter.error("Second objid identifier OOB");l.splice(0,2,l[0]*40+l[1])}let v=0;for(let y=0;y<l.length;y++){let S=l[y];for(v++;S>=128;S>>=7)v++}const h=c.alloc(v);let w=h.length-1;for(let y=l.length-1;y>=0;y--){let S=l[y];for(h[w--]=S&127;(S>>=7)>0;)h[w--]=128|S&127}return this._createEncoderBuffer(h)};function r(o){return o<10?"0"+o:o}n.prototype._encodeTime=function(l,a){let g;const v=new Date(l);return a==="gentime"?g=[r(v.getUTCFullYear()),r(v.getUTCMonth()+1),r(v.getUTCDate()),r(v.getUTCHours()),r(v.getUTCMinutes()),r(v.getUTCSeconds()),"Z"].join(""):a==="utctime"?g=[r(v.getUTCFullYear()%100),r(v.getUTCMonth()+1),r(v.getUTCDate()),r(v.getUTCHours()),r(v.getUTCMinutes()),r(v.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+a+" time is not supported yet"),this._encodeStr(g,"octstr")},n.prototype._encodeNull=function(){return this._createEncoderBuffer("")},n.prototype._encodeInt=function(l,a){if(typeof l=="string"){if(!a)return this.reporter.error("String int or enum given, but no values map");if(!a.hasOwnProperty(l))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(l));l=a[l]}if(typeof l!="number"&&!c.isBuffer(l)){const h=l.toArray();!l.sign&&h[0]&128&&h.unshift(0),l=c.from(h)}if(c.isBuffer(l)){let h=l.length;l.length===0&&h++;const w=c.alloc(h);return l.copy(w),l.length===0&&(w[0]=0),this._createEncoderBuffer(w)}if(l<128)return this._createEncoderBuffer(l);if(l<256)return this._createEncoderBuffer([0,l]);let g=1;for(let h=l;h>=256;h>>=8)g++;const v=new Array(g);for(let h=v.length-1;h>=0;h--)v[h]=l&255,l>>=8;return v[0]&128&&v.unshift(0),this._createEncoderBuffer(c.from(v))},n.prototype._encodeBool=function(l){return this._createEncoderBuffer(l?255:0)},n.prototype._use=function(l,a){return typeof l=="function"&&(l=l(a)),l._getEncoder("der").tree},n.prototype._skipDefault=function(l,a,g){const v=this._baseState;let h;if(v.default===null)return!1;const w=l.join();if(v.defaultBuffer===void 0&&(v.defaultBuffer=this._encodeValue(v.default,a,g).join()),w.length!==v.defaultBuffer.length)return!1;for(h=0;h<w.length;h++)if(w[h]!==v.defaultBuffer[h])return!1;return!0};function i(o,l,a,g){let v;if(o==="seqof"?o="seq":o==="setof"&&(o="set"),s.tagByName.hasOwnProperty(o))v=s.tagByName[o];else if(typeof o=="number"&&(o|0)===o)v=o;else return g.error("Unknown tag: "+o);return v>=31?g.error("Multi-octet tag encoding unsupported"):(l||(v|=32),v|=s.tagClassByName[a||"universal"]<<6,v)}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,d,m){const f=m;f.der=e("./der"),f.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,d,m){const f=e("inherits"),c=e("./der");function u(s){c.call(this,s),this.enc="pem"}f(u,c),d.exports=u,u.prototype.encode=function(t,n){const i=c.prototype.encode.call(this,t).toString("base64"),o=["-----BEGIN "+n.label+"-----"];for(let l=0;l<i.length;l+=64)o.push(i.slice(l,l+64));return o.push("-----END "+n.label+"-----"),o.join(`
|
||
`)}},{"./der":181,inherits:440}],184:[function(e,d,m){(function(f,c){function u(H,M){if(!H)throw new Error(M||"Assertion failed")}function s(H,M){H.super_=M;var T=function(){};T.prototype=M.prototype,H.prototype=new T,H.prototype.constructor=H}function t(H,M,T){if(t.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((M==="le"||M==="be")&&(T=M,M=10),this._init(H||0,M||10,T||"be"))}typeof f=="object"?f.exports=t:c.BN=t,t.BN=t,t.wordSize=26;var n;try{typeof window<"u"&&typeof window.Buffer<"u"?n=window.Buffer:n=e("buffer").Buffer}catch{}t.isBN=function(M){return M instanceof t?!0:M!==null&&typeof M=="object"&&M.constructor.wordSize===t.wordSize&&Array.isArray(M.words)},t.max=function(M,T){return M.cmp(T)>0?M:T},t.min=function(M,T){return M.cmp(T)<0?M:T},t.prototype._init=function(M,T,_){if(typeof M=="number")return this._initNumber(M,T,_);if(typeof M=="object")return this._initArray(M,T,_);T==="hex"&&(T=16),u(T===(T|0)&&T>=2&&T<=36),M=M.toString().replace(/\s+/g,"");var A=0;M[0]==="-"&&(A++,this.negative=1),A<M.length&&(T===16?this._parseHex(M,A,_):(this._parseBase(M,T,A),_==="le"&&this._initArray(this.toArray(),T,_)))},t.prototype._initNumber=function(M,T,_){M<0&&(this.negative=1,M=-M),M<67108864?(this.words=[M&67108863],this.length=1):M<4503599627370496?(this.words=[M&67108863,M/67108864&67108863],this.length=2):(u(M<9007199254740992),this.words=[M&67108863,M/67108864&67108863,1],this.length=3),_==="le"&&this._initArray(this.toArray(),T,_)},t.prototype._initArray=function(M,T,_){if(u(typeof M.length=="number"),M.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(M.length/3),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var P,L,$=0;if(_==="be")for(A=M.length-1,P=0;A>=0;A-=3)L=M[A]|M[A-1]<<8|M[A-2]<<16,this.words[P]|=L<<$&67108863,this.words[P+1]=L>>>26-$&67108863,$+=24,$>=26&&($-=26,P++);else if(_==="le")for(A=0,P=0;A<M.length;A+=3)L=M[A]|M[A+1]<<8|M[A+2]<<16,this.words[P]|=L<<$&67108863,this.words[P+1]=L>>>26-$&67108863,$+=24,$>=26&&($-=26,P++);return this.strip()};function r(H,M){var T=H.charCodeAt(M);return T>=65&&T<=70?T-55:T>=97&&T<=102?T-87:T-48&15}function i(H,M,T){var _=r(H,T);return T-1>=M&&(_|=r(H,T-1)<<4),_}t.prototype._parseHex=function(M,T,_){this.length=Math.ceil((M.length-T)/6),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var P=0,L=0,$;if(_==="be")for(A=M.length-1;A>=T;A-=2)$=i(M,T,A)<<P,this.words[L]|=$&67108863,P>=18?(P-=18,L+=1,this.words[L]|=$>>>26):P+=8;else{var R=M.length-T;for(A=R%2===0?T+1:T;A<M.length;A+=2)$=i(M,T,A)<<P,this.words[L]|=$&67108863,P>=18?(P-=18,L+=1,this.words[L]|=$>>>26):P+=8}this.strip()};function o(H,M,T,_){for(var A=0,P=Math.min(H.length,T),L=M;L<P;L++){var $=H.charCodeAt(L)-48;A*=_,$>=49?A+=$-49+10:$>=17?A+=$-17+10:A+=$}return A}t.prototype._parseBase=function(M,T,_){this.words=[0],this.length=1;for(var A=0,P=1;P<=67108863;P*=T)A++;A--,P=P/T|0;for(var L=M.length-_,$=L%A,R=Math.min(L,L-$)+_,k=0,C=_;C<R;C+=A)k=o(M,C,C+A,T),this.imuln(P),this.words[0]+k<67108864?this.words[0]+=k:this._iaddn(k);if($!==0){var O=1;for(k=o(M,C,M.length,T),C=0;C<$;C++)O*=T;this.imuln(O),this.words[0]+k<67108864?this.words[0]+=k:this._iaddn(k)}this.strip()},t.prototype.copy=function(M){M.words=new Array(this.length);for(var T=0;T<this.length;T++)M.words[T]=this.words[T];M.length=this.length,M.negative=this.negative,M.red=this.red},t.prototype.clone=function(){var M=new t(null);return this.copy(M),M},t.prototype._expand=function(M){for(;this.length<M;)this.words[this.length++]=0;return this},t.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},t.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},t.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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"],a=[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],g=[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];t.prototype.toString=function(M,T){M=M||10,T=T|0||1;var _;if(M===16||M==="hex"){_="";for(var A=0,P=0,L=0;L<this.length;L++){var $=this.words[L],R=(($<<A|P)&16777215).toString(16);P=$>>>24-A&16777215,P!==0||L!==this.length-1?_=l[6-R.length]+R+_:_=R+_,A+=2,A>=26&&(A-=26,L--)}for(P!==0&&(_=P.toString(16)+_);_.length%T!==0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}if(M===(M|0)&&M>=2&&M<=36){var k=a[M],C=g[M];_="";var O=this.clone();for(O.negative=0;!O.isZero();){var W=O.modn(C).toString(M);O=O.idivn(C),O.isZero()?_=W+_:_=l[k-W.length]+W+_}for(this.isZero()&&(_="0"+_);_.length%T!==0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}u(!1,"Base should be between 2 and 36")},t.prototype.toNumber=function(){var M=this.words[0];return this.length===2?M+=this.words[1]*67108864:this.length===3&&this.words[2]===1?M+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-M:M},t.prototype.toJSON=function(){return this.toString(16)},t.prototype.toBuffer=function(M,T){return u(typeof n<"u"),this.toArrayLike(n,M,T)},t.prototype.toArray=function(M,T){return this.toArrayLike(Array,M,T)},t.prototype.toArrayLike=function(M,T,_){var A=this.byteLength(),P=_||Math.max(1,A);u(A<=P,"byte array longer than desired length"),u(P>0,"Requested array length <= 0"),this.strip();var L=T==="le",$=new M(P),R,k,C=this.clone();if(L){for(k=0;!C.isZero();k++)R=C.andln(255),C.iushrn(8),$[k]=R;for(;k<P;k++)$[k]=0}else{for(k=0;k<P-A;k++)$[k]=0;for(k=0;!C.isZero();k++)R=C.andln(255),C.iushrn(8),$[P-k-1]=R}return $},Math.clz32?t.prototype._countBits=function(M){return 32-Math.clz32(M)}:t.prototype._countBits=function(M){var T=M,_=0;return T>=4096&&(_+=13,T>>>=13),T>=64&&(_+=7,T>>>=7),T>=8&&(_+=4,T>>>=4),T>=2&&(_+=2,T>>>=2),_+T},t.prototype._zeroBits=function(M){if(M===0)return 26;var T=M,_=0;return T&8191||(_+=13,T>>>=13),T&127||(_+=7,T>>>=7),T&15||(_+=4,T>>>=4),T&3||(_+=2,T>>>=2),T&1||_++,_},t.prototype.bitLength=function(){var M=this.words[this.length-1],T=this._countBits(M);return(this.length-1)*26+T};function v(H){for(var M=new Array(H.bitLength()),T=0;T<M.length;T++){var _=T/26|0,A=T%26;M[T]=(H.words[_]&1<<A)>>>A}return M}t.prototype.zeroBits=function(){if(this.isZero())return 0;for(var M=0,T=0;T<this.length;T++){var _=this._zeroBits(this.words[T]);if(M+=_,_!==26)break}return M},t.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},t.prototype.toTwos=function(M){return this.negative!==0?this.abs().inotn(M).iaddn(1):this.clone()},t.prototype.fromTwos=function(M){return this.testn(M-1)?this.notn(M).iaddn(1).ineg():this.clone()},t.prototype.isNeg=function(){return this.negative!==0},t.prototype.neg=function(){return this.clone().ineg()},t.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},t.prototype.iuor=function(M){for(;this.length<M.length;)this.words[this.length++]=0;for(var T=0;T<M.length;T++)this.words[T]=this.words[T]|M.words[T];return this.strip()},t.prototype.ior=function(M){return u((this.negative|M.negative)===0),this.iuor(M)},t.prototype.or=function(M){return this.length>M.length?this.clone().ior(M):M.clone().ior(this)},t.prototype.uor=function(M){return this.length>M.length?this.clone().iuor(M):M.clone().iuor(this)},t.prototype.iuand=function(M){var T;this.length>M.length?T=M:T=this;for(var _=0;_<T.length;_++)this.words[_]=this.words[_]&M.words[_];return this.length=T.length,this.strip()},t.prototype.iand=function(M){return u((this.negative|M.negative)===0),this.iuand(M)},t.prototype.and=function(M){return this.length>M.length?this.clone().iand(M):M.clone().iand(this)},t.prototype.uand=function(M){return this.length>M.length?this.clone().iuand(M):M.clone().iuand(this)},t.prototype.iuxor=function(M){var T,_;this.length>M.length?(T=this,_=M):(T=M,_=this);for(var A=0;A<_.length;A++)this.words[A]=T.words[A]^_.words[A];if(this!==T)for(;A<T.length;A++)this.words[A]=T.words[A];return this.length=T.length,this.strip()},t.prototype.ixor=function(M){return u((this.negative|M.negative)===0),this.iuxor(M)},t.prototype.xor=function(M){return this.length>M.length?this.clone().ixor(M):M.clone().ixor(this)},t.prototype.uxor=function(M){return this.length>M.length?this.clone().iuxor(M):M.clone().iuxor(this)},t.prototype.inotn=function(M){u(typeof M=="number"&&M>=0);var T=Math.ceil(M/26)|0,_=M%26;this._expand(T),_>0&&T--;for(var A=0;A<T;A++)this.words[A]=~this.words[A]&67108863;return _>0&&(this.words[A]=~this.words[A]&67108863>>26-_),this.strip()},t.prototype.notn=function(M){return this.clone().inotn(M)},t.prototype.setn=function(M,T){u(typeof M=="number"&&M>=0);var _=M/26|0,A=M%26;return this._expand(_+1),T?this.words[_]=this.words[_]|1<<A:this.words[_]=this.words[_]&~(1<<A),this.strip()},t.prototype.iadd=function(M){var T;if(this.negative!==0&&M.negative===0)return this.negative=0,T=this.isub(M),this.negative^=1,this._normSign();if(this.negative===0&&M.negative!==0)return M.negative=0,T=this.isub(M),M.negative=1,T._normSign();var _,A;this.length>M.length?(_=this,A=M):(_=M,A=this);for(var P=0,L=0;L<A.length;L++)T=(_.words[L]|0)+(A.words[L]|0)+P,this.words[L]=T&67108863,P=T>>>26;for(;P!==0&&L<_.length;L++)T=(_.words[L]|0)+P,this.words[L]=T&67108863,P=T>>>26;if(this.length=_.length,P!==0)this.words[this.length]=P,this.length++;else if(_!==this)for(;L<_.length;L++)this.words[L]=_.words[L];return this},t.prototype.add=function(M){var T;return M.negative!==0&&this.negative===0?(M.negative=0,T=this.sub(M),M.negative^=1,T):M.negative===0&&this.negative!==0?(this.negative=0,T=M.sub(this),this.negative=1,T):this.length>M.length?this.clone().iadd(M):M.clone().iadd(this)},t.prototype.isub=function(M){if(M.negative!==0){M.negative=0;var T=this.iadd(M);return M.negative=1,T._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(M),this.negative=1,this._normSign();var _=this.cmp(M);if(_===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,P;_>0?(A=this,P=M):(A=M,P=this);for(var L=0,$=0;$<P.length;$++)T=(A.words[$]|0)-(P.words[$]|0)+L,L=T>>26,this.words[$]=T&67108863;for(;L!==0&&$<A.length;$++)T=(A.words[$]|0)+L,L=T>>26,this.words[$]=T&67108863;if(L===0&&$<A.length&&A!==this)for(;$<A.length;$++)this.words[$]=A.words[$];return this.length=Math.max(this.length,$),A!==this&&(this.negative=1),this.strip()},t.prototype.sub=function(M){return this.clone().isub(M)};function h(H,M,T){T.negative=M.negative^H.negative;var _=H.length+M.length|0;T.length=_,_=_-1|0;var A=H.words[0]|0,P=M.words[0]|0,L=A*P,$=L&67108863,R=L/67108864|0;T.words[0]=$;for(var k=1;k<_;k++){for(var C=R>>>26,O=R&67108863,W=Math.min(k,M.length-1),ne=Math.max(0,k-H.length+1);ne<=W;ne++){var he=k-ne|0;A=H.words[he]|0,P=M.words[ne]|0,L=A*P+O,C+=L/67108864|0,O=L&67108863}T.words[k]=O|0,R=C|0}return R!==0?T.words[k]=R|0:T.length--,T.strip()}var w=function(M,T,_){var A=M.words,P=T.words,L=_.words,$=0,R,k,C,O=A[0]|0,W=O&8191,ne=O>>>13,he=A[1]|0,ue=he&8191,Ae=he>>>13,pe=A[2]|0,te=pe&8191,Z=pe>>>13,q=A[3]|0,de=q&8191,ke=q>>>13,oe=A[4]|0,ie=oe&8191,Q=oe>>>13,z=A[5]|0,Y=z&8191,fe=z>>>13,we=A[6]|0,U=we&8191,ve=we>>>13,Se=A[7]|0,ee=Se&8191,se=Se>>>13,me=A[8]|0,Ee=me&8191,Ie=me>>>13,Ce=A[9]|0,Fe=Ce&8191,ze=Ce>>>13,je=P[0]|0,ge=je&8191,Me=je>>>13,Be=P[1]|0,Xe=Be&8191,ot=Be>>>13,ct=P[2]|0,st=ct&8191,rt=ct>>>13,bt=P[3]|0,Qe=bt&8191,et=bt>>>13,_t=P[4]|0,ft=_t&8191,jt=_t>>>13,It=P[5]|0,ht=It&8191,Dt=It>>>13,Ut=P[6]|0,wt=Ut&8191,er=Ut>>>13,Kt=P[7]|0,pt=Kt&8191,Gt=Kt>>>13,kt=P[8]|0,xt=kt&8191,$t=kt>>>13,Qt=P[9]|0,mt=Qt&8191,qt=Qt>>>13;_.negative=M.negative^T.negative,_.length=19,R=Math.imul(W,ge),k=Math.imul(W,Me),k=k+Math.imul(ne,ge)|0,C=Math.imul(ne,Me);var St=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(St>>>26)|0,St&=67108863,R=Math.imul(ue,ge),k=Math.imul(ue,Me),k=k+Math.imul(Ae,ge)|0,C=Math.imul(Ae,Me),R=R+Math.imul(W,Xe)|0,k=k+Math.imul(W,ot)|0,k=k+Math.imul(ne,Xe)|0,C=C+Math.imul(ne,ot)|0;var Tt=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,R=Math.imul(te,ge),k=Math.imul(te,Me),k=k+Math.imul(Z,ge)|0,C=Math.imul(Z,Me),R=R+Math.imul(ue,Xe)|0,k=k+Math.imul(ue,ot)|0,k=k+Math.imul(Ae,Xe)|0,C=C+Math.imul(Ae,ot)|0,R=R+Math.imul(W,st)|0,k=k+Math.imul(W,rt)|0,k=k+Math.imul(ne,st)|0,C=C+Math.imul(ne,rt)|0;var be=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(be>>>26)|0,be&=67108863,R=Math.imul(de,ge),k=Math.imul(de,Me),k=k+Math.imul(ke,ge)|0,C=Math.imul(ke,Me),R=R+Math.imul(te,Xe)|0,k=k+Math.imul(te,ot)|0,k=k+Math.imul(Z,Xe)|0,C=C+Math.imul(Z,ot)|0,R=R+Math.imul(ue,st)|0,k=k+Math.imul(ue,rt)|0,k=k+Math.imul(Ae,st)|0,C=C+Math.imul(Ae,rt)|0,R=R+Math.imul(W,Qe)|0,k=k+Math.imul(W,et)|0,k=k+Math.imul(ne,Qe)|0,C=C+Math.imul(ne,et)|0;var Ne=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,R=Math.imul(ie,ge),k=Math.imul(ie,Me),k=k+Math.imul(Q,ge)|0,C=Math.imul(Q,Me),R=R+Math.imul(de,Xe)|0,k=k+Math.imul(de,ot)|0,k=k+Math.imul(ke,Xe)|0,C=C+Math.imul(ke,ot)|0,R=R+Math.imul(te,st)|0,k=k+Math.imul(te,rt)|0,k=k+Math.imul(Z,st)|0,C=C+Math.imul(Z,rt)|0,R=R+Math.imul(ue,Qe)|0,k=k+Math.imul(ue,et)|0,k=k+Math.imul(Ae,Qe)|0,C=C+Math.imul(Ae,et)|0,R=R+Math.imul(W,ft)|0,k=k+Math.imul(W,jt)|0,k=k+Math.imul(ne,ft)|0,C=C+Math.imul(ne,jt)|0;var Le=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(Le>>>26)|0,Le&=67108863,R=Math.imul(Y,ge),k=Math.imul(Y,Me),k=k+Math.imul(fe,ge)|0,C=Math.imul(fe,Me),R=R+Math.imul(ie,Xe)|0,k=k+Math.imul(ie,ot)|0,k=k+Math.imul(Q,Xe)|0,C=C+Math.imul(Q,ot)|0,R=R+Math.imul(de,st)|0,k=k+Math.imul(de,rt)|0,k=k+Math.imul(ke,st)|0,C=C+Math.imul(ke,rt)|0,R=R+Math.imul(te,Qe)|0,k=k+Math.imul(te,et)|0,k=k+Math.imul(Z,Qe)|0,C=C+Math.imul(Z,et)|0,R=R+Math.imul(ue,ft)|0,k=k+Math.imul(ue,jt)|0,k=k+Math.imul(Ae,ft)|0,C=C+Math.imul(Ae,jt)|0,R=R+Math.imul(W,ht)|0,k=k+Math.imul(W,Dt)|0,k=k+Math.imul(ne,ht)|0,C=C+Math.imul(ne,Dt)|0;var Je=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(Je>>>26)|0,Je&=67108863,R=Math.imul(U,ge),k=Math.imul(U,Me),k=k+Math.imul(ve,ge)|0,C=Math.imul(ve,Me),R=R+Math.imul(Y,Xe)|0,k=k+Math.imul(Y,ot)|0,k=k+Math.imul(fe,Xe)|0,C=C+Math.imul(fe,ot)|0,R=R+Math.imul(ie,st)|0,k=k+Math.imul(ie,rt)|0,k=k+Math.imul(Q,st)|0,C=C+Math.imul(Q,rt)|0,R=R+Math.imul(de,Qe)|0,k=k+Math.imul(de,et)|0,k=k+Math.imul(ke,Qe)|0,C=C+Math.imul(ke,et)|0,R=R+Math.imul(te,ft)|0,k=k+Math.imul(te,jt)|0,k=k+Math.imul(Z,ft)|0,C=C+Math.imul(Z,jt)|0,R=R+Math.imul(ue,ht)|0,k=k+Math.imul(ue,Dt)|0,k=k+Math.imul(Ae,ht)|0,C=C+Math.imul(Ae,Dt)|0,R=R+Math.imul(W,wt)|0,k=k+Math.imul(W,er)|0,k=k+Math.imul(ne,wt)|0,C=C+Math.imul(ne,er)|0;var at=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(at>>>26)|0,at&=67108863,R=Math.imul(ee,ge),k=Math.imul(ee,Me),k=k+Math.imul(se,ge)|0,C=Math.imul(se,Me),R=R+Math.imul(U,Xe)|0,k=k+Math.imul(U,ot)|0,k=k+Math.imul(ve,Xe)|0,C=C+Math.imul(ve,ot)|0,R=R+Math.imul(Y,st)|0,k=k+Math.imul(Y,rt)|0,k=k+Math.imul(fe,st)|0,C=C+Math.imul(fe,rt)|0,R=R+Math.imul(ie,Qe)|0,k=k+Math.imul(ie,et)|0,k=k+Math.imul(Q,Qe)|0,C=C+Math.imul(Q,et)|0,R=R+Math.imul(de,ft)|0,k=k+Math.imul(de,jt)|0,k=k+Math.imul(ke,ft)|0,C=C+Math.imul(ke,jt)|0,R=R+Math.imul(te,ht)|0,k=k+Math.imul(te,Dt)|0,k=k+Math.imul(Z,ht)|0,C=C+Math.imul(Z,Dt)|0,R=R+Math.imul(ue,wt)|0,k=k+Math.imul(ue,er)|0,k=k+Math.imul(Ae,wt)|0,C=C+Math.imul(Ae,er)|0,R=R+Math.imul(W,pt)|0,k=k+Math.imul(W,Gt)|0,k=k+Math.imul(ne,pt)|0,C=C+Math.imul(ne,Gt)|0;var Mt=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,R=Math.imul(Ee,ge),k=Math.imul(Ee,Me),k=k+Math.imul(Ie,ge)|0,C=Math.imul(Ie,Me),R=R+Math.imul(ee,Xe)|0,k=k+Math.imul(ee,ot)|0,k=k+Math.imul(se,Xe)|0,C=C+Math.imul(se,ot)|0,R=R+Math.imul(U,st)|0,k=k+Math.imul(U,rt)|0,k=k+Math.imul(ve,st)|0,C=C+Math.imul(ve,rt)|0,R=R+Math.imul(Y,Qe)|0,k=k+Math.imul(Y,et)|0,k=k+Math.imul(fe,Qe)|0,C=C+Math.imul(fe,et)|0,R=R+Math.imul(ie,ft)|0,k=k+Math.imul(ie,jt)|0,k=k+Math.imul(Q,ft)|0,C=C+Math.imul(Q,jt)|0,R=R+Math.imul(de,ht)|0,k=k+Math.imul(de,Dt)|0,k=k+Math.imul(ke,ht)|0,C=C+Math.imul(ke,Dt)|0,R=R+Math.imul(te,wt)|0,k=k+Math.imul(te,er)|0,k=k+Math.imul(Z,wt)|0,C=C+Math.imul(Z,er)|0,R=R+Math.imul(ue,pt)|0,k=k+Math.imul(ue,Gt)|0,k=k+Math.imul(Ae,pt)|0,C=C+Math.imul(Ae,Gt)|0,R=R+Math.imul(W,xt)|0,k=k+Math.imul(W,$t)|0,k=k+Math.imul(ne,xt)|0,C=C+Math.imul(ne,$t)|0;var rr=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(rr>>>26)|0,rr&=67108863,R=Math.imul(Fe,ge),k=Math.imul(Fe,Me),k=k+Math.imul(ze,ge)|0,C=Math.imul(ze,Me),R=R+Math.imul(Ee,Xe)|0,k=k+Math.imul(Ee,ot)|0,k=k+Math.imul(Ie,Xe)|0,C=C+Math.imul(Ie,ot)|0,R=R+Math.imul(ee,st)|0,k=k+Math.imul(ee,rt)|0,k=k+Math.imul(se,st)|0,C=C+Math.imul(se,rt)|0,R=R+Math.imul(U,Qe)|0,k=k+Math.imul(U,et)|0,k=k+Math.imul(ve,Qe)|0,C=C+Math.imul(ve,et)|0,R=R+Math.imul(Y,ft)|0,k=k+Math.imul(Y,jt)|0,k=k+Math.imul(fe,ft)|0,C=C+Math.imul(fe,jt)|0,R=R+Math.imul(ie,ht)|0,k=k+Math.imul(ie,Dt)|0,k=k+Math.imul(Q,ht)|0,C=C+Math.imul(Q,Dt)|0,R=R+Math.imul(de,wt)|0,k=k+Math.imul(de,er)|0,k=k+Math.imul(ke,wt)|0,C=C+Math.imul(ke,er)|0,R=R+Math.imul(te,pt)|0,k=k+Math.imul(te,Gt)|0,k=k+Math.imul(Z,pt)|0,C=C+Math.imul(Z,Gt)|0,R=R+Math.imul(ue,xt)|0,k=k+Math.imul(ue,$t)|0,k=k+Math.imul(Ae,xt)|0,C=C+Math.imul(Ae,$t)|0,R=R+Math.imul(W,mt)|0,k=k+Math.imul(W,qt)|0,k=k+Math.imul(ne,mt)|0,C=C+Math.imul(ne,qt)|0;var vr=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(vr>>>26)|0,vr&=67108863,R=Math.imul(Fe,Xe),k=Math.imul(Fe,ot),k=k+Math.imul(ze,Xe)|0,C=Math.imul(ze,ot),R=R+Math.imul(Ee,st)|0,k=k+Math.imul(Ee,rt)|0,k=k+Math.imul(Ie,st)|0,C=C+Math.imul(Ie,rt)|0,R=R+Math.imul(ee,Qe)|0,k=k+Math.imul(ee,et)|0,k=k+Math.imul(se,Qe)|0,C=C+Math.imul(se,et)|0,R=R+Math.imul(U,ft)|0,k=k+Math.imul(U,jt)|0,k=k+Math.imul(ve,ft)|0,C=C+Math.imul(ve,jt)|0,R=R+Math.imul(Y,ht)|0,k=k+Math.imul(Y,Dt)|0,k=k+Math.imul(fe,ht)|0,C=C+Math.imul(fe,Dt)|0,R=R+Math.imul(ie,wt)|0,k=k+Math.imul(ie,er)|0,k=k+Math.imul(Q,wt)|0,C=C+Math.imul(Q,er)|0,R=R+Math.imul(de,pt)|0,k=k+Math.imul(de,Gt)|0,k=k+Math.imul(ke,pt)|0,C=C+Math.imul(ke,Gt)|0,R=R+Math.imul(te,xt)|0,k=k+Math.imul(te,$t)|0,k=k+Math.imul(Z,xt)|0,C=C+Math.imul(Z,$t)|0,R=R+Math.imul(ue,mt)|0,k=k+Math.imul(ue,qt)|0,k=k+Math.imul(Ae,mt)|0,C=C+Math.imul(Ae,qt)|0;var Dr=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,R=Math.imul(Fe,st),k=Math.imul(Fe,rt),k=k+Math.imul(ze,st)|0,C=Math.imul(ze,rt),R=R+Math.imul(Ee,Qe)|0,k=k+Math.imul(Ee,et)|0,k=k+Math.imul(Ie,Qe)|0,C=C+Math.imul(Ie,et)|0,R=R+Math.imul(ee,ft)|0,k=k+Math.imul(ee,jt)|0,k=k+Math.imul(se,ft)|0,C=C+Math.imul(se,jt)|0,R=R+Math.imul(U,ht)|0,k=k+Math.imul(U,Dt)|0,k=k+Math.imul(ve,ht)|0,C=C+Math.imul(ve,Dt)|0,R=R+Math.imul(Y,wt)|0,k=k+Math.imul(Y,er)|0,k=k+Math.imul(fe,wt)|0,C=C+Math.imul(fe,er)|0,R=R+Math.imul(ie,pt)|0,k=k+Math.imul(ie,Gt)|0,k=k+Math.imul(Q,pt)|0,C=C+Math.imul(Q,Gt)|0,R=R+Math.imul(de,xt)|0,k=k+Math.imul(de,$t)|0,k=k+Math.imul(ke,xt)|0,C=C+Math.imul(ke,$t)|0,R=R+Math.imul(te,mt)|0,k=k+Math.imul(te,qt)|0,k=k+Math.imul(Z,mt)|0,C=C+Math.imul(Z,qt)|0;var yr=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(yr>>>26)|0,yr&=67108863,R=Math.imul(Fe,Qe),k=Math.imul(Fe,et),k=k+Math.imul(ze,Qe)|0,C=Math.imul(ze,et),R=R+Math.imul(Ee,ft)|0,k=k+Math.imul(Ee,jt)|0,k=k+Math.imul(Ie,ft)|0,C=C+Math.imul(Ie,jt)|0,R=R+Math.imul(ee,ht)|0,k=k+Math.imul(ee,Dt)|0,k=k+Math.imul(se,ht)|0,C=C+Math.imul(se,Dt)|0,R=R+Math.imul(U,wt)|0,k=k+Math.imul(U,er)|0,k=k+Math.imul(ve,wt)|0,C=C+Math.imul(ve,er)|0,R=R+Math.imul(Y,pt)|0,k=k+Math.imul(Y,Gt)|0,k=k+Math.imul(fe,pt)|0,C=C+Math.imul(fe,Gt)|0,R=R+Math.imul(ie,xt)|0,k=k+Math.imul(ie,$t)|0,k=k+Math.imul(Q,xt)|0,C=C+Math.imul(Q,$t)|0,R=R+Math.imul(de,mt)|0,k=k+Math.imul(de,qt)|0,k=k+Math.imul(ke,mt)|0,C=C+Math.imul(ke,qt)|0;var lr=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(lr>>>26)|0,lr&=67108863,R=Math.imul(Fe,ft),k=Math.imul(Fe,jt),k=k+Math.imul(ze,ft)|0,C=Math.imul(ze,jt),R=R+Math.imul(Ee,ht)|0,k=k+Math.imul(Ee,Dt)|0,k=k+Math.imul(Ie,ht)|0,C=C+Math.imul(Ie,Dt)|0,R=R+Math.imul(ee,wt)|0,k=k+Math.imul(ee,er)|0,k=k+Math.imul(se,wt)|0,C=C+Math.imul(se,er)|0,R=R+Math.imul(U,pt)|0,k=k+Math.imul(U,Gt)|0,k=k+Math.imul(ve,pt)|0,C=C+Math.imul(ve,Gt)|0,R=R+Math.imul(Y,xt)|0,k=k+Math.imul(Y,$t)|0,k=k+Math.imul(fe,xt)|0,C=C+Math.imul(fe,$t)|0,R=R+Math.imul(ie,mt)|0,k=k+Math.imul(ie,qt)|0,k=k+Math.imul(Q,mt)|0,C=C+Math.imul(Q,qt)|0;var rn=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(rn>>>26)|0,rn&=67108863,R=Math.imul(Fe,ht),k=Math.imul(Fe,Dt),k=k+Math.imul(ze,ht)|0,C=Math.imul(ze,Dt),R=R+Math.imul(Ee,wt)|0,k=k+Math.imul(Ee,er)|0,k=k+Math.imul(Ie,wt)|0,C=C+Math.imul(Ie,er)|0,R=R+Math.imul(ee,pt)|0,k=k+Math.imul(ee,Gt)|0,k=k+Math.imul(se,pt)|0,C=C+Math.imul(se,Gt)|0,R=R+Math.imul(U,xt)|0,k=k+Math.imul(U,$t)|0,k=k+Math.imul(ve,xt)|0,C=C+Math.imul(ve,$t)|0,R=R+Math.imul(Y,mt)|0,k=k+Math.imul(Y,qt)|0,k=k+Math.imul(fe,mt)|0,C=C+Math.imul(fe,qt)|0;var nn=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(nn>>>26)|0,nn&=67108863,R=Math.imul(Fe,wt),k=Math.imul(Fe,er),k=k+Math.imul(ze,wt)|0,C=Math.imul(ze,er),R=R+Math.imul(Ee,pt)|0,k=k+Math.imul(Ee,Gt)|0,k=k+Math.imul(Ie,pt)|0,C=C+Math.imul(Ie,Gt)|0,R=R+Math.imul(ee,xt)|0,k=k+Math.imul(ee,$t)|0,k=k+Math.imul(se,xt)|0,C=C+Math.imul(se,$t)|0,R=R+Math.imul(U,mt)|0,k=k+Math.imul(U,qt)|0,k=k+Math.imul(ve,mt)|0,C=C+Math.imul(ve,qt)|0;var ar=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(ar>>>26)|0,ar&=67108863,R=Math.imul(Fe,pt),k=Math.imul(Fe,Gt),k=k+Math.imul(ze,pt)|0,C=Math.imul(ze,Gt),R=R+Math.imul(Ee,xt)|0,k=k+Math.imul(Ee,$t)|0,k=k+Math.imul(Ie,xt)|0,C=C+Math.imul(Ie,$t)|0,R=R+Math.imul(ee,mt)|0,k=k+Math.imul(ee,qt)|0,k=k+Math.imul(se,mt)|0,C=C+Math.imul(se,qt)|0;var Xr=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,R=Math.imul(Fe,xt),k=Math.imul(Fe,$t),k=k+Math.imul(ze,xt)|0,C=Math.imul(ze,$t),R=R+Math.imul(Ee,mt)|0,k=k+Math.imul(Ee,qt)|0,k=k+Math.imul(Ie,mt)|0,C=C+Math.imul(Ie,qt)|0;var Wr=($+R|0)+((k&8191)<<13)|0;$=(C+(k>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul(Fe,mt),k=Math.imul(Fe,qt),k=k+Math.imul(ze,mt)|0,C=Math.imul(ze,qt);var Vr=($+R|0)+((k&8191)<<13)|0;return $=(C+(k>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,L[0]=St,L[1]=Tt,L[2]=be,L[3]=Ne,L[4]=Le,L[5]=Je,L[6]=at,L[7]=Mt,L[8]=rr,L[9]=vr,L[10]=Dr,L[11]=yr,L[12]=lr,L[13]=rn,L[14]=nn,L[15]=ar,L[16]=Xr,L[17]=Wr,L[18]=Vr,$!==0&&(L[19]=$,_.length++),_};Math.imul||(w=h);function y(H,M,T){T.negative=M.negative^H.negative,T.length=H.length+M.length;for(var _=0,A=0,P=0;P<T.length-1;P++){var L=A;A=0;for(var $=_&67108863,R=Math.min(P,M.length-1),k=Math.max(0,P-H.length+1);k<=R;k++){var C=P-k,O=H.words[C]|0,W=M.words[k]|0,ne=O*W,he=ne&67108863;L=L+(ne/67108864|0)|0,he=he+$|0,$=he&67108863,L=L+(he>>>26)|0,A+=L>>>26,L&=67108863}T.words[P]=$,_=L,L=A}return _!==0?T.words[P]=_:T.length--,T.strip()}function S(H,M,T){var _=new E;return _.mulp(H,M,T)}t.prototype.mulTo=function(M,T){var _,A=this.length+M.length;return this.length===10&&M.length===10?_=w(this,M,T):A<63?_=h(this,M,T):A<1024?_=y(this,M,T):_=S(this,M,T),_};function E(H,M){this.x=H,this.y=M}E.prototype.makeRBT=function(M){for(var T=new Array(M),_=t.prototype._countBits(M)-1,A=0;A<M;A++)T[A]=this.revBin(A,_,M);return T},E.prototype.revBin=function(M,T,_){if(M===0||M===_-1)return M;for(var A=0,P=0;P<T;P++)A|=(M&1)<<T-P-1,M>>=1;return A},E.prototype.permute=function(M,T,_,A,P,L){for(var $=0;$<L;$++)A[$]=T[M[$]],P[$]=_[M[$]]},E.prototype.transform=function(M,T,_,A,P,L){this.permute(L,M,T,_,A,P);for(var $=1;$<P;$<<=1)for(var R=$<<1,k=Math.cos(2*Math.PI/R),C=Math.sin(2*Math.PI/R),O=0;O<P;O+=R)for(var W=k,ne=C,he=0;he<$;he++){var ue=_[O+he],Ae=A[O+he],pe=_[O+he+$],te=A[O+he+$],Z=W*pe-ne*te;te=W*te+ne*pe,pe=Z,_[O+he]=ue+pe,A[O+he]=Ae+te,_[O+he+$]=ue-pe,A[O+he+$]=Ae-te,he!==R&&(Z=k*W-C*ne,ne=k*ne+C*W,W=Z)}},E.prototype.guessLen13b=function(M,T){var _=Math.max(T,M)|1,A=_&1,P=0;for(_=_/2|0;_;_=_>>>1)P++;return 1<<P+1+A},E.prototype.conjugate=function(M,T,_){if(!(_<=1))for(var A=0;A<_/2;A++){var P=M[A];M[A]=M[_-A-1],M[_-A-1]=P,P=T[A],T[A]=-T[_-A-1],T[_-A-1]=-P}},E.prototype.normalize13b=function(M,T){for(var _=0,A=0;A<T/2;A++){var P=Math.round(M[2*A+1]/T)*8192+Math.round(M[2*A]/T)+_;M[A]=P&67108863,P<67108864?_=0:_=P/67108864|0}return M},E.prototype.convert13b=function(M,T,_,A){for(var P=0,L=0;L<T;L++)P=P+(M[L]|0),_[2*L]=P&8191,P=P>>>13,_[2*L+1]=P&8191,P=P>>>13;for(L=2*T;L<A;++L)_[L]=0;u(P===0),u((P&-8192)===0)},E.prototype.stub=function(M){for(var T=new Array(M),_=0;_<M;_++)T[_]=0;return T},E.prototype.mulp=function(M,T,_){var A=2*this.guessLen13b(M.length,T.length),P=this.makeRBT(A),L=this.stub(A),$=new Array(A),R=new Array(A),k=new Array(A),C=new Array(A),O=new Array(A),W=new Array(A),ne=_.words;ne.length=A,this.convert13b(M.words,M.length,$,A),this.convert13b(T.words,T.length,C,A),this.transform($,L,R,k,A,P),this.transform(C,L,O,W,A,P);for(var he=0;he<A;he++){var ue=R[he]*O[he]-k[he]*W[he];k[he]=R[he]*W[he]+k[he]*O[he],R[he]=ue}return this.conjugate(R,k,A),this.transform(R,k,ne,L,A,P),this.conjugate(ne,L,A),this.normalize13b(ne,A),_.negative=M.negative^T.negative,_.length=M.length+T.length,_.strip()},t.prototype.mul=function(M){var T=new t(null);return T.words=new Array(this.length+M.length),this.mulTo(M,T)},t.prototype.mulf=function(M){var T=new t(null);return T.words=new Array(this.length+M.length),S(this,M,T)},t.prototype.imul=function(M){return this.clone().mulTo(M,this)},t.prototype.imuln=function(M){u(typeof M=="number"),u(M<67108864);for(var T=0,_=0;_<this.length;_++){var A=(this.words[_]|0)*M,P=(A&67108863)+(T&67108863);T>>=26,T+=A/67108864|0,T+=P>>>26,this.words[_]=P&67108863}return T!==0&&(this.words[_]=T,this.length++),this},t.prototype.muln=function(M){return this.clone().imuln(M)},t.prototype.sqr=function(){return this.mul(this)},t.prototype.isqr=function(){return this.imul(this.clone())},t.prototype.pow=function(M){var T=v(M);if(T.length===0)return new t(1);for(var _=this,A=0;A<T.length&&T[A]===0;A++,_=_.sqr());if(++A<T.length)for(var P=_.sqr();A<T.length;A++,P=P.sqr())T[A]!==0&&(_=_.mul(P));return _},t.prototype.iushln=function(M){u(typeof M=="number"&&M>=0);var T=M%26,_=(M-T)/26,A=67108863>>>26-T<<26-T,P;if(T!==0){var L=0;for(P=0;P<this.length;P++){var $=this.words[P]&A,R=(this.words[P]|0)-$<<T;this.words[P]=R|L,L=$>>>26-T}L&&(this.words[P]=L,this.length++)}if(_!==0){for(P=this.length-1;P>=0;P--)this.words[P+_]=this.words[P];for(P=0;P<_;P++)this.words[P]=0;this.length+=_}return this.strip()},t.prototype.ishln=function(M){return u(this.negative===0),this.iushln(M)},t.prototype.iushrn=function(M,T,_){u(typeof M=="number"&&M>=0);var A;T?A=(T-T%26)/26:A=0;var P=M%26,L=Math.min((M-P)/26,this.length),$=67108863^67108863>>>P<<P,R=_;if(A-=L,A=Math.max(0,A),R){for(var k=0;k<L;k++)R.words[k]=this.words[k];R.length=L}if(L!==0)if(this.length>L)for(this.length-=L,k=0;k<this.length;k++)this.words[k]=this.words[k+L];else this.words[0]=0,this.length=1;var C=0;for(k=this.length-1;k>=0&&(C!==0||k>=A);k--){var O=this.words[k]|0;this.words[k]=C<<26-P|O>>>P,C=O&$}return R&&C!==0&&(R.words[R.length++]=C),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},t.prototype.ishrn=function(M,T,_){return u(this.negative===0),this.iushrn(M,T,_)},t.prototype.shln=function(M){return this.clone().ishln(M)},t.prototype.ushln=function(M){return this.clone().iushln(M)},t.prototype.shrn=function(M){return this.clone().ishrn(M)},t.prototype.ushrn=function(M){return this.clone().iushrn(M)},t.prototype.testn=function(M){u(typeof M=="number"&&M>=0);var T=M%26,_=(M-T)/26,A=1<<T;if(this.length<=_)return!1;var P=this.words[_];return!!(P&A)},t.prototype.imaskn=function(M){u(typeof M=="number"&&M>=0);var T=M%26,_=(M-T)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=_)return this;if(T!==0&&_++,this.length=Math.min(_,this.length),T!==0){var A=67108863^67108863>>>T<<T;this.words[this.length-1]&=A}return this.strip()},t.prototype.maskn=function(M){return this.clone().imaskn(M)},t.prototype.iaddn=function(M){return u(typeof M=="number"),u(M<67108864),M<0?this.isubn(-M):this.negative!==0?this.length===1&&(this.words[0]|0)<M?(this.words[0]=M-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(M),this.negative=1,this):this._iaddn(M)},t.prototype._iaddn=function(M){this.words[0]+=M;for(var T=0;T<this.length&&this.words[T]>=67108864;T++)this.words[T]-=67108864,T===this.length-1?this.words[T+1]=1:this.words[T+1]++;return this.length=Math.max(this.length,T+1),this},t.prototype.isubn=function(M){if(u(typeof M=="number"),u(M<67108864),M<0)return this.iaddn(-M);if(this.negative!==0)return this.negative=0,this.iaddn(M),this.negative=1,this;if(this.words[0]-=M,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T=0;T<this.length&&this.words[T]<0;T++)this.words[T]+=67108864,this.words[T+1]-=1;return this.strip()},t.prototype.addn=function(M){return this.clone().iaddn(M)},t.prototype.subn=function(M){return this.clone().isubn(M)},t.prototype.iabs=function(){return this.negative=0,this},t.prototype.abs=function(){return this.clone().iabs()},t.prototype._ishlnsubmul=function(M,T,_){var A=M.length+_,P;this._expand(A);var L,$=0;for(P=0;P<M.length;P++){L=(this.words[P+_]|0)+$;var R=(M.words[P]|0)*T;L-=R&67108863,$=(L>>26)-(R/67108864|0),this.words[P+_]=L&67108863}for(;P<this.length-_;P++)L=(this.words[P+_]|0)+$,$=L>>26,this.words[P+_]=L&67108863;if($===0)return this.strip();for(u($===-1),$=0,P=0;P<this.length;P++)L=-(this.words[P]|0)+$,$=L>>26,this.words[P]=L&67108863;return this.negative=1,this.strip()},t.prototype._wordDiv=function(M,T){var _=this.length-M.length,A=this.clone(),P=M,L=P.words[P.length-1]|0,$=this._countBits(L);_=26-$,_!==0&&(P=P.ushln(_),A.iushln(_),L=P.words[P.length-1]|0);var R=A.length-P.length,k;if(T!=="mod"){k=new t(null),k.length=R+1,k.words=new Array(k.length);for(var C=0;C<k.length;C++)k.words[C]=0}var O=A.clone()._ishlnsubmul(P,1,R);O.negative===0&&(A=O,k&&(k.words[R]=1));for(var W=R-1;W>=0;W--){var ne=(A.words[P.length+W]|0)*67108864+(A.words[P.length+W-1]|0);for(ne=Math.min(ne/L|0,67108863),A._ishlnsubmul(P,ne,W);A.negative!==0;)ne--,A.negative=0,A._ishlnsubmul(P,1,W),A.isZero()||(A.negative^=1);k&&(k.words[W]=ne)}return k&&k.strip(),A.strip(),T!=="div"&&_!==0&&A.iushrn(_),{div:k||null,mod:A}},t.prototype.divmod=function(M,T,_){if(u(!M.isZero()),this.isZero())return{div:new t(0),mod:new t(0)};var A,P,L;return this.negative!==0&&M.negative===0?(L=this.neg().divmod(M,T),T!=="mod"&&(A=L.div.neg()),T!=="div"&&(P=L.mod.neg(),_&&P.negative!==0&&P.iadd(M)),{div:A,mod:P}):this.negative===0&&M.negative!==0?(L=this.divmod(M.neg(),T),T!=="mod"&&(A=L.div.neg()),{div:A,mod:L.mod}):this.negative&M.negative?(L=this.neg().divmod(M.neg(),T),T!=="div"&&(P=L.mod.neg(),_&&P.negative!==0&&P.isub(M)),{div:L.div,mod:P}):M.length>this.length||this.cmp(M)<0?{div:new t(0),mod:this}:M.length===1?T==="div"?{div:this.divn(M.words[0]),mod:null}:T==="mod"?{div:null,mod:new t(this.modn(M.words[0]))}:{div:this.divn(M.words[0]),mod:new t(this.modn(M.words[0]))}:this._wordDiv(M,T)},t.prototype.div=function(M){return this.divmod(M,"div",!1).div},t.prototype.mod=function(M){return this.divmod(M,"mod",!1).mod},t.prototype.umod=function(M){return this.divmod(M,"mod",!0).mod},t.prototype.divRound=function(M){var T=this.divmod(M);if(T.mod.isZero())return T.div;var _=T.div.negative!==0?T.mod.isub(M):T.mod,A=M.ushrn(1),P=M.andln(1),L=_.cmp(A);return L<0||P===1&&L===0?T.div:T.div.negative!==0?T.div.isubn(1):T.div.iaddn(1)},t.prototype.modn=function(M){u(M<=67108863);for(var T=(1<<26)%M,_=0,A=this.length-1;A>=0;A--)_=(T*_+(this.words[A]|0))%M;return _},t.prototype.idivn=function(M){u(M<=67108863);for(var T=0,_=this.length-1;_>=0;_--){var A=(this.words[_]|0)+T*67108864;this.words[_]=A/M|0,T=A%M}return this.strip()},t.prototype.divn=function(M){return this.clone().idivn(M)},t.prototype.egcd=function(M){u(M.negative===0),u(!M.isZero());var T=this,_=M.clone();T.negative!==0?T=T.umod(M):T=T.clone();for(var A=new t(1),P=new t(0),L=new t(0),$=new t(1),R=0;T.isEven()&&_.isEven();)T.iushrn(1),_.iushrn(1),++R;for(var k=_.clone(),C=T.clone();!T.isZero();){for(var O=0,W=1;!(T.words[0]&W)&&O<26;++O,W<<=1);if(O>0)for(T.iushrn(O);O-- >0;)(A.isOdd()||P.isOdd())&&(A.iadd(k),P.isub(C)),A.iushrn(1),P.iushrn(1);for(var ne=0,he=1;!(_.words[0]&he)&&ne<26;++ne,he<<=1);if(ne>0)for(_.iushrn(ne);ne-- >0;)(L.isOdd()||$.isOdd())&&(L.iadd(k),$.isub(C)),L.iushrn(1),$.iushrn(1);T.cmp(_)>=0?(T.isub(_),A.isub(L),P.isub($)):(_.isub(T),L.isub(A),$.isub(P))}return{a:L,b:$,gcd:_.iushln(R)}},t.prototype._invmp=function(M){u(M.negative===0),u(!M.isZero());var T=this,_=M.clone();T.negative!==0?T=T.umod(M):T=T.clone();for(var A=new t(1),P=new t(0),L=_.clone();T.cmpn(1)>0&&_.cmpn(1)>0;){for(var $=0,R=1;!(T.words[0]&R)&&$<26;++$,R<<=1);if($>0)for(T.iushrn($);$-- >0;)A.isOdd()&&A.iadd(L),A.iushrn(1);for(var k=0,C=1;!(_.words[0]&C)&&k<26;++k,C<<=1);if(k>0)for(_.iushrn(k);k-- >0;)P.isOdd()&&P.iadd(L),P.iushrn(1);T.cmp(_)>=0?(T.isub(_),A.isub(P)):(_.isub(T),P.isub(A))}var O;return T.cmpn(1)===0?O=A:O=P,O.cmpn(0)<0&&O.iadd(M),O},t.prototype.gcd=function(M){if(this.isZero())return M.abs();if(M.isZero())return this.abs();var T=this.clone(),_=M.clone();T.negative=0,_.negative=0;for(var A=0;T.isEven()&&_.isEven();A++)T.iushrn(1),_.iushrn(1);do{for(;T.isEven();)T.iushrn(1);for(;_.isEven();)_.iushrn(1);var P=T.cmp(_);if(P<0){var L=T;T=_,_=L}else if(P===0||_.cmpn(1)===0)break;T.isub(_)}while(!0);return _.iushln(A)},t.prototype.invm=function(M){return this.egcd(M).a.umod(M)},t.prototype.isEven=function(){return(this.words[0]&1)===0},t.prototype.isOdd=function(){return(this.words[0]&1)===1},t.prototype.andln=function(M){return this.words[0]&M},t.prototype.bincn=function(M){u(typeof M=="number");var T=M%26,_=(M-T)/26,A=1<<T;if(this.length<=_)return this._expand(_+1),this.words[_]|=A,this;for(var P=A,L=_;P!==0&&L<this.length;L++){var $=this.words[L]|0;$+=P,P=$>>>26,$&=67108863,this.words[L]=$}return P!==0&&(this.words[L]=P,this.length++),this},t.prototype.isZero=function(){return this.length===1&&this.words[0]===0},t.prototype.cmpn=function(M){var T=M<0;if(this.negative!==0&&!T)return-1;if(this.negative===0&&T)return 1;this.strip();var _;if(this.length>1)_=1;else{T&&(M=-M),u(M<=67108863,"Number is too big");var A=this.words[0]|0;_=A===M?0:A<M?-1:1}return this.negative!==0?-_|0:_},t.prototype.cmp=function(M){if(this.negative!==0&&M.negative===0)return-1;if(this.negative===0&&M.negative!==0)return 1;var T=this.ucmp(M);return this.negative!==0?-T|0:T},t.prototype.ucmp=function(M){if(this.length>M.length)return 1;if(this.length<M.length)return-1;for(var T=0,_=this.length-1;_>=0;_--){var A=this.words[_]|0,P=M.words[_]|0;if(A!==P){A<P?T=-1:A>P&&(T=1);break}}return T},t.prototype.gtn=function(M){return this.cmpn(M)===1},t.prototype.gt=function(M){return this.cmp(M)===1},t.prototype.gten=function(M){return this.cmpn(M)>=0},t.prototype.gte=function(M){return this.cmp(M)>=0},t.prototype.ltn=function(M){return this.cmpn(M)===-1},t.prototype.lt=function(M){return this.cmp(M)===-1},t.prototype.lten=function(M){return this.cmpn(M)<=0},t.prototype.lte=function(M){return this.cmp(M)<=0},t.prototype.eqn=function(M){return this.cmpn(M)===0},t.prototype.eq=function(M){return this.cmp(M)===0},t.red=function(M){return new V(M)},t.prototype.toRed=function(M){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),M.convertTo(this)._forceRed(M)},t.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},t.prototype._forceRed=function(M){return this.red=M,this},t.prototype.forceRed=function(M){return u(!this.red,"Already a number in reduction context"),this._forceRed(M)},t.prototype.redAdd=function(M){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,M)},t.prototype.redIAdd=function(M){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,M)},t.prototype.redSub=function(M){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,M)},t.prototype.redISub=function(M){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,M)},t.prototype.redShl=function(M){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,M)},t.prototype.redMul=function(M){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,M),this.red.mul(this,M)},t.prototype.redIMul=function(M){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,M),this.red.imul(this,M)},t.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},t.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},t.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},t.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},t.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},t.prototype.redPow=function(M){return u(this.red&&!M.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,M)};var I={k256:null,p224:null,p192:null,p25519:null};function F(H,M){this.name=H,this.p=new t(M,16),this.n=this.p.bitLength(),this.k=new t(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var M=new t(null);return M.words=new Array(Math.ceil(this.n/13)),M},F.prototype.ireduce=function(M){var T=M,_;do this.split(T,this.tmp),T=this.imulK(T),T=T.iadd(this.tmp),_=T.bitLength();while(_>this.n);var A=_<this.n?-1:T.ucmp(this.p);return A===0?(T.words[0]=0,T.length=1):A>0?T.isub(this.p):T.strip!==void 0?T.strip():T._strip(),T},F.prototype.split=function(M,T){M.iushrn(this.n,0,T)},F.prototype.imulK=function(M){return M.imul(this.k)};function B(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(B,F),B.prototype.split=function(M,T){for(var _=4194303,A=Math.min(M.length,9),P=0;P<A;P++)T.words[P]=M.words[P];if(T.length=A,M.length<=9){M.words[0]=0,M.length=1;return}var L=M.words[9];for(T.words[T.length++]=L&_,P=10;P<M.length;P++){var $=M.words[P]|0;M.words[P-10]=($&_)<<4|L>>>22,L=$}L>>>=22,M.words[P-10]=L,L===0&&M.length>10?M.length-=10:M.length-=9},B.prototype.imulK=function(M){M.words[M.length]=0,M.words[M.length+1]=0,M.length+=2;for(var T=0,_=0;_<M.length;_++){var A=M.words[_]|0;T+=A*977,M.words[_]=T&67108863,T=A*64+(T/67108864|0)}return M.words[M.length-1]===0&&(M.length--,M.words[M.length-1]===0&&M.length--),M};function j(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}s(j,F);function X(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}s(X,F);function G(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}s(G,F),G.prototype.imulK=function(M){for(var T=0,_=0;_<M.length;_++){var A=(M.words[_]|0)*19+T,P=A&67108863;A>>>=26,M.words[_]=P,T=A}return T!==0&&(M.words[M.length++]=T),M},t._prime=function(M){if(I[M])return I[M];var T;if(M==="k256")T=new B;else if(M==="p224")T=new j;else if(M==="p192")T=new X;else if(M==="p25519")T=new G;else throw new Error("Unknown prime "+M);return I[M]=T,T};function V(H){if(typeof H=="string"){var M=t._prime(H);this.m=M.p,this.prime=M}else u(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}V.prototype._verify1=function(M){u(M.negative===0,"red works only with positives"),u(M.red,"red works only with red numbers")},V.prototype._verify2=function(M,T){u((M.negative|T.negative)===0,"red works only with positives"),u(M.red&&M.red===T.red,"red works only with red numbers")},V.prototype.imod=function(M){return this.prime?this.prime.ireduce(M)._forceRed(this):M.umod(this.m)._forceRed(this)},V.prototype.neg=function(M){return M.isZero()?M.clone():this.m.sub(M)._forceRed(this)},V.prototype.add=function(M,T){this._verify2(M,T);var _=M.add(T);return _.cmp(this.m)>=0&&_.isub(this.m),_._forceRed(this)},V.prototype.iadd=function(M,T){this._verify2(M,T);var _=M.iadd(T);return _.cmp(this.m)>=0&&_.isub(this.m),_},V.prototype.sub=function(M,T){this._verify2(M,T);var _=M.sub(T);return _.cmpn(0)<0&&_.iadd(this.m),_._forceRed(this)},V.prototype.isub=function(M,T){this._verify2(M,T);var _=M.isub(T);return _.cmpn(0)<0&&_.iadd(this.m),_},V.prototype.shl=function(M,T){return this._verify1(M),this.imod(M.ushln(T))},V.prototype.imul=function(M,T){return this._verify2(M,T),this.imod(M.imul(T))},V.prototype.mul=function(M,T){return this._verify2(M,T),this.imod(M.mul(T))},V.prototype.isqr=function(M){return this.imul(M,M.clone())},V.prototype.sqr=function(M){return this.mul(M,M)},V.prototype.sqrt=function(M){if(M.isZero())return M.clone();var T=this.m.andln(3);if(u(T%2===1),T===3){var _=this.m.add(new t(1)).iushrn(2);return this.pow(M,_)}for(var A=this.m.subn(1),P=0;!A.isZero()&&A.andln(1)===0;)P++,A.iushrn(1);u(!A.isZero());var L=new t(1).toRed(this),$=L.redNeg(),R=this.m.subn(1).iushrn(1),k=this.m.bitLength();for(k=new t(2*k*k).toRed(this);this.pow(k,R).cmp($)!==0;)k.redIAdd($);for(var C=this.pow(k,A),O=this.pow(M,A.addn(1).iushrn(1)),W=this.pow(M,A),ne=P;W.cmp(L)!==0;){for(var he=W,ue=0;he.cmp(L)!==0;ue++)he=he.redSqr();u(ue<ne);var Ae=this.pow(C,new t(1).iushln(ne-ue-1));O=O.redMul(Ae),C=Ae.redSqr(),W=W.redMul(C),ne=ue}return O},V.prototype.invm=function(M){var T=M._invmp(this.m);return T.negative!==0?(T.negative=0,this.imod(T).redNeg()):this.imod(T)},V.prototype.pow=function(M,T){if(T.isZero())return new t(1).toRed(this);if(T.cmpn(1)===0)return M.clone();var _=4,A=new Array(1<<_);A[0]=new t(1).toRed(this),A[1]=M;for(var P=2;P<A.length;P++)A[P]=this.mul(A[P-1],M);var L=A[0],$=0,R=0,k=T.bitLength()%26;for(k===0&&(k=26),P=T.length-1;P>=0;P--){for(var C=T.words[P],O=k-1;O>=0;O--){var W=C>>O&1;if(L!==A[0]&&(L=this.sqr(L)),W===0&&$===0){R=0;continue}$<<=1,$|=W,R++,!(R!==_&&(P!==0||O!==0))&&(L=this.mul(L,A[$]),R=0,$=0)}k=26}return L},V.prototype.convertTo=function(M){var T=M.umod(this.m);return T===M?T.clone():T},V.prototype.convertFrom=function(M){var T=M.clone();return T.red=null,T},t.mont=function(M){return new J(M)};function J(H){V.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new t(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)}s(J,V),J.prototype.convertTo=function(M){return this.imod(M.ushln(this.shift))},J.prototype.convertFrom=function(M){var T=this.imod(M.mul(this.rinv));return T.red=null,T},J.prototype.imul=function(M,T){if(M.isZero()||T.isZero())return M.words[0]=0,M.length=1,M;var _=M.imul(T),A=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=_.isub(A).iushrn(this.shift),L=P;return P.cmp(this.m)>=0?L=P.isub(this.m):P.cmpn(0)<0&&(L=P.iadd(this.m)),L._forceRed(this)},J.prototype.mul=function(M,T){if(M.isZero()||T.isZero())return new t(0)._forceRed(this);var _=M.mul(T),A=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=_.isub(A).iushrn(this.shift),L=P;return P.cmp(this.m)>=0?L=P.isub(this.m):P.cmpn(0)<0&&(L=P.iadd(this.m)),L._forceRed(this)},J.prototype.invm=function(M){var T=this.imod(M._invmp(this.m).mul(this.r2));return T._forceRed(this)}})(typeof d>"u"||d,void 0)},{buffer:188}],185:[function(e,d,m){m.byteLength=i,m.toByteArray=l,m.fromByteArray=v;for(var f=[],c=[],u=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=s.length;t<n;++t)f[t]=s[t],c[s.charCodeAt(t)]=t;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function r(h){var w=h.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=h.indexOf("=");y===-1&&(y=w);var S=y===w?0:4-y%4;return[y,S]}function i(h){var w=r(h),y=w[0],S=w[1];return(y+S)*3/4-S}function o(h,w,y){return(w+y)*3/4-y}function l(h){var w,y=r(h),S=y[0],E=y[1],I=new u(o(h,S,E)),F=0,B=E>0?S-4:S,j;for(j=0;j<B;j+=4)w=c[h.charCodeAt(j)]<<18|c[h.charCodeAt(j+1)]<<12|c[h.charCodeAt(j+2)]<<6|c[h.charCodeAt(j+3)],I[F++]=w>>16&255,I[F++]=w>>8&255,I[F++]=w&255;return E===2&&(w=c[h.charCodeAt(j)]<<2|c[h.charCodeAt(j+1)]>>4,I[F++]=w&255),E===1&&(w=c[h.charCodeAt(j)]<<10|c[h.charCodeAt(j+1)]<<4|c[h.charCodeAt(j+2)]>>2,I[F++]=w>>8&255,I[F++]=w&255),I}function a(h){return f[h>>18&63]+f[h>>12&63]+f[h>>6&63]+f[h&63]}function g(h,w,y){for(var S,E=[],I=w;I<y;I+=3)S=(h[I]<<16&16711680)+(h[I+1]<<8&65280)+(h[I+2]&255),E.push(a(S));return E.join("")}function v(h){for(var w,y=h.length,S=y%3,E=[],I=16383,F=0,B=y-S;F<B;F+=I)E.push(g(h,F,F+I>B?B:F+I));return S===1?(w=h[y-1],E.push(f[w>>2]+f[w<<4&63]+"==")):S===2&&(w=(h[y-2]<<8)+h[y-1],E.push(f[w>>10]+f[w>>4&63]+f[w<<2&63]+"=")),E.join("")}},{}],186:[function(e,d,m){(function(f,c){function u(T,_){if(!T)throw new Error(_||"Assertion failed")}function s(T,_){T.super_=_;var A=function(){};A.prototype=_.prototype,T.prototype=new A,T.prototype.constructor=T}function t(T,_,A){if(t.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((_==="le"||_==="be")&&(A=_,_=10),this._init(T||0,_||10,A||"be"))}typeof f=="object"?f.exports=t:c.BN=t,t.BN=t,t.wordSize=26;var n;try{typeof window<"u"&&typeof window.Buffer<"u"?n=window.Buffer:n=e("buffer").Buffer}catch{}t.isBN=function(_){return _ instanceof t?!0:_!==null&&typeof _=="object"&&_.constructor.wordSize===t.wordSize&&Array.isArray(_.words)},t.max=function(_,A){return _.cmp(A)>0?_:A},t.min=function(_,A){return _.cmp(A)<0?_:A},t.prototype._init=function(_,A,P){if(typeof _=="number")return this._initNumber(_,A,P);if(typeof _=="object")return this._initArray(_,A,P);A==="hex"&&(A=16),u(A===(A|0)&&A>=2&&A<=36),_=_.toString().replace(/\s+/g,"");var L=0;_[0]==="-"&&(L++,this.negative=1),L<_.length&&(A===16?this._parseHex(_,L,P):(this._parseBase(_,A,L),P==="le"&&this._initArray(this.toArray(),A,P)))},t.prototype._initNumber=function(_,A,P){_<0&&(this.negative=1,_=-_),_<67108864?(this.words=[_&67108863],this.length=1):_<4503599627370496?(this.words=[_&67108863,_/67108864&67108863],this.length=2):(u(_<9007199254740992),this.words=[_&67108863,_/67108864&67108863,1],this.length=3),P==="le"&&this._initArray(this.toArray(),A,P)},t.prototype._initArray=function(_,A,P){if(u(typeof _.length=="number"),_.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(_.length/3),this.words=new Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var $,R,k=0;if(P==="be")for(L=_.length-1,$=0;L>=0;L-=3)R=_[L]|_[L-1]<<8|_[L-2]<<16,this.words[$]|=R<<k&67108863,this.words[$+1]=R>>>26-k&67108863,k+=24,k>=26&&(k-=26,$++);else if(P==="le")for(L=0,$=0;L<_.length;L+=3)R=_[L]|_[L+1]<<8|_[L+2]<<16,this.words[$]|=R<<k&67108863,this.words[$+1]=R>>>26-k&67108863,k+=24,k>=26&&(k-=26,$++);return this._strip()};function r(T,_){var A=T.charCodeAt(_);if(A>=48&&A<=57)return A-48;if(A>=65&&A<=70)return A-55;if(A>=97&&A<=102)return A-87;u(!1,"Invalid character in "+T)}function i(T,_,A){var P=r(T,A);return A-1>=_&&(P|=r(T,A-1)<<4),P}t.prototype._parseHex=function(_,A,P){this.length=Math.ceil((_.length-A)/6),this.words=new Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var $=0,R=0,k;if(P==="be")for(L=_.length-1;L>=A;L-=2)k=i(_,A,L)<<$,this.words[R]|=k&67108863,$>=18?($-=18,R+=1,this.words[R]|=k>>>26):$+=8;else{var C=_.length-A;for(L=C%2===0?A+1:A;L<_.length;L+=2)k=i(_,A,L)<<$,this.words[R]|=k&67108863,$>=18?($-=18,R+=1,this.words[R]|=k>>>26):$+=8}this._strip()};function o(T,_,A,P){for(var L=0,$=0,R=Math.min(T.length,A),k=_;k<R;k++){var C=T.charCodeAt(k)-48;L*=P,C>=49?$=C-49+10:C>=17?$=C-17+10:$=C,u(C>=0&&$<P,"Invalid character"),L+=$}return L}t.prototype._parseBase=function(_,A,P){this.words=[0],this.length=1;for(var L=0,$=1;$<=67108863;$*=A)L++;L--,$=$/A|0;for(var R=_.length-P,k=R%L,C=Math.min(R,R-k)+P,O=0,W=P;W<C;W+=L)O=o(_,W,W+L,A),this.imuln($),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O);if(k!==0){var ne=1;for(O=o(_,W,_.length,A),W=0;W<k;W++)ne*=A;this.imuln(ne),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O)}this._strip()},t.prototype.copy=function(_){_.words=new Array(this.length);for(var A=0;A<this.length;A++)_.words[A]=this.words[A];_.length=this.length,_.negative=this.negative,_.red=this.red};function l(T,_){T.words=_.words,T.length=_.length,T.negative=_.negative,T.red=_.red}if(t.prototype._move=function(_){l(_,this)},t.prototype.clone=function(){var _=new t(null);return this.copy(_),_},t.prototype._expand=function(_){for(;this.length<_;)this.words[this.length++]=0;return this},t.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},t.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{t.prototype[Symbol.for("nodejs.util.inspect.custom")]=a}catch{t.prototype.inspect=a}else t.prototype.inspect=a;function a(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var g=["","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"],v=[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],h=[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];t.prototype.toString=function(_,A){_=_||10,A=A|0||1;var P;if(_===16||_==="hex"){P="";for(var L=0,$=0,R=0;R<this.length;R++){var k=this.words[R],C=((k<<L|$)&16777215).toString(16);$=k>>>24-L&16777215,L+=2,L>=26&&(L-=26,R--),$!==0||R!==this.length-1?P=g[6-C.length]+C+P:P=C+P}for($!==0&&(P=$.toString(16)+P);P.length%A!==0;)P="0"+P;return this.negative!==0&&(P="-"+P),P}if(_===(_|0)&&_>=2&&_<=36){var O=v[_],W=h[_];P="";var ne=this.clone();for(ne.negative=0;!ne.isZero();){var he=ne.modrn(W).toString(_);ne=ne.idivn(W),ne.isZero()?P=he+P:P=g[O-he.length]+he+P}for(this.isZero()&&(P="0"+P);P.length%A!==0;)P="0"+P;return this.negative!==0&&(P="-"+P),P}u(!1,"Base should be between 2 and 36")},t.prototype.toNumber=function(){var _=this.words[0];return this.length===2?_+=this.words[1]*67108864:this.length===3&&this.words[2]===1?_+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-_:_},t.prototype.toJSON=function(){return this.toString(16,2)},n&&(t.prototype.toBuffer=function(_,A){return this.toArrayLike(n,_,A)}),t.prototype.toArray=function(_,A){return this.toArrayLike(Array,_,A)};var w=function(_,A){return _.allocUnsafe?_.allocUnsafe(A):new _(A)};t.prototype.toArrayLike=function(_,A,P){this._strip();var L=this.byteLength(),$=P||Math.max(1,L);u(L<=$,"byte array longer than desired length"),u($>0,"Requested array length <= 0");var R=w(_,$),k=A==="le"?"LE":"BE";return this["_toArrayLike"+k](R,L),R},t.prototype._toArrayLikeLE=function(_,A){for(var P=0,L=0,$=0,R=0;$<this.length;$++){var k=this.words[$]<<R|L;_[P++]=k&255,P<_.length&&(_[P++]=k>>8&255),P<_.length&&(_[P++]=k>>16&255),R===6?(P<_.length&&(_[P++]=k>>24&255),L=0,R=0):(L=k>>>24,R+=2)}if(P<_.length)for(_[P++]=L;P<_.length;)_[P++]=0},t.prototype._toArrayLikeBE=function(_,A){for(var P=_.length-1,L=0,$=0,R=0;$<this.length;$++){var k=this.words[$]<<R|L;_[P--]=k&255,P>=0&&(_[P--]=k>>8&255),P>=0&&(_[P--]=k>>16&255),R===6?(P>=0&&(_[P--]=k>>24&255),L=0,R=0):(L=k>>>24,R+=2)}if(P>=0)for(_[P--]=L;P>=0;)_[P--]=0},Math.clz32?t.prototype._countBits=function(_){return 32-Math.clz32(_)}:t.prototype._countBits=function(_){var A=_,P=0;return A>=4096&&(P+=13,A>>>=13),A>=64&&(P+=7,A>>>=7),A>=8&&(P+=4,A>>>=4),A>=2&&(P+=2,A>>>=2),P+A},t.prototype._zeroBits=function(_){if(_===0)return 26;var A=_,P=0;return A&8191||(P+=13,A>>>=13),A&127||(P+=7,A>>>=7),A&15||(P+=4,A>>>=4),A&3||(P+=2,A>>>=2),A&1||P++,P},t.prototype.bitLength=function(){var _=this.words[this.length-1],A=this._countBits(_);return(this.length-1)*26+A};function y(T){for(var _=new Array(T.bitLength()),A=0;A<_.length;A++){var P=A/26|0,L=A%26;_[A]=T.words[P]>>>L&1}return _}t.prototype.zeroBits=function(){if(this.isZero())return 0;for(var _=0,A=0;A<this.length;A++){var P=this._zeroBits(this.words[A]);if(_+=P,P!==26)break}return _},t.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},t.prototype.toTwos=function(_){return this.negative!==0?this.abs().inotn(_).iaddn(1):this.clone()},t.prototype.fromTwos=function(_){return this.testn(_-1)?this.notn(_).iaddn(1).ineg():this.clone()},t.prototype.isNeg=function(){return this.negative!==0},t.prototype.neg=function(){return this.clone().ineg()},t.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},t.prototype.iuor=function(_){for(;this.length<_.length;)this.words[this.length++]=0;for(var A=0;A<_.length;A++)this.words[A]=this.words[A]|_.words[A];return this._strip()},t.prototype.ior=function(_){return u((this.negative|_.negative)===0),this.iuor(_)},t.prototype.or=function(_){return this.length>_.length?this.clone().ior(_):_.clone().ior(this)},t.prototype.uor=function(_){return this.length>_.length?this.clone().iuor(_):_.clone().iuor(this)},t.prototype.iuand=function(_){var A;this.length>_.length?A=_:A=this;for(var P=0;P<A.length;P++)this.words[P]=this.words[P]&_.words[P];return this.length=A.length,this._strip()},t.prototype.iand=function(_){return u((this.negative|_.negative)===0),this.iuand(_)},t.prototype.and=function(_){return this.length>_.length?this.clone().iand(_):_.clone().iand(this)},t.prototype.uand=function(_){return this.length>_.length?this.clone().iuand(_):_.clone().iuand(this)},t.prototype.iuxor=function(_){var A,P;this.length>_.length?(A=this,P=_):(A=_,P=this);for(var L=0;L<P.length;L++)this.words[L]=A.words[L]^P.words[L];if(this!==A)for(;L<A.length;L++)this.words[L]=A.words[L];return this.length=A.length,this._strip()},t.prototype.ixor=function(_){return u((this.negative|_.negative)===0),this.iuxor(_)},t.prototype.xor=function(_){return this.length>_.length?this.clone().ixor(_):_.clone().ixor(this)},t.prototype.uxor=function(_){return this.length>_.length?this.clone().iuxor(_):_.clone().iuxor(this)},t.prototype.inotn=function(_){u(typeof _=="number"&&_>=0);var A=Math.ceil(_/26)|0,P=_%26;this._expand(A),P>0&&A--;for(var L=0;L<A;L++)this.words[L]=~this.words[L]&67108863;return P>0&&(this.words[L]=~this.words[L]&67108863>>26-P),this._strip()},t.prototype.notn=function(_){return this.clone().inotn(_)},t.prototype.setn=function(_,A){u(typeof _=="number"&&_>=0);var P=_/26|0,L=_%26;return this._expand(P+1),A?this.words[P]=this.words[P]|1<<L:this.words[P]=this.words[P]&~(1<<L),this._strip()},t.prototype.iadd=function(_){var A;if(this.negative!==0&&_.negative===0)return this.negative=0,A=this.isub(_),this.negative^=1,this._normSign();if(this.negative===0&&_.negative!==0)return _.negative=0,A=this.isub(_),_.negative=1,A._normSign();var P,L;this.length>_.length?(P=this,L=_):(P=_,L=this);for(var $=0,R=0;R<L.length;R++)A=(P.words[R]|0)+(L.words[R]|0)+$,this.words[R]=A&67108863,$=A>>>26;for(;$!==0&&R<P.length;R++)A=(P.words[R]|0)+$,this.words[R]=A&67108863,$=A>>>26;if(this.length=P.length,$!==0)this.words[this.length]=$,this.length++;else if(P!==this)for(;R<P.length;R++)this.words[R]=P.words[R];return this},t.prototype.add=function(_){var A;return _.negative!==0&&this.negative===0?(_.negative=0,A=this.sub(_),_.negative^=1,A):_.negative===0&&this.negative!==0?(this.negative=0,A=_.sub(this),this.negative=1,A):this.length>_.length?this.clone().iadd(_):_.clone().iadd(this)},t.prototype.isub=function(_){if(_.negative!==0){_.negative=0;var A=this.iadd(_);return _.negative=1,A._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(_),this.negative=1,this._normSign();var P=this.cmp(_);if(P===0)return this.negative=0,this.length=1,this.words[0]=0,this;var L,$;P>0?(L=this,$=_):(L=_,$=this);for(var R=0,k=0;k<$.length;k++)A=(L.words[k]|0)-($.words[k]|0)+R,R=A>>26,this.words[k]=A&67108863;for(;R!==0&&k<L.length;k++)A=(L.words[k]|0)+R,R=A>>26,this.words[k]=A&67108863;if(R===0&&k<L.length&&L!==this)for(;k<L.length;k++)this.words[k]=L.words[k];return this.length=Math.max(this.length,k),L!==this&&(this.negative=1),this._strip()},t.prototype.sub=function(_){return this.clone().isub(_)};function S(T,_,A){A.negative=_.negative^T.negative;var P=T.length+_.length|0;A.length=P,P=P-1|0;var L=T.words[0]|0,$=_.words[0]|0,R=L*$,k=R&67108863,C=R/67108864|0;A.words[0]=k;for(var O=1;O<P;O++){for(var W=C>>>26,ne=C&67108863,he=Math.min(O,_.length-1),ue=Math.max(0,O-T.length+1);ue<=he;ue++){var Ae=O-ue|0;L=T.words[Ae]|0,$=_.words[ue]|0,R=L*$+ne,W+=R/67108864|0,ne=R&67108863}A.words[O]=ne|0,C=W|0}return C!==0?A.words[O]=C|0:A.length--,A._strip()}var E=function(_,A,P){var L=_.words,$=A.words,R=P.words,k=0,C,O,W,ne=L[0]|0,he=ne&8191,ue=ne>>>13,Ae=L[1]|0,pe=Ae&8191,te=Ae>>>13,Z=L[2]|0,q=Z&8191,de=Z>>>13,ke=L[3]|0,oe=ke&8191,ie=ke>>>13,Q=L[4]|0,z=Q&8191,Y=Q>>>13,fe=L[5]|0,we=fe&8191,U=fe>>>13,ve=L[6]|0,Se=ve&8191,ee=ve>>>13,se=L[7]|0,me=se&8191,Ee=se>>>13,Ie=L[8]|0,Ce=Ie&8191,Fe=Ie>>>13,ze=L[9]|0,je=ze&8191,ge=ze>>>13,Me=$[0]|0,Be=Me&8191,Xe=Me>>>13,ot=$[1]|0,ct=ot&8191,st=ot>>>13,rt=$[2]|0,bt=rt&8191,Qe=rt>>>13,et=$[3]|0,_t=et&8191,ft=et>>>13,jt=$[4]|0,It=jt&8191,ht=jt>>>13,Dt=$[5]|0,Ut=Dt&8191,wt=Dt>>>13,er=$[6]|0,Kt=er&8191,pt=er>>>13,Gt=$[7]|0,kt=Gt&8191,xt=Gt>>>13,$t=$[8]|0,Qt=$t&8191,mt=$t>>>13,qt=$[9]|0,St=qt&8191,Tt=qt>>>13;P.negative=_.negative^A.negative,P.length=19,C=Math.imul(he,Be),O=Math.imul(he,Xe),O=O+Math.imul(ue,Be)|0,W=Math.imul(ue,Xe);var be=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(be>>>26)|0,be&=67108863,C=Math.imul(pe,Be),O=Math.imul(pe,Xe),O=O+Math.imul(te,Be)|0,W=Math.imul(te,Xe),C=C+Math.imul(he,ct)|0,O=O+Math.imul(he,st)|0,O=O+Math.imul(ue,ct)|0,W=W+Math.imul(ue,st)|0;var Ne=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,C=Math.imul(q,Be),O=Math.imul(q,Xe),O=O+Math.imul(de,Be)|0,W=Math.imul(de,Xe),C=C+Math.imul(pe,ct)|0,O=O+Math.imul(pe,st)|0,O=O+Math.imul(te,ct)|0,W=W+Math.imul(te,st)|0,C=C+Math.imul(he,bt)|0,O=O+Math.imul(he,Qe)|0,O=O+Math.imul(ue,bt)|0,W=W+Math.imul(ue,Qe)|0;var Le=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(Le>>>26)|0,Le&=67108863,C=Math.imul(oe,Be),O=Math.imul(oe,Xe),O=O+Math.imul(ie,Be)|0,W=Math.imul(ie,Xe),C=C+Math.imul(q,ct)|0,O=O+Math.imul(q,st)|0,O=O+Math.imul(de,ct)|0,W=W+Math.imul(de,st)|0,C=C+Math.imul(pe,bt)|0,O=O+Math.imul(pe,Qe)|0,O=O+Math.imul(te,bt)|0,W=W+Math.imul(te,Qe)|0,C=C+Math.imul(he,_t)|0,O=O+Math.imul(he,ft)|0,O=O+Math.imul(ue,_t)|0,W=W+Math.imul(ue,ft)|0;var Je=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(Je>>>26)|0,Je&=67108863,C=Math.imul(z,Be),O=Math.imul(z,Xe),O=O+Math.imul(Y,Be)|0,W=Math.imul(Y,Xe),C=C+Math.imul(oe,ct)|0,O=O+Math.imul(oe,st)|0,O=O+Math.imul(ie,ct)|0,W=W+Math.imul(ie,st)|0,C=C+Math.imul(q,bt)|0,O=O+Math.imul(q,Qe)|0,O=O+Math.imul(de,bt)|0,W=W+Math.imul(de,Qe)|0,C=C+Math.imul(pe,_t)|0,O=O+Math.imul(pe,ft)|0,O=O+Math.imul(te,_t)|0,W=W+Math.imul(te,ft)|0,C=C+Math.imul(he,It)|0,O=O+Math.imul(he,ht)|0,O=O+Math.imul(ue,It)|0,W=W+Math.imul(ue,ht)|0;var at=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(at>>>26)|0,at&=67108863,C=Math.imul(we,Be),O=Math.imul(we,Xe),O=O+Math.imul(U,Be)|0,W=Math.imul(U,Xe),C=C+Math.imul(z,ct)|0,O=O+Math.imul(z,st)|0,O=O+Math.imul(Y,ct)|0,W=W+Math.imul(Y,st)|0,C=C+Math.imul(oe,bt)|0,O=O+Math.imul(oe,Qe)|0,O=O+Math.imul(ie,bt)|0,W=W+Math.imul(ie,Qe)|0,C=C+Math.imul(q,_t)|0,O=O+Math.imul(q,ft)|0,O=O+Math.imul(de,_t)|0,W=W+Math.imul(de,ft)|0,C=C+Math.imul(pe,It)|0,O=O+Math.imul(pe,ht)|0,O=O+Math.imul(te,It)|0,W=W+Math.imul(te,ht)|0,C=C+Math.imul(he,Ut)|0,O=O+Math.imul(he,wt)|0,O=O+Math.imul(ue,Ut)|0,W=W+Math.imul(ue,wt)|0;var Mt=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,C=Math.imul(Se,Be),O=Math.imul(Se,Xe),O=O+Math.imul(ee,Be)|0,W=Math.imul(ee,Xe),C=C+Math.imul(we,ct)|0,O=O+Math.imul(we,st)|0,O=O+Math.imul(U,ct)|0,W=W+Math.imul(U,st)|0,C=C+Math.imul(z,bt)|0,O=O+Math.imul(z,Qe)|0,O=O+Math.imul(Y,bt)|0,W=W+Math.imul(Y,Qe)|0,C=C+Math.imul(oe,_t)|0,O=O+Math.imul(oe,ft)|0,O=O+Math.imul(ie,_t)|0,W=W+Math.imul(ie,ft)|0,C=C+Math.imul(q,It)|0,O=O+Math.imul(q,ht)|0,O=O+Math.imul(de,It)|0,W=W+Math.imul(de,ht)|0,C=C+Math.imul(pe,Ut)|0,O=O+Math.imul(pe,wt)|0,O=O+Math.imul(te,Ut)|0,W=W+Math.imul(te,wt)|0,C=C+Math.imul(he,Kt)|0,O=O+Math.imul(he,pt)|0,O=O+Math.imul(ue,Kt)|0,W=W+Math.imul(ue,pt)|0;var rr=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(rr>>>26)|0,rr&=67108863,C=Math.imul(me,Be),O=Math.imul(me,Xe),O=O+Math.imul(Ee,Be)|0,W=Math.imul(Ee,Xe),C=C+Math.imul(Se,ct)|0,O=O+Math.imul(Se,st)|0,O=O+Math.imul(ee,ct)|0,W=W+Math.imul(ee,st)|0,C=C+Math.imul(we,bt)|0,O=O+Math.imul(we,Qe)|0,O=O+Math.imul(U,bt)|0,W=W+Math.imul(U,Qe)|0,C=C+Math.imul(z,_t)|0,O=O+Math.imul(z,ft)|0,O=O+Math.imul(Y,_t)|0,W=W+Math.imul(Y,ft)|0,C=C+Math.imul(oe,It)|0,O=O+Math.imul(oe,ht)|0,O=O+Math.imul(ie,It)|0,W=W+Math.imul(ie,ht)|0,C=C+Math.imul(q,Ut)|0,O=O+Math.imul(q,wt)|0,O=O+Math.imul(de,Ut)|0,W=W+Math.imul(de,wt)|0,C=C+Math.imul(pe,Kt)|0,O=O+Math.imul(pe,pt)|0,O=O+Math.imul(te,Kt)|0,W=W+Math.imul(te,pt)|0,C=C+Math.imul(he,kt)|0,O=O+Math.imul(he,xt)|0,O=O+Math.imul(ue,kt)|0,W=W+Math.imul(ue,xt)|0;var vr=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(vr>>>26)|0,vr&=67108863,C=Math.imul(Ce,Be),O=Math.imul(Ce,Xe),O=O+Math.imul(Fe,Be)|0,W=Math.imul(Fe,Xe),C=C+Math.imul(me,ct)|0,O=O+Math.imul(me,st)|0,O=O+Math.imul(Ee,ct)|0,W=W+Math.imul(Ee,st)|0,C=C+Math.imul(Se,bt)|0,O=O+Math.imul(Se,Qe)|0,O=O+Math.imul(ee,bt)|0,W=W+Math.imul(ee,Qe)|0,C=C+Math.imul(we,_t)|0,O=O+Math.imul(we,ft)|0,O=O+Math.imul(U,_t)|0,W=W+Math.imul(U,ft)|0,C=C+Math.imul(z,It)|0,O=O+Math.imul(z,ht)|0,O=O+Math.imul(Y,It)|0,W=W+Math.imul(Y,ht)|0,C=C+Math.imul(oe,Ut)|0,O=O+Math.imul(oe,wt)|0,O=O+Math.imul(ie,Ut)|0,W=W+Math.imul(ie,wt)|0,C=C+Math.imul(q,Kt)|0,O=O+Math.imul(q,pt)|0,O=O+Math.imul(de,Kt)|0,W=W+Math.imul(de,pt)|0,C=C+Math.imul(pe,kt)|0,O=O+Math.imul(pe,xt)|0,O=O+Math.imul(te,kt)|0,W=W+Math.imul(te,xt)|0,C=C+Math.imul(he,Qt)|0,O=O+Math.imul(he,mt)|0,O=O+Math.imul(ue,Qt)|0,W=W+Math.imul(ue,mt)|0;var Dr=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,C=Math.imul(je,Be),O=Math.imul(je,Xe),O=O+Math.imul(ge,Be)|0,W=Math.imul(ge,Xe),C=C+Math.imul(Ce,ct)|0,O=O+Math.imul(Ce,st)|0,O=O+Math.imul(Fe,ct)|0,W=W+Math.imul(Fe,st)|0,C=C+Math.imul(me,bt)|0,O=O+Math.imul(me,Qe)|0,O=O+Math.imul(Ee,bt)|0,W=W+Math.imul(Ee,Qe)|0,C=C+Math.imul(Se,_t)|0,O=O+Math.imul(Se,ft)|0,O=O+Math.imul(ee,_t)|0,W=W+Math.imul(ee,ft)|0,C=C+Math.imul(we,It)|0,O=O+Math.imul(we,ht)|0,O=O+Math.imul(U,It)|0,W=W+Math.imul(U,ht)|0,C=C+Math.imul(z,Ut)|0,O=O+Math.imul(z,wt)|0,O=O+Math.imul(Y,Ut)|0,W=W+Math.imul(Y,wt)|0,C=C+Math.imul(oe,Kt)|0,O=O+Math.imul(oe,pt)|0,O=O+Math.imul(ie,Kt)|0,W=W+Math.imul(ie,pt)|0,C=C+Math.imul(q,kt)|0,O=O+Math.imul(q,xt)|0,O=O+Math.imul(de,kt)|0,W=W+Math.imul(de,xt)|0,C=C+Math.imul(pe,Qt)|0,O=O+Math.imul(pe,mt)|0,O=O+Math.imul(te,Qt)|0,W=W+Math.imul(te,mt)|0,C=C+Math.imul(he,St)|0,O=O+Math.imul(he,Tt)|0,O=O+Math.imul(ue,St)|0,W=W+Math.imul(ue,Tt)|0;var yr=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(yr>>>26)|0,yr&=67108863,C=Math.imul(je,ct),O=Math.imul(je,st),O=O+Math.imul(ge,ct)|0,W=Math.imul(ge,st),C=C+Math.imul(Ce,bt)|0,O=O+Math.imul(Ce,Qe)|0,O=O+Math.imul(Fe,bt)|0,W=W+Math.imul(Fe,Qe)|0,C=C+Math.imul(me,_t)|0,O=O+Math.imul(me,ft)|0,O=O+Math.imul(Ee,_t)|0,W=W+Math.imul(Ee,ft)|0,C=C+Math.imul(Se,It)|0,O=O+Math.imul(Se,ht)|0,O=O+Math.imul(ee,It)|0,W=W+Math.imul(ee,ht)|0,C=C+Math.imul(we,Ut)|0,O=O+Math.imul(we,wt)|0,O=O+Math.imul(U,Ut)|0,W=W+Math.imul(U,wt)|0,C=C+Math.imul(z,Kt)|0,O=O+Math.imul(z,pt)|0,O=O+Math.imul(Y,Kt)|0,W=W+Math.imul(Y,pt)|0,C=C+Math.imul(oe,kt)|0,O=O+Math.imul(oe,xt)|0,O=O+Math.imul(ie,kt)|0,W=W+Math.imul(ie,xt)|0,C=C+Math.imul(q,Qt)|0,O=O+Math.imul(q,mt)|0,O=O+Math.imul(de,Qt)|0,W=W+Math.imul(de,mt)|0,C=C+Math.imul(pe,St)|0,O=O+Math.imul(pe,Tt)|0,O=O+Math.imul(te,St)|0,W=W+Math.imul(te,Tt)|0;var lr=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(lr>>>26)|0,lr&=67108863,C=Math.imul(je,bt),O=Math.imul(je,Qe),O=O+Math.imul(ge,bt)|0,W=Math.imul(ge,Qe),C=C+Math.imul(Ce,_t)|0,O=O+Math.imul(Ce,ft)|0,O=O+Math.imul(Fe,_t)|0,W=W+Math.imul(Fe,ft)|0,C=C+Math.imul(me,It)|0,O=O+Math.imul(me,ht)|0,O=O+Math.imul(Ee,It)|0,W=W+Math.imul(Ee,ht)|0,C=C+Math.imul(Se,Ut)|0,O=O+Math.imul(Se,wt)|0,O=O+Math.imul(ee,Ut)|0,W=W+Math.imul(ee,wt)|0,C=C+Math.imul(we,Kt)|0,O=O+Math.imul(we,pt)|0,O=O+Math.imul(U,Kt)|0,W=W+Math.imul(U,pt)|0,C=C+Math.imul(z,kt)|0,O=O+Math.imul(z,xt)|0,O=O+Math.imul(Y,kt)|0,W=W+Math.imul(Y,xt)|0,C=C+Math.imul(oe,Qt)|0,O=O+Math.imul(oe,mt)|0,O=O+Math.imul(ie,Qt)|0,W=W+Math.imul(ie,mt)|0,C=C+Math.imul(q,St)|0,O=O+Math.imul(q,Tt)|0,O=O+Math.imul(de,St)|0,W=W+Math.imul(de,Tt)|0;var rn=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(rn>>>26)|0,rn&=67108863,C=Math.imul(je,_t),O=Math.imul(je,ft),O=O+Math.imul(ge,_t)|0,W=Math.imul(ge,ft),C=C+Math.imul(Ce,It)|0,O=O+Math.imul(Ce,ht)|0,O=O+Math.imul(Fe,It)|0,W=W+Math.imul(Fe,ht)|0,C=C+Math.imul(me,Ut)|0,O=O+Math.imul(me,wt)|0,O=O+Math.imul(Ee,Ut)|0,W=W+Math.imul(Ee,wt)|0,C=C+Math.imul(Se,Kt)|0,O=O+Math.imul(Se,pt)|0,O=O+Math.imul(ee,Kt)|0,W=W+Math.imul(ee,pt)|0,C=C+Math.imul(we,kt)|0,O=O+Math.imul(we,xt)|0,O=O+Math.imul(U,kt)|0,W=W+Math.imul(U,xt)|0,C=C+Math.imul(z,Qt)|0,O=O+Math.imul(z,mt)|0,O=O+Math.imul(Y,Qt)|0,W=W+Math.imul(Y,mt)|0,C=C+Math.imul(oe,St)|0,O=O+Math.imul(oe,Tt)|0,O=O+Math.imul(ie,St)|0,W=W+Math.imul(ie,Tt)|0;var nn=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(je,It),O=Math.imul(je,ht),O=O+Math.imul(ge,It)|0,W=Math.imul(ge,ht),C=C+Math.imul(Ce,Ut)|0,O=O+Math.imul(Ce,wt)|0,O=O+Math.imul(Fe,Ut)|0,W=W+Math.imul(Fe,wt)|0,C=C+Math.imul(me,Kt)|0,O=O+Math.imul(me,pt)|0,O=O+Math.imul(Ee,Kt)|0,W=W+Math.imul(Ee,pt)|0,C=C+Math.imul(Se,kt)|0,O=O+Math.imul(Se,xt)|0,O=O+Math.imul(ee,kt)|0,W=W+Math.imul(ee,xt)|0,C=C+Math.imul(we,Qt)|0,O=O+Math.imul(we,mt)|0,O=O+Math.imul(U,Qt)|0,W=W+Math.imul(U,mt)|0,C=C+Math.imul(z,St)|0,O=O+Math.imul(z,Tt)|0,O=O+Math.imul(Y,St)|0,W=W+Math.imul(Y,Tt)|0;var ar=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(ar>>>26)|0,ar&=67108863,C=Math.imul(je,Ut),O=Math.imul(je,wt),O=O+Math.imul(ge,Ut)|0,W=Math.imul(ge,wt),C=C+Math.imul(Ce,Kt)|0,O=O+Math.imul(Ce,pt)|0,O=O+Math.imul(Fe,Kt)|0,W=W+Math.imul(Fe,pt)|0,C=C+Math.imul(me,kt)|0,O=O+Math.imul(me,xt)|0,O=O+Math.imul(Ee,kt)|0,W=W+Math.imul(Ee,xt)|0,C=C+Math.imul(Se,Qt)|0,O=O+Math.imul(Se,mt)|0,O=O+Math.imul(ee,Qt)|0,W=W+Math.imul(ee,mt)|0,C=C+Math.imul(we,St)|0,O=O+Math.imul(we,Tt)|0,O=O+Math.imul(U,St)|0,W=W+Math.imul(U,Tt)|0;var Xr=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,C=Math.imul(je,Kt),O=Math.imul(je,pt),O=O+Math.imul(ge,Kt)|0,W=Math.imul(ge,pt),C=C+Math.imul(Ce,kt)|0,O=O+Math.imul(Ce,xt)|0,O=O+Math.imul(Fe,kt)|0,W=W+Math.imul(Fe,xt)|0,C=C+Math.imul(me,Qt)|0,O=O+Math.imul(me,mt)|0,O=O+Math.imul(Ee,Qt)|0,W=W+Math.imul(Ee,mt)|0,C=C+Math.imul(Se,St)|0,O=O+Math.imul(Se,Tt)|0,O=O+Math.imul(ee,St)|0,W=W+Math.imul(ee,Tt)|0;var Wr=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,C=Math.imul(je,kt),O=Math.imul(je,xt),O=O+Math.imul(ge,kt)|0,W=Math.imul(ge,xt),C=C+Math.imul(Ce,Qt)|0,O=O+Math.imul(Ce,mt)|0,O=O+Math.imul(Fe,Qt)|0,W=W+Math.imul(Fe,mt)|0,C=C+Math.imul(me,St)|0,O=O+Math.imul(me,Tt)|0,O=O+Math.imul(Ee,St)|0,W=W+Math.imul(Ee,Tt)|0;var Vr=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,C=Math.imul(je,Qt),O=Math.imul(je,mt),O=O+Math.imul(ge,Qt)|0,W=Math.imul(ge,mt),C=C+Math.imul(Ce,St)|0,O=O+Math.imul(Ce,Tt)|0,O=O+Math.imul(Fe,St)|0,W=W+Math.imul(Fe,Tt)|0;var En=(k+C|0)+((O&8191)<<13)|0;k=(W+(O>>>13)|0)+(En>>>26)|0,En&=67108863,C=Math.imul(je,St),O=Math.imul(je,Tt),O=O+Math.imul(ge,St)|0,W=Math.imul(ge,Tt);var Vn=(k+C|0)+((O&8191)<<13)|0;return k=(W+(O>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,R[0]=be,R[1]=Ne,R[2]=Le,R[3]=Je,R[4]=at,R[5]=Mt,R[6]=rr,R[7]=vr,R[8]=Dr,R[9]=yr,R[10]=lr,R[11]=rn,R[12]=nn,R[13]=ar,R[14]=Xr,R[15]=Wr,R[16]=Vr,R[17]=En,R[18]=Vn,k!==0&&(R[19]=k,P.length++),P};Math.imul||(E=S);function I(T,_,A){A.negative=_.negative^T.negative,A.length=T.length+_.length;for(var P=0,L=0,$=0;$<A.length-1;$++){var R=L;L=0;for(var k=P&67108863,C=Math.min($,_.length-1),O=Math.max(0,$-T.length+1);O<=C;O++){var W=$-O,ne=T.words[W]|0,he=_.words[O]|0,ue=ne*he,Ae=ue&67108863;R=R+(ue/67108864|0)|0,Ae=Ae+k|0,k=Ae&67108863,R=R+(Ae>>>26)|0,L+=R>>>26,R&=67108863}A.words[$]=k,P=R,R=L}return P!==0?A.words[$]=P:A.length--,A._strip()}function F(T,_,A){return I(T,_,A)}t.prototype.mulTo=function(_,A){var P,L=this.length+_.length;return this.length===10&&_.length===10?P=E(this,_,A):L<63?P=S(this,_,A):L<1024?P=I(this,_,A):P=F(this,_,A),P},t.prototype.mul=function(_){var A=new t(null);return A.words=new Array(this.length+_.length),this.mulTo(_,A)},t.prototype.mulf=function(_){var A=new t(null);return A.words=new Array(this.length+_.length),F(this,_,A)},t.prototype.imul=function(_){return this.clone().mulTo(_,this)},t.prototype.imuln=function(_){var A=_<0;A&&(_=-_),u(typeof _=="number"),u(_<67108864);for(var P=0,L=0;L<this.length;L++){var $=(this.words[L]|0)*_,R=($&67108863)+(P&67108863);P>>=26,P+=$/67108864|0,P+=R>>>26,this.words[L]=R&67108863}return P!==0&&(this.words[L]=P,this.length++),A?this.ineg():this},t.prototype.muln=function(_){return this.clone().imuln(_)},t.prototype.sqr=function(){return this.mul(this)},t.prototype.isqr=function(){return this.imul(this.clone())},t.prototype.pow=function(_){var A=y(_);if(A.length===0)return new t(1);for(var P=this,L=0;L<A.length&&A[L]===0;L++,P=P.sqr());if(++L<A.length)for(var $=P.sqr();L<A.length;L++,$=$.sqr())A[L]!==0&&(P=P.mul($));return P},t.prototype.iushln=function(_){u(typeof _=="number"&&_>=0);var A=_%26,P=(_-A)/26,L=67108863>>>26-A<<26-A,$;if(A!==0){var R=0;for($=0;$<this.length;$++){var k=this.words[$]&L,C=(this.words[$]|0)-k<<A;this.words[$]=C|R,R=k>>>26-A}R&&(this.words[$]=R,this.length++)}if(P!==0){for($=this.length-1;$>=0;$--)this.words[$+P]=this.words[$];for($=0;$<P;$++)this.words[$]=0;this.length+=P}return this._strip()},t.prototype.ishln=function(_){return u(this.negative===0),this.iushln(_)},t.prototype.iushrn=function(_,A,P){u(typeof _=="number"&&_>=0);var L;A?L=(A-A%26)/26:L=0;var $=_%26,R=Math.min((_-$)/26,this.length),k=67108863^67108863>>>$<<$,C=P;if(L-=R,L=Math.max(0,L),C){for(var O=0;O<R;O++)C.words[O]=this.words[O];C.length=R}if(R!==0)if(this.length>R)for(this.length-=R,O=0;O<this.length;O++)this.words[O]=this.words[O+R];else this.words[0]=0,this.length=1;var W=0;for(O=this.length-1;O>=0&&(W!==0||O>=L);O--){var ne=this.words[O]|0;this.words[O]=W<<26-$|ne>>>$,W=ne&k}return C&&W!==0&&(C.words[C.length++]=W),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},t.prototype.ishrn=function(_,A,P){return u(this.negative===0),this.iushrn(_,A,P)},t.prototype.shln=function(_){return this.clone().ishln(_)},t.prototype.ushln=function(_){return this.clone().iushln(_)},t.prototype.shrn=function(_){return this.clone().ishrn(_)},t.prototype.ushrn=function(_){return this.clone().iushrn(_)},t.prototype.testn=function(_){u(typeof _=="number"&&_>=0);var A=_%26,P=(_-A)/26,L=1<<A;if(this.length<=P)return!1;var $=this.words[P];return!!($&L)},t.prototype.imaskn=function(_){u(typeof _=="number"&&_>=0);var A=_%26,P=(_-A)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=P)return this;if(A!==0&&P++,this.length=Math.min(P,this.length),A!==0){var L=67108863^67108863>>>A<<A;this.words[this.length-1]&=L}return this._strip()},t.prototype.maskn=function(_){return this.clone().imaskn(_)},t.prototype.iaddn=function(_){return u(typeof _=="number"),u(_<67108864),_<0?this.isubn(-_):this.negative!==0?this.length===1&&(this.words[0]|0)<=_?(this.words[0]=_-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(_),this.negative=1,this):this._iaddn(_)},t.prototype._iaddn=function(_){this.words[0]+=_;for(var A=0;A<this.length&&this.words[A]>=67108864;A++)this.words[A]-=67108864,A===this.length-1?this.words[A+1]=1:this.words[A+1]++;return this.length=Math.max(this.length,A+1),this},t.prototype.isubn=function(_){if(u(typeof _=="number"),u(_<67108864),_<0)return this.iaddn(-_);if(this.negative!==0)return this.negative=0,this.iaddn(_),this.negative=1,this;if(this.words[0]-=_,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var A=0;A<this.length&&this.words[A]<0;A++)this.words[A]+=67108864,this.words[A+1]-=1;return this._strip()},t.prototype.addn=function(_){return this.clone().iaddn(_)},t.prototype.subn=function(_){return this.clone().isubn(_)},t.prototype.iabs=function(){return this.negative=0,this},t.prototype.abs=function(){return this.clone().iabs()},t.prototype._ishlnsubmul=function(_,A,P){var L=_.length+P,$;this._expand(L);var R,k=0;for($=0;$<_.length;$++){R=(this.words[$+P]|0)+k;var C=(_.words[$]|0)*A;R-=C&67108863,k=(R>>26)-(C/67108864|0),this.words[$+P]=R&67108863}for(;$<this.length-P;$++)R=(this.words[$+P]|0)+k,k=R>>26,this.words[$+P]=R&67108863;if(k===0)return this._strip();for(u(k===-1),k=0,$=0;$<this.length;$++)R=-(this.words[$]|0)+k,k=R>>26,this.words[$]=R&67108863;return this.negative=1,this._strip()},t.prototype._wordDiv=function(_,A){var P=this.length-_.length,L=this.clone(),$=_,R=$.words[$.length-1]|0,k=this._countBits(R);P=26-k,P!==0&&($=$.ushln(P),L.iushln(P),R=$.words[$.length-1]|0);var C=L.length-$.length,O;if(A!=="mod"){O=new t(null),O.length=C+1,O.words=new Array(O.length);for(var W=0;W<O.length;W++)O.words[W]=0}var ne=L.clone()._ishlnsubmul($,1,C);ne.negative===0&&(L=ne,O&&(O.words[C]=1));for(var he=C-1;he>=0;he--){var ue=(L.words[$.length+he]|0)*67108864+(L.words[$.length+he-1]|0);for(ue=Math.min(ue/R|0,67108863),L._ishlnsubmul($,ue,he);L.negative!==0;)ue--,L.negative=0,L._ishlnsubmul($,1,he),L.isZero()||(L.negative^=1);O&&(O.words[he]=ue)}return O&&O._strip(),L._strip(),A!=="div"&&P!==0&&L.iushrn(P),{div:O||null,mod:L}},t.prototype.divmod=function(_,A,P){if(u(!_.isZero()),this.isZero())return{div:new t(0),mod:new t(0)};var L,$,R;return this.negative!==0&&_.negative===0?(R=this.neg().divmod(_,A),A!=="mod"&&(L=R.div.neg()),A!=="div"&&($=R.mod.neg(),P&&$.negative!==0&&$.iadd(_)),{div:L,mod:$}):this.negative===0&&_.negative!==0?(R=this.divmod(_.neg(),A),A!=="mod"&&(L=R.div.neg()),{div:L,mod:R.mod}):this.negative&_.negative?(R=this.neg().divmod(_.neg(),A),A!=="div"&&($=R.mod.neg(),P&&$.negative!==0&&$.isub(_)),{div:R.div,mod:$}):_.length>this.length||this.cmp(_)<0?{div:new t(0),mod:this}:_.length===1?A==="div"?{div:this.divn(_.words[0]),mod:null}:A==="mod"?{div:null,mod:new t(this.modrn(_.words[0]))}:{div:this.divn(_.words[0]),mod:new t(this.modrn(_.words[0]))}:this._wordDiv(_,A)},t.prototype.div=function(_){return this.divmod(_,"div",!1).div},t.prototype.mod=function(_){return this.divmod(_,"mod",!1).mod},t.prototype.umod=function(_){return this.divmod(_,"mod",!0).mod},t.prototype.divRound=function(_){var A=this.divmod(_);if(A.mod.isZero())return A.div;var P=A.div.negative!==0?A.mod.isub(_):A.mod,L=_.ushrn(1),$=_.andln(1),R=P.cmp(L);return R<0||$===1&&R===0?A.div:A.div.negative!==0?A.div.isubn(1):A.div.iaddn(1)},t.prototype.modrn=function(_){var A=_<0;A&&(_=-_),u(_<=67108863);for(var P=(1<<26)%_,L=0,$=this.length-1;$>=0;$--)L=(P*L+(this.words[$]|0))%_;return A?-L:L},t.prototype.modn=function(_){return this.modrn(_)},t.prototype.idivn=function(_){var A=_<0;A&&(_=-_),u(_<=67108863);for(var P=0,L=this.length-1;L>=0;L--){var $=(this.words[L]|0)+P*67108864;this.words[L]=$/_|0,P=$%_}return this._strip(),A?this.ineg():this},t.prototype.divn=function(_){return this.clone().idivn(_)},t.prototype.egcd=function(_){u(_.negative===0),u(!_.isZero());var A=this,P=_.clone();A.negative!==0?A=A.umod(_):A=A.clone();for(var L=new t(1),$=new t(0),R=new t(0),k=new t(1),C=0;A.isEven()&&P.isEven();)A.iushrn(1),P.iushrn(1),++C;for(var O=P.clone(),W=A.clone();!A.isZero();){for(var ne=0,he=1;!(A.words[0]&he)&&ne<26;++ne,he<<=1);if(ne>0)for(A.iushrn(ne);ne-- >0;)(L.isOdd()||$.isOdd())&&(L.iadd(O),$.isub(W)),L.iushrn(1),$.iushrn(1);for(var ue=0,Ae=1;!(P.words[0]&Ae)&&ue<26;++ue,Ae<<=1);if(ue>0)for(P.iushrn(ue);ue-- >0;)(R.isOdd()||k.isOdd())&&(R.iadd(O),k.isub(W)),R.iushrn(1),k.iushrn(1);A.cmp(P)>=0?(A.isub(P),L.isub(R),$.isub(k)):(P.isub(A),R.isub(L),k.isub($))}return{a:R,b:k,gcd:P.iushln(C)}},t.prototype._invmp=function(_){u(_.negative===0),u(!_.isZero());var A=this,P=_.clone();A.negative!==0?A=A.umod(_):A=A.clone();for(var L=new t(1),$=new t(0),R=P.clone();A.cmpn(1)>0&&P.cmpn(1)>0;){for(var k=0,C=1;!(A.words[0]&C)&&k<26;++k,C<<=1);if(k>0)for(A.iushrn(k);k-- >0;)L.isOdd()&&L.iadd(R),L.iushrn(1);for(var O=0,W=1;!(P.words[0]&W)&&O<26;++O,W<<=1);if(O>0)for(P.iushrn(O);O-- >0;)$.isOdd()&&$.iadd(R),$.iushrn(1);A.cmp(P)>=0?(A.isub(P),L.isub($)):(P.isub(A),$.isub(L))}var ne;return A.cmpn(1)===0?ne=L:ne=$,ne.cmpn(0)<0&&ne.iadd(_),ne},t.prototype.gcd=function(_){if(this.isZero())return _.abs();if(_.isZero())return this.abs();var A=this.clone(),P=_.clone();A.negative=0,P.negative=0;for(var L=0;A.isEven()&&P.isEven();L++)A.iushrn(1),P.iushrn(1);do{for(;A.isEven();)A.iushrn(1);for(;P.isEven();)P.iushrn(1);var $=A.cmp(P);if($<0){var R=A;A=P,P=R}else if($===0||P.cmpn(1)===0)break;A.isub(P)}while(!0);return P.iushln(L)},t.prototype.invm=function(_){return this.egcd(_).a.umod(_)},t.prototype.isEven=function(){return(this.words[0]&1)===0},t.prototype.isOdd=function(){return(this.words[0]&1)===1},t.prototype.andln=function(_){return this.words[0]&_},t.prototype.bincn=function(_){u(typeof _=="number");var A=_%26,P=(_-A)/26,L=1<<A;if(this.length<=P)return this._expand(P+1),this.words[P]|=L,this;for(var $=L,R=P;$!==0&&R<this.length;R++){var k=this.words[R]|0;k+=$,$=k>>>26,k&=67108863,this.words[R]=k}return $!==0&&(this.words[R]=$,this.length++),this},t.prototype.isZero=function(){return this.length===1&&this.words[0]===0},t.prototype.cmpn=function(_){var A=_<0;if(this.negative!==0&&!A)return-1;if(this.negative===0&&A)return 1;this._strip();var P;if(this.length>1)P=1;else{A&&(_=-_),u(_<=67108863,"Number is too big");var L=this.words[0]|0;P=L===_?0:L<_?-1:1}return this.negative!==0?-P|0:P},t.prototype.cmp=function(_){if(this.negative!==0&&_.negative===0)return-1;if(this.negative===0&&_.negative!==0)return 1;var A=this.ucmp(_);return this.negative!==0?-A|0:A},t.prototype.ucmp=function(_){if(this.length>_.length)return 1;if(this.length<_.length)return-1;for(var A=0,P=this.length-1;P>=0;P--){var L=this.words[P]|0,$=_.words[P]|0;if(L!==$){L<$?A=-1:L>$&&(A=1);break}}return A},t.prototype.gtn=function(_){return this.cmpn(_)===1},t.prototype.gt=function(_){return this.cmp(_)===1},t.prototype.gten=function(_){return this.cmpn(_)>=0},t.prototype.gte=function(_){return this.cmp(_)>=0},t.prototype.ltn=function(_){return this.cmpn(_)===-1},t.prototype.lt=function(_){return this.cmp(_)===-1},t.prototype.lten=function(_){return this.cmpn(_)<=0},t.prototype.lte=function(_){return this.cmp(_)<=0},t.prototype.eqn=function(_){return this.cmpn(_)===0},t.prototype.eq=function(_){return this.cmp(_)===0},t.red=function(_){return new H(_)},t.prototype.toRed=function(_){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),_.convertTo(this)._forceRed(_)},t.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},t.prototype._forceRed=function(_){return this.red=_,this},t.prototype.forceRed=function(_){return u(!this.red,"Already a number in reduction context"),this._forceRed(_)},t.prototype.redAdd=function(_){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,_)},t.prototype.redIAdd=function(_){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,_)},t.prototype.redSub=function(_){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,_)},t.prototype.redISub=function(_){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,_)},t.prototype.redShl=function(_){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,_)},t.prototype.redMul=function(_){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,_),this.red.mul(this,_)},t.prototype.redIMul=function(_){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,_),this.red.imul(this,_)},t.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},t.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},t.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},t.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},t.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},t.prototype.redPow=function(_){return u(this.red&&!_.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,_)};var B={k256:null,p224:null,p192:null,p25519:null};function j(T,_){this.name=T,this.p=new t(_,16),this.n=this.p.bitLength(),this.k=new t(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var _=new t(null);return _.words=new Array(Math.ceil(this.n/13)),_},j.prototype.ireduce=function(_){var A=_,P;do this.split(A,this.tmp),A=this.imulK(A),A=A.iadd(this.tmp),P=A.bitLength();while(P>this.n);var L=P<this.n?-1:A.ucmp(this.p);return L===0?(A.words[0]=0,A.length=1):L>0?A.isub(this.p):A.strip!==void 0?A.strip():A._strip(),A},j.prototype.split=function(_,A){_.iushrn(this.n,0,A)},j.prototype.imulK=function(_){return _.imul(this.k)};function X(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(X,j),X.prototype.split=function(_,A){for(var P=4194303,L=Math.min(_.length,9),$=0;$<L;$++)A.words[$]=_.words[$];if(A.length=L,_.length<=9){_.words[0]=0,_.length=1;return}var R=_.words[9];for(A.words[A.length++]=R&P,$=10;$<_.length;$++){var k=_.words[$]|0;_.words[$-10]=(k&P)<<4|R>>>22,R=k}R>>>=22,_.words[$-10]=R,R===0&&_.length>10?_.length-=10:_.length-=9},X.prototype.imulK=function(_){_.words[_.length]=0,_.words[_.length+1]=0,_.length+=2;for(var A=0,P=0;P<_.length;P++){var L=_.words[P]|0;A+=L*977,_.words[P]=A&67108863,A=L*64+(A/67108864|0)}return _.words[_.length-1]===0&&(_.length--,_.words[_.length-1]===0&&_.length--),_};function G(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}s(G,j);function V(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}s(V,j);function J(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}s(J,j),J.prototype.imulK=function(_){for(var A=0,P=0;P<_.length;P++){var L=(_.words[P]|0)*19+A,$=L&67108863;L>>>=26,_.words[P]=$,A=L}return A!==0&&(_.words[_.length++]=A),_},t._prime=function(_){if(B[_])return B[_];var A;if(_==="k256")A=new X;else if(_==="p224")A=new G;else if(_==="p192")A=new V;else if(_==="p25519")A=new J;else throw new Error("Unknown prime "+_);return B[_]=A,A};function H(T){if(typeof T=="string"){var _=t._prime(T);this.m=_.p,this.prime=_}else u(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}H.prototype._verify1=function(_){u(_.negative===0,"red works only with positives"),u(_.red,"red works only with red numbers")},H.prototype._verify2=function(_,A){u((_.negative|A.negative)===0,"red works only with positives"),u(_.red&&_.red===A.red,"red works only with red numbers")},H.prototype.imod=function(_){return this.prime?this.prime.ireduce(_)._forceRed(this):(l(_,_.umod(this.m)._forceRed(this)),_)},H.prototype.neg=function(_){return _.isZero()?_.clone():this.m.sub(_)._forceRed(this)},H.prototype.add=function(_,A){this._verify2(_,A);var P=_.add(A);return P.cmp(this.m)>=0&&P.isub(this.m),P._forceRed(this)},H.prototype.iadd=function(_,A){this._verify2(_,A);var P=_.iadd(A);return P.cmp(this.m)>=0&&P.isub(this.m),P},H.prototype.sub=function(_,A){this._verify2(_,A);var P=_.sub(A);return P.cmpn(0)<0&&P.iadd(this.m),P._forceRed(this)},H.prototype.isub=function(_,A){this._verify2(_,A);var P=_.isub(A);return P.cmpn(0)<0&&P.iadd(this.m),P},H.prototype.shl=function(_,A){return this._verify1(_),this.imod(_.ushln(A))},H.prototype.imul=function(_,A){return this._verify2(_,A),this.imod(_.imul(A))},H.prototype.mul=function(_,A){return this._verify2(_,A),this.imod(_.mul(A))},H.prototype.isqr=function(_){return this.imul(_,_.clone())},H.prototype.sqr=function(_){return this.mul(_,_)},H.prototype.sqrt=function(_){if(_.isZero())return _.clone();var A=this.m.andln(3);if(u(A%2===1),A===3){var P=this.m.add(new t(1)).iushrn(2);return this.pow(_,P)}for(var L=this.m.subn(1),$=0;!L.isZero()&&L.andln(1)===0;)$++,L.iushrn(1);u(!L.isZero());var R=new t(1).toRed(this),k=R.redNeg(),C=this.m.subn(1).iushrn(1),O=this.m.bitLength();for(O=new t(2*O*O).toRed(this);this.pow(O,C).cmp(k)!==0;)O.redIAdd(k);for(var W=this.pow(O,L),ne=this.pow(_,L.addn(1).iushrn(1)),he=this.pow(_,L),ue=$;he.cmp(R)!==0;){for(var Ae=he,pe=0;Ae.cmp(R)!==0;pe++)Ae=Ae.redSqr();u(pe<ue);var te=this.pow(W,new t(1).iushln(ue-pe-1));ne=ne.redMul(te),W=te.redSqr(),he=he.redMul(W),ue=pe}return ne},H.prototype.invm=function(_){var A=_._invmp(this.m);return A.negative!==0?(A.negative=0,this.imod(A).redNeg()):this.imod(A)},H.prototype.pow=function(_,A){if(A.isZero())return new t(1).toRed(this);if(A.cmpn(1)===0)return _.clone();var P=4,L=new Array(1<<P);L[0]=new t(1).toRed(this),L[1]=_;for(var $=2;$<L.length;$++)L[$]=this.mul(L[$-1],_);var R=L[0],k=0,C=0,O=A.bitLength()%26;for(O===0&&(O=26),$=A.length-1;$>=0;$--){for(var W=A.words[$],ne=O-1;ne>=0;ne--){var he=W>>ne&1;if(R!==L[0]&&(R=this.sqr(R)),he===0&&k===0){C=0;continue}k<<=1,k|=he,C++,!(C!==P&&($!==0||ne!==0))&&(R=this.mul(R,L[k]),C=0,k=0)}O=26}return R},H.prototype.convertTo=function(_){var A=_.umod(this.m);return A===_?A.clone():A},H.prototype.convertFrom=function(_){var A=_.clone();return A.red=null,A},t.mont=function(_){return new M(_)};function M(T){H.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new t(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)}s(M,H),M.prototype.convertTo=function(_){return this.imod(_.ushln(this.shift))},M.prototype.convertFrom=function(_){var A=this.imod(_.mul(this.rinv));return A.red=null,A},M.prototype.imul=function(_,A){if(_.isZero()||A.isZero())return _.words[0]=0,_.length=1,_;var P=_.imul(A),L=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$=P.isub(L).iushrn(this.shift),R=$;return $.cmp(this.m)>=0?R=$.isub(this.m):$.cmpn(0)<0&&(R=$.iadd(this.m)),R._forceRed(this)},M.prototype.mul=function(_,A){if(_.isZero()||A.isZero())return new t(0)._forceRed(this);var P=_.mul(A),L=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$=P.isub(L).iushrn(this.shift),R=$;return $.cmp(this.m)>=0?R=$.isub(this.m):$.cmpn(0)<0&&(R=$.iadd(this.m)),R._forceRed(this)},M.prototype.invm=function(_){var A=this.imod(_._invmp(this.m).mul(this.r2));return A._forceRed(this)}})(typeof d>"u"||d,void 0)},{buffer:188}],187:[function(e,d,m){var f;d.exports=function(t){return f||(f=new c(null)),f.generate(t)};function c(s){this.rand=s}if(d.exports.Rand=c,c.prototype.generate=function(t){return this._rand(t)},c.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var n=new Uint8Array(t),r=0;r<n.length;r++)n[r]=this.rand.getByte();return n},typeof self=="object")self.crypto&&self.crypto.getRandomValues?c.prototype._rand=function(t){var n=new Uint8Array(t);return self.crypto.getRandomValues(n),n}:self.msCrypto&&self.msCrypto.getRandomValues?c.prototype._rand=function(t){var n=new Uint8Array(t);return self.msCrypto.getRandomValues(n),n}:typeof window=="object"&&(c.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var u=e("crypto");if(typeof u.randomBytes!="function")throw new Error("Not supported");c.prototype._rand=function(t){return u.randomBytes(t)}}catch{}},{crypto:188}],188:[function(e,d,m){},{}],189:[function(e,d,m){var f=e("safe-buffer").Buffer;function c(i){f.isBuffer(i)||(i=f.from(i));for(var o=i.length/4|0,l=new Array(o),a=0;a<o;a++)l[a]=i.readUInt32BE(a*4);return l}function u(i){for(var o=0;o<i.length;i++)i[o]=0}function s(i,o,l,a,g){for(var v=l[0],h=l[1],w=l[2],y=l[3],S=i[0]^o[0],E=i[1]^o[1],I=i[2]^o[2],F=i[3]^o[3],B,j,X,G,V=4,J=1;J<g;J++)B=v[S>>>24]^h[E>>>16&255]^w[I>>>8&255]^y[F&255]^o[V++],j=v[E>>>24]^h[I>>>16&255]^w[F>>>8&255]^y[S&255]^o[V++],X=v[I>>>24]^h[F>>>16&255]^w[S>>>8&255]^y[E&255]^o[V++],G=v[F>>>24]^h[S>>>16&255]^w[E>>>8&255]^y[I&255]^o[V++],S=B,E=j,I=X,F=G;return B=(a[S>>>24]<<24|a[E>>>16&255]<<16|a[I>>>8&255]<<8|a[F&255])^o[V++],j=(a[E>>>24]<<24|a[I>>>16&255]<<16|a[F>>>8&255]<<8|a[S&255])^o[V++],X=(a[I>>>24]<<24|a[F>>>16&255]<<16|a[S>>>8&255]<<8|a[E&255])^o[V++],G=(a[F>>>24]<<24|a[S>>>16&255]<<16|a[E>>>8&255]<<8|a[I&255])^o[V++],B=B>>>0,j=j>>>0,X=X>>>0,G=G>>>0,[B,j,X,G]}var t=[0,1,2,4,8,16,32,64,128,27,54],n=function(){for(var i=new Array(256),o=0;o<256;o++)o<128?i[o]=o<<1:i[o]=o<<1^283;for(var l=[],a=[],g=[[],[],[],[]],v=[[],[],[],[]],h=0,w=0,y=0;y<256;++y){var S=w^w<<1^w<<2^w<<3^w<<4;S=S>>>8^S&255^99,l[h]=S,a[S]=h;var E=i[h],I=i[E],F=i[I],B=i[S]*257^S*16843008;g[0][h]=B<<24|B>>>8,g[1][h]=B<<16|B>>>16,g[2][h]=B<<8|B>>>24,g[3][h]=B,B=F*16843009^I*65537^E*257^h*16843008,v[0][S]=B<<24|B>>>8,v[1][S]=B<<16|B>>>16,v[2][S]=B<<8|B>>>24,v[3][S]=B,h===0?h=w=1:(h=E^i[i[i[F^E]]],w^=i[i[w]])}return{SBOX:l,INV_SBOX:a,SUB_MIX:g,INV_SUB_MIX:v}}();function r(i){this._key=c(i),this._reset()}r.blockSize=4*4,r.keySize=256/8,r.prototype.blockSize=r.blockSize,r.prototype.keySize=r.keySize,r.prototype._reset=function(){for(var i=this._key,o=i.length,l=o+6,a=(l+1)*4,g=[],v=0;v<o;v++)g[v]=i[v];for(v=o;v<a;v++){var h=g[v-1];v%o===0?(h=h<<8|h>>>24,h=n.SBOX[h>>>24]<<24|n.SBOX[h>>>16&255]<<16|n.SBOX[h>>>8&255]<<8|n.SBOX[h&255],h^=t[v/o|0]<<24):o>6&&v%o===4&&(h=n.SBOX[h>>>24]<<24|n.SBOX[h>>>16&255]<<16|n.SBOX[h>>>8&255]<<8|n.SBOX[h&255]),g[v]=g[v-o]^h}for(var w=[],y=0;y<a;y++){var S=a-y,E=g[S-(y%4?0:4)];y<4||S<=4?w[y]=E:w[y]=n.INV_SUB_MIX[0][n.SBOX[E>>>24]]^n.INV_SUB_MIX[1][n.SBOX[E>>>16&255]]^n.INV_SUB_MIX[2][n.SBOX[E>>>8&255]]^n.INV_SUB_MIX[3][n.SBOX[E&255]]}this._nRounds=l,this._keySchedule=g,this._invKeySchedule=w},r.prototype.encryptBlockRaw=function(i){return i=c(i),s(i,this._keySchedule,n.SUB_MIX,n.SBOX,this._nRounds)},r.prototype.encryptBlock=function(i){var o=this.encryptBlockRaw(i),l=f.allocUnsafe(16);return l.writeUInt32BE(o[0],0),l.writeUInt32BE(o[1],4),l.writeUInt32BE(o[2],8),l.writeUInt32BE(o[3],12),l},r.prototype.decryptBlock=function(i){i=c(i);var o=i[1];i[1]=i[3],i[3]=o;var l=s(i,this._invKeySchedule,n.INV_SUB_MIX,n.INV_SBOX,this._nRounds),a=f.allocUnsafe(16);return a.writeUInt32BE(l[0],0),a.writeUInt32BE(l[3],4),a.writeUInt32BE(l[2],8),a.writeUInt32BE(l[1],12),a},r.prototype.scrub=function(){u(this._keySchedule),u(this._invKeySchedule),u(this._key)},d.exports.AES=r},{"safe-buffer":494}],190:[function(e,d,m){var f=e("./aes"),c=e("safe-buffer").Buffer,u=e("cipher-base"),s=e("inherits"),t=e("./ghash"),n=e("buffer-xor"),r=e("./incr32");function i(a,g){var v=0;a.length!==g.length&&v++;for(var h=Math.min(a.length,g.length),w=0;w<h;++w)v+=a[w]^g[w];return v}function o(a,g,v){if(g.length===12)return a._finID=c.concat([g,c.from([0,0,0,1])]),c.concat([g,c.from([0,0,0,2])]);var h=new t(v),w=g.length,y=w%16;h.update(g),y&&(y=16-y,h.update(c.alloc(y,0))),h.update(c.alloc(8,0));var S=w*8,E=c.alloc(8);E.writeUIntBE(S,0,8),h.update(E),a._finID=h.state;var I=c.from(a._finID);return r(I),I}function l(a,g,v,h){u.call(this);var w=c.alloc(4,0);this._cipher=new f.AES(g);var y=this._cipher.encryptBlock(w);this._ghash=new t(y),v=o(this,v,y),this._prev=c.from(v),this._cache=c.allocUnsafe(0),this._secCache=c.allocUnsafe(0),this._decrypt=h,this._alen=0,this._len=0,this._mode=a,this._authTag=null,this._called=!1}s(l,u),l.prototype._update=function(a){if(!this._called&&this._alen){var g=16-this._alen%16;g<16&&(g=c.alloc(g,0),this._ghash.update(g))}this._called=!0;var v=this._mode.encrypt(this,a);return this._decrypt?this._ghash.update(a):this._ghash.update(v),this._len+=a.length,v},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var a=n(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&i(a,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=a,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!c.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(g){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=g},l.prototype.setAAD=function(g){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(g),this._alen+=g.length},d.exports=l},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,d,m){var f=e("./encrypter"),c=e("./decrypter"),u=e("./modes/list.json");function s(){return Object.keys(u)}m.createCipher=m.Cipher=f.createCipher,m.createCipheriv=m.Cipheriv=f.createCipheriv,m.createDecipher=m.Decipher=c.createDecipher,m.createDecipheriv=m.Decipheriv=c.createDecipheriv,m.listCiphers=m.getCiphers=s},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,d,m){var f=e("./authCipher"),c=e("safe-buffer").Buffer,u=e("./modes"),s=e("./streamCipher"),t=e("cipher-base"),n=e("./aes"),r=e("evp_bytestokey"),i=e("inherits");function o(h,w,y){t.call(this),this._cache=new l,this._last=void 0,this._cipher=new n.AES(w),this._prev=c.from(y),this._mode=h,this._autopadding=!0}i(o,t),o.prototype._update=function(h){this._cache.add(h);for(var w,y,S=[];w=this._cache.get(this._autopadding);)y=this._mode.decrypt(this,w),S.push(y);return c.concat(S)},o.prototype._final=function(){var h=this._cache.flush();if(this._autopadding)return a(this._mode.decrypt(this,h));if(h)throw new Error("data not multiple of block length")},o.prototype.setAutoPadding=function(h){return this._autopadding=!!h,this};function l(){this.cache=c.allocUnsafe(0)}l.prototype.add=function(h){this.cache=c.concat([this.cache,h])},l.prototype.get=function(h){var w;if(h){if(this.cache.length>16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w}else if(this.cache.length>=16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache};function a(h){var w=h[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var y=-1;++y<w;)if(h[y+(16-w)]!==w)throw new Error("unable to decrypt data");if(w!==16)return h.slice(0,16-w)}function g(h,w,y){var S=u[h.toLowerCase()];if(!S)throw new TypeError("invalid suite type");if(typeof y=="string"&&(y=c.from(y)),S.mode!=="GCM"&&y.length!==S.iv)throw new TypeError("invalid iv length "+y.length);if(typeof w=="string"&&(w=c.from(w)),w.length!==S.key/8)throw new TypeError("invalid key length "+w.length);return S.type==="stream"?new s(S.module,w,y,!0):S.type==="auth"?new f(S.module,w,y,!0):new o(S.module,w,y)}function v(h,w){var y=u[h.toLowerCase()];if(!y)throw new TypeError("invalid suite type");var S=r(w,!1,y.key,y.iv);return g(h,S.key,S.iv)}m.createDecipher=v,m.createDecipheriv=g},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,d,m){var f=e("./modes"),c=e("./authCipher"),u=e("safe-buffer").Buffer,s=e("./streamCipher"),t=e("cipher-base"),n=e("./aes"),r=e("evp_bytestokey"),i=e("inherits");function o(h,w,y){t.call(this),this._cache=new a,this._cipher=new n.AES(w),this._prev=u.from(y),this._mode=h,this._autopadding=!0}i(o,t),o.prototype._update=function(h){this._cache.add(h);for(var w,y,S=[];w=this._cache.get();)y=this._mode.encrypt(this,w),S.push(y);return u.concat(S)};var l=u.alloc(16,16);o.prototype._final=function(){var h=this._cache.flush();if(this._autopadding)return h=this._mode.encrypt(this,h),this._cipher.scrub(),h;if(!h.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},o.prototype.setAutoPadding=function(h){return this._autopadding=!!h,this};function a(){this.cache=u.allocUnsafe(0)}a.prototype.add=function(h){this.cache=u.concat([this.cache,h])},a.prototype.get=function(){if(this.cache.length>15){var h=this.cache.slice(0,16);return this.cache=this.cache.slice(16),h}return null},a.prototype.flush=function(){for(var h=16-this.cache.length,w=u.allocUnsafe(h),y=-1;++y<h;)w.writeUInt8(h,y);return u.concat([this.cache,w])};function g(h,w,y){var S=f[h.toLowerCase()];if(!S)throw new TypeError("invalid suite type");if(typeof w=="string"&&(w=u.from(w)),w.length!==S.key/8)throw new TypeError("invalid key length "+w.length);if(typeof y=="string"&&(y=u.from(y)),S.mode!=="GCM"&&y.length!==S.iv)throw new TypeError("invalid iv length "+y.length);return S.type==="stream"?new s(S.module,w,y):S.type==="auth"?new c(S.module,w,y):new o(S.module,w,y)}function v(h,w){var y=f[h.toLowerCase()];if(!y)throw new TypeError("invalid suite type");var S=r(w,!1,y.key,y.iv);return g(h,S.key,S.iv)}m.createCipheriv=g,m.createCipher=v},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,d,m){var f=e("safe-buffer").Buffer,c=f.alloc(16,0);function u(n){return[n.readUInt32BE(0),n.readUInt32BE(4),n.readUInt32BE(8),n.readUInt32BE(12)]}function s(n){var r=f.allocUnsafe(16);return r.writeUInt32BE(n[0]>>>0,0),r.writeUInt32BE(n[1]>>>0,4),r.writeUInt32BE(n[2]>>>0,8),r.writeUInt32BE(n[3]>>>0,12),r}function t(n){this.h=n,this.state=f.alloc(16,0),this.cache=f.allocUnsafe(0)}t.prototype.ghash=function(n){for(var r=-1;++r<n.length;)this.state[r]^=n[r];this._multiply()},t.prototype._multiply=function(){for(var n=u(this.h),r=[0,0,0,0],i,o,l,a=-1;++a<128;){for(o=(this.state[~~(a/8)]&1<<7-a%8)!==0,o&&(r[0]^=n[0],r[1]^=n[1],r[2]^=n[2],r[3]^=n[3]),l=(n[3]&1)!==0,i=3;i>0;i--)n[i]=n[i]>>>1|(n[i-1]&1)<<31;n[0]=n[0]>>>1,l&&(n[0]=n[0]^225<<24)}this.state=s(r)},t.prototype.update=function(n){this.cache=f.concat([this.cache,n]);for(var r;this.cache.length>=16;)r=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(r)},t.prototype.final=function(n,r){return this.cache.length&&this.ghash(f.concat([this.cache,c],16)),this.ghash(s([0,n,0,r])),this.state},d.exports=t},{"safe-buffer":494}],195:[function(e,d,m){function f(c){for(var u=c.length,s;u--;)if(s=c.readUInt8(u),s===255)c.writeUInt8(0,u);else{s++,c.writeUInt8(s,u);break}}d.exports=f},{}],196:[function(e,d,m){var f=e("buffer-xor");m.encrypt=function(c,u){var s=f(u,c._prev);return c._prev=c._cipher.encryptBlock(s),c._prev},m.decrypt=function(c,u){var s=c._prev;c._prev=u;var t=c._cipher.decryptBlock(u);return f(t,s)}},{"buffer-xor":219}],197:[function(e,d,m){var f=e("safe-buffer").Buffer,c=e("buffer-xor");function u(s,t,n){var r=t.length,i=c(t,s._cache);return s._cache=s._cache.slice(r),s._prev=f.concat([s._prev,n?t:i]),i}m.encrypt=function(s,t,n){for(var r=f.allocUnsafe(0),i;t.length;)if(s._cache.length===0&&(s._cache=s._cipher.encryptBlock(s._prev),s._prev=f.allocUnsafe(0)),s._cache.length<=t.length)i=s._cache.length,r=f.concat([r,u(s,t.slice(0,i),n)]),t=t.slice(i);else{r=f.concat([r,u(s,t,n)]);break}return r}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,d,m){var f=e("safe-buffer").Buffer;function c(s,t,n){for(var r,i=-1,o=8,l=0,a,g;++i<o;)r=s._cipher.encryptBlock(s._prev),a=t&1<<7-i?128:0,g=r[0]^a,l+=(g&128)>>i%8,s._prev=u(s._prev,n?a:g);return l}function u(s,t){var n=s.length,r=-1,i=f.allocUnsafe(s.length);for(s=f.concat([s,f.from([t])]);++r<n;)i[r]=s[r]<<1|s[r+1]>>7;return i}m.encrypt=function(s,t,n){for(var r=t.length,i=f.allocUnsafe(r),o=-1;++o<r;)i[o]=c(s,t[o],n);return i}},{"safe-buffer":494}],199:[function(e,d,m){var f=e("safe-buffer").Buffer;function c(u,s,t){var n=u._cipher.encryptBlock(u._prev),r=n[0]^s;return u._prev=f.concat([u._prev.slice(1),f.from([t?s:r])]),r}m.encrypt=function(u,s,t){for(var n=s.length,r=f.allocUnsafe(n),i=-1;++i<n;)r[i]=c(u,s[i],t);return r}},{"safe-buffer":494}],200:[function(e,d,m){var f=e("buffer-xor"),c=e("safe-buffer").Buffer,u=e("../incr32");function s(n){var r=n._cipher.encryptBlockRaw(n._prev);return u(n._prev),r}var t=16;m.encrypt=function(n,r){var i=Math.ceil(r.length/t),o=n._cache.length;n._cache=c.concat([n._cache,c.allocUnsafe(i*t)]);for(var l=0;l<i;l++){var a=s(n),g=o+l*t;n._cache.writeUInt32BE(a[0],g+0),n._cache.writeUInt32BE(a[1],g+4),n._cache.writeUInt32BE(a[2],g+8),n._cache.writeUInt32BE(a[3],g+12)}var v=n._cache.slice(0,r.length);return n._cache=n._cache.slice(r.length),f(r,v)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,d,m){m.encrypt=function(f,c){return f._cipher.encryptBlock(c)},m.decrypt=function(f,c){return f._cipher.decryptBlock(c)}},{}],202:[function(e,d,m){var f={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},c=e("./list.json");for(var u in c)c[u].module=f[c[u].mode];d.exports=c},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,d,m){d.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(e,d,m){(function(f){(function(){var c=e("buffer-xor");function u(s){return s._prev=s._cipher.encryptBlock(s._prev),s._prev}m.encrypt=function(s,t){for(;s._cache.length<t.length;)s._cache=f.concat([s._cache,u(s)]);var n=s._cache.slice(0,t.length);return s._cache=s._cache.slice(t.length),c(t,n)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,d,m){var f=e("./aes"),c=e("safe-buffer").Buffer,u=e("cipher-base"),s=e("inherits");function t(n,r,i,o){u.call(this),this._cipher=new f.AES(r),this._prev=c.from(i),this._cache=c.allocUnsafe(0),this._secCache=c.allocUnsafe(0),this._decrypt=o,this._mode=n}s(t,u),t.prototype._update=function(n){return this._mode.encrypt(this,n,this._decrypt)},t.prototype._final=function(){this._cipher.scrub()},d.exports=t},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,d,m){var f=e("browserify-des"),c=e("browserify-aes/browser"),u=e("browserify-aes/modes"),s=e("browserify-des/modes"),t=e("evp_bytestokey");function n(a,g){a=a.toLowerCase();var v,h;if(u[a])v=u[a].key,h=u[a].iv;else if(s[a])v=s[a].key*8,h=s[a].iv;else throw new TypeError("invalid suite type");var w=t(g,!1,v,h);return i(a,w.key,w.iv)}function r(a,g){a=a.toLowerCase();var v,h;if(u[a])v=u[a].key,h=u[a].iv;else if(s[a])v=s[a].key*8,h=s[a].iv;else throw new TypeError("invalid suite type");var w=t(g,!1,v,h);return o(a,w.key,w.iv)}function i(a,g,v){if(a=a.toLowerCase(),u[a])return c.createCipheriv(a,g,v);if(s[a])return new f({key:g,iv:v,mode:a});throw new TypeError("invalid suite type")}function o(a,g,v){if(a=a.toLowerCase(),u[a])return c.createDecipheriv(a,g,v);if(s[a])return new f({key:g,iv:v,mode:a,decrypt:!0});throw new TypeError("invalid suite type")}function l(){return Object.keys(s).concat(c.getCiphers())}m.createCipher=m.Cipher=n,m.createCipheriv=m.Cipheriv=i,m.createDecipher=m.Decipher=r,m.createDecipheriv=m.Decipheriv=o,m.listCiphers=m.getCiphers=l},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,d,m){var f=e("cipher-base"),c=e("des.js"),u=e("inherits"),s=e("safe-buffer").Buffer,t={"des-ede3-cbc":c.CBC.instantiate(c.EDE),"des-ede3":c.EDE,"des-ede-cbc":c.CBC.instantiate(c.EDE),"des-ede":c.EDE,"des-cbc":c.CBC.instantiate(c.DES),"des-ecb":c.DES};t.des=t["des-cbc"],t.des3=t["des-ede3-cbc"],d.exports=n,u(n,f);function n(r){f.call(this);var i=r.mode.toLowerCase(),o=t[i],l;r.decrypt?l="decrypt":l="encrypt";var a=r.key;s.isBuffer(a)||(a=s.from(a)),(i==="des-ede"||i==="des-ede-cbc")&&(a=s.concat([a,a.slice(0,8)]));var g=r.iv;s.isBuffer(g)||(g=s.from(g)),this._des=o.create({key:a,iv:g,type:l})}n.prototype._update=function(r){return s.from(this._des.update(r))},n.prototype._final=function(){return s.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,d,m){m["des-ecb"]={key:8,iv:0},m["des-cbc"]=m.des={key:8,iv:8},m["des-ede3-cbc"]=m.des3={key:24,iv:8},m["des-ede3"]={key:24,iv:0},m["des-ede-cbc"]={key:16,iv:8},m["des-ede"]={key:16,iv:0}},{}],209:[function(e,d,m){(function(f){(function(){var c=e("bn.js"),u=e("randombytes");function s(r){var i=t(r),o=i.toRed(c.mont(r.modulus)).redPow(new c(r.publicExponent)).fromRed();return{blinder:o,unblinder:i.invm(r.modulus)}}function t(r){var i=r.modulus.byteLength(),o;do o=new c(u(i));while(o.cmp(r.modulus)>=0||!o.umod(r.prime1)||!o.umod(r.prime2));return o}function n(r,i){var o=s(i),l=i.modulus.byteLength(),a=new c(r).mul(o.blinder).umod(i.modulus),g=a.toRed(c.mont(i.prime1)),v=a.toRed(c.mont(i.prime2)),h=i.coefficient,w=i.prime1,y=i.prime2,S=g.redPow(i.exponent1).fromRed(),E=v.redPow(i.exponent2).fromRed(),I=S.isub(E).imul(h).umod(w).imul(y);return E.iadd(I).imul(o.unblinder).umod(i.modulus).toArrayLike(f,"be",l)}n.getr=t,d.exports=n}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,d,m){d.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,d,m){d.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(e,d,m){d.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(e,d,m){var f=e("safe-buffer").Buffer,c=e("create-hash"),u=e("readable-stream"),s=e("inherits"),t=e("./sign"),n=e("./verify"),r=e("./algorithms.json");Object.keys(r).forEach(function(g){r[g].id=f.from(r[g].id,"hex"),r[g.toLowerCase()]=r[g]});function i(g){u.Writable.call(this);var v=r[g];if(!v)throw new Error("Unknown message digest");this._hashType=v.hash,this._hash=c(v.hash),this._tag=v.id,this._signType=v.sign}s(i,u.Writable),i.prototype._write=function(v,h,w){this._hash.update(v),w()},i.prototype.update=function(v,h){return typeof v=="string"&&(v=f.from(v,h)),this._hash.update(v),this},i.prototype.sign=function(v,h){this.end();var w=this._hash.digest(),y=t(w,v,this._hashType,this._signType,this._tag);return h?y.toString(h):y};function o(g){u.Writable.call(this);var v=r[g];if(!v)throw new Error("Unknown message digest");this._hash=c(v.hash),this._tag=v.id,this._signType=v.sign}s(o,u.Writable),o.prototype._write=function(v,h,w){this._hash.update(v),w()},o.prototype.update=function(v,h){return typeof v=="string"&&(v=f.from(v,h)),this._hash.update(v),this},o.prototype.verify=function(v,h,w){typeof h=="string"&&(h=f.from(h,w)),this.end();var y=this._hash.digest();return n(h,y,v,this._signType,this._tag)};function l(g){return new i(g)}function a(g){return new o(g)}d.exports={Sign:l,Verify:a,createSign:l,createVerify:a}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,d,m){var f=e("safe-buffer").Buffer,c=e("create-hmac"),u=e("browserify-rsa"),s=e("elliptic").ec,t=e("bn.js"),n=e("parse-asn1"),r=e("./curves.json");function i(S,E,I,F,B){var j=n(E);if(j.curve){if(F!=="ecdsa"&&F!=="ecdsa/rsa")throw new Error("wrong private key type");return o(S,j)}else if(j.type==="dsa"){if(F!=="dsa")throw new Error("wrong private key type");return l(S,j,I)}else if(F!=="rsa"&&F!=="ecdsa/rsa")throw new Error("wrong private key type");S=f.concat([B,S]);for(var X=j.modulus.byteLength(),G=[0,1];S.length+G.length+1<X;)G.push(255);G.push(0);for(var V=-1;++V<S.length;)G.push(S[V]);var J=u(G,j);return J}function o(S,E){var I=r[E.curve.join(".")];if(!I)throw new Error("unknown curve "+E.curve.join("."));var F=new s(I),B=F.keyFromPrivate(E.privateKey),j=B.sign(S);return f.from(j.toDER())}function l(S,E,I){for(var F=E.params.priv_key,B=E.params.p,j=E.params.q,X=E.params.g,G=new t(0),V,J=v(S,j).mod(j),H=!1,M=g(F,j,S,I);H===!1;)V=w(j,M,I),G=y(X,V,B,j),H=V.invm(j).imul(J.add(F.mul(G))).mod(j),H.cmpn(0)===0&&(H=!1,G=new t(0));return a(G,H)}function a(S,E){S=S.toArray(),E=E.toArray(),S[0]&128&&(S=[0].concat(S)),E[0]&128&&(E=[0].concat(E));var I=S.length+E.length+4,F=[48,I,2,S.length];return F=F.concat(S,[2,E.length],E),f.from(F)}function g(S,E,I,F){if(S=f.from(S.toArray()),S.length<E.byteLength()){var B=f.alloc(E.byteLength()-S.length);S=f.concat([B,S])}var j=I.length,X=h(I,E),G=f.alloc(j);G.fill(1);var V=f.alloc(j);return V=c(F,V).update(G).update(f.from([0])).update(S).update(X).digest(),G=c(F,V).update(G).digest(),V=c(F,V).update(G).update(f.from([1])).update(S).update(X).digest(),G=c(F,V).update(G).digest(),{k:V,v:G}}function v(S,E){var I=new t(S),F=(S.length<<3)-E.bitLength();return F>0&&I.ishrn(F),I}function h(S,E){S=v(S,E),S=S.mod(E);var I=f.from(S.toArray());if(I.length<E.byteLength()){var F=f.alloc(E.byteLength()-I.length);I=f.concat([F,I])}return I}function w(S,E,I){var F,B;do{for(F=f.alloc(0);F.length*8<S.bitLength();)E.v=c(I,E.k).update(E.v).digest(),F=f.concat([F,E.v]);B=v(F,S),E.k=c(I,E.k).update(E.v).update(f.from([0])).digest(),E.v=c(I,E.k).update(E.v).digest()}while(B.cmp(S)!==-1);return B}function y(S,E,I,F){return S.toRed(t.mont(I)).redPow(E).fromRed().mod(F)}d.exports=i,d.exports.getKey=g,d.exports.makeKey=w},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,d,m){var f=e("safe-buffer").Buffer,c=e("bn.js"),u=e("elliptic").ec,s=e("parse-asn1"),t=e("./curves.json");function n(l,a,g,v,h){var w=s(g);if(w.type==="ec"){if(v!=="ecdsa"&&v!=="ecdsa/rsa")throw new Error("wrong public key type");return r(l,a,w)}else if(w.type==="dsa"){if(v!=="dsa")throw new Error("wrong public key type");return i(l,a,w)}else if(v!=="rsa"&&v!=="ecdsa/rsa")throw new Error("wrong public key type");a=f.concat([h,a]);for(var y=w.modulus.byteLength(),S=[1],E=0;a.length+S.length+2<y;)S.push(255),E++;S.push(0);for(var I=-1;++I<a.length;)S.push(a[I]);S=f.from(S);var F=c.mont(w.modulus);l=new c(l).toRed(F),l=l.redPow(new c(w.publicExponent)),l=f.from(l.fromRed().toArray());var B=E<8?1:0;for(y=Math.min(l.length,S.length),l.length!==S.length&&(B=1),I=-1;++I<y;)B|=l[I]^S[I];return B===0}function r(l,a,g){var v=t[g.data.algorithm.curve.join(".")];if(!v)throw new Error("unknown curve "+g.data.algorithm.curve.join("."));var h=new u(v),w=g.data.subjectPrivateKey.data;return h.verify(a,l,w)}function i(l,a,g){var v=g.data.p,h=g.data.q,w=g.data.g,y=g.data.pub_key,S=s.signature.decode(l,"der"),E=S.s,I=S.r;o(E,h),o(I,h);var F=c.mont(v),B=E.invm(h),j=w.toRed(F).redPow(new c(a).mul(B).mod(h)).fromRed().mul(y.toRed(F).redPow(I.mul(B).mod(h)).fromRed()).mod(v).mod(h);return j.cmp(I)===0}function o(l,a){if(l.cmpn(0)<=0)throw new Error("invalid sig");if(l.cmp(a)>=a)throw new Error("invalid sig")}d.exports=n},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,d,m){},{}],217:[function(e,d,m){var f=e("buffer"),c=f.Buffer;function u(t,n){for(var r in t)n[r]=t[r]}c.from&&c.alloc&&c.allocUnsafe&&c.allocUnsafeSlow?d.exports=f:(u(f,m),m.Buffer=s);function s(t,n,r){return c(t,n,r)}u(c,s),s.from=function(t,n,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return c(t,n,r)},s.alloc=function(t,n,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=c(t);return n!==void 0?typeof r=="string"?i.fill(n,r):i.fill(n):i.fill(0),i},s.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return c(t)},s.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return f.SlowBuffer(t)}},{buffer:220}],218:[function(e,d,m){var f=e("safe-buffer").Buffer,c=f.isEncoding||function(E){switch(E=""+E,E&&E.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 u(E){if(!E)return"utf8";for(var I;;)switch(E){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 E;default:if(I)return;E=(""+E).toLowerCase(),I=!0}}function s(E){var I=u(E);if(typeof I!="string"&&(f.isEncoding===c||!c(E)))throw new Error("Unknown encoding: "+E);return I||E}m.StringDecoder=t;function t(E){this.encoding=s(E);var I;switch(this.encoding){case"utf16le":this.text=g,this.end=v,I=4;break;case"utf8":this.fillLast=o,I=4;break;case"base64":this.text=h,this.end=w,I=3;break;default:this.write=y,this.end=S;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=f.allocUnsafe(I)}t.prototype.write=function(E){if(E.length===0)return"";var I,F;if(this.lastNeed){if(I=this.fillLast(E),I===void 0)return"";F=this.lastNeed,this.lastNeed=0}else F=0;return F<E.length?I?I+this.text(E,F):this.text(E,F):I||""},t.prototype.end=a,t.prototype.text=l,t.prototype.fillLast=function(E){if(this.lastNeed<=E.length)return E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,E.length),this.lastNeed-=E.length};function n(E){return E<=127?0:E>>5===6?2:E>>4===14?3:E>>3===30?4:E>>6===2?-1:-2}function r(E,I,F){var B=I.length-1;if(B<F)return 0;var j=n(I[B]);return j>=0?(j>0&&(E.lastNeed=j-1),j):--B<F||j===-2?0:(j=n(I[B]),j>=0?(j>0&&(E.lastNeed=j-2),j):--B<F||j===-2?0:(j=n(I[B]),j>=0?(j>0&&(j===2?j=0:E.lastNeed=j-3),j):0))}function i(E,I,F){if((I[0]&192)!==128)return E.lastNeed=0,"<22>";if(E.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return E.lastNeed=1,"<22>";if(E.lastNeed>2&&I.length>2&&(I[2]&192)!==128)return E.lastNeed=2,"<22>"}}function o(E){var I=this.lastTotal-this.lastNeed,F=i(this,E);if(F!==void 0)return F;if(this.lastNeed<=E.length)return E.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,I,0,E.length),this.lastNeed-=E.length}function l(E,I){var F=r(this,E,I);if(!this.lastNeed)return E.toString("utf8",I);this.lastTotal=F;var B=E.length-(F-this.lastNeed);return E.copy(this.lastChar,0,B),E.toString("utf8",I,B)}function a(E){var I=E&&E.length?this.write(E):"";return this.lastNeed?I+"<22>":I}function g(E,I){if((E.length-I)%2===0){var F=E.toString("utf16le",I);if(F){var B=F.charCodeAt(F.length-1);if(B>=55296&&B<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1],F.slice(0,-1)}return F}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=E[E.length-1],E.toString("utf16le",I,E.length-1)}function v(E){var I=E&&E.length?this.write(E):"";if(this.lastNeed){var F=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,F)}return I}function h(E,I){var F=(E.length-I)%3;return F===0?E.toString("base64",I):(this.lastNeed=3-F,this.lastTotal=3,F===1?this.lastChar[0]=E[E.length-1]:(this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1]),E.toString("base64",I,E.length-F))}function w(E){var I=E&&E.length?this.write(E):"";return this.lastNeed?I+this.lastChar.toString("base64",0,3-this.lastNeed):I}function y(E){return E.toString(this.encoding)}function S(E){return E&&E.length?this.write(E):""}},{"safe-buffer":217}],219:[function(e,d,m){(function(f){(function(){d.exports=function(u,s){for(var t=Math.min(u.length,s.length),n=new f(t),r=0;r<t;++r)n[r]=u[r]^s[r];return n}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,d,m){(function(f){(function(){var c=e("base64-js"),u=e("ieee754");m.Buffer=r,m.SlowBuffer=S,m.INSPECT_MAX_BYTES=50;var s=2147483647;m.kMaxLength=s,r.TYPED_ARRAY_SUPPORT=t(),!r.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.");function t(){try{var Q=new Uint8Array(1);return Q.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Q.foo()===42}catch{return!1}}Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}});function n(Q){if(Q>s)throw new RangeError('The value "'+Q+'" is invalid for option "size"');var z=new Uint8Array(Q);return z.__proto__=r.prototype,z}function r(Q,z,Y){if(typeof Q=="number"){if(typeof z=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return a(Q)}return i(Q,z,Y)}typeof Symbol<"u"&&Symbol.species!=null&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192;function i(Q,z,Y){if(typeof Q=="string")return g(Q,z);if(ArrayBuffer.isView(Q))return v(Q);if(Q==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(oe(Q,ArrayBuffer)||Q&&oe(Q.buffer,ArrayBuffer))return h(Q,z,Y);if(typeof Q=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var fe=Q.valueOf&&Q.valueOf();if(fe!=null&&fe!==Q)return r.from(fe,z,Y);var we=w(Q);if(we)return we;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]=="function")return r.from(Q[Symbol.toPrimitive]("string"),z,Y);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}r.from=function(Q,z,Y){return i(Q,z,Y)},r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array;function o(Q){if(typeof Q!="number")throw new TypeError('"size" argument must be of type number');if(Q<0)throw new RangeError('The value "'+Q+'" is invalid for option "size"')}function l(Q,z,Y){return o(Q),Q<=0?n(Q):z!==void 0?typeof Y=="string"?n(Q).fill(z,Y):n(Q).fill(z):n(Q)}r.alloc=function(Q,z,Y){return l(Q,z,Y)};function a(Q){return o(Q),n(Q<0?0:y(Q)|0)}r.allocUnsafe=function(Q){return a(Q)},r.allocUnsafeSlow=function(Q){return a(Q)};function g(Q,z){if((typeof z!="string"||z==="")&&(z="utf8"),!r.isEncoding(z))throw new TypeError("Unknown encoding: "+z);var Y=E(Q,z)|0,fe=n(Y),we=fe.write(Q,z);return we!==Y&&(fe=fe.slice(0,we)),fe}function v(Q){for(var z=Q.length<0?0:y(Q.length)|0,Y=n(z),fe=0;fe<z;fe+=1)Y[fe]=Q[fe]&255;return Y}function h(Q,z,Y){if(z<0||Q.byteLength<z)throw new RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<z+(Y||0))throw new RangeError('"length" is outside of buffer bounds');var fe;return z===void 0&&Y===void 0?fe=new Uint8Array(Q):Y===void 0?fe=new Uint8Array(Q,z):fe=new Uint8Array(Q,z,Y),fe.__proto__=r.prototype,fe}function w(Q){if(r.isBuffer(Q)){var z=y(Q.length)|0,Y=n(z);return Y.length===0||Q.copy(Y,0,0,z),Y}if(Q.length!==void 0)return typeof Q.length!="number"||ie(Q.length)?n(0):v(Q);if(Q.type==="Buffer"&&Array.isArray(Q.data))return v(Q.data)}function y(Q){if(Q>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return Q|0}function S(Q){return+Q!=Q&&(Q=0),r.alloc(+Q)}r.isBuffer=function(z){return z!=null&&z._isBuffer===!0&&z!==r.prototype},r.compare=function(z,Y){if(oe(z,Uint8Array)&&(z=r.from(z,z.offset,z.byteLength)),oe(Y,Uint8Array)&&(Y=r.from(Y,Y.offset,Y.byteLength)),!r.isBuffer(z)||!r.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(z===Y)return 0;for(var fe=z.length,we=Y.length,U=0,ve=Math.min(fe,we);U<ve;++U)if(z[U]!==Y[U]){fe=z[U],we=Y[U];break}return fe<we?-1:we<fe?1:0},r.isEncoding=function(z){switch(String(z).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(z,Y){if(!Array.isArray(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return r.alloc(0);var fe;if(Y===void 0)for(Y=0,fe=0;fe<z.length;++fe)Y+=z[fe].length;var we=r.allocUnsafe(Y),U=0;for(fe=0;fe<z.length;++fe){var ve=z[fe];if(oe(ve,Uint8Array)&&(ve=r.from(ve)),!r.isBuffer(ve))throw new TypeError('"list" argument must be an Array of Buffers');ve.copy(we,U),U+=ve.length}return we};function E(Q,z){if(r.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||oe(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);var Y=Q.length,fe=arguments.length>2&&arguments[2]===!0;if(!fe&&Y===0)return 0;for(var we=!1;;)switch(z){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":return te(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return de(Q).length;default:if(we)return fe?-1:te(Q).length;z=(""+z).toLowerCase(),we=!0}}r.byteLength=E;function I(Q,z,Y){var fe=!1;if((z===void 0||z<0)&&(z=0),z>this.length||((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)||(Y>>>=0,z>>>=0,Y<=z))return"";for(Q||(Q="utf8");;)switch(Q){case"hex":return R(this,z,Y);case"utf8":case"utf-8":return _(this,z,Y);case"ascii":return L(this,z,Y);case"latin1":case"binary":return $(this,z,Y);case"base64":return T(this,z,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,z,Y);default:if(fe)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),fe=!0}}r.prototype._isBuffer=!0;function F(Q,z,Y){var fe=Q[z];Q[z]=Q[Y],Q[Y]=fe}r.prototype.swap16=function(){var z=this.length;if(z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<z;Y+=2)F(this,Y,Y+1);return this},r.prototype.swap32=function(){var z=this.length;if(z%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<z;Y+=4)F(this,Y,Y+3),F(this,Y+1,Y+2);return this},r.prototype.swap64=function(){var z=this.length;if(z%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<z;Y+=8)F(this,Y,Y+7),F(this,Y+1,Y+6),F(this,Y+2,Y+5),F(this,Y+3,Y+4);return this},r.prototype.toString=function(){var z=this.length;return z===0?"":arguments.length===0?_(this,0,z):I.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(z){if(!r.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z?!0:r.compare(this,z)===0},r.prototype.inspect=function(){var z="",Y=m.INSPECT_MAX_BYTES;return z=this.toString("hex",0,Y).replace(/(.{2})/g,"$1 ").trim(),this.length>Y&&(z+=" ... "),"<Buffer "+z+">"},r.prototype.compare=function(z,Y,fe,we,U){if(oe(z,Uint8Array)&&(z=r.from(z,z.offset,z.byteLength)),!r.isBuffer(z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof z);if(Y===void 0&&(Y=0),fe===void 0&&(fe=z?z.length:0),we===void 0&&(we=0),U===void 0&&(U=this.length),Y<0||fe>z.length||we<0||U>this.length)throw new RangeError("out of range index");if(we>=U&&Y>=fe)return 0;if(we>=U)return-1;if(Y>=fe)return 1;if(Y>>>=0,fe>>>=0,we>>>=0,U>>>=0,this===z)return 0;for(var ve=U-we,Se=fe-Y,ee=Math.min(ve,Se),se=this.slice(we,U),me=z.slice(Y,fe),Ee=0;Ee<ee;++Ee)if(se[Ee]!==me[Ee]){ve=se[Ee],Se=me[Ee];break}return ve<Se?-1:Se<ve?1:0};function B(Q,z,Y,fe,we){if(Q.length===0)return-1;if(typeof Y=="string"?(fe=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,ie(Y)&&(Y=we?0:Q.length-1),Y<0&&(Y=Q.length+Y),Y>=Q.length){if(we)return-1;Y=Q.length-1}else if(Y<0)if(we)Y=0;else return-1;if(typeof z=="string"&&(z=r.from(z,fe)),r.isBuffer(z))return z.length===0?-1:j(Q,z,Y,fe,we);if(typeof z=="number")return z=z&255,typeof Uint8Array.prototype.indexOf=="function"?we?Uint8Array.prototype.indexOf.call(Q,z,Y):Uint8Array.prototype.lastIndexOf.call(Q,z,Y):j(Q,[z],Y,fe,we);throw new TypeError("val must be string, number or Buffer")}function j(Q,z,Y,fe,we){var U=1,ve=Q.length,Se=z.length;if(fe!==void 0&&(fe=String(fe).toLowerCase(),fe==="ucs2"||fe==="ucs-2"||fe==="utf16le"||fe==="utf-16le")){if(Q.length<2||z.length<2)return-1;U=2,ve/=2,Se/=2,Y/=2}function ee(Ce,Fe){return U===1?Ce[Fe]:Ce.readUInt16BE(Fe*U)}var se;if(we){var me=-1;for(se=Y;se<ve;se++)if(ee(Q,se)===ee(z,me===-1?0:se-me)){if(me===-1&&(me=se),se-me+1===Se)return me*U}else me!==-1&&(se-=se-me),me=-1}else for(Y+Se>ve&&(Y=ve-Se),se=Y;se>=0;se--){for(var Ee=!0,Ie=0;Ie<Se;Ie++)if(ee(Q,se+Ie)!==ee(z,Ie)){Ee=!1;break}if(Ee)return se}return-1}r.prototype.includes=function(z,Y,fe){return this.indexOf(z,Y,fe)!==-1},r.prototype.indexOf=function(z,Y,fe){return B(this,z,Y,fe,!0)},r.prototype.lastIndexOf=function(z,Y,fe){return B(this,z,Y,fe,!1)};function X(Q,z,Y,fe){Y=Number(Y)||0;var we=Q.length-Y;fe?(fe=Number(fe),fe>we&&(fe=we)):fe=we;var U=z.length;fe>U/2&&(fe=U/2);for(var ve=0;ve<fe;++ve){var Se=parseInt(z.substr(ve*2,2),16);if(ie(Se))return ve;Q[Y+ve]=Se}return ve}function G(Q,z,Y,fe){return ke(te(z,Q.length-Y),Q,Y,fe)}function V(Q,z,Y,fe){return ke(Z(z),Q,Y,fe)}function J(Q,z,Y,fe){return V(Q,z,Y,fe)}function H(Q,z,Y,fe){return ke(de(z),Q,Y,fe)}function M(Q,z,Y,fe){return ke(q(z,Q.length-Y),Q,Y,fe)}r.prototype.write=function(z,Y,fe,we){if(Y===void 0)we="utf8",fe=this.length,Y=0;else if(fe===void 0&&typeof Y=="string")we=Y,fe=this.length,Y=0;else if(isFinite(Y))Y=Y>>>0,isFinite(fe)?(fe=fe>>>0,we===void 0&&(we="utf8")):(we=fe,fe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var U=this.length-Y;if((fe===void 0||fe>U)&&(fe=U),z.length>0&&(fe<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");we||(we="utf8");for(var ve=!1;;)switch(we){case"hex":return X(this,z,Y,fe);case"utf8":case"utf-8":return G(this,z,Y,fe);case"ascii":return V(this,z,Y,fe);case"latin1":case"binary":return J(this,z,Y,fe);case"base64":return H(this,z,Y,fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,z,Y,fe);default:if(ve)throw new TypeError("Unknown encoding: "+we);we=(""+we).toLowerCase(),ve=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(Q,z,Y){return z===0&&Y===Q.length?c.fromByteArray(Q):c.fromByteArray(Q.slice(z,Y))}function _(Q,z,Y){Y=Math.min(Q.length,Y);for(var fe=[],we=z;we<Y;){var U=Q[we],ve=null,Se=U>239?4:U>223?3:U>191?2:1;if(we+Se<=Y){var ee,se,me,Ee;switch(Se){case 1:U<128&&(ve=U);break;case 2:ee=Q[we+1],(ee&192)===128&&(Ee=(U&31)<<6|ee&63,Ee>127&&(ve=Ee));break;case 3:ee=Q[we+1],se=Q[we+2],(ee&192)===128&&(se&192)===128&&(Ee=(U&15)<<12|(ee&63)<<6|se&63,Ee>2047&&(Ee<55296||Ee>57343)&&(ve=Ee));break;case 4:ee=Q[we+1],se=Q[we+2],me=Q[we+3],(ee&192)===128&&(se&192)===128&&(me&192)===128&&(Ee=(U&15)<<18|(ee&63)<<12|(se&63)<<6|me&63,Ee>65535&&Ee<1114112&&(ve=Ee))}}ve===null?(ve=65533,Se=1):ve>65535&&(ve-=65536,fe.push(ve>>>10&1023|55296),ve=56320|ve&1023),fe.push(ve),we+=Se}return P(fe)}var A=4096;function P(Q){var z=Q.length;if(z<=A)return String.fromCharCode.apply(String,Q);for(var Y="",fe=0;fe<z;)Y+=String.fromCharCode.apply(String,Q.slice(fe,fe+=A));return Y}function L(Q,z,Y){var fe="";Y=Math.min(Q.length,Y);for(var we=z;we<Y;++we)fe+=String.fromCharCode(Q[we]&127);return fe}function $(Q,z,Y){var fe="";Y=Math.min(Q.length,Y);for(var we=z;we<Y;++we)fe+=String.fromCharCode(Q[we]);return fe}function R(Q,z,Y){var fe=Q.length;(!z||z<0)&&(z=0),(!Y||Y<0||Y>fe)&&(Y=fe);for(var we="",U=z;U<Y;++U)we+=pe(Q[U]);return we}function k(Q,z,Y){for(var fe=Q.slice(z,Y),we="",U=0;U<fe.length;U+=2)we+=String.fromCharCode(fe[U]+fe[U+1]*256);return we}r.prototype.slice=function(z,Y){var fe=this.length;z=~~z,Y=Y===void 0?fe:~~Y,z<0?(z+=fe,z<0&&(z=0)):z>fe&&(z=fe),Y<0?(Y+=fe,Y<0&&(Y=0)):Y>fe&&(Y=fe),Y<z&&(Y=z);var we=this.subarray(z,Y);return we.__proto__=r.prototype,we};function C(Q,z,Y){if(Q%1!==0||Q<0)throw new RangeError("offset is not uint");if(Q+z>Y)throw new RangeError("Trying to access beyond buffer length")}r.prototype.readUIntLE=function(z,Y,fe){z=z>>>0,Y=Y>>>0,fe||C(z,Y,this.length);for(var we=this[z],U=1,ve=0;++ve<Y&&(U*=256);)we+=this[z+ve]*U;return we},r.prototype.readUIntBE=function(z,Y,fe){z=z>>>0,Y=Y>>>0,fe||C(z,Y,this.length);for(var we=this[z+--Y],U=1;Y>0&&(U*=256);)we+=this[z+--Y]*U;return we},r.prototype.readUInt8=function(z,Y){return z=z>>>0,Y||C(z,1,this.length),this[z]},r.prototype.readUInt16LE=function(z,Y){return z=z>>>0,Y||C(z,2,this.length),this[z]|this[z+1]<<8},r.prototype.readUInt16BE=function(z,Y){return z=z>>>0,Y||C(z,2,this.length),this[z]<<8|this[z+1]},r.prototype.readUInt32LE=function(z,Y){return z=z>>>0,Y||C(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},r.prototype.readUInt32BE=function(z,Y){return z=z>>>0,Y||C(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},r.prototype.readIntLE=function(z,Y,fe){z=z>>>0,Y=Y>>>0,fe||C(z,Y,this.length);for(var we=this[z],U=1,ve=0;++ve<Y&&(U*=256);)we+=this[z+ve]*U;return U*=128,we>=U&&(we-=Math.pow(2,8*Y)),we},r.prototype.readIntBE=function(z,Y,fe){z=z>>>0,Y=Y>>>0,fe||C(z,Y,this.length);for(var we=Y,U=1,ve=this[z+--we];we>0&&(U*=256);)ve+=this[z+--we]*U;return U*=128,ve>=U&&(ve-=Math.pow(2,8*Y)),ve},r.prototype.readInt8=function(z,Y){return z=z>>>0,Y||C(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},r.prototype.readInt16LE=function(z,Y){z=z>>>0,Y||C(z,2,this.length);var fe=this[z]|this[z+1]<<8;return fe&32768?fe|4294901760:fe},r.prototype.readInt16BE=function(z,Y){z=z>>>0,Y||C(z,2,this.length);var fe=this[z+1]|this[z]<<8;return fe&32768?fe|4294901760:fe},r.prototype.readInt32LE=function(z,Y){return z=z>>>0,Y||C(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},r.prototype.readInt32BE=function(z,Y){return z=z>>>0,Y||C(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},r.prototype.readFloatLE=function(z,Y){return z=z>>>0,Y||C(z,4,this.length),u.read(this,z,!0,23,4)},r.prototype.readFloatBE=function(z,Y){return z=z>>>0,Y||C(z,4,this.length),u.read(this,z,!1,23,4)},r.prototype.readDoubleLE=function(z,Y){return z=z>>>0,Y||C(z,8,this.length),u.read(this,z,!0,52,8)},r.prototype.readDoubleBE=function(z,Y){return z=z>>>0,Y||C(z,8,this.length),u.read(this,z,!1,52,8)};function O(Q,z,Y,fe,we,U){if(!r.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>we||z<U)throw new RangeError('"value" argument is out of bounds');if(Y+fe>Q.length)throw new RangeError("Index out of range")}r.prototype.writeUIntLE=function(z,Y,fe,we){if(z=+z,Y=Y>>>0,fe=fe>>>0,!we){var U=Math.pow(2,8*fe)-1;O(this,z,Y,fe,U,0)}var ve=1,Se=0;for(this[Y]=z&255;++Se<fe&&(ve*=256);)this[Y+Se]=z/ve&255;return Y+fe},r.prototype.writeUIntBE=function(z,Y,fe,we){if(z=+z,Y=Y>>>0,fe=fe>>>0,!we){var U=Math.pow(2,8*fe)-1;O(this,z,Y,fe,U,0)}var ve=fe-1,Se=1;for(this[Y+ve]=z&255;--ve>=0&&(Se*=256);)this[Y+ve]=z/Se&255;return Y+fe},r.prototype.writeUInt8=function(z,Y,fe){return z=+z,Y=Y>>>0,fe||O(this,z,Y,1,255,0),this[Y]=z&255,Y+1},r.prototype.writeUInt16LE=function(z,Y,fe){return z=+z,Y=Y>>>0,fe||O(this,z,Y,2,65535,0),this[Y]=z&255,this[Y+1]=z>>>8,Y+2},r.prototype.writeUInt16BE=function(z,Y,fe){return z=+z,Y=Y>>>0,fe||O(this,z,Y,2,65535,0),this[Y]=z>>>8,this[Y+1]=z&255,Y+2},r.prototype.writeUInt32LE=function(z,Y,fe){return z=+z,Y=Y>>>0,fe||O(this,z,Y,4,4294967295,0),this[Y+3]=z>>>24,this[Y+2]=z>>>16,this[Y+1]=z>>>8,this[Y]=z&255,Y+4},r.prototype.writeUInt32BE=function(z,Y,fe){return z=+z,Y=Y>>>0,fe||O(this,z,Y,4,4294967295,0),this[Y]=z>>>24,this[Y+1]=z>>>16,this[Y+2]=z>>>8,this[Y+3]=z&255,Y+4},r.prototype.writeIntLE=function(z,Y,fe,we){if(z=+z,Y=Y>>>0,!we){var U=Math.pow(2,8*fe-1);O(this,z,Y,fe,U-1,-U)}var ve=0,Se=1,ee=0;for(this[Y]=z&255;++ve<fe&&(Se*=256);)z<0&&ee===0&&this[Y+ve-1]!==0&&(ee=1),this[Y+ve]=(z/Se>>0)-ee&255;return Y+fe},r.prototype.writeIntBE=function(z,Y,fe,we){if(z=+z,Y=Y>>>0,!we){var U=Math.pow(2,8*fe-1);O(this,z,Y,fe,U-1,-U)}var ve=fe-1,Se=1,ee=0;for(this[Y+ve]=z&255;--ve>=0&&(Se*=256);)z<0&&ee===0&&this[Y+ve+1]!==0&&(ee=1),this[Y+ve]=(z/Se>>0)-ee&255;return Y+fe},r.prototype.writeInt8=function(z,Y,fe){return z=+z,Y=Y>>>0,fe||O(this,z,Y,1,127,-128),z<0&&(z=255+z+1),this[Y]=z&255,Y+1},r.prototype.writeInt16LE=function(z,Y,fe){return z=+z,Y=Y>>>0,fe||O(this,z,Y,2,32767,-32768),this[Y]=z&255,this[Y+1]=z>>>8,Y+2},r.prototype.writeInt16BE=function(z,Y,fe){return z=+z,Y=Y>>>0,fe||O(this,z,Y,2,32767,-32768),this[Y]=z>>>8,this[Y+1]=z&255,Y+2},r.prototype.writeInt32LE=function(z,Y,fe){return z=+z,Y=Y>>>0,fe||O(this,z,Y,4,2147483647,-2147483648),this[Y]=z&255,this[Y+1]=z>>>8,this[Y+2]=z>>>16,this[Y+3]=z>>>24,Y+4},r.prototype.writeInt32BE=function(z,Y,fe){return z=+z,Y=Y>>>0,fe||O(this,z,Y,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),this[Y]=z>>>24,this[Y+1]=z>>>16,this[Y+2]=z>>>8,this[Y+3]=z&255,Y+4};function W(Q,z,Y,fe,we,U){if(Y+fe>Q.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function ne(Q,z,Y,fe,we){return z=+z,Y=Y>>>0,we||W(Q,z,Y,4),u.write(Q,z,Y,fe,23,4),Y+4}r.prototype.writeFloatLE=function(z,Y,fe){return ne(this,z,Y,!0,fe)},r.prototype.writeFloatBE=function(z,Y,fe){return ne(this,z,Y,!1,fe)};function he(Q,z,Y,fe,we){return z=+z,Y=Y>>>0,we||W(Q,z,Y,8),u.write(Q,z,Y,fe,52,8),Y+8}r.prototype.writeDoubleLE=function(z,Y,fe){return he(this,z,Y,!0,fe)},r.prototype.writeDoubleBE=function(z,Y,fe){return he(this,z,Y,!1,fe)},r.prototype.copy=function(z,Y,fe,we){if(!r.isBuffer(z))throw new TypeError("argument should be a Buffer");if(fe||(fe=0),!we&&we!==0&&(we=this.length),Y>=z.length&&(Y=z.length),Y||(Y=0),we>0&&we<fe&&(we=fe),we===fe||z.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(fe<0||fe>=this.length)throw new RangeError("Index out of range");if(we<0)throw new RangeError("sourceEnd out of bounds");we>this.length&&(we=this.length),z.length-Y<we-fe&&(we=z.length-Y+fe);var U=we-fe;if(this===z&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Y,fe,we);else if(this===z&&fe<Y&&Y<we)for(var ve=U-1;ve>=0;--ve)z[ve+Y]=this[ve+fe];else Uint8Array.prototype.set.call(z,this.subarray(fe,we),Y);return U},r.prototype.fill=function(z,Y,fe,we){if(typeof z=="string"){if(typeof Y=="string"?(we=Y,Y=0,fe=this.length):typeof fe=="string"&&(we=fe,fe=this.length),we!==void 0&&typeof we!="string")throw new TypeError("encoding must be a string");if(typeof we=="string"&&!r.isEncoding(we))throw new TypeError("Unknown encoding: "+we);if(z.length===1){var U=z.charCodeAt(0);(we==="utf8"&&U<128||we==="latin1")&&(z=U)}}else typeof z=="number"&&(z=z&255);if(Y<0||this.length<Y||this.length<fe)throw new RangeError("Out of range index");if(fe<=Y)return this;Y=Y>>>0,fe=fe===void 0?this.length:fe>>>0,z||(z=0);var ve;if(typeof z=="number")for(ve=Y;ve<fe;++ve)this[ve]=z;else{var Se=r.isBuffer(z)?z:r.from(z,we),ee=Se.length;if(ee===0)throw new TypeError('The value "'+z+'" is invalid for argument "value"');for(ve=0;ve<fe-Y;++ve)this[ve+Y]=Se[ve%ee]}return this};var ue=/[^+/0-9A-Za-z-_]/g;function Ae(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(ue,""),Q.length<2)return"";for(;Q.length%4!==0;)Q=Q+"=";return Q}function pe(Q){return Q<16?"0"+Q.toString(16):Q.toString(16)}function te(Q,z){z=z||1/0;for(var Y,fe=Q.length,we=null,U=[],ve=0;ve<fe;++ve){if(Y=Q.charCodeAt(ve),Y>55295&&Y<57344){if(!we){if(Y>56319){(z-=3)>-1&&U.push(239,191,189);continue}else if(ve+1===fe){(z-=3)>-1&&U.push(239,191,189);continue}we=Y;continue}if(Y<56320){(z-=3)>-1&&U.push(239,191,189),we=Y;continue}Y=(we-55296<<10|Y-56320)+65536}else we&&(z-=3)>-1&&U.push(239,191,189);if(we=null,Y<128){if((z-=1)<0)break;U.push(Y)}else if(Y<2048){if((z-=2)<0)break;U.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((z-=3)<0)break;U.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((z-=4)<0)break;U.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return U}function Z(Q){for(var z=[],Y=0;Y<Q.length;++Y)z.push(Q.charCodeAt(Y)&255);return z}function q(Q,z){for(var Y,fe,we,U=[],ve=0;ve<Q.length&&!((z-=2)<0);++ve)Y=Q.charCodeAt(ve),fe=Y>>8,we=Y%256,U.push(we),U.push(fe);return U}function de(Q){return c.toByteArray(Ae(Q))}function ke(Q,z,Y,fe){for(var we=0;we<fe&&!(we+Y>=z.length||we>=Q.length);++we)z[we+Y]=Q[we];return we}function oe(Q,z){return Q instanceof z||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===z.name}function ie(Q){return Q!==Q}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,d,m){var f=e("safe-buffer").Buffer,c=e("stream").Transform,u=e("string_decoder").StringDecoder,s=e("inherits");function t(n){c.call(this),this.hashMode=typeof n=="string",this.hashMode?this[n]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}s(t,c),t.prototype.update=function(n,r,i){typeof n=="string"&&(n=f.from(n,r));var o=this._update(n);return this.hashMode?this:(i&&(o=this._toString(o,i)),o)},t.prototype.setAutoPadding=function(){},t.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},t.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},t.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},t.prototype._transform=function(n,r,i){var o;try{this.hashMode?this._update(n):this.push(this._update(n))}catch(l){o=l}finally{i(o)}},t.prototype._flush=function(n){var r;try{this.push(this.__final())}catch(i){r=i}n(r)},t.prototype._finalOrDigest=function(n){var r=this.__final()||f.alloc(0);return n&&(r=this._toString(r,n,!0)),r},t.prototype._toString=function(n,r,i){if(this._decoder||(this._decoder=new u(r),this._encoding=r),this._encoding!==r)throw new Error("can't switch encodings");var o=this._decoder.write(n);return i&&(o+=this._decoder.end()),o},d.exports=t},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,d,m){var f=e("../internals/is-callable"),c=e("../internals/try-to-string"),u=TypeError;d.exports=function(s){if(f(s))return s;throw new u(c(s)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,d,m){var f=e("../internals/is-constructor"),c=e("../internals/try-to-string"),u=TypeError;d.exports=function(s){if(f(s))return s;throw new u(c(s)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,d,m){var f=e("../internals/is-callable"),c=String,u=TypeError;d.exports=function(s){if(typeof s=="object"||f(s))return s;throw new u("Can't set "+c(s)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,d,m){var f=e("../internals/well-known-symbol"),c=e("../internals/object-create"),u=e("../internals/object-define-property").f,s=f("unscopables"),t=Array.prototype;t[s]===void 0&&u(t,s,{configurable:!0,value:c(null)}),d.exports=function(n){t[s][n]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,d,m){var f=e("../internals/object-is-prototype-of"),c=TypeError;d.exports=function(u,s){if(f(s,u))return u;throw new c("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,d,m){var f=e("../internals/is-object"),c=String,u=TypeError;d.exports=function(s){if(f(s))return s;throw new u(c(s)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,d,m){var f=e("../internals/to-indexed-object"),c=e("../internals/to-absolute-index"),u=e("../internals/length-of-array-like"),s=function(t){return function(n,r,i){var o=f(n),l=u(o),a=c(i,l),g;if(t&&r!==r){for(;l>a;)if(g=o[a++],g!==g)return!0}else for(;l>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}};d.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,d,m){var f=e("../internals/function-bind-context"),c=e("../internals/function-uncurry-this"),u=e("../internals/indexed-object"),s=e("../internals/to-object"),t=e("../internals/length-of-array-like"),n=e("../internals/array-species-create"),r=c([].push),i=function(o){var l=o===1,a=o===2,g=o===3,v=o===4,h=o===6,w=o===7,y=o===5||h;return function(S,E,I,F){for(var B=s(S),j=u(B),X=f(E,I),G=t(j),V=0,J=F||n,H=l?J(S,G):a||w?J(S,0):void 0,M,T;G>V;V++)if((y||V in j)&&(M=j[V],T=X(M,V,B),o))if(l)H[V]=T;else if(T)switch(o){case 3:return!0;case 5:return M;case 6:return V;case 2:r(H,M)}else switch(o){case 4:return!1;case 7:r(H,M)}return h?-1:g||v?v:H}};d.exports={forEach:i(0),map:i(1),filter:i(2),some:i(3),every:i(4),find:i(5),findIndex:i(6),filterReject:i(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(e,d,m){var f=e("../internals/to-absolute-index"),c=e("../internals/length-of-array-like"),u=e("../internals/create-property"),s=Array,t=Math.max;d.exports=function(n,r,i){for(var o=c(n),l=f(r,o),a=f(i===void 0?o:i,o),g=s(t(a-l,0)),v=0;l<a;l++,v++)u(g,v,n[l]);return g.length=v,g}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,d,m){var f=e("../internals/function-uncurry-this");d.exports=f([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,d,m){var f=e("../internals/is-array"),c=e("../internals/is-constructor"),u=e("../internals/is-object"),s=e("../internals/well-known-symbol"),t=s("species"),n=Array;d.exports=function(r){var i;return f(r)&&(i=r.constructor,c(i)&&(i===n||f(i.prototype))?i=void 0:u(i)&&(i=i[t],i===null&&(i=void 0))),i===void 0?n:i}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,d,m){var f=e("../internals/array-species-constructor");d.exports=function(c,u){return new(f(c))(u===0?0:u)}},{"../internals/array-species-constructor":232}],234:[function(e,d,m){var f=e("../internals/well-known-symbol"),c=f("iterator"),u=!1;try{var s=0,t={next:function(){return{done:!!s++}},return:function(){u=!0}};t[c]=function(){return this},Array.from(t,function(){throw 2})}catch{}d.exports=function(n,r){try{if(!r&&!u)return!1}catch{return!1}var i=!1;try{var o={};o[c]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch{}return i}},{"../internals/well-known-symbol":357}],235:[function(e,d,m){var f=e("../internals/function-uncurry-this"),c=f({}.toString),u=f("".slice);d.exports=function(s){return u(c(s),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,d,m){var f=e("../internals/to-string-tag-support"),c=e("../internals/is-callable"),u=e("../internals/classof-raw"),s=e("../internals/well-known-symbol"),t=s("toStringTag"),n=Object,r=u(function(){return arguments}())==="Arguments",i=function(o,l){try{return o[l]}catch{}};d.exports=f?u:function(o){var l,a,g;return o===void 0?"Undefined":o===null?"Null":typeof(a=i(l=n(o),t))=="string"?a:r?u(l):(g=u(l))==="Object"&&c(l.callee)?"Arguments":g}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,d,m){var f=e("../internals/has-own-property"),c=e("../internals/own-keys"),u=e("../internals/object-get-own-property-descriptor"),s=e("../internals/object-define-property");d.exports=function(t,n,r){for(var i=c(n),o=s.f,l=u.f,a=0;a<i.length;a++){var g=i[a];!f(t,g)&&!(r&&f(r,g))&&o(t,g,l(n,g))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,d,m){var f=e("../internals/well-known-symbol"),c=f("match");d.exports=function(u){var s=/./;try{"/./"[u](s)}catch{try{return s[c]=!1,"/./"[u](s)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,d,m){var f=e("../internals/fails");d.exports=!f(function(){function c(){}return c.prototype.constructor=null,Object.getPrototypeOf(new c)!==c.prototype})},{"../internals/fails":260}],240:[function(e,d,m){d.exports=function(f,c){return{value:f,done:c}}},{}],241:[function(e,d,m){var f=e("../internals/descriptors"),c=e("../internals/object-define-property"),u=e("../internals/create-property-descriptor");d.exports=f?function(s,t,n){return c.f(s,t,u(1,n))}:function(s,t,n){return s[t]=n,s}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,d,m){d.exports=function(f,c){return{enumerable:!(f&1),configurable:!(f&2),writable:!(f&4),value:c}}},{}],243:[function(e,d,m){var f=e("../internals/to-property-key"),c=e("../internals/object-define-property"),u=e("../internals/create-property-descriptor");d.exports=function(s,t,n){var r=f(t);r in s?c.f(s,r,u(0,n)):s[r]=n}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,d,m){var f=e("../internals/make-built-in"),c=e("../internals/object-define-property");d.exports=function(u,s,t){return t.get&&f(t.get,s,{getter:!0}),t.set&&f(t.set,s,{setter:!0}),c.f(u,s,t)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,d,m){var f=e("../internals/is-callable"),c=e("../internals/object-define-property"),u=e("../internals/make-built-in"),s=e("../internals/define-global-property");d.exports=function(t,n,r,i){i||(i={});var o=i.enumerable,l=i.name!==void 0?i.name:n;if(f(r)&&u(r,l,i),i.global)o?t[n]=r:s(n,r);else{try{i.unsafe?t[n]&&(o=!0):delete t[n]}catch{}o?t[n]=r:c.f(t,n,{value:r,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,d,m){var f=e("../internals/global"),c=Object.defineProperty;d.exports=function(u,s){try{c(f,u,{value:s,configurable:!0,writable:!0})}catch{f[u]=s}return s}},{"../internals/global":274}],247:[function(e,d,m){var f=e("../internals/fails");d.exports=!f(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},{"../internals/fails":260}],248:[function(e,d,m){var f=typeof document=="object"&&document.all,c=typeof f>"u"&&f!==void 0;d.exports={all:f,IS_HTMLDDA:c}},{}],249:[function(e,d,m){var f=e("../internals/global"),c=e("../internals/is-object"),u=f.document,s=c(u)&&c(u.createElement);d.exports=function(t){return s?u.createElement(t):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,d,m){var f=e("../internals/engine-is-deno"),c=e("../internals/engine-is-node");d.exports=!f&&!c&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,d,m){d.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(e,d,m){var f=e("../internals/engine-user-agent");d.exports=/ipad|iphone|ipod/i.test(f)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(e,d,m){var f=e("../internals/engine-user-agent");d.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(f)},{"../internals/engine-user-agent":256}],254:[function(e,d,m){var f=e("../internals/global"),c=e("../internals/classof-raw");d.exports=c(f.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,d,m){var f=e("../internals/engine-user-agent");d.exports=/web0s(?!.*chrome)/i.test(f)},{"../internals/engine-user-agent":256}],256:[function(e,d,m){d.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(e,d,m){var f=e("../internals/global"),c=e("../internals/engine-user-agent"),u=f.process,s=f.Deno,t=u&&u.versions||s&&s.version,n=t&&t.v8,r,i;n&&(r=n.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&c&&(r=c.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),d.exports=i},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,d,m){d.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,d,m){var f=e("../internals/global"),c=e("../internals/object-get-own-property-descriptor").f,u=e("../internals/create-non-enumerable-property"),s=e("../internals/define-built-in"),t=e("../internals/define-global-property"),n=e("../internals/copy-constructor-properties"),r=e("../internals/is-forced");d.exports=function(i,o){var l=i.target,a=i.global,g=i.stat,v,h,w,y,S,E;if(a?h=f:g?h=f[l]||t(l,{}):h=(f[l]||{}).prototype,h)for(w in o){if(S=o[w],i.dontCallGetSet?(E=c(h,w),y=E&&E.value):y=h[w],v=r(a?w:l+(g?".":"#")+w,i.forced),!v&&y!==void 0){if(typeof S==typeof y)continue;n(S,y)}(i.sham||y&&y.sham)&&u(S,"sham",!0),s(h,w,S,i)}}},{"../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(e,d,m){d.exports=function(f){try{return!!f()}catch{return!0}}},{}],261:[function(e,d,m){var f=e("../internals/function-bind-native"),c=Function.prototype,u=c.apply,s=c.call;d.exports=typeof Reflect=="object"&&Reflect.apply||(f?s.bind(u):function(){return s.apply(u,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,d,m){var f=e("../internals/function-uncurry-this-clause"),c=e("../internals/a-callable"),u=e("../internals/function-bind-native"),s=f(f.bind);d.exports=function(t,n){return c(t),n===void 0?t:u?s(t,n):function(){return t.apply(n,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,d,m){var f=e("../internals/fails");d.exports=!f(function(){var c=(function(){}).bind();return typeof c!="function"||c.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(e,d,m){var f=e("../internals/function-bind-native"),c=Function.prototype.call;d.exports=f?c.bind(c):function(){return c.apply(c,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,d,m){var f=e("../internals/descriptors"),c=e("../internals/has-own-property"),u=Function.prototype,s=f&&Object.getOwnPropertyDescriptor,t=c(u,"name"),n=t&&(function(){}).name==="something",r=t&&(!f||f&&s(u,"name").configurable);d.exports={EXISTS:t,PROPER:n,CONFIGURABLE:r}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,d,m){var f=e("../internals/function-uncurry-this"),c=e("../internals/a-callable");d.exports=function(u,s,t){try{return f(c(Object.getOwnPropertyDescriptor(u,s)[t]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,d,m){var f=e("../internals/classof-raw"),c=e("../internals/function-uncurry-this");d.exports=function(u){if(f(u)==="Function")return c(u)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,d,m){var f=e("../internals/function-bind-native"),c=Function.prototype,u=c.call,s=f&&c.bind.bind(u,u);d.exports=f?s:function(t){return function(){return u.apply(t,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,d,m){var f=e("../internals/global"),c=e("../internals/is-callable"),u=function(s){return c(s)?s:void 0};d.exports=function(s,t){return arguments.length<2?u(f[s]):f[s]&&f[s][t]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,d,m){var f=e("../internals/classof"),c=e("../internals/get-method"),u=e("../internals/is-null-or-undefined"),s=e("../internals/iterators"),t=e("../internals/well-known-symbol"),n=t("iterator");d.exports=function(r){if(!u(r))return c(r,n)||c(r,"@@iterator")||s[f(r)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,d,m){var f=e("../internals/function-call"),c=e("../internals/a-callable"),u=e("../internals/an-object"),s=e("../internals/try-to-string"),t=e("../internals/get-iterator-method"),n=TypeError;d.exports=function(r,i){var o=arguments.length<2?t(r):i;if(c(o))return u(f(o,r));throw new n(s(r)+" 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(e,d,m){var f=e("../internals/function-uncurry-this"),c=e("../internals/is-array"),u=e("../internals/is-callable"),s=e("../internals/classof-raw"),t=e("../internals/to-string"),n=f([].push);d.exports=function(r){if(u(r))return r;if(c(r)){for(var i=r.length,o=[],l=0;l<i;l++){var a=r[l];typeof a=="string"?n(o,a):(typeof a=="number"||s(a)==="Number"||s(a)==="String")&&n(o,t(a))}var g=o.length,v=!0;return function(h,w){if(v)return v=!1,w;if(c(this))return w;for(var y=0;y<g;y++)if(o[y]===h)return w}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,d,m){var f=e("../internals/a-callable"),c=e("../internals/is-null-or-undefined");d.exports=function(u,s){var t=u[s];return c(t)?void 0:f(t)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,d,m){(function(f){(function(){var c=function(u){return u&&u.Math===Math&&u};d.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof f=="object"&&f)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(e,d,m){var f=e("../internals/function-uncurry-this"),c=e("../internals/to-object"),u=f({}.hasOwnProperty);d.exports=Object.hasOwn||function(t,n){return u(c(t),n)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,d,m){d.exports={}},{}],277:[function(e,d,m){d.exports=function(f,c){try{arguments.length===1?console.error(f):console.error(f,c)}catch{}}},{}],278:[function(e,d,m){var f=e("../internals/get-built-in");d.exports=f("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,d,m){var f=e("../internals/descriptors"),c=e("../internals/fails"),u=e("../internals/document-create-element");d.exports=!f&&!c(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!==7})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,d,m){var f=e("../internals/function-uncurry-this"),c=e("../internals/fails"),u=e("../internals/classof-raw"),s=Object,t=f("".split);d.exports=c(function(){return!s("z").propertyIsEnumerable(0)})?function(n){return u(n)==="String"?t(n,""):s(n)}:s},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,d,m){var f=e("../internals/function-uncurry-this"),c=e("../internals/is-callable"),u=e("../internals/shared-store"),s=f(Function.toString);c(u.inspectSource)||(u.inspectSource=function(t){return s(t)}),d.exports=u.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,d,m){var f=e("../internals/weak-map-basic-detection"),c=e("../internals/global"),u=e("../internals/is-object"),s=e("../internals/create-non-enumerable-property"),t=e("../internals/has-own-property"),n=e("../internals/shared-store"),r=e("../internals/shared-key"),i=e("../internals/hidden-keys"),o="Object already initialized",l=c.TypeError,a=c.WeakMap,g,v,h,w=function(I){return h(I)?v(I):g(I,{})},y=function(I){return function(F){var B;if(!u(F)||(B=v(F)).type!==I)throw new l("Incompatible receiver, "+I+" required");return B}};if(f||n.state){var S=n.state||(n.state=new a);S.get=S.get,S.has=S.has,S.set=S.set,g=function(I,F){if(S.has(I))throw new l(o);return F.facade=I,S.set(I,F),F},v=function(I){return S.get(I)||{}},h=function(I){return S.has(I)}}else{var E=r("state");i[E]=!0,g=function(I,F){if(t(I,E))throw new l(o);return F.facade=I,s(I,E,F),F},v=function(I){return t(I,E)?I[E]:{}},h=function(I){return t(I,E)}}d.exports={set:g,get:v,has:h,enforce:w,getterFor:y}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,d,m){var f=e("../internals/well-known-symbol"),c=e("../internals/iterators"),u=f("iterator"),s=Array.prototype;d.exports=function(t){return t!==void 0&&(c.Array===t||s[u]===t)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,d,m){var f=e("../internals/classof-raw");d.exports=Array.isArray||function(u){return f(u)==="Array"}},{"../internals/classof-raw":235}],285:[function(e,d,m){var f=e("../internals/document-all"),c=f.all;d.exports=f.IS_HTMLDDA?function(u){return typeof u=="function"||u===c}:function(u){return typeof u=="function"}},{"../internals/document-all":248}],286:[function(e,d,m){var f=e("../internals/function-uncurry-this"),c=e("../internals/fails"),u=e("../internals/is-callable"),s=e("../internals/classof"),t=e("../internals/get-built-in"),n=e("../internals/inspect-source"),r=function(){},i=[],o=t("Reflect","construct"),l=/^\s*(?:class|function)\b/,a=f(l.exec),g=!l.test(r),v=function(y){if(!u(y))return!1;try{return o(r,i,y),!0}catch{return!1}},h=function(y){if(!u(y))return!1;switch(s(y)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!a(l,n(y))}catch{return!0}};h.sham=!0,d.exports=!o||c(function(){var w;return v(v.call)||!v(Object)||!v(function(){w=!0})||w})?h:v},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,d,m){var f=e("../internals/fails"),c=e("../internals/is-callable"),u=/#|\.prototype\./,s=function(o,l){var a=n[t(o)];return a===i?!0:a===r?!1:c(l)?f(l):!!l},t=s.normalize=function(o){return String(o).replace(u,".").toLowerCase()},n=s.data={},r=s.NATIVE="N",i=s.POLYFILL="P";d.exports=s},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,d,m){d.exports=function(f){return f==null}},{}],289:[function(e,d,m){var f=e("../internals/is-callable"),c=e("../internals/document-all"),u=c.all;d.exports=c.IS_HTMLDDA?function(s){return typeof s=="object"?s!==null:f(s)||s===u}:function(s){return typeof s=="object"?s!==null:f(s)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,d,m){d.exports=!1},{}],291:[function(e,d,m){var f=e("../internals/is-object"),c=e("../internals/classof-raw"),u=e("../internals/well-known-symbol"),s=u("match");d.exports=function(t){var n;return f(t)&&((n=t[s])!==void 0?!!n:c(t)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,d,m){var f=e("../internals/get-built-in"),c=e("../internals/is-callable"),u=e("../internals/object-is-prototype-of"),s=e("../internals/use-symbol-as-uid"),t=Object;d.exports=s?function(n){return typeof n=="symbol"}:function(n){var r=f("Symbol");return c(r)&&u(r.prototype,t(n))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,d,m){var f=e("../internals/function-bind-context"),c=e("../internals/function-call"),u=e("../internals/an-object"),s=e("../internals/try-to-string"),t=e("../internals/is-array-iterator-method"),n=e("../internals/length-of-array-like"),r=e("../internals/object-is-prototype-of"),i=e("../internals/get-iterator"),o=e("../internals/get-iterator-method"),l=e("../internals/iterator-close"),a=TypeError,g=function(h,w){this.stopped=h,this.result=w},v=g.prototype;d.exports=function(h,w,y){var S=y&&y.that,E=!!(y&&y.AS_ENTRIES),I=!!(y&&y.IS_RECORD),F=!!(y&&y.IS_ITERATOR),B=!!(y&&y.INTERRUPTED),j=f(w,S),X,G,V,J,H,M,T,_=function(P){return X&&l(X,"normal",P),new g(!0,P)},A=function(P){return E?(u(P),B?j(P[0],P[1],_):j(P[0],P[1])):B?j(P,_):j(P)};if(I)X=h.iterator;else if(F)X=h;else{if(G=o(h),!G)throw new a(s(h)+" is not iterable");if(t(G)){for(V=0,J=n(h);J>V;V++)if(H=A(h[V]),H&&r(v,H))return H;return new g(!1)}X=i(h,G)}for(M=I?h.next:X.next;!(T=c(M,X)).done;){try{H=A(T.value)}catch(P){l(X,"throw",P)}if(typeof H=="object"&&H&&r(v,H))return H}return new g(!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(e,d,m){var f=e("../internals/function-call"),c=e("../internals/an-object"),u=e("../internals/get-method");d.exports=function(s,t,n){var r,i;c(s);try{if(r=u(s,"return"),!r){if(t==="throw")throw n;return n}r=f(r,s)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return c(r),n}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,d,m){var f=e("../internals/iterators-core").IteratorPrototype,c=e("../internals/object-create"),u=e("../internals/create-property-descriptor"),s=e("../internals/set-to-string-tag"),t=e("../internals/iterators"),n=function(){return this};d.exports=function(r,i,o,l){var a=i+" Iterator";return r.prototype=c(f,{next:u(+!l,o)}),s(r,a,!1,!0),t[a]=n,r}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,d,m){var f=e("../internals/export"),c=e("../internals/function-call"),u=e("../internals/is-pure"),s=e("../internals/function-name"),t=e("../internals/is-callable"),n=e("../internals/iterator-create-constructor"),r=e("../internals/object-get-prototype-of"),i=e("../internals/object-set-prototype-of"),o=e("../internals/set-to-string-tag"),l=e("../internals/create-non-enumerable-property"),a=e("../internals/define-built-in"),g=e("../internals/well-known-symbol"),v=e("../internals/iterators"),h=e("../internals/iterators-core"),w=s.PROPER,y=s.CONFIGURABLE,S=h.IteratorPrototype,E=h.BUGGY_SAFARI_ITERATORS,I=g("iterator"),F="keys",B="values",j="entries",X=function(){return this};d.exports=function(G,V,J,H,M,T,_){n(J,V,H);var A=function(he){if(he===M&&k)return k;if(!E&&he&&he in $)return $[he];switch(he){case F:return function(){return new J(this,he)};case B:return function(){return new J(this,he)};case j:return function(){return new J(this,he)}}return function(){return new J(this)}},P=V+" Iterator",L=!1,$=G.prototype,R=$[I]||$["@@iterator"]||M&&$[M],k=!E&&R||A(M),C=V==="Array"&&$.entries||R,O,W,ne;if(C&&(O=r(C.call(new G)),O!==Object.prototype&&O.next&&(!u&&r(O)!==S&&(i?i(O,S):t(O[I])||a(O,I,X)),o(O,P,!0,!0),u&&(v[P]=X))),w&&M===B&&R&&R.name!==B&&(!u&&y?l($,"name",B):(L=!0,k=function(){return c(R,this)})),M)if(W={values:A(B),keys:T?k:A(F),entries:A(j)},_)for(ne in W)(E||L||!(ne in $))&&a($,ne,W[ne]);else f({target:V,proto:!0,forced:E||L},W);return(!u||_)&&$[I]!==k&&a($,I,k,{name:M}),v[V]=k,W}},{"../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(e,d,m){var f=e("../internals/fails"),c=e("../internals/is-callable"),u=e("../internals/is-object"),s=e("../internals/object-create"),t=e("../internals/object-get-prototype-of"),n=e("../internals/define-built-in"),r=e("../internals/well-known-symbol"),i=e("../internals/is-pure"),o=r("iterator"),l=!1,a,g,v;[].keys&&(v=[].keys(),"next"in v?(g=t(t(v)),g!==Object.prototype&&(a=g)):l=!0);var h=!u(a)||f(function(){var w={};return a[o].call(w)!==w});h?a={}:i&&(a=s(a)),c(a[o])||n(a,o,function(){return this}),d.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:l}},{"../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(e,d,m){arguments[4][276][0].apply(m,arguments)},{dup:276}],299:[function(e,d,m){var f=e("../internals/to-length");d.exports=function(c){return f(c.length)}},{"../internals/to-length":343}],300:[function(e,d,m){var f=e("../internals/function-uncurry-this"),c=e("../internals/fails"),u=e("../internals/is-callable"),s=e("../internals/has-own-property"),t=e("../internals/descriptors"),n=e("../internals/function-name").CONFIGURABLE,r=e("../internals/inspect-source"),i=e("../internals/internal-state"),o=i.enforce,l=i.get,a=String,g=Object.defineProperty,v=f("".slice),h=f("".replace),w=f([].join),y=t&&!c(function(){return g(function(){},"length",{value:8}).length!==8}),S=String(String).split("String"),E=d.exports=function(I,F,B){v(a(F),0,7)==="Symbol("&&(F="["+h(a(F),/^Symbol\(([^)]*)\)/,"$1")+"]"),B&&B.getter&&(F="get "+F),B&&B.setter&&(F="set "+F),(!s(I,"name")||n&&I.name!==F)&&(t?g(I,"name",{value:F,configurable:!0}):I.name=F),y&&B&&s(B,"arity")&&I.length!==B.arity&&g(I,"length",{value:B.arity});try{B&&s(B,"constructor")&&B.constructor?t&&g(I,"prototype",{writable:!1}):I.prototype&&(I.prototype=void 0)}catch{}var j=o(I);return s(j,"source")||(j.source=w(S,typeof F=="string"?F:"")),I};Function.prototype.toString=E(function(){return u(this)&&l(this).source||r(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(e,d,m){var f=Math.ceil,c=Math.floor;d.exports=Math.trunc||function(s){var t=+s;return(t>0?c:f)(t)}},{}],302:[function(e,d,m){var f=e("../internals/global"),c=e("../internals/function-bind-context"),u=e("../internals/object-get-own-property-descriptor").f,s=e("../internals/task").set,t=e("../internals/queue"),n=e("../internals/engine-is-ios"),r=e("../internals/engine-is-ios-pebble"),i=e("../internals/engine-is-webos-webkit"),o=e("../internals/engine-is-node"),l=f.MutationObserver||f.WebKitMutationObserver,a=f.document,g=f.process,v=f.Promise,h=u(f,"queueMicrotask"),w=h&&h.value,y,S,E,I,F;if(!w){var B=new t,j=function(){var X,G;for(o&&(X=g.domain)&&X.exit();G=B.get();)try{G()}catch(V){throw B.head&&y(),V}X&&X.enter()};!n&&!o&&!i&&l&&a?(S=!0,E=a.createTextNode(""),new l(j).observe(E,{characterData:!0}),y=function(){E.data=S=!S}):!r&&v&&v.resolve?(I=v.resolve(void 0),I.constructor=v,F=c(I.then,I),y=function(){F(j)}):o?y=function(){g.nextTick(j)}:(s=c(s,f),y=function(){s(j)}),w=function(X){B.head||y(),B.add(X)}}d.exports=w},{"../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(e,d,m){var f=e("../internals/a-callable"),c=TypeError,u=function(s){var t,n;this.promise=new s(function(r,i){if(t!==void 0||n!==void 0)throw new c("Bad Promise constructor");t=r,n=i}),this.resolve=f(t),this.reject=f(n)};d.exports.f=function(s){return new u(s)}},{"../internals/a-callable":222}],304:[function(e,d,m){var f=e("../internals/is-regexp"),c=TypeError;d.exports=function(u){if(f(u))throw new c("The method doesn't accept regular expressions");return u}},{"../internals/is-regexp":291}],305:[function(e,d,m){var f=e("../internals/descriptors"),c=e("../internals/function-uncurry-this"),u=e("../internals/function-call"),s=e("../internals/fails"),t=e("../internals/object-keys"),n=e("../internals/object-get-own-property-symbols"),r=e("../internals/object-property-is-enumerable"),i=e("../internals/to-object"),o=e("../internals/indexed-object"),l=Object.assign,a=Object.defineProperty,g=c([].concat);d.exports=!l||s(function(){if(f&&l({b:1},l(a({},"a",{enumerable:!0,get:function(){a(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},h={},w=Symbol("assign detection"),y="abcdefghijklmnopqrst";return v[w]=7,y.split("").forEach(function(S){h[S]=S}),l({},v)[w]!==7||t(l({},h)).join("")!==y})?function(h,w){for(var y=i(h),S=arguments.length,E=1,I=n.f,F=r.f;S>E;)for(var B=o(arguments[E++]),j=I?g(t(B),I(B)):t(B),X=j.length,G=0,V;X>G;)V=j[G++],(!f||u(F,B,V))&&(y[V]=B[V]);return y}:l},{"../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(e,d,m){var f=e("../internals/an-object"),c=e("../internals/object-define-properties"),u=e("../internals/enum-bug-keys"),s=e("../internals/hidden-keys"),t=e("../internals/html"),n=e("../internals/document-create-element"),r=e("../internals/shared-key"),i=">",o="<",l="prototype",a="script",g=r("IE_PROTO"),v=function(){},h=function(I){return o+a+i+I+o+"/"+a+i},w=function(I){I.write(h("")),I.close();var F=I.parentWindow.Object;return I=null,F},y=function(){var I=n("iframe"),F="java"+a+":",B;return I.style.display="none",t.appendChild(I),I.src=String(F),B=I.contentWindow.document,B.open(),B.write(h("document.F=Object")),B.close(),B.F},S,E=function(){try{S=new ActiveXObject("htmlfile")}catch{}E=typeof document<"u"?document.domain&&S?w(S):y():w(S);for(var I=u.length;I--;)delete E[l][u[I]];return E()};s[g]=!0,d.exports=Object.create||function(F,B){var j;return F!==null?(v[l]=f(F),j=new v,v[l]=null,j[g]=F):j=E(),B===void 0?j:c.f(j,B)}},{"../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(e,d,m){var f=e("../internals/descriptors"),c=e("../internals/v8-prototype-define-bug"),u=e("../internals/object-define-property"),s=e("../internals/an-object"),t=e("../internals/to-indexed-object"),n=e("../internals/object-keys");m.f=f&&!c?Object.defineProperties:function(i,o){s(i);for(var l=t(o),a=n(o),g=a.length,v=0,h;g>v;)u.f(i,h=a[v++],l[h]);return i}},{"../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(e,d,m){var f=e("../internals/descriptors"),c=e("../internals/ie8-dom-define"),u=e("../internals/v8-prototype-define-bug"),s=e("../internals/an-object"),t=e("../internals/to-property-key"),n=TypeError,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o="enumerable",l="configurable",a="writable";m.f=f?u?function(v,h,w){if(s(v),h=t(h),s(w),typeof v=="function"&&h==="prototype"&&"value"in w&&a in w&&!w[a]){var y=i(v,h);y&&y[a]&&(v[h]=w.value,w={configurable:l in w?w[l]:y[l],enumerable:o in w?w[o]:y[o],writable:!1})}return r(v,h,w)}:r:function(v,h,w){if(s(v),h=t(h),s(w),c)try{return r(v,h,w)}catch{}if("get"in w||"set"in w)throw new n("Accessors not supported");return"value"in w&&(v[h]=w.value),v}},{"../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(e,d,m){var f=e("../internals/descriptors"),c=e("../internals/function-call"),u=e("../internals/object-property-is-enumerable"),s=e("../internals/create-property-descriptor"),t=e("../internals/to-indexed-object"),n=e("../internals/to-property-key"),r=e("../internals/has-own-property"),i=e("../internals/ie8-dom-define"),o=Object.getOwnPropertyDescriptor;m.f=f?o:function(a,g){if(a=t(a),g=n(g),i)try{return o(a,g)}catch{}if(r(a,g))return s(!c(u.f,a,g),a[g])}},{"../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(e,d,m){var f=e("../internals/classof-raw"),c=e("../internals/to-indexed-object"),u=e("../internals/object-get-own-property-names").f,s=e("../internals/array-slice-simple"),t=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],n=function(r){try{return u(r)}catch{return s(t)}};d.exports.f=function(i){return t&&f(i)==="Window"?n(i):u(c(i))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,d,m){var f=e("../internals/object-keys-internal"),c=e("../internals/enum-bug-keys"),u=c.concat("length","prototype");m.f=Object.getOwnPropertyNames||function(t){return f(t,u)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,d,m){m.f=Object.getOwnPropertySymbols},{}],313:[function(e,d,m){var f=e("../internals/has-own-property"),c=e("../internals/is-callable"),u=e("../internals/to-object"),s=e("../internals/shared-key"),t=e("../internals/correct-prototype-getter"),n=s("IE_PROTO"),r=Object,i=r.prototype;d.exports=t?r.getPrototypeOf:function(o){var l=u(o);if(f(l,n))return l[n];var a=l.constructor;return c(a)&&l instanceof a?a.prototype:l instanceof r?i: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(e,d,m){var f=e("../internals/function-uncurry-this");d.exports=f({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,d,m){var f=e("../internals/function-uncurry-this"),c=e("../internals/has-own-property"),u=e("../internals/to-indexed-object"),s=e("../internals/array-includes").indexOf,t=e("../internals/hidden-keys"),n=f([].push);d.exports=function(r,i){var o=u(r),l=0,a=[],g;for(g in o)!c(t,g)&&c(o,g)&&n(a,g);for(;i.length>l;)c(o,g=i[l++])&&(~s(a,g)||n(a,g));return a}},{"../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(e,d,m){var f=e("../internals/object-keys-internal"),c=e("../internals/enum-bug-keys");d.exports=Object.keys||function(s){return f(s,c)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,d,m){var f={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u=c&&!f.call({1:2},1);m.f=u?function(t){var n=c(this,t);return!!n&&n.enumerable}:f},{}],318:[function(e,d,m){var f=e("../internals/function-uncurry-this-accessor"),c=e("../internals/an-object"),u=e("../internals/a-possible-prototype");d.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,t={},n;try{n=f(Object.prototype,"__proto__","set"),n(t,[]),s=t instanceof Array}catch{}return function(i,o){return c(i),u(o),s?n(i,o):i.__proto__=o,i}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,d,m){var f=e("../internals/descriptors"),c=e("../internals/fails"),u=e("../internals/function-uncurry-this"),s=e("../internals/object-get-prototype-of"),t=e("../internals/object-keys"),n=e("../internals/to-indexed-object"),r=e("../internals/object-property-is-enumerable").f,i=u(r),o=u([].push),l=f&&c(function(){var g=Object.create(null);return g[2]=2,!i(g,2)}),a=function(g){return function(v){for(var h=n(v),w=t(h),y=l&&s(h)===null,S=w.length,E=0,I=[],F;S>E;)F=w[E++],(!f||(y?F in h:i(h,F)))&&o(I,g?[F,h[F]]:h[F]);return I}};d.exports={entries:a(!0),values:a(!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(e,d,m){var f=e("../internals/function-call"),c=e("../internals/is-callable"),u=e("../internals/is-object"),s=TypeError;d.exports=function(t,n){var r,i;if(n==="string"&&c(r=t.toString)&&!u(i=f(r,t))||c(r=t.valueOf)&&!u(i=f(r,t))||n!=="string"&&c(r=t.toString)&&!u(i=f(r,t)))return i;throw new s("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,d,m){var f=e("../internals/get-built-in"),c=e("../internals/function-uncurry-this"),u=e("../internals/object-get-own-property-names"),s=e("../internals/object-get-own-property-symbols"),t=e("../internals/an-object"),n=c([].concat);d.exports=f("Reflect","ownKeys")||function(i){var o=u.f(t(i)),l=s.f;return l?n(o,l(i)):o}},{"../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(e,d,m){var f=e("../internals/global");d.exports=f},{"../internals/global":274}],323:[function(e,d,m){d.exports=function(f){try{return{error:!1,value:f()}}catch(c){return{error:!0,value:c}}}},{}],324:[function(e,d,m){var f=e("../internals/global"),c=e("../internals/promise-native-constructor"),u=e("../internals/is-callable"),s=e("../internals/is-forced"),t=e("../internals/inspect-source"),n=e("../internals/well-known-symbol"),r=e("../internals/engine-is-browser"),i=e("../internals/engine-is-deno"),o=e("../internals/is-pure"),l=e("../internals/engine-v8-version"),a=c&&c.prototype,g=n("species"),v=!1,h=u(f.PromiseRejectionEvent),w=s("Promise",function(){var y=t(c),S=y!==String(c);if(!S&&l===66||o&&!(a.catch&&a.finally))return!0;if(!l||l<51||!/native code/.test(y)){var E=new c(function(B){B(1)}),I=function(B){B(function(){},function(){})},F=E.constructor={};if(F[g]=I,v=E.then(function(){})instanceof I,!v)return!0}return!S&&(r||i)&&!h});d.exports={CONSTRUCTOR:w,REJECTION_EVENT:h,SUBCLASSING:v}},{"../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(e,d,m){var f=e("../internals/global");d.exports=f.Promise},{"../internals/global":274}],326:[function(e,d,m){var f=e("../internals/an-object"),c=e("../internals/is-object"),u=e("../internals/new-promise-capability");d.exports=function(s,t){if(f(s),c(t)&&t.constructor===s)return t;var n=u.f(s),r=n.resolve;return r(t),n.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,d,m){var f=e("../internals/promise-native-constructor"),c=e("../internals/check-correctness-of-iteration"),u=e("../internals/promise-constructor-detection").CONSTRUCTOR;d.exports=u||!c(function(s){f.all(s).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,d,m){var f=function(){this.head=null,this.tail=null};f.prototype={add:function(c){var u={item:c,next:null},s=this.tail;s?s.next=u:this.head=u,this.tail=u},get:function(){var c=this.head;if(c){var u=this.head=c.next;return u===null&&(this.tail=null),c.item}}},d.exports=f},{}],329:[function(e,d,m){var f=e("../internals/is-null-or-undefined"),c=TypeError;d.exports=function(u){if(f(u))throw new c("Can't call method on "+u);return u}},{"../internals/is-null-or-undefined":288}],330:[function(e,d,m){var f=e("../internals/get-built-in"),c=e("../internals/define-built-in-accessor"),u=e("../internals/well-known-symbol"),s=e("../internals/descriptors"),t=u("species");d.exports=function(n){var r=f(n);s&&r&&!r[t]&&c(r,t,{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(e,d,m){var f=e("../internals/object-define-property").f,c=e("../internals/has-own-property"),u=e("../internals/well-known-symbol"),s=u("toStringTag");d.exports=function(t,n,r){t&&!r&&(t=t.prototype),t&&!c(t,s)&&f(t,s,{configurable:!0,value:n})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,d,m){var f=e("../internals/shared"),c=e("../internals/uid"),u=f("keys");d.exports=function(s){return u[s]||(u[s]=c(s))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,d,m){var f=e("../internals/global"),c=e("../internals/define-global-property"),u="__core-js_shared__",s=f[u]||c(u,{});d.exports=s},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,d,m){var f=e("../internals/is-pure"),c=e("../internals/shared-store");(d.exports=function(u,s){return c[u]||(c[u]=s!==void 0?s:{})})("versions",[]).push({version:"3.33.0",mode:f?"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(e,d,m){var f=e("../internals/an-object"),c=e("../internals/a-constructor"),u=e("../internals/is-null-or-undefined"),s=e("../internals/well-known-symbol"),t=s("species");d.exports=function(n,r){var i=f(n).constructor,o;return i===void 0||u(o=f(i)[t])?r:c(o)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,d,m){var f=e("../internals/engine-v8-version"),c=e("../internals/fails"),u=e("../internals/global"),s=u.String;d.exports=!!Object.getOwnPropertySymbols&&!c(function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&f&&f<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,d,m){var f=e("../internals/function-call"),c=e("../internals/get-built-in"),u=e("../internals/well-known-symbol"),s=e("../internals/define-built-in");d.exports=function(){var t=c("Symbol"),n=t&&t.prototype,r=n&&n.valueOf,i=u("toPrimitive");n&&!n[i]&&s(n,i,function(o){return f(r,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,d,m){var f=e("../internals/symbol-constructor-detection");d.exports=f&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,d,m){var f=e("../internals/global"),c=e("../internals/function-apply"),u=e("../internals/function-bind-context"),s=e("../internals/is-callable"),t=e("../internals/has-own-property"),n=e("../internals/fails"),r=e("../internals/html"),i=e("../internals/array-slice"),o=e("../internals/document-create-element"),l=e("../internals/validate-arguments-length"),a=e("../internals/engine-is-ios"),g=e("../internals/engine-is-node"),v=f.setImmediate,h=f.clearImmediate,w=f.process,y=f.Dispatch,S=f.Function,E=f.MessageChannel,I=f.String,F=0,B={},j="onreadystatechange",X,G,V,J;n(function(){X=f.location});var H=function(A){if(t(B,A)){var P=B[A];delete B[A],P()}},M=function(A){return function(){H(A)}},T=function(A){H(A.data)},_=function(A){f.postMessage(I(A),X.protocol+"//"+X.host)};(!v||!h)&&(v=function(P){l(arguments.length,1);var L=s(P)?P:S(P),$=i(arguments,1);return B[++F]=function(){c(L,void 0,$)},G(F),F},h=function(P){delete B[P]},g?G=function(A){w.nextTick(M(A))}:y&&y.now?G=function(A){y.now(M(A))}:E&&!a?(V=new E,J=V.port2,V.port1.onmessage=T,G=u(J.postMessage,J)):f.addEventListener&&s(f.postMessage)&&!f.importScripts&&X&&X.protocol!=="file:"&&!n(_)?(G=_,f.addEventListener("message",T,!1)):j in o("script")?G=function(A){r.appendChild(o("script"))[j]=function(){r.removeChild(this),H(A)}}:G=function(A){setTimeout(M(A),0)}),d.exports={set:v,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(e,d,m){var f=e("../internals/to-integer-or-infinity"),c=Math.max,u=Math.min;d.exports=function(s,t){var n=f(s);return n<0?c(n+t,0):u(n,t)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,d,m){var f=e("../internals/indexed-object"),c=e("../internals/require-object-coercible");d.exports=function(u){return f(c(u))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,d,m){var f=e("../internals/math-trunc");d.exports=function(c){var u=+c;return u!==u||u===0?0:f(u)}},{"../internals/math-trunc":301}],343:[function(e,d,m){var f=e("../internals/to-integer-or-infinity"),c=Math.min;d.exports=function(u){return u>0?c(f(u),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,d,m){var f=e("../internals/require-object-coercible"),c=Object;d.exports=function(u){return c(f(u))}},{"../internals/require-object-coercible":329}],345:[function(e,d,m){var f=e("../internals/function-call"),c=e("../internals/is-object"),u=e("../internals/is-symbol"),s=e("../internals/get-method"),t=e("../internals/ordinary-to-primitive"),n=e("../internals/well-known-symbol"),r=TypeError,i=n("toPrimitive");d.exports=function(o,l){if(!c(o)||u(o))return o;var a=s(o,i),g;if(a){if(l===void 0&&(l="default"),g=f(a,o,l),!c(g)||u(g))return g;throw new r("Can't convert object to primitive value")}return l===void 0&&(l="number"),t(o,l)}},{"../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(e,d,m){var f=e("../internals/to-primitive"),c=e("../internals/is-symbol");d.exports=function(u){var s=f(u,"string");return c(s)?s:s+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,d,m){var f=e("../internals/well-known-symbol"),c=f("toStringTag"),u={};u[c]="z",d.exports=String(u)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(e,d,m){var f=e("../internals/classof"),c=String;d.exports=function(u){if(f(u)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return c(u)}},{"../internals/classof":236}],349:[function(e,d,m){var f=String;d.exports=function(c){try{return f(c)}catch{return"Object"}}},{}],350:[function(e,d,m){var f=e("../internals/function-uncurry-this"),c=0,u=Math.random(),s=f(1 .toString);d.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+s(++c+u,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,d,m){var f=e("../internals/symbol-constructor-detection");d.exports=f&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(e,d,m){var f=e("../internals/descriptors"),c=e("../internals/fails");d.exports=f&&c(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,d,m){var f=TypeError;d.exports=function(c,u){if(c<u)throw new f("Not enough arguments");return c}},{}],354:[function(e,d,m){var f=e("../internals/global"),c=e("../internals/is-callable"),u=f.WeakMap;d.exports=c(u)&&/native code/.test(String(u))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,d,m){var f=e("../internals/path"),c=e("../internals/has-own-property"),u=e("../internals/well-known-symbol-wrapped"),s=e("../internals/object-define-property").f;d.exports=function(t){var n=f.Symbol||(f.Symbol={});c(n,t)||s(n,t,{value:u.f(t)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,d,m){var f=e("../internals/well-known-symbol");m.f=f},{"../internals/well-known-symbol":357}],357:[function(e,d,m){var f=e("../internals/global"),c=e("../internals/shared"),u=e("../internals/has-own-property"),s=e("../internals/uid"),t=e("../internals/symbol-constructor-detection"),n=e("../internals/use-symbol-as-uid"),r=f.Symbol,i=c("wks"),o=n?r.for||r:r&&r.withoutSetter||s;d.exports=function(l){return u(i,l)||(i[l]=t&&u(r,l)?r[l]:o("Symbol."+l)),i[l]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,d,m){var f=e("../internals/export"),c=e("../internals/array-iteration").findIndex,u=e("../internals/add-to-unscopables"),s="findIndex",t=!0;s in[]&&Array(1)[s](function(){t=!1}),f({target:"Array",proto:!0,forced:t},{findIndex:function(r){return c(this,r,arguments.length>1?arguments[1]:void 0)}}),u(s)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,d,m){var f=e("../internals/export"),c=e("../internals/array-iteration").find,u=e("../internals/add-to-unscopables"),s="find",t=!0;s in[]&&Array(1)[s](function(){t=!1}),f({target:"Array",proto:!0,forced:t},{find:function(r){return c(this,r,arguments.length>1?arguments[1]:void 0)}}),u(s)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,d,m){var f=e("../internals/export"),c=e("../internals/array-includes").includes,u=e("../internals/fails"),s=e("../internals/add-to-unscopables"),t=u(function(){return!Array(1).includes()});f({target:"Array",proto:!0,forced:t},{includes:function(r){return c(this,r,arguments.length>1?arguments[1]:void 0)}}),s("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,d,m){var f=e("../internals/to-indexed-object"),c=e("../internals/add-to-unscopables"),u=e("../internals/iterators"),s=e("../internals/internal-state"),t=e("../internals/object-define-property").f,n=e("../internals/iterator-define"),r=e("../internals/create-iter-result-object"),i=e("../internals/is-pure"),o=e("../internals/descriptors"),l="Array Iterator",a=s.set,g=s.getterFor(l);d.exports=n(Array,"Array",function(h,w){a(this,{type:l,target:f(h),index:0,kind:w})},function(){var h=g(this),w=h.target,y=h.kind,S=h.index++;if(!w||S>=w.length)return h.target=void 0,r(void 0,!0);switch(y){case"keys":return r(S,!1);case"values":return r(w[S],!1)}return r([S,w[S]],!1)},"values");var v=u.Arguments=u.Array;if(c("keys"),c("values"),c("entries"),!i&&o&&v.name!=="values")try{t(v,"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(e,d,m){var f=e("../internals/export"),c=e("../internals/get-built-in"),u=e("../internals/function-apply"),s=e("../internals/function-call"),t=e("../internals/function-uncurry-this"),n=e("../internals/fails"),r=e("../internals/is-callable"),i=e("../internals/is-symbol"),o=e("../internals/array-slice"),l=e("../internals/get-json-replacer-function"),a=e("../internals/symbol-constructor-detection"),g=String,v=c("JSON","stringify"),h=t(/./.exec),w=t("".charAt),y=t("".charCodeAt),S=t("".replace),E=t(1 .toString),I=/[\uD800-\uDFFF]/g,F=/^[\uD800-\uDBFF]$/,B=/^[\uDC00-\uDFFF]$/,j=!a||n(function(){var J=c("Symbol")("stringify detection");return v([J])!=="[null]"||v({a:J})!=="{}"||v(Object(J))!=="{}"}),X=n(function(){return v("\uDF06\uD834")!=='"\\udf06\\ud834"'||v("\uDEAD")!=='"\\udead"'}),G=function(J,H){var M=o(arguments),T=l(H);if(!(!r(T)&&(J===void 0||i(J))))return M[1]=function(_,A){if(r(T)&&(A=s(T,this,g(_),A)),!i(A))return A},u(v,null,M)},V=function(J,H,M){var T=w(M,H-1),_=w(M,H+1);return h(F,J)&&!h(B,_)||h(B,J)&&!h(F,T)?"\\u"+E(y(J,0),16):J};v&&f({target:"JSON",stat:!0,arity:3,forced:j||X},{stringify:function(H,M,T){var _=o(arguments),A=u(j?G:v,null,_);return X&&typeof A=="string"?S(A,I,V):A}})},{"../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(e,d,m){var f=e("../internals/export");f({target:"Number",stat:!0},{isNaN:function(u){return u!==u}})},{"../internals/export":259}],364:[function(e,d,m){var f=e("../internals/export"),c=e("../internals/object-assign");f({target:"Object",stat:!0,arity:2,forced:Object.assign!==c},{assign:c})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,d,m){var f=e("../internals/export"),c=e("../internals/symbol-constructor-detection"),u=e("../internals/fails"),s=e("../internals/object-get-own-property-symbols"),t=e("../internals/to-object"),n=!c||u(function(){s.f(1)});f({target:"Object",stat:!0,forced:n},{getOwnPropertySymbols:function(i){var o=s.f;return o?o(t(i)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,d,m){var f=e("../internals/export"),c=e("../internals/to-object"),u=e("../internals/object-keys"),s=e("../internals/fails"),t=s(function(){u(1)});f({target:"Object",stat:!0,forced:t},{keys:function(r){return u(c(r))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,d,m){var f=e("../internals/export"),c=e("../internals/object-to-array").values;f({target:"Object",stat:!0},{values:function(s){return c(s)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,d,m){var f=e("../internals/export"),c=e("../internals/function-call"),u=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),t=e("../internals/perform"),n=e("../internals/iterate"),r=e("../internals/promise-statics-incorrect-iteration");f({target:"Promise",stat:!0,forced:r},{all:function(o){var l=this,a=s.f(l),g=a.resolve,v=a.reject,h=t(function(){var w=u(l.resolve),y=[],S=0,E=1;n(o,function(I){var F=S++,B=!1;E++,c(w,l,I).then(function(j){B||(B=!0,y[F]=j,--E||g(y))},v)}),--E||g(y)});return h.error&&v(h.value),a.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(e,d,m){var f=e("../internals/export"),c=e("../internals/is-pure"),u=e("../internals/promise-constructor-detection").CONSTRUCTOR,s=e("../internals/promise-native-constructor"),t=e("../internals/get-built-in"),n=e("../internals/is-callable"),r=e("../internals/define-built-in"),i=s&&s.prototype;if(f({target:"Promise",proto:!0,forced:u,real:!0},{catch:function(l){return this.then(void 0,l)}}),!c&&n(s)){var o=t("Promise").prototype.catch;i.catch!==o&&r(i,"catch",o,{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(e,d,m){var f=e("../internals/export"),c=e("../internals/is-pure"),u=e("../internals/engine-is-node"),s=e("../internals/global"),t=e("../internals/function-call"),n=e("../internals/define-built-in"),r=e("../internals/object-set-prototype-of"),i=e("../internals/set-to-string-tag"),o=e("../internals/set-species"),l=e("../internals/a-callable"),a=e("../internals/is-callable"),g=e("../internals/is-object"),v=e("../internals/an-instance"),h=e("../internals/species-constructor"),w=e("../internals/task").set,y=e("../internals/microtask"),S=e("../internals/host-report-errors"),E=e("../internals/perform"),I=e("../internals/queue"),F=e("../internals/internal-state"),B=e("../internals/promise-native-constructor"),j=e("../internals/promise-constructor-detection"),X=e("../internals/new-promise-capability"),G="Promise",V=j.CONSTRUCTOR,J=j.REJECTION_EVENT,H=j.SUBCLASSING,M=F.getterFor(G),T=F.set,_=B&&B.prototype,A=B,P=_,L=s.TypeError,$=s.document,R=s.process,k=X.f,C=k,O=!!($&&$.createEvent&&s.dispatchEvent),W="unhandledrejection",ne="rejectionhandled",he=0,ue=1,Ae=2,pe=1,te=2,Z,q,de,ke,oe=function(ee){var se;return g(ee)&&a(se=ee.then)?se:!1},ie=function(ee,se){var me=se.value,Ee=se.state===ue,Ie=Ee?ee.ok:ee.fail,Ce=ee.resolve,Fe=ee.reject,ze=ee.domain,je,ge,Me;try{Ie?(Ee||(se.rejection===te&&we(se),se.rejection=pe),Ie===!0?je=me:(ze&&ze.enter(),je=Ie(me),ze&&(ze.exit(),Me=!0)),je===ee.promise?Fe(new L("Promise-chain cycle")):(ge=oe(je))?t(ge,je,Ce,Fe):Ce(je)):Fe(me)}catch(Be){ze&&!Me&&ze.exit(),Fe(Be)}},Q=function(ee,se){ee.notified||(ee.notified=!0,y(function(){for(var me=ee.reactions,Ee;Ee=me.get();)ie(Ee,ee);ee.notified=!1,se&&!ee.rejection&&Y(ee)}))},z=function(ee,se,me){var Ee,Ie;O?(Ee=$.createEvent("Event"),Ee.promise=se,Ee.reason=me,Ee.initEvent(ee,!1,!0),s.dispatchEvent(Ee)):Ee={promise:se,reason:me},!J&&(Ie=s["on"+ee])?Ie(Ee):ee===W&&S("Unhandled promise rejection",me)},Y=function(ee){t(w,s,function(){var se=ee.facade,me=ee.value,Ee=fe(ee),Ie;if(Ee&&(Ie=E(function(){u?R.emit("unhandledRejection",me,se):z(W,se,me)}),ee.rejection=u||fe(ee)?te:pe,Ie.error))throw Ie.value})},fe=function(ee){return ee.rejection!==pe&&!ee.parent},we=function(ee){t(w,s,function(){var se=ee.facade;u?R.emit("rejectionHandled",se):z(ne,se,ee.value)})},U=function(ee,se,me){return function(Ee){ee(se,Ee,me)}},ve=function(ee,se,me){ee.done||(ee.done=!0,me&&(ee=me),ee.value=se,ee.state=Ae,Q(ee,!0))},Se=function(ee,se,me){if(!ee.done){ee.done=!0,me&&(ee=me);try{if(ee.facade===se)throw new L("Promise can't be resolved itself");var Ee=oe(se);Ee?y(function(){var Ie={done:!1};try{t(Ee,se,U(Se,Ie,ee),U(ve,Ie,ee))}catch(Ce){ve(Ie,Ce,ee)}}):(ee.value=se,ee.state=ue,Q(ee,!1))}catch(Ie){ve({done:!1},Ie,ee)}}};if(V&&(A=function(se){v(this,P),l(se),t(Z,this);var me=M(this);try{se(U(Se,me),U(ve,me))}catch(Ee){ve(me,Ee)}},P=A.prototype,Z=function(se){T(this,{type:G,done:!1,notified:!1,parent:!1,reactions:new I,rejection:!1,state:he,value:void 0})},Z.prototype=n(P,"then",function(se,me){var Ee=M(this),Ie=k(h(this,A));return Ee.parent=!0,Ie.ok=a(se)?se:!0,Ie.fail=a(me)&&me,Ie.domain=u?R.domain:void 0,Ee.state===he?Ee.reactions.add(Ie):y(function(){ie(Ie,Ee)}),Ie.promise}),q=function(){var ee=new Z,se=M(ee);this.promise=ee,this.resolve=U(Se,se),this.reject=U(ve,se)},X.f=k=function(ee){return ee===A||ee===de?new q(ee):C(ee)},!c&&a(B)&&_!==Object.prototype)){ke=_.then,H||n(_,"then",function(se,me){var Ee=this;return new A(function(Ie,Ce){t(ke,Ee,Ie,Ce)}).then(se,me)},{unsafe:!0});try{delete _.constructor}catch{}r&&r(_,P)}f({global:!0,constructor:!0,wrap:!0,forced:V},{Promise:A}),i(A,G,!1,!0),o(G)},{"../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(e,d,m){var f=e("../internals/export"),c=e("../internals/is-pure"),u=e("../internals/promise-native-constructor"),s=e("../internals/fails"),t=e("../internals/get-built-in"),n=e("../internals/is-callable"),r=e("../internals/species-constructor"),i=e("../internals/promise-resolve"),o=e("../internals/define-built-in"),l=u&&u.prototype,a=!!u&&s(function(){l.finally.call({then:function(){}},function(){})});if(f({target:"Promise",proto:!0,real:!0,forced:a},{finally:function(v){var h=r(this,t("Promise")),w=n(v);return this.then(w?function(y){return i(h,v()).then(function(){return y})}:v,w?function(y){return i(h,v()).then(function(){throw y})}:v)}}),!c&&n(u)){var g=t("Promise").prototype.finally;l.finally!==g&&o(l,"finally",g,{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(e,d,m){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../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(e,d,m){var f=e("../internals/export"),c=e("../internals/function-call"),u=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),t=e("../internals/perform"),n=e("../internals/iterate"),r=e("../internals/promise-statics-incorrect-iteration");f({target:"Promise",stat:!0,forced:r},{race:function(o){var l=this,a=s.f(l),g=a.reject,v=t(function(){var h=u(l.resolve);n(o,function(w){c(h,l,w).then(a.resolve,g)})});return v.error&&g(v.value),a.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(e,d,m){var f=e("../internals/export"),c=e("../internals/function-call"),u=e("../internals/new-promise-capability"),s=e("../internals/promise-constructor-detection").CONSTRUCTOR;f({target:"Promise",stat:!0,forced:s},{reject:function(n){var r=u.f(this);return c(r.reject,void 0,n),r.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,d,m){var f=e("../internals/export"),c=e("../internals/get-built-in"),u=e("../internals/is-pure"),s=e("../internals/promise-native-constructor"),t=e("../internals/promise-constructor-detection").CONSTRUCTOR,n=e("../internals/promise-resolve"),r=c("Promise"),i=u&&!t;f({target:"Promise",stat:!0,forced:u||t},{resolve:function(l){return n(i&&this===r?s:this,l)}})},{"../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(e,d,m){var f=e("../internals/export"),c=e("../internals/function-uncurry-this"),u=e("../internals/to-absolute-index"),s=RangeError,t=String.fromCharCode,n=String.fromCodePoint,r=c([].join),i=!!n&&n.length!==1;f({target:"String",stat:!0,arity:1,forced:i},{fromCodePoint:function(l){for(var a=[],g=arguments.length,v=0,h;g>v;){if(h=+arguments[v++],u(h,1114111)!==h)throw new s(h+" is not a valid code point");a[v]=h<65536?t(h):t(((h-=65536)>>10)+55296,h%1024+56320)}return r(a,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,d,m){var f=e("../internals/export"),c=e("../internals/function-uncurry-this"),u=e("../internals/not-a-regexp"),s=e("../internals/require-object-coercible"),t=e("../internals/to-string"),n=e("../internals/correct-is-regexp-logic"),r=c("".indexOf);f({target:"String",proto:!0,forced:!n("includes")},{includes:function(o){return!!~r(t(s(this)),t(u(o)),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(e,d,m){var f=e("../internals/well-known-symbol-define");f("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,d,m){var f=e("../internals/export"),c=e("../internals/global"),u=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),t=e("../internals/is-pure"),n=e("../internals/descriptors"),r=e("../internals/symbol-constructor-detection"),i=e("../internals/fails"),o=e("../internals/has-own-property"),l=e("../internals/object-is-prototype-of"),a=e("../internals/an-object"),g=e("../internals/to-indexed-object"),v=e("../internals/to-property-key"),h=e("../internals/to-string"),w=e("../internals/create-property-descriptor"),y=e("../internals/object-create"),S=e("../internals/object-keys"),E=e("../internals/object-get-own-property-names"),I=e("../internals/object-get-own-property-names-external"),F=e("../internals/object-get-own-property-symbols"),B=e("../internals/object-get-own-property-descriptor"),j=e("../internals/object-define-property"),X=e("../internals/object-define-properties"),G=e("../internals/object-property-is-enumerable"),V=e("../internals/define-built-in"),J=e("../internals/define-built-in-accessor"),H=e("../internals/shared"),M=e("../internals/shared-key"),T=e("../internals/hidden-keys"),_=e("../internals/uid"),A=e("../internals/well-known-symbol"),P=e("../internals/well-known-symbol-wrapped"),L=e("../internals/well-known-symbol-define"),$=e("../internals/symbol-define-to-primitive"),R=e("../internals/set-to-string-tag"),k=e("../internals/internal-state"),C=e("../internals/array-iteration").forEach,O=M("hidden"),W="Symbol",ne="prototype",he=k.set,ue=k.getterFor(W),Ae=Object[ne],pe=c.Symbol,te=pe&&pe[ne],Z=c.RangeError,q=c.TypeError,de=c.QObject,ke=B.f,oe=j.f,ie=I.f,Q=G.f,z=s([].push),Y=H("symbols"),fe=H("op-symbols"),we=H("wks"),U=!de||!de[ne]||!de[ne].findChild,ve=function(je,ge,Me){var Be=ke(Ae,ge);Be&&delete Ae[ge],oe(je,ge,Me),Be&&je!==Ae&&oe(Ae,ge,Be)},Se=n&&i(function(){return y(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a!==7})?ve:oe,ee=function(je,ge){var Me=Y[je]=y(te);return he(Me,{type:W,tag:je,description:ge}),n||(Me.description=ge),Me},se=function(ge,Me,Be){ge===Ae&&se(fe,Me,Be),a(ge);var Xe=v(Me);return a(Be),o(Y,Xe)?(Be.enumerable?(o(ge,O)&&ge[O][Xe]&&(ge[O][Xe]=!1),Be=y(Be,{enumerable:w(0,!1)})):(o(ge,O)||oe(ge,O,w(1,{})),ge[O][Xe]=!0),Se(ge,Xe,Be)):oe(ge,Xe,Be)},me=function(ge,Me){a(ge);var Be=g(Me),Xe=S(Be).concat(ze(Be));return C(Xe,function(ot){(!n||u(Ie,Be,ot))&&se(ge,ot,Be[ot])}),ge},Ee=function(ge,Me){return Me===void 0?y(ge):me(y(ge),Me)},Ie=function(ge){var Me=v(ge),Be=u(Q,this,Me);return this===Ae&&o(Y,Me)&&!o(fe,Me)?!1:Be||!o(this,Me)||!o(Y,Me)||o(this,O)&&this[O][Me]?Be:!0},Ce=function(ge,Me){var Be=g(ge),Xe=v(Me);if(!(Be===Ae&&o(Y,Xe)&&!o(fe,Xe))){var ot=ke(Be,Xe);return ot&&o(Y,Xe)&&!(o(Be,O)&&Be[O][Xe])&&(ot.enumerable=!0),ot}},Fe=function(ge){var Me=ie(g(ge)),Be=[];return C(Me,function(Xe){!o(Y,Xe)&&!o(T,Xe)&&z(Be,Xe)}),Be},ze=function(je){var ge=je===Ae,Me=ie(ge?fe:g(je)),Be=[];return C(Me,function(Xe){o(Y,Xe)&&(!ge||o(Ae,Xe))&&z(Be,Y[Xe])}),Be};r||(pe=function(){if(l(te,this))throw new q("Symbol is not a constructor");var ge=!arguments.length||arguments[0]===void 0?void 0:h(arguments[0]),Me=_(ge),Be=function(Xe){this===Ae&&u(Be,fe,Xe),o(this,O)&&o(this[O],Me)&&(this[O][Me]=!1);var ot=w(1,Xe);try{Se(this,Me,ot)}catch(ct){if(!(ct instanceof Z))throw ct;ve(this,Me,ot)}};return n&&U&&Se(Ae,Me,{configurable:!0,set:Be}),ee(Me,ge)},te=pe[ne],V(te,"toString",function(){return ue(this).tag}),V(pe,"withoutSetter",function(je){return ee(_(je),je)}),G.f=Ie,j.f=se,X.f=me,B.f=Ce,E.f=I.f=Fe,F.f=ze,P.f=function(je){return ee(A(je),je)},n&&(J(te,"description",{configurable:!0,get:function(){return ue(this).description}}),t||V(Ae,"propertyIsEnumerable",Ie,{unsafe:!0}))),f({global:!0,constructor:!0,wrap:!0,forced:!r,sham:!r},{Symbol:pe}),C(S(we),function(je){L(je)}),f({target:W,stat:!0,forced:!r},{useSetter:function(){U=!0},useSimple:function(){U=!1}}),f({target:"Object",stat:!0,forced:!r,sham:!n},{create:Ee,defineProperty:se,defineProperties:me,getOwnPropertyDescriptor:Ce}),f({target:"Object",stat:!0,forced:!r},{getOwnPropertyNames:Fe}),$(),R(pe,W),T[O]=!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(e,d,m){var f=e("../internals/export"),c=e("../internals/get-built-in"),u=e("../internals/has-own-property"),s=e("../internals/to-string"),t=e("../internals/shared"),n=e("../internals/symbol-registry-detection"),r=t("string-to-symbol-registry"),i=t("symbol-to-string-registry");f({target:"Symbol",stat:!0,forced:!n},{for:function(o){var l=s(o);if(u(r,l))return r[l];var a=c("Symbol")(l);return r[l]=a,i[a]=l,a}})},{"../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(e,d,m){e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../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(e,d,m){var f=e("../internals/export"),c=e("../internals/has-own-property"),u=e("../internals/is-symbol"),s=e("../internals/try-to-string"),t=e("../internals/shared"),n=e("../internals/symbol-registry-detection"),r=t("symbol-to-string-registry");f({target:"Symbol",stat:!0,forced:!n},{keyFor:function(o){if(!u(o))throw new TypeError(s(o)+" is not a symbol");if(c(r,o))return r[o]}})},{"../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(e,d,m){function f(y){return Array.isArray?Array.isArray(y):w(y)==="[object Array]"}m.isArray=f;function c(y){return typeof y=="boolean"}m.isBoolean=c;function u(y){return y===null}m.isNull=u;function s(y){return y==null}m.isNullOrUndefined=s;function t(y){return typeof y=="number"}m.isNumber=t;function n(y){return typeof y=="string"}m.isString=n;function r(y){return typeof y=="symbol"}m.isSymbol=r;function i(y){return y===void 0}m.isUndefined=i;function o(y){return w(y)==="[object RegExp]"}m.isRegExp=o;function l(y){return typeof y=="object"&&y!==null}m.isObject=l;function a(y){return w(y)==="[object Date]"}m.isDate=a;function g(y){return w(y)==="[object Error]"||y instanceof Error}m.isError=g;function v(y){return typeof y=="function"}m.isFunction=v;function h(y){return y===null||typeof y=="boolean"||typeof y=="number"||typeof y=="string"||typeof y=="symbol"||typeof y>"u"}m.isPrimitive=h,m.isBuffer=e("buffer").Buffer.isBuffer;function w(y){return Object.prototype.toString.call(y)}},{buffer:220}],384:[function(e,d,m){(function(f){(function(){var c=e("elliptic"),u=e("bn.js");d.exports=function(i){return new t(i)};var s={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}};s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1;function t(r){this.curveType=s[r],this.curveType||(this.curveType={name:r}),this.curve=new c.ec(this.curveType.name),this.keys=void 0}t.prototype.generateKeys=function(r,i){return this.keys=this.curve.genKeyPair(),this.getPublicKey(r,i)},t.prototype.computeSecret=function(r,i,o){i=i||"utf8",f.isBuffer(r)||(r=new f(r,i));var l=this.curve.keyFromPublic(r).getPublic(),a=l.mul(this.keys.getPrivate()).getX();return n(a,o,this.curveType.byteLength)},t.prototype.getPublicKey=function(r,i){var o=this.keys.getPublic(i==="compressed",!0);return i==="hybrid"&&(o[o.length-1]%2?o[0]=7:o[0]=6),n(o,r)},t.prototype.getPrivateKey=function(r){return n(this.keys.getPrivate(),r)},t.prototype.setPublicKey=function(r,i){return i=i||"utf8",f.isBuffer(r)||(r=new f(r,i)),this.keys._importPublic(r),this},t.prototype.setPrivateKey=function(r,i){i=i||"utf8",f.isBuffer(r)||(r=new f(r,i));var o=new u(r);return o=o.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(o),this};function n(r,i,o){Array.isArray(r)||(r=r.toArray());var l=new f(r);if(o&&l.length<o){var a=new f(o-l.length);a.fill(0),l=f.concat([a,l])}return i?l.toString(i):l}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,d,m){arguments[4][184][0].apply(m,arguments)},{buffer:188,dup:184}],386:[function(e,d,m){var f=e("inherits"),c=e("md5.js"),u=e("ripemd160"),s=e("sha.js"),t=e("cipher-base");function n(r){t.call(this,"digest"),this._hash=r}f(n,t),n.prototype._update=function(r){this._hash.update(r)},n.prototype._final=function(){return this._hash.digest()},d.exports=function(i){return i=i.toLowerCase(),i==="md5"?new c:i==="rmd160"||i==="ripemd160"?new u:new n(s(i))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,d,m){var f=e("md5.js");d.exports=function(c){return new f().update(c).digest()}},{"md5.js":450}],388:[function(e,d,m){var f=e("inherits"),c=e("./legacy"),u=e("cipher-base"),s=e("safe-buffer").Buffer,t=e("create-hash/md5"),n=e("ripemd160"),r=e("sha.js"),i=s.alloc(128);function o(l,a){u.call(this,"digest"),typeof a=="string"&&(a=s.from(a));var g=l==="sha512"||l==="sha384"?128:64;if(this._alg=l,this._key=a,a.length>g){var v=l==="rmd160"?new n:r(l);a=v.update(a).digest()}else a.length<g&&(a=s.concat([a,i],g));for(var h=this._ipad=s.allocUnsafe(g),w=this._opad=s.allocUnsafe(g),y=0;y<g;y++)h[y]=a[y]^54,w[y]=a[y]^92;this._hash=l==="rmd160"?new n:r(l),this._hash.update(h)}f(o,u),o.prototype._update=function(l){this._hash.update(l)},o.prototype._final=function(){var l=this._hash.digest(),a=this._alg==="rmd160"?new n:r(this._alg);return a.update(this._opad).update(l).digest()},d.exports=function(a,g){return a=a.toLowerCase(),a==="rmd160"||a==="ripemd160"?new o("rmd160",g):a==="md5"?new c(t,g):new o(a,g)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,d,m){var f=e("inherits"),c=e("safe-buffer").Buffer,u=e("cipher-base"),s=c.alloc(128),t=64;function n(r,i){u.call(this,"digest"),typeof i=="string"&&(i=c.from(i)),this._alg=r,this._key=i,i.length>t?i=r(i):i.length<t&&(i=c.concat([i,s],t));for(var o=this._ipad=c.allocUnsafe(t),l=this._opad=c.allocUnsafe(t),a=0;a<t;a++)o[a]=i[a]^54,l[a]=i[a]^92;this._hash=[o]}f(n,u),n.prototype._update=function(r){this._hash.push(r)},n.prototype._final=function(){var r=this._alg(c.concat(this._hash));return this._alg(c.concat([this._opad,r]))},d.exports=n},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,d,m){m.randomBytes=m.rng=m.pseudoRandomBytes=m.prng=e("randombytes"),m.createHash=m.Hash=e("create-hash"),m.createHmac=m.Hmac=e("create-hmac");var f=e("browserify-sign/algos"),c=Object.keys(f),u=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(c);m.getHashes=function(){return u};var s=e("pbkdf2");m.pbkdf2=s.pbkdf2,m.pbkdf2Sync=s.pbkdf2Sync;var t=e("browserify-cipher");m.Cipher=t.Cipher,m.createCipher=t.createCipher,m.Cipheriv=t.Cipheriv,m.createCipheriv=t.createCipheriv,m.Decipher=t.Decipher,m.createDecipher=t.createDecipher,m.Decipheriv=t.Decipheriv,m.createDecipheriv=t.createDecipheriv,m.getCiphers=t.getCiphers,m.listCiphers=t.listCiphers;var n=e("diffie-hellman");m.DiffieHellmanGroup=n.DiffieHellmanGroup,m.createDiffieHellmanGroup=n.createDiffieHellmanGroup,m.getDiffieHellman=n.getDiffieHellman,m.createDiffieHellman=n.createDiffieHellman,m.DiffieHellman=n.DiffieHellman;var r=e("browserify-sign");m.createSign=r.createSign,m.Sign=r.Sign,m.createVerify=r.createVerify,m.Verify=r.Verify,m.createECDH=e("create-ecdh");var i=e("public-encrypt");m.publicEncrypt=i.publicEncrypt,m.privateEncrypt=i.privateEncrypt,m.publicDecrypt=i.publicDecrypt,m.privateDecrypt=i.privateDecrypt;var o=e("randomfill");m.randomFill=o.randomFill,m.randomFillSync=o.randomFillSync,m.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
||
`))},m.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,d,m){(function(f,c){typeof m=="object"&&typeof d<"u"?d.exports=c():(f=typeof globalThis<"u"?globalThis:f||self).dayjs=c()})(void 0,function(){var f=1e3,c=6e4,u=36e5,s="millisecond",t="second",n="minute",r="hour",i="day",o="week",l="month",a="quarter",g="year",v="date",h="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var _=["th","st","nd","rd"],A=T%100;return"["+T+(_[(A-20)%10]||_[A]||_[0])+"]"}},E=function(T,_,A){var P=String(T);return!P||P.length>=_?T:""+Array(_+1-P.length).join(A)+T},I={s:E,z:function(T){var _=-T.utcOffset(),A=Math.abs(_),P=Math.floor(A/60),L=A%60;return(_<=0?"+":"-")+E(P,2,"0")+":"+E(L,2,"0")},m:function T(_,A){if(_.date()<A.date())return-T(A,_);var P=12*(A.year()-_.year())+(A.month()-_.month()),L=_.clone().add(P,l),$=A-L<0,R=_.clone().add(P+($?-1:1),l);return+(-(P+(A-L)/($?L-R:R-L))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:l,y:g,w:o,d:i,D:v,h:r,m:n,s:t,ms:s,Q:a}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},F="en",B={};B[F]=S;var j="$isDayjsObject",X=function(T){return T instanceof H||!(!T||!T[j])},G=function T(_,A,P){var L;if(!_)return F;if(typeof _=="string"){var $=_.toLowerCase();B[$]&&(L=$),A&&(B[$]=A,L=$);var R=_.split("-");if(!L&&R.length>1)return T(R[0])}else{var k=_.name;B[k]=_,L=k}return!P&&L&&(F=L),L||!P&&F},V=function(T,_){if(X(T))return T.clone();var A=typeof _=="object"?_:{};return A.date=T,A.args=arguments,new H(A)},J=I;J.l=G,J.i=X,J.w=function(T,_){return V(T,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var H=function(){function T(A){this.$L=G(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[j]=!0}var _=T.prototype;return _.parse=function(A){this.$d=function(P){var L=P.date,$=P.utc;if(L===null)return new Date(NaN);if(J.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var R=L.match(w);if(R){var k=R[2]-1||0,C=(R[7]||"0").substring(0,3);return $?new Date(Date.UTC(R[1],k,R[3]||1,R[4]||0,R[5]||0,R[6]||0,C)):new Date(R[1],k,R[3]||1,R[4]||0,R[5]||0,R[6]||0,C)}}return new Date(L)}(A),this.init()},_.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},_.$utils=function(){return J},_.isValid=function(){return this.$d.toString()!==h},_.isSame=function(A,P){var L=V(A);return this.startOf(P)<=L&&L<=this.endOf(P)},_.isAfter=function(A,P){return V(A)<this.startOf(P)},_.isBefore=function(A,P){return this.endOf(P)<V(A)},_.$g=function(A,P,L){return J.u(A)?this[P]:this.set(L,A)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(A,P){var L=this,$=!!J.u(P)||P,R=J.p(A),k=function(pe,te){var Z=J.w(L.$u?Date.UTC(L.$y,te,pe):new Date(L.$y,te,pe),L);return $?Z:Z.endOf(i)},C=function(pe,te){return J.w(L.toDate()[pe].apply(L.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(te)),L)},O=this.$W,W=this.$M,ne=this.$D,he="set"+(this.$u?"UTC":"");switch(R){case g:return $?k(1,0):k(31,11);case l:return $?k(1,W):k(0,W+1);case o:var ue=this.$locale().weekStart||0,Ae=(O<ue?O+7:O)-ue;return k($?ne-Ae:ne+(6-Ae),W);case i:case v:return C(he+"Hours",0);case r:return C(he+"Minutes",1);case n:return C(he+"Seconds",2);case t:return C(he+"Milliseconds",3);default:return this.clone()}},_.endOf=function(A){return this.startOf(A,!1)},_.$set=function(A,P){var L,$=J.p(A),R="set"+(this.$u?"UTC":""),k=(L={},L[i]=R+"Date",L[v]=R+"Date",L[l]=R+"Month",L[g]=R+"FullYear",L[r]=R+"Hours",L[n]=R+"Minutes",L[t]=R+"Seconds",L[s]=R+"Milliseconds",L)[$],C=$===i?this.$D+(P-this.$W):P;if($===l||$===g){var O=this.clone().set(v,1);O.$d[k](C),O.init(),this.$d=O.set(v,Math.min(this.$D,O.daysInMonth())).$d}else k&&this.$d[k](C);return this.init(),this},_.set=function(A,P){return this.clone().$set(A,P)},_.get=function(A){return this[J.p(A)]()},_.add=function(A,P){var L,$=this;A=Number(A);var R=J.p(P),k=function(W){var ne=V($);return J.w(ne.date(ne.date()+Math.round(W*A)),$)};if(R===l)return this.set(l,this.$M+A);if(R===g)return this.set(g,this.$y+A);if(R===i)return k(1);if(R===o)return k(7);var C=(L={},L[n]=c,L[r]=u,L[t]=f,L)[R]||1,O=this.$d.getTime()+A*C;return J.w(O,this)},_.subtract=function(A,P){return this.add(-1*A,P)},_.format=function(A){var P=this,L=this.$locale();if(!this.isValid())return L.invalidDate||h;var $=A||"YYYY-MM-DDTHH:mm:ssZ",R=J.z(this),k=this.$H,C=this.$m,O=this.$M,W=L.weekdays,ne=L.months,he=L.meridiem,ue=function(te,Z,q,de){return te&&(te[Z]||te(P,$))||q[Z].slice(0,de)},Ae=function(te){return J.s(k%12||12,te,"0")},pe=he||function(te,Z,q){var de=te<12?"AM":"PM";return q?de.toLowerCase():de};return $.replace(y,function(te,Z){return Z||function(q){switch(q){case"YY":return String(P.$y).slice(-2);case"YYYY":return J.s(P.$y,4,"0");case"M":return O+1;case"MM":return J.s(O+1,2,"0");case"MMM":return ue(L.monthsShort,O,ne,3);case"MMMM":return ue(ne,O);case"D":return P.$D;case"DD":return J.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return ue(L.weekdaysMin,P.$W,W,2);case"ddd":return ue(L.weekdaysShort,P.$W,W,3);case"dddd":return W[P.$W];case"H":return String(k);case"HH":return J.s(k,2,"0");case"h":return Ae(1);case"hh":return Ae(2);case"a":return pe(k,C,!0);case"A":return pe(k,C,!1);case"m":return String(C);case"mm":return J.s(C,2,"0");case"s":return String(P.$s);case"ss":return J.s(P.$s,2,"0");case"SSS":return J.s(P.$ms,3,"0");case"Z":return R}return null}(te)||R.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(A,P,L){var $,R=this,k=J.p(P),C=V(A),O=(C.utcOffset()-this.utcOffset())*c,W=this-C,ne=function(){return J.m(R,C)};switch(k){case g:$=ne()/12;break;case l:$=ne();break;case a:$=ne()/3;break;case o:$=(W-O)/6048e5;break;case i:$=(W-O)/864e5;break;case r:$=W/u;break;case n:$=W/c;break;case t:$=W/f;break;default:$=W}return L?$:J.a($)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return B[this.$L]},_.locale=function(A,P){if(!A)return this.$L;var L=this.clone(),$=G(A,P,!0);return $&&(L.$L=$),L},_.clone=function(){return J.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},T}(),M=H.prototype;return V.prototype=M,[["$ms",s],["$s",t],["$m",n],["$H",r],["$W",i],["$M",l],["$y",g],["$D",v]].forEach(function(T){M[T[1]]=function(_){return this.$g(_,T[0],T[1])}}),V.extend=function(T,_){return T.$i||(T(_,H,V),T.$i=!0),V},V.locale=G,V.isDayjs=X,V.unix=function(T){return V(1e3*T)},V.en=B[F],V.Ls=B,V.p={},V})},{}],392:[function(e,d,m){(function(f,c){typeof m=="object"&&typeof d<"u"?d.exports=c():(f=typeof globalThis<"u"?globalThis:f||self).dayjs_plugin_customParseFormat=c()})(void 0,function(){var f={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},c=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,u=/\d\d/,s=/\d\d?/,t=/\d*[^-_:/,()\s\d]+/,n={},r=function(h){return(h=+h)+(h>68?1900:2e3)},i=function(h){return function(w){this[h]=+w}},o=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var y=w.match(/([+-]|\d\d)/g),S=60*y[1]+(+y[2]||0);return S===0?0:y[0]==="+"?-S:S}(h)}],l=function(h){var w=n[h];return w&&(w.indexOf?w:w.s.concat(w.f))},a=function(h,w){var y,S=n.meridiem;if(S){for(var E=1;E<=24;E+=1)if(h.indexOf(S(E,0,w))>-1){y=E>12;break}}else y=h===(w?"pm":"PM");return y},g={A:[t,function(h){this.afternoon=a(h,!1)}],a:[t,function(h){this.afternoon=a(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[u,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[s,i("seconds")],ss:[s,i("seconds")],m:[s,i("minutes")],mm:[s,i("minutes")],H:[s,i("hours")],h:[s,i("hours")],HH:[s,i("hours")],hh:[s,i("hours")],D:[s,i("day")],DD:[u,i("day")],Do:[t,function(h){var w=n.ordinal,y=h.match(/\d+/);if(this.day=y[0],w)for(var S=1;S<=31;S+=1)w(S).replace(/\[|\]/g,"")===h&&(this.day=S)}],M:[s,i("month")],MM:[u,i("month")],MMM:[t,function(h){var w=l("months"),y=(l("monthsShort")||w.map(function(S){return S.slice(0,3)})).indexOf(h)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[t,function(h){var w=l("months").indexOf(h)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,i("year")],YY:[u,function(h){this.year=r(h)}],YYYY:[/\d{4}/,i("year")],Z:o,ZZ:o};function v(h){var w,y;w=h,y=n&&n.formats;for(var S=(h=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(G,V,J){var H=J&&J.toUpperCase();return V||y[J]||f[J]||y[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(M,T,_){return T||_.slice(1)})})).match(c),E=S.length,I=0;I<E;I+=1){var F=S[I],B=g[F],j=B&&B[0],X=B&&B[1];S[I]=X?{regex:j,parser:X}:F.replace(/^\[|\]$/g,"")}return function(G){for(var V={},J=0,H=0;J<E;J+=1){var M=S[J];if(typeof M=="string")H+=M.length;else{var T=M.regex,_=M.parser,A=G.slice(H),P=T.exec(A)[0];_.call(V,P),G=G.replace(P,"")}}return function(L){var $=L.afternoon;if($!==void 0){var R=L.hours;$?R<12&&(L.hours+=12):R===12&&(L.hours=0),delete L.afternoon}}(V),V}}return function(h,w,y){y.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(r=h.parseTwoDigitYear);var S=w.prototype,E=S.parse;S.parse=function(I){var F=I.date,B=I.utc,j=I.args;this.$u=B;var X=j[1];if(typeof X=="string"){var G=j[2]===!0,V=j[3]===!0,J=G||V,H=j[2];V&&(H=j[2]),n=this.$locale(),!G&&H&&(n=y.Ls[H]),this.$d=function(A,P,L){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*A);var $=v(P)(A),R=$.year,k=$.month,C=$.day,O=$.hours,W=$.minutes,ne=$.seconds,he=$.milliseconds,ue=$.zone,Ae=new Date,pe=C||(R||k?1:Ae.getDate()),te=R||Ae.getFullYear(),Z=0;R&&!k||(Z=k>0?k-1:Ae.getMonth());var q=O||0,de=W||0,ke=ne||0,oe=he||0;return ue?new Date(Date.UTC(te,Z,pe,q,de,ke,oe+60*ue.offset*1e3)):L?new Date(Date.UTC(te,Z,pe,q,de,ke,oe)):new Date(te,Z,pe,q,de,ke,oe)}catch{return new Date("")}}(F,X,B),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),J&&F!=this.format(X)&&(this.$d=new Date("")),n={}}else if(X instanceof Array)for(var M=X.length,T=1;T<=M;T+=1){j[1]=X[T-1];var _=y.apply(this,j);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}T===M&&(this.$d=new Date(""))}else E.call(this,I)}}})},{}],393:[function(e,d,m){(function(f,c){typeof m=="object"&&typeof d<"u"?d.exports=c():(f=typeof globalThis<"u"?globalThis:f||self).dayjs_plugin_utc=c()})(void 0,function(){var f="minute",c=/[+-]\d\d(?::?\d\d)?/g,u=/([+-]|\d\d)/g;return function(s,t,n){var r=t.prototype;n.utc=function(h){var w={date:h,utc:!0,args:arguments};return new t(w)},r.utc=function(h){var w=n(this.toDate(),{locale:this.$L,utc:!0});return h?w.add(this.utcOffset(),f):w},r.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var i=r.parse;r.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),i.call(this,h)};var o=r.init;r.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else o.call(this)};var l=r.utcOffset;r.utcOffset=function(h,w){var y=this.$utils().u;if(y(h))return this.$u?0:y(this.$offset)?l.call(this):this.$offset;if(typeof h=="string"&&(h=function(F){F===void 0&&(F="");var B=F.match(c);if(!B)return null;var j=(""+B[0]).match(u)||["-",0,0],X=j[0],G=60*+j[1]+ +j[2];return G===0?0:X==="+"?G:-G}(h),h===null))return this;var S=Math.abs(h)<=16?60*h:h,E=this;if(w)return E.$offset=S,E.$u=h===0,E;if(h!==0){var I=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(S+I,f)).$offset=S,E.$x.$localOffset=I}else E=this.utc();return E};var a=r.format;r.format=function(h){var w=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return a.call(this,w)},r.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var g=r.toDate;r.toDate=function(h){return h==="s"&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var v=r.diff;r.diff=function(h,w,y){if(h&&this.$u===h.$u)return v.call(this,h,w,y);var S=this.local(),E=n(h).local();return v.call(S,E,w,y)}}})},{}],394:[function(e,d,m){m.utils=e("./des/utils"),m.Cipher=e("./des/cipher"),m.DES=e("./des/des"),m.CBC=e("./des/cbc"),m.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,d,m){var f=e("minimalistic-assert"),c=e("inherits"),u={};function s(n){f.equal(n.length,8,"Invalid IV length"),this.iv=new Array(8);for(var r=0;r<this.iv.length;r++)this.iv[r]=n[r]}function t(n){function r(a){n.call(this,a),this._cbcInit()}c(r,n);for(var i=Object.keys(u),o=0;o<i.length;o++){var l=i[o];r.prototype[l]=u[l]}return r.create=function(g){return new r(g)},r}m.instantiate=t,u._cbcInit=function(){var r=new s(this.options.iv);this._cbcState=r},u._update=function(r,i,o,l){var a=this._cbcState,g=this.constructor.super_.prototype,v=a.iv;if(this.type==="encrypt"){for(var h=0;h<this.blockSize;h++)v[h]^=r[i+h];g._update.call(this,v,0,o,l);for(var h=0;h<this.blockSize;h++)v[h]=o[l+h]}else{g._update.call(this,r,i,o,l);for(var h=0;h<this.blockSize;h++)o[l+h]^=v[h];for(var h=0;h<this.blockSize;h++)v[h]=r[i+h]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,d,m){var f=e("minimalistic-assert");function c(u){this.options=u,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=u.padding!==!1}d.exports=c,c.prototype._init=function(){},c.prototype.update=function(s){return s.length===0?[]:this.type==="decrypt"?this._updateDecrypt(s):this._updateEncrypt(s)},c.prototype._buffer=function(s,t){for(var n=Math.min(this.buffer.length-this.bufferOff,s.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=s[t+r];return this.bufferOff+=n,n},c.prototype._flushBuffer=function(s,t){return this._update(this.buffer,0,s,t),this.bufferOff=0,this.blockSize},c.prototype._updateEncrypt=function(s){var t=0,n=0,r=(this.bufferOff+s.length)/this.blockSize|0,i=new Array(r*this.blockSize);this.bufferOff!==0&&(t+=this._buffer(s,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var o=s.length-(s.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(s,t,i,n),n+=this.blockSize;for(;t<s.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=s[t];return i},c.prototype._updateDecrypt=function(s){for(var t=0,n=0,r=Math.ceil((this.bufferOff+s.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(s,t),n+=this._flushBuffer(i,n);return t+=this._buffer(s,t),i},c.prototype.final=function(s){var t;s&&(t=this.update(s));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),t?t.concat(n):n},c.prototype._pad=function(s,t){if(t===0)return!1;for(;t<s.length;)s[t++]=0;return!0},c.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var s=new Array(this.blockSize);return this._update(this.buffer,0,s,0),s},c.prototype._unpad=function(s){return s},c.prototype._finalDecrypt=function(){f.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var s=new Array(this.blockSize);return this._flushBuffer(s,0),this._unpad(s)}},{"minimalistic-assert":453}],397:[function(e,d,m){var f=e("minimalistic-assert"),c=e("inherits"),u=e("./utils"),s=e("./cipher");function t(){this.tmp=new Array(2),this.keys=null}function n(i){s.call(this,i);var o=new t;this._desState=o,this.deriveKeys(o,i.key)}c(n,s),d.exports=n,n.create=function(o){return new n(o)};var r=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];n.prototype.deriveKeys=function(o,l){o.keys=new Array(16*2),f.equal(l.length,this.blockSize,"Invalid key length");var a=u.readUInt32BE(l,0),g=u.readUInt32BE(l,4);u.pc1(a,g,o.tmp,0),a=o.tmp[0],g=o.tmp[1];for(var v=0;v<o.keys.length;v+=2){var h=r[v>>>1];a=u.r28shl(a,h),g=u.r28shl(g,h),u.pc2(a,g,o.keys,v)}},n.prototype._update=function(o,l,a,g){var v=this._desState,h=u.readUInt32BE(o,l),w=u.readUInt32BE(o,l+4);u.ip(h,w,v.tmp,0),h=v.tmp[0],w=v.tmp[1],this.type==="encrypt"?this._encrypt(v,h,w,v.tmp,0):this._decrypt(v,h,w,v.tmp,0),h=v.tmp[0],w=v.tmp[1],u.writeUInt32BE(a,h,g),u.writeUInt32BE(a,w,g+4)},n.prototype._pad=function(o,l){if(this.padding===!1)return!1;for(var a=o.length-l,g=l;g<o.length;g++)o[g]=a;return!0},n.prototype._unpad=function(o){if(this.padding===!1)return o;for(var l=o[o.length-1],a=o.length-l;a<o.length;a++)f.equal(o[a],l);return o.slice(0,o.length-l)},n.prototype._encrypt=function(o,l,a,g,v){for(var h=l,w=a,y=0;y<o.keys.length;y+=2){var S=o.keys[y],E=o.keys[y+1];u.expand(w,o.tmp,0),S^=o.tmp[0],E^=o.tmp[1];var I=u.substitute(S,E),F=u.permute(I),B=w;w=(h^F)>>>0,h=B}u.rip(w,h,g,v)},n.prototype._decrypt=function(o,l,a,g,v){for(var h=a,w=l,y=o.keys.length-2;y>=0;y-=2){var S=o.keys[y],E=o.keys[y+1];u.expand(h,o.tmp,0),S^=o.tmp[0],E^=o.tmp[1];var I=u.substitute(S,E),F=u.permute(I),B=h;h=(w^F)>>>0,w=B}u.rip(h,w,g,v)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,d,m){var f=e("minimalistic-assert"),c=e("inherits"),u=e("./cipher"),s=e("./des");function t(r,i){f.equal(i.length,24,"Invalid key length");var o=i.slice(0,8),l=i.slice(8,16),a=i.slice(16,24);r==="encrypt"?this.ciphers=[s.create({type:"encrypt",key:o}),s.create({type:"decrypt",key:l}),s.create({type:"encrypt",key:a})]:this.ciphers=[s.create({type:"decrypt",key:a}),s.create({type:"encrypt",key:l}),s.create({type:"decrypt",key:o})]}function n(r){u.call(this,r);var i=new t(this.type,this.options.key);this._edeState=i}c(n,u),d.exports=n,n.create=function(i){return new n(i)},n.prototype._update=function(i,o,l,a){var g=this._edeState;g.ciphers[0]._update(i,o,l,a),g.ciphers[1]._update(l,a,l,a),g.ciphers[2]._update(l,a,l,a)},n.prototype._pad=s.prototype._pad,n.prototype._unpad=s.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,d,m){m.readUInt32BE=function(t,n){var r=t[0+n]<<24|t[1+n]<<16|t[2+n]<<8|t[3+n];return r>>>0},m.writeUInt32BE=function(t,n,r){t[0+r]=n>>>24,t[1+r]=n>>>16&255,t[2+r]=n>>>8&255,t[3+r]=n&255},m.ip=function(t,n,r,i){for(var o=0,l=0,a=6;a>=0;a-=2){for(var g=0;g<=24;g+=8)o<<=1,o|=n>>>g+a&1;for(var g=0;g<=24;g+=8)o<<=1,o|=t>>>g+a&1}for(var a=6;a>=0;a-=2){for(var g=1;g<=25;g+=8)l<<=1,l|=n>>>g+a&1;for(var g=1;g<=25;g+=8)l<<=1,l|=t>>>g+a&1}r[i+0]=o>>>0,r[i+1]=l>>>0},m.rip=function(t,n,r,i){for(var o=0,l=0,a=0;a<4;a++)for(var g=24;g>=0;g-=8)o<<=1,o|=n>>>g+a&1,o<<=1,o|=t>>>g+a&1;for(var a=4;a<8;a++)for(var g=24;g>=0;g-=8)l<<=1,l|=n>>>g+a&1,l<<=1,l|=t>>>g+a&1;r[i+0]=o>>>0,r[i+1]=l>>>0},m.pc1=function(t,n,r,i){for(var o=0,l=0,a=7;a>=5;a--){for(var g=0;g<=24;g+=8)o<<=1,o|=n>>g+a&1;for(var g=0;g<=24;g+=8)o<<=1,o|=t>>g+a&1}for(var g=0;g<=24;g+=8)o<<=1,o|=n>>g+a&1;for(var a=1;a<=3;a++){for(var g=0;g<=24;g+=8)l<<=1,l|=n>>g+a&1;for(var g=0;g<=24;g+=8)l<<=1,l|=t>>g+a&1}for(var g=0;g<=24;g+=8)l<<=1,l|=t>>g+a&1;r[i+0]=o>>>0,r[i+1]=l>>>0},m.r28shl=function(t,n){return t<<n&268435455|t>>>28-n};var f=[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];m.pc2=function(t,n,r,i){for(var o=0,l=0,a=f.length>>>1,g=0;g<a;g++)o<<=1,o|=t>>>f[g]&1;for(var g=a;g<f.length;g++)l<<=1,l|=n>>>f[g]&1;r[i+0]=o>>>0,r[i+1]=l>>>0},m.expand=function(t,n,r){var i=0,o=0;i=(t&1)<<5|t>>>27;for(var l=23;l>=15;l-=4)i<<=6,i|=t>>>l&63;for(var l=11;l>=3;l-=4)o|=t>>>l&63,o<<=6;o|=(t&31)<<1|t>>>31,n[r+0]=i>>>0,n[r+1]=o>>>0};var c=[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];m.substitute=function(t,n){for(var r=0,i=0;i<4;i++){var o=t>>>18-i*6&63,l=c[i*64+o];r<<=4,r|=l}for(var i=0;i<4;i++){var o=n>>>18-i*6&63,l=c[4*64+i*64+o];r<<=4,r|=l}return r>>>0};var u=[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];m.permute=function(t){for(var n=0,r=0;r<u.length;r++)n<<=1,n|=t>>>u[r]&1;return n>>>0},m.padSplit=function(t,n,r){for(var i=t.toString(2);i.length<n;)i="0"+i;for(var o=[],l=0;l<n;l+=r)o.push(i.slice(l,l+r));return o.join(" ")}},{}],400:[function(e,d,m){(function(f){(function(){var c=e("./lib/generatePrime"),u=e("./lib/primes.json"),s=e("./lib/dh");function t(i){var o=new f(u[i].prime,"hex"),l=new f(u[i].gen,"hex");return new s(o,l)}var n={binary:!0,hex:!0,base64:!0};function r(i,o,l,a){return f.isBuffer(o)||n[o]===void 0?r(i,"binary",o,l):(o=o||"binary",a=a||"binary",l=l||new f([2]),f.isBuffer(l)||(l=new f(l,a)),typeof i=="number"?new s(c(i,l),l,!0):(f.isBuffer(i)||(i=new f(i,o)),new s(i,l,!0)))}m.DiffieHellmanGroup=m.createDiffieHellmanGroup=m.getDiffieHellman=t,m.createDiffieHellman=m.DiffieHellman=r}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,d,m){(function(f){(function(){var c=e("bn.js"),u=e("miller-rabin"),s=new u,t=new c(24),n=new c(11),r=new c(10),i=new c(3),o=new c(7),l=e("./generatePrime"),a=e("randombytes");d.exports=y;function g(E,I){return I=I||"utf8",f.isBuffer(E)||(E=new f(E,I)),this._pub=new c(E),this}function v(E,I){return I=I||"utf8",f.isBuffer(E)||(E=new f(E,I)),this._priv=new c(E),this}var h={};function w(E,I){var F=I.toString("hex"),B=[F,E.toString(16)].join("_");if(B in h)return h[B];var j=0;if(E.isEven()||!l.simpleSieve||!l.fermatTest(E)||!s.test(E))return j+=1,F==="02"||F==="05"?j+=8:j+=4,h[B]=j,j;s.test(E.shrn(1))||(j+=2);var X;switch(F){case"02":E.mod(t).cmp(n)&&(j+=8);break;case"05":X=E.mod(r),X.cmp(i)&&X.cmp(o)&&(j+=8);break;default:j+=4}return h[B]=j,j}function y(E,I,F){this.setGenerator(I),this.__prime=new c(E),this._prime=c.mont(this.__prime),this._primeLen=E.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,F?(this.setPublicKey=g,this.setPrivateKey=v):this._primeCode=8}Object.defineProperty(y.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=w(this.__prime,this.__gen)),this._primeCode}}),y.prototype.generateKeys=function(){return this._priv||(this._priv=new c(a(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},y.prototype.computeSecret=function(E){E=new c(E),E=E.toRed(this._prime);var I=E.redPow(this._priv).fromRed(),F=new f(I.toArray()),B=this.getPrime();if(F.length<B.length){var j=new f(B.length-F.length);j.fill(0),F=f.concat([j,F])}return F},y.prototype.getPublicKey=function(I){return S(this._pub,I)},y.prototype.getPrivateKey=function(I){return S(this._priv,I)},y.prototype.getPrime=function(E){return S(this.__prime,E)},y.prototype.getGenerator=function(E){return S(this._gen,E)},y.prototype.setGenerator=function(E,I){return I=I||"utf8",f.isBuffer(E)||(E=new f(E,I)),this.__gen=E,this._gen=new c(E),this};function S(E,I){var F=new f(E.toArray());return I?F.toString(I):F}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,d,m){var f=e("randombytes");d.exports=S,S.simpleSieve=w,S.fermatTest=y;var c=e("bn.js"),u=new c(24),s=e("miller-rabin"),t=new s,n=new c(1),r=new c(2),i=new c(5);new c(16),new c(8);var o=new c(10),l=new c(3);new c(7);var a=new c(11),g=new c(4);new c(12);var v=null;function h(){if(v!==null)return v;var E=1048576,I=[];I[0]=2;for(var F=1,B=3;B<E;B+=2){for(var j=Math.ceil(Math.sqrt(B)),X=0;X<F&&I[X]<=j&&B%I[X]!==0;X++);F!==X&&I[X]<=j||(I[F++]=B)}return v=I,I}function w(E){for(var I=h(),F=0;F<I.length;F++)if(E.modn(I[F])===0)return E.cmpn(I[F])===0;return!0}function y(E){var I=c.mont(E);return r.toRed(I).redPow(E.subn(1)).fromRed().cmpn(1)===0}function S(E,I){if(E<16)return I===2||I===5?new c([140,123]):new c([140,39]);I=new c(I);for(var F,B;;){for(F=new c(f(Math.ceil(E/8)));F.bitLength()>E;)F.ishrn(1);if(F.isEven()&&F.iadd(n),F.testn(1)||F.iadd(r),I.cmp(r)){if(!I.cmp(i))for(;F.mod(o).cmp(l);)F.iadd(g)}else for(;F.mod(u).cmp(a);)F.iadd(g);if(B=F.shrn(1),w(B)&&w(F)&&y(B)&&y(F)&&t.test(B)&&t.test(F))return F}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,d,m){d.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(e,d,m){arguments[4][184][0].apply(m,arguments)},{buffer:188,dup:184}],405:[function(e,d,m){var f=m;f.version=e("../package.json").version,f.utils=e("./elliptic/utils"),f.rand=e("brorand"),f.curve=e("./elliptic/curve"),f.curves=e("./elliptic/curves"),f.ec=e("./elliptic/ec"),f.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,d,m){var f=e("bn.js"),c=e("../utils"),u=c.getNAF,s=c.getJSF,t=c.assert;function n(i,o){this.type=i,this.p=new f(o.p,16),this.red=o.prime?f.red(o.prime):f.mont(this.p),this.zero=new f(0).toRed(this.red),this.one=new f(1).toRed(this.red),this.two=new f(2).toRed(this.red),this.n=o.n&&new f(o.n,16),this.g=o.g&&this.pointFromJSON(o.g,o.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 l=this.n&&this.p.div(this.n);!l||l.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}d.exports=n,n.prototype.point=function(){throw new Error("Not implemented")},n.prototype.validate=function(){throw new Error("Not implemented")},n.prototype._fixedNafMul=function(o,l){t(o.precomputed);var a=o._getDoubles(),g=u(l,1,this._bitLength),v=(1<<a.step+1)-(a.step%2===0?2:1);v/=3;var h=[],w,y;for(w=0;w<g.length;w+=a.step){y=0;for(var S=w+a.step-1;S>=w;S--)y=(y<<1)+g[S];h.push(y)}for(var E=this.jpoint(null,null,null),I=this.jpoint(null,null,null),F=v;F>0;F--){for(w=0;w<h.length;w++)y=h[w],y===F?I=I.mixedAdd(a.points[w]):y===-F&&(I=I.mixedAdd(a.points[w].neg()));E=E.add(I)}return E.toP()},n.prototype._wnafMul=function(o,l){var a=4,g=o._getNAFPoints(a);a=g.wnd;for(var v=g.points,h=u(l,a,this._bitLength),w=this.jpoint(null,null,null),y=h.length-1;y>=0;y--){for(var S=0;y>=0&&h[y]===0;y--)S++;if(y>=0&&S++,w=w.dblp(S),y<0)break;var E=h[y];t(E!==0),o.type==="affine"?E>0?w=w.mixedAdd(v[E-1>>1]):w=w.mixedAdd(v[-E-1>>1].neg()):E>0?w=w.add(v[E-1>>1]):w=w.add(v[-E-1>>1].neg())}return o.type==="affine"?w.toP():w},n.prototype._wnafMulAdd=function(o,l,a,g,v){var h=this._wnafT1,w=this._wnafT2,y=this._wnafT3,S=0,E,I,F;for(E=0;E<g;E++){F=l[E];var B=F._getNAFPoints(o);h[E]=B.wnd,w[E]=B.points}for(E=g-1;E>=1;E-=2){var j=E-1,X=E;if(h[j]!==1||h[X]!==1){y[j]=u(a[j],h[j],this._bitLength),y[X]=u(a[X],h[X],this._bitLength),S=Math.max(y[j].length,S),S=Math.max(y[X].length,S);continue}var G=[l[j],null,null,l[X]];l[j].y.cmp(l[X].y)===0?(G[1]=l[j].add(l[X]),G[2]=l[j].toJ().mixedAdd(l[X].neg())):l[j].y.cmp(l[X].y.redNeg())===0?(G[1]=l[j].toJ().mixedAdd(l[X]),G[2]=l[j].add(l[X].neg())):(G[1]=l[j].toJ().mixedAdd(l[X]),G[2]=l[j].toJ().mixedAdd(l[X].neg()));var V=[-3,-1,-5,-7,0,7,5,1,3],J=s(a[j],a[X]);for(S=Math.max(J[0].length,S),y[j]=new Array(S),y[X]=new Array(S),I=0;I<S;I++){var H=J[0][I]|0,M=J[1][I]|0;y[j][I]=V[(H+1)*3+(M+1)],y[X][I]=0,w[j]=G}}var T=this.jpoint(null,null,null),_=this._wnafT4;for(E=S;E>=0;E--){for(var A=0;E>=0;){var P=!0;for(I=0;I<g;I++)_[I]=y[I][E]|0,_[I]!==0&&(P=!1);if(!P)break;A++,E--}if(E>=0&&A++,T=T.dblp(A),E<0)break;for(I=0;I<g;I++){var L=_[I];L!==0&&(L>0?F=w[I][L-1>>1]:L<0&&(F=w[I][-L-1>>1].neg()),F.type==="affine"?T=T.mixedAdd(F):T=T.add(F))}}for(E=0;E<g;E++)w[E]=null;return v?T:T.toP()};function r(i,o){this.curve=i,this.type=o,this.precomputed=null}n.BasePoint=r,r.prototype.eq=function(){throw new Error("Not implemented")},r.prototype.validate=function(){return this.curve.validate(this)},n.prototype.decodePoint=function(o,l){o=c.toArray(o,l);var a=this.p.byteLength();if((o[0]===4||o[0]===6||o[0]===7)&&o.length-1===2*a){o[0]===6?t(o[o.length-1]%2===0):o[0]===7&&t(o[o.length-1]%2===1);var g=this.point(o.slice(1,1+a),o.slice(1+a,1+2*a));return g}else if((o[0]===2||o[0]===3)&&o.length-1===a)return this.pointFromX(o.slice(1,1+a),o[0]===3);throw new Error("Unknown point format")},r.prototype.encodeCompressed=function(o){return this.encode(o,!0)},r.prototype._encode=function(o){var l=this.curve.p.byteLength(),a=this.getX().toArray("be",l);return o?[this.getY().isEven()?2:3].concat(a):[4].concat(a,this.getY().toArray("be",l))},r.prototype.encode=function(o,l){return c.encode(this._encode(l),o)},r.prototype.precompute=function(o){if(this.precomputed)return this;var l={doubles:null,naf:null,beta:null};return l.naf=this._getNAFPoints(8),l.doubles=this._getDoubles(4,o),l.beta=this._getBeta(),this.precomputed=l,this},r.prototype._hasDoubles=function(o){if(!this.precomputed)return!1;var l=this.precomputed.doubles;return l?l.points.length>=Math.ceil((o.bitLength()+1)/l.step):!1},r.prototype._getDoubles=function(o,l){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],g=this,v=0;v<l;v+=o){for(var h=0;h<o;h++)g=g.dbl();a.push(g)}return{step:o,points:a}},r.prototype._getNAFPoints=function(o){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var l=[this],a=(1<<o)-1,g=a===1?null:this.dbl(),v=1;v<a;v++)l[v]=l[v-1].add(g);return{wnd:o,points:l}},r.prototype._getBeta=function(){return null},r.prototype.dblp=function(o){for(var l=this,a=0;a<o;a++)l=l.dbl();return l}},{"../utils":419,"bn.js":420}],407:[function(e,d,m){var f=e("../utils"),c=e("bn.js"),u=e("inherits"),s=e("./base"),t=f.assert;function n(i){this.twisted=(i.a|0)!==1,this.mOneA=this.twisted&&(i.a|0)===-1,this.extended=this.mOneA,s.call(this,"edwards",i),this.a=new c(i.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new c(i.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new c(i.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),t(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(i.c|0)===1}u(n,s),d.exports=n,n.prototype._mulA=function(o){return this.mOneA?o.redNeg():this.a.redMul(o)},n.prototype._mulC=function(o){return this.oneC?o:this.c.redMul(o)},n.prototype.jpoint=function(o,l,a,g){return this.point(o,l,a,g)},n.prototype.pointFromX=function(o,l){o=new c(o,16),o.red||(o=o.toRed(this.red));var a=o.redSqr(),g=this.c2.redSub(this.a.redMul(a)),v=this.one.redSub(this.c2.redMul(this.d).redMul(a)),h=g.redMul(v.redInvm()),w=h.redSqrt();if(w.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");var y=w.fromRed().isOdd();return(l&&!y||!l&&y)&&(w=w.redNeg()),this.point(o,w)},n.prototype.pointFromY=function(o,l){o=new c(o,16),o.red||(o=o.toRed(this.red));var a=o.redSqr(),g=a.redSub(this.c2),v=a.redMul(this.d).redMul(this.c2).redSub(this.a),h=g.redMul(v.redInvm());if(h.cmp(this.zero)===0){if(l)throw new Error("invalid point");return this.point(this.zero,o)}var w=h.redSqrt();if(w.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");return w.fromRed().isOdd()!==l&&(w=w.redNeg()),this.point(w,o)},n.prototype.validate=function(o){if(o.isInfinity())return!0;o.normalize();var l=o.x.redSqr(),a=o.y.redSqr(),g=l.redMul(this.a).redAdd(a),v=this.c2.redMul(this.one.redAdd(this.d.redMul(l).redMul(a)));return g.cmp(v)===0};function r(i,o,l,a,g){s.BasePoint.call(this,i,"projective"),o===null&&l===null&&a===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new c(o,16),this.y=new c(l,16),this.z=a?new c(a,16):this.curve.one,this.t=g&&new c(g,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}u(r,s.BasePoint),n.prototype.pointFromJSON=function(o){return r.fromJSON(this,o)},n.prototype.point=function(o,l,a,g){return new r(this,o,l,a,g)},r.fromJSON=function(o,l){return new r(o,l[0],l[1],l[2])},r.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},r.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},r.prototype._extDbl=function(){var o=this.x.redSqr(),l=this.y.redSqr(),a=this.z.redSqr();a=a.redIAdd(a);var g=this.curve._mulA(o),v=this.x.redAdd(this.y).redSqr().redISub(o).redISub(l),h=g.redAdd(l),w=h.redSub(a),y=g.redSub(l),S=v.redMul(w),E=h.redMul(y),I=v.redMul(y),F=w.redMul(h);return this.curve.point(S,E,F,I)},r.prototype._projDbl=function(){var o=this.x.redAdd(this.y).redSqr(),l=this.x.redSqr(),a=this.y.redSqr(),g,v,h,w,y,S;if(this.curve.twisted){w=this.curve._mulA(l);var E=w.redAdd(a);this.zOne?(g=o.redSub(l).redSub(a).redMul(E.redSub(this.curve.two)),v=E.redMul(w.redSub(a)),h=E.redSqr().redSub(E).redSub(E)):(y=this.z.redSqr(),S=E.redSub(y).redISub(y),g=o.redSub(l).redISub(a).redMul(S),v=E.redMul(w.redSub(a)),h=E.redMul(S))}else w=l.redAdd(a),y=this.curve._mulC(this.z).redSqr(),S=w.redSub(y).redSub(y),g=this.curve._mulC(o.redISub(w)).redMul(S),v=this.curve._mulC(w).redMul(l.redISub(a)),h=w.redMul(S);return this.curve.point(g,v,h)},r.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},r.prototype._extAdd=function(o){var l=this.y.redSub(this.x).redMul(o.y.redSub(o.x)),a=this.y.redAdd(this.x).redMul(o.y.redAdd(o.x)),g=this.t.redMul(this.curve.dd).redMul(o.t),v=this.z.redMul(o.z.redAdd(o.z)),h=a.redSub(l),w=v.redSub(g),y=v.redAdd(g),S=a.redAdd(l),E=h.redMul(w),I=y.redMul(S),F=h.redMul(S),B=w.redMul(y);return this.curve.point(E,I,B,F)},r.prototype._projAdd=function(o){var l=this.z.redMul(o.z),a=l.redSqr(),g=this.x.redMul(o.x),v=this.y.redMul(o.y),h=this.curve.d.redMul(g).redMul(v),w=a.redSub(h),y=a.redAdd(h),S=this.x.redAdd(this.y).redMul(o.x.redAdd(o.y)).redISub(g).redISub(v),E=l.redMul(w).redMul(S),I,F;return this.curve.twisted?(I=l.redMul(y).redMul(v.redSub(this.curve._mulA(g))),F=w.redMul(y)):(I=l.redMul(y).redMul(v.redSub(g)),F=this.curve._mulC(w).redMul(y)),this.curve.point(E,I,F)},r.prototype.add=function(o){return this.isInfinity()?o:o.isInfinity()?this:this.curve.extended?this._extAdd(o):this._projAdd(o)},r.prototype.mul=function(o){return this._hasDoubles(o)?this.curve._fixedNafMul(this,o):this.curve._wnafMul(this,o)},r.prototype.mulAdd=function(o,l,a){return this.curve._wnafMulAdd(1,[this,l],[o,a],2,!1)},r.prototype.jmulAdd=function(o,l,a){return this.curve._wnafMulAdd(1,[this,l],[o,a],2,!0)},r.prototype.normalize=function(){if(this.zOne)return this;var o=this.z.redInvm();return this.x=this.x.redMul(o),this.y=this.y.redMul(o),this.t&&(this.t=this.t.redMul(o)),this.z=this.curve.one,this.zOne=!0,this},r.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},r.prototype.getX=function(){return this.normalize(),this.x.fromRed()},r.prototype.getY=function(){return this.normalize(),this.y.fromRed()},r.prototype.eq=function(o){return this===o||this.getX().cmp(o.getX())===0&&this.getY().cmp(o.getY())===0},r.prototype.eqXToP=function(o){var l=o.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(l)===0)return!0;for(var a=o.clone(),g=this.curve.redN.redMul(this.z);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(l.redIAdd(g),this.x.cmp(l)===0)return!0}},r.prototype.toP=r.prototype.normalize,r.prototype.mixedAdd=r.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,d,m){var f=m;f.base=e("./base"),f.short=e("./short"),f.mont=e("./mont"),f.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,d,m){var f=e("bn.js"),c=e("inherits"),u=e("./base"),s=e("../utils");function t(r){u.call(this,"mont",r),this.a=new f(r.a,16).toRed(this.red),this.b=new f(r.b,16).toRed(this.red),this.i4=new f(4).toRed(this.red).redInvm(),this.two=new f(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}c(t,u),d.exports=t,t.prototype.validate=function(i){var o=i.normalize().x,l=o.redSqr(),a=l.redMul(o).redAdd(l.redMul(this.a)).redAdd(o),g=a.redSqrt();return g.redSqr().cmp(a)===0};function n(r,i,o){u.BasePoint.call(this,r,"projective"),i===null&&o===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new f(i,16),this.z=new f(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}c(n,u.BasePoint),t.prototype.decodePoint=function(i,o){return this.point(s.toArray(i,o),1)},t.prototype.point=function(i,o){return new n(this,i,o)},t.prototype.pointFromJSON=function(i){return n.fromJSON(this,i)},n.prototype.precompute=function(){},n.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},n.fromJSON=function(i,o){return new n(i,o[0],o[1]||i.one)},n.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},n.prototype.isInfinity=function(){return this.z.cmpn(0)===0},n.prototype.dbl=function(){var i=this.x.redAdd(this.z),o=i.redSqr(),l=this.x.redSub(this.z),a=l.redSqr(),g=o.redSub(a),v=o.redMul(a),h=g.redMul(a.redAdd(this.curve.a24.redMul(g)));return this.curve.point(v,h)},n.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.diffAdd=function(i,o){var l=this.x.redAdd(this.z),a=this.x.redSub(this.z),g=i.x.redAdd(i.z),v=i.x.redSub(i.z),h=v.redMul(l),w=g.redMul(a),y=o.z.redMul(h.redAdd(w).redSqr()),S=o.x.redMul(h.redISub(w).redSqr());return this.curve.point(y,S)},n.prototype.mul=function(i){for(var o=i.clone(),l=this,a=this.curve.point(null,null),g=this,v=[];o.cmpn(0)!==0;o.iushrn(1))v.push(o.andln(1));for(var h=v.length-1;h>=0;h--)v[h]===0?(l=l.diffAdd(a,g),a=a.dbl()):(a=l.diffAdd(a,g),l=l.dbl());return a},n.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.eq=function(i){return this.getX().cmp(i.getX())===0},n.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,d,m){var f=e("../utils"),c=e("bn.js"),u=e("inherits"),s=e("./base"),t=f.assert;function n(o){s.call(this,"short",o),this.a=new c(o.a,16).toRed(this.red),this.b=new c(o.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(o),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}u(n,s),d.exports=n,n.prototype._getEndomorphism=function(l){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var a,g;if(l.beta)a=new c(l.beta,16).toRed(this.red);else{var v=this._getEndoRoots(this.p);a=v[0].cmp(v[1])<0?v[0]:v[1],a=a.toRed(this.red)}if(l.lambda)g=new c(l.lambda,16);else{var h=this._getEndoRoots(this.n);this.g.mul(h[0]).x.cmp(this.g.x.redMul(a))===0?g=h[0]:(g=h[1],t(this.g.mul(g).x.cmp(this.g.x.redMul(a))===0))}var w;return l.basis?w=l.basis.map(function(y){return{a:new c(y.a,16),b:new c(y.b,16)}}):w=this._getEndoBasis(g),{beta:a,lambda:g,basis:w}}},n.prototype._getEndoRoots=function(l){var a=l===this.p?this.red:c.mont(l),g=new c(2).toRed(a).redInvm(),v=g.redNeg(),h=new c(3).toRed(a).redNeg().redSqrt().redMul(g),w=v.redAdd(h).fromRed(),y=v.redSub(h).fromRed();return[w,y]},n.prototype._getEndoBasis=function(l){for(var a=this.n.ushrn(Math.floor(this.n.bitLength()/2)),g=l,v=this.n.clone(),h=new c(1),w=new c(0),y=new c(0),S=new c(1),E,I,F,B,j,X,G,V=0,J,H;g.cmpn(0)!==0;){var M=v.div(g);J=v.sub(M.mul(g)),H=y.sub(M.mul(h));var T=S.sub(M.mul(w));if(!F&&J.cmp(a)<0)E=G.neg(),I=h,F=J.neg(),B=H;else if(F&&++V===2)break;G=J,v=g,g=J,y=h,h=H,S=w,w=T}j=J.neg(),X=H;var _=F.sqr().add(B.sqr()),A=j.sqr().add(X.sqr());return A.cmp(_)>=0&&(j=E,X=I),F.negative&&(F=F.neg(),B=B.neg()),j.negative&&(j=j.neg(),X=X.neg()),[{a:F,b:B},{a:j,b:X}]},n.prototype._endoSplit=function(l){var a=this.endo.basis,g=a[0],v=a[1],h=v.b.mul(l).divRound(this.n),w=g.b.neg().mul(l).divRound(this.n),y=h.mul(g.a),S=w.mul(v.a),E=h.mul(g.b),I=w.mul(v.b),F=l.sub(y).sub(S),B=E.add(I).neg();return{k1:F,k2:B}},n.prototype.pointFromX=function(l,a){l=new c(l,16),l.red||(l=l.toRed(this.red));var g=l.redSqr().redMul(l).redIAdd(l.redMul(this.a)).redIAdd(this.b),v=g.redSqrt();if(v.redSqr().redSub(g).cmp(this.zero)!==0)throw new Error("invalid point");var h=v.fromRed().isOdd();return(a&&!h||!a&&h)&&(v=v.redNeg()),this.point(l,v)},n.prototype.validate=function(l){if(l.inf)return!0;var a=l.x,g=l.y,v=this.a.redMul(a),h=a.redSqr().redMul(a).redIAdd(v).redIAdd(this.b);return g.redSqr().redISub(h).cmpn(0)===0},n.prototype._endoWnafMulAdd=function(l,a,g){for(var v=this._endoWnafT1,h=this._endoWnafT2,w=0;w<l.length;w++){var y=this._endoSplit(a[w]),S=l[w],E=S._getBeta();y.k1.negative&&(y.k1.ineg(),S=S.neg(!0)),y.k2.negative&&(y.k2.ineg(),E=E.neg(!0)),v[w*2]=S,v[w*2+1]=E,h[w*2]=y.k1,h[w*2+1]=y.k2}for(var I=this._wnafMulAdd(1,v,h,w*2,g),F=0;F<w*2;F++)v[F]=null,h[F]=null;return I};function r(o,l,a,g){s.BasePoint.call(this,o,"affine"),l===null&&a===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new c(l,16),this.y=new c(a,16),g&&(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)}u(r,s.BasePoint),n.prototype.point=function(l,a,g){return new r(this,l,a,g)},n.prototype.pointFromJSON=function(l,a){return r.fromJSON(this,l,a)},r.prototype._getBeta=function(){if(this.curve.endo){var l=this.precomputed;if(l&&l.beta)return l.beta;var a=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(l){var g=this.curve,v=function(h){return g.point(h.x.redMul(g.endo.beta),h.y)};l.beta=a,a.precomputed={beta:null,naf:l.naf&&{wnd:l.naf.wnd,points:l.naf.points.map(v)},doubles:l.doubles&&{step:l.doubles.step,points:l.doubles.points.map(v)}}}return a}},r.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},r.fromJSON=function(l,a,g){typeof a=="string"&&(a=JSON.parse(a));var v=l.point(a[0],a[1],g);if(!a[2])return v;function h(y){return l.point(y[0],y[1],g)}var w=a[2];return v.precomputed={beta:null,doubles:w.doubles&&{step:w.doubles.step,points:[v].concat(w.doubles.points.map(h))},naf:w.naf&&{wnd:w.naf.wnd,points:[v].concat(w.naf.points.map(h))}},v},r.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},r.prototype.isInfinity=function(){return this.inf},r.prototype.add=function(l){if(this.inf)return l;if(l.inf)return this;if(this.eq(l))return this.dbl();if(this.neg().eq(l))return this.curve.point(null,null);if(this.x.cmp(l.x)===0)return this.curve.point(null,null);var a=this.y.redSub(l.y);a.cmpn(0)!==0&&(a=a.redMul(this.x.redSub(l.x).redInvm()));var g=a.redSqr().redISub(this.x).redISub(l.x),v=a.redMul(this.x.redSub(g)).redISub(this.y);return this.curve.point(g,v)},r.prototype.dbl=function(){if(this.inf)return this;var l=this.y.redAdd(this.y);if(l.cmpn(0)===0)return this.curve.point(null,null);var a=this.curve.a,g=this.x.redSqr(),v=l.redInvm(),h=g.redAdd(g).redIAdd(g).redIAdd(a).redMul(v),w=h.redSqr().redISub(this.x.redAdd(this.x)),y=h.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,y)},r.prototype.getX=function(){return this.x.fromRed()},r.prototype.getY=function(){return this.y.fromRed()},r.prototype.mul=function(l){return l=new c(l,16),this.isInfinity()?this:this._hasDoubles(l)?this.curve._fixedNafMul(this,l):this.curve.endo?this.curve._endoWnafMulAdd([this],[l]):this.curve._wnafMul(this,l)},r.prototype.mulAdd=function(l,a,g){var v=[this,a],h=[l,g];return this.curve.endo?this.curve._endoWnafMulAdd(v,h):this.curve._wnafMulAdd(1,v,h,2)},r.prototype.jmulAdd=function(l,a,g){var v=[this,a],h=[l,g];return this.curve.endo?this.curve._endoWnafMulAdd(v,h,!0):this.curve._wnafMulAdd(1,v,h,2,!0)},r.prototype.eq=function(l){return this===l||this.inf===l.inf&&(this.inf||this.x.cmp(l.x)===0&&this.y.cmp(l.y)===0)},r.prototype.neg=function(l){if(this.inf)return this;var a=this.curve.point(this.x,this.y.redNeg());if(l&&this.precomputed){var g=this.precomputed,v=function(h){return h.neg()};a.precomputed={naf:g.naf&&{wnd:g.naf.wnd,points:g.naf.points.map(v)},doubles:g.doubles&&{step:g.doubles.step,points:g.doubles.points.map(v)}}}return a},r.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var l=this.curve.jpoint(this.x,this.y,this.curve.one);return l};function i(o,l,a,g){s.BasePoint.call(this,o,"jacobian"),l===null&&a===null&&g===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new c(0)):(this.x=new c(l,16),this.y=new c(a,16),this.z=new c(g,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}u(i,s.BasePoint),n.prototype.jpoint=function(l,a,g){return new i(this,l,a,g)},i.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var l=this.z.redInvm(),a=l.redSqr(),g=this.x.redMul(a),v=this.y.redMul(a).redMul(l);return this.curve.point(g,v)},i.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},i.prototype.add=function(l){if(this.isInfinity())return l;if(l.isInfinity())return this;var a=l.z.redSqr(),g=this.z.redSqr(),v=this.x.redMul(a),h=l.x.redMul(g),w=this.y.redMul(a.redMul(l.z)),y=l.y.redMul(g.redMul(this.z)),S=v.redSub(h),E=w.redSub(y);if(S.cmpn(0)===0)return E.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var I=S.redSqr(),F=I.redMul(S),B=v.redMul(I),j=E.redSqr().redIAdd(F).redISub(B).redISub(B),X=E.redMul(B.redISub(j)).redISub(w.redMul(F)),G=this.z.redMul(l.z).redMul(S);return this.curve.jpoint(j,X,G)},i.prototype.mixedAdd=function(l){if(this.isInfinity())return l.toJ();if(l.isInfinity())return this;var a=this.z.redSqr(),g=this.x,v=l.x.redMul(a),h=this.y,w=l.y.redMul(a).redMul(this.z),y=g.redSub(v),S=h.redSub(w);if(y.cmpn(0)===0)return S.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var E=y.redSqr(),I=E.redMul(y),F=g.redMul(E),B=S.redSqr().redIAdd(I).redISub(F).redISub(F),j=S.redMul(F.redISub(B)).redISub(h.redMul(I)),X=this.z.redMul(y);return this.curve.jpoint(B,j,X)},i.prototype.dblp=function(l){if(l===0)return this;if(this.isInfinity())return this;if(!l)return this.dbl();var a;if(this.curve.zeroA||this.curve.threeA){var g=this;for(a=0;a<l;a++)g=g.dbl();return g}var v=this.curve.a,h=this.curve.tinv,w=this.x,y=this.y,S=this.z,E=S.redSqr().redSqr(),I=y.redAdd(y);for(a=0;a<l;a++){var F=w.redSqr(),B=I.redSqr(),j=B.redSqr(),X=F.redAdd(F).redIAdd(F).redIAdd(v.redMul(E)),G=w.redMul(B),V=X.redSqr().redISub(G.redAdd(G)),J=G.redISub(V),H=X.redMul(J);H=H.redIAdd(H).redISub(j);var M=I.redMul(S);a+1<l&&(E=E.redMul(j)),w=V,S=M,I=H}return this.curve.jpoint(w,I.redMul(h),S)},i.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},i.prototype._zeroDbl=function(){var l,a,g;if(this.zOne){var v=this.x.redSqr(),h=this.y.redSqr(),w=h.redSqr(),y=this.x.redAdd(h).redSqr().redISub(v).redISub(w);y=y.redIAdd(y);var S=v.redAdd(v).redIAdd(v),E=S.redSqr().redISub(y).redISub(y),I=w.redIAdd(w);I=I.redIAdd(I),I=I.redIAdd(I),l=E,a=S.redMul(y.redISub(E)).redISub(I),g=this.y.redAdd(this.y)}else{var F=this.x.redSqr(),B=this.y.redSqr(),j=B.redSqr(),X=this.x.redAdd(B).redSqr().redISub(F).redISub(j);X=X.redIAdd(X);var G=F.redAdd(F).redIAdd(F),V=G.redSqr(),J=j.redIAdd(j);J=J.redIAdd(J),J=J.redIAdd(J),l=V.redISub(X).redISub(X),a=G.redMul(X.redISub(l)).redISub(J),g=this.y.redMul(this.z),g=g.redIAdd(g)}return this.curve.jpoint(l,a,g)},i.prototype._threeDbl=function(){var l,a,g;if(this.zOne){var v=this.x.redSqr(),h=this.y.redSqr(),w=h.redSqr(),y=this.x.redAdd(h).redSqr().redISub(v).redISub(w);y=y.redIAdd(y);var S=v.redAdd(v).redIAdd(v).redIAdd(this.curve.a),E=S.redSqr().redISub(y).redISub(y);l=E;var I=w.redIAdd(w);I=I.redIAdd(I),I=I.redIAdd(I),a=S.redMul(y.redISub(E)).redISub(I),g=this.y.redAdd(this.y)}else{var F=this.z.redSqr(),B=this.y.redSqr(),j=this.x.redMul(B),X=this.x.redSub(F).redMul(this.x.redAdd(F));X=X.redAdd(X).redIAdd(X);var G=j.redIAdd(j);G=G.redIAdd(G);var V=G.redAdd(G);l=X.redSqr().redISub(V),g=this.y.redAdd(this.z).redSqr().redISub(B).redISub(F);var J=B.redSqr();J=J.redIAdd(J),J=J.redIAdd(J),J=J.redIAdd(J),a=X.redMul(G.redISub(l)).redISub(J)}return this.curve.jpoint(l,a,g)},i.prototype._dbl=function(){var l=this.curve.a,a=this.x,g=this.y,v=this.z,h=v.redSqr().redSqr(),w=a.redSqr(),y=g.redSqr(),S=w.redAdd(w).redIAdd(w).redIAdd(l.redMul(h)),E=a.redAdd(a);E=E.redIAdd(E);var I=E.redMul(y),F=S.redSqr().redISub(I.redAdd(I)),B=I.redISub(F),j=y.redSqr();j=j.redIAdd(j),j=j.redIAdd(j),j=j.redIAdd(j);var X=S.redMul(B).redISub(j),G=g.redAdd(g).redMul(v);return this.curve.jpoint(F,X,G)},i.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var l=this.x.redSqr(),a=this.y.redSqr(),g=this.z.redSqr(),v=a.redSqr(),h=l.redAdd(l).redIAdd(l),w=h.redSqr(),y=this.x.redAdd(a).redSqr().redISub(l).redISub(v);y=y.redIAdd(y),y=y.redAdd(y).redIAdd(y),y=y.redISub(w);var S=y.redSqr(),E=v.redIAdd(v);E=E.redIAdd(E),E=E.redIAdd(E),E=E.redIAdd(E);var I=h.redIAdd(y).redSqr().redISub(w).redISub(S).redISub(E),F=a.redMul(I);F=F.redIAdd(F),F=F.redIAdd(F);var B=this.x.redMul(S).redISub(F);B=B.redIAdd(B),B=B.redIAdd(B);var j=this.y.redMul(I.redMul(E.redISub(I)).redISub(y.redMul(S)));j=j.redIAdd(j),j=j.redIAdd(j),j=j.redIAdd(j);var X=this.z.redAdd(y).redSqr().redISub(g).redISub(S);return this.curve.jpoint(B,j,X)},i.prototype.mul=function(l,a){return l=new c(l,a),this.curve._wnafMul(this,l)},i.prototype.eq=function(l){if(l.type==="affine")return this.eq(l.toJ());if(this===l)return!0;var a=this.z.redSqr(),g=l.z.redSqr();if(this.x.redMul(g).redISub(l.x.redMul(a)).cmpn(0)!==0)return!1;var v=a.redMul(this.z),h=g.redMul(l.z);return this.y.redMul(h).redISub(l.y.redMul(v)).cmpn(0)===0},i.prototype.eqXToP=function(l){var a=this.z.redSqr(),g=l.toRed(this.curve.red).redMul(a);if(this.x.cmp(g)===0)return!0;for(var v=l.clone(),h=this.curve.redN.redMul(a);;){if(v.iadd(this.curve.n),v.cmp(this.curve.p)>=0)return!1;if(g.redIAdd(h),this.x.cmp(g)===0)return!0}},i.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},i.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,d,m){var f=m,c=e("hash.js"),u=e("./curve"),s=e("./utils"),t=s.assert;function n(o){o.type==="short"?this.curve=new u.short(o):o.type==="edwards"?this.curve=new u.edwards(o):this.curve=new u.mont(o),this.g=this.curve.g,this.n=this.curve.n,this.hash=o.hash,t(this.g.validate(),"Invalid curve"),t(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}f.PresetCurve=n;function r(o,l){Object.defineProperty(f,o,{configurable:!0,enumerable:!0,get:function(){var a=new n(l);return Object.defineProperty(f,o,{configurable:!0,enumerable:!0,value:a}),a}})}r("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:c.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),r("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:c.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),r("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:c.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),r("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:c.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"]}),r("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:c.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"]}),r("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:c.sha256,gRed:!1,g:["9"]}),r("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:c.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var i;try{i=e("./precomputed/secp256k1")}catch{i=void 0}r("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:c.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,d,m){var f=e("bn.js"),c=e("hmac-drbg"),u=e("../utils"),s=e("../curves"),t=e("brorand"),n=u.assert,r=e("./key"),i=e("./signature");function o(l){if(!(this instanceof o))return new o(l);typeof l=="string"&&(n(Object.prototype.hasOwnProperty.call(s,l),"Unknown curve "+l),l=s[l]),l instanceof s.PresetCurve&&(l={curve:l}),this.curve=l.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=l.curve.g,this.g.precompute(l.curve.n.bitLength()+1),this.hash=l.hash||l.curve.hash}d.exports=o,o.prototype.keyPair=function(a){return new r(this,a)},o.prototype.keyFromPrivate=function(a,g){return r.fromPrivate(this,a,g)},o.prototype.keyFromPublic=function(a,g){return r.fromPublic(this,a,g)},o.prototype.genKeyPair=function(a){a||(a={});for(var g=new c({hash:this.hash,pers:a.pers,persEnc:a.persEnc||"utf8",entropy:a.entropy||t(this.hash.hmacStrength),entropyEnc:a.entropy&&a.entropyEnc||"utf8",nonce:this.n.toArray()}),v=this.n.byteLength(),h=this.n.sub(new f(2));;){var w=new f(g.generate(v));if(!(w.cmp(h)>0))return w.iaddn(1),this.keyFromPrivate(w)}},o.prototype._truncateToN=function(a,g){var v=a.byteLength()*8-this.n.bitLength();return v>0&&(a=a.ushrn(v)),!g&&a.cmp(this.n)>=0?a.sub(this.n):a},o.prototype.sign=function(a,g,v,h){typeof v=="object"&&(h=v,v=null),h||(h={}),g=this.keyFromPrivate(g,v),a=this._truncateToN(new f(a,16));for(var w=this.n.byteLength(),y=g.getPrivate().toArray("be",w),S=a.toArray("be",w),E=new c({hash:this.hash,entropy:y,nonce:S,pers:h.pers,persEnc:h.persEnc||"utf8"}),I=this.n.sub(new f(1)),F=0;;F++){var B=h.k?h.k(F):new f(E.generate(this.n.byteLength()));if(B=this._truncateToN(B,!0),!(B.cmpn(1)<=0||B.cmp(I)>=0)){var j=this.g.mul(B);if(!j.isInfinity()){var X=j.getX(),G=X.umod(this.n);if(G.cmpn(0)!==0){var V=B.invm(this.n).mul(G.mul(g.getPrivate()).iadd(a));if(V=V.umod(this.n),V.cmpn(0)!==0){var J=(j.getY().isOdd()?1:0)|(X.cmp(G)!==0?2:0);return h.canonical&&V.cmp(this.nh)>0&&(V=this.n.sub(V),J^=1),new i({r:G,s:V,recoveryParam:J})}}}}}},o.prototype.verify=function(a,g,v,h){a=this._truncateToN(new f(a,16)),v=this.keyFromPublic(v,h),g=new i(g,"hex");var w=g.r,y=g.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||y.cmpn(1)<0||y.cmp(this.n)>=0)return!1;var S=y.invm(this.n),E=S.mul(a).umod(this.n),I=S.mul(w).umod(this.n),F;return this.curve._maxwellTrick?(F=this.g.jmulAdd(E,v.getPublic(),I),F.isInfinity()?!1:F.eqXToP(w)):(F=this.g.mulAdd(E,v.getPublic(),I),F.isInfinity()?!1:F.getX().umod(this.n).cmp(w)===0)},o.prototype.recoverPubKey=function(l,a,g,v){n((3&g)===g,"The recovery param is more than two bits"),a=new i(a,v);var h=this.n,w=new f(l),y=a.r,S=a.s,E=g&1,I=g>>1;if(y.cmp(this.curve.p.umod(this.curve.n))>=0&&I)throw new Error("Unable to find sencond key candinate");I?y=this.curve.pointFromX(y.add(this.curve.n),E):y=this.curve.pointFromX(y,E);var F=a.r.invm(h),B=h.sub(w).mul(F).umod(h),j=S.mul(F).umod(h);return this.g.mulAdd(B,y,j)},o.prototype.getKeyRecoveryParam=function(l,a,g,v){if(a=new i(a,v),a.recoveryParam!==null)return a.recoveryParam;for(var h=0;h<4;h++){var w;try{w=this.recoverPubKey(l,a,h)}catch{continue}if(w.eq(g))return h}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(e,d,m){var f=e("bn.js"),c=e("../utils"),u=c.assert;function s(t,n){this.ec=t,this.priv=null,this.pub=null,n.priv&&this._importPrivate(n.priv,n.privEnc),n.pub&&this._importPublic(n.pub,n.pubEnc)}d.exports=s,s.fromPublic=function(n,r,i){return r instanceof s?r:new s(n,{pub:r,pubEnc:i})},s.fromPrivate=function(n,r,i){return r instanceof s?r:new s(n,{priv:r,privEnc:i})},s.prototype.validate=function(){var n=this.getPublic();return n.isInfinity()?{result:!1,reason:"Invalid public key"}:n.validate()?n.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"}},s.prototype.getPublic=function(n,r){return typeof n=="string"&&(r=n,n=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,n):this.pub},s.prototype.getPrivate=function(n){return n==="hex"?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(n,r){this.priv=new f(n,r||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(n,r){if(n.x||n.y){this.ec.curve.type==="mont"?u(n.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&u(n.x&&n.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(n.x,n.y);return}this.pub=this.ec.curve.decodePoint(n,r)},s.prototype.derive=function(n){return n.validate()||u(n.validate(),"public point not validated"),n.mul(this.priv).getX()},s.prototype.sign=function(n,r,i){return this.ec.sign(n,this,r,i)},s.prototype.verify=function(n,r){return this.ec.verify(n,r,this)},s.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(e,d,m){var f=e("bn.js"),c=e("../utils"),u=c.assert;function s(o,l){if(o instanceof s)return o;this._importDER(o,l)||(u(o.r&&o.s,"Signature without r or s"),this.r=new f(o.r,16),this.s=new f(o.s,16),o.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=o.recoveryParam)}d.exports=s;function t(){this.place=0}function n(o,l){var a=o[l.place++];if(!(a&128))return a;var g=a&15;if(g===0||g>4)return!1;for(var v=0,h=0,w=l.place;h<g;h++,w++)v<<=8,v|=o[w],v>>>=0;return v<=127?!1:(l.place=w,v)}function r(o){for(var l=0,a=o.length-1;!o[l]&&!(o[l+1]&128)&&l<a;)l++;return l===0?o:o.slice(l)}s.prototype._importDER=function(l,a){l=c.toArray(l,a);var g=new t;if(l[g.place++]!==48)return!1;var v=n(l,g);if(v===!1||v+g.place!==l.length||l[g.place++]!==2)return!1;var h=n(l,g);if(h===!1)return!1;var w=l.slice(g.place,h+g.place);if(g.place+=h,l[g.place++]!==2)return!1;var y=n(l,g);if(y===!1||l.length!==y+g.place)return!1;var S=l.slice(g.place,y+g.place);if(w[0]===0)if(w[1]&128)w=w.slice(1);else return!1;if(S[0]===0)if(S[1]&128)S=S.slice(1);else return!1;return this.r=new f(w),this.s=new f(S),this.recoveryParam=null,!0};function i(o,l){if(l<128){o.push(l);return}var a=1+(Math.log(l)/Math.LN2>>>3);for(o.push(a|128);--a;)o.push(l>>>(a<<3)&255);o.push(l)}s.prototype.toDER=function(l){var a=this.r.toArray(),g=this.s.toArray();for(a[0]&128&&(a=[0].concat(a)),g[0]&128&&(g=[0].concat(g)),a=r(a),g=r(g);!g[0]&&!(g[1]&128);)g=g.slice(1);var v=[2];i(v,a.length),v=v.concat(a),v.push(2),i(v,g.length);var h=v.concat(g),w=[48];return i(w,h.length),w=w.concat(h),c.encode(w,l)}},{"../utils":419,"bn.js":420}],415:[function(e,d,m){var f=e("hash.js"),c=e("../curves"),u=e("../utils"),s=u.assert,t=u.parseBytes,n=e("./key"),r=e("./signature");function i(o){if(s(o==="ed25519","only tested with ed25519 so far"),!(this instanceof i))return new i(o);o=c[o].curve,this.curve=o,this.g=o.g,this.g.precompute(o.n.bitLength()+1),this.pointClass=o.point().constructor,this.encodingLength=Math.ceil(o.n.bitLength()/8),this.hash=f.sha512}d.exports=i,i.prototype.sign=function(l,a){l=t(l);var g=this.keyFromSecret(a),v=this.hashInt(g.messagePrefix(),l),h=this.g.mul(v),w=this.encodePoint(h),y=this.hashInt(w,g.pubBytes(),l).mul(g.priv()),S=v.add(y).umod(this.curve.n);return this.makeSignature({R:h,S,Rencoded:w})},i.prototype.verify=function(l,a,g){l=t(l),a=this.makeSignature(a);var v=this.keyFromPublic(g),h=this.hashInt(a.Rencoded(),v.pubBytes(),l),w=this.g.mul(a.S()),y=a.R().add(v.pub().mul(h));return y.eq(w)},i.prototype.hashInt=function(){for(var l=this.hash(),a=0;a<arguments.length;a++)l.update(arguments[a]);return u.intFromLE(l.digest()).umod(this.curve.n)},i.prototype.keyFromPublic=function(l){return n.fromPublic(this,l)},i.prototype.keyFromSecret=function(l){return n.fromSecret(this,l)},i.prototype.makeSignature=function(l){return l instanceof r?l:new r(this,l)},i.prototype.encodePoint=function(l){var a=l.getY().toArray("le",this.encodingLength);return a[this.encodingLength-1]|=l.getX().isOdd()?128:0,a},i.prototype.decodePoint=function(l){l=u.parseBytes(l);var a=l.length-1,g=l.slice(0,a).concat(l[a]&-129),v=(l[a]&128)!==0,h=u.intFromLE(g);return this.curve.pointFromY(h,v)},i.prototype.encodeInt=function(l){return l.toArray("le",this.encodingLength)},i.prototype.decodeInt=function(l){return u.intFromLE(l)},i.prototype.isPoint=function(l){return l instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,d,m){var f=e("../utils"),c=f.assert,u=f.parseBytes,s=f.cachedProperty;function t(n,r){this.eddsa=n,this._secret=u(r.secret),n.isPoint(r.pub)?this._pub=r.pub:this._pubBytes=u(r.pub)}t.fromPublic=function(r,i){return i instanceof t?i:new t(r,{pub:i})},t.fromSecret=function(r,i){return i instanceof t?i:new t(r,{secret:i})},t.prototype.secret=function(){return this._secret},s(t,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(t,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(t,"privBytes",function(){var r=this.eddsa,i=this.hash(),o=r.encodingLength-1,l=i.slice(0,r.encodingLength);return l[0]&=248,l[o]&=127,l[o]|=64,l}),s(t,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(t,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(t,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),t.prototype.sign=function(r){return c(this._secret,"KeyPair can only verify"),this.eddsa.sign(r,this)},t.prototype.verify=function(r,i){return this.eddsa.verify(r,i,this)},t.prototype.getSecret=function(r){return c(this._secret,"KeyPair is public only"),f.encode(this.secret(),r)},t.prototype.getPublic=function(r){return f.encode(this.pubBytes(),r)},d.exports=t},{"../utils":419}],417:[function(e,d,m){var f=e("bn.js"),c=e("../utils"),u=c.assert,s=c.cachedProperty,t=c.parseBytes;function n(r,i){this.eddsa=r,typeof i!="object"&&(i=t(i)),Array.isArray(i)&&(i={R:i.slice(0,r.encodingLength),S:i.slice(r.encodingLength)}),u(i.R&&i.S,"Signature without R or S"),r.isPoint(i.R)&&(this._R=i.R),i.S instanceof f&&(this._S=i.S),this._Rencoded=Array.isArray(i.R)?i.R:i.Rencoded,this._Sencoded=Array.isArray(i.S)?i.S:i.Sencoded}s(n,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(n,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(n,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(n,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),n.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},n.prototype.toHex=function(){return c.encode(this.toBytes(),"hex").toUpperCase()},d.exports=n},{"../utils":419,"bn.js":420}],418:[function(e,d,m){d.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(e,d,m){var f=m,c=e("bn.js"),u=e("minimalistic-assert"),s=e("minimalistic-crypto-utils");f.assert=u,f.toArray=s.toArray,f.zero2=s.zero2,f.toHex=s.toHex,f.encode=s.encode;function t(l,a,g){var v=new Array(Math.max(l.bitLength(),g)+1);v.fill(0);for(var h=1<<a+1,w=l.clone(),y=0;y<v.length;y++){var S,E=w.andln(h-1);w.isOdd()?(E>(h>>1)-1?S=(h>>1)-E:S=E,w.isubn(S)):S=0,v[y]=S,w.iushrn(1)}return v}f.getNAF=t;function n(l,a){var g=[[],[]];l=l.clone(),a=a.clone();for(var v=0,h=0,w;l.cmpn(-v)>0||a.cmpn(-h)>0;){var y=l.andln(3)+v&3,S=a.andln(3)+h&3;y===3&&(y=-1),S===3&&(S=-1);var E;y&1?(w=l.andln(7)+v&7,(w===3||w===5)&&S===2?E=-y:E=y):E=0,g[0].push(E);var I;S&1?(w=a.andln(7)+h&7,(w===3||w===5)&&y===2?I=-S:I=S):I=0,g[1].push(I),2*v===E+1&&(v=1-v),2*h===I+1&&(h=1-h),l.iushrn(1),a.iushrn(1)}return g}f.getJSF=n;function r(l,a,g){var v="_"+a;l.prototype[a]=function(){return this[v]!==void 0?this[v]:this[v]=g.call(this)}}f.cachedProperty=r;function i(l){return typeof l=="string"?f.toArray(l,"hex"):l}f.parseBytes=i;function o(l){return new c(l,"hex","le")}f.intFromLE=o},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,d,m){arguments[4][184][0].apply(m,arguments)},{buffer:188,dup:184}],421:[function(e,d,m){d.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 <fedor@indutny.com>",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(e,d,m){var f=Object.create||j,c=Object.keys||X,u=Function.prototype.bind||G;function s(){(!this._events||!Object.prototype.hasOwnProperty.call(this,"_events"))&&(this._events=f(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}d.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var t=10,n;try{var r={};Object.defineProperty&&Object.defineProperty(r,"x",{value:0}),n=r.x===0}catch{n=!1}n?Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return t},set:function(V){if(typeof V!="number"||V<0||V!==V)throw new TypeError('"defaultMaxListeners" must be a positive number');t=V}}):s.defaultMaxListeners=t,s.prototype.setMaxListeners=function(J){if(typeof J!="number"||J<0||isNaN(J))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=J,this};function i(V){return V._maxListeners===void 0?s.defaultMaxListeners:V._maxListeners}s.prototype.getMaxListeners=function(){return i(this)};function o(V,J,H){if(J)V.call(H);else for(var M=V.length,T=F(V,M),_=0;_<M;++_)T[_].call(H)}function l(V,J,H,M){if(J)V.call(H,M);else for(var T=V.length,_=F(V,T),A=0;A<T;++A)_[A].call(H,M)}function a(V,J,H,M,T){if(J)V.call(H,M,T);else for(var _=V.length,A=F(V,_),P=0;P<_;++P)A[P].call(H,M,T)}function g(V,J,H,M,T,_){if(J)V.call(H,M,T,_);else for(var A=V.length,P=F(V,A),L=0;L<A;++L)P[L].call(H,M,T,_)}function v(V,J,H,M){if(J)V.apply(H,M);else for(var T=V.length,_=F(V,T),A=0;A<T;++A)_[A].apply(H,M)}s.prototype.emit=function(J){var H,M,T,_,A,P,L=J==="error";if(P=this._events,P)L=L&&P.error==null;else if(!L)return!1;if(L){if(arguments.length>1&&(H=arguments[1]),H instanceof Error)throw H;var $=new Error('Unhandled "error" event. ('+H+")");throw $.context=H,$}if(M=P[J],!M)return!1;var R=typeof M=="function";switch(T=arguments.length,T){case 1:o(M,R,this);break;case 2:l(M,R,this,arguments[1]);break;case 3:a(M,R,this,arguments[1],arguments[2]);break;case 4:g(M,R,this,arguments[1],arguments[2],arguments[3]);break;default:for(_=new Array(T-1),A=1;A<T;A++)_[A-1]=arguments[A];v(M,R,this,_)}return!0};function h(V,J,H,M){var T,_,A;if(typeof H!="function")throw new TypeError('"listener" argument must be a function');if(_=V._events,_?(_.newListener&&(V.emit("newListener",J,H.listener?H.listener:H),_=V._events),A=_[J]):(_=V._events=f(null),V._eventsCount=0),!A)A=_[J]=H,++V._eventsCount;else if(typeof A=="function"?A=_[J]=M?[H,A]:[A,H]:M?A.unshift(H):A.push(H),!A.warned&&(T=i(V),T&&T>0&&A.length>T)){A.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+A.length+' "'+String(J)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');P.name="MaxListenersExceededWarning",P.emitter=V,P.type=J,P.count=A.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",P.name,P.message)}return V}s.prototype.addListener=function(J,H){return h(this,J,H,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(J,H){return h(this,J,H,!0)};function w(){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 V=new Array(arguments.length),J=0;J<V.length;++J)V[J]=arguments[J];this.listener.apply(this.target,V)}}function y(V,J,H){var M={fired:!1,wrapFn:void 0,target:V,type:J,listener:H},T=u.call(w,M);return T.listener=H,M.wrapFn=T,T}s.prototype.once=function(J,H){if(typeof H!="function")throw new TypeError('"listener" argument must be a function');return this.on(J,y(this,J,H)),this},s.prototype.prependOnceListener=function(J,H){if(typeof H!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(J,y(this,J,H)),this},s.prototype.removeListener=function(J,H){var M,T,_,A,P;if(typeof H!="function")throw new TypeError('"listener" argument must be a function');if(T=this._events,!T)return this;if(M=T[J],!M)return this;if(M===H||M.listener===H)--this._eventsCount===0?this._events=f(null):(delete T[J],T.removeListener&&this.emit("removeListener",J,M.listener||H));else if(typeof M!="function"){for(_=-1,A=M.length-1;A>=0;A--)if(M[A]===H||M[A].listener===H){P=M[A].listener,_=A;break}if(_<0)return this;_===0?M.shift():I(M,_),M.length===1&&(T[J]=M[0]),T.removeListener&&this.emit("removeListener",J,P||H)}return this},s.prototype.removeAllListeners=function(J){var H,M,T;if(M=this._events,!M)return this;if(!M.removeListener)return arguments.length===0?(this._events=f(null),this._eventsCount=0):M[J]&&(--this._eventsCount===0?this._events=f(null):delete M[J]),this;if(arguments.length===0){var _=c(M),A;for(T=0;T<_.length;++T)A=_[T],A!=="removeListener"&&this.removeAllListeners(A);return this.removeAllListeners("removeListener"),this._events=f(null),this._eventsCount=0,this}if(H=M[J],typeof H=="function")this.removeListener(J,H);else if(H)for(T=H.length-1;T>=0;T--)this.removeListener(J,H[T]);return this};function S(V,J,H){var M=V._events;if(!M)return[];var T=M[J];return T?typeof T=="function"?H?[T.listener||T]:[T]:H?B(T):F(T,T.length):[]}s.prototype.listeners=function(J){return S(this,J,!0)},s.prototype.rawListeners=function(J){return S(this,J,!1)},s.listenerCount=function(V,J){return typeof V.listenerCount=="function"?V.listenerCount(J):E.call(V,J)},s.prototype.listenerCount=E;function E(V){var J=this._events;if(J){var H=J[V];if(typeof H=="function")return 1;if(H)return H.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function I(V,J){for(var H=J,M=H+1,T=V.length;M<T;H+=1,M+=1)V[H]=V[M];V.pop()}function F(V,J){for(var H=new Array(J),M=0;M<J;++M)H[M]=V[M];return H}function B(V){for(var J=new Array(V.length),H=0;H<J.length;++H)J[H]=V[H].listener||V[H];return J}function j(V){var J=function(){};return J.prototype=V,new J}function X(V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J);return J}function G(V){var J=this;return function(){return J.apply(V,arguments)}}},{}],423:[function(e,d,m){var f=e("safe-buffer").Buffer,c=e("md5.js");function u(s,t,n,r){if(f.isBuffer(s)||(s=f.from(s,"binary")),t&&(f.isBuffer(t)||(t=f.from(t,"binary")),t.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var i=n/8,o=f.alloc(i),l=f.alloc(r||0),a=f.alloc(0);i>0||r>0;){var g=new c;g.update(a),g.update(s),t&&g.update(t),a=g.digest();var v=0;if(i>0){var h=o.length-i;v=Math.min(i,a.length),a.copy(o,h,0,v),i-=v}if(v<a.length&&r>0){var w=l.length-r,y=Math.min(r,a.length-v);a.copy(l,w,v,v+y),r-=y}}return a.fill(0),{key:o,iv:l}}d.exports=u},{"md5.js":450,"safe-buffer":494}],424:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.CsvParserStream=m.ParserOptions=m.parseFile=m.parseStream=m.parseString=m.parse=m.FormatterOptions=m.CsvFormatterStream=m.writeToPath=m.writeToString=m.writeToBuffer=m.writeToStream=m.write=m.format=void 0;var f=e("@fast-csv/format");Object.defineProperty(m,"format",{enumerable:!0,get:function(){return f.format}}),Object.defineProperty(m,"write",{enumerable:!0,get:function(){return f.write}}),Object.defineProperty(m,"writeToStream",{enumerable:!0,get:function(){return f.writeToStream}}),Object.defineProperty(m,"writeToBuffer",{enumerable:!0,get:function(){return f.writeToBuffer}}),Object.defineProperty(m,"writeToString",{enumerable:!0,get:function(){return f.writeToString}}),Object.defineProperty(m,"writeToPath",{enumerable:!0,get:function(){return f.writeToPath}}),Object.defineProperty(m,"CsvFormatterStream",{enumerable:!0,get:function(){return f.CsvFormatterStream}}),Object.defineProperty(m,"FormatterOptions",{enumerable:!0,get:function(){return f.FormatterOptions}});var c=e("@fast-csv/parse");Object.defineProperty(m,"parse",{enumerable:!0,get:function(){return c.parse}}),Object.defineProperty(m,"parseString",{enumerable:!0,get:function(){return c.parseString}}),Object.defineProperty(m,"parseStream",{enumerable:!0,get:function(){return c.parseStream}}),Object.defineProperty(m,"parseFile",{enumerable:!0,get:function(){return c.parseFile}}),Object.defineProperty(m,"ParserOptions",{enumerable:!0,get:function(){return c.ParserOptions}}),Object.defineProperty(m,"CsvParserStream",{enumerable:!0,get:function(){return c.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,d,m){var f=e("safe-buffer").Buffer,c=e("readable-stream").Transform,u=e("inherits");function s(n,r){if(!f.isBuffer(n)&&typeof n!="string")throw new TypeError(r+" must be a string or a buffer")}function t(n){c.call(this),this._block=f.allocUnsafe(n),this._blockSize=n,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}u(t,c),t.prototype._transform=function(n,r,i){var o=null;try{this.update(n,r)}catch(l){o=l}i(o)},t.prototype._flush=function(n){var r=null;try{this.push(this.digest())}catch(i){r=i}n(r)},t.prototype.update=function(n,r){if(s(n,"Data"),this._finalized)throw new Error("Digest already called");f.isBuffer(n)||(n=f.from(n,r));for(var i=this._block,o=0;this._blockOffset+n.length-o>=this._blockSize;){for(var l=this._blockOffset;l<this._blockSize;)i[l++]=n[o++];this._update(),this._blockOffset=0}for(;o<n.length;)i[this._blockOffset++]=n[o++];for(var a=0,g=n.length*8;g>0;++a)this._length[a]+=g,g=this._length[a]/4294967296|0,g>0&&(this._length[a]-=4294967296*g);return this},t.prototype._update=function(){throw new Error("_update is not implemented")},t.prototype.digest=function(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var r=this._digest();n!==void 0&&(r=r.toString(n)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return r},t.prototype._digest=function(){throw new Error("_digest is not implemented")},d.exports=t},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,d,m){var f=m;f.utils=e("./hash/utils"),f.common=e("./hash/common"),f.sha=e("./hash/sha"),f.ripemd=e("./hash/ripemd"),f.hmac=e("./hash/hmac"),f.sha1=f.sha.sha1,f.sha256=f.sha.sha256,f.sha224=f.sha.sha224,f.sha384=f.sha.sha384,f.sha512=f.sha.sha512,f.ripemd160=f.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,d,m){var f=e("./utils"),c=e("minimalistic-assert");function u(){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}m.BlockHash=u,u.prototype.update=function(t,n){if(t=f.toArray(t,n),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var r=t.length%this._delta8;this.pending=t.slice(t.length-r,t.length),this.pending.length===0&&(this.pending=null),t=f.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},u.prototype.digest=function(t){return this.update(this._pad()),c(this.pending===null),this._digest(t)},u.prototype._pad=function(){var t=this.pendingTotal,n=this._delta8,r=n-(t+this.padLength)%n,i=new Array(r+this.padLength);i[0]=128;for(var o=1;o<r;o++)i[o]=0;if(t<<=3,this.endian==="big"){for(var l=8;l<this.padLength;l++)i[o++]=0;i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=t>>>24&255,i[o++]=t>>>16&255,i[o++]=t>>>8&255,i[o++]=t&255}else for(i[o++]=t&255,i[o++]=t>>>8&255,i[o++]=t>>>16&255,i[o++]=t>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,l=8;l<this.padLength;l++)i[o++]=0;return i}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,d,m){var f=e("./utils"),c=e("minimalistic-assert");function u(s,t,n){if(!(this instanceof u))return new u(s,t,n);this.Hash=s,this.blockSize=s.blockSize/8,this.outSize=s.outSize/8,this.inner=null,this.outer=null,this._init(f.toArray(t,n))}d.exports=u,u.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),c(t.length<=this.blockSize);for(var n=t.length;n<this.blockSize;n++)t.push(0);for(n=0;n<t.length;n++)t[n]^=54;for(this.inner=new this.Hash().update(t),n=0;n<t.length;n++)t[n]^=106;this.outer=new this.Hash().update(t)},u.prototype.update=function(t,n){return this.inner.update(t,n),this},u.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,d,m){var f=e("./utils"),c=e("./common"),u=f.rotl32,s=f.sum32,t=f.sum32_3,n=f.sum32_4,r=c.BlockHash;function i(){if(!(this instanceof i))return new i;r.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}f.inherits(i,r),m.ripemd160=i,i.blockSize=512,i.outSize=160,i.hmacStrength=192,i.padLength=64,i.prototype._update=function(S,E){for(var I=this.h[0],F=this.h[1],B=this.h[2],j=this.h[3],X=this.h[4],G=I,V=F,J=B,H=j,M=X,T=0;T<80;T++){var _=s(u(n(I,o(T,F,B,j),S[g[T]+E],l(T)),h[T]),X);I=X,X=j,j=u(B,10),B=F,F=_,_=s(u(n(G,o(79-T,V,J,H),S[v[T]+E],a(T)),w[T]),M),G=M,M=H,H=u(J,10),J=V,V=_}_=t(this.h[1],B,H),this.h[1]=t(this.h[2],j,M),this.h[2]=t(this.h[3],X,G),this.h[3]=t(this.h[4],I,V),this.h[4]=t(this.h[0],F,J),this.h[0]=_},i.prototype._digest=function(S){return S==="hex"?f.toHex32(this.h,"little"):f.split32(this.h,"little")};function o(y,S,E,I){return y<=15?S^E^I:y<=31?S&E|~S&I:y<=47?(S|~E)^I:y<=63?S&I|E&~I:S^(E|~I)}function l(y){return y<=15?0:y<=31?1518500249:y<=47?1859775393:y<=63?2400959708:2840853838}function a(y){return y<=15?1352829926:y<=31?1548603684:y<=47?1836072691:y<=63?2053994217:0}var g=[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],v=[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],h=[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],w=[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]},{"./common":427,"./utils":437}],430:[function(e,d,m){m.sha1=e("./sha/1"),m.sha224=e("./sha/224"),m.sha256=e("./sha/256"),m.sha384=e("./sha/384"),m.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,d,m){var f=e("../utils"),c=e("../common"),u=e("./common"),s=f.rotl32,t=f.sum32,n=f.sum32_5,r=u.ft_1,i=c.BlockHash,o=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;i.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}f.inherits(l,i),d.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(g,v){for(var h=this.W,w=0;w<16;w++)h[w]=g[v+w];for(;w<h.length;w++)h[w]=s(h[w-3]^h[w-8]^h[w-14]^h[w-16],1);var y=this.h[0],S=this.h[1],E=this.h[2],I=this.h[3],F=this.h[4];for(w=0;w<h.length;w++){var B=~~(w/20),j=n(s(y,5),r(B,S,E,I),F,h[w],o[B]);F=I,I=E,E=s(S,30),S=y,y=j}this.h[0]=t(this.h[0],y),this.h[1]=t(this.h[1],S),this.h[2]=t(this.h[2],E),this.h[3]=t(this.h[3],I),this.h[4]=t(this.h[4],F)},l.prototype._digest=function(g){return g==="hex"?f.toHex32(this.h,"big"):f.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,d,m){var f=e("../utils"),c=e("./256");function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}f.inherits(u,c),d.exports=u,u.blockSize=512,u.outSize=224,u.hmacStrength=192,u.padLength=64,u.prototype._digest=function(t){return t==="hex"?f.toHex32(this.h.slice(0,7),"big"):f.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,d,m){var f=e("../utils"),c=e("../common"),u=e("./common"),s=e("minimalistic-assert"),t=f.sum32,n=f.sum32_4,r=f.sum32_5,i=u.ch32,o=u.maj32,l=u.s0_256,a=u.s1_256,g=u.g0_256,v=u.g1_256,h=c.BlockHash,w=[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];function y(){if(!(this instanceof y))return new y;h.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}f.inherits(y,h),d.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(E,I){for(var F=this.W,B=0;B<16;B++)F[B]=E[I+B];for(;B<F.length;B++)F[B]=n(v(F[B-2]),F[B-7],g(F[B-15]),F[B-16]);var j=this.h[0],X=this.h[1],G=this.h[2],V=this.h[3],J=this.h[4],H=this.h[5],M=this.h[6],T=this.h[7];for(s(this.k.length===F.length),B=0;B<F.length;B++){var _=r(T,a(J),i(J,H,M),this.k[B],F[B]),A=t(l(j),o(j,X,G));T=M,M=H,H=J,J=t(V,_),V=G,G=X,X=j,j=t(_,A)}this.h[0]=t(this.h[0],j),this.h[1]=t(this.h[1],X),this.h[2]=t(this.h[2],G),this.h[3]=t(this.h[3],V),this.h[4]=t(this.h[4],J),this.h[5]=t(this.h[5],H),this.h[6]=t(this.h[6],M),this.h[7]=t(this.h[7],T)},y.prototype._digest=function(E){return E==="hex"?f.toHex32(this.h,"big"):f.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,d,m){var f=e("../utils"),c=e("./512");function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}f.inherits(u,c),d.exports=u,u.blockSize=1024,u.outSize=384,u.hmacStrength=192,u.padLength=128,u.prototype._digest=function(t){return t==="hex"?f.toHex32(this.h.slice(0,12),"big"):f.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,d,m){var f=e("../utils"),c=e("../common"),u=e("minimalistic-assert"),s=f.rotr64_hi,t=f.rotr64_lo,n=f.shr64_hi,r=f.shr64_lo,i=f.sum64,o=f.sum64_hi,l=f.sum64_lo,a=f.sum64_4_hi,g=f.sum64_4_lo,v=f.sum64_5_hi,h=f.sum64_5_lo,w=c.BlockHash,y=[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];function S(){if(!(this instanceof S))return new S;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}f.inherits(S,w),d.exports=S,S.blockSize=1024,S.outSize=512,S.hmacStrength=192,S.padLength=128,S.prototype._prepareBlock=function(A,P){for(var L=this.W,$=0;$<32;$++)L[$]=A[P+$];for(;$<L.length;$+=2){var R=M(L[$-4],L[$-3]),k=T(L[$-4],L[$-3]),C=L[$-14],O=L[$-13],W=J(L[$-30],L[$-29]),ne=H(L[$-30],L[$-29]),he=L[$-32],ue=L[$-31];L[$]=a(R,k,C,O,W,ne,he,ue),L[$+1]=g(R,k,C,O,W,ne,he,ue)}},S.prototype._update=function(A,P){this._prepareBlock(A,P);var L=this.W,$=this.h[0],R=this.h[1],k=this.h[2],C=this.h[3],O=this.h[4],W=this.h[5],ne=this.h[6],he=this.h[7],ue=this.h[8],Ae=this.h[9],pe=this.h[10],te=this.h[11],Z=this.h[12],q=this.h[13],de=this.h[14],ke=this.h[15];u(this.k.length===L.length);for(var oe=0;oe<L.length;oe+=2){var ie=de,Q=ke,z=G(ue,Ae),Y=V(ue,Ae),fe=E(ue,Ae,pe,te,Z),we=I(ue,Ae,pe,te,Z,q),U=this.k[oe],ve=this.k[oe+1],Se=L[oe],ee=L[oe+1],se=v(ie,Q,z,Y,fe,we,U,ve,Se,ee),me=h(ie,Q,z,Y,fe,we,U,ve,Se,ee);ie=j($,R),Q=X($,R),z=F($,R,k,C,O),Y=B($,R,k,C,O,W);var Ee=o(ie,Q,z,Y),Ie=l(ie,Q,z,Y);de=Z,ke=q,Z=pe,q=te,pe=ue,te=Ae,ue=o(ne,he,se,me),Ae=l(he,he,se,me),ne=O,he=W,O=k,W=C,k=$,C=R,$=o(se,me,Ee,Ie),R=l(se,me,Ee,Ie)}i(this.h,0,$,R),i(this.h,2,k,C),i(this.h,4,O,W),i(this.h,6,ne,he),i(this.h,8,ue,Ae),i(this.h,10,pe,te),i(this.h,12,Z,q),i(this.h,14,de,ke)},S.prototype._digest=function(A){return A==="hex"?f.toHex32(this.h,"big"):f.split32(this.h,"big")};function E(_,A,P,L,$){var R=_&P^~_&$;return R<0&&(R+=4294967296),R}function I(_,A,P,L,$,R){var k=A&L^~A&R;return k<0&&(k+=4294967296),k}function F(_,A,P,L,$){var R=_&P^_&$^P&$;return R<0&&(R+=4294967296),R}function B(_,A,P,L,$,R){var k=A&L^A&R^L&R;return k<0&&(k+=4294967296),k}function j(_,A){var P=s(_,A,28),L=s(A,_,2),$=s(A,_,7),R=P^L^$;return R<0&&(R+=4294967296),R}function X(_,A){var P=t(_,A,28),L=t(A,_,2),$=t(A,_,7),R=P^L^$;return R<0&&(R+=4294967296),R}function G(_,A){var P=s(_,A,14),L=s(_,A,18),$=s(A,_,9),R=P^L^$;return R<0&&(R+=4294967296),R}function V(_,A){var P=t(_,A,14),L=t(_,A,18),$=t(A,_,9),R=P^L^$;return R<0&&(R+=4294967296),R}function J(_,A){var P=s(_,A,1),L=s(_,A,8),$=n(_,A,7),R=P^L^$;return R<0&&(R+=4294967296),R}function H(_,A){var P=t(_,A,1),L=t(_,A,8),$=r(_,A,7),R=P^L^$;return R<0&&(R+=4294967296),R}function M(_,A){var P=s(_,A,19),L=s(A,_,29),$=n(_,A,6),R=P^L^$;return R<0&&(R+=4294967296),R}function T(_,A){var P=t(_,A,19),L=t(A,_,29),$=r(_,A,6),R=P^L^$;return R<0&&(R+=4294967296),R}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,d,m){var f=e("../utils"),c=f.rotr32;function u(a,g,v,h){if(a===0)return s(g,v,h);if(a===1||a===3)return n(g,v,h);if(a===2)return t(g,v,h)}m.ft_1=u;function s(a,g,v){return a&g^~a&v}m.ch32=s;function t(a,g,v){return a&g^a&v^g&v}m.maj32=t;function n(a,g,v){return a^g^v}m.p32=n;function r(a){return c(a,2)^c(a,13)^c(a,22)}m.s0_256=r;function i(a){return c(a,6)^c(a,11)^c(a,25)}m.s1_256=i;function o(a){return c(a,7)^c(a,18)^a>>>3}m.g0_256=o;function l(a){return c(a,17)^c(a,19)^a>>>10}m.g1_256=l},{"../utils":437}],437:[function(e,d,m){var f=e("minimalistic-assert"),c=e("inherits");m.inherits=c;function u(T,_){return(T.charCodeAt(_)&64512)!==55296||_<0||_+1>=T.length?!1:(T.charCodeAt(_+1)&64512)===56320}function s(T,_){if(Array.isArray(T))return T.slice();if(!T)return[];var A=[];if(typeof T=="string")if(_){if(_==="hex")for(T=T.replace(/[^a-z0-9]+/ig,""),T.length%2!==0&&(T="0"+T),L=0;L<T.length;L+=2)A.push(parseInt(T[L]+T[L+1],16))}else for(var P=0,L=0;L<T.length;L++){var $=T.charCodeAt(L);$<128?A[P++]=$:$<2048?(A[P++]=$>>6|192,A[P++]=$&63|128):u(T,L)?($=65536+(($&1023)<<10)+(T.charCodeAt(++L)&1023),A[P++]=$>>18|240,A[P++]=$>>12&63|128,A[P++]=$>>6&63|128,A[P++]=$&63|128):(A[P++]=$>>12|224,A[P++]=$>>6&63|128,A[P++]=$&63|128)}else for(L=0;L<T.length;L++)A[L]=T[L]|0;return A}m.toArray=s;function t(T){for(var _="",A=0;A<T.length;A++)_+=i(T[A].toString(16));return _}m.toHex=t;function n(T){var _=T>>>24|T>>>8&65280|T<<8&16711680|(T&255)<<24;return _>>>0}m.htonl=n;function r(T,_){for(var A="",P=0;P<T.length;P++){var L=T[P];_==="little"&&(L=n(L)),A+=o(L.toString(16))}return A}m.toHex32=r;function i(T){return T.length===1?"0"+T:T}m.zero2=i;function o(T){return T.length===7?"0"+T:T.length===6?"00"+T:T.length===5?"000"+T:T.length===4?"0000"+T:T.length===3?"00000"+T:T.length===2?"000000"+T:T.length===1?"0000000"+T:T}m.zero8=o;function l(T,_,A,P){var L=A-_;f(L%4===0);for(var $=new Array(L/4),R=0,k=_;R<$.length;R++,k+=4){var C;P==="big"?C=T[k]<<24|T[k+1]<<16|T[k+2]<<8|T[k+3]:C=T[k+3]<<24|T[k+2]<<16|T[k+1]<<8|T[k],$[R]=C>>>0}return $}m.join32=l;function a(T,_){for(var A=new Array(T.length*4),P=0,L=0;P<T.length;P++,L+=4){var $=T[P];_==="big"?(A[L]=$>>>24,A[L+1]=$>>>16&255,A[L+2]=$>>>8&255,A[L+3]=$&255):(A[L+3]=$>>>24,A[L+2]=$>>>16&255,A[L+1]=$>>>8&255,A[L]=$&255)}return A}m.split32=a;function g(T,_){return T>>>_|T<<32-_}m.rotr32=g;function v(T,_){return T<<_|T>>>32-_}m.rotl32=v;function h(T,_){return T+_>>>0}m.sum32=h;function w(T,_,A){return T+_+A>>>0}m.sum32_3=w;function y(T,_,A,P){return T+_+A+P>>>0}m.sum32_4=y;function S(T,_,A,P,L){return T+_+A+P+L>>>0}m.sum32_5=S;function E(T,_,A,P){var L=T[_],$=T[_+1],R=P+$>>>0,k=(R<P?1:0)+A+L;T[_]=k>>>0,T[_+1]=R}m.sum64=E;function I(T,_,A,P){var L=_+P>>>0,$=(L<_?1:0)+T+A;return $>>>0}m.sum64_hi=I;function F(T,_,A,P){var L=_+P;return L>>>0}m.sum64_lo=F;function B(T,_,A,P,L,$,R,k){var C=0,O=_;O=O+P>>>0,C+=O<_?1:0,O=O+$>>>0,C+=O<$?1:0,O=O+k>>>0,C+=O<k?1:0;var W=T+A+L+R+C;return W>>>0}m.sum64_4_hi=B;function j(T,_,A,P,L,$,R,k){var C=_+P+$+k;return C>>>0}m.sum64_4_lo=j;function X(T,_,A,P,L,$,R,k,C,O){var W=0,ne=_;ne=ne+P>>>0,W+=ne<_?1:0,ne=ne+$>>>0,W+=ne<$?1:0,ne=ne+k>>>0,W+=ne<k?1:0,ne=ne+O>>>0,W+=ne<O?1:0;var he=T+A+L+R+C+W;return he>>>0}m.sum64_5_hi=X;function G(T,_,A,P,L,$,R,k,C,O){var W=_+P+$+k+O;return W>>>0}m.sum64_5_lo=G;function V(T,_,A){var P=_<<32-A|T>>>A;return P>>>0}m.rotr64_hi=V;function J(T,_,A){var P=T<<32-A|_>>>A;return P>>>0}m.rotr64_lo=J;function H(T,_,A){return T>>>A}m.shr64_hi=H;function M(T,_,A){var P=T<<32-A|_>>>A;return P>>>0}m.shr64_lo=M},{inherits:440,"minimalistic-assert":453}],438:[function(e,d,m){var f=e("hash.js"),c=e("minimalistic-crypto-utils"),u=e("minimalistic-assert");function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var n=c.toArray(t.entropy,t.entropyEnc||"hex"),r=c.toArray(t.nonce,t.nonceEnc||"hex"),i=c.toArray(t.pers,t.persEnc||"hex");u(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(n,r,i)}d.exports=s,s.prototype._init=function(n,r,i){var o=n.concat(r).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var l=0;l<this.V.length;l++)this.K[l]=0,this.V[l]=1;this._update(o),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new f.hmac(this.hash,this.K)},s.prototype._update=function(n){var r=this._hmac().update(this.V).update([0]);n&&(r=r.update(n)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),n&&(this.K=this._hmac().update(this.V).update([1]).update(n).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(n,r,i,o){typeof r!="string"&&(o=i,i=r,r=null),n=c.toArray(n,r),i=c.toArray(i,o),u(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(n.concat(i||[])),this._reseed=1},s.prototype.generate=function(n,r,i,o){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(o=i,i=r,r=null),i&&(i=c.toArray(i,o||"hex"),this._update(i));for(var l=[];l.length<n;)this.V=this._hmac().update(this.V).digest(),l=l.concat(this.V);var a=l.slice(0,n);return this._update(i),this._reseed++,c.encode(a,r)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,d,m){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */m.read=function(f,c,u,s,t){var n,r,i=t*8-s-1,o=(1<<i)-1,l=o>>1,a=-7,g=u?t-1:0,v=u?-1:1,h=f[c+g];for(g+=v,n=h&(1<<-a)-1,h>>=-a,a+=i;a>0;n=n*256+f[c+g],g+=v,a-=8);for(r=n&(1<<-a)-1,n>>=-a,a+=s;a>0;r=r*256+f[c+g],g+=v,a-=8);if(n===0)n=1-l;else{if(n===o)return r?NaN:(h?-1:1)*(1/0);r=r+Math.pow(2,s),n=n-l}return(h?-1:1)*r*Math.pow(2,n-s)},m.write=function(f,c,u,s,t,n){var r,i,o,l=n*8-t-1,a=(1<<l)-1,g=a>>1,v=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=s?0:n-1,w=s?1:-1,y=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(i=isNaN(c)?1:0,r=a):(r=Math.floor(Math.log(c)/Math.LN2),c*(o=Math.pow(2,-r))<1&&(r--,o*=2),r+g>=1?c+=v/o:c+=v*Math.pow(2,1-g),c*o>=2&&(r++,o/=2),r+g>=a?(i=0,r=a):r+g>=1?(i=(c*o-1)*Math.pow(2,t),r=r+g):(i=c*Math.pow(2,g-1)*Math.pow(2,t),r=0));t>=8;f[u+h]=i&255,h+=w,i/=256,t-=8);for(r=r<<t|i,l+=t;l>0;f[u+h]=r&255,h+=w,r/=256,l-=8);f[u+h-w]|=y*128}},{}],440:[function(e,d,m){typeof Object.create=="function"?d.exports=function(c,u){u&&(c.super_=u,c.prototype=Object.create(u.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}))}:d.exports=function(c,u){if(u){c.super_=u;var s=function(){};s.prototype=u.prototype,c.prototype=new s,c.prototype.constructor=c}}},{}],441:[function(e,d,m){(function(f,c,u,s,t,n,r,i){(function(){/*!
|
||
|
||
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
||
<http://stuartk.com/jszip>
|
||
|
||
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
||
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(o){typeof m=="object"&&typeof d<"u"?d.exports=o():(typeof window<"u"?window:typeof c<"u"?c:typeof self<"u"?self:this).JSZip=o()})(function(){return function o(l,a,g){function v(y,S){if(!a[y]){if(!l[y]){var E=typeof e=="function"&&e;if(!S&&E)return E(y,!0);if(h)return h(y,!0);var I=new Error("Cannot find module '"+y+"'");throw I.code="MODULE_NOT_FOUND",I}var F=a[y]={exports:{}};l[y][0].call(F.exports,function(B){var j=l[y][1][B];return v(j||B)},F,F.exports,o,l,a,g)}return a[y].exports}for(var h=typeof e=="function"&&e,w=0;w<g.length;w++)v(g[w]);return v}({1:[function(o,l,a){var g=o("./utils"),v=o("./support"),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.encode=function(w){for(var y,S,E,I,F,B,j,X=[],G=0,V=w.length,J=V,H=g.getTypeOf(w)!=="string";G<w.length;)J=V-G,E=H?(y=w[G++],S=G<V?w[G++]:0,G<V?w[G++]:0):(y=w.charCodeAt(G++),S=G<V?w.charCodeAt(G++):0,G<V?w.charCodeAt(G++):0),I=y>>2,F=(3&y)<<4|S>>4,B=1<J?(15&S)<<2|E>>6:64,j=2<J?63&E:64,X.push(h.charAt(I)+h.charAt(F)+h.charAt(B)+h.charAt(j));return X.join("")},a.decode=function(w){var y,S,E,I,F,B,j=0,X=0,G="data:";if(w.substr(0,G.length)===G)throw new Error("Invalid base64 input, it looks like a data url.");var V,J=3*(w=w.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(w.charAt(w.length-1)===h.charAt(64)&&J--,w.charAt(w.length-2)===h.charAt(64)&&J--,J%1!=0)throw new Error("Invalid base64 input, bad content length.");for(V=v.uint8array?new Uint8Array(0|J):new Array(0|J);j<w.length;)y=h.indexOf(w.charAt(j++))<<2|(I=h.indexOf(w.charAt(j++)))>>4,S=(15&I)<<4|(F=h.indexOf(w.charAt(j++)))>>2,E=(3&F)<<6|(B=h.indexOf(w.charAt(j++))),V[X++]=y,F!==64&&(V[X++]=S),B!==64&&(V[X++]=E);return V}},{"./support":30,"./utils":32}],2:[function(o,l,a){var g=o("./external"),v=o("./stream/DataWorker"),h=o("./stream/Crc32Probe"),w=o("./stream/DataLengthProbe");function y(S,E,I,F,B){this.compressedSize=S,this.uncompressedSize=E,this.crc32=I,this.compression=F,this.compressedContent=B}y.prototype={getContentWorker:function(){var S=new v(g.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new w("data_length")),E=this;return S.on("end",function(){if(this.streamInfo.data_length!==E.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),S},getCompressedWorker:function(){return new v(g.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},y.createWorkerFrom=function(S,E,I){return S.pipe(new h).pipe(new w("uncompressedSize")).pipe(E.compressWorker(I)).pipe(new w("compressedSize")).withStreamInfo("compression",E)},l.exports=y},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(o,l,a){var g=o("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(){return new g("STORE compression")},uncompressWorker:function(){return new g("STORE decompression")}},a.DEFLATE=o("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(o,l,a){var g=o("./utils"),v=function(){for(var h,w=[],y=0;y<256;y++){h=y;for(var S=0;S<8;S++)h=1&h?3988292384^h>>>1:h>>>1;w[y]=h}return w}();l.exports=function(h,w){return h!==void 0&&h.length?g.getTypeOf(h)!=="string"?function(y,S,E,I){var F=v,B=I+E;y^=-1;for(var j=I;j<B;j++)y=y>>>8^F[255&(y^S[j])];return-1^y}(0|w,h,h.length,0):function(y,S,E,I){var F=v,B=I+E;y^=-1;for(var j=I;j<B;j++)y=y>>>8^F[255&(y^S.charCodeAt(j))];return-1^y}(0|w,h,h.length,0):0}},{"./utils":32}],5:[function(o,l,a){a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(o,l,a){var g=null;g=typeof Promise<"u"?Promise:o("lie"),l.exports={Promise:g}},{lie:37}],7:[function(o,l,a){var g=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",v=o("pako"),h=o("./utils"),w=o("./stream/GenericWorker"),y=g?"uint8array":"array";function S(E,I){w.call(this,"FlateWorker/"+E),this._pako=null,this._pakoAction=E,this._pakoOptions=I,this.meta={}}a.magic="\b\0",h.inherits(S,w),S.prototype.processChunk=function(E){this.meta=E.meta,this._pako===null&&this._createPako(),this._pako.push(h.transformTo(y,E.data),!1)},S.prototype.flush=function(){w.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},S.prototype.cleanUp=function(){w.prototype.cleanUp.call(this),this._pako=null},S.prototype._createPako=function(){this._pako=new v[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var E=this;this._pako.onData=function(I){E.push({data:I,meta:E.meta})}},a.compressWorker=function(E){return new S("Deflate",E)},a.uncompressWorker=function(){return new S("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(o,l,a){function g(F,B){var j,X="";for(j=0;j<B;j++)X+=String.fromCharCode(255&F),F>>>=8;return X}function v(F,B,j,X,G,V){var J,H,M=F.file,T=F.compression,_=V!==y.utf8encode,A=h.transformTo("string",V(M.name)),P=h.transformTo("string",y.utf8encode(M.name)),L=M.comment,$=h.transformTo("string",V(L)),R=h.transformTo("string",y.utf8encode(L)),k=P.length!==M.name.length,C=R.length!==L.length,O="",W="",ne="",he=M.dir,ue=M.date,Ae={crc32:0,compressedSize:0,uncompressedSize:0};B&&!j||(Ae.crc32=F.crc32,Ae.compressedSize=F.compressedSize,Ae.uncompressedSize=F.uncompressedSize);var pe=0;B&&(pe|=8),_||!k&&!C||(pe|=2048);var te=0,Z=0;he&&(te|=16),G==="UNIX"?(Z=798,te|=function(de,ke){var oe=de;return de||(oe=ke?16893:33204),(65535&oe)<<16}(M.unixPermissions,he)):(Z=20,te|=function(de){return 63&(de||0)}(M.dosPermissions)),J=ue.getUTCHours(),J<<=6,J|=ue.getUTCMinutes(),J<<=5,J|=ue.getUTCSeconds()/2,H=ue.getUTCFullYear()-1980,H<<=4,H|=ue.getUTCMonth()+1,H<<=5,H|=ue.getUTCDate(),k&&(W=g(1,1)+g(S(A),4)+P,O+="up"+g(W.length,2)+W),C&&(ne=g(1,1)+g(S($),4)+R,O+="uc"+g(ne.length,2)+ne);var q="";return q+=`
|
||
\0`,q+=g(pe,2),q+=T.magic,q+=g(J,2),q+=g(H,2),q+=g(Ae.crc32,4),q+=g(Ae.compressedSize,4),q+=g(Ae.uncompressedSize,4),q+=g(A.length,2),q+=g(O.length,2),{fileRecord:E.LOCAL_FILE_HEADER+q+A+O,dirRecord:E.CENTRAL_FILE_HEADER+g(Z,2)+q+g($.length,2)+"\0\0\0\0"+g(te,4)+g(X,4)+A+O+$}}var h=o("../utils"),w=o("../stream/GenericWorker"),y=o("../utf8"),S=o("../crc32"),E=o("../signature");function I(F,B,j,X){w.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=B,this.zipPlatform=j,this.encodeFileName=X,this.streamFiles=F,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}h.inherits(I,w),I.prototype.push=function(F){var B=F.meta.percent||0,j=this.entriesCount,X=this._sources.length;this.accumulate?this.contentBuffer.push(F):(this.bytesWritten+=F.data.length,w.prototype.push.call(this,{data:F.data,meta:{currentFile:this.currentFile,percent:j?(B+100*(j-X-1))/j:100}}))},I.prototype.openedSource=function(F){this.currentSourceOffset=this.bytesWritten,this.currentFile=F.file.name;var B=this.streamFiles&&!F.file.dir;if(B){var j=v(F,B,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:j.fileRecord,meta:{percent:0}})}else this.accumulate=!0},I.prototype.closedSource=function(F){this.accumulate=!1;var B=this.streamFiles&&!F.file.dir,j=v(F,B,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(j.dirRecord),B)this.push({data:function(X){return E.DATA_DESCRIPTOR+g(X.crc32,4)+g(X.compressedSize,4)+g(X.uncompressedSize,4)}(F),meta:{percent:100}});else for(this.push({data:j.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},I.prototype.flush=function(){for(var F=this.bytesWritten,B=0;B<this.dirRecords.length;B++)this.push({data:this.dirRecords[B],meta:{percent:100}});var j=this.bytesWritten-F,X=function(G,V,J,H,M){var T=h.transformTo("string",M(H));return E.CENTRAL_DIRECTORY_END+"\0\0\0\0"+g(G,2)+g(G,2)+g(V,4)+g(J,4)+g(T.length,2)+T}(this.dirRecords.length,j,F,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})},I.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},I.prototype.registerPrevious=function(F){this._sources.push(F);var B=this;return F.on("data",function(j){B.processChunk(j)}),F.on("end",function(){B.closedSource(B.previous.streamInfo),B._sources.length?B.prepareNextSource():B.end()}),F.on("error",function(j){B.error(j)}),this},I.prototype.resume=function(){return!!w.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},I.prototype.error=function(F){var B=this._sources;if(!w.prototype.error.call(this,F))return!1;for(var j=0;j<B.length;j++)try{B[j].error(F)}catch{}return!0},I.prototype.lock=function(){w.prototype.lock.call(this);for(var F=this._sources,B=0;B<F.length;B++)F[B].lock()},l.exports=I},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(o,l,a){var g=o("../compressions"),v=o("./ZipFileWorker");a.generateWorker=function(h,w,y){var S=new v(w.streamFiles,y,w.platform,w.encodeFileName),E=0;try{h.forEach(function(I,F){E++;var B=function(V,J){var H=V||J,M=g[H];if(!M)throw new Error(H+" is not a valid compression method !");return M}(F.options.compression,w.compression),j=F.options.compressionOptions||w.compressionOptions||{},X=F.dir,G=F.date;F._compressWorker(B,j).withStreamInfo("file",{name:I,dir:X,date:G,comment:F.comment||"",unixPermissions:F.unixPermissions,dosPermissions:F.dosPermissions}).pipe(S)}),S.entriesCount=E}catch(I){S.error(I)}return S}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(o,l,a){function g(){if(!(this instanceof g))return new g;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var v=new g;for(var h in this)typeof this[h]!="function"&&(v[h]=this[h]);return v}}(g.prototype=o("./object")).loadAsync=o("./load"),g.support=o("./support"),g.defaults=o("./defaults"),g.version="3.10.1",g.loadAsync=function(v,h){return new g().loadAsync(v,h)},g.external=o("./external"),l.exports=g},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(o,l,a){var g=o("./utils"),v=o("./external"),h=o("./utf8"),w=o("./zipEntries"),y=o("./stream/Crc32Probe"),S=o("./nodejsUtils");function E(I){return new v.Promise(function(F,B){var j=I.decompressed.getContentWorker().pipe(new y);j.on("error",function(X){B(X)}).on("end",function(){j.streamInfo.crc32!==I.decompressed.crc32?B(new Error("Corrupted zip : CRC32 mismatch")):F()}).resume()})}l.exports=function(I,F){var B=this;return F=g.extend(F||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:h.utf8decode}),S.isNode&&S.isStream(I)?v.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):g.prepareContent("the loaded zip file",I,!0,F.optimizedBinaryString,F.base64).then(function(j){var X=new w(F);return X.load(j),X}).then(function(j){var X=[v.Promise.resolve(j)],G=j.files;if(F.checkCRC32)for(var V=0;V<G.length;V++)X.push(E(G[V]));return v.Promise.all(X)}).then(function(j){for(var X=j.shift(),G=X.files,V=0;V<G.length;V++){var J=G[V],H=J.fileNameStr,M=g.resolve(J.fileNameStr);B.file(M,J.decompressed,{binary:!0,optimizedBinaryString:!0,date:J.date,dir:J.dir,comment:J.fileCommentStr.length?J.fileCommentStr:null,unixPermissions:J.unixPermissions,dosPermissions:J.dosPermissions,createFolders:F.createFolders}),J.dir||(B.file(M).unsafeOriginalName=H)}return X.zipComment.length&&(B.comment=X.zipComment),B})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(o,l,a){var g=o("../utils"),v=o("../stream/GenericWorker");function h(w,y){v.call(this,"Nodejs stream input adapter for "+w),this._upstreamEnded=!1,this._bindStream(y)}g.inherits(h,v),h.prototype._bindStream=function(w){var y=this;(this._stream=w).pause(),w.on("data",function(S){y.push({data:S,meta:{percent:0}})}).on("error",function(S){y.isPaused?this.generatedError=S:y.error(S)}).on("end",function(){y.isPaused?y._upstreamEnded=!0:y.end()})},h.prototype.pause=function(){return!!v.prototype.pause.call(this)&&(this._stream.pause(),!0)},h.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},l.exports=h},{"../stream/GenericWorker":28,"../utils":32}],13:[function(o,l,a){var g=o("readable-stream").Readable;function v(h,w,y){g.call(this,w),this._helper=h;var S=this;h.on("data",function(E,I){S.push(E)||S._helper.pause(),y&&y(I)}).on("error",function(E){S.emit("error",E)}).on("end",function(){S.push(null)})}o("../utils").inherits(v,g),v.prototype._read=function(){this._helper.resume()},l.exports=v},{"../utils":32,"readable-stream":16}],14:[function(o,l,a){l.exports={isNode:typeof u<"u",newBufferFrom:function(g,v){if(u.from&&u.from!==Uint8Array.from)return u.from(g,v);if(typeof g=="number")throw new Error('The "data" argument must not be a number');return new u(g,v)},allocBuffer:function(g){if(u.alloc)return u.alloc(g);var v=new u(g);return v.fill(0),v},isBuffer:function(g){return u.isBuffer(g)},isStream:function(g){return g&&typeof g.on=="function"&&typeof g.pause=="function"&&typeof g.resume=="function"}}},{}],15:[function(o,l,a){function g(M,T,_){var A,P=h.getTypeOf(T),L=h.extend(_||{},S);L.date=L.date||new Date,L.compression!==null&&(L.compression=L.compression.toUpperCase()),typeof L.unixPermissions=="string"&&(L.unixPermissions=parseInt(L.unixPermissions,8)),L.unixPermissions&&16384&L.unixPermissions&&(L.dir=!0),L.dosPermissions&&16&L.dosPermissions&&(L.dir=!0),L.dir&&(M=G(M)),L.createFolders&&(A=X(M))&&V.call(this,A,!0);var $=P==="string"&&L.binary===!1&&L.base64===!1;_&&_.binary!==void 0||(L.binary=!$),(T instanceof E&&T.uncompressedSize===0||L.dir||!T||T.length===0)&&(L.base64=!1,L.binary=!0,T="",L.compression="STORE",P="string");var R=null;R=T instanceof E||T instanceof w?T:B.isNode&&B.isStream(T)?new j(M,T):h.prepareContent(M,T,L.binary,L.optimizedBinaryString,L.base64);var k=new I(M,R,L);this.files[M]=k}var v=o("./utf8"),h=o("./utils"),w=o("./stream/GenericWorker"),y=o("./stream/StreamHelper"),S=o("./defaults"),E=o("./compressedObject"),I=o("./zipObject"),F=o("./generate"),B=o("./nodejsUtils"),j=o("./nodejs/NodejsStreamInputAdapter"),X=function(M){M.slice(-1)==="/"&&(M=M.substring(0,M.length-1));var T=M.lastIndexOf("/");return 0<T?M.substring(0,T):""},G=function(M){return M.slice(-1)!=="/"&&(M+="/"),M},V=function(M,T){return T=T!==void 0?T:S.createFolders,M=G(M),this.files[M]||g.call(this,M,null,{dir:!0,createFolders:T}),this.files[M]};function J(M){return Object.prototype.toString.call(M)==="[object RegExp]"}var H={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(M){var T,_,A;for(T in this.files)A=this.files[T],(_=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&M(_,A)},filter:function(M){var T=[];return this.forEach(function(_,A){M(_,A)&&T.push(A)}),T},file:function(M,T,_){if(arguments.length!==1)return M=this.root+M,g.call(this,M,T,_),this;if(J(M)){var A=M;return this.filter(function(L,$){return!$.dir&&A.test(L)})}var P=this.files[this.root+M];return P&&!P.dir?P:null},folder:function(M){if(!M)return this;if(J(M))return this.filter(function(P,L){return L.dir&&M.test(P)});var T=this.root+M,_=V.call(this,T),A=this.clone();return A.root=_.name,A},remove:function(M){M=this.root+M;var T=this.files[M];if(T||(M.slice(-1)!=="/"&&(M+="/"),T=this.files[M]),T&&!T.dir)delete this.files[M];else for(var _=this.filter(function(P,L){return L.name.slice(0,M.length)===M}),A=0;A<_.length;A++)delete this.files[_[A].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(M){var T,_={};try{if((_=h.extend(M||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:v.utf8encode})).type=_.type.toLowerCase(),_.compression=_.compression.toUpperCase(),_.type==="binarystring"&&(_.type="string"),!_.type)throw new Error("No output type specified.");h.checkSupport(_.type),_.platform!=="darwin"&&_.platform!=="freebsd"&&_.platform!=="linux"&&_.platform!=="sunos"||(_.platform="UNIX"),_.platform==="win32"&&(_.platform="DOS");var A=_.comment||this.comment||"";T=F.generateWorker(this,_,A)}catch(P){(T=new w("error")).error(P)}return new y(T,_.type||"string",_.mimeType)},generateAsync:function(M,T){return this.generateInternalStream(M).accumulate(T)},generateNodeStream:function(M,T){return(M=M||{}).type||(M.type="nodebuffer"),this.generateInternalStream(M).toNodejsStream(T)}};l.exports=H},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(o,l,a){l.exports=o("stream")},{stream:void 0}],17:[function(o,l,a){var g=o("./DataReader");function v(h){g.call(this,h);for(var w=0;w<this.data.length;w++)h[w]=255&h[w]}o("../utils").inherits(v,g),v.prototype.byteAt=function(h){return this.data[this.zero+h]},v.prototype.lastIndexOfSignature=function(h){for(var w=h.charCodeAt(0),y=h.charCodeAt(1),S=h.charCodeAt(2),E=h.charCodeAt(3),I=this.length-4;0<=I;--I)if(this.data[I]===w&&this.data[I+1]===y&&this.data[I+2]===S&&this.data[I+3]===E)return I-this.zero;return-1},v.prototype.readAndCheckSignature=function(h){var w=h.charCodeAt(0),y=h.charCodeAt(1),S=h.charCodeAt(2),E=h.charCodeAt(3),I=this.readData(4);return w===I[0]&&y===I[1]&&S===I[2]&&E===I[3]},v.prototype.readData=function(h){if(this.checkOffset(h),h===0)return[];var w=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,w},l.exports=v},{"../utils":32,"./DataReader":18}],18:[function(o,l,a){var g=o("../utils");function v(h){this.data=h,this.length=h.length,this.index=0,this.zero=0}v.prototype={checkOffset:function(h){this.checkIndex(this.index+h)},checkIndex:function(h){if(this.length<this.zero+h||h<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+h+"). Corrupted zip ?")},setIndex:function(h){this.checkIndex(h),this.index=h},skip:function(h){this.setIndex(this.index+h)},byteAt:function(){},readInt:function(h){var w,y=0;for(this.checkOffset(h),w=this.index+h-1;w>=this.index;w--)y=(y<<8)+this.byteAt(w);return this.index+=h,y},readString:function(h){return g.transformTo("string",this.readData(h))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var h=this.readInt(4);return new Date(Date.UTC(1980+(h>>25&127),(h>>21&15)-1,h>>16&31,h>>11&31,h>>5&63,(31&h)<<1))}},l.exports=v},{"../utils":32}],19:[function(o,l,a){var g=o("./Uint8ArrayReader");function v(h){g.call(this,h)}o("../utils").inherits(v,g),v.prototype.readData=function(h){this.checkOffset(h);var w=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,w},l.exports=v},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(o,l,a){var g=o("./DataReader");function v(h){g.call(this,h)}o("../utils").inherits(v,g),v.prototype.byteAt=function(h){return this.data.charCodeAt(this.zero+h)},v.prototype.lastIndexOfSignature=function(h){return this.data.lastIndexOf(h)-this.zero},v.prototype.readAndCheckSignature=function(h){return h===this.readData(4)},v.prototype.readData=function(h){this.checkOffset(h);var w=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,w},l.exports=v},{"../utils":32,"./DataReader":18}],21:[function(o,l,a){var g=o("./ArrayReader");function v(h){g.call(this,h)}o("../utils").inherits(v,g),v.prototype.readData=function(h){if(this.checkOffset(h),h===0)return new Uint8Array(0);var w=this.data.subarray(this.zero+this.index,this.zero+this.index+h);return this.index+=h,w},l.exports=v},{"../utils":32,"./ArrayReader":17}],22:[function(o,l,a){var g=o("../utils"),v=o("../support"),h=o("./ArrayReader"),w=o("./StringReader"),y=o("./NodeBufferReader"),S=o("./Uint8ArrayReader");l.exports=function(E){var I=g.getTypeOf(E);return g.checkSupport(I),I!=="string"||v.uint8array?I==="nodebuffer"?new y(E):v.uint8array?new S(g.transformTo("uint8array",E)):new h(g.transformTo("array",E)):new w(E)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(o,l,a){a.LOCAL_FILE_HEADER="PK",a.CENTRAL_FILE_HEADER="PK",a.CENTRAL_DIRECTORY_END="PK",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(o,l,a){var g=o("./GenericWorker"),v=o("../utils");function h(w){g.call(this,"ConvertWorker to "+w),this.destType=w}v.inherits(h,g),h.prototype.processChunk=function(w){this.push({data:v.transformTo(this.destType,w.data),meta:w.meta})},l.exports=h},{"../utils":32,"./GenericWorker":28}],25:[function(o,l,a){var g=o("./GenericWorker"),v=o("../crc32");function h(){g.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o("../utils").inherits(h,g),h.prototype.processChunk=function(w){this.streamInfo.crc32=v(w.data,this.streamInfo.crc32||0),this.push(w)},l.exports=h},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(o,l,a){var g=o("../utils"),v=o("./GenericWorker");function h(w){v.call(this,"DataLengthProbe for "+w),this.propName=w,this.withStreamInfo(w,0)}g.inherits(h,v),h.prototype.processChunk=function(w){if(w){var y=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=y+w.data.length}v.prototype.processChunk.call(this,w)},l.exports=h},{"../utils":32,"./GenericWorker":28}],27:[function(o,l,a){var g=o("../utils"),v=o("./GenericWorker");function h(w){v.call(this,"DataWorker");var y=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,w.then(function(S){y.dataIsReady=!0,y.data=S,y.max=S&&S.length||0,y.type=g.getTypeOf(S),y.isPaused||y._tickAndRepeat()},function(S){y.error(S)})}g.inherits(h,v),h.prototype.cleanUp=function(){v.prototype.cleanUp.call(this),this.data=null},h.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,g.delay(this._tickAndRepeat,[],this)),!0)},h.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(g.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},h.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var w=null,y=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":w=this.data.substring(this.index,y);break;case"uint8array":w=this.data.subarray(this.index,y);break;case"array":case"nodebuffer":w=this.data.slice(this.index,y)}return this.index=y,this.push({data:w,meta:{percent:this.max?this.index/this.max*100:0}})},l.exports=h},{"../utils":32,"./GenericWorker":28}],28:[function(o,l,a){function g(v){this.name=v||"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}g.prototype={push:function(v){this.emit("data",v)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(v){this.emit("error",v)}return!0},error:function(v){return!this.isFinished&&(this.isPaused?this.generatedError=v:(this.isFinished=!0,this.emit("error",v),this.previous&&this.previous.error(v),this.cleanUp()),!0)},on:function(v,h){return this._listeners[v].push(h),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(v,h){if(this._listeners[v])for(var w=0;w<this._listeners[v].length;w++)this._listeners[v][w].call(this,h)},pipe:function(v){return v.registerPrevious(this)},registerPrevious:function(v){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=v.streamInfo,this.mergeStreamInfo(),this.previous=v;var h=this;return v.on("data",function(w){h.processChunk(w)}),v.on("end",function(){h.end()}),v.on("error",function(w){h.error(w)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var v=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),v=!0),this.previous&&this.previous.resume(),!v},flush:function(){},processChunk:function(v){this.push(v)},withStreamInfo:function(v,h){return this.extraStreamInfo[v]=h,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var v in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,v)&&(this.streamInfo[v]=this.extraStreamInfo[v])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var v="Worker "+this.name;return this.previous?this.previous+" -> "+v:v}},l.exports=g},{}],29:[function(o,l,a){var g=o("../utils"),v=o("./ConvertWorker"),h=o("./GenericWorker"),w=o("../base64"),y=o("../support"),S=o("../external"),E=null;if(y.nodestream)try{E=o("../nodejs/NodejsStreamOutputAdapter")}catch{}function I(B,j){return new S.Promise(function(X,G){var V=[],J=B._internalType,H=B._outputType,M=B._mimeType;B.on("data",function(T,_){V.push(T),j&&j(_)}).on("error",function(T){V=[],G(T)}).on("end",function(){try{var T=function(_,A,P){switch(_){case"blob":return g.newBlob(g.transformTo("arraybuffer",A),P);case"base64":return w.encode(A);default:return g.transformTo(_,A)}}(H,function(_,A){var P,L=0,$=null,R=0;for(P=0;P<A.length;P++)R+=A[P].length;switch(_){case"string":return A.join("");case"array":return Array.prototype.concat.apply([],A);case"uint8array":for($=new Uint8Array(R),P=0;P<A.length;P++)$.set(A[P],L),L+=A[P].length;return $;case"nodebuffer":return u.concat(A);default:throw new Error("concat : unsupported type '"+_+"'")}}(J,V),M);X(T)}catch(_){G(_)}V=[]}).resume()})}function F(B,j,X){var G=j;switch(j){case"blob":case"arraybuffer":G="uint8array";break;case"base64":G="string"}try{this._internalType=G,this._outputType=j,this._mimeType=X,g.checkSupport(G),this._worker=B.pipe(new v(G)),B.lock()}catch(V){this._worker=new h("error"),this._worker.error(V)}}F.prototype={accumulate:function(B){return I(this,B)},on:function(B,j){var X=this;return B==="data"?this._worker.on(B,function(G){j.call(X,G.data,G.meta)}):this._worker.on(B,function(){g.delay(j,arguments,X)}),this},resume:function(){return g.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(B){if(g.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new E(this,{objectMode:this._outputType!=="nodebuffer"},B)}},l.exports=F},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(o,l,a){if(a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a.nodebuffer=typeof u<"u",a.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")a.blob=!1;else{var g=new ArrayBuffer(0);try{a.blob=new Blob([g],{type:"application/zip"}).size===0}catch{try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);v.append(g),a.blob=v.getBlob("application/zip").size===0}catch{a.blob=!1}}}try{a.nodestream=!!o("readable-stream").Readable}catch{a.nodestream=!1}},{"readable-stream":16}],31:[function(o,l,a){for(var g=o("./utils"),v=o("./support"),h=o("./nodejsUtils"),w=o("./stream/GenericWorker"),y=new Array(256),S=0;S<256;S++)y[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;y[254]=y[254]=1;function E(){w.call(this,"utf-8 decode"),this.leftOver=null}function I(){w.call(this,"utf-8 encode")}a.utf8encode=function(F){return v.nodebuffer?h.newBufferFrom(F,"utf-8"):function(B){var j,X,G,V,J,H=B.length,M=0;for(V=0;V<H;V++)(64512&(X=B.charCodeAt(V)))==55296&&V+1<H&&(64512&(G=B.charCodeAt(V+1)))==56320&&(X=65536+(X-55296<<10)+(G-56320),V++),M+=X<128?1:X<2048?2:X<65536?3:4;for(j=v.uint8array?new Uint8Array(M):new Array(M),V=J=0;J<M;V++)(64512&(X=B.charCodeAt(V)))==55296&&V+1<H&&(64512&(G=B.charCodeAt(V+1)))==56320&&(X=65536+(X-55296<<10)+(G-56320),V++),X<128?j[J++]=X:(X<2048?j[J++]=192|X>>>6:(X<65536?j[J++]=224|X>>>12:(j[J++]=240|X>>>18,j[J++]=128|X>>>12&63),j[J++]=128|X>>>6&63),j[J++]=128|63&X);return j}(F)},a.utf8decode=function(F){return v.nodebuffer?g.transformTo("nodebuffer",F).toString("utf-8"):function(B){var j,X,G,V,J=B.length,H=new Array(2*J);for(j=X=0;j<J;)if((G=B[j++])<128)H[X++]=G;else if(4<(V=y[G]))H[X++]=65533,j+=V-1;else{for(G&=V===2?31:V===3?15:7;1<V&&j<J;)G=G<<6|63&B[j++],V--;1<V?H[X++]=65533:G<65536?H[X++]=G:(G-=65536,H[X++]=55296|G>>10&1023,H[X++]=56320|1023&G)}return H.length!==X&&(H.subarray?H=H.subarray(0,X):H.length=X),g.applyFromCharCode(H)}(F=g.transformTo(v.uint8array?"uint8array":"array",F))},g.inherits(E,w),E.prototype.processChunk=function(F){var B=g.transformTo(v.uint8array?"uint8array":"array",F.data);if(this.leftOver&&this.leftOver.length){if(v.uint8array){var j=B;(B=new Uint8Array(j.length+this.leftOver.length)).set(this.leftOver,0),B.set(j,this.leftOver.length)}else B=this.leftOver.concat(B);this.leftOver=null}var X=function(V,J){var H;for((J=J||V.length)>V.length&&(J=V.length),H=J-1;0<=H&&(192&V[H])==128;)H--;return H<0||H===0?J:H+y[V[H]]>J?H:J}(B),G=B;X!==B.length&&(v.uint8array?(G=B.subarray(0,X),this.leftOver=B.subarray(X,B.length)):(G=B.slice(0,X),this.leftOver=B.slice(X,B.length))),this.push({data:a.utf8decode(G),meta:F.meta})},E.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=E,g.inherits(I,w),I.prototype.processChunk=function(F){this.push({data:a.utf8encode(F.data),meta:F.meta})},a.Utf8EncodeWorker=I},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(o,l,a){var g=o("./support"),v=o("./base64"),h=o("./nodejsUtils"),w=o("./external");function y(j){return j}function S(j,X){for(var G=0;G<j.length;++G)X[G]=255&j.charCodeAt(G);return X}o("setimmediate"),a.newBlob=function(j,X){a.checkSupport("blob");try{return new Blob([j],{type:X})}catch{try{var G=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return G.append(j),G.getBlob(X)}catch{throw new Error("Bug : can't construct the Blob.")}}};var E={stringifyByChunk:function(j,X,G){var V=[],J=0,H=j.length;if(H<=G)return String.fromCharCode.apply(null,j);for(;J<H;)X==="array"||X==="nodebuffer"?V.push(String.fromCharCode.apply(null,j.slice(J,Math.min(J+G,H)))):V.push(String.fromCharCode.apply(null,j.subarray(J,Math.min(J+G,H)))),J+=G;return V.join("")},stringifyByChar:function(j){for(var X="",G=0;G<j.length;G++)X+=String.fromCharCode(j[G]);return X},applyCanBeUsed:{uint8array:function(){try{return g.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return g.nodebuffer&&String.fromCharCode.apply(null,h.allocBuffer(1)).length===1}catch{return!1}}()}};function I(j){var X=65536,G=a.getTypeOf(j),V=!0;if(G==="uint8array"?V=E.applyCanBeUsed.uint8array:G==="nodebuffer"&&(V=E.applyCanBeUsed.nodebuffer),V)for(;1<X;)try{return E.stringifyByChunk(j,G,X)}catch{X=Math.floor(X/2)}return E.stringifyByChar(j)}function F(j,X){for(var G=0;G<j.length;G++)X[G]=j[G];return X}a.applyFromCharCode=I;var B={};B.string={string:y,array:function(j){return S(j,new Array(j.length))},arraybuffer:function(j){return B.string.uint8array(j).buffer},uint8array:function(j){return S(j,new Uint8Array(j.length))},nodebuffer:function(j){return S(j,h.allocBuffer(j.length))}},B.array={string:I,array:y,arraybuffer:function(j){return new Uint8Array(j).buffer},uint8array:function(j){return new Uint8Array(j)},nodebuffer:function(j){return h.newBufferFrom(j)}},B.arraybuffer={string:function(j){return I(new Uint8Array(j))},array:function(j){return F(new Uint8Array(j),new Array(j.byteLength))},arraybuffer:y,uint8array:function(j){return new Uint8Array(j)},nodebuffer:function(j){return h.newBufferFrom(new Uint8Array(j))}},B.uint8array={string:I,array:function(j){return F(j,new Array(j.length))},arraybuffer:function(j){return j.buffer},uint8array:y,nodebuffer:function(j){return h.newBufferFrom(j)}},B.nodebuffer={string:I,array:function(j){return F(j,new Array(j.length))},arraybuffer:function(j){return B.nodebuffer.uint8array(j).buffer},uint8array:function(j){return F(j,new Uint8Array(j.length))},nodebuffer:y},a.transformTo=function(j,X){if(X=X||"",!j)return X;a.checkSupport(j);var G=a.getTypeOf(X);return B[G][j](X)},a.resolve=function(j){for(var X=j.split("/"),G=[],V=0;V<X.length;V++){var J=X[V];J==="."||J===""&&V!==0&&V!==X.length-1||(J===".."?G.pop():G.push(J))}return G.join("/")},a.getTypeOf=function(j){return typeof j=="string"?"string":Object.prototype.toString.call(j)==="[object Array]"?"array":g.nodebuffer&&h.isBuffer(j)?"nodebuffer":g.uint8array&&j instanceof Uint8Array?"uint8array":g.arraybuffer&&j instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(j){if(!g[j.toLowerCase()])throw new Error(j+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(j){var X,G,V="";for(G=0;G<(j||"").length;G++)V+="\\x"+((X=j.charCodeAt(G))<16?"0":"")+X.toString(16).toUpperCase();return V},a.delay=function(j,X,G){i(function(){j.apply(G||null,X||[])})},a.inherits=function(j,X){function G(){}G.prototype=X.prototype,j.prototype=new G},a.extend=function(){var j,X,G={};for(j=0;j<arguments.length;j++)for(X in arguments[j])Object.prototype.hasOwnProperty.call(arguments[j],X)&&G[X]===void 0&&(G[X]=arguments[j][X]);return G},a.prepareContent=function(j,X,G,V,J){return w.Promise.resolve(X).then(function(H){return g.blob&&(H instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(H))!==-1)&&typeof FileReader<"u"?new w.Promise(function(M,T){var _=new FileReader;_.onload=function(A){M(A.target.result)},_.onerror=function(A){T(A.target.error)},_.readAsArrayBuffer(H)}):H}).then(function(H){var M=a.getTypeOf(H);return M?(M==="arraybuffer"?H=a.transformTo("uint8array",H):M==="string"&&(J?H=v.decode(H):G&&V!==!0&&(H=function(T){return S(T,g.uint8array?new Uint8Array(T.length):new Array(T.length))}(H))),H):w.Promise.reject(new Error("Can't read the data of '"+j+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(o,l,a){var g=o("./reader/readerFor"),v=o("./utils"),h=o("./signature"),w=o("./zipEntry"),y=o("./support");function S(E){this.files=[],this.loadOptions=E}S.prototype={checkSignature:function(E){if(!this.reader.readAndCheckSignature(E)){this.reader.index-=4;var I=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+v.pretty(I)+", expected "+v.pretty(E)+")")}},isSignature:function(E,I){var F=this.reader.index;this.reader.setIndex(E);var B=this.reader.readString(4)===I;return this.reader.setIndex(F),B},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var E=this.reader.readData(this.zipCommentLength),I=y.uint8array?"uint8array":"array",F=v.transformTo(I,E);this.zipComment=this.loadOptions.decodeFileName(F)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var E,I,F,B=this.zip64EndOfCentralSize-44;0<B;)E=this.reader.readInt(2),I=this.reader.readInt(4),F=this.reader.readData(I),this.zip64ExtensibleData[E]={id:E,length:I,value:F}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var E,I;for(E=0;E<this.files.length;E++)I=this.files[E],this.reader.setIndex(I.localHeaderOffset),this.checkSignature(h.LOCAL_FILE_HEADER),I.readLocalPart(this.reader),I.handleUTF8(),I.processAttributes()},readCentralDir:function(){var E;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(h.CENTRAL_FILE_HEADER);)(E=new w({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(E);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var E=this.reader.lastIndexOfSignature(h.CENTRAL_DIRECTORY_END);if(E<0)throw this.isSignature(0,h.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(E);var I=E;if(this.checkSignature(h.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===v.MAX_VALUE_16BITS||this.diskWithCentralDirStart===v.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===v.MAX_VALUE_16BITS||this.centralDirRecords===v.MAX_VALUE_16BITS||this.centralDirSize===v.MAX_VALUE_32BITS||this.centralDirOffset===v.MAX_VALUE_32BITS){if(this.zip64=!0,(E=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(E),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,h.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var F=this.centralDirOffset+this.centralDirSize;this.zip64&&(F+=20,F+=12+this.zip64EndOfCentralSize);var B=I-F;if(0<B)this.isSignature(I,h.CENTRAL_FILE_HEADER)||(this.reader.zero=B);else if(B<0)throw new Error("Corrupted zip: missing "+Math.abs(B)+" bytes.")},prepareReader:function(E){this.reader=g(E)},load:function(E){this.prepareReader(E),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},l.exports=S},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(o,l,a){var g=o("./reader/readerFor"),v=o("./utils"),h=o("./compressedObject"),w=o("./crc32"),y=o("./utf8"),S=o("./compressions"),E=o("./support");function I(F,B){this.options=F,this.loadOptions=B}I.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(F){var B,j;if(F.skip(22),this.fileNameLength=F.readInt(2),j=F.readInt(2),this.fileName=F.readData(this.fileNameLength),F.skip(j),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((B=function(X){for(var G in S)if(Object.prototype.hasOwnProperty.call(S,G)&&S[G].magic===X)return S[G];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+v.pretty(this.compressionMethod)+" unknown (inner file : "+v.transformTo("string",this.fileName)+")");this.decompressed=new h(this.compressedSize,this.uncompressedSize,this.crc32,B,F.readData(this.compressedSize))},readCentralPart:function(F){this.versionMadeBy=F.readInt(2),F.skip(2),this.bitFlag=F.readInt(2),this.compressionMethod=F.readString(2),this.date=F.readDate(),this.crc32=F.readInt(4),this.compressedSize=F.readInt(4),this.uncompressedSize=F.readInt(4);var B=F.readInt(2);if(this.extraFieldsLength=F.readInt(2),this.fileCommentLength=F.readInt(2),this.diskNumberStart=F.readInt(2),this.internalFileAttributes=F.readInt(2),this.externalFileAttributes=F.readInt(4),this.localHeaderOffset=F.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");F.skip(B),this.readExtraFields(F),this.parseZIP64ExtraField(F),this.fileComment=F.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var F=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),F==0&&(this.dosPermissions=63&this.externalFileAttributes),F==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var F=g(this.extraFields[1].value);this.uncompressedSize===v.MAX_VALUE_32BITS&&(this.uncompressedSize=F.readInt(8)),this.compressedSize===v.MAX_VALUE_32BITS&&(this.compressedSize=F.readInt(8)),this.localHeaderOffset===v.MAX_VALUE_32BITS&&(this.localHeaderOffset=F.readInt(8)),this.diskNumberStart===v.MAX_VALUE_32BITS&&(this.diskNumberStart=F.readInt(4))}},readExtraFields:function(F){var B,j,X,G=F.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});F.index+4<G;)B=F.readInt(2),j=F.readInt(2),X=F.readData(j),this.extraFields[B]={id:B,length:j,value:X};F.setIndex(G)},handleUTF8:function(){var F=E.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=y.utf8decode(this.fileName),this.fileCommentStr=y.utf8decode(this.fileComment);else{var B=this.findExtraFieldUnicodePath();if(B!==null)this.fileNameStr=B;else{var j=v.transformTo(F,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(j)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var G=v.transformTo(F,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(G)}}},findExtraFieldUnicodePath:function(){var F=this.extraFields[28789];if(F){var B=g(F.value);return B.readInt(1)!==1||w(this.fileName)!==B.readInt(4)?null:y.utf8decode(B.readData(F.length-5))}return null},findExtraFieldUnicodeComment:function(){var F=this.extraFields[25461];if(F){var B=g(F.value);return B.readInt(1)!==1||w(this.fileComment)!==B.readInt(4)?null:y.utf8decode(B.readData(F.length-5))}return null}},l.exports=I},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(o,l,a){function g(B,j,X){this.name=B,this.dir=X.dir,this.date=X.date,this.comment=X.comment,this.unixPermissions=X.unixPermissions,this.dosPermissions=X.dosPermissions,this._data=j,this._dataBinary=X.binary,this.options={compression:X.compression,compressionOptions:X.compressionOptions}}var v=o("./stream/StreamHelper"),h=o("./stream/DataWorker"),w=o("./utf8"),y=o("./compressedObject"),S=o("./stream/GenericWorker");g.prototype={internalStream:function(B){var j=null,X="string";try{if(!B)throw new Error("No output type specified.");var G=(X=B.toLowerCase())==="string"||X==="text";X!=="binarystring"&&X!=="text"||(X="string"),j=this._decompressWorker();var V=!this._dataBinary;V&&!G&&(j=j.pipe(new w.Utf8EncodeWorker)),!V&&G&&(j=j.pipe(new w.Utf8DecodeWorker))}catch(J){(j=new S("error")).error(J)}return new v(j,X,"")},async:function(B,j){return this.internalStream(B).accumulate(j)},nodeStream:function(B,j){return this.internalStream(B||"nodebuffer").toNodejsStream(j)},_compressWorker:function(B,j){if(this._data instanceof y&&this._data.compression.magic===B.magic)return this._data.getCompressedWorker();var X=this._decompressWorker();return this._dataBinary||(X=X.pipe(new w.Utf8EncodeWorker)),y.createWorkerFrom(X,B,j)},_decompressWorker:function(){return this._data instanceof y?this._data.getContentWorker():this._data instanceof S?this._data:new h(this._data)}};for(var E=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],I=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},F=0;F<E.length;F++)g.prototype[E[F]]=I;l.exports=g},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(o,l,a){(function(g){var v,h,w=g.MutationObserver||g.WebKitMutationObserver;if(w){var y=0,S=new w(B),E=g.document.createTextNode("");S.observe(E,{characterData:!0}),v=function(){E.data=y=++y%2}}else if(g.setImmediate||g.MessageChannel===void 0)v="document"in g&&"onreadystatechange"in g.document.createElement("script")?function(){var j=g.document.createElement("script");j.onreadystatechange=function(){B(),j.onreadystatechange=null,j.parentNode.removeChild(j),j=null},g.document.documentElement.appendChild(j)}:function(){setTimeout(B,0)};else{var I=new g.MessageChannel;I.port1.onmessage=B,v=function(){I.port2.postMessage(0)}}var F=[];function B(){var j,X;h=!0;for(var G=F.length;G;){for(X=F,F=[],j=-1;++j<G;)X[j]();G=F.length}h=!1}l.exports=function(j){F.push(j)!==1||h||v()}}).call(this,typeof c<"u"?c:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(o,l,a){var g=o("immediate");function v(){}var h={},w=["REJECTED"],y=["FULFILLED"],S=["PENDING"];function E(G){if(typeof G!="function")throw new TypeError("resolver must be a function");this.state=S,this.queue=[],this.outcome=void 0,G!==v&&j(this,G)}function I(G,V,J){this.promise=G,typeof V=="function"&&(this.onFulfilled=V,this.callFulfilled=this.otherCallFulfilled),typeof J=="function"&&(this.onRejected=J,this.callRejected=this.otherCallRejected)}function F(G,V,J){g(function(){var H;try{H=V(J)}catch(M){return h.reject(G,M)}H===G?h.reject(G,new TypeError("Cannot resolve promise with itself")):h.resolve(G,H)})}function B(G){var V=G&&G.then;if(G&&(typeof G=="object"||typeof G=="function")&&typeof V=="function")return function(){V.apply(G,arguments)}}function j(G,V){var J=!1;function H(_){J||(J=!0,h.reject(G,_))}function M(_){J||(J=!0,h.resolve(G,_))}var T=X(function(){V(M,H)});T.status==="error"&&H(T.value)}function X(G,V){var J={};try{J.value=G(V),J.status="success"}catch(H){J.status="error",J.value=H}return J}(l.exports=E).prototype.finally=function(G){if(typeof G!="function")return this;var V=this.constructor;return this.then(function(J){return V.resolve(G()).then(function(){return J})},function(J){return V.resolve(G()).then(function(){throw J})})},E.prototype.catch=function(G){return this.then(null,G)},E.prototype.then=function(G,V){if(typeof G!="function"&&this.state===y||typeof V!="function"&&this.state===w)return this;var J=new this.constructor(v);return this.state!==S?F(J,this.state===y?G:V,this.outcome):this.queue.push(new I(J,G,V)),J},I.prototype.callFulfilled=function(G){h.resolve(this.promise,G)},I.prototype.otherCallFulfilled=function(G){F(this.promise,this.onFulfilled,G)},I.prototype.callRejected=function(G){h.reject(this.promise,G)},I.prototype.otherCallRejected=function(G){F(this.promise,this.onRejected,G)},h.resolve=function(G,V){var J=X(B,V);if(J.status==="error")return h.reject(G,J.value);var H=J.value;if(H)j(G,H);else{G.state=y,G.outcome=V;for(var M=-1,T=G.queue.length;++M<T;)G.queue[M].callFulfilled(V)}return G},h.reject=function(G,V){G.state=w,G.outcome=V;for(var J=-1,H=G.queue.length;++J<H;)G.queue[J].callRejected(V);return G},E.resolve=function(G){return G instanceof this?G:h.resolve(new this(v),G)},E.reject=function(G){var V=new this(v);return h.reject(V,G)},E.all=function(G){var V=this;if(Object.prototype.toString.call(G)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=G.length,H=!1;if(!J)return this.resolve([]);for(var M=new Array(J),T=0,_=-1,A=new this(v);++_<J;)P(G[_],_);return A;function P(L,$){V.resolve(L).then(function(R){M[$]=R,++T!==J||H||(H=!0,h.resolve(A,M))},function(R){H||(H=!0,h.reject(A,R))})}},E.race=function(G){var V=this;if(Object.prototype.toString.call(G)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=G.length,H=!1;if(!J)return this.resolve([]);for(var M=-1,T=new this(v);++M<J;)_=G[M],V.resolve(_).then(function(A){H||(H=!0,h.resolve(T,A))},function(A){H||(H=!0,h.reject(T,A))});var _;return T}},{immediate:36}],38:[function(o,l,a){var g={};(0,o("./lib/utils/common").assign)(g,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),l.exports=g},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(o,l,a){var g=o("./zlib/deflate"),v=o("./utils/common"),h=o("./utils/strings"),w=o("./zlib/messages"),y=o("./zlib/zstream"),S=Object.prototype.toString,E=0,I=-1,F=0,B=8;function j(G){if(!(this instanceof j))return new j(G);this.options=v.assign({level:I,method:B,chunkSize:16384,windowBits:15,memLevel:8,strategy:F,to:""},G||{});var V=this.options;V.raw&&0<V.windowBits?V.windowBits=-V.windowBits:V.gzip&&0<V.windowBits&&V.windowBits<16&&(V.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var J=g.deflateInit2(this.strm,V.level,V.method,V.windowBits,V.memLevel,V.strategy);if(J!==E)throw new Error(w[J]);if(V.header&&g.deflateSetHeader(this.strm,V.header),V.dictionary){var H;if(H=typeof V.dictionary=="string"?h.string2buf(V.dictionary):S.call(V.dictionary)==="[object ArrayBuffer]"?new Uint8Array(V.dictionary):V.dictionary,(J=g.deflateSetDictionary(this.strm,H))!==E)throw new Error(w[J]);this._dict_set=!0}}function X(G,V){var J=new j(V);if(J.push(G,!0),J.err)throw J.msg||w[J.err];return J.result}j.prototype.push=function(G,V){var J,H,M=this.strm,T=this.options.chunkSize;if(this.ended)return!1;H=V===~~V?V:V===!0?4:0,typeof G=="string"?M.input=h.string2buf(G):S.call(G)==="[object ArrayBuffer]"?M.input=new Uint8Array(G):M.input=G,M.next_in=0,M.avail_in=M.input.length;do{if(M.avail_out===0&&(M.output=new v.Buf8(T),M.next_out=0,M.avail_out=T),(J=g.deflate(M,H))!==1&&J!==E)return this.onEnd(J),!(this.ended=!0);M.avail_out!==0&&(M.avail_in!==0||H!==4&&H!==2)||(this.options.to==="string"?this.onData(h.buf2binstring(v.shrinkBuf(M.output,M.next_out))):this.onData(v.shrinkBuf(M.output,M.next_out)))}while((0<M.avail_in||M.avail_out===0)&&J!==1);return H===4?(J=g.deflateEnd(this.strm),this.onEnd(J),this.ended=!0,J===E):H!==2||(this.onEnd(E),!(M.avail_out=0))},j.prototype.onData=function(G){this.chunks.push(G)},j.prototype.onEnd=function(G){G===E&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=G,this.msg=this.strm.msg},a.Deflate=j,a.deflate=X,a.deflateRaw=function(G,V){return(V=V||{}).raw=!0,X(G,V)},a.gzip=function(G,V){return(V=V||{}).gzip=!0,X(G,V)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(o,l,a){var g=o("./zlib/inflate"),v=o("./utils/common"),h=o("./utils/strings"),w=o("./zlib/constants"),y=o("./zlib/messages"),S=o("./zlib/zstream"),E=o("./zlib/gzheader"),I=Object.prototype.toString;function F(j){if(!(this instanceof F))return new F(j);this.options=v.assign({chunkSize:16384,windowBits:0,to:""},j||{});var X=this.options;X.raw&&0<=X.windowBits&&X.windowBits<16&&(X.windowBits=-X.windowBits,X.windowBits===0&&(X.windowBits=-15)),!(0<=X.windowBits&&X.windowBits<16)||j&&j.windowBits||(X.windowBits+=32),15<X.windowBits&&X.windowBits<48&&!(15&X.windowBits)&&(X.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var G=g.inflateInit2(this.strm,X.windowBits);if(G!==w.Z_OK)throw new Error(y[G]);this.header=new E,g.inflateGetHeader(this.strm,this.header)}function B(j,X){var G=new F(X);if(G.push(j,!0),G.err)throw G.msg||y[G.err];return G.result}F.prototype.push=function(j,X){var G,V,J,H,M,T,_=this.strm,A=this.options.chunkSize,P=this.options.dictionary,L=!1;if(this.ended)return!1;V=X===~~X?X:X===!0?w.Z_FINISH:w.Z_NO_FLUSH,typeof j=="string"?_.input=h.binstring2buf(j):I.call(j)==="[object ArrayBuffer]"?_.input=new Uint8Array(j):_.input=j,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new v.Buf8(A),_.next_out=0,_.avail_out=A),(G=g.inflate(_,w.Z_NO_FLUSH))===w.Z_NEED_DICT&&P&&(T=typeof P=="string"?h.string2buf(P):I.call(P)==="[object ArrayBuffer]"?new Uint8Array(P):P,G=g.inflateSetDictionary(this.strm,T)),G===w.Z_BUF_ERROR&&L===!0&&(G=w.Z_OK,L=!1),G!==w.Z_STREAM_END&&G!==w.Z_OK)return this.onEnd(G),!(this.ended=!0);_.next_out&&(_.avail_out!==0&&G!==w.Z_STREAM_END&&(_.avail_in!==0||V!==w.Z_FINISH&&V!==w.Z_SYNC_FLUSH)||(this.options.to==="string"?(J=h.utf8border(_.output,_.next_out),H=_.next_out-J,M=h.buf2string(_.output,J),_.next_out=H,_.avail_out=A-H,H&&v.arraySet(_.output,_.output,J,H,0),this.onData(M)):this.onData(v.shrinkBuf(_.output,_.next_out)))),_.avail_in===0&&_.avail_out===0&&(L=!0)}while((0<_.avail_in||_.avail_out===0)&&G!==w.Z_STREAM_END);return G===w.Z_STREAM_END&&(V=w.Z_FINISH),V===w.Z_FINISH?(G=g.inflateEnd(this.strm),this.onEnd(G),this.ended=!0,G===w.Z_OK):V!==w.Z_SYNC_FLUSH||(this.onEnd(w.Z_OK),!(_.avail_out=0))},F.prototype.onData=function(j){this.chunks.push(j)},F.prototype.onEnd=function(j){j===w.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=j,this.msg=this.strm.msg},a.Inflate=F,a.inflate=B,a.inflateRaw=function(j,X){return(X=X||{}).raw=!0,B(j,X)},a.ungzip=B},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(o,l,a){var g=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";a.assign=function(w){for(var y=Array.prototype.slice.call(arguments,1);y.length;){var S=y.shift();if(S){if(typeof S!="object")throw new TypeError(S+"must be non-object");for(var E in S)S.hasOwnProperty(E)&&(w[E]=S[E])}}return w},a.shrinkBuf=function(w,y){return w.length===y?w:w.subarray?w.subarray(0,y):(w.length=y,w)};var v={arraySet:function(w,y,S,E,I){if(y.subarray&&w.subarray)w.set(y.subarray(S,S+E),I);else for(var F=0;F<E;F++)w[I+F]=y[S+F]},flattenChunks:function(w){var y,S,E,I,F,B;for(y=E=0,S=w.length;y<S;y++)E+=w[y].length;for(B=new Uint8Array(E),y=I=0,S=w.length;y<S;y++)F=w[y],B.set(F,I),I+=F.length;return B}},h={arraySet:function(w,y,S,E,I){for(var F=0;F<E;F++)w[I+F]=y[S+F]},flattenChunks:function(w){return[].concat.apply([],w)}};a.setTyped=function(w){w?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,v)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,h))},a.setTyped(g)},{}],42:[function(o,l,a){var g=o("./common"),v=!0,h=!0;try{String.fromCharCode.apply(null,[0])}catch{v=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{h=!1}for(var w=new g.Buf8(256),y=0;y<256;y++)w[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;function S(E,I){if(I<65537&&(E.subarray&&h||!E.subarray&&v))return String.fromCharCode.apply(null,g.shrinkBuf(E,I));for(var F="",B=0;B<I;B++)F+=String.fromCharCode(E[B]);return F}w[254]=w[254]=1,a.string2buf=function(E){var I,F,B,j,X,G=E.length,V=0;for(j=0;j<G;j++)(64512&(F=E.charCodeAt(j)))==55296&&j+1<G&&(64512&(B=E.charCodeAt(j+1)))==56320&&(F=65536+(F-55296<<10)+(B-56320),j++),V+=F<128?1:F<2048?2:F<65536?3:4;for(I=new g.Buf8(V),j=X=0;X<V;j++)(64512&(F=E.charCodeAt(j)))==55296&&j+1<G&&(64512&(B=E.charCodeAt(j+1)))==56320&&(F=65536+(F-55296<<10)+(B-56320),j++),F<128?I[X++]=F:(F<2048?I[X++]=192|F>>>6:(F<65536?I[X++]=224|F>>>12:(I[X++]=240|F>>>18,I[X++]=128|F>>>12&63),I[X++]=128|F>>>6&63),I[X++]=128|63&F);return I},a.buf2binstring=function(E){return S(E,E.length)},a.binstring2buf=function(E){for(var I=new g.Buf8(E.length),F=0,B=I.length;F<B;F++)I[F]=E.charCodeAt(F);return I},a.buf2string=function(E,I){var F,B,j,X,G=I||E.length,V=new Array(2*G);for(F=B=0;F<G;)if((j=E[F++])<128)V[B++]=j;else if(4<(X=w[j]))V[B++]=65533,F+=X-1;else{for(j&=X===2?31:X===3?15:7;1<X&&F<G;)j=j<<6|63&E[F++],X--;1<X?V[B++]=65533:j<65536?V[B++]=j:(j-=65536,V[B++]=55296|j>>10&1023,V[B++]=56320|1023&j)}return S(V,B)},a.utf8border=function(E,I){var F;for((I=I||E.length)>E.length&&(I=E.length),F=I-1;0<=F&&(192&E[F])==128;)F--;return F<0||F===0?I:F+w[E[F]]>I?F:I}},{"./common":41}],43:[function(o,l,a){l.exports=function(g,v,h,w){for(var y=65535&g|0,S=g>>>16&65535|0,E=0;h!==0;){for(h-=E=2e3<h?2e3:h;S=S+(y=y+v[w++]|0)|0,--E;);y%=65521,S%=65521}return y|S<<16|0}},{}],44:[function(o,l,a){l.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(o,l,a){var g=function(){for(var v,h=[],w=0;w<256;w++){v=w;for(var y=0;y<8;y++)v=1&v?3988292384^v>>>1:v>>>1;h[w]=v}return h}();l.exports=function(v,h,w,y){var S=g,E=y+w;v^=-1;for(var I=y;I<E;I++)v=v>>>8^S[255&(v^h[I])];return-1^v}},{}],46:[function(o,l,a){var g,v=o("../utils/common"),h=o("./trees"),w=o("./adler32"),y=o("./crc32"),S=o("./messages"),E=0,I=4,F=0,B=-2,j=-1,X=4,G=2,V=8,J=9,H=286,M=30,T=19,_=2*H+1,A=15,P=3,L=258,$=L+P+1,R=42,k=113,C=1,O=2,W=3,ne=4;function he(U,ve){return U.msg=S[ve],ve}function ue(U){return(U<<1)-(4<U?9:0)}function Ae(U){for(var ve=U.length;0<=--ve;)U[ve]=0}function pe(U){var ve=U.state,Se=ve.pending;Se>U.avail_out&&(Se=U.avail_out),Se!==0&&(v.arraySet(U.output,ve.pending_buf,ve.pending_out,Se,U.next_out),U.next_out+=Se,ve.pending_out+=Se,U.total_out+=Se,U.avail_out-=Se,ve.pending-=Se,ve.pending===0&&(ve.pending_out=0))}function te(U,ve){h._tr_flush_block(U,0<=U.block_start?U.block_start:-1,U.strstart-U.block_start,ve),U.block_start=U.strstart,pe(U.strm)}function Z(U,ve){U.pending_buf[U.pending++]=ve}function q(U,ve){U.pending_buf[U.pending++]=ve>>>8&255,U.pending_buf[U.pending++]=255&ve}function de(U,ve){var Se,ee,se=U.max_chain_length,me=U.strstart,Ee=U.prev_length,Ie=U.nice_match,Ce=U.strstart>U.w_size-$?U.strstart-(U.w_size-$):0,Fe=U.window,ze=U.w_mask,je=U.prev,ge=U.strstart+L,Me=Fe[me+Ee-1],Be=Fe[me+Ee];U.prev_length>=U.good_match&&(se>>=2),Ie>U.lookahead&&(Ie=U.lookahead);do if(Fe[(Se=ve)+Ee]===Be&&Fe[Se+Ee-1]===Me&&Fe[Se]===Fe[me]&&Fe[++Se]===Fe[me+1]){me+=2,Se++;do;while(Fe[++me]===Fe[++Se]&&Fe[++me]===Fe[++Se]&&Fe[++me]===Fe[++Se]&&Fe[++me]===Fe[++Se]&&Fe[++me]===Fe[++Se]&&Fe[++me]===Fe[++Se]&&Fe[++me]===Fe[++Se]&&Fe[++me]===Fe[++Se]&&me<ge);if(ee=L-(ge-me),me=ge-L,Ee<ee){if(U.match_start=ve,Ie<=(Ee=ee))break;Me=Fe[me+Ee-1],Be=Fe[me+Ee]}}while((ve=je[ve&ze])>Ce&&--se!=0);return Ee<=U.lookahead?Ee:U.lookahead}function ke(U){var ve,Se,ee,se,me,Ee,Ie,Ce,Fe,ze,je=U.w_size;do{if(se=U.window_size-U.lookahead-U.strstart,U.strstart>=je+(je-$)){for(v.arraySet(U.window,U.window,je,je,0),U.match_start-=je,U.strstart-=je,U.block_start-=je,ve=Se=U.hash_size;ee=U.head[--ve],U.head[ve]=je<=ee?ee-je:0,--Se;);for(ve=Se=je;ee=U.prev[--ve],U.prev[ve]=je<=ee?ee-je:0,--Se;);se+=je}if(U.strm.avail_in===0)break;if(Ee=U.strm,Ie=U.window,Ce=U.strstart+U.lookahead,Fe=se,ze=void 0,ze=Ee.avail_in,Fe<ze&&(ze=Fe),Se=ze===0?0:(Ee.avail_in-=ze,v.arraySet(Ie,Ee.input,Ee.next_in,ze,Ce),Ee.state.wrap===1?Ee.adler=w(Ee.adler,Ie,ze,Ce):Ee.state.wrap===2&&(Ee.adler=y(Ee.adler,Ie,ze,Ce)),Ee.next_in+=ze,Ee.total_in+=ze,ze),U.lookahead+=Se,U.lookahead+U.insert>=P)for(me=U.strstart-U.insert,U.ins_h=U.window[me],U.ins_h=(U.ins_h<<U.hash_shift^U.window[me+1])&U.hash_mask;U.insert&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[me+P-1])&U.hash_mask,U.prev[me&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=me,me++,U.insert--,!(U.lookahead+U.insert<P)););}while(U.lookahead<$&&U.strm.avail_in!==0)}function oe(U,ve){for(var Se,ee;;){if(U.lookahead<$){if(ke(U),U.lookahead<$&&ve===E)return C;if(U.lookahead===0)break}if(Se=0,U.lookahead>=P&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+P-1])&U.hash_mask,Se=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),Se!==0&&U.strstart-Se<=U.w_size-$&&(U.match_length=de(U,Se)),U.match_length>=P)if(ee=h._tr_tally(U,U.strstart-U.match_start,U.match_length-P),U.lookahead-=U.match_length,U.match_length<=U.max_lazy_match&&U.lookahead>=P){for(U.match_length--;U.strstart++,U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+P-1])&U.hash_mask,Se=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart,--U.match_length!=0;);U.strstart++}else U.strstart+=U.match_length,U.match_length=0,U.ins_h=U.window[U.strstart],U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+1])&U.hash_mask;else ee=h._tr_tally(U,0,U.window[U.strstart]),U.lookahead--,U.strstart++;if(ee&&(te(U,!1),U.strm.avail_out===0))return C}return U.insert=U.strstart<P-1?U.strstart:P-1,ve===I?(te(U,!0),U.strm.avail_out===0?W:ne):U.last_lit&&(te(U,!1),U.strm.avail_out===0)?C:O}function ie(U,ve){for(var Se,ee,se;;){if(U.lookahead<$){if(ke(U),U.lookahead<$&&ve===E)return C;if(U.lookahead===0)break}if(Se=0,U.lookahead>=P&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+P-1])&U.hash_mask,Se=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),U.prev_length=U.match_length,U.prev_match=U.match_start,U.match_length=P-1,Se!==0&&U.prev_length<U.max_lazy_match&&U.strstart-Se<=U.w_size-$&&(U.match_length=de(U,Se),U.match_length<=5&&(U.strategy===1||U.match_length===P&&4096<U.strstart-U.match_start)&&(U.match_length=P-1)),U.prev_length>=P&&U.match_length<=U.prev_length){for(se=U.strstart+U.lookahead-P,ee=h._tr_tally(U,U.strstart-1-U.prev_match,U.prev_length-P),U.lookahead-=U.prev_length-1,U.prev_length-=2;++U.strstart<=se&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+P-1])&U.hash_mask,Se=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),--U.prev_length!=0;);if(U.match_available=0,U.match_length=P-1,U.strstart++,ee&&(te(U,!1),U.strm.avail_out===0))return C}else if(U.match_available){if((ee=h._tr_tally(U,0,U.window[U.strstart-1]))&&te(U,!1),U.strstart++,U.lookahead--,U.strm.avail_out===0)return C}else U.match_available=1,U.strstart++,U.lookahead--}return U.match_available&&(ee=h._tr_tally(U,0,U.window[U.strstart-1]),U.match_available=0),U.insert=U.strstart<P-1?U.strstart:P-1,ve===I?(te(U,!0),U.strm.avail_out===0?W:ne):U.last_lit&&(te(U,!1),U.strm.avail_out===0)?C:O}function Q(U,ve,Se,ee,se){this.good_length=U,this.max_lazy=ve,this.nice_length=Se,this.max_chain=ee,this.func=se}function z(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=V,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new v.Buf16(2*_),this.dyn_dtree=new v.Buf16(2*(2*M+1)),this.bl_tree=new v.Buf16(2*(2*T+1)),Ae(this.dyn_ltree),Ae(this.dyn_dtree),Ae(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new v.Buf16(A+1),this.heap=new v.Buf16(2*H+1),Ae(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new v.Buf16(2*H+1),Ae(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(U){var ve;return U&&U.state?(U.total_in=U.total_out=0,U.data_type=G,(ve=U.state).pending=0,ve.pending_out=0,ve.wrap<0&&(ve.wrap=-ve.wrap),ve.status=ve.wrap?R:k,U.adler=ve.wrap===2?0:1,ve.last_flush=E,h._tr_init(ve),F):he(U,B)}function fe(U){var ve=Y(U);return ve===F&&function(Se){Se.window_size=2*Se.w_size,Ae(Se.head),Se.max_lazy_match=g[Se.level].max_lazy,Se.good_match=g[Se.level].good_length,Se.nice_match=g[Se.level].nice_length,Se.max_chain_length=g[Se.level].max_chain,Se.strstart=0,Se.block_start=0,Se.lookahead=0,Se.insert=0,Se.match_length=Se.prev_length=P-1,Se.match_available=0,Se.ins_h=0}(U.state),ve}function we(U,ve,Se,ee,se,me){if(!U)return B;var Ee=1;if(ve===j&&(ve=6),ee<0?(Ee=0,ee=-ee):15<ee&&(Ee=2,ee-=16),se<1||J<se||Se!==V||ee<8||15<ee||ve<0||9<ve||me<0||X<me)return he(U,B);ee===8&&(ee=9);var Ie=new z;return(U.state=Ie).strm=U,Ie.wrap=Ee,Ie.gzhead=null,Ie.w_bits=ee,Ie.w_size=1<<Ie.w_bits,Ie.w_mask=Ie.w_size-1,Ie.hash_bits=se+7,Ie.hash_size=1<<Ie.hash_bits,Ie.hash_mask=Ie.hash_size-1,Ie.hash_shift=~~((Ie.hash_bits+P-1)/P),Ie.window=new v.Buf8(2*Ie.w_size),Ie.head=new v.Buf16(Ie.hash_size),Ie.prev=new v.Buf16(Ie.w_size),Ie.lit_bufsize=1<<se+6,Ie.pending_buf_size=4*Ie.lit_bufsize,Ie.pending_buf=new v.Buf8(Ie.pending_buf_size),Ie.d_buf=1*Ie.lit_bufsize,Ie.l_buf=3*Ie.lit_bufsize,Ie.level=ve,Ie.strategy=me,Ie.method=Se,fe(U)}g=[new Q(0,0,0,0,function(U,ve){var Se=65535;for(Se>U.pending_buf_size-5&&(Se=U.pending_buf_size-5);;){if(U.lookahead<=1){if(ke(U),U.lookahead===0&&ve===E)return C;if(U.lookahead===0)break}U.strstart+=U.lookahead,U.lookahead=0;var ee=U.block_start+Se;if((U.strstart===0||U.strstart>=ee)&&(U.lookahead=U.strstart-ee,U.strstart=ee,te(U,!1),U.strm.avail_out===0)||U.strstart-U.block_start>=U.w_size-$&&(te(U,!1),U.strm.avail_out===0))return C}return U.insert=0,ve===I?(te(U,!0),U.strm.avail_out===0?W:ne):(U.strstart>U.block_start&&(te(U,!1),U.strm.avail_out),C)}),new Q(4,4,8,4,oe),new Q(4,5,16,8,oe),new Q(4,6,32,32,oe),new Q(4,4,16,16,ie),new Q(8,16,32,32,ie),new Q(8,16,128,128,ie),new Q(8,32,128,256,ie),new Q(32,128,258,1024,ie),new Q(32,258,258,4096,ie)],a.deflateInit=function(U,ve){return we(U,ve,V,15,8,0)},a.deflateInit2=we,a.deflateReset=fe,a.deflateResetKeep=Y,a.deflateSetHeader=function(U,ve){return U&&U.state?U.state.wrap!==2?B:(U.state.gzhead=ve,F):B},a.deflate=function(U,ve){var Se,ee,se,me;if(!U||!U.state||5<ve||ve<0)return U?he(U,B):B;if(ee=U.state,!U.output||!U.input&&U.avail_in!==0||ee.status===666&&ve!==I)return he(U,U.avail_out===0?-5:B);if(ee.strm=U,Se=ee.last_flush,ee.last_flush=ve,ee.status===R)if(ee.wrap===2)U.adler=0,Z(ee,31),Z(ee,139),Z(ee,8),ee.gzhead?(Z(ee,(ee.gzhead.text?1:0)+(ee.gzhead.hcrc?2:0)+(ee.gzhead.extra?4:0)+(ee.gzhead.name?8:0)+(ee.gzhead.comment?16:0)),Z(ee,255&ee.gzhead.time),Z(ee,ee.gzhead.time>>8&255),Z(ee,ee.gzhead.time>>16&255),Z(ee,ee.gzhead.time>>24&255),Z(ee,ee.level===9?2:2<=ee.strategy||ee.level<2?4:0),Z(ee,255&ee.gzhead.os),ee.gzhead.extra&&ee.gzhead.extra.length&&(Z(ee,255&ee.gzhead.extra.length),Z(ee,ee.gzhead.extra.length>>8&255)),ee.gzhead.hcrc&&(U.adler=y(U.adler,ee.pending_buf,ee.pending,0)),ee.gzindex=0,ee.status=69):(Z(ee,0),Z(ee,0),Z(ee,0),Z(ee,0),Z(ee,0),Z(ee,ee.level===9?2:2<=ee.strategy||ee.level<2?4:0),Z(ee,3),ee.status=k);else{var Ee=V+(ee.w_bits-8<<4)<<8;Ee|=(2<=ee.strategy||ee.level<2?0:ee.level<6?1:ee.level===6?2:3)<<6,ee.strstart!==0&&(Ee|=32),Ee+=31-Ee%31,ee.status=k,q(ee,Ee),ee.strstart!==0&&(q(ee,U.adler>>>16),q(ee,65535&U.adler)),U.adler=1}if(ee.status===69)if(ee.gzhead.extra){for(se=ee.pending;ee.gzindex<(65535&ee.gzhead.extra.length)&&(ee.pending!==ee.pending_buf_size||(ee.gzhead.hcrc&&ee.pending>se&&(U.adler=y(U.adler,ee.pending_buf,ee.pending-se,se)),pe(U),se=ee.pending,ee.pending!==ee.pending_buf_size));)Z(ee,255&ee.gzhead.extra[ee.gzindex]),ee.gzindex++;ee.gzhead.hcrc&&ee.pending>se&&(U.adler=y(U.adler,ee.pending_buf,ee.pending-se,se)),ee.gzindex===ee.gzhead.extra.length&&(ee.gzindex=0,ee.status=73)}else ee.status=73;if(ee.status===73)if(ee.gzhead.name){se=ee.pending;do{if(ee.pending===ee.pending_buf_size&&(ee.gzhead.hcrc&&ee.pending>se&&(U.adler=y(U.adler,ee.pending_buf,ee.pending-se,se)),pe(U),se=ee.pending,ee.pending===ee.pending_buf_size)){me=1;break}me=ee.gzindex<ee.gzhead.name.length?255&ee.gzhead.name.charCodeAt(ee.gzindex++):0,Z(ee,me)}while(me!==0);ee.gzhead.hcrc&&ee.pending>se&&(U.adler=y(U.adler,ee.pending_buf,ee.pending-se,se)),me===0&&(ee.gzindex=0,ee.status=91)}else ee.status=91;if(ee.status===91)if(ee.gzhead.comment){se=ee.pending;do{if(ee.pending===ee.pending_buf_size&&(ee.gzhead.hcrc&&ee.pending>se&&(U.adler=y(U.adler,ee.pending_buf,ee.pending-se,se)),pe(U),se=ee.pending,ee.pending===ee.pending_buf_size)){me=1;break}me=ee.gzindex<ee.gzhead.comment.length?255&ee.gzhead.comment.charCodeAt(ee.gzindex++):0,Z(ee,me)}while(me!==0);ee.gzhead.hcrc&&ee.pending>se&&(U.adler=y(U.adler,ee.pending_buf,ee.pending-se,se)),me===0&&(ee.status=103)}else ee.status=103;if(ee.status===103&&(ee.gzhead.hcrc?(ee.pending+2>ee.pending_buf_size&&pe(U),ee.pending+2<=ee.pending_buf_size&&(Z(ee,255&U.adler),Z(ee,U.adler>>8&255),U.adler=0,ee.status=k)):ee.status=k),ee.pending!==0){if(pe(U),U.avail_out===0)return ee.last_flush=-1,F}else if(U.avail_in===0&&ue(ve)<=ue(Se)&&ve!==I)return he(U,-5);if(ee.status===666&&U.avail_in!==0)return he(U,-5);if(U.avail_in!==0||ee.lookahead!==0||ve!==E&&ee.status!==666){var Ie=ee.strategy===2?function(Ce,Fe){for(var ze;;){if(Ce.lookahead===0&&(ke(Ce),Ce.lookahead===0)){if(Fe===E)return C;break}if(Ce.match_length=0,ze=h._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++,ze&&(te(Ce,!1),Ce.strm.avail_out===0))return C}return Ce.insert=0,Fe===I?(te(Ce,!0),Ce.strm.avail_out===0?W:ne):Ce.last_lit&&(te(Ce,!1),Ce.strm.avail_out===0)?C:O}(ee,ve):ee.strategy===3?function(Ce,Fe){for(var ze,je,ge,Me,Be=Ce.window;;){if(Ce.lookahead<=L){if(ke(Ce),Ce.lookahead<=L&&Fe===E)return C;if(Ce.lookahead===0)break}if(Ce.match_length=0,Ce.lookahead>=P&&0<Ce.strstart&&(je=Be[ge=Ce.strstart-1])===Be[++ge]&&je===Be[++ge]&&je===Be[++ge]){Me=Ce.strstart+L;do;while(je===Be[++ge]&&je===Be[++ge]&&je===Be[++ge]&&je===Be[++ge]&&je===Be[++ge]&&je===Be[++ge]&&je===Be[++ge]&&je===Be[++ge]&&ge<Me);Ce.match_length=L-(Me-ge),Ce.match_length>Ce.lookahead&&(Ce.match_length=Ce.lookahead)}if(Ce.match_length>=P?(ze=h._tr_tally(Ce,1,Ce.match_length-P),Ce.lookahead-=Ce.match_length,Ce.strstart+=Ce.match_length,Ce.match_length=0):(ze=h._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++),ze&&(te(Ce,!1),Ce.strm.avail_out===0))return C}return Ce.insert=0,Fe===I?(te(Ce,!0),Ce.strm.avail_out===0?W:ne):Ce.last_lit&&(te(Ce,!1),Ce.strm.avail_out===0)?C:O}(ee,ve):g[ee.level].func(ee,ve);if(Ie!==W&&Ie!==ne||(ee.status=666),Ie===C||Ie===W)return U.avail_out===0&&(ee.last_flush=-1),F;if(Ie===O&&(ve===1?h._tr_align(ee):ve!==5&&(h._tr_stored_block(ee,0,0,!1),ve===3&&(Ae(ee.head),ee.lookahead===0&&(ee.strstart=0,ee.block_start=0,ee.insert=0))),pe(U),U.avail_out===0))return ee.last_flush=-1,F}return ve!==I?F:ee.wrap<=0?1:(ee.wrap===2?(Z(ee,255&U.adler),Z(ee,U.adler>>8&255),Z(ee,U.adler>>16&255),Z(ee,U.adler>>24&255),Z(ee,255&U.total_in),Z(ee,U.total_in>>8&255),Z(ee,U.total_in>>16&255),Z(ee,U.total_in>>24&255)):(q(ee,U.adler>>>16),q(ee,65535&U.adler)),pe(U),0<ee.wrap&&(ee.wrap=-ee.wrap),ee.pending!==0?F:1)},a.deflateEnd=function(U){var ve;return U&&U.state?(ve=U.state.status)!==R&&ve!==69&&ve!==73&&ve!==91&&ve!==103&&ve!==k&&ve!==666?he(U,B):(U.state=null,ve===k?he(U,-3):F):B},a.deflateSetDictionary=function(U,ve){var Se,ee,se,me,Ee,Ie,Ce,Fe,ze=ve.length;if(!U||!U.state||(me=(Se=U.state).wrap)===2||me===1&&Se.status!==R||Se.lookahead)return B;for(me===1&&(U.adler=w(U.adler,ve,ze,0)),Se.wrap=0,ze>=Se.w_size&&(me===0&&(Ae(Se.head),Se.strstart=0,Se.block_start=0,Se.insert=0),Fe=new v.Buf8(Se.w_size),v.arraySet(Fe,ve,ze-Se.w_size,Se.w_size,0),ve=Fe,ze=Se.w_size),Ee=U.avail_in,Ie=U.next_in,Ce=U.input,U.avail_in=ze,U.next_in=0,U.input=ve,ke(Se);Se.lookahead>=P;){for(ee=Se.strstart,se=Se.lookahead-(P-1);Se.ins_h=(Se.ins_h<<Se.hash_shift^Se.window[ee+P-1])&Se.hash_mask,Se.prev[ee&Se.w_mask]=Se.head[Se.ins_h],Se.head[Se.ins_h]=ee,ee++,--se;);Se.strstart=ee,Se.lookahead=P-1,ke(Se)}return Se.strstart+=Se.lookahead,Se.block_start=Se.strstart,Se.insert=Se.lookahead,Se.lookahead=0,Se.match_length=Se.prev_length=P-1,Se.match_available=0,U.next_in=Ie,U.input=Ce,U.avail_in=Ee,Se.wrap=me,F},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(o,l,a){l.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(o,l,a){l.exports=function(g,v){var h,w,y,S,E,I,F,B,j,X,G,V,J,H,M,T,_,A,P,L,$,R,k,C,O;h=g.state,w=g.next_in,C=g.input,y=w+(g.avail_in-5),S=g.next_out,O=g.output,E=S-(v-g.avail_out),I=S+(g.avail_out-257),F=h.dmax,B=h.wsize,j=h.whave,X=h.wnext,G=h.window,V=h.hold,J=h.bits,H=h.lencode,M=h.distcode,T=(1<<h.lenbits)-1,_=(1<<h.distbits)-1;e:do{J<15&&(V+=C[w++]<<J,J+=8,V+=C[w++]<<J,J+=8),A=H[V&T];t:for(;;){if(V>>>=P=A>>>24,J-=P,(P=A>>>16&255)===0)O[S++]=65535&A;else{if(!(16&P)){if(!(64&P)){A=H[(65535&A)+(V&(1<<P)-1)];continue t}if(32&P){h.mode=12;break e}g.msg="invalid literal/length code",h.mode=30;break e}L=65535&A,(P&=15)&&(J<P&&(V+=C[w++]<<J,J+=8),L+=V&(1<<P)-1,V>>>=P,J-=P),J<15&&(V+=C[w++]<<J,J+=8,V+=C[w++]<<J,J+=8),A=M[V&_];r:for(;;){if(V>>>=P=A>>>24,J-=P,!(16&(P=A>>>16&255))){if(!(64&P)){A=M[(65535&A)+(V&(1<<P)-1)];continue r}g.msg="invalid distance code",h.mode=30;break e}if($=65535&A,J<(P&=15)&&(V+=C[w++]<<J,(J+=8)<P&&(V+=C[w++]<<J,J+=8)),F<($+=V&(1<<P)-1)){g.msg="invalid distance too far back",h.mode=30;break e}if(V>>>=P,J-=P,(P=S-E)<$){if(j<(P=$-P)&&h.sane){g.msg="invalid distance too far back",h.mode=30;break e}if(k=G,(R=0)===X){if(R+=B-P,P<L){for(L-=P;O[S++]=G[R++],--P;);R=S-$,k=O}}else if(X<P){if(R+=B+X-P,(P-=X)<L){for(L-=P;O[S++]=G[R++],--P;);if(R=0,X<L){for(L-=P=X;O[S++]=G[R++],--P;);R=S-$,k=O}}}else if(R+=X-P,P<L){for(L-=P;O[S++]=G[R++],--P;);R=S-$,k=O}for(;2<L;)O[S++]=k[R++],O[S++]=k[R++],O[S++]=k[R++],L-=3;L&&(O[S++]=k[R++],1<L&&(O[S++]=k[R++]))}else{for(R=S-$;O[S++]=O[R++],O[S++]=O[R++],O[S++]=O[R++],2<(L-=3););L&&(O[S++]=O[R++],1<L&&(O[S++]=O[R++]))}break}}break}}while(w<y&&S<I);w-=L=J>>3,V&=(1<<(J-=L<<3))-1,g.next_in=w,g.next_out=S,g.avail_in=w<y?y-w+5:5-(w-y),g.avail_out=S<I?I-S+257:257-(S-I),h.hold=V,h.bits=J}},{}],49:[function(o,l,a){var g=o("../utils/common"),v=o("./adler32"),h=o("./crc32"),w=o("./inffast"),y=o("./inftrees"),S=1,E=2,I=0,F=-2,B=1,j=852,X=592;function G(R){return(R>>>24&255)+(R>>>8&65280)+((65280&R)<<8)+((255&R)<<24)}function V(){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 g.Buf16(320),this.work=new g.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function J(R){var k;return R&&R.state?(k=R.state,R.total_in=R.total_out=k.total=0,R.msg="",k.wrap&&(R.adler=1&k.wrap),k.mode=B,k.last=0,k.havedict=0,k.dmax=32768,k.head=null,k.hold=0,k.bits=0,k.lencode=k.lendyn=new g.Buf32(j),k.distcode=k.distdyn=new g.Buf32(X),k.sane=1,k.back=-1,I):F}function H(R){var k;return R&&R.state?((k=R.state).wsize=0,k.whave=0,k.wnext=0,J(R)):F}function M(R,k){var C,O;return R&&R.state?(O=R.state,k<0?(C=0,k=-k):(C=1+(k>>4),k<48&&(k&=15)),k&&(k<8||15<k)?F:(O.window!==null&&O.wbits!==k&&(O.window=null),O.wrap=C,O.wbits=k,H(R))):F}function T(R,k){var C,O;return R?(O=new V,(R.state=O).window=null,(C=M(R,k))!==I&&(R.state=null),C):F}var _,A,P=!0;function L(R){if(P){var k;for(_=new g.Buf32(512),A=new g.Buf32(32),k=0;k<144;)R.lens[k++]=8;for(;k<256;)R.lens[k++]=9;for(;k<280;)R.lens[k++]=7;for(;k<288;)R.lens[k++]=8;for(y(S,R.lens,0,288,_,0,R.work,{bits:9}),k=0;k<32;)R.lens[k++]=5;y(E,R.lens,0,32,A,0,R.work,{bits:5}),P=!1}R.lencode=_,R.lenbits=9,R.distcode=A,R.distbits=5}function $(R,k,C,O){var W,ne=R.state;return ne.window===null&&(ne.wsize=1<<ne.wbits,ne.wnext=0,ne.whave=0,ne.window=new g.Buf8(ne.wsize)),O>=ne.wsize?(g.arraySet(ne.window,k,C-ne.wsize,ne.wsize,0),ne.wnext=0,ne.whave=ne.wsize):(O<(W=ne.wsize-ne.wnext)&&(W=O),g.arraySet(ne.window,k,C-O,W,ne.wnext),(O-=W)?(g.arraySet(ne.window,k,C-O,O,0),ne.wnext=O,ne.whave=ne.wsize):(ne.wnext+=W,ne.wnext===ne.wsize&&(ne.wnext=0),ne.whave<ne.wsize&&(ne.whave+=W))),0}a.inflateReset=H,a.inflateReset2=M,a.inflateResetKeep=J,a.inflateInit=function(R){return T(R,15)},a.inflateInit2=T,a.inflate=function(R,k){var C,O,W,ne,he,ue,Ae,pe,te,Z,q,de,ke,oe,ie,Q,z,Y,fe,we,U,ve,Se,ee,se=0,me=new g.Buf8(4),Ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!R||!R.state||!R.output||!R.input&&R.avail_in!==0)return F;(C=R.state).mode===12&&(C.mode=13),he=R.next_out,W=R.output,Ae=R.avail_out,ne=R.next_in,O=R.input,ue=R.avail_in,pe=C.hold,te=C.bits,Z=ue,q=Ae,ve=I;e:for(;;)switch(C.mode){case B:if(C.wrap===0){C.mode=13;break}for(;te<16;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}if(2&C.wrap&&pe===35615){me[C.check=0]=255&pe,me[1]=pe>>>8&255,C.check=h(C.check,me,2,0),te=pe=0,C.mode=2;break}if(C.flags=0,C.head&&(C.head.done=!1),!(1&C.wrap)||(((255&pe)<<8)+(pe>>8))%31){R.msg="incorrect header check",C.mode=30;break}if((15&pe)!=8){R.msg="unknown compression method",C.mode=30;break}if(te-=4,U=8+(15&(pe>>>=4)),C.wbits===0)C.wbits=U;else if(U>C.wbits){R.msg="invalid window size",C.mode=30;break}C.dmax=1<<U,R.adler=C.check=1,C.mode=512&pe?10:12,te=pe=0;break;case 2:for(;te<16;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}if(C.flags=pe,(255&C.flags)!=8){R.msg="unknown compression method",C.mode=30;break}if(57344&C.flags){R.msg="unknown header flags set",C.mode=30;break}C.head&&(C.head.text=pe>>8&1),512&C.flags&&(me[0]=255&pe,me[1]=pe>>>8&255,C.check=h(C.check,me,2,0)),te=pe=0,C.mode=3;case 3:for(;te<32;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}C.head&&(C.head.time=pe),512&C.flags&&(me[0]=255&pe,me[1]=pe>>>8&255,me[2]=pe>>>16&255,me[3]=pe>>>24&255,C.check=h(C.check,me,4,0)),te=pe=0,C.mode=4;case 4:for(;te<16;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}C.head&&(C.head.xflags=255&pe,C.head.os=pe>>8),512&C.flags&&(me[0]=255&pe,me[1]=pe>>>8&255,C.check=h(C.check,me,2,0)),te=pe=0,C.mode=5;case 5:if(1024&C.flags){for(;te<16;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}C.length=pe,C.head&&(C.head.extra_len=pe),512&C.flags&&(me[0]=255&pe,me[1]=pe>>>8&255,C.check=h(C.check,me,2,0)),te=pe=0}else C.head&&(C.head.extra=null);C.mode=6;case 6:if(1024&C.flags&&(ue<(de=C.length)&&(de=ue),de&&(C.head&&(U=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Array(C.head.extra_len)),g.arraySet(C.head.extra,O,ne,de,U)),512&C.flags&&(C.check=h(C.check,O,de,ne)),ue-=de,ne+=de,C.length-=de),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&C.flags){if(ue===0)break e;for(de=0;U=O[ne+de++],C.head&&U&&C.length<65536&&(C.head.name+=String.fromCharCode(U)),U&&de<ue;);if(512&C.flags&&(C.check=h(C.check,O,de,ne)),ue-=de,ne+=de,U)break e}else C.head&&(C.head.name=null);C.length=0,C.mode=8;case 8:if(4096&C.flags){if(ue===0)break e;for(de=0;U=O[ne+de++],C.head&&U&&C.length<65536&&(C.head.comment+=String.fromCharCode(U)),U&&de<ue;);if(512&C.flags&&(C.check=h(C.check,O,de,ne)),ue-=de,ne+=de,U)break e}else C.head&&(C.head.comment=null);C.mode=9;case 9:if(512&C.flags){for(;te<16;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}if(pe!==(65535&C.check)){R.msg="header crc mismatch",C.mode=30;break}te=pe=0}C.head&&(C.head.hcrc=C.flags>>9&1,C.head.done=!0),R.adler=C.check=0,C.mode=12;break;case 10:for(;te<32;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}R.adler=C.check=G(pe),te=pe=0,C.mode=11;case 11:if(C.havedict===0)return R.next_out=he,R.avail_out=Ae,R.next_in=ne,R.avail_in=ue,C.hold=pe,C.bits=te,2;R.adler=C.check=1,C.mode=12;case 12:if(k===5||k===6)break e;case 13:if(C.last){pe>>>=7&te,te-=7&te,C.mode=27;break}for(;te<3;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}switch(C.last=1&pe,te-=1,3&(pe>>>=1)){case 0:C.mode=14;break;case 1:if(L(C),C.mode=20,k!==6)break;pe>>>=2,te-=2;break e;case 2:C.mode=17;break;case 3:R.msg="invalid block type",C.mode=30}pe>>>=2,te-=2;break;case 14:for(pe>>>=7&te,te-=7&te;te<32;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}if((65535&pe)!=(pe>>>16^65535)){R.msg="invalid stored block lengths",C.mode=30;break}if(C.length=65535&pe,te=pe=0,C.mode=15,k===6)break e;case 15:C.mode=16;case 16:if(de=C.length){if(ue<de&&(de=ue),Ae<de&&(de=Ae),de===0)break e;g.arraySet(W,O,ne,de,he),ue-=de,ne+=de,Ae-=de,he+=de,C.length-=de;break}C.mode=12;break;case 17:for(;te<14;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}if(C.nlen=257+(31&pe),pe>>>=5,te-=5,C.ndist=1+(31&pe),pe>>>=5,te-=5,C.ncode=4+(15&pe),pe>>>=4,te-=4,286<C.nlen||30<C.ndist){R.msg="too many length or distance symbols",C.mode=30;break}C.have=0,C.mode=18;case 18:for(;C.have<C.ncode;){for(;te<3;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}C.lens[Ee[C.have++]]=7&pe,pe>>>=3,te-=3}for(;C.have<19;)C.lens[Ee[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,Se={bits:C.lenbits},ve=y(0,C.lens,0,19,C.lencode,0,C.work,Se),C.lenbits=Se.bits,ve){R.msg="invalid code lengths set",C.mode=30;break}C.have=0,C.mode=19;case 19:for(;C.have<C.nlen+C.ndist;){for(;Q=(se=C.lencode[pe&(1<<C.lenbits)-1])>>>16&255,z=65535&se,!((ie=se>>>24)<=te);){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}if(z<16)pe>>>=ie,te-=ie,C.lens[C.have++]=z;else{if(z===16){for(ee=ie+2;te<ee;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}if(pe>>>=ie,te-=ie,C.have===0){R.msg="invalid bit length repeat",C.mode=30;break}U=C.lens[C.have-1],de=3+(3&pe),pe>>>=2,te-=2}else if(z===17){for(ee=ie+3;te<ee;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}te-=ie,U=0,de=3+(7&(pe>>>=ie)),pe>>>=3,te-=3}else{for(ee=ie+7;te<ee;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}te-=ie,U=0,de=11+(127&(pe>>>=ie)),pe>>>=7,te-=7}if(C.have+de>C.nlen+C.ndist){R.msg="invalid bit length repeat",C.mode=30;break}for(;de--;)C.lens[C.have++]=U}}if(C.mode===30)break;if(C.lens[256]===0){R.msg="invalid code -- missing end-of-block",C.mode=30;break}if(C.lenbits=9,Se={bits:C.lenbits},ve=y(S,C.lens,0,C.nlen,C.lencode,0,C.work,Se),C.lenbits=Se.bits,ve){R.msg="invalid literal/lengths set",C.mode=30;break}if(C.distbits=6,C.distcode=C.distdyn,Se={bits:C.distbits},ve=y(E,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,Se),C.distbits=Se.bits,ve){R.msg="invalid distances set",C.mode=30;break}if(C.mode=20,k===6)break e;case 20:C.mode=21;case 21:if(6<=ue&&258<=Ae){R.next_out=he,R.avail_out=Ae,R.next_in=ne,R.avail_in=ue,C.hold=pe,C.bits=te,w(R,q),he=R.next_out,W=R.output,Ae=R.avail_out,ne=R.next_in,O=R.input,ue=R.avail_in,pe=C.hold,te=C.bits,C.mode===12&&(C.back=-1);break}for(C.back=0;Q=(se=C.lencode[pe&(1<<C.lenbits)-1])>>>16&255,z=65535&se,!((ie=se>>>24)<=te);){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}if(Q&&!(240&Q)){for(Y=ie,fe=Q,we=z;Q=(se=C.lencode[we+((pe&(1<<Y+fe)-1)>>Y)])>>>16&255,z=65535&se,!(Y+(ie=se>>>24)<=te);){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}pe>>>=Y,te-=Y,C.back+=Y}if(pe>>>=ie,te-=ie,C.back+=ie,C.length=z,Q===0){C.mode=26;break}if(32&Q){C.back=-1,C.mode=12;break}if(64&Q){R.msg="invalid literal/length code",C.mode=30;break}C.extra=15&Q,C.mode=22;case 22:if(C.extra){for(ee=C.extra;te<ee;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}C.length+=pe&(1<<C.extra)-1,pe>>>=C.extra,te-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;Q=(se=C.distcode[pe&(1<<C.distbits)-1])>>>16&255,z=65535&se,!((ie=se>>>24)<=te);){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}if(!(240&Q)){for(Y=ie,fe=Q,we=z;Q=(se=C.distcode[we+((pe&(1<<Y+fe)-1)>>Y)])>>>16&255,z=65535&se,!(Y+(ie=se>>>24)<=te);){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}pe>>>=Y,te-=Y,C.back+=Y}if(pe>>>=ie,te-=ie,C.back+=ie,64&Q){R.msg="invalid distance code",C.mode=30;break}C.offset=z,C.extra=15&Q,C.mode=24;case 24:if(C.extra){for(ee=C.extra;te<ee;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}C.offset+=pe&(1<<C.extra)-1,pe>>>=C.extra,te-=C.extra,C.back+=C.extra}if(C.offset>C.dmax){R.msg="invalid distance too far back",C.mode=30;break}C.mode=25;case 25:if(Ae===0)break e;if(de=q-Ae,C.offset>de){if((de=C.offset-de)>C.whave&&C.sane){R.msg="invalid distance too far back",C.mode=30;break}ke=de>C.wnext?(de-=C.wnext,C.wsize-de):C.wnext-de,de>C.length&&(de=C.length),oe=C.window}else oe=W,ke=he-C.offset,de=C.length;for(Ae<de&&(de=Ae),Ae-=de,C.length-=de;W[he++]=oe[ke++],--de;);C.length===0&&(C.mode=21);break;case 26:if(Ae===0)break e;W[he++]=C.length,Ae--,C.mode=21;break;case 27:if(C.wrap){for(;te<32;){if(ue===0)break e;ue--,pe|=O[ne++]<<te,te+=8}if(q-=Ae,R.total_out+=q,C.total+=q,q&&(R.adler=C.check=C.flags?h(C.check,W,q,he-q):v(C.check,W,q,he-q)),q=Ae,(C.flags?pe:G(pe))!==C.check){R.msg="incorrect data check",C.mode=30;break}te=pe=0}C.mode=28;case 28:if(C.wrap&&C.flags){for(;te<32;){if(ue===0)break e;ue--,pe+=O[ne++]<<te,te+=8}if(pe!==(4294967295&C.total)){R.msg="incorrect length check",C.mode=30;break}te=pe=0}C.mode=29;case 29:ve=1;break e;case 30:ve=-3;break e;case 31:return-4;case 32:default:return F}return R.next_out=he,R.avail_out=Ae,R.next_in=ne,R.avail_in=ue,C.hold=pe,C.bits=te,(C.wsize||q!==R.avail_out&&C.mode<30&&(C.mode<27||k!==4))&&$(R,R.output,R.next_out,q-R.avail_out)?(C.mode=31,-4):(Z-=R.avail_in,q-=R.avail_out,R.total_in+=Z,R.total_out+=q,C.total+=q,C.wrap&&q&&(R.adler=C.check=C.flags?h(C.check,W,q,R.next_out-q):v(C.check,W,q,R.next_out-q)),R.data_type=C.bits+(C.last?64:0)+(C.mode===12?128:0)+(C.mode===20||C.mode===15?256:0),(Z==0&&q===0||k===4)&&ve===I&&(ve=-5),ve)},a.inflateEnd=function(R){if(!R||!R.state)return F;var k=R.state;return k.window&&(k.window=null),R.state=null,I},a.inflateGetHeader=function(R,k){var C;return R&&R.state&&2&(C=R.state).wrap?((C.head=k).done=!1,I):F},a.inflateSetDictionary=function(R,k){var C,O=k.length;return R&&R.state?(C=R.state).wrap!==0&&C.mode!==11?F:C.mode===11&&v(1,k,O,0)!==C.check?-3:$(R,k,O,O)?(C.mode=31,-4):(C.havedict=1,I):F},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(o,l,a){var g=o("../utils/common"),v=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],w=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],y=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];l.exports=function(S,E,I,F,B,j,X,G){var V,J,H,M,T,_,A,P,L,$=G.bits,R=0,k=0,C=0,O=0,W=0,ne=0,he=0,ue=0,Ae=0,pe=0,te=null,Z=0,q=new g.Buf16(16),de=new g.Buf16(16),ke=null,oe=0;for(R=0;R<=15;R++)q[R]=0;for(k=0;k<F;k++)q[E[I+k]]++;for(W=$,O=15;1<=O&&q[O]===0;O--);if(O<W&&(W=O),O===0)return B[j++]=20971520,B[j++]=20971520,G.bits=1,0;for(C=1;C<O&&q[C]===0;C++);for(W<C&&(W=C),R=ue=1;R<=15;R++)if(ue<<=1,(ue-=q[R])<0)return-1;if(0<ue&&(S===0||O!==1))return-1;for(de[1]=0,R=1;R<15;R++)de[R+1]=de[R]+q[R];for(k=0;k<F;k++)E[I+k]!==0&&(X[de[E[I+k]]++]=k);if(_=S===0?(te=ke=X,19):S===1?(te=v,Z-=257,ke=h,oe-=257,256):(te=w,ke=y,-1),R=C,T=j,he=k=pe=0,H=-1,M=(Ae=1<<(ne=W))-1,S===1&&852<Ae||S===2&&592<Ae)return 1;for(;;){for(A=R-he,L=X[k]<_?(P=0,X[k]):X[k]>_?(P=ke[oe+X[k]],te[Z+X[k]]):(P=96,0),V=1<<R-he,C=J=1<<ne;B[T+(pe>>he)+(J-=V)]=A<<24|P<<16|L|0,J!==0;);for(V=1<<R-1;pe&V;)V>>=1;if(V!==0?(pe&=V-1,pe+=V):pe=0,k++,--q[R]==0){if(R===O)break;R=E[I+X[k]]}if(W<R&&(pe&M)!==H){for(he===0&&(he=W),T+=C,ue=1<<(ne=R-he);ne+he<O&&!((ue-=q[ne+he])<=0);)ne++,ue<<=1;if(Ae+=1<<ne,S===1&&852<Ae||S===2&&592<Ae)return 1;B[H=pe&M]=W<<24|ne<<16|T-j|0}}return pe!==0&&(B[T+pe]=R-he<<24|64<<16|0),G.bits=W,0}},{"../utils/common":41}],51:[function(o,l,a){l.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(o,l,a){var g=o("../utils/common"),v=0,h=1;function w(se){for(var me=se.length;0<=--me;)se[me]=0}var y=0,S=29,E=256,I=E+1+S,F=30,B=19,j=2*I+1,X=15,G=16,V=7,J=256,H=16,M=17,T=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=new Array(2*(I+2));w($);var R=new Array(2*F);w(R);var k=new Array(512);w(k);var C=new Array(256);w(C);var O=new Array(S);w(O);var W,ne,he,ue=new Array(F);function Ae(se,me,Ee,Ie,Ce){this.static_tree=se,this.extra_bits=me,this.extra_base=Ee,this.elems=Ie,this.max_length=Ce,this.has_stree=se&&se.length}function pe(se,me){this.dyn_tree=se,this.max_code=0,this.stat_desc=me}function te(se){return se<256?k[se]:k[256+(se>>>7)]}function Z(se,me){se.pending_buf[se.pending++]=255&me,se.pending_buf[se.pending++]=me>>>8&255}function q(se,me,Ee){se.bi_valid>G-Ee?(se.bi_buf|=me<<se.bi_valid&65535,Z(se,se.bi_buf),se.bi_buf=me>>G-se.bi_valid,se.bi_valid+=Ee-G):(se.bi_buf|=me<<se.bi_valid&65535,se.bi_valid+=Ee)}function de(se,me,Ee){q(se,Ee[2*me],Ee[2*me+1])}function ke(se,me){for(var Ee=0;Ee|=1&se,se>>>=1,Ee<<=1,0<--me;);return Ee>>>1}function oe(se,me,Ee){var Ie,Ce,Fe=new Array(X+1),ze=0;for(Ie=1;Ie<=X;Ie++)Fe[Ie]=ze=ze+Ee[Ie-1]<<1;for(Ce=0;Ce<=me;Ce++){var je=se[2*Ce+1];je!==0&&(se[2*Ce]=ke(Fe[je]++,je))}}function ie(se){var me;for(me=0;me<I;me++)se.dyn_ltree[2*me]=0;for(me=0;me<F;me++)se.dyn_dtree[2*me]=0;for(me=0;me<B;me++)se.bl_tree[2*me]=0;se.dyn_ltree[2*J]=1,se.opt_len=se.static_len=0,se.last_lit=se.matches=0}function Q(se){8<se.bi_valid?Z(se,se.bi_buf):0<se.bi_valid&&(se.pending_buf[se.pending++]=se.bi_buf),se.bi_buf=0,se.bi_valid=0}function z(se,me,Ee,Ie){var Ce=2*me,Fe=2*Ee;return se[Ce]<se[Fe]||se[Ce]===se[Fe]&&Ie[me]<=Ie[Ee]}function Y(se,me,Ee){for(var Ie=se.heap[Ee],Ce=Ee<<1;Ce<=se.heap_len&&(Ce<se.heap_len&&z(me,se.heap[Ce+1],se.heap[Ce],se.depth)&&Ce++,!z(me,Ie,se.heap[Ce],se.depth));)se.heap[Ee]=se.heap[Ce],Ee=Ce,Ce<<=1;se.heap[Ee]=Ie}function fe(se,me,Ee){var Ie,Ce,Fe,ze,je=0;if(se.last_lit!==0)for(;Ie=se.pending_buf[se.d_buf+2*je]<<8|se.pending_buf[se.d_buf+2*je+1],Ce=se.pending_buf[se.l_buf+je],je++,Ie===0?de(se,Ce,me):(de(se,(Fe=C[Ce])+E+1,me),(ze=_[Fe])!==0&&q(se,Ce-=O[Fe],ze),de(se,Fe=te(--Ie),Ee),(ze=A[Fe])!==0&&q(se,Ie-=ue[Fe],ze)),je<se.last_lit;);de(se,J,me)}function we(se,me){var Ee,Ie,Ce,Fe=me.dyn_tree,ze=me.stat_desc.static_tree,je=me.stat_desc.has_stree,ge=me.stat_desc.elems,Me=-1;for(se.heap_len=0,se.heap_max=j,Ee=0;Ee<ge;Ee++)Fe[2*Ee]!==0?(se.heap[++se.heap_len]=Me=Ee,se.depth[Ee]=0):Fe[2*Ee+1]=0;for(;se.heap_len<2;)Fe[2*(Ce=se.heap[++se.heap_len]=Me<2?++Me:0)]=1,se.depth[Ce]=0,se.opt_len--,je&&(se.static_len-=ze[2*Ce+1]);for(me.max_code=Me,Ee=se.heap_len>>1;1<=Ee;Ee--)Y(se,Fe,Ee);for(Ce=ge;Ee=se.heap[1],se.heap[1]=se.heap[se.heap_len--],Y(se,Fe,1),Ie=se.heap[1],se.heap[--se.heap_max]=Ee,se.heap[--se.heap_max]=Ie,Fe[2*Ce]=Fe[2*Ee]+Fe[2*Ie],se.depth[Ce]=(se.depth[Ee]>=se.depth[Ie]?se.depth[Ee]:se.depth[Ie])+1,Fe[2*Ee+1]=Fe[2*Ie+1]=Ce,se.heap[1]=Ce++,Y(se,Fe,1),2<=se.heap_len;);se.heap[--se.heap_max]=se.heap[1],function(Be,Xe){var ot,ct,st,rt,bt,Qe,et=Xe.dyn_tree,_t=Xe.max_code,ft=Xe.stat_desc.static_tree,jt=Xe.stat_desc.has_stree,It=Xe.stat_desc.extra_bits,ht=Xe.stat_desc.extra_base,Dt=Xe.stat_desc.max_length,Ut=0;for(rt=0;rt<=X;rt++)Be.bl_count[rt]=0;for(et[2*Be.heap[Be.heap_max]+1]=0,ot=Be.heap_max+1;ot<j;ot++)Dt<(rt=et[2*et[2*(ct=Be.heap[ot])+1]+1]+1)&&(rt=Dt,Ut++),et[2*ct+1]=rt,_t<ct||(Be.bl_count[rt]++,bt=0,ht<=ct&&(bt=It[ct-ht]),Qe=et[2*ct],Be.opt_len+=Qe*(rt+bt),jt&&(Be.static_len+=Qe*(ft[2*ct+1]+bt)));if(Ut!==0){do{for(rt=Dt-1;Be.bl_count[rt]===0;)rt--;Be.bl_count[rt]--,Be.bl_count[rt+1]+=2,Be.bl_count[Dt]--,Ut-=2}while(0<Ut);for(rt=Dt;rt!==0;rt--)for(ct=Be.bl_count[rt];ct!==0;)_t<(st=Be.heap[--ot])||(et[2*st+1]!==rt&&(Be.opt_len+=(rt-et[2*st+1])*et[2*st],et[2*st+1]=rt),ct--)}}(se,me),oe(Fe,Me,se.bl_count)}function U(se,me,Ee){var Ie,Ce,Fe=-1,ze=me[1],je=0,ge=7,Me=4;for(ze===0&&(ge=138,Me=3),me[2*(Ee+1)+1]=65535,Ie=0;Ie<=Ee;Ie++)Ce=ze,ze=me[2*(Ie+1)+1],++je<ge&&Ce===ze||(je<Me?se.bl_tree[2*Ce]+=je:Ce!==0?(Ce!==Fe&&se.bl_tree[2*Ce]++,se.bl_tree[2*H]++):je<=10?se.bl_tree[2*M]++:se.bl_tree[2*T]++,Fe=Ce,Me=(je=0)===ze?(ge=138,3):Ce===ze?(ge=6,3):(ge=7,4))}function ve(se,me,Ee){var Ie,Ce,Fe=-1,ze=me[1],je=0,ge=7,Me=4;for(ze===0&&(ge=138,Me=3),Ie=0;Ie<=Ee;Ie++)if(Ce=ze,ze=me[2*(Ie+1)+1],!(++je<ge&&Ce===ze)){if(je<Me)for(;de(se,Ce,se.bl_tree),--je!=0;);else Ce!==0?(Ce!==Fe&&(de(se,Ce,se.bl_tree),je--),de(se,H,se.bl_tree),q(se,je-3,2)):je<=10?(de(se,M,se.bl_tree),q(se,je-3,3)):(de(se,T,se.bl_tree),q(se,je-11,7));Fe=Ce,Me=(je=0)===ze?(ge=138,3):Ce===ze?(ge=6,3):(ge=7,4)}}w(ue);var Se=!1;function ee(se,me,Ee,Ie){q(se,(y<<1)+(Ie?1:0),3),function(Ce,Fe,ze,je){Q(Ce),je&&(Z(Ce,ze),Z(Ce,~ze)),g.arraySet(Ce.pending_buf,Ce.window,Fe,ze,Ce.pending),Ce.pending+=ze}(se,me,Ee,!0)}a._tr_init=function(se){Se||(function(){var me,Ee,Ie,Ce,Fe,ze=new Array(X+1);for(Ce=Ie=0;Ce<S-1;Ce++)for(O[Ce]=Ie,me=0;me<1<<_[Ce];me++)C[Ie++]=Ce;for(C[Ie-1]=Ce,Ce=Fe=0;Ce<16;Ce++)for(ue[Ce]=Fe,me=0;me<1<<A[Ce];me++)k[Fe++]=Ce;for(Fe>>=7;Ce<F;Ce++)for(ue[Ce]=Fe<<7,me=0;me<1<<A[Ce]-7;me++)k[256+Fe++]=Ce;for(Ee=0;Ee<=X;Ee++)ze[Ee]=0;for(me=0;me<=143;)$[2*me+1]=8,me++,ze[8]++;for(;me<=255;)$[2*me+1]=9,me++,ze[9]++;for(;me<=279;)$[2*me+1]=7,me++,ze[7]++;for(;me<=287;)$[2*me+1]=8,me++,ze[8]++;for(oe($,I+1,ze),me=0;me<F;me++)R[2*me+1]=5,R[2*me]=ke(me,5);W=new Ae($,_,E+1,I,X),ne=new Ae(R,A,0,F,X),he=new Ae(new Array(0),P,0,B,V)}(),Se=!0),se.l_desc=new pe(se.dyn_ltree,W),se.d_desc=new pe(se.dyn_dtree,ne),se.bl_desc=new pe(se.bl_tree,he),se.bi_buf=0,se.bi_valid=0,ie(se)},a._tr_stored_block=ee,a._tr_flush_block=function(se,me,Ee,Ie){var Ce,Fe,ze=0;0<se.level?(se.strm.data_type===2&&(se.strm.data_type=function(je){var ge,Me=4093624447;for(ge=0;ge<=31;ge++,Me>>>=1)if(1&Me&&je.dyn_ltree[2*ge]!==0)return v;if(je.dyn_ltree[18]!==0||je.dyn_ltree[20]!==0||je.dyn_ltree[26]!==0)return h;for(ge=32;ge<E;ge++)if(je.dyn_ltree[2*ge]!==0)return h;return v}(se)),we(se,se.l_desc),we(se,se.d_desc),ze=function(je){var ge;for(U(je,je.dyn_ltree,je.l_desc.max_code),U(je,je.dyn_dtree,je.d_desc.max_code),we(je,je.bl_desc),ge=B-1;3<=ge&&je.bl_tree[2*L[ge]+1]===0;ge--);return je.opt_len+=3*(ge+1)+5+5+4,ge}(se),Ce=se.opt_len+3+7>>>3,(Fe=se.static_len+3+7>>>3)<=Ce&&(Ce=Fe)):Ce=Fe=Ee+5,Ee+4<=Ce&&me!==-1?ee(se,me,Ee,Ie):se.strategy===4||Fe===Ce?(q(se,2+(Ie?1:0),3),fe(se,$,R)):(q(se,4+(Ie?1:0),3),function(je,ge,Me,Be){var Xe;for(q(je,ge-257,5),q(je,Me-1,5),q(je,Be-4,4),Xe=0;Xe<Be;Xe++)q(je,je.bl_tree[2*L[Xe]+1],3);ve(je,je.dyn_ltree,ge-1),ve(je,je.dyn_dtree,Me-1)}(se,se.l_desc.max_code+1,se.d_desc.max_code+1,ze+1),fe(se,se.dyn_ltree,se.dyn_dtree)),ie(se),Ie&&Q(se)},a._tr_tally=function(se,me,Ee){return se.pending_buf[se.d_buf+2*se.last_lit]=me>>>8&255,se.pending_buf[se.d_buf+2*se.last_lit+1]=255&me,se.pending_buf[se.l_buf+se.last_lit]=255&Ee,se.last_lit++,me===0?se.dyn_ltree[2*Ee]++:(se.matches++,me--,se.dyn_ltree[2*(C[Ee]+E+1)]++,se.dyn_dtree[2*te(me)]++),se.last_lit===se.lit_bufsize-1},a._tr_align=function(se){q(se,2,3),de(se,J,$),function(me){me.bi_valid===16?(Z(me,me.bi_buf),me.bi_buf=0,me.bi_valid=0):8<=me.bi_valid&&(me.pending_buf[me.pending++]=255&me.bi_buf,me.bi_buf>>=8,me.bi_valid-=8)}(se)}},{"../utils/common":41}],53:[function(o,l,a){l.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(o,l,a){(function(g){(function(v,h){if(!v.setImmediate){var w,y,S,E,I=1,F={},B=!1,j=v.document,X=Object.getPrototypeOf&&Object.getPrototypeOf(v);X=X&&X.setTimeout?X:v,w={}.toString.call(v.process)==="[object process]"?function(H){f.nextTick(function(){V(H)})}:function(){if(v.postMessage&&!v.importScripts){var H=!0,M=v.onmessage;return v.onmessage=function(){H=!1},v.postMessage("","*"),v.onmessage=M,H}}()?(E="setImmediate$"+Math.random()+"$",v.addEventListener?v.addEventListener("message",J,!1):v.attachEvent("onmessage",J),function(H){v.postMessage(E+H,"*")}):v.MessageChannel?((S=new MessageChannel).port1.onmessage=function(H){V(H.data)},function(H){S.port2.postMessage(H)}):j&&"onreadystatechange"in j.createElement("script")?(y=j.documentElement,function(H){var M=j.createElement("script");M.onreadystatechange=function(){V(H),M.onreadystatechange=null,y.removeChild(M),M=null},y.appendChild(M)}):function(H){setTimeout(V,0,H)},X.setImmediate=function(H){typeof H!="function"&&(H=new Function(""+H));for(var M=new Array(arguments.length-1),T=0;T<M.length;T++)M[T]=arguments[T+1];var _={callback:H,args:M};return F[I]=_,w(I),I++},X.clearImmediate=G}function G(H){delete F[H]}function V(H){if(B)setTimeout(V,0,H);else{var M=F[H];if(M){B=!0;try{(function(T){var _=T.callback,A=T.args;switch(A.length){case 0:_();break;case 1:_(A[0]);break;case 2:_(A[0],A[1]);break;case 3:_(A[0],A[1],A[2]);break;default:_.apply(h,A)}})(M)}finally{G(H),B=!1}}}}function J(H){H.source===v&&typeof H.data=="string"&&H.data.indexOf(E)===0&&V(+H.data.slice(E.length))}})(typeof self>"u"?g===void 0?this:g:self)}).call(this,typeof c<"u"?c:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,e("_process"),typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,d,m){(function(f){(function(){var c=1/0,u="[object Symbol]",s=/[\\^$.*+?()[\]{}|]/g,t=RegExp(s.source),n=typeof f=="object"&&f&&f.Object===Object&&f,r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")(),o=Object.prototype,l=o.toString,a=i.Symbol,g=a?a.prototype:void 0,v=g?g.toString:void 0;function h(I){if(typeof I=="string")return I;if(y(I))return v?v.call(I):"";var F=I+"";return F=="0"&&1/I==-c?"-0":F}function w(I){return!!I&&typeof I=="object"}function y(I){return typeof I=="symbol"||w(I)&&l.call(I)==u}function S(I){return I==null?"":h(I)}function E(I){return I=S(I),I&&t.test(I)?I.replace(s,"\\$&"):I}d.exports=E}).call(this)}).call(this,typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(e,d,m){(function(f){(function(){var c=200,u="Expected a function",s="__lodash_hash_undefined__",t=1,n=2,r=1/0,i=9007199254740991,o="[object Arguments]",l="[object Array]",a="[object Boolean]",g="[object Date]",v="[object Error]",h="[object Function]",w="[object GeneratorFunction]",y="[object Map]",S="[object Number]",E="[object Object]",I="[object Promise]",F="[object RegExp]",B="[object Set]",j="[object String]",X="[object Symbol]",G="[object WeakMap]",V="[object ArrayBuffer]",J="[object DataView]",H="[object Float32Array]",M="[object Float64Array]",T="[object Int8Array]",_="[object Int16Array]",A="[object Int32Array]",P="[object Uint8Array]",L="[object Uint8ClampedArray]",$="[object Uint16Array]",R="[object Uint32Array]",k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/,O=/^\./,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,he=/\\(\\)?/g,ue=/^\[object .+?Constructor\]$/,Ae=/^(?:0|[1-9]\d*)$/,pe={};pe[H]=pe[M]=pe[T]=pe[_]=pe[A]=pe[P]=pe[L]=pe[$]=pe[R]=!0,pe[o]=pe[l]=pe[V]=pe[a]=pe[J]=pe[g]=pe[v]=pe[h]=pe[y]=pe[S]=pe[E]=pe[F]=pe[B]=pe[j]=pe[G]=!1;var te=typeof f=="object"&&f&&f.Object===Object&&f,Z=typeof self=="object"&&self&&self.Object===Object&&self,q=te||Z||Function("return this")(),de=typeof m=="object"&&m&&!m.nodeType&&m,ke=de&&typeof d=="object"&&d&&!d.nodeType&&d,oe=ke&&ke.exports===de,ie=oe&&te.process,Q=function(){try{return ie&&ie.binding("util")}catch{}}(),z=Q&&Q.isTypedArray;function Y(ae,xe,De,Ge){for(var dt=-1,nt=ae?ae.length:0;++dt<nt;){var Ot=ae[dt];xe(Ge,Ot,De(Ot),ae)}return Ge}function fe(ae,xe){for(var De=-1,Ge=ae?ae.length:0;++De<Ge;)if(xe(ae[De],De,ae))return!0;return!1}function we(ae){return function(xe){return xe==null?void 0:xe[ae]}}function U(ae,xe){for(var De=-1,Ge=Array(ae);++De<ae;)Ge[De]=xe(De);return Ge}function ve(ae){return function(xe){return ae(xe)}}function Se(ae,xe){return ae==null?void 0:ae[xe]}function ee(ae){var xe=!1;if(ae!=null&&typeof ae.toString!="function")try{xe=!!(ae+"")}catch{}return xe}function se(ae){var xe=-1,De=Array(ae.size);return ae.forEach(function(Ge,dt){De[++xe]=[dt,Ge]}),De}function me(ae,xe){return function(De){return ae(xe(De))}}function Ee(ae){var xe=-1,De=Array(ae.size);return ae.forEach(function(Ge){De[++xe]=Ge}),De}var Ie=Array.prototype,Ce=Function.prototype,Fe=Object.prototype,ze=q["__core-js_shared__"],je=function(){var ae=/[^.]+$/.exec(ze&&ze.keys&&ze.keys.IE_PROTO||"");return ae?"Symbol(src)_1."+ae:""}(),ge=Ce.toString,Me=Fe.hasOwnProperty,Be=Fe.toString,Xe=RegExp("^"+ge.call(Me).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=q.Symbol,ct=q.Uint8Array,st=Fe.propertyIsEnumerable,rt=Ie.splice,bt=me(Object.keys,Object),Qe=gn(q,"DataView"),et=gn(q,"Map"),_t=gn(q,"Promise"),ft=gn(q,"Set"),jt=gn(q,"WeakMap"),It=gn(Object,"create"),ht=We(Qe),Dt=We(et),Ut=We(_t),wt=We(ft),er=We(jt),Kt=ot?ot.prototype:void 0,pt=Kt?Kt.valueOf:void 0,Gt=Kt?Kt.toString:void 0;function kt(ae){var xe=-1,De=ae?ae.length:0;for(this.clear();++xe<De;){var Ge=ae[xe];this.set(Ge[0],Ge[1])}}function xt(){this.__data__=It?It(null):{}}function $t(ae){return this.has(ae)&&delete this.__data__[ae]}function Qt(ae){var xe=this.__data__;if(It){var De=xe[ae];return De===s?void 0:De}return Me.call(xe,ae)?xe[ae]:void 0}function mt(ae){var xe=this.__data__;return It?xe[ae]!==void 0:Me.call(xe,ae)}function qt(ae,xe){var De=this.__data__;return De[ae]=It&&xe===void 0?s:xe,this}kt.prototype.clear=xt,kt.prototype.delete=$t,kt.prototype.get=Qt,kt.prototype.has=mt,kt.prototype.set=qt;function St(ae){var xe=-1,De=ae?ae.length:0;for(this.clear();++xe<De;){var Ge=ae[xe];this.set(Ge[0],Ge[1])}}function Tt(){this.__data__=[]}function be(ae){var xe=this.__data__,De=Kr(xe,ae);if(De<0)return!1;var Ge=xe.length-1;return De==Ge?xe.pop():rt.call(xe,De,1),!0}function Ne(ae){var xe=this.__data__,De=Kr(xe,ae);return De<0?void 0:xe[De][1]}function Le(ae){return Kr(this.__data__,ae)>-1}function Je(ae,xe){var De=this.__data__,Ge=Kr(De,ae);return Ge<0?De.push([ae,xe]):De[Ge][1]=xe,this}St.prototype.clear=Tt,St.prototype.delete=be,St.prototype.get=Ne,St.prototype.has=Le,St.prototype.set=Je;function at(ae){var xe=-1,De=ae?ae.length:0;for(this.clear();++xe<De;){var Ge=ae[xe];this.set(Ge[0],Ge[1])}}function Mt(){this.__data__={hash:new kt,map:new(et||St),string:new kt}}function rr(ae){return an(this,ae).delete(ae)}function vr(ae){return an(this,ae).get(ae)}function Dr(ae){return an(this,ae).has(ae)}function yr(ae,xe){return an(this,ae).set(ae,xe),this}at.prototype.clear=Mt,at.prototype.delete=rr,at.prototype.get=vr,at.prototype.has=Dr,at.prototype.set=yr;function lr(ae){var xe=-1,De=ae?ae.length:0;for(this.__data__=new at;++xe<De;)this.add(ae[xe])}function rn(ae){return this.__data__.set(ae,s),this}function nn(ae){return this.__data__.has(ae)}lr.prototype.add=lr.prototype.push=rn,lr.prototype.has=nn;function ar(ae){this.__data__=new St(ae)}function Xr(){this.__data__=new St}function Wr(ae){return this.__data__.delete(ae)}function Vr(ae){return this.__data__.get(ae)}function En(ae){return this.__data__.has(ae)}function Vn(ae,xe){var De=this.__data__;if(De instanceof St){var Ge=De.__data__;if(!et||Ge.length<c-1)return Ge.push([ae,xe]),this;De=this.__data__=new at(Ge)}return De.set(ae,xe),this}ar.prototype.clear=Xr,ar.prototype.delete=Wr,ar.prototype.get=Vr,ar.prototype.has=En,ar.prototype.set=Vn;function ji(ae,xe){var De=nr(ae)||Jt(ae)?U(ae.length,String):[],Ge=De.length,dt=!!Ge;for(var nt in ae)(xe||Me.call(ae,nt))&&!(dt&&(nt=="length"||Ci(nt,Ge)))&&De.push(nt);return De}function Kr(ae,xe){for(var De=ae.length;De--;)if(Et(ae[De][0],xe))return De;return-1}function $i(ae,xe,De,Ge){return Kn(ae,function(dt,nt,Ot){xe(Ge,dt,De(dt),Ot)}),Ge}var Kn=Vi(Si),_i=ws();function Si(ae,xe){return ae&&_i(ae,xe,An)}function fi(ae,xe){xe=Zt(xe,ae)?[xe]:Wi(xe);for(var De=0,Ge=xe.length;ae!=null&&De<Ge;)ae=ae[Re(xe[De++])];return De&&De==Ge?ae:void 0}function bs(ae){return Be.call(ae)}function Hi(ae,xe){return ae!=null&&xe in Object(ae)}function Gn(ae,xe,De,Ge,dt){return ae===xe?!0:ae==null||xe==null||!pr(ae)&&!Sr(xe)?ae!==ae&&xe!==xe:li(ae,xe,Gn,De,Ge,dt)}function li(ae,xe,De,Ge,dt,nt){var Ot=nr(ae),or=nr(xe),ur=l,Er=l;Ot||(ur=bn(ae),ur=ur==o?E:ur),or||(Er=bn(xe),Er=Er==o?E:Er);var Or=ur==E&&!ee(ae),kr=Er==E&&!ee(xe),dr=ur==Er;if(dr&&!Or)return nt||(nt=new ar),Ot||on(ae)?mn(ae,xe,De,Ge,dt,nt):Ki(ae,xe,ur,De,Ge,dt,nt);if(!(dt&n)){var Gr=Or&&Me.call(ae,"__wrapped__"),$r=kr&&Me.call(xe,"__wrapped__");if(Gr||$r){var kn=Gr?ae.value():ae,fn=$r?xe.value():xe;return nt||(nt=new ar),De(kn,fn,Ge,dt,nt)}}return dr?(nt||(nt=new ar),xs(ae,xe,De,Ge,dt,nt)):!1}function Bn(ae,xe,De,Ge){var dt=De.length,nt=dt,Ot=!Ge;if(ae==null)return!nt;for(ae=Object(ae);dt--;){var or=De[dt];if(Ot&&or[2]?or[1]!==ae[or[0]]:!(or[0]in ae))return!1}for(;++dt<nt;){or=De[dt];var ur=or[0],Er=ae[ur],Or=or[1];if(Ot&&or[2]){if(Er===void 0&&!(ur in ae))return!1}else{var kr=new ar;if(Ge)var dr=Ge(Er,Or,ur,ae,xe,kr);if(!(dr===void 0?Gn(Or,Er,Ge,t|n,kr):dr))return!1}}return!0}function zi(ae){if(!pr(ae)||Yi(ae))return!1;var xe=Tr(ae)||ee(ae)?Xe:ue;return xe.test(We(ae))}function Ei(ae){return Sr(ae)&&Ir(ae.length)&&!!pe[Be.call(ae)]}function ci(ae){return typeof ae=="function"?ae:ae==null?Yn:typeof ae=="object"?nr(ae)?Xi(ae[0],ae[1]):Ui(ae):Ln(ae)}function Cn(ae){if(!Ss(ae))return bt(ae);var xe=[];for(var De in Object(ae))Me.call(ae,De)&&De!="constructor"&&xe.push(De);return xe}function Ui(ae){var xe=_s(ae);return xe.length==1&&xe[0][2]?Ji(xe[0][0],xe[0][1]):function(De){return De===ae||Bn(De,ae,xe)}}function Xi(ae,xe){return Zt(ae)&&Zi(xe)?Ji(Re(ae),xe):function(De){var Ge=Tn(De,ae);return Ge===void 0&&Ge===xe?Pr(De,ae):Gn(xe,Ge,void 0,t|n)}}function sn(ae){return function(xe){return fi(xe,ae)}}function vs(ae){if(typeof ae=="string")return ae;if(Ar(ae))return Gt?Gt.call(ae):"";var xe=ae+"";return xe=="0"&&1/ae==-r?"-0":xe}function Wi(ae){return nr(ae)?ae:ye(ae)}function ys(ae,xe){return function(De,Ge){var dt=nr(De)?Y:$i,nt=xe?xe():{};return dt(De,ae,ci(Ge),nt)}}function Vi(ae,xe){return function(De,Ge){if(De==null)return De;if(!cr(De))return ae(De,Ge);for(var dt=De.length,nt=xe?dt:-1,Ot=Object(De);(xe?nt--:++nt<dt)&&Ge(Ot[nt],nt,Ot)!==!1;);return De}}function ws(ae){return function(xe,De,Ge){for(var dt=-1,nt=Object(xe),Ot=Ge(xe),or=Ot.length;or--;){var ur=Ot[ae?or:++dt];if(De(nt[ur],ur,nt)===!1)break}return xe}}function mn(ae,xe,De,Ge,dt,nt){var Ot=dt&n,or=ae.length,ur=xe.length;if(or!=ur&&!(Ot&&ur>or))return!1;var Er=nt.get(ae);if(Er&&nt.get(xe))return Er==xe;var Or=-1,kr=!0,dr=dt&t?new lr:void 0;for(nt.set(ae,xe),nt.set(xe,ae);++Or<or;){var Gr=ae[Or],$r=xe[Or];if(Ge)var kn=Ot?Ge($r,Gr,Or,xe,ae,nt):Ge(Gr,$r,Or,ae,xe,nt);if(kn!==void 0){if(kn)continue;kr=!1;break}if(dr){if(!fe(xe,function(fn,Mn){if(!dr.has(Mn)&&(Gr===fn||De(Gr,fn,Ge,dt,nt)))return dr.add(Mn)})){kr=!1;break}}else if(!(Gr===$r||De(Gr,$r,Ge,dt,nt))){kr=!1;break}}return nt.delete(ae),nt.delete(xe),kr}function Ki(ae,xe,De,Ge,dt,nt,Ot){switch(De){case J:if(ae.byteLength!=xe.byteLength||ae.byteOffset!=xe.byteOffset)return!1;ae=ae.buffer,xe=xe.buffer;case V:return!(ae.byteLength!=xe.byteLength||!Ge(new ct(ae),new ct(xe)));case a:case g:case S:return Et(+ae,+xe);case v:return ae.name==xe.name&&ae.message==xe.message;case F:case j:return ae==xe+"";case y:var or=se;case B:var ur=nt&n;if(or||(or=Ee),ae.size!=xe.size&&!ur)return!1;var Er=Ot.get(ae);if(Er)return Er==xe;nt|=t,Ot.set(ae,xe);var Or=mn(or(ae),or(xe),Ge,dt,nt,Ot);return Ot.delete(ae),Or;case X:if(pt)return pt.call(ae)==pt.call(xe)}return!1}function xs(ae,xe,De,Ge,dt,nt){var Ot=dt&n,or=An(ae),ur=or.length,Er=An(xe),Or=Er.length;if(ur!=Or&&!Ot)return!1;for(var kr=ur;kr--;){var dr=or[kr];if(!(Ot?dr in xe:Me.call(xe,dr)))return!1}var Gr=nt.get(ae);if(Gr&&nt.get(xe))return Gr==xe;var $r=!0;nt.set(ae,xe),nt.set(xe,ae);for(var kn=Ot;++kr<ur;){dr=or[kr];var fn=ae[dr],Mn=xe[dr];if(Ge)var Es=Ot?Ge(Mn,fn,dr,xe,ae,nt):Ge(fn,Mn,dr,ae,xe,nt);if(!(Es===void 0?fn===Mn||De(fn,Mn,Ge,dt,nt):Es)){$r=!1;break}kn||(kn=dr=="constructor")}if($r&&!kn){var Qi=ae.constructor,hi=xe.constructor;Qi!=hi&&"constructor"in ae&&"constructor"in xe&&!(typeof Qi=="function"&&Qi instanceof Qi&&typeof hi=="function"&&hi instanceof hi)&&($r=!1)}return nt.delete(ae),nt.delete(xe),$r}function an(ae,xe){var De=ae.__data__;return Yt(xe)?De[typeof xe=="string"?"string":"hash"]:De.map}function _s(ae){for(var xe=An(ae),De=xe.length;De--;){var Ge=xe[De],dt=ae[Ge];xe[De]=[Ge,dt,Zi(dt)]}return xe}function gn(ae,xe){var De=Se(ae,xe);return zi(De)?De:void 0}var bn=bs;(Qe&&bn(new Qe(new ArrayBuffer(1)))!=J||et&&bn(new et)!=y||_t&&bn(_t.resolve())!=I||ft&&bn(new ft)!=B||jt&&bn(new jt)!=G)&&(bn=function(ae){var xe=Be.call(ae),De=xe==E?ae.constructor:void 0,Ge=De?We(De):void 0;if(Ge)switch(Ge){case ht:return J;case Dt:return y;case Ut:return I;case wt:return B;case er:return G}return xe});function Gi(ae,xe,De){xe=Zt(xe,ae)?[xe]:Wi(xe);for(var Ge,dt=-1,Ot=xe.length;++dt<Ot;){var nt=Re(xe[dt]);if(!(Ge=ae!=null&&De(ae,nt)))break;ae=ae[nt]}if(Ge)return Ge;var Ot=ae?ae.length:0;return!!Ot&&Ir(Ot)&&Ci(nt,Ot)&&(nr(ae)||Jt(ae))}function Ci(ae,xe){return xe=xe??i,!!xe&&(typeof ae=="number"||Ae.test(ae))&&ae>-1&&ae%1==0&&ae<xe}function Zt(ae,xe){if(nr(ae))return!1;var De=typeof ae;return De=="number"||De=="symbol"||De=="boolean"||ae==null||Ar(ae)?!0:C.test(ae)||!k.test(ae)||xe!=null&&ae in Object(xe)}function Yt(ae){var xe=typeof ae;return xe=="string"||xe=="number"||xe=="symbol"||xe=="boolean"?ae!=="__proto__":ae===null}function Yi(ae){return!!je&&je in ae}function Ss(ae){var xe=ae&&ae.constructor,De=typeof xe=="function"&&xe.prototype||Fe;return ae===De}function Zi(ae){return ae===ae&&!pr(ae)}function Ji(ae,xe){return function(De){return De==null?!1:De[ae]===xe&&(xe!==void 0||ae in Object(De))}}var ye=Ct(function(ae){ae=hr(ae);var xe=[];return O.test(ae)&&xe.push(""),ae.replace(W,function(De,Ge,dt,nt){xe.push(dt?nt.replace(he,"$1"):Ge||De)}),xe});function Re(ae){if(typeof ae=="string"||Ar(ae))return ae;var xe=ae+"";return xe=="0"&&1/ae==-r?"-0":xe}function We(ae){if(ae!=null){try{return ge.call(ae)}catch{}try{return ae+""}catch{}}return""}var tt=ys(function(ae,xe,De){Me.call(ae,De)?ae[De].push(xe):ae[De]=[xe]});function Ct(ae,xe){if(typeof ae!="function"||xe&&typeof xe!="function")throw new TypeError(u);var De=function(){var Ge=arguments,dt=xe?xe.apply(this,Ge):Ge[0],nt=De.cache;if(nt.has(dt))return nt.get(dt);var Ot=ae.apply(this,Ge);return De.cache=nt.set(dt,Ot),Ot};return De.cache=new(Ct.Cache||at),De}Ct.Cache=at;function Et(ae,xe){return ae===xe||ae!==ae&&xe!==xe}function Jt(ae){return Ht(ae)&&Me.call(ae,"callee")&&(!st.call(ae,"callee")||Be.call(ae)==o)}var nr=Array.isArray;function cr(ae){return ae!=null&&Ir(ae.length)&&!Tr(ae)}function Ht(ae){return Sr(ae)&&cr(ae)}function Tr(ae){var xe=pr(ae)?Be.call(ae):"";return xe==h||xe==w}function Ir(ae){return typeof ae=="number"&&ae>-1&&ae%1==0&&ae<=i}function pr(ae){var xe=typeof ae;return!!ae&&(xe=="object"||xe=="function")}function Sr(ae){return!!ae&&typeof ae=="object"}function Ar(ae){return typeof ae=="symbol"||Sr(ae)&&Be.call(ae)==X}var on=z?ve(z):Ei;function hr(ae){return ae==null?"":vs(ae)}function Tn(ae,xe,De){var Ge=ae==null?void 0:fi(ae,xe);return Ge===void 0?De:Ge}function Pr(ae,xe){return ae!=null&&Gi(ae,xe,Hi)}function An(ae){return cr(ae)?ji(ae):Cn(ae)}function Yn(ae){return ae}function Ln(ae){return Zt(ae)?we(Re(ae)):sn(ae)}d.exports=tt}).call(this)}).call(this,typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(e,d,m){var f="[object Boolean]",c=Object.prototype,u=c.toString;function s(n){return n===!0||n===!1||t(n)&&u.call(n)==f}function t(n){return!!n&&typeof n=="object"}d.exports=s},{}],445:[function(e,d,m){(function(f){(function(){var c=200,u="__lodash_hash_undefined__",s=1,t=2,n=9007199254740991,r="[object Arguments]",i="[object Array]",o="[object AsyncFunction]",l="[object Boolean]",a="[object Date]",g="[object Error]",v="[object Function]",h="[object GeneratorFunction]",w="[object Map]",y="[object Number]",S="[object Null]",E="[object Object]",I="[object Promise]",F="[object Proxy]",B="[object RegExp]",j="[object Set]",X="[object String]",G="[object Symbol]",V="[object Undefined]",J="[object WeakMap]",H="[object ArrayBuffer]",M="[object DataView]",T="[object Float32Array]",_="[object Float64Array]",A="[object Int8Array]",P="[object Int16Array]",L="[object Int32Array]",$="[object Uint8Array]",R="[object Uint8ClampedArray]",k="[object Uint16Array]",C="[object Uint32Array]",O=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,ne=/^(?:0|[1-9]\d*)$/,he={};he[T]=he[_]=he[A]=he[P]=he[L]=he[$]=he[R]=he[k]=he[C]=!0,he[r]=he[i]=he[H]=he[l]=he[M]=he[a]=he[g]=he[v]=he[w]=he[y]=he[E]=he[B]=he[j]=he[X]=he[J]=!1;var ue=typeof f=="object"&&f&&f.Object===Object&&f,Ae=typeof self=="object"&&self&&self.Object===Object&&self,pe=ue||Ae||Function("return this")(),te=typeof m=="object"&&m&&!m.nodeType&&m,Z=te&&typeof d=="object"&&d&&!d.nodeType&&d,q=Z&&Z.exports===te,de=q&&ue.process,ke=function(){try{return de&&de.binding&&de.binding("util")}catch{}}(),oe=ke&&ke.isTypedArray;function ie(ye,Re){for(var We=-1,tt=ye==null?0:ye.length,Ct=0,Et=[];++We<tt;){var Jt=ye[We];Re(Jt,We,ye)&&(Et[Ct++]=Jt)}return Et}function Q(ye,Re){for(var We=-1,tt=Re.length,Ct=ye.length;++We<tt;)ye[Ct+We]=Re[We];return ye}function z(ye,Re){for(var We=-1,tt=ye==null?0:ye.length;++We<tt;)if(Re(ye[We],We,ye))return!0;return!1}function Y(ye,Re){for(var We=-1,tt=Array(ye);++We<ye;)tt[We]=Re(We);return tt}function fe(ye){return function(Re){return ye(Re)}}function we(ye,Re){return ye.has(Re)}function U(ye,Re){return ye==null?void 0:ye[Re]}function ve(ye){var Re=-1,We=Array(ye.size);return ye.forEach(function(tt,Ct){We[++Re]=[Ct,tt]}),We}function Se(ye,Re){return function(We){return ye(Re(We))}}function ee(ye){var Re=-1,We=Array(ye.size);return ye.forEach(function(tt){We[++Re]=tt}),We}var se=Array.prototype,me=Function.prototype,Ee=Object.prototype,Ie=pe["__core-js_shared__"],Ce=me.toString,Fe=Ee.hasOwnProperty,ze=function(){var ye=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return ye?"Symbol(src)_1."+ye:""}(),je=Ee.toString,ge=RegExp("^"+Ce.call(Fe).replace(O,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=q?pe.Buffer:void 0,Be=pe.Symbol,Xe=pe.Uint8Array,ot=Ee.propertyIsEnumerable,ct=se.splice,st=Be?Be.toStringTag:void 0,rt=Object.getOwnPropertySymbols,bt=Me?Me.isBuffer:void 0,Qe=Se(Object.keys,Object),et=Cn(pe,"DataView"),_t=Cn(pe,"Map"),ft=Cn(pe,"Promise"),jt=Cn(pe,"Set"),It=Cn(pe,"WeakMap"),ht=Cn(Object,"create"),Dt=mn(et),Ut=mn(_t),wt=mn(ft),er=mn(jt),Kt=mn(It),pt=Be?Be.prototype:void 0,Gt=pt?pt.valueOf:void 0;function kt(ye){var Re=-1,We=ye==null?0:ye.length;for(this.clear();++Re<We;){var tt=ye[Re];this.set(tt[0],tt[1])}}function xt(){this.__data__=ht?ht(null):{},this.size=0}function $t(ye){var Re=this.has(ye)&&delete this.__data__[ye];return this.size-=Re?1:0,Re}function Qt(ye){var Re=this.__data__;if(ht){var We=Re[ye];return We===u?void 0:We}return Fe.call(Re,ye)?Re[ye]:void 0}function mt(ye){var Re=this.__data__;return ht?Re[ye]!==void 0:Fe.call(Re,ye)}function qt(ye,Re){var We=this.__data__;return this.size+=this.has(ye)?0:1,We[ye]=ht&&Re===void 0?u:Re,this}kt.prototype.clear=xt,kt.prototype.delete=$t,kt.prototype.get=Qt,kt.prototype.has=mt,kt.prototype.set=qt;function St(ye){var Re=-1,We=ye==null?0:ye.length;for(this.clear();++Re<We;){var tt=ye[Re];this.set(tt[0],tt[1])}}function Tt(){this.__data__=[],this.size=0}function be(ye){var Re=this.__data__,We=Kr(Re,ye);if(We<0)return!1;var tt=Re.length-1;return We==tt?Re.pop():ct.call(Re,We,1),--this.size,!0}function Ne(ye){var Re=this.__data__,We=Kr(Re,ye);return We<0?void 0:Re[We][1]}function Le(ye){return Kr(this.__data__,ye)>-1}function Je(ye,Re){var We=this.__data__,tt=Kr(We,ye);return tt<0?(++this.size,We.push([ye,Re])):We[tt][1]=Re,this}St.prototype.clear=Tt,St.prototype.delete=be,St.prototype.get=Ne,St.prototype.has=Le,St.prototype.set=Je;function at(ye){var Re=-1,We=ye==null?0:ye.length;for(this.clear();++Re<We;){var tt=ye[Re];this.set(tt[0],tt[1])}}function Mt(){this.size=0,this.__data__={hash:new kt,map:new(_t||St),string:new kt}}function rr(ye){var Re=ci(this,ye).delete(ye);return this.size-=Re?1:0,Re}function vr(ye){return ci(this,ye).get(ye)}function Dr(ye){return ci(this,ye).has(ye)}function yr(ye,Re){var We=ci(this,ye),tt=We.size;return We.set(ye,Re),this.size+=We.size==tt?0:1,this}at.prototype.clear=Mt,at.prototype.delete=rr,at.prototype.get=vr,at.prototype.has=Dr,at.prototype.set=yr;function lr(ye){var Re=-1,We=ye==null?0:ye.length;for(this.__data__=new at;++Re<We;)this.add(ye[Re])}function rn(ye){return this.__data__.set(ye,u),this}function nn(ye){return this.__data__.has(ye)}lr.prototype.add=lr.prototype.push=rn,lr.prototype.has=nn;function ar(ye){var Re=this.__data__=new St(ye);this.size=Re.size}function Xr(){this.__data__=new St,this.size=0}function Wr(ye){var Re=this.__data__,We=Re.delete(ye);return this.size=Re.size,We}function Vr(ye){return this.__data__.get(ye)}function En(ye){return this.__data__.has(ye)}function Vn(ye,Re){var We=this.__data__;if(We instanceof St){var tt=We.__data__;if(!_t||tt.length<c-1)return tt.push([ye,Re]),this.size=++We.size,this;We=this.__data__=new at(tt)}return We.set(ye,Re),this.size=We.size,this}ar.prototype.clear=Xr,ar.prototype.delete=Wr,ar.prototype.get=Vr,ar.prototype.has=En,ar.prototype.set=Vn;function ji(ye,Re){var We=an(ye),tt=!We&&xs(ye),Ct=!We&&!tt&&gn(ye),Et=!We&&!tt&&!Ct&&Yi(ye),Jt=We||tt||Ct||Et,nr=Jt?Y(ye.length,String):[],cr=nr.length;for(var Ht in ye)(Re||Fe.call(ye,Ht))&&!(Jt&&(Ht=="length"||Ct&&(Ht=="offset"||Ht=="parent")||Et&&(Ht=="buffer"||Ht=="byteLength"||Ht=="byteOffset")||vs(Ht,cr)))&&nr.push(Ht);return nr}function Kr(ye,Re){for(var We=ye.length;We--;)if(Ki(ye[We][0],Re))return We;return-1}function $i(ye,Re,We){var tt=Re(ye);return an(ye)?tt:Q(tt,We(ye))}function Kn(ye){return ye==null?ye===void 0?V:S:st&&st in Object(ye)?Ui(ye):ws(ye)}function _i(ye){return Yt(ye)&&Kn(ye)==r}function Si(ye,Re,We,tt,Ct){return ye===Re?!0:ye==null||Re==null||!Yt(ye)&&!Yt(Re)?ye!==ye&&Re!==Re:fi(ye,Re,We,tt,Si,Ct)}function fi(ye,Re,We,tt,Ct,Et){var Jt=an(ye),nr=an(Re),cr=Jt?i:sn(ye),Ht=nr?i:sn(Re);cr=cr==r?E:cr,Ht=Ht==r?E:Ht;var Tr=cr==E,Ir=Ht==E,pr=cr==Ht;if(pr&&gn(ye)){if(!gn(Re))return!1;Jt=!0,Tr=!1}if(pr&&!Tr)return Et||(Et=new ar),Jt||Yi(ye)?li(ye,Re,We,tt,Ct,Et):Bn(ye,Re,cr,We,tt,Ct,Et);if(!(We&s)){var Sr=Tr&&Fe.call(ye,"__wrapped__"),Ar=Ir&&Fe.call(Re,"__wrapped__");if(Sr||Ar){var on=Sr?ye.value():ye,hr=Ar?Re.value():Re;return Et||(Et=new ar),Ct(on,hr,We,tt,Et)}}return pr?(Et||(Et=new ar),zi(ye,Re,We,tt,Ct,Et)):!1}function bs(ye){if(!Zt(ye)||ys(ye))return!1;var Re=Gi(ye)?ge:W;return Re.test(mn(ye))}function Hi(ye){return Yt(ye)&&Ci(ye.length)&&!!he[Kn(ye)]}function Gn(ye){if(!Vi(ye))return Qe(ye);var Re=[];for(var We in Object(ye))Fe.call(ye,We)&&We!="constructor"&&Re.push(We);return Re}function li(ye,Re,We,tt,Ct,Et){var Jt=We&s,nr=ye.length,cr=Re.length;if(nr!=cr&&!(Jt&&cr>nr))return!1;var Ht=Et.get(ye);if(Ht&&Et.get(Re))return Ht==Re;var Tr=-1,Ir=!0,pr=We&t?new lr:void 0;for(Et.set(ye,Re),Et.set(Re,ye);++Tr<nr;){var Sr=ye[Tr],Ar=Re[Tr];if(tt)var on=Jt?tt(Ar,Sr,Tr,Re,ye,Et):tt(Sr,Ar,Tr,ye,Re,Et);if(on!==void 0){if(on)continue;Ir=!1;break}if(pr){if(!z(Re,function(hr,Tn){if(!we(pr,Tn)&&(Sr===hr||Ct(Sr,hr,We,tt,Et)))return pr.push(Tn)})){Ir=!1;break}}else if(!(Sr===Ar||Ct(Sr,Ar,We,tt,Et))){Ir=!1;break}}return Et.delete(ye),Et.delete(Re),Ir}function Bn(ye,Re,We,tt,Ct,Et,Jt){switch(We){case M:if(ye.byteLength!=Re.byteLength||ye.byteOffset!=Re.byteOffset)return!1;ye=ye.buffer,Re=Re.buffer;case H:return!(ye.byteLength!=Re.byteLength||!Et(new Xe(ye),new Xe(Re)));case l:case a:case y:return Ki(+ye,+Re);case g:return ye.name==Re.name&&ye.message==Re.message;case B:case X:return ye==Re+"";case w:var nr=ve;case j:var cr=tt&s;if(nr||(nr=ee),ye.size!=Re.size&&!cr)return!1;var Ht=Jt.get(ye);if(Ht)return Ht==Re;tt|=t,Jt.set(ye,Re);var Tr=li(nr(ye),nr(Re),tt,Ct,Et,Jt);return Jt.delete(ye),Tr;case G:if(Gt)return Gt.call(ye)==Gt.call(Re)}return!1}function zi(ye,Re,We,tt,Ct,Et){var Jt=We&s,nr=Ei(ye),cr=nr.length,Ht=Ei(Re),Tr=Ht.length;if(cr!=Tr&&!Jt)return!1;for(var Ir=cr;Ir--;){var pr=nr[Ir];if(!(Jt?pr in Re:Fe.call(Re,pr)))return!1}var Sr=Et.get(ye);if(Sr&&Et.get(Re))return Sr==Re;var Ar=!0;Et.set(ye,Re),Et.set(Re,ye);for(var on=Jt;++Ir<cr;){pr=nr[Ir];var hr=ye[pr],Tn=Re[pr];if(tt)var Pr=Jt?tt(Tn,hr,pr,Re,ye,Et):tt(hr,Tn,pr,ye,Re,Et);if(!(Pr===void 0?hr===Tn||Ct(hr,Tn,We,tt,Et):Pr)){Ar=!1;break}on||(on=pr=="constructor")}if(Ar&&!on){var An=ye.constructor,Yn=Re.constructor;An!=Yn&&"constructor"in ye&&"constructor"in Re&&!(typeof An=="function"&&An instanceof An&&typeof Yn=="function"&&Yn instanceof Yn)&&(Ar=!1)}return Et.delete(ye),Et.delete(Re),Ar}function Ei(ye){return $i(ye,Ss,Xi)}function ci(ye,Re){var We=ye.__data__;return Wi(Re)?We[typeof Re=="string"?"string":"hash"]:We.map}function Cn(ye,Re){var We=U(ye,Re);return bs(We)?We:void 0}function Ui(ye){var Re=Fe.call(ye,st),We=ye[st];try{ye[st]=void 0;var tt=!0}catch{}var Ct=je.call(ye);return tt&&(Re?ye[st]=We:delete ye[st]),Ct}var Xi=rt?function(ye){return ye==null?[]:(ye=Object(ye),ie(rt(ye),function(Re){return ot.call(ye,Re)}))}:Zi,sn=Kn;(et&&sn(new et(new ArrayBuffer(1)))!=M||_t&&sn(new _t)!=w||ft&&sn(ft.resolve())!=I||jt&&sn(new jt)!=j||It&&sn(new It)!=J)&&(sn=function(ye){var Re=Kn(ye),We=Re==E?ye.constructor:void 0,tt=We?mn(We):"";if(tt)switch(tt){case Dt:return M;case Ut:return w;case wt:return I;case er:return j;case Kt:return J}return Re});function vs(ye,Re){return Re=Re??n,!!Re&&(typeof ye=="number"||ne.test(ye))&&ye>-1&&ye%1==0&&ye<Re}function Wi(ye){var Re=typeof ye;return Re=="string"||Re=="number"||Re=="symbol"||Re=="boolean"?ye!=="__proto__":ye===null}function ys(ye){return!!ze&&ze in ye}function Vi(ye){var Re=ye&&ye.constructor,We=typeof Re=="function"&&Re.prototype||Ee;return ye===We}function ws(ye){return je.call(ye)}function mn(ye){if(ye!=null){try{return Ce.call(ye)}catch{}try{return ye+""}catch{}}return""}function Ki(ye,Re){return ye===Re||ye!==ye&&Re!==Re}var xs=_i(function(){return arguments}())?_i:function(ye){return Yt(ye)&&Fe.call(ye,"callee")&&!ot.call(ye,"callee")},an=Array.isArray;function _s(ye){return ye!=null&&Ci(ye.length)&&!Gi(ye)}var gn=bt||Ji;function bn(ye,Re){return Si(ye,Re)}function Gi(ye){if(!Zt(ye))return!1;var Re=Kn(ye);return Re==v||Re==h||Re==o||Re==F}function Ci(ye){return typeof ye=="number"&&ye>-1&&ye%1==0&&ye<=n}function Zt(ye){var Re=typeof ye;return ye!=null&&(Re=="object"||Re=="function")}function Yt(ye){return ye!=null&&typeof ye=="object"}var Yi=oe?fe(oe):Hi;function Ss(ye){return _s(ye)?ji(ye):Gn(ye)}function Zi(){return[]}function Ji(){return!1}d.exports=bn}).call(this)}).call(this,typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(e,d,m){(function(f){(function(){var c="[object AsyncFunction]",u="[object Function]",s="[object GeneratorFunction]",t="[object Null]",n="[object Proxy]",r="[object Undefined]",i=typeof f=="object"&&f&&f.Object===Object&&f,o=typeof self=="object"&&self&&self.Object===Object&&self,l=i||o||Function("return this")(),a=Object.prototype,g=a.hasOwnProperty,v=a.toString,h=l.Symbol,w=h?h.toStringTag:void 0;function y(B){return B==null?B===void 0?r:t:w&&w in Object(B)?S(B):E(B)}function S(B){var j=g.call(B,w),X=B[w];try{B[w]=void 0;var G=!0}catch{}var V=v.call(B);return G&&(j?B[w]=X:delete B[w]),V}function E(B){return v.call(B)}function I(B){if(!F(B))return!1;var j=y(B);return j==u||j==s||j==c||j==n}function F(B){var j=typeof B;return B!=null&&(j=="object"||j=="function")}d.exports=I}).call(this)}).call(this,typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(e,d,m){function f(c){return c==null}d.exports=f},{}],448:[function(e,d,m){function f(c){return c===void 0}d.exports=f},{}],449:[function(e,d,m){(function(f){(function(){var c=200,u="__lodash_hash_undefined__",s=1/0,t="[object Function]",n="[object GeneratorFunction]",r=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=typeof f=="object"&&f&&f.Object===Object&&f,l=typeof self=="object"&&self&&self.Object===Object&&self,a=o||l||Function("return this")();function g(ge,Me){var Be=ge?ge.length:0;return!!Be&&w(ge,Me,0)>-1}function v(ge,Me,Be){for(var Xe=-1,ot=ge?ge.length:0;++Xe<ot;)if(Be(Me,ge[Xe]))return!0;return!1}function h(ge,Me,Be,Xe){for(var ot=ge.length,ct=Be+(Xe?1:-1);Xe?ct--:++ct<ot;)if(Me(ge[ct],ct,ge))return ct;return-1}function w(ge,Me,Be){if(Me!==Me)return h(ge,y,Be);for(var Xe=Be-1,ot=ge.length;++Xe<ot;)if(ge[Xe]===Me)return Xe;return-1}function y(ge){return ge!==ge}function S(ge,Me){return ge.has(Me)}function E(ge,Me){return ge==null?void 0:ge[Me]}function I(ge){var Me=!1;if(ge!=null&&typeof ge.toString!="function")try{Me=!!(ge+"")}catch{}return Me}function F(ge){var Me=-1,Be=Array(ge.size);return ge.forEach(function(Xe){Be[++Me]=Xe}),Be}var B=Array.prototype,j=Function.prototype,X=Object.prototype,G=a["__core-js_shared__"],V=function(){var ge=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||"");return ge?"Symbol(src)_1."+ge:""}(),J=j.toString,H=X.hasOwnProperty,M=X.toString,T=RegExp("^"+J.call(H).replace(r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_=B.splice,A=ee(a,"Map"),P=ee(a,"Set"),L=ee(Object,"create");function $(ge){var Me=-1,Be=ge?ge.length:0;for(this.clear();++Me<Be;){var Xe=ge[Me];this.set(Xe[0],Xe[1])}}function R(){this.__data__=L?L(null):{}}function k(ge){return this.has(ge)&&delete this.__data__[ge]}function C(ge){var Me=this.__data__;if(L){var Be=Me[ge];return Be===u?void 0:Be}return H.call(Me,ge)?Me[ge]:void 0}function O(ge){var Me=this.__data__;return L?Me[ge]!==void 0:H.call(Me,ge)}function W(ge,Me){var Be=this.__data__;return Be[ge]=L&&Me===void 0?u:Me,this}$.prototype.clear=R,$.prototype.delete=k,$.prototype.get=C,$.prototype.has=O,$.prototype.set=W;function ne(ge){var Me=-1,Be=ge?ge.length:0;for(this.clear();++Me<Be;){var Xe=ge[Me];this.set(Xe[0],Xe[1])}}function he(){this.__data__=[]}function ue(ge){var Me=this.__data__,Be=fe(Me,ge);if(Be<0)return!1;var Xe=Me.length-1;return Be==Xe?Me.pop():_.call(Me,Be,1),!0}function Ae(ge){var Me=this.__data__,Be=fe(Me,ge);return Be<0?void 0:Me[Be][1]}function pe(ge){return fe(this.__data__,ge)>-1}function te(ge,Me){var Be=this.__data__,Xe=fe(Be,ge);return Xe<0?Be.push([ge,Me]):Be[Xe][1]=Me,this}ne.prototype.clear=he,ne.prototype.delete=ue,ne.prototype.get=Ae,ne.prototype.has=pe,ne.prototype.set=te;function Z(ge){var Me=-1,Be=ge?ge.length:0;for(this.clear();++Me<Be;){var Xe=ge[Me];this.set(Xe[0],Xe[1])}}function q(){this.__data__={hash:new $,map:new(A||ne),string:new $}}function de(ge){return Se(this,ge).delete(ge)}function ke(ge){return Se(this,ge).get(ge)}function oe(ge){return Se(this,ge).has(ge)}function ie(ge,Me){return Se(this,ge).set(ge,Me),this}Z.prototype.clear=q,Z.prototype.delete=de,Z.prototype.get=ke,Z.prototype.has=oe,Z.prototype.set=ie;function Q(ge){var Me=-1,Be=ge?ge.length:0;for(this.__data__=new Z;++Me<Be;)this.add(ge[Me])}function z(ge){return this.__data__.set(ge,u),this}function Y(ge){return this.__data__.has(ge)}Q.prototype.add=Q.prototype.push=z,Q.prototype.has=Y;function fe(ge,Me){for(var Be=ge.length;Be--;)if(Ce(ge[Be][0],Me))return Be;return-1}function we(ge){if(!ze(ge)||me(ge))return!1;var Me=Fe(ge)||I(ge)?T:i;return Me.test(Ee(ge))}function U(ge,Me,Be){var Xe=-1,ot=g,ct=ge.length,st=!0,rt=[],bt=rt;if(Be)st=!1,ot=v;else if(ct>=c){var Qe=Me?null:ve(ge);if(Qe)return F(Qe);st=!1,ot=S,bt=new Q}else bt=Me?[]:rt;e:for(;++Xe<ct;){var et=ge[Xe],_t=Me?Me(et):et;if(et=Be||et!==0?et:0,st&&_t===_t){for(var ft=bt.length;ft--;)if(bt[ft]===_t)continue e;Me&&bt.push(_t),rt.push(et)}else ot(bt,_t,Be)||(bt!==rt&&bt.push(_t),rt.push(et))}return rt}var ve=P&&1/F(new P([,-0]))[1]==s?function(ge){return new P(ge)}:je;function Se(ge,Me){var Be=ge.__data__;return se(Me)?Be[typeof Me=="string"?"string":"hash"]:Be.map}function ee(ge,Me){var Be=E(ge,Me);return we(Be)?Be:void 0}function se(ge){var Me=typeof ge;return Me=="string"||Me=="number"||Me=="symbol"||Me=="boolean"?ge!=="__proto__":ge===null}function me(ge){return!!V&&V in ge}function Ee(ge){if(ge!=null){try{return J.call(ge)}catch{}try{return ge+""}catch{}}return""}function Ie(ge){return ge&&ge.length?U(ge):[]}function Ce(ge,Me){return ge===Me||ge!==ge&&Me!==Me}function Fe(ge){var Me=ze(ge)?M.call(ge):"";return Me==t||Me==n}function ze(ge){var Me=typeof ge;return!!ge&&(Me=="object"||Me=="function")}function je(){}d.exports=Ie}).call(this)}).call(this,typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(e,d,m){var f=e("inherits"),c=e("hash-base"),u=e("safe-buffer").Buffer,s=new Array(16);function t(){c.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}f(t,c),t.prototype._update=function(){for(var a=s,g=0;g<16;++g)a[g]=this._block.readInt32LE(g*4);var v=this._a,h=this._b,w=this._c,y=this._d;v=r(v,h,w,y,a[0],3614090360,7),y=r(y,v,h,w,a[1],3905402710,12),w=r(w,y,v,h,a[2],606105819,17),h=r(h,w,y,v,a[3],3250441966,22),v=r(v,h,w,y,a[4],4118548399,7),y=r(y,v,h,w,a[5],1200080426,12),w=r(w,y,v,h,a[6],2821735955,17),h=r(h,w,y,v,a[7],4249261313,22),v=r(v,h,w,y,a[8],1770035416,7),y=r(y,v,h,w,a[9],2336552879,12),w=r(w,y,v,h,a[10],4294925233,17),h=r(h,w,y,v,a[11],2304563134,22),v=r(v,h,w,y,a[12],1804603682,7),y=r(y,v,h,w,a[13],4254626195,12),w=r(w,y,v,h,a[14],2792965006,17),h=r(h,w,y,v,a[15],1236535329,22),v=i(v,h,w,y,a[1],4129170786,5),y=i(y,v,h,w,a[6],3225465664,9),w=i(w,y,v,h,a[11],643717713,14),h=i(h,w,y,v,a[0],3921069994,20),v=i(v,h,w,y,a[5],3593408605,5),y=i(y,v,h,w,a[10],38016083,9),w=i(w,y,v,h,a[15],3634488961,14),h=i(h,w,y,v,a[4],3889429448,20),v=i(v,h,w,y,a[9],568446438,5),y=i(y,v,h,w,a[14],3275163606,9),w=i(w,y,v,h,a[3],4107603335,14),h=i(h,w,y,v,a[8],1163531501,20),v=i(v,h,w,y,a[13],2850285829,5),y=i(y,v,h,w,a[2],4243563512,9),w=i(w,y,v,h,a[7],1735328473,14),h=i(h,w,y,v,a[12],2368359562,20),v=o(v,h,w,y,a[5],4294588738,4),y=o(y,v,h,w,a[8],2272392833,11),w=o(w,y,v,h,a[11],1839030562,16),h=o(h,w,y,v,a[14],4259657740,23),v=o(v,h,w,y,a[1],2763975236,4),y=o(y,v,h,w,a[4],1272893353,11),w=o(w,y,v,h,a[7],4139469664,16),h=o(h,w,y,v,a[10],3200236656,23),v=o(v,h,w,y,a[13],681279174,4),y=o(y,v,h,w,a[0],3936430074,11),w=o(w,y,v,h,a[3],3572445317,16),h=o(h,w,y,v,a[6],76029189,23),v=o(v,h,w,y,a[9],3654602809,4),y=o(y,v,h,w,a[12],3873151461,11),w=o(w,y,v,h,a[15],530742520,16),h=o(h,w,y,v,a[2],3299628645,23),v=l(v,h,w,y,a[0],4096336452,6),y=l(y,v,h,w,a[7],1126891415,10),w=l(w,y,v,h,a[14],2878612391,15),h=l(h,w,y,v,a[5],4237533241,21),v=l(v,h,w,y,a[12],1700485571,6),y=l(y,v,h,w,a[3],2399980690,10),w=l(w,y,v,h,a[10],4293915773,15),h=l(h,w,y,v,a[1],2240044497,21),v=l(v,h,w,y,a[8],1873313359,6),y=l(y,v,h,w,a[15],4264355552,10),w=l(w,y,v,h,a[6],2734768916,15),h=l(h,w,y,v,a[13],1309151649,21),v=l(v,h,w,y,a[4],4149444226,6),y=l(y,v,h,w,a[11],3174756917,10),w=l(w,y,v,h,a[2],718787259,15),h=l(h,w,y,v,a[9],3951481745,21),this._a=this._a+v|0,this._b=this._b+h|0,this._c=this._c+w|0,this._d=this._d+y|0},t.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 a=u.allocUnsafe(16);return a.writeInt32LE(this._a,0),a.writeInt32LE(this._b,4),a.writeInt32LE(this._c,8),a.writeInt32LE(this._d,12),a};function n(a,g){return a<<g|a>>>32-g}function r(a,g,v,h,w,y,S){return n(a+(g&v|~g&h)+w+y|0,S)+g|0}function i(a,g,v,h,w,y,S){return n(a+(g&h|v&~h)+w+y|0,S)+g|0}function o(a,g,v,h,w,y,S){return n(a+(g^v^h)+w+y|0,S)+g|0}function l(a,g,v,h,w,y,S){return n(a+(v^(g|~h))+w+y|0,S)+g|0}d.exports=t},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,d,m){var f=e("bn.js"),c=e("brorand");function u(s){this.rand=s||new c.Rand}d.exports=u,u.create=function(t){return new u(t)},u.prototype._randbelow=function(t){var n=t.bitLength(),r=Math.ceil(n/8);do var i=new f(this.rand.generate(r));while(i.cmp(t)>=0);return i},u.prototype._randrange=function(t,n){var r=n.sub(t);return t.add(this._randbelow(r))},u.prototype.test=function(t,n,r){var i=t.bitLength(),o=f.mont(t),l=new f(1).toRed(o);n||(n=Math.max(1,i/48|0));for(var a=t.subn(1),g=0;!a.testn(g);g++);for(var v=t.shrn(g),h=a.toRed(o),w=!0;n>0;n--){var y=this._randrange(new f(2),a);r&&r(y);var S=y.toRed(o).redPow(v);if(!(S.cmp(l)===0||S.cmp(h)===0)){for(var E=1;E<g;E++){if(S=S.redSqr(),S.cmp(l)===0)return!1;if(S.cmp(h)===0)break}if(E===g)return!1}}return w},u.prototype.getDivisor=function(t,n){var r=t.bitLength(),i=f.mont(t),o=new f(1).toRed(i);n||(n=Math.max(1,r/48|0));for(var l=t.subn(1),a=0;!l.testn(a);a++);for(var g=t.shrn(a),v=l.toRed(i);n>0;n--){var h=this._randrange(new f(2),l),w=t.gcd(h);if(w.cmpn(1)!==0)return w;var y=h.toRed(i).redPow(g);if(!(y.cmp(o)===0||y.cmp(v)===0)){for(var S=1;S<a;S++){if(y=y.redSqr(),y.cmp(o)===0)return y.fromRed().subn(1).gcd(t);if(y.cmp(v)===0)break}if(S===a)return y=y.redSqr(),y.fromRed().subn(1).gcd(t)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,d,m){arguments[4][184][0].apply(m,arguments)},{buffer:188,dup:184}],453:[function(e,d,m){d.exports=f;function f(c,u){if(!c)throw new Error(u||"Assertion failed")}f.equal=function(u,s,t){if(u!=s)throw new Error(t||"Assertion failed: "+u+" != "+s)}},{}],454:[function(e,d,m){var f=m;function c(t,n){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t!="string"){for(var i=0;i<t.length;i++)r[i]=t[i]|0;return r}if(n==="hex"){t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t);for(var i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var i=0;i<t.length;i++){var o=t.charCodeAt(i),l=o>>8,a=o&255;l?r.push(l,a):r.push(a)}return r}f.toArray=c;function u(t){return t.length===1?"0"+t:t}f.zero2=u;function s(t){for(var n="",r=0;r<t.length;r++)n+=u(t[r].toString(16));return n}f.toHex=s,f.encode=function(n,r){return r==="hex"?s(n):n}},{}],455:[function(e,d,m){d.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,d,m){var f=e("asn1.js");m.certificate=e("./certificate");var c=f.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});m.RSAPrivateKey=c;var u=f.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});m.RSAPublicKey=u;var s=f.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(t),this.key("subjectPublicKey").bitstr())});m.PublicKey=s;var t=f.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),n=f.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(t),this.key("subjectPrivateKey").octstr())});m.PrivateKey=n;var r=f.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});m.EncryptedPrivateKey=r;var i=f.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});m.DSAPrivateKey=i,m.DSAparam=f.define("DSAparam",function(){this.int()});var o=f.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())});m.ECPrivateKey=o;var l=f.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});m.signature=f.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(e,d,m){var f=e("asn1.js"),c=f.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),u=f.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s=f.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),t=f.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}),n=f.define("RelativeDistinguishedName",function(){this.setof(u)}),r=f.define("RDNSequence",function(){this.seqof(n)}),i=f.define("Name",function(){this.choice({rdnSequence:this.use(r)})}),o=f.define("Validity",function(){this.seq().obj(this.key("notBefore").use(c),this.key("notAfter").use(c))}),l=f.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),a=f.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(i),this.key("validity").use(o),this.key("subject").use(i),this.key("subjectPublicKeyInfo").use(t),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())}),g=f.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(a),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())});d.exports=g},{"asn1.js":170}],458:[function(e,d,m){var f=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,c=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,u=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=e("evp_bytestokey"),t=e("browserify-aes"),n=e("safe-buffer").Buffer;d.exports=function(r,i){var o=r.toString(),l=o.match(f),a;if(l){var v="aes"+l[1],h=n.from(l[2],"hex"),w=n.from(l[3].replace(/[\r\n]/g,""),"base64"),y=s(i,h.slice(0,8),parseInt(l[1],10)).key,S=[],E=t.createDecipheriv(v,y,h);S.push(E.update(w)),S.push(E.final()),a=n.concat(S)}else{var g=o.match(u);a=n.from(g[2].replace(/[\r\n]/g,""),"base64")}var I=o.match(c)[1];return{tag:I,data:a}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,d,m){var f=e("./asn1"),c=e("./aesid.json"),u=e("./fixProc"),s=e("browserify-aes"),t=e("pbkdf2"),n=e("safe-buffer").Buffer;d.exports=r;function r(o){var l;typeof o=="object"&&!n.isBuffer(o)&&(l=o.passphrase,o=o.key),typeof o=="string"&&(o=n.from(o));var a=u(o,l),g=a.tag,v=a.data,h,w;switch(g){case"CERTIFICATE":w=f.certificate.decode(v,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=f.PublicKey.decode(v,"der")),h=w.algorithm.algorithm.join("."),h){case"1.2.840.113549.1.1.1":return f.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=f.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw new Error("unknown key id "+h)}case"ENCRYPTED PRIVATE KEY":v=f.EncryptedPrivateKey.decode(v,"der"),v=i(v,l);case"PRIVATE KEY":switch(w=f.PrivateKey.decode(v,"der"),h=w.algorithm.algorithm.join("."),h){case"1.2.840.113549.1.1.1":return f.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:f.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=f.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw new Error("unknown key id "+h)}case"RSA PUBLIC KEY":return f.RSAPublicKey.decode(v,"der");case"RSA PRIVATE KEY":return f.RSAPrivateKey.decode(v,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:f.DSAPrivateKey.decode(v,"der")};case"EC PRIVATE KEY":return v=f.ECPrivateKey.decode(v,"der"),{curve:v.parameters.value,privateKey:v.privateKey};default:throw new Error("unknown key type "+g)}}r.signature=f.signature;function i(o,l){var a=o.algorithm.decrypt.kde.kdeparams.salt,g=parseInt(o.algorithm.decrypt.kde.kdeparams.iters.toString(),10),v=c[o.algorithm.decrypt.cipher.algo.join(".")],h=o.algorithm.decrypt.cipher.iv,w=o.subjectPrivateKey,y=parseInt(v.split("-")[1],10)/8,S=t.pbkdf2Sync(l,a,g,y,"sha1"),E=s.createDecipheriv(v,S,h),I=[];return I.push(E.update(w)),I.push(E.final()),n.concat(I)}},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,d,m){m.pbkdf2=e("./lib/async"),m.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,d,m){(function(f){(function(){var c=e("safe-buffer").Buffer,u=e("./precondition"),s=e("./default-encoding"),t=e("./sync"),n=e("./to-buffer"),r,i=f.crypto&&f.crypto.subtle,o={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},l=[];function a(y){if(f.process&&!f.process.browser||!i||!i.importKey||!i.deriveBits)return Promise.resolve(!1);if(l[y]!==void 0)return l[y];r=r||c.alloc(8);var S=h(r,r,10,128,y).then(function(){return!0}).catch(function(){return!1});return l[y]=S,S}var g;function v(){return g||(f.process&&f.process.nextTick?g=f.process.nextTick:f.queueMicrotask?g=f.queueMicrotask:f.setImmediate?g=f.setImmediate:g=f.setTimeout,g)}function h(y,S,E,I,F){return i.importKey("raw",y,{name:"PBKDF2"},!1,["deriveBits"]).then(function(B){return i.deriveBits({name:"PBKDF2",salt:S,iterations:E,hash:{name:F}},B,I<<3)}).then(function(B){return c.from(B)})}function w(y,S){y.then(function(E){v()(function(){S(null,E)})},function(E){v()(function(){S(E)})})}d.exports=function(y,S,E,I,F,B){typeof F=="function"&&(B=F,F=void 0),F=F||"sha1";var j=o[F.toLowerCase()];if(!j||typeof f.Promise!="function"){v()(function(){var X;try{X=t(y,S,E,I,F)}catch(G){return B(G)}B(null,X)});return}if(u(E,I),y=n(y,s,"Password"),S=n(S,s,"Salt"),typeof B!="function")throw new Error("No callback provided to pbkdf2");w(a(j).then(function(X){return X?h(y,S,E,I,j):t(y,S,E,I,F)}),B)}}).call(this)}).call(this,typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,d,m){(function(f,c){(function(){var u;if(c.process&&c.process.browser)u="utf-8";else if(c.process&&c.process.version){var s=parseInt(f.version.split(".")[0].slice(1),10);u=s>=6?"utf-8":"binary"}else u="utf-8";d.exports=u}).call(this)}).call(this,e("_process"),typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(e,d,m){var f=Math.pow(2,30)-1;d.exports=function(c,u){if(typeof c!="number")throw new TypeError("Iterations not a number");if(c<0)throw new TypeError("Bad iterations");if(typeof u!="number")throw new TypeError("Key length not a number");if(u<0||u>f||u!==u)throw new TypeError("Bad key length")}},{}],464:[function(e,d,m){var f=e("create-hash/md5"),c=e("ripemd160"),u=e("sha.js"),s=e("safe-buffer").Buffer,t=e("./precondition"),n=e("./default-encoding"),r=e("./to-buffer"),i=s.alloc(128),o={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(v,h,w){var y=a(v),S=v==="sha512"||v==="sha384"?128:64;h.length>S?h=y(h):h.length<S&&(h=s.concat([h,i],S));for(var E=s.allocUnsafe(S+o[v]),I=s.allocUnsafe(S+o[v]),F=0;F<S;F++)E[F]=h[F]^54,I[F]=h[F]^92;var B=s.allocUnsafe(S+w+4);E.copy(B,0,0,S),this.ipad1=B,this.ipad2=E,this.opad=I,this.alg=v,this.blocksize=S,this.hash=y,this.size=o[v]}l.prototype.run=function(v,h){v.copy(h,this.blocksize);var w=this.hash(h);return w.copy(this.opad,this.blocksize),this.hash(this.opad)};function a(v){function h(y){return u(v).update(y).digest()}function w(y){return new c().update(y).digest()}return v==="rmd160"||v==="ripemd160"?w:v==="md5"?f:h}function g(v,h,w,y,S){t(w,y),v=r(v,n,"Password"),h=r(h,n,"Salt"),S=S||"sha1";var E=new l(S,v,h.length),I=s.allocUnsafe(y),F=s.allocUnsafe(h.length+4);h.copy(F,0,0,h.length);for(var B=0,j=o[S],X=Math.ceil(y/j),G=1;G<=X;G++){F.writeUInt32BE(G,h.length);for(var V=E.run(F,E.ipad1),J=V,H=1;H<w;H++){J=E.run(J,E.ipad2);for(var M=0;M<j;M++)V[M]^=J[M]}V.copy(I,B),B+=j}return I}d.exports=g},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,d,m){var f=e("safe-buffer").Buffer;d.exports=function(c,u,s){if(f.isBuffer(c))return c;if(typeof c=="string")return f.from(c,u);if(ArrayBuffer.isView(c))return f.from(c.buffer);throw new TypeError(s+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,d,m){(function(f){(function(){typeof f>"u"||!f.version||f.version.indexOf("v0.")===0||f.version.indexOf("v1.")===0&&f.version.indexOf("v1.8.")!==0?d.exports={nextTick:c}:d.exports=f;function c(u,s,t,n){if(typeof u!="function")throw new TypeError('"callback" argument must be a function');var r=arguments.length,i,o;switch(r){case 0:case 1:return f.nextTick(u);case 2:return f.nextTick(function(){u.call(null,s)});case 3:return f.nextTick(function(){u.call(null,s,t)});case 4:return f.nextTick(function(){u.call(null,s,t,n)});default:for(i=new Array(r-1),o=0;o<i.length;)i[o++]=arguments[o];return f.nextTick(function(){u.apply(null,i)})}}}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,d,m){var f=d.exports={},c,u;function s(){throw new Error("setTimeout has not been defined")}function t(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?c=setTimeout:c=s}catch{c=s}try{typeof clearTimeout=="function"?u=clearTimeout:u=t}catch{u=t}})();function n(y){if(c===setTimeout)return setTimeout(y,0);if((c===s||!c)&&setTimeout)return c=setTimeout,setTimeout(y,0);try{return c(y,0)}catch{try{return c.call(null,y,0)}catch{return c.call(this,y,0)}}}function r(y){if(u===clearTimeout)return clearTimeout(y);if((u===t||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(y);try{return u(y)}catch{try{return u.call(null,y)}catch{return u.call(this,y)}}}var i=[],o=!1,l,a=-1;function g(){!o||!l||(o=!1,l.length?i=l.concat(i):a=-1,i.length&&v())}function v(){if(!o){var y=n(g);o=!0;for(var S=i.length;S;){for(l=i,i=[];++a<S;)l&&l[a].run();a=-1,S=i.length}l=null,o=!1,r(y)}}f.nextTick=function(y){var S=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)S[E-1]=arguments[E];i.push(new h(y,S)),i.length===1&&!o&&n(v)};function h(y,S){this.fun=y,this.array=S}h.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={};function w(){}f.on=w,f.addListener=w,f.once=w,f.off=w,f.removeListener=w,f.removeAllListeners=w,f.emit=w,f.prependListener=w,f.prependOnceListener=w,f.listeners=function(y){return[]},f.binding=function(y){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(y){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],468:[function(e,d,m){m.publicEncrypt=e("./publicEncrypt"),m.privateDecrypt=e("./privateDecrypt"),m.privateEncrypt=function(c,u){return m.publicEncrypt(c,u,!0)},m.publicDecrypt=function(c,u){return m.privateDecrypt(c,u,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,d,m){var f=e("create-hash"),c=e("safe-buffer").Buffer;d.exports=function(s,t){for(var n=c.alloc(0),r=0,i;n.length<t;)i=u(r++),n=c.concat([n,f("sha1").update(s).update(i).digest()]);return n.slice(0,t)};function u(s){var t=c.allocUnsafe(4);return t.writeUInt32BE(s,0),t}},{"create-hash":386,"safe-buffer":494}],470:[function(e,d,m){arguments[4][184][0].apply(m,arguments)},{buffer:188,dup:184}],471:[function(e,d,m){var f=e("parse-asn1"),c=e("./mgf"),u=e("./xor"),s=e("bn.js"),t=e("browserify-rsa"),n=e("create-hash"),r=e("./withPublic"),i=e("safe-buffer").Buffer;d.exports=function(v,h,w){var y;v.padding?y=v.padding:w?y=1:y=4;var S=f(v),E=S.modulus.byteLength();if(h.length>E||new s(h).cmp(S.modulus)>=0)throw new Error("decryption error");var I;w?I=r(new s(h),S):I=t(h,S);var F=i.alloc(E-I.length);if(I=i.concat([F,I],E),y===4)return o(S,I);if(y===1)return l(S,I,w);if(y===3)return I;throw new Error("unknown padding")};function o(g,v){var h=g.modulus.byteLength(),w=n("sha1").update(i.alloc(0)).digest(),y=w.length;if(v[0]!==0)throw new Error("decryption error");var S=v.slice(1,y+1),E=v.slice(y+1),I=u(S,c(E,y)),F=u(E,c(I,h-y-1));if(a(w,F.slice(0,y)))throw new Error("decryption error");for(var B=y;F[B]===0;)B++;if(F[B++]!==1)throw new Error("decryption error");return F.slice(B)}function l(g,v,h){for(var w=v.slice(0,2),y=2,S=0;v[y++]!==0;)if(y>=v.length){S++;break}var E=v.slice(2,y-1);if((w.toString("hex")!=="0002"&&!h||w.toString("hex")!=="0001"&&h)&&S++,E.length<8&&S++,S)throw new Error("decryption error");return v.slice(y)}function a(g,v){g=i.from(g),v=i.from(v);var h=0,w=g.length;g.length!==v.length&&(h++,w=Math.min(g.length,v.length));for(var y=-1;++y<w;)h+=g[y]^v[y];return h}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,d,m){var f=e("parse-asn1"),c=e("randombytes"),u=e("create-hash"),s=e("./mgf"),t=e("./xor"),n=e("bn.js"),r=e("./withPublic"),i=e("browserify-rsa"),o=e("safe-buffer").Buffer;d.exports=function(h,w,y){var S;h.padding?S=h.padding:y?S=1:S=4;var E=f(h),I;if(S===4)I=l(E,w);else if(S===1)I=a(E,w,y);else if(S===3){if(I=new n(w),I.cmp(E.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return y?i(I,E):r(I,E)};function l(v,h){var w=v.modulus.byteLength(),y=h.length,S=u("sha1").update(o.alloc(0)).digest(),E=S.length,I=2*E;if(y>w-I-2)throw new Error("message too long");var F=o.alloc(w-y-I-2),B=w-E-1,j=c(E),X=t(o.concat([S,F,o.alloc(1,1),h],B),s(j,B)),G=t(j,s(X,E));return new n(o.concat([o.alloc(1),G,X],w))}function a(v,h,w){var y=h.length,S=v.modulus.byteLength();if(y>S-11)throw new Error("message too long");var E;return w?E=o.alloc(S-y-3,255):E=g(S-y-3),new n(o.concat([o.from([0,w?1:2]),E,o.alloc(1),h],S))}function g(v){for(var h=o.allocUnsafe(v),w=0,y=c(v*2),S=0,E;w<v;)S===y.length&&(y=c(v*2),S=0),E=y[S++],E&&(h[w++]=E);return 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(e,d,m){var f=e("bn.js"),c=e("safe-buffer").Buffer;function u(s,t){return c.from(s.toRed(f.mont(t.modulus)).redPow(new f(t.publicExponent)).fromRed().toArray())}d.exports=u},{"bn.js":470,"safe-buffer":494}],474:[function(e,d,m){d.exports=function(c,u){for(var s=c.length,t=-1;++t<s;)c[t]^=u[t];return c}},{}],475:[function(e,d,m){(function(f,c){(function(){var u=65536,s=4294967295;function t(){throw new Error(`Secure random number generation is not supported by this browser.
|
||
Use Chrome, Firefox or Internet Explorer 11`)}var n=e("safe-buffer").Buffer,r=c.crypto||c.msCrypto;r&&r.getRandomValues?d.exports=i:d.exports=t;function i(o,l){if(o>s)throw new RangeError("requested too many random bytes");var a=n.allocUnsafe(o);if(o>0)if(o>u)for(var g=0;g<o;g+=u)r.getRandomValues(a.slice(g,g+u));else r.getRandomValues(a);return typeof l=="function"?f.nextTick(function(){l(null,a)}):a}}).call(this)}).call(this,e("_process"),typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,d,m){(function(f,c){(function(){function u(){throw new Error(`secure random number generation not supported by this browser
|
||
use chrome, FireFox or Internet Explorer 11`)}var s=e("safe-buffer"),t=e("randombytes"),n=s.Buffer,r=s.kMaxLength,i=c.crypto||c.msCrypto,o=Math.pow(2,32)-1;function l(w,y){if(typeof w!="number"||w!==w)throw new TypeError("offset must be a number");if(w>o||w<0)throw new TypeError("offset must be a uint32");if(w>r||w>y)throw new RangeError("offset out of range")}function a(w,y,S){if(typeof w!="number"||w!==w)throw new TypeError("size must be a number");if(w>o||w<0)throw new TypeError("size must be a uint32");if(w+y>S||w>r)throw new RangeError("buffer too small")}i&&i.getRandomValues||!f.browser?(m.randomFill=g,m.randomFillSync=h):(m.randomFill=u,m.randomFillSync=u);function g(w,y,S,E){if(!n.isBuffer(w)&&!(w instanceof c.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof y=="function")E=y,y=0,S=w.length;else if(typeof S=="function")E=S,S=w.length-y;else if(typeof E!="function")throw new TypeError('"cb" argument must be a function');return l(y,w.length),a(S,y,w.length),v(w,y,S,E)}function v(w,y,S,E){if(f.browser){var I=w.buffer,F=new Uint8Array(I,y,S);if(i.getRandomValues(F),E){f.nextTick(function(){E(null,w)});return}return w}if(E){t(S,function(j,X){if(j)return E(j);X.copy(w,y),E(null,w)});return}var B=t(S);return B.copy(w,y),w}function h(w,y,S){if(typeof y>"u"&&(y=0),!n.isBuffer(w)&&!(w instanceof c.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return l(y,w.length),S===void 0&&(S=w.length-y),a(S,y,w.length),v(w,y,S)}}).call(this)}).call(this,e("_process"),typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,d,m){function f(i,o){i.prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o}var c={};function u(i,o,l){l||(l=Error);function a(v,h,w){return typeof o=="string"?o:o(v,h,w)}var g=function(v){f(h,v);function h(w,y,S){return v.call(this,a(w,y,S))||this}return h}(l);g.prototype.name=l.name,g.prototype.code=i,c[i]=g}function s(i,o){if(Array.isArray(i)){var l=i.length;return i=i.map(function(a){return String(a)}),l>2?"one of ".concat(o," ").concat(i.slice(0,l-1).join(", "),", or ")+i[l-1]:l===2?"one of ".concat(o," ").concat(i[0]," or ").concat(i[1]):"of ".concat(o," ").concat(i[0])}else return"of ".concat(o," ").concat(String(i))}function t(i,o,l){return i.substr(!l||l<0?0:+l,o.length)===o}function n(i,o,l){return(l===void 0||l>i.length)&&(l=i.length),i.substring(l-o.length,l)===o}function r(i,o,l){return typeof l!="number"&&(l=0),l+o.length>i.length?!1:i.indexOf(o,l)!==-1}u("ERR_INVALID_OPT_VALUE",function(i,o){return'The value "'+o+'" is invalid for option "'+i+'"'},TypeError),u("ERR_INVALID_ARG_TYPE",function(i,o,l){var a;typeof o=="string"&&t(o,"not ")?(a="must not be",o=o.replace(/^not /,"")):a="must be";var g;if(n(i," argument"))g="The ".concat(i," ").concat(a," ").concat(s(o,"type"));else{var v=r(i,".")?"property":"argument";g='The "'.concat(i,'" ').concat(v," ").concat(a," ").concat(s(o,"type"))}return g+=". Received type ".concat(typeof l),g},TypeError),u("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),u("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),u("ERR_STREAM_PREMATURE_CLOSE","Premature close"),u("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),u("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),u("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),u("ERR_STREAM_WRITE_AFTER_END","write after end"),u("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),u("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),u("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),d.exports.codes=c},{}],478:[function(e,d,m){(function(f){(function(){var c=Object.keys||function(a){var g=[];for(var v in a)g.push(v);return g};d.exports=i;var u=e("./_stream_readable"),s=e("./_stream_writable");e("inherits")(i,u);for(var t=c(s.prototype),n=0;n<t.length;n++){var r=t[n];i.prototype[r]||(i.prototype[r]=s.prototype[r])}function i(a){if(!(this instanceof i))return new i(a);u.call(this,a),s.call(this,a),this.allowHalfOpen=!0,a&&(a.readable===!1&&(this.readable=!1),a.writable===!1&&(this.writable=!1),a.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",o)))}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(i.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(i.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function o(){this._writableState.ended||f.nextTick(l,this)}function l(a){a.end()}Object.defineProperty(i.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=g,this._writableState.destroyed=g)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,d,m){d.exports=c;var f=e("./_stream_transform");e("inherits")(c,f);function c(u){if(!(this instanceof c))return new c(u);f.call(this,u)}c.prototype._transform=function(u,s,t){t(null,u)}},{"./_stream_transform":481,inherits:440}],480:[function(e,d,m){(function(f,c){(function(){d.exports=M;var u;M.ReadableState=H,e("events").EventEmitter;var s=function(ie,Q){return ie.listeners(Q).length},t=e("./internal/streams/stream"),n=e("buffer").Buffer,r=(typeof c<"u"?c:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(oe){return n.from(oe)}function o(oe){return n.isBuffer(oe)||oe instanceof r}var l=e("util"),a;l&&l.debuglog?a=l.debuglog("stream"):a=function(){};var g=e("./internal/streams/buffer_list"),v=e("./internal/streams/destroy"),h=e("./internal/streams/state"),w=h.getHighWaterMark,y=e("../errors").codes,S=y.ERR_INVALID_ARG_TYPE,E=y.ERR_STREAM_PUSH_AFTER_EOF,I=y.ERR_METHOD_NOT_IMPLEMENTED,F=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,j,X;e("inherits")(M,t);var G=v.errorOrDestroy,V=["error","close","destroy","pause","resume"];function J(oe,ie,Q){if(typeof oe.prependListener=="function")return oe.prependListener(ie,Q);!oe._events||!oe._events[ie]?oe.on(ie,Q):Array.isArray(oe._events[ie])?oe._events[ie].unshift(Q):oe._events[ie]=[Q,oe._events[ie]]}function H(oe,ie,Q){u=u||e("./_stream_duplex"),oe=oe||{},typeof Q!="boolean"&&(Q=ie instanceof u),this.objectMode=!!oe.objectMode,Q&&(this.objectMode=this.objectMode||!!oe.readableObjectMode),this.highWaterMark=w(this,oe,"readableHighWaterMark",Q),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=oe.emitClose!==!1,this.autoDestroy=!!oe.autoDestroy,this.destroyed=!1,this.defaultEncoding=oe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,oe.encoding&&(B||(B=e("string_decoder/").StringDecoder),this.decoder=new B(oe.encoding),this.encoding=oe.encoding)}function M(oe){if(u=u||e("./_stream_duplex"),!(this instanceof M))return new M(oe);var ie=this instanceof u;this._readableState=new H(oe,this,ie),this.readable=!0,oe&&(typeof oe.read=="function"&&(this._read=oe.read),typeof oe.destroy=="function"&&(this._destroy=oe.destroy)),t.call(this)}Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ie){this._readableState&&(this._readableState.destroyed=ie)}}),M.prototype.destroy=v.destroy,M.prototype._undestroy=v.undestroy,M.prototype._destroy=function(oe,ie){ie(oe)},M.prototype.push=function(oe,ie){var Q=this._readableState,z;return Q.objectMode?z=!0:typeof oe=="string"&&(ie=ie||Q.defaultEncoding,ie!==Q.encoding&&(oe=n.from(oe,ie),ie=""),z=!0),T(this,oe,ie,!1,z)},M.prototype.unshift=function(oe){return T(this,oe,null,!0,!1)};function T(oe,ie,Q,z,Y){a("readableAddChunk",ie);var fe=oe._readableState;if(ie===null)fe.reading=!1,R(oe,fe);else{var we;if(Y||(we=A(fe,ie)),we)G(oe,we);else if(fe.objectMode||ie&&ie.length>0)if(typeof ie!="string"&&!fe.objectMode&&Object.getPrototypeOf(ie)!==n.prototype&&(ie=i(ie)),z)fe.endEmitted?G(oe,new F):_(oe,fe,ie,!0);else if(fe.ended)G(oe,new E);else{if(fe.destroyed)return!1;fe.reading=!1,fe.decoder&&!Q?(ie=fe.decoder.write(ie),fe.objectMode||ie.length!==0?_(oe,fe,ie,!1):O(oe,fe)):_(oe,fe,ie,!1)}else z||(fe.reading=!1,O(oe,fe))}return!fe.ended&&(fe.length<fe.highWaterMark||fe.length===0)}function _(oe,ie,Q,z){ie.flowing&&ie.length===0&&!ie.sync?(ie.awaitDrain=0,oe.emit("data",Q)):(ie.length+=ie.objectMode?1:Q.length,z?ie.buffer.unshift(Q):ie.buffer.push(Q),ie.needReadable&&k(oe)),O(oe,ie)}function A(oe,ie){var Q;return!o(ie)&&typeof ie!="string"&&ie!==void 0&&!oe.objectMode&&(Q=new S("chunk",["string","Buffer","Uint8Array"],ie)),Q}M.prototype.isPaused=function(){return this._readableState.flowing===!1},M.prototype.setEncoding=function(oe){B||(B=e("string_decoder/").StringDecoder);var ie=new B(oe);this._readableState.decoder=ie,this._readableState.encoding=this._readableState.decoder.encoding;for(var Q=this._readableState.buffer.head,z="";Q!==null;)z+=ie.write(Q.data),Q=Q.next;return this._readableState.buffer.clear(),z!==""&&this._readableState.buffer.push(z),this._readableState.length=z.length,this};var P=1073741824;function L(oe){return oe>=P?oe=P:(oe--,oe|=oe>>>1,oe|=oe>>>2,oe|=oe>>>4,oe|=oe>>>8,oe|=oe>>>16,oe++),oe}function $(oe,ie){return oe<=0||ie.length===0&&ie.ended?0:ie.objectMode?1:oe!==oe?ie.flowing&&ie.length?ie.buffer.head.data.length:ie.length:(oe>ie.highWaterMark&&(ie.highWaterMark=L(oe)),oe<=ie.length?oe:ie.ended?ie.length:(ie.needReadable=!0,0))}M.prototype.read=function(oe){a("read",oe),oe=parseInt(oe,10);var ie=this._readableState,Q=oe;if(oe!==0&&(ie.emittedReadable=!1),oe===0&&ie.needReadable&&((ie.highWaterMark!==0?ie.length>=ie.highWaterMark:ie.length>0)||ie.ended))return a("read: emitReadable",ie.length,ie.ended),ie.length===0&&ie.ended?q(this):k(this),null;if(oe=$(oe,ie),oe===0&&ie.ended)return ie.length===0&&q(this),null;var z=ie.needReadable;a("need readable",z),(ie.length===0||ie.length-oe<ie.highWaterMark)&&(z=!0,a("length less than watermark",z)),ie.ended||ie.reading?(z=!1,a("reading or ended",z)):z&&(a("do read"),ie.reading=!0,ie.sync=!0,ie.length===0&&(ie.needReadable=!0),this._read(ie.highWaterMark),ie.sync=!1,ie.reading||(oe=$(Q,ie)));var Y;return oe>0?Y=Z(oe,ie):Y=null,Y===null?(ie.needReadable=ie.length<=ie.highWaterMark,oe=0):(ie.length-=oe,ie.awaitDrain=0),ie.length===0&&(ie.ended||(ie.needReadable=!0),Q!==oe&&ie.ended&&q(this)),Y!==null&&this.emit("data",Y),Y};function R(oe,ie){if(a("onEofChunk"),!ie.ended){if(ie.decoder){var Q=ie.decoder.end();Q&&Q.length&&(ie.buffer.push(Q),ie.length+=ie.objectMode?1:Q.length)}ie.ended=!0,ie.sync?k(oe):(ie.needReadable=!1,ie.emittedReadable||(ie.emittedReadable=!0,C(oe)))}}function k(oe){var ie=oe._readableState;a("emitReadable",ie.needReadable,ie.emittedReadable),ie.needReadable=!1,ie.emittedReadable||(a("emitReadable",ie.flowing),ie.emittedReadable=!0,f.nextTick(C,oe))}function C(oe){var ie=oe._readableState;a("emitReadable_",ie.destroyed,ie.length,ie.ended),!ie.destroyed&&(ie.length||ie.ended)&&(oe.emit("readable"),ie.emittedReadable=!1),ie.needReadable=!ie.flowing&&!ie.ended&&ie.length<=ie.highWaterMark,te(oe)}function O(oe,ie){ie.readingMore||(ie.readingMore=!0,f.nextTick(W,oe,ie))}function W(oe,ie){for(;!ie.reading&&!ie.ended&&(ie.length<ie.highWaterMark||ie.flowing&&ie.length===0);){var Q=ie.length;if(a("maybeReadMore read 0"),oe.read(0),Q===ie.length)break}ie.readingMore=!1}M.prototype._read=function(oe){G(this,new I("_read()"))},M.prototype.pipe=function(oe,ie){var Q=this,z=this._readableState;switch(z.pipesCount){case 0:z.pipes=oe;break;case 1:z.pipes=[z.pipes,oe];break;default:z.pipes.push(oe);break}z.pipesCount+=1,a("pipe count=%d opts=%j",z.pipesCount,ie);var Y=(!ie||ie.end!==!1)&&oe!==f.stdout&&oe!==f.stderr,fe=Y?U:Ce;z.endEmitted?f.nextTick(fe):Q.once("end",fe),oe.on("unpipe",we);function we(Fe,ze){a("onunpipe"),Fe===Q&&ze&&ze.hasUnpiped===!1&&(ze.hasUnpiped=!0,ee())}function U(){a("onend"),oe.end()}var ve=ne(Q);oe.on("drain",ve);var Se=!1;function ee(){a("cleanup"),oe.removeListener("close",Ee),oe.removeListener("finish",Ie),oe.removeListener("drain",ve),oe.removeListener("error",me),oe.removeListener("unpipe",we),Q.removeListener("end",U),Q.removeListener("end",Ce),Q.removeListener("data",se),Se=!0,z.awaitDrain&&(!oe._writableState||oe._writableState.needDrain)&&ve()}Q.on("data",se);function se(Fe){a("ondata");var ze=oe.write(Fe);a("dest.write",ze),ze===!1&&((z.pipesCount===1&&z.pipes===oe||z.pipesCount>1&&ke(z.pipes,oe)!==-1)&&!Se&&(a("false write response, pause",z.awaitDrain),z.awaitDrain++),Q.pause())}function me(Fe){a("onerror",Fe),Ce(),oe.removeListener("error",me),s(oe,"error")===0&&G(oe,Fe)}J(oe,"error",me);function Ee(){oe.removeListener("finish",Ie),Ce()}oe.once("close",Ee);function Ie(){a("onfinish"),oe.removeListener("close",Ee),Ce()}oe.once("finish",Ie);function Ce(){a("unpipe"),Q.unpipe(oe)}return oe.emit("pipe",Q),z.flowing||(a("pipe resume"),Q.resume()),oe};function ne(oe){return function(){var Q=oe._readableState;a("pipeOnDrain",Q.awaitDrain),Q.awaitDrain&&Q.awaitDrain--,Q.awaitDrain===0&&s(oe,"data")&&(Q.flowing=!0,te(oe))}}M.prototype.unpipe=function(oe){var ie=this._readableState,Q={hasUnpiped:!1};if(ie.pipesCount===0)return this;if(ie.pipesCount===1)return oe&&oe!==ie.pipes?this:(oe||(oe=ie.pipes),ie.pipes=null,ie.pipesCount=0,ie.flowing=!1,oe&&oe.emit("unpipe",this,Q),this);if(!oe){var z=ie.pipes,Y=ie.pipesCount;ie.pipes=null,ie.pipesCount=0,ie.flowing=!1;for(var fe=0;fe<Y;fe++)z[fe].emit("unpipe",this,{hasUnpiped:!1});return this}var we=ke(ie.pipes,oe);return we===-1?this:(ie.pipes.splice(we,1),ie.pipesCount-=1,ie.pipesCount===1&&(ie.pipes=ie.pipes[0]),oe.emit("unpipe",this,Q),this)},M.prototype.on=function(oe,ie){var Q=t.prototype.on.call(this,oe,ie),z=this._readableState;return oe==="data"?(z.readableListening=this.listenerCount("readable")>0,z.flowing!==!1&&this.resume()):oe==="readable"&&!z.endEmitted&&!z.readableListening&&(z.readableListening=z.needReadable=!0,z.flowing=!1,z.emittedReadable=!1,a("on readable",z.length,z.reading),z.length?k(this):z.reading||f.nextTick(ue,this)),Q},M.prototype.addListener=M.prototype.on,M.prototype.removeListener=function(oe,ie){var Q=t.prototype.removeListener.call(this,oe,ie);return oe==="readable"&&f.nextTick(he,this),Q},M.prototype.removeAllListeners=function(oe){var ie=t.prototype.removeAllListeners.apply(this,arguments);return(oe==="readable"||oe===void 0)&&f.nextTick(he,this),ie};function he(oe){var ie=oe._readableState;ie.readableListening=oe.listenerCount("readable")>0,ie.resumeScheduled&&!ie.paused?ie.flowing=!0:oe.listenerCount("data")>0&&oe.resume()}function ue(oe){a("readable nexttick read 0"),oe.read(0)}M.prototype.resume=function(){var oe=this._readableState;return oe.flowing||(a("resume"),oe.flowing=!oe.readableListening,Ae(this,oe)),oe.paused=!1,this};function Ae(oe,ie){ie.resumeScheduled||(ie.resumeScheduled=!0,f.nextTick(pe,oe,ie))}function pe(oe,ie){a("resume",ie.reading),ie.reading||oe.read(0),ie.resumeScheduled=!1,oe.emit("resume"),te(oe),ie.flowing&&!ie.reading&&oe.read(0)}M.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function te(oe){var ie=oe._readableState;for(a("flow",ie.flowing);ie.flowing&&oe.read()!==null;);}M.prototype.wrap=function(oe){var ie=this,Q=this._readableState,z=!1;oe.on("end",function(){if(a("wrapped end"),Q.decoder&&!Q.ended){var we=Q.decoder.end();we&&we.length&&ie.push(we)}ie.push(null)}),oe.on("data",function(we){if(a("wrapped data"),Q.decoder&&(we=Q.decoder.write(we)),!(Q.objectMode&&we==null)&&!(!Q.objectMode&&(!we||!we.length))){var U=ie.push(we);U||(z=!0,oe.pause())}});for(var Y in oe)this[Y]===void 0&&typeof oe[Y]=="function"&&(this[Y]=function(U){return function(){return oe[U].apply(oe,arguments)}}(Y));for(var fe=0;fe<V.length;fe++)oe.on(V[fe],this.emit.bind(this,V[fe]));return this._read=function(we){a("wrapped _read",we),z&&(z=!1,oe.resume())},this},typeof Symbol=="function"&&(M.prototype[Symbol.asyncIterator]=function(){return j===void 0&&(j=e("./internal/streams/async_iterator")),j(this)}),Object.defineProperty(M.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(M.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(M.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ie){this._readableState&&(this._readableState.flowing=ie)}}),M._fromList=Z,Object.defineProperty(M.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Z(oe,ie){if(ie.length===0)return null;var Q;return ie.objectMode?Q=ie.buffer.shift():!oe||oe>=ie.length?(ie.decoder?Q=ie.buffer.join(""):ie.buffer.length===1?Q=ie.buffer.first():Q=ie.buffer.concat(ie.length),ie.buffer.clear()):Q=ie.buffer.consume(oe,ie.decoder),Q}function q(oe){var ie=oe._readableState;a("endReadable",ie.endEmitted),ie.endEmitted||(ie.ended=!0,f.nextTick(de,ie,oe))}function de(oe,ie){if(a("endReadableNT",oe.endEmitted,oe.length),!oe.endEmitted&&oe.length===0&&(oe.endEmitted=!0,ie.readable=!1,ie.emit("end"),oe.autoDestroy)){var Q=ie._writableState;(!Q||Q.autoDestroy&&Q.finished)&&ie.destroy()}}typeof Symbol=="function"&&(M.from=function(oe,ie){return X===void 0&&(X=e("./internal/streams/from")),X(M,oe,ie)});function ke(oe,ie){for(var Q=0,z=oe.length;Q<z;Q++)if(oe[Q]===ie)return Q;return-1}}).call(this)}).call(this,e("_process"),typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,d,m){d.exports=i;var f=e("../errors").codes,c=f.ERR_METHOD_NOT_IMPLEMENTED,u=f.ERR_MULTIPLE_CALLBACK,s=f.ERR_TRANSFORM_ALREADY_TRANSFORMING,t=f.ERR_TRANSFORM_WITH_LENGTH_0,n=e("./_stream_duplex");e("inherits")(i,n);function r(a,g){var v=this._transformState;v.transforming=!1;var h=v.writecb;if(h===null)return this.emit("error",new u);v.writechunk=null,v.writecb=null,g!=null&&this.push(g),h(a);var w=this._readableState;w.reading=!1,(w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}function i(a){if(!(this instanceof i))return new i(a);n.call(this,a),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&(typeof a.transform=="function"&&(this._transform=a.transform),typeof a.flush=="function"&&(this._flush=a.flush)),this.on("prefinish",o)}function o(){var a=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(g,v){l(a,g,v)}):l(this,null,null)}i.prototype.push=function(a,g){return this._transformState.needTransform=!1,n.prototype.push.call(this,a,g)},i.prototype._transform=function(a,g,v){v(new c("_transform()"))},i.prototype._write=function(a,g,v){var h=this._transformState;if(h.writecb=v,h.writechunk=a,h.writeencoding=g,!h.transforming){var w=this._readableState;(h.needTransform||w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}},i.prototype._read=function(a){var g=this._transformState;g.writechunk!==null&&!g.transforming?(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform)):g.needTransform=!0},i.prototype._destroy=function(a,g){n.prototype._destroy.call(this,a,function(v){g(v)})};function l(a,g,v){if(g)return a.emit("error",g);if(v!=null&&a.push(v),a._writableState.length)throw new t;if(a._transformState.transforming)throw new s;return a.push(null)}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,d,m){(function(f,c){(function(){d.exports=H;function u(te){var Z=this;this.next=null,this.entry=null,this.finish=function(){pe(Z,te)}}var s;H.WritableState=V;var t={deprecate:e("util-deprecate")},n=e("./internal/streams/stream"),r=e("buffer").Buffer,i=(typeof c<"u"?c:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(te){return r.from(te)}function l(te){return r.isBuffer(te)||te instanceof i}var a=e("./internal/streams/destroy"),g=e("./internal/streams/state"),v=g.getHighWaterMark,h=e("../errors").codes,w=h.ERR_INVALID_ARG_TYPE,y=h.ERR_METHOD_NOT_IMPLEMENTED,S=h.ERR_MULTIPLE_CALLBACK,E=h.ERR_STREAM_CANNOT_PIPE,I=h.ERR_STREAM_DESTROYED,F=h.ERR_STREAM_NULL_VALUES,B=h.ERR_STREAM_WRITE_AFTER_END,j=h.ERR_UNKNOWN_ENCODING,X=a.errorOrDestroy;e("inherits")(H,n);function G(){}function V(te,Z,q){s=s||e("./_stream_duplex"),te=te||{},typeof q!="boolean"&&(q=Z instanceof s),this.objectMode=!!te.objectMode,q&&(this.objectMode=this.objectMode||!!te.writableObjectMode),this.highWaterMark=v(this,te,"writableHighWaterMark",q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var de=te.decodeStrings===!1;this.decodeStrings=!de,this.defaultEncoding=te.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ke){R(Z,ke)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=te.emitClose!==!1,this.autoDestroy=!!te.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new u(this)}V.prototype.getBuffer=function(){for(var Z=this.bufferedRequest,q=[];Z;)q.push(Z),Z=Z.next;return q},function(){try{Object.defineProperty(V.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var J;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(J=Function.prototype[Symbol.hasInstance],Object.defineProperty(H,Symbol.hasInstance,{value:function(Z){return J.call(this,Z)?!0:this!==H?!1:Z&&Z._writableState instanceof V}})):J=function(Z){return Z instanceof this};function H(te){s=s||e("./_stream_duplex");var Z=this instanceof s;if(!Z&&!J.call(H,this))return new H(te);this._writableState=new V(te,this,Z),this.writable=!0,te&&(typeof te.write=="function"&&(this._write=te.write),typeof te.writev=="function"&&(this._writev=te.writev),typeof te.destroy=="function"&&(this._destroy=te.destroy),typeof te.final=="function"&&(this._final=te.final)),n.call(this)}H.prototype.pipe=function(){X(this,new E)};function M(te,Z){var q=new B;X(te,q),f.nextTick(Z,q)}function T(te,Z,q,de){var ke;return q===null?ke=new F:typeof q!="string"&&!Z.objectMode&&(ke=new w("chunk",["string","Buffer"],q)),ke?(X(te,ke),f.nextTick(de,ke),!1):!0}H.prototype.write=function(te,Z,q){var de=this._writableState,ke=!1,oe=!de.objectMode&&l(te);return oe&&!r.isBuffer(te)&&(te=o(te)),typeof Z=="function"&&(q=Z,Z=null),oe?Z="buffer":Z||(Z=de.defaultEncoding),typeof q!="function"&&(q=G),de.ending?M(this,q):(oe||T(this,de,te,q))&&(de.pendingcb++,ke=A(this,de,oe,te,Z,q)),ke},H.prototype.cork=function(){this._writableState.corked++},H.prototype.uncork=function(){var te=this._writableState;te.corked&&(te.corked--,!te.writing&&!te.corked&&!te.bufferProcessing&&te.bufferedRequest&&O(this,te))},H.prototype.setDefaultEncoding=function(Z){if(typeof Z=="string"&&(Z=Z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Z+"").toLowerCase())>-1))throw new j(Z);return this._writableState.defaultEncoding=Z,this},Object.defineProperty(H.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(te,Z,q){return!te.objectMode&&te.decodeStrings!==!1&&typeof Z=="string"&&(Z=r.from(Z,q)),Z}Object.defineProperty(H.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function A(te,Z,q,de,ke,oe){if(!q){var ie=_(Z,de,ke);de!==ie&&(q=!0,ke="buffer",de=ie)}var Q=Z.objectMode?1:de.length;Z.length+=Q;var z=Z.length<Z.highWaterMark;if(z||(Z.needDrain=!0),Z.writing||Z.corked){var Y=Z.lastBufferedRequest;Z.lastBufferedRequest={chunk:de,encoding:ke,isBuf:q,callback:oe,next:null},Y?Y.next=Z.lastBufferedRequest:Z.bufferedRequest=Z.lastBufferedRequest,Z.bufferedRequestCount+=1}else P(te,Z,!1,Q,de,ke,oe);return z}function P(te,Z,q,de,ke,oe,ie){Z.writelen=de,Z.writecb=ie,Z.writing=!0,Z.sync=!0,Z.destroyed?Z.onwrite(new I("write")):q?te._writev(ke,Z.onwrite):te._write(ke,oe,Z.onwrite),Z.sync=!1}function L(te,Z,q,de,ke){--Z.pendingcb,q?(f.nextTick(ke,de),f.nextTick(ue,te,Z),te._writableState.errorEmitted=!0,X(te,de)):(ke(de),te._writableState.errorEmitted=!0,X(te,de),ue(te,Z))}function $(te){te.writing=!1,te.writecb=null,te.length-=te.writelen,te.writelen=0}function R(te,Z){var q=te._writableState,de=q.sync,ke=q.writecb;if(typeof ke!="function")throw new S;if($(q),Z)L(te,q,de,Z,ke);else{var oe=W(q)||te.destroyed;!oe&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&O(te,q),de?f.nextTick(k,te,q,oe,ke):k(te,q,oe,ke)}}function k(te,Z,q,de){q||C(te,Z),Z.pendingcb--,de(),ue(te,Z)}function C(te,Z){Z.length===0&&Z.needDrain&&(Z.needDrain=!1,te.emit("drain"))}function O(te,Z){Z.bufferProcessing=!0;var q=Z.bufferedRequest;if(te._writev&&q&&q.next){var de=Z.bufferedRequestCount,ke=new Array(de),oe=Z.corkedRequestsFree;oe.entry=q;for(var ie=0,Q=!0;q;)ke[ie]=q,q.isBuf||(Q=!1),q=q.next,ie+=1;ke.allBuffers=Q,P(te,Z,!0,Z.length,ke,"",oe.finish),Z.pendingcb++,Z.lastBufferedRequest=null,oe.next?(Z.corkedRequestsFree=oe.next,oe.next=null):Z.corkedRequestsFree=new u(Z),Z.bufferedRequestCount=0}else{for(;q;){var z=q.chunk,Y=q.encoding,fe=q.callback,we=Z.objectMode?1:z.length;if(P(te,Z,!1,we,z,Y,fe),q=q.next,Z.bufferedRequestCount--,Z.writing)break}q===null&&(Z.lastBufferedRequest=null)}Z.bufferedRequest=q,Z.bufferProcessing=!1}H.prototype._write=function(te,Z,q){q(new y("_write()"))},H.prototype._writev=null,H.prototype.end=function(te,Z,q){var de=this._writableState;return typeof te=="function"?(q=te,te=null,Z=null):typeof Z=="function"&&(q=Z,Z=null),te!=null&&this.write(te,Z),de.corked&&(de.corked=1,this.uncork()),de.ending||Ae(this,de,q),this},Object.defineProperty(H.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function W(te){return te.ending&&te.length===0&&te.bufferedRequest===null&&!te.finished&&!te.writing}function ne(te,Z){te._final(function(q){Z.pendingcb--,q&&X(te,q),Z.prefinished=!0,te.emit("prefinish"),ue(te,Z)})}function he(te,Z){!Z.prefinished&&!Z.finalCalled&&(typeof te._final=="function"&&!Z.destroyed?(Z.pendingcb++,Z.finalCalled=!0,f.nextTick(ne,te,Z)):(Z.prefinished=!0,te.emit("prefinish")))}function ue(te,Z){var q=W(Z);if(q&&(he(te,Z),Z.pendingcb===0&&(Z.finished=!0,te.emit("finish"),Z.autoDestroy))){var de=te._readableState;(!de||de.autoDestroy&&de.endEmitted)&&te.destroy()}return q}function Ae(te,Z,q){Z.ending=!0,ue(te,Z),q&&(Z.finished?f.nextTick(q):te.once("finish",q)),Z.ended=!0,te.writable=!1}function pe(te,Z,q){var de=te.entry;for(te.entry=null;de;){var ke=de.callback;Z.pendingcb--,ke(q),de=de.next}Z.corkedRequestsFree.next=te}Object.defineProperty(H.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Z){this._writableState&&(this._writableState.destroyed=Z)}}),H.prototype.destroy=a.destroy,H.prototype._undestroy=a.undestroy,H.prototype._destroy=function(te,Z){Z(te)}}).call(this)}).call(this,e("_process"),typeof Nt<"u"?Nt: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(e,d,m){(function(f){(function(){var c;function u(B,j,X){return j=s(j),j in B?Object.defineProperty(B,j,{value:X,enumerable:!0,configurable:!0,writable:!0}):B[j]=X,B}function s(B){var j=t(B,"string");return typeof j=="symbol"?j:String(j)}function t(B,j){if(typeof B!="object"||B===null)return B;var X=B[Symbol.toPrimitive];if(X!==void 0){var G=X.call(B,j||"default");if(typeof G!="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(B)}var n=e("./end-of-stream"),r=Symbol("lastResolve"),i=Symbol("lastReject"),o=Symbol("error"),l=Symbol("ended"),a=Symbol("lastPromise"),g=Symbol("handlePromise"),v=Symbol("stream");function h(B,j){return{value:B,done:j}}function w(B){var j=B[r];if(j!==null){var X=B[v].read();X!==null&&(B[a]=null,B[r]=null,B[i]=null,j(h(X,!1)))}}function y(B){f.nextTick(w,B)}function S(B,j){return function(X,G){B.then(function(){if(j[l]){X(h(void 0,!0));return}j[g](X,G)},G)}}var E=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((c={get stream(){return this[v]},next:function(){var j=this,X=this[o];if(X!==null)return Promise.reject(X);if(this[l])return Promise.resolve(h(void 0,!0));if(this[v].destroyed)return new Promise(function(H,M){f.nextTick(function(){j[o]?M(j[o]):H(h(void 0,!0))})});var G=this[a],V;if(G)V=new Promise(S(G,this));else{var J=this[v].read();if(J!==null)return Promise.resolve(h(J,!1));V=new Promise(this[g])}return this[a]=V,V}},u(c,Symbol.asyncIterator,function(){return this}),u(c,"return",function(){var j=this;return new Promise(function(X,G){j[v].destroy(null,function(V){if(V){G(V);return}X(h(void 0,!0))})})}),c),E),F=function(j){var X,G=Object.create(I,(X={},u(X,v,{value:j,writable:!0}),u(X,r,{value:null,writable:!0}),u(X,i,{value:null,writable:!0}),u(X,o,{value:null,writable:!0}),u(X,l,{value:j._readableState.endEmitted,writable:!0}),u(X,g,{value:function(J,H){var M=G[v].read();M?(G[a]=null,G[r]=null,G[i]=null,J(h(M,!1))):(G[r]=J,G[i]=H)},writable:!0}),X));return G[a]=null,n(j,function(V){if(V&&V.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=G[i];J!==null&&(G[a]=null,G[r]=null,G[i]=null,J(V)),G[o]=V;return}var H=G[r];H!==null&&(G[a]=null,G[r]=null,G[i]=null,H(h(void 0,!0))),G[l]=!0}),j.on("readable",y.bind(null,G)),G};d.exports=F}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,d,m){function f(w,y){var S=Object.keys(w);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(w);y&&(E=E.filter(function(I){return Object.getOwnPropertyDescriptor(w,I).enumerable})),S.push.apply(S,E)}return S}function c(w){for(var y=1;y<arguments.length;y++){var S=arguments[y]!=null?arguments[y]:{};y%2?f(Object(S),!0).forEach(function(E){u(w,E,S[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(S)):f(Object(S)).forEach(function(E){Object.defineProperty(w,E,Object.getOwnPropertyDescriptor(S,E))})}return w}function u(w,y,S){return y=r(y),y in w?Object.defineProperty(w,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):w[y]=S,w}function s(w,y){if(!(w instanceof y))throw new TypeError("Cannot call a class as a function")}function t(w,y){for(var S=0;S<y.length;S++){var E=y[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,r(E.key),E)}}function n(w,y,S){return y&&t(w.prototype,y),S&&t(w,S),Object.defineProperty(w,"prototype",{writable:!1}),w}function r(w){var y=i(w,"string");return typeof y=="symbol"?y:String(y)}function i(w,y){if(typeof w!="object"||w===null)return w;var S=w[Symbol.toPrimitive];if(S!==void 0){var E=S.call(w,y||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(w)}var o=e("buffer"),l=o.Buffer,a=e("util"),g=a.inspect,v=g&&g.custom||"inspect";function h(w,y,S){l.prototype.copy.call(w,y,S)}d.exports=function(){function w(){s(this,w),this.head=null,this.tail=null,this.length=0}return n(w,[{key:"push",value:function(S){var E={data:S,next:null};this.length>0?this.tail.next=E:this.head=E,this.tail=E,++this.length}},{key:"unshift",value:function(S){var E={data:S,next:this.head};this.length===0&&(this.tail=E),this.head=E,++this.length}},{key:"shift",value:function(){if(this.length!==0){var S=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,S}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(S){if(this.length===0)return"";for(var E=this.head,I=""+E.data;E=E.next;)I+=S+E.data;return I}},{key:"concat",value:function(S){if(this.length===0)return l.alloc(0);for(var E=l.allocUnsafe(S>>>0),I=this.head,F=0;I;)h(I.data,E,F),F+=I.data.length,I=I.next;return E}},{key:"consume",value:function(S,E){var I;return S<this.head.data.length?(I=this.head.data.slice(0,S),this.head.data=this.head.data.slice(S)):S===this.head.data.length?I=this.shift():I=E?this._getString(S):this._getBuffer(S),I}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(S){var E=this.head,I=1,F=E.data;for(S-=F.length;E=E.next;){var B=E.data,j=S>B.length?B.length:S;if(j===B.length?F+=B:F+=B.slice(0,S),S-=j,S===0){j===B.length?(++I,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=B.slice(j));break}++I}return this.length-=I,F}},{key:"_getBuffer",value:function(S){var E=l.allocUnsafe(S),I=this.head,F=1;for(I.data.copy(E),S-=I.data.length;I=I.next;){var B=I.data,j=S>B.length?B.length:S;if(B.copy(E,E.length-S,0,j),S-=j,S===0){j===B.length?(++F,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=B.slice(j));break}++F}return this.length-=F,E}},{key:v,value:function(S,E){return g(this,c(c({},E),{},{depth:0,customInspect:!1}))}}]),w}()},{buffer:220,util:188}],485:[function(e,d,m){(function(f){(function(){function c(i,o){var l=this,a=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return a||g?(o?o(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,f.nextTick(n,this,i)):f.nextTick(n,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(v){!o&&v?l._writableState?l._writableState.errorEmitted?f.nextTick(s,l):(l._writableState.errorEmitted=!0,f.nextTick(u,l,v)):f.nextTick(u,l,v):o?(f.nextTick(s,l),o(v)):f.nextTick(s,l)}),this)}function u(i,o){n(i,o),s(i)}function s(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.emit("close")}function t(){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 n(i,o){i.emit("error",o)}function r(i,o){var l=i._readableState,a=i._writableState;l&&l.autoDestroy||a&&a.autoDestroy?i.destroy(o):i.emit("error",o)}d.exports={destroy:c,undestroy:t,errorOrDestroy:r}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,d,m){var f=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function c(n){var r=!1;return function(){if(!r){r=!0;for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];n.apply(this,o)}}}function u(){}function s(n){return n.setHeader&&typeof n.abort=="function"}function t(n,r,i){if(typeof r=="function")return t(n,null,r);r||(r={}),i=c(i||u);var o=r.readable||r.readable!==!1&&n.readable,l=r.writable||r.writable!==!1&&n.writable,a=function(){n.writable||v()},g=n._writableState&&n._writableState.finished,v=function(){l=!1,g=!0,o||i.call(n)},h=n._readableState&&n._readableState.endEmitted,w=function(){o=!1,h=!0,l||i.call(n)},y=function(F){i.call(n,F)},S=function(){var F;if(o&&!h)return(!n._readableState||!n._readableState.ended)&&(F=new f),i.call(n,F);if(l&&!g)return(!n._writableState||!n._writableState.ended)&&(F=new f),i.call(n,F)},E=function(){n.req.on("finish",v)};return s(n)?(n.on("complete",v),n.on("abort",S),n.req?E():n.on("request",E)):l&&!n._writableState&&(n.on("end",a),n.on("close",a)),n.on("end",w),n.on("finish",v),r.error!==!1&&n.on("error",y),n.on("close",S),function(){n.removeListener("complete",v),n.removeListener("abort",S),n.removeListener("request",E),n.req&&n.req.removeListener("finish",v),n.removeListener("end",a),n.removeListener("close",a),n.removeListener("finish",v),n.removeListener("end",w),n.removeListener("error",y),n.removeListener("close",S)}}d.exports=t},{"../../../errors":477}],487:[function(e,d,m){d.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,d,m){var f;function c(v){var h=!1;return function(){h||(h=!0,v.apply(void 0,arguments))}}var u=e("../../../errors").codes,s=u.ERR_MISSING_ARGS,t=u.ERR_STREAM_DESTROYED;function n(v){if(v)throw v}function r(v){return v.setHeader&&typeof v.abort=="function"}function i(v,h,w,y){y=c(y);var S=!1;v.on("close",function(){S=!0}),f===void 0&&(f=e("./end-of-stream")),f(v,{readable:h,writable:w},function(I){if(I)return y(I);S=!0,y()});var E=!1;return function(I){if(!S&&!E){if(E=!0,r(v))return v.abort();if(typeof v.destroy=="function")return v.destroy();y(I||new t("pipe"))}}}function o(v){v()}function l(v,h){return v.pipe(h)}function a(v){return!v.length||typeof v[v.length-1]!="function"?n:v.pop()}function g(){for(var v=arguments.length,h=new Array(v),w=0;w<v;w++)h[w]=arguments[w];var y=a(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new s("streams");var S,E=h.map(function(I,F){var B=F<h.length-1,j=F>0;return i(I,B,j,function(X){S||(S=X),X&&E.forEach(o),!B&&(E.forEach(o),y(S))})});return h.reduce(l)}d.exports=g},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,d,m){var f=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;function c(s,t,n){return s.highWaterMark!=null?s.highWaterMark:t?s[n]:null}function u(s,t,n,r){var i=c(t,r,n);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=r?n:"highWaterMark";throw new f(o,i)}return Math.floor(i)}return s.objectMode?16:16*1024}d.exports={getHighWaterMark:u}},{"../../../errors":477}],490:[function(e,d,m){d.exports=e("events").EventEmitter},{events:422}],491:[function(e,d,m){m=d.exports=e("./lib/_stream_readable.js"),m.Stream=m,m.Readable=m,m.Writable=e("./lib/_stream_writable.js"),m.Duplex=e("./lib/_stream_duplex.js"),m.Transform=e("./lib/_stream_transform.js"),m.PassThrough=e("./lib/_stream_passthrough.js"),m.finished=e("./lib/internal/streams/end-of-stream.js"),m.pipeline=e("./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(e,d,m){var f=function(c){var u=Object.prototype,s=u.hasOwnProperty,t=Object.defineProperty||function(R,k,C){R[k]=C.value},n,r=typeof Symbol=="function"?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function a(R,k,C){return Object.defineProperty(R,k,{value:C,enumerable:!0,configurable:!0,writable:!0}),R[k]}try{a({},"")}catch{a=function(k,C,O){return k[C]=O}}function g(R,k,C,O){var W=k&&k.prototype instanceof I?k:I,ne=Object.create(W.prototype),he=new P(O||[]);return t(ne,"_invoke",{value:M(R,C,he)}),ne}c.wrap=g;function v(R,k,C){try{return{type:"normal",arg:R.call(k,C)}}catch(O){return{type:"throw",arg:O}}}var h="suspendedStart",w="suspendedYield",y="executing",S="completed",E={};function I(){}function F(){}function B(){}var j={};a(j,i,function(){return this});var X=Object.getPrototypeOf,G=X&&X(X(L([])));G&&G!==u&&s.call(G,i)&&(j=G);var V=B.prototype=I.prototype=Object.create(j);F.prototype=B,t(V,"constructor",{value:B,configurable:!0}),t(B,"constructor",{value:F,configurable:!0}),F.displayName=a(B,l,"GeneratorFunction");function J(R){["next","throw","return"].forEach(function(k){a(R,k,function(C){return this._invoke(k,C)})})}c.isGeneratorFunction=function(R){var k=typeof R=="function"&&R.constructor;return k?k===F||(k.displayName||k.name)==="GeneratorFunction":!1},c.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,B):(R.__proto__=B,a(R,l,"GeneratorFunction")),R.prototype=Object.create(V),R},c.awrap=function(R){return{__await:R}};function H(R,k){function C(ne,he,ue,Ae){var pe=v(R[ne],R,he);if(pe.type==="throw")Ae(pe.arg);else{var te=pe.arg,Z=te.value;return Z&&typeof Z=="object"&&s.call(Z,"__await")?k.resolve(Z.__await).then(function(q){C("next",q,ue,Ae)},function(q){C("throw",q,ue,Ae)}):k.resolve(Z).then(function(q){te.value=q,ue(te)},function(q){return C("throw",q,ue,Ae)})}}var O;function W(ne,he){function ue(){return new k(function(Ae,pe){C(ne,he,Ae,pe)})}return O=O?O.then(ue,ue):ue()}t(this,"_invoke",{value:W})}J(H.prototype),a(H.prototype,o,function(){return this}),c.AsyncIterator=H,c.async=function(R,k,C,O,W){W===void 0&&(W=Promise);var ne=new H(g(R,k,C,O),W);return c.isGeneratorFunction(k)?ne:ne.next().then(function(he){return he.done?he.value:ne.next()})};function M(R,k,C){var O=h;return function(ne,he){if(O===y)throw new Error("Generator is already running");if(O===S){if(ne==="throw")throw he;return $()}for(C.method=ne,C.arg=he;;){var ue=C.delegate;if(ue){var Ae=T(ue,C);if(Ae){if(Ae===E)continue;return Ae}}if(C.method==="next")C.sent=C._sent=C.arg;else if(C.method==="throw"){if(O===h)throw O=S,C.arg;C.dispatchException(C.arg)}else C.method==="return"&&C.abrupt("return",C.arg);O=y;var pe=v(R,k,C);if(pe.type==="normal"){if(O=C.done?S:w,pe.arg===E)continue;return{value:pe.arg,done:C.done}}else pe.type==="throw"&&(O=S,C.method="throw",C.arg=pe.arg)}}}function T(R,k){var C=k.method,O=R.iterator[C];if(O===n)return k.delegate=null,C==="throw"&&R.iterator.return&&(k.method="return",k.arg=n,T(R,k),k.method==="throw")||C!=="return"&&(k.method="throw",k.arg=new TypeError("The iterator does not provide a '"+C+"' method")),E;var W=v(O,R.iterator,k.arg);if(W.type==="throw")return k.method="throw",k.arg=W.arg,k.delegate=null,E;var ne=W.arg;if(!ne)return k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,E;if(ne.done)k[R.resultName]=ne.value,k.next=R.nextLoc,k.method!=="return"&&(k.method="next",k.arg=n);else return ne;return k.delegate=null,E}J(V),a(V,l,"Generator"),a(V,i,function(){return this}),a(V,"toString",function(){return"[object Generator]"});function _(R){var k={tryLoc:R[0]};1 in R&&(k.catchLoc=R[1]),2 in R&&(k.finallyLoc=R[2],k.afterLoc=R[3]),this.tryEntries.push(k)}function A(R){var k=R.completion||{};k.type="normal",delete k.arg,R.completion=k}function P(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(_,this),this.reset(!0)}c.keys=function(R){var k=Object(R),C=[];for(var O in k)C.push(O);return C.reverse(),function W(){for(;C.length;){var ne=C.pop();if(ne in k)return W.value=ne,W.done=!1,W}return W.done=!0,W}};function L(R){if(R){var k=R[i];if(k)return k.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var C=-1,O=function W(){for(;++C<R.length;)if(s.call(R,C))return W.value=R[C],W.done=!1,W;return W.value=n,W.done=!0,W};return O.next=O}}return{next:$}}c.values=L;function $(){return{value:n,done:!0}}return P.prototype={constructor:P,reset:function(R){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!R)for(var k in this)k.charAt(0)==="t"&&s.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=n)},stop:function(){this.done=!0;var R=this.tryEntries[0],k=R.completion;if(k.type==="throw")throw k.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var k=this;function C(Ae,pe){return ne.type="throw",ne.arg=R,k.next=Ae,pe&&(k.method="next",k.arg=n),!!pe}for(var O=this.tryEntries.length-1;O>=0;--O){var W=this.tryEntries[O],ne=W.completion;if(W.tryLoc==="root")return C("end");if(W.tryLoc<=this.prev){var he=s.call(W,"catchLoc"),ue=s.call(W,"finallyLoc");if(he&&ue){if(this.prev<W.catchLoc)return C(W.catchLoc,!0);if(this.prev<W.finallyLoc)return C(W.finallyLoc)}else if(he){if(this.prev<W.catchLoc)return C(W.catchLoc,!0)}else if(ue){if(this.prev<W.finallyLoc)return C(W.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(R,k){for(var C=this.tryEntries.length-1;C>=0;--C){var O=this.tryEntries[C];if(O.tryLoc<=this.prev&&s.call(O,"finallyLoc")&&this.prev<O.finallyLoc){var W=O;break}}W&&(R==="break"||R==="continue")&&W.tryLoc<=k&&k<=W.finallyLoc&&(W=null);var ne=W?W.completion:{};return ne.type=R,ne.arg=k,W?(this.method="next",this.next=W.finallyLoc,E):this.complete(ne)},complete:function(R,k){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&k&&(this.next=k),E},finish:function(R){for(var k=this.tryEntries.length-1;k>=0;--k){var C=this.tryEntries[k];if(C.finallyLoc===R)return this.complete(C.completion,C.afterLoc),A(C),E}},catch:function(R){for(var k=this.tryEntries.length-1;k>=0;--k){var C=this.tryEntries[k];if(C.tryLoc===R){var O=C.completion;if(O.type==="throw"){var W=O.arg;A(C)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(R,k,C){return this.delegate={iterator:L(R),resultName:k,nextLoc:C},this.method==="next"&&(this.arg=n),E}},c}(typeof d=="object"?d.exports:{});try{regeneratorRuntime=f}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=f:Function("r","regeneratorRuntime = r")(f)}},{}],493:[function(e,d,m){var f=e("buffer").Buffer,c=e("inherits"),u=e("hash-base"),s=new Array(16),t=[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],n=[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],r=[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],i=[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],o=[0,1518500249,1859775393,2400959708,2840853838],l=[1352829926,1548603684,1836072691,2053994217,0];function a(){u.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}c(a,u),a.prototype._update=function(){for(var E=s,I=0;I<16;++I)E[I]=this._block.readInt32LE(I*4);for(var F=this._a|0,B=this._b|0,j=this._c|0,X=this._d|0,G=this._e|0,V=this._a|0,J=this._b|0,H=this._c|0,M=this._d|0,T=this._e|0,_=0;_<80;_+=1){var A,P;_<16?(A=v(F,B,j,X,G,E[t[_]],o[0],r[_]),P=S(V,J,H,M,T,E[n[_]],l[0],i[_])):_<32?(A=h(F,B,j,X,G,E[t[_]],o[1],r[_]),P=y(V,J,H,M,T,E[n[_]],l[1],i[_])):_<48?(A=w(F,B,j,X,G,E[t[_]],o[2],r[_]),P=w(V,J,H,M,T,E[n[_]],l[2],i[_])):_<64?(A=y(F,B,j,X,G,E[t[_]],o[3],r[_]),P=h(V,J,H,M,T,E[n[_]],l[3],i[_])):(A=S(F,B,j,X,G,E[t[_]],o[4],r[_]),P=v(V,J,H,M,T,E[n[_]],l[4],i[_])),F=G,G=X,X=g(j,10),j=B,B=A,V=T,T=M,M=g(H,10),H=J,J=P}var L=this._b+j+M|0;this._b=this._c+X+T|0,this._c=this._d+G+V|0,this._d=this._e+F+J|0,this._e=this._a+B+H|0,this._a=L},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 E=f.alloc?f.alloc(20):new f(20);return E.writeInt32LE(this._a,0),E.writeInt32LE(this._b,4),E.writeInt32LE(this._c,8),E.writeInt32LE(this._d,12),E.writeInt32LE(this._e,16),E};function g(E,I){return E<<I|E>>>32-I}function v(E,I,F,B,j,X,G,V){return g(E+(I^F^B)+X+G|0,V)+j|0}function h(E,I,F,B,j,X,G,V){return g(E+(I&F|~I&B)+X+G|0,V)+j|0}function w(E,I,F,B,j,X,G,V){return g(E+((I|~F)^B)+X+G|0,V)+j|0}function y(E,I,F,B,j,X,G,V){return g(E+(I&B|F&~B)+X+G|0,V)+j|0}function S(E,I,F,B,j,X,G,V){return g(E+(I^(F|~B))+X+G|0,V)+j|0}d.exports=a},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,d,m){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var f=e("buffer"),c=f.Buffer;function u(t,n){for(var r in t)n[r]=t[r]}c.from&&c.alloc&&c.allocUnsafe&&c.allocUnsafeSlow?d.exports=f:(u(f,m),m.Buffer=s);function s(t,n,r){return c(t,n,r)}s.prototype=Object.create(c.prototype),u(c,s),s.from=function(t,n,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return c(t,n,r)},s.alloc=function(t,n,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=c(t);return n!==void 0?typeof r=="string"?i.fill(n,r):i.fill(n):i.fill(0),i},s.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return c(t)},s.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return f.SlowBuffer(t)}},{buffer:220}],495:[function(e,d,m){(function(f){(function(){var c=e("buffer"),u=c.Buffer,s={},t;for(t in c)c.hasOwnProperty(t)&&(t==="SlowBuffer"||t==="Buffer"||(s[t]=c[t]));var n=s.Buffer={};for(t in u)u.hasOwnProperty(t)&&(t==="allocUnsafe"||t==="allocUnsafeSlow"||(n[t]=u[t]));if(s.Buffer.prototype=u.prototype,(!n.from||n.from===Uint8Array.from)&&(n.from=function(r,i,o){if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof r);if(r&&typeof r.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);return u(r,i,o)}),n.alloc||(n.alloc=function(r,i,o){if(typeof r!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof r);if(r<0||r>=2*(1<<30))throw new RangeError('The value "'+r+'" is invalid for option "size"');var l=u(r);return!i||i.length===0?l.fill(0):typeof o=="string"?l.fill(i,o):l.fill(i),l}),!s.kStringMaxLength)try{s.kStringMaxLength=f.binding("buffer").kStringMaxLength}catch{}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),d.exports=s}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0});const f=e("xmlchars/xml/1.0/ed5"),c=e("xmlchars/xml/1.1/ed2"),u=e("xmlchars/xmlns/1.0/ed3");var s=f.isS,t=f.isChar,n=f.isNameStartChar,r=f.isNameChar,i=f.S_LIST,o=f.NAME_RE,l=c.isChar,a=u.isNCNameStartChar,g=u.isNCNameChar,v=u.NC_NAME_RE;const h="http://www.w3.org/XML/1998/namespace",w="http://www.w3.org/2000/xmlns/",y={__proto__:null,xml:h,xmlns:w},S={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},E=-1,I=-2,F=0,B=1,j=2,X=3,G=4,V=5,J=6,H=7,M=8,T=9,_=10,A=11,P=12,L=13,$=14,R=15,k=16,C=17,O=18,W=19,ne=20,he=21,ue=22,Ae=23,pe=24,te=25,Z=26,q=27,de=28,ke=29,oe=30,ie=31,Q=32,z=33,Y=34,fe=35,we=36,U=37,ve=38,Se=39,ee=40,se=41,me=42,Ee=43,Ie=44,Ce=9,Fe=10,ze=13,je=32,ge=33,Me=34,Be=38,Xe=39,ot=45,ct=47,st=59,rt=60,bt=61,Qe=62,et=63,_t=91,ft=93,jt=133,It=8232,ht=Tt=>Tt===Me||Tt===Xe,Dt=[Me,Xe],Ut=[...Dt,_t,Qe],wt=[...Dt,rt,ft],er=[bt,et,...i],Kt=[...i,Qe,Be,rt];function pt(Tt,be,Ne){switch(be){case"xml":Ne!==h&&Tt.fail(`xml prefix must be bound to ${h}.`);break;case"xmlns":Ne!==w&&Tt.fail(`xmlns prefix must be bound to ${w}.`);break}switch(Ne){case w:Tt.fail(be===""?`the default namespace may not be set to ${Ne}.`:`may not assign a prefix (even "xmlns") to the URI ${w}.`);break;case h:switch(be){case"xml":break;case"":Tt.fail(`the default namespace may not be set to ${Ne}.`);break;default:Tt.fail("may not assign the xml namespace to another prefix.")}break}}function Gt(Tt,be){for(const Ne of Object.keys(be))pt(Tt,Ne,be[Ne])}const kt=Tt=>v.test(Tt),xt=Tt=>o.test(Tt),$t=0,Qt=1,mt=2;m.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const qt={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class St{constructor(be){this.opt=be??{},this.fragmentOpt=!!this.opt.fragment;const Ne=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,Ne){this.nameStartCheck=a,this.nameCheck=g,this.isName=kt,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},y);const Le=this.opt.additionalNamespaces;Le!=null&&(Gt(this,Le),Object.assign(this.ns,Le))}else this.nameStartCheck=n,this.nameCheck=r,this.isName=xt,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var be;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=$t,this.attribList=[];const{fragmentOpt:Ne}=this;this.state=Ne?L:F,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=Ne,this.xmlDeclPossible=!Ne,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:Le}=this.opt;if(Le===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");Le="1.0"}this.setXMLVersion(Le),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(S),(be=this.readyHandler)===null||be===void 0||be.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(be,Ne){this[qt[be]]=Ne}off(be){this[qt[be]]=void 0}makeError(be){var Ne;let Le=(Ne=this.fileName)!==null&&Ne!==void 0?Ne:"";return this.trackPosition&&(Le.length>0&&(Le+=":"),Le+=`${this.line}:${this.column}`),Le.length>0&&(Le+=": "),new Error(Le+be)}fail(be){const Ne=this.makeError(be),Le=this.errorHandler;if(Le===void 0)throw Ne;return Le(Ne),this}write(be){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let Ne=!1;be===null?(Ne=!0,be=""):typeof be=="object"&&(be=be.toString()),this.carriedFromPrevious!==void 0&&(be=`${this.carriedFromPrevious}${be}`,this.carriedFromPrevious=void 0);let Le=be.length;const Je=be.charCodeAt(Le-1);!Ne&&(Je===ze||Je>=55296&&Je<=56319)&&(this.carriedFromPrevious=be[Le-1],Le--,be=be.slice(0,Le));const{stateTable:at}=this;for(this.chunk=be,this.i=0;this.i<Le;)at[this.state].call(this);return this.chunkPosition+=Le,Ne?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:be,i:Ne}=this;if(this.prevI=Ne,this.i=Ne+1,Ne>=be.length)return E;const Le=be.charCodeAt(Ne);if(this.column++,Le<55296){if(Le>=je||Le===Ce)return Le;switch(Le){case Fe:return this.line++,this.column=0,this.positionAtNewLine=this.position,Fe;case ze:return be.charCodeAt(Ne+1)===Fe&&(this.i=Ne+2),this.line++,this.column=0,this.positionAtNewLine=this.position,I;default:return this.fail("disallowed character."),Le}}if(Le>56319)return Le>=57344&&Le<=65533||this.fail("disallowed character."),Le;const Je=65536+(Le-55296)*1024+(be.charCodeAt(Ne+1)-56320);return this.i=Ne+2,Je>1114111&&this.fail("disallowed character."),Je}getCode11(){const{chunk:be,i:Ne}=this;if(this.prevI=Ne,this.i=Ne+1,Ne>=be.length)return E;const Le=be.charCodeAt(Ne);if(this.column++,Le<55296){if(Le>31&&Le<127||Le>159&&Le!==It||Le===Ce)return Le;switch(Le){case Fe:return this.line++,this.column=0,this.positionAtNewLine=this.position,Fe;case ze:{const at=be.charCodeAt(Ne+1);(at===Fe||at===jt)&&(this.i=Ne+2)}case jt:case It:return this.line++,this.column=0,this.positionAtNewLine=this.position,I;default:return this.fail("disallowed character."),Le}}if(Le>56319)return Le>=57344&&Le<=65533||this.fail("disallowed character."),Le;const Je=65536+(Le-55296)*1024+(be.charCodeAt(Ne+1)-56320);return this.i=Ne+2,Je>1114111&&this.fail("disallowed character."),Je}getCodeNorm(){const be=this.getCode();return be===I?Fe:be}unget(){this.i=this.prevI,this.column--}captureTo(be){let{i:Ne}=this;const{chunk:Le}=this;for(;;){const Je=this.getCode(),at=Je===I,Mt=at?Fe:Je;if(Mt===E||be.includes(Mt))return this.text+=Le.slice(Ne,this.prevI),Mt;at&&(this.text+=`${Le.slice(Ne,this.prevI)}
|
||
`,Ne=this.i)}}captureToChar(be){let{i:Ne}=this;const{chunk:Le}=this;for(;;){let Je=this.getCode();switch(Je){case I:this.text+=`${Le.slice(Ne,this.prevI)}
|
||
`,Ne=this.i,Je=Fe;break;case E:return this.text+=Le.slice(Ne),!1}if(Je===be)return this.text+=Le.slice(Ne,this.prevI),!0}}captureNameChars(){const{chunk:be,i:Ne}=this;for(;;){const Le=this.getCode();if(Le===E)return this.name+=be.slice(Ne),E;if(!r(Le))return this.name+=be.slice(Ne,this.prevI),Le===I?Fe:Le}}skipSpaces(){for(;;){const be=this.getCodeNorm();if(be===E||!s(be))return be}}setXMLVersion(be){this.currentXMLVersion=be,be==="1.0"?(this.isChar=t,this.getCode=this.getCode10):(this.isChar=l,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=B}sBeginWhitespace(){const be=this.i,Ne=this.skipSpaces();switch(this.prevI!==be&&(this.xmlDeclPossible=!1),Ne){case rt:if(this.state=R,this.text.length!==0)throw new Error("no-empty text at start");break;case E:break;default:this.unget(),this.state=L,this.xmlDeclPossible=!1}}sDoctype(){var be;const Ne=this.captureTo(Ut);switch(Ne){case Qe:{(be=this.doctypeHandler)===null||be===void 0||be.call(this,this.text),this.text="",this.state=L,this.doctype=!0;break}case E:break;default:this.text+=String.fromCodePoint(Ne),Ne===_t?this.state=G:ht(Ne)&&(this.state=X,this.q=Ne)}}sDoctypeQuote(){const be=this.q;this.captureToChar(be)&&(this.text+=String.fromCodePoint(be),this.q=null,this.state=j)}sDTD(){const be=this.captureTo(wt);be!==E&&(this.text+=String.fromCodePoint(be),be===ft?this.state=j:be===rt?this.state=J:ht(be)&&(this.state=V,this.q=be))}sDTDQuoted(){const be=this.q;this.captureToChar(be)&&(this.text+=String.fromCodePoint(be),this.state=G,this.q=null)}sDTDOpenWaka(){const be=this.getCodeNorm();switch(this.text+=String.fromCodePoint(be),be){case ge:this.state=H,this.openWakaBang="";break;case et:this.state=A;break;default:this.state=G}}sDTDOpenWakaBang(){const be=String.fromCodePoint(this.getCodeNorm()),Ne=this.openWakaBang+=be;this.text+=be,Ne!=="-"&&(this.state=Ne==="--"?M:G,this.openWakaBang="")}sDTDComment(){this.captureToChar(ot)&&(this.text+="-",this.state=T)}sDTDCommentEnding(){const be=this.getCodeNorm();this.text+=String.fromCodePoint(be),this.state=be===ot?_:M}sDTDCommentEnded(){const be=this.getCodeNorm();this.text+=String.fromCodePoint(be),be===Qe?this.state=G:(this.fail("malformed comment."),this.state=M)}sDTDPI(){this.captureToChar(et)&&(this.text+="?",this.state=P)}sDTDPIEnding(){const be=this.getCodeNorm();this.text+=String.fromCodePoint(be),be===Qe&&(this.state=G)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:be}=this;const{chunk:Ne}=this;e:for(;;)switch(this.getCode()){case I:this.entity+=`${Ne.slice(be,this.prevI)}
|
||
`,be=this.i;break;case st:{const{entityReturnState:Le}=this,Je=this.entity+Ne.slice(be,this.prevI);this.state=Le;let at;Je===""?(this.fail("empty entity name."),at="&;"):(at=this.parseEntity(Je),this.entity=""),(Le!==L||this.textHandler!==void 0)&&(this.text+=at);break e}case E:this.entity+=Ne.slice(be);break e}}sOpenWaka(){const be=this.getCode();if(n(be))this.state=Y,this.unget(),this.xmlDeclPossible=!1;else switch(be){case ct:this.state=Ee,this.xmlDeclPossible=!1;break;case ge:this.state=k,this.openWakaBang="",this.xmlDeclPossible=!1;break;case et:this.state=Ae;break;default:this.fail("disallowed character in tag name"),this.state=L,this.xmlDeclPossible=!1}}sOpenWakaBang(){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=ne,this.openWakaBang="";break;case"--":this.state=C,this.openWakaBang="";break;case"DOCTYPE":this.state=j,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(ot)&&(this.state=O)}sCommentEnding(){var be;const Ne=this.getCodeNorm();Ne===ot?(this.state=W,(be=this.commentHandler)===null||be===void 0||be.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(Ne)}`,this.state=C)}sCommentEnded(){const be=this.getCodeNorm();be!==Qe?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(be)}`,this.state=C):this.state=L}sCData(){this.captureToChar(ft)&&(this.state=he)}sCDataEnding(){const be=this.getCodeNorm();be===ft?this.state=ue:(this.text+=`]${String.fromCodePoint(be)}`,this.state=ne)}sCDataEnding2(){var be;const Ne=this.getCodeNorm();switch(Ne){case Qe:{(be=this.cdataHandler)===null||be===void 0||be.call(this,this.text),this.text="",this.state=L;break}case ft:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(Ne)}`,this.state=ne}}sPIFirstChar(){const be=this.getCodeNorm();this.nameStartCheck(be)?(this.piTarget+=String.fromCodePoint(be),this.state=pe):be===et||s(be)?(this.fail("processing instruction without a target."),this.state=be===et?Z:te):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(be),this.state=pe)}sPIRest(){const{chunk:be,i:Ne}=this;for(;;){const Le=this.getCodeNorm();if(Le===E){this.piTarget+=be.slice(Ne);return}if(!this.nameCheck(Le)){this.piTarget+=be.slice(Ne,this.prevI);const Je=Le===et;Je||s(Le)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=Je?z:q):this.state=Je?Z:te:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(Le));break}}}sPIBody(){if(this.text.length===0){const be=this.getCodeNorm();be===et?this.state=Z:s(be)||(this.text=String.fromCodePoint(be))}else this.captureToChar(et)&&(this.state=Z)}sPIEnding(){var be;const Ne=this.getCodeNorm();if(Ne===Qe){const{piTarget:Le}=this;Le.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(be=this.piHandler)===null||be===void 0||be.call(this,{target:Le,body:this.text}),this.piTarget=this.text="",this.state=L}else Ne===et?this.text+="?":(this.text+=`?${String.fromCodePoint(Ne)}`,this.state=te);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const be=this.skipSpaces();if(be===et){this.state=z;return}be!==E&&(this.state=de,this.name=String.fromCodePoint(be))}sXMLDeclName(){const be=this.captureTo(er);if(be===et){this.state=z,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(s(be)||be===bt){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 ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=be===bt?oe:ke}}sXMLDeclEq(){const be=this.getCodeNorm();if(be===et){this.state=z,this.fail("XML declaration is incomplete.");return}s(be)||(be!==bt&&this.fail("value required."),this.state=oe)}sXMLDeclValueStart(){const be=this.getCodeNorm();if(be===et){this.state=z,this.fail("XML declaration is incomplete.");return}s(be)||(ht(be)?this.q=be:(this.fail("value must be quoted."),this.q=je),this.state=ie)}sXMLDeclValue(){const be=this.captureTo([this.q,et]);if(be===et){this.state=z,this.text="",this.fail("XML declaration is incomplete.");return}if(be===E)return;const Ne=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const Le=Ne;this.xmlDecl.version=Le,/^1\.[0-9]+$/.test(Le)?this.opt.forceXMLVersion||this.setXMLVersion(Le):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(Ne)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=Ne;break;case"standalone":Ne!=="yes"&&Ne!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=Ne;break}this.name="",this.state=Q}sXMLDeclSeparator(){const be=this.getCodeNorm();if(be===et){this.state=z;return}s(be)||(this.fail("whitespace required."),this.unget()),this.state=q}sXMLDeclEnding(){var be;this.getCodeNorm()===Qe?(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."),(be=this.xmldeclHandler)===null||be===void 0||be.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=L):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var be;const Ne=this.captureNameChars();if(Ne===E)return;const Le=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=Le.ns=Object.create(null)),(be=this.openTagStartHandler)===null||be===void 0||be.call(this,Le),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),Ne){case Qe:this.openTag();break;case ct:this.state=fe;break;default:s(Ne)||this.fail("disallowed character in tag name."),this.state=we}}sOpenTagSlash(){this.getCode()===Qe?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=we)}sAttrib(){const be=this.skipSpaces();be!==E&&(n(be)?(this.unget(),this.state=U):be===Qe?this.openTag():be===ct?this.state=fe:this.fail("disallowed character in attribute name."))}sAttribName(){const be=this.captureNameChars();be===bt?this.state=Se:s(be)?this.state=ve:be===Qe?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):be!==E&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const be=this.skipSpaces();switch(be){case E:return;case bt:this.state=Se;break;default:this.fail("attribute without value."),this.text="",this.name="",be===Qe?this.openTag():n(be)?(this.unget(),this.state=U):(this.fail("disallowed character in attribute name."),this.state=we)}}sAttribValue(){const be=this.getCodeNorm();ht(be)?(this.q=be,this.state=ee):s(be)||(this.fail("unquoted attribute value."),this.state=me,this.unget())}sAttribValueQuoted(){const{q:be,chunk:Ne}=this;let{i:Le}=this;for(;;)switch(this.getCode()){case be:this.pushAttrib(this.name,this.text+Ne.slice(Le,this.prevI)),this.name=this.text="",this.q=null,this.state=se;return;case Be:this.text+=Ne.slice(Le,this.prevI),this.state=$,this.entityReturnState=ee;return;case Fe:case I:case Ce:this.text+=`${Ne.slice(Le,this.prevI)} `,Le=this.i;break;case rt:this.text+=Ne.slice(Le,this.prevI),this.fail("disallowed character.");return;case E:this.text+=Ne.slice(Le);return}}sAttribValueClosed(){const be=this.getCodeNorm();s(be)?this.state=we:be===Qe?this.openTag():be===ct?this.state=fe:n(be)?(this.fail("no whitespace between attributes."),this.unget(),this.state=U):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const be=this.captureTo(Kt);switch(be){case Be:this.state=$,this.entityReturnState=me;break;case rt:this.fail("disallowed character.");break;case E:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",be===Qe?this.openTag():this.state=we}}sCloseTag(){const be=this.captureNameChars();be===Qe?this.closeTag():s(be)?this.state=Ie:be!==E&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case Qe:this.closeTag();break;case E:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:be,forbiddenState:Ne}=this;const{chunk:Le,textHandler:Je}=this;e:for(;;)switch(this.getCode()){case rt:{if(this.state=R,Je!==void 0){const{text:at}=this,Mt=Le.slice(be,this.prevI);at.length!==0?(Je(at+Mt),this.text=""):Mt.length!==0&&Je(Mt)}Ne=$t;break e}case Be:this.state=$,this.entityReturnState=L,Je!==void 0&&(this.text+=Le.slice(be,this.prevI)),Ne=$t;break e;case ft:switch(Ne){case $t:Ne=Qt;break;case Qt:Ne=mt;break;case mt:break;default:throw new Error("impossible state")}break;case Qe:Ne===mt&&this.fail('the string "]]>" is disallowed in char data.'),Ne=$t;break;case I:Je!==void 0&&(this.text+=`${Le.slice(be,this.prevI)}
|
||
`),be=this.i,Ne=$t;break;case E:Je!==void 0&&(this.text+=Le.slice(be));break e;default:Ne=$t}this.forbiddenState=Ne}handleTextOutsideRoot(){let{i:be}=this;const{chunk:Ne,textHandler:Le}=this;let Je=!1;e:for(;;){const at=this.getCode();switch(at){case rt:{if(this.state=R,Le!==void 0){const{text:Mt}=this,rr=Ne.slice(be,this.prevI);Mt.length!==0?(Le(Mt+rr),this.text=""):rr.length!==0&&Le(rr)}break e}case Be:this.state=$,this.entityReturnState=L,Le!==void 0&&(this.text+=Ne.slice(be,this.prevI)),Je=!0;break e;case I:Le!==void 0&&(this.text+=`${Ne.slice(be,this.prevI)}
|
||
`),be=this.i;break;case E:Le!==void 0&&(this.text+=Ne.slice(be));break e;default:s(at)||(Je=!0)}}Je&&(!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))}pushAttribNS(be,Ne){var Le;const{prefix:Je,local:at}=this.qname(be),Mt={name:be,prefix:Je,local:at,value:Ne};if(this.attribList.push(Mt),(Le=this.attributeHandler)===null||Le===void 0||Le.call(this,Mt),Je==="xmlns"){const rr=Ne.trim();this.currentXMLVersion==="1.0"&&rr===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[at]=rr,pt(this,at,rr)}else if(be==="xmlns"){const rr=Ne.trim();this.topNS[""]=rr,pt(this,"",rr)}}pushAttribPlain(be,Ne){var Le;const Je={name:be,value:Ne};this.attribList.push(Je),(Le=this.attributeHandler)===null||Le===void 0||Le.call(this,Je)}end(){var be,Ne;this.sawRoot||this.fail("document must contain a root element.");const{tags:Le}=this;for(;Le.length>0;){const at=Le.pop();this.fail(`unclosed tag: ${at.name}`)}this.state!==F&&this.state!==L&&this.fail("unexpected end.");const{text:Je}=this;return Je.length!==0&&((be=this.textHandler)===null||be===void 0||be.call(this,Je),this.text=""),this._closed=!0,(Ne=this.endHandler)===null||Ne===void 0||Ne.call(this),this._init(),this}resolve(be){var Ne,Le;let Je=this.topNS[be];if(Je!==void 0)return Je;const{tags:at}=this;for(let Mt=at.length-1;Mt>=0;Mt--)if(Je=at[Mt].ns[be],Je!==void 0)return Je;return Je=this.ns[be],Je!==void 0?Je:(Le=(Ne=this.opt).resolvePrefix)===null||Le===void 0?void 0:Le.call(Ne,be)}qname(be){const Ne=be.indexOf(":");if(Ne===-1)return{prefix:"",local:be};const Le=be.slice(Ne+1),Je=be.slice(0,Ne);return(Je===""||Le===""||Le.includes(":"))&&this.fail(`malformed name: ${be}.`),{prefix:Je,local:Le}}processAttribsNS(){var be;const{attribList:Ne}=this,Le=this.tag;{const{prefix:Mt,local:rr}=this.qname(Le.name);Le.prefix=Mt,Le.local=rr;const vr=Le.uri=(be=this.resolve(Mt))!==null&&be!==void 0?be:"";Mt!==""&&(Mt==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),vr===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(Mt)}.`),Le.uri=Mt))}if(Ne.length===0)return;const{attributes:Je}=Le,at=new Set;for(const Mt of Ne){const{name:rr,prefix:vr,local:Dr}=Mt;let yr,lr;vr===""?(yr=rr==="xmlns"?w:"",lr=rr):(yr=this.resolve(vr),yr===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(vr)}.`),yr=vr),lr=`{${yr}}${Dr}`),at.has(lr)&&this.fail(`duplicate attribute: ${lr}.`),at.add(lr),Mt.uri=yr,Je[rr]=Mt}this.attribList=[]}processAttribsPlain(){const{attribList:be}=this,Ne=this.tag.attributes;for(const{name:Le,value:Je}of be)Ne[Le]!==void 0&&this.fail(`duplicate attribute: ${Le}.`),Ne[Le]=Je;this.attribList=[]}openTag(){var be;this.processAttribs();const{tags:Ne}=this,Le=this.tag;Le.isSelfClosing=!1,(be=this.openTagHandler)===null||be===void 0||be.call(this,Le),Ne.push(Le),this.state=L,this.name=""}openSelfClosingTag(){var be,Ne,Le;this.processAttribs();const{tags:Je}=this,at=this.tag;at.isSelfClosing=!0,(be=this.openTagHandler)===null||be===void 0||be.call(this,at),(Ne=this.closeTagHandler)===null||Ne===void 0||Ne.call(this,at),(this.tag=(Le=Je[Je.length-1])!==null&&Le!==void 0?Le:null)===null&&(this.closedRoot=!0),this.state=L,this.name=""}closeTag(){const{tags:be,name:Ne}=this;if(this.state=L,this.name="",Ne===""){this.fail("weird empty close tag."),this.text+="</>";return}const Le=this.closeTagHandler;let Je=be.length;for(;Je-- >0;){const at=this.tag=be.pop();if(this.topNS=at.ns,Le==null||Le(at),at.name===Ne)break;this.fail("unexpected close tag.")}Je===0?this.closedRoot=!0:Je<0&&(this.fail(`unmatched closing tag: ${Ne}.`),this.text+=`</${Ne}>`)}parseEntity(be){if(be[0]!=="#"){const Le=this.ENTITIES[be];return Le!==void 0?Le:(this.fail(this.isName(be)?"undefined entity.":"disallowed character in entity name."),`&${be};`)}let Ne=NaN;return be[1]==="x"&&/^#x[0-9a-f]+$/i.test(be)?Ne=parseInt(be.slice(2),16):/^#[0-9]+$/.test(be)&&(Ne=parseInt(be.slice(1),10)),this.isChar(Ne)?String.fromCodePoint(Ne):(this.fail("malformed character entity."),`&${be};`)}}m.SaxesParser=St},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,d,m){var f=e("safe-buffer").Buffer;function c(u,s){this._block=f.alloc(u),this._finalSize=s,this._blockSize=u,this._len=0}c.prototype.update=function(u,s){typeof u=="string"&&(s=s||"utf8",u=f.from(u,s));for(var t=this._block,n=this._blockSize,r=u.length,i=this._len,o=0;o<r;){for(var l=i%n,a=Math.min(r-o,n-l),g=0;g<a;g++)t[l+g]=u[o+g];i+=a,o+=a,i%n===0&&this._update(t)}return this._len+=r,this},c.prototype.digest=function(u){var s=this._len%this._blockSize;this._block[s]=128,this._block.fill(0,s+1),s>=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=this._len*8;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(t&4294967295)>>>0,r=(t-n)/4294967296;this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return u?i.toString(u):i},c.prototype._update=function(){throw new Error("_update must be implemented by subclass")},d.exports=c},{"safe-buffer":494}],498:[function(e,d,m){var f=d.exports=function(u){u=u.toLowerCase();var s=f[u];if(!s)throw new Error(u+" is not supported (we accept pull requests)");return new s};f.sha=e("./sha"),f.sha1=e("./sha1"),f.sha224=e("./sha224"),f.sha256=e("./sha256"),f.sha384=e("./sha384"),f.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,d,m){var f=e("inherits"),c=e("./hash"),u=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],t=new Array(80);function n(){this.init(),this._w=t,c.call(this,64,56)}f(n,c),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function r(l){return l<<5|l>>>27}function i(l){return l<<30|l>>>2}function o(l,a,g,v){return l===0?a&g|~a&v:l===2?a&g|a&v|g&v:a^g^v}n.prototype._update=function(l){for(var a=this._w,g=this._a|0,v=this._b|0,h=this._c|0,w=this._d|0,y=this._e|0,S=0;S<16;++S)a[S]=l.readInt32BE(S*4);for(;S<80;++S)a[S]=a[S-3]^a[S-8]^a[S-14]^a[S-16];for(var E=0;E<80;++E){var I=~~(E/20),F=r(g)+o(I,v,h,w)+y+a[E]+s[I]|0;y=w,w=h,h=i(v),v=g,g=F}this._a=g+this._a|0,this._b=v+this._b|0,this._c=h+this._c|0,this._d=w+this._d|0,this._e=y+this._e|0},n.prototype._hash=function(){var l=u.allocUnsafe(20);return l.writeInt32BE(this._a|0,0),l.writeInt32BE(this._b|0,4),l.writeInt32BE(this._c|0,8),l.writeInt32BE(this._d|0,12),l.writeInt32BE(this._e|0,16),l},d.exports=n},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,d,m){var f=e("inherits"),c=e("./hash"),u=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],t=new Array(80);function n(){this.init(),this._w=t,c.call(this,64,56)}f(n,c),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function r(a){return a<<1|a>>>31}function i(a){return a<<5|a>>>27}function o(a){return a<<30|a>>>2}function l(a,g,v,h){return a===0?g&v|~g&h:a===2?g&v|g&h|v&h:g^v^h}n.prototype._update=function(a){for(var g=this._w,v=this._a|0,h=this._b|0,w=this._c|0,y=this._d|0,S=this._e|0,E=0;E<16;++E)g[E]=a.readInt32BE(E*4);for(;E<80;++E)g[E]=r(g[E-3]^g[E-8]^g[E-14]^g[E-16]);for(var I=0;I<80;++I){var F=~~(I/20),B=i(v)+l(F,h,w,y)+S+g[I]+s[F]|0;S=y,y=w,w=o(h),h=v,v=B}this._a=v+this._a|0,this._b=h+this._b|0,this._c=w+this._c|0,this._d=y+this._d|0,this._e=S+this._e|0},n.prototype._hash=function(){var a=u.allocUnsafe(20);return a.writeInt32BE(this._a|0,0),a.writeInt32BE(this._b|0,4),a.writeInt32BE(this._c|0,8),a.writeInt32BE(this._d|0,12),a.writeInt32BE(this._e|0,16),a},d.exports=n},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,d,m){var f=e("inherits"),c=e("./sha256"),u=e("./hash"),s=e("safe-buffer").Buffer,t=new Array(64);function n(){this.init(),this._w=t,u.call(this,64,56)}f(n,c),n.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},n.prototype._hash=function(){var r=s.allocUnsafe(28);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r},d.exports=n},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,d,m){var f=e("inherits"),c=e("./hash"),u=e("safe-buffer").Buffer,s=[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],t=new Array(64);function n(){this.init(),this._w=t,c.call(this,64,56)}f(n,c),n.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};function r(v,h,w){return w^v&(h^w)}function i(v,h,w){return v&h|w&(v|h)}function o(v){return(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10)}function l(v){return(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7)}function a(v){return(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3}function g(v){return(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10}n.prototype._update=function(v){for(var h=this._w,w=this._a|0,y=this._b|0,S=this._c|0,E=this._d|0,I=this._e|0,F=this._f|0,B=this._g|0,j=this._h|0,X=0;X<16;++X)h[X]=v.readInt32BE(X*4);for(;X<64;++X)h[X]=g(h[X-2])+h[X-7]+a(h[X-15])+h[X-16]|0;for(var G=0;G<64;++G){var V=j+l(I)+r(I,F,B)+s[G]+h[G]|0,J=o(w)+i(w,y,S)|0;j=B,B=F,F=I,I=E+V|0,E=S,S=y,y=w,w=V+J|0}this._a=w+this._a|0,this._b=y+this._b|0,this._c=S+this._c|0,this._d=E+this._d|0,this._e=I+this._e|0,this._f=F+this._f|0,this._g=B+this._g|0,this._h=j+this._h|0},n.prototype._hash=function(){var v=u.allocUnsafe(32);return v.writeInt32BE(this._a,0),v.writeInt32BE(this._b,4),v.writeInt32BE(this._c,8),v.writeInt32BE(this._d,12),v.writeInt32BE(this._e,16),v.writeInt32BE(this._f,20),v.writeInt32BE(this._g,24),v.writeInt32BE(this._h,28),v},d.exports=n},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,d,m){var f=e("inherits"),c=e("./sha512"),u=e("./hash"),s=e("safe-buffer").Buffer,t=new Array(160);function n(){this.init(),this._w=t,u.call(this,128,112)}f(n,c),n.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},n.prototype._hash=function(){var r=s.allocUnsafe(48);function i(o,l,a){r.writeInt32BE(o,a),r.writeInt32BE(l,a+4)}return i(this._ah,this._al,0),i(this._bh,this._bl,8),i(this._ch,this._cl,16),i(this._dh,this._dl,24),i(this._eh,this._el,32),i(this._fh,this._fl,40),r},d.exports=n},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,d,m){var f=e("inherits"),c=e("./hash"),u=e("safe-buffer").Buffer,s=[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],t=new Array(160);function n(){this.init(),this._w=t,c.call(this,128,112)}f(n,c),n.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};function r(y,S,E){return E^y&(S^E)}function i(y,S,E){return y&S|E&(y|S)}function o(y,S){return(y>>>28|S<<4)^(S>>>2|y<<30)^(S>>>7|y<<25)}function l(y,S){return(y>>>14|S<<18)^(y>>>18|S<<14)^(S>>>9|y<<23)}function a(y,S){return(y>>>1|S<<31)^(y>>>8|S<<24)^y>>>7}function g(y,S){return(y>>>1|S<<31)^(y>>>8|S<<24)^(y>>>7|S<<25)}function v(y,S){return(y>>>19|S<<13)^(S>>>29|y<<3)^y>>>6}function h(y,S){return(y>>>19|S<<13)^(S>>>29|y<<3)^(y>>>6|S<<26)}function w(y,S){return y>>>0<S>>>0?1:0}n.prototype._update=function(y){for(var S=this._w,E=this._ah|0,I=this._bh|0,F=this._ch|0,B=this._dh|0,j=this._eh|0,X=this._fh|0,G=this._gh|0,V=this._hh|0,J=this._al|0,H=this._bl|0,M=this._cl|0,T=this._dl|0,_=this._el|0,A=this._fl|0,P=this._gl|0,L=this._hl|0,$=0;$<32;$+=2)S[$]=y.readInt32BE($*4),S[$+1]=y.readInt32BE($*4+4);for(;$<160;$+=2){var R=S[$-30],k=S[$-15*2+1],C=a(R,k),O=g(k,R);R=S[$-2*2],k=S[$-2*2+1];var W=v(R,k),ne=h(k,R),he=S[$-7*2],ue=S[$-7*2+1],Ae=S[$-16*2],pe=S[$-16*2+1],te=O+ue|0,Z=C+he+w(te,O)|0;te=te+ne|0,Z=Z+W+w(te,ne)|0,te=te+pe|0,Z=Z+Ae+w(te,pe)|0,S[$]=Z,S[$+1]=te}for(var q=0;q<160;q+=2){Z=S[q],te=S[q+1];var de=i(E,I,F),ke=i(J,H,M),oe=o(E,J),ie=o(J,E),Q=l(j,_),z=l(_,j),Y=s[q],fe=s[q+1],we=r(j,X,G),U=r(_,A,P),ve=L+z|0,Se=V+Q+w(ve,L)|0;ve=ve+U|0,Se=Se+we+w(ve,U)|0,ve=ve+fe|0,Se=Se+Y+w(ve,fe)|0,ve=ve+te|0,Se=Se+Z+w(ve,te)|0;var ee=ie+ke|0,se=oe+de+w(ee,ie)|0;V=G,L=P,G=X,P=A,X=j,A=_,_=T+ve|0,j=B+Se+w(_,T)|0,B=F,T=M,F=I,M=H,I=E,H=J,J=ve+ee|0,E=Se+se+w(J,ve)|0}this._al=this._al+J|0,this._bl=this._bl+H|0,this._cl=this._cl+M|0,this._dl=this._dl+T|0,this._el=this._el+_|0,this._fl=this._fl+A|0,this._gl=this._gl+P|0,this._hl=this._hl+L|0,this._ah=this._ah+E+w(this._al,J)|0,this._bh=this._bh+I+w(this._bl,H)|0,this._ch=this._ch+F+w(this._cl,M)|0,this._dh=this._dh+B+w(this._dl,T)|0,this._eh=this._eh+j+w(this._el,_)|0,this._fh=this._fh+X+w(this._fl,A)|0,this._gh=this._gh+G+w(this._gl,P)|0,this._hh=this._hh+V+w(this._hl,L)|0},n.prototype._hash=function(){var y=u.allocUnsafe(64);function S(E,I,F){y.writeInt32BE(E,F),y.writeInt32BE(I,F+4)}return S(this._ah,this._al,0),S(this._bh,this._bl,8),S(this._ch,this._cl,16),S(this._dh,this._dl,24),S(this._eh,this._el,32),S(this._fh,this._fl,40),S(this._gh,this._gl,48),S(this._hh,this._hl,56),y},d.exports=n},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,d,m){d.exports=u;var f=e("events").EventEmitter,c=e("inherits");c(u,f),u.Readable=e("readable-stream/readable.js"),u.Writable=e("readable-stream/writable.js"),u.Duplex=e("readable-stream/duplex.js"),u.Transform=e("readable-stream/transform.js"),u.PassThrough=e("readable-stream/passthrough.js"),u.Stream=u;function u(){f.call(this)}u.prototype.pipe=function(s,t){var n=this;function r(h){s.writable&&s.write(h)===!1&&n.pause&&n.pause()}n.on("data",r);function i(){n.readable&&n.resume&&n.resume()}s.on("drain",i),!s._isStdio&&(!t||t.end!==!1)&&(n.on("end",l),n.on("close",a));var o=!1;function l(){o||(o=!0,s.end())}function a(){o||(o=!0,typeof s.destroy=="function"&&s.destroy())}function g(h){if(v(),f.listenerCount(this,"error")===0)throw h}n.on("error",g),s.on("error",g);function v(){n.removeListener("data",r),s.removeListener("drain",i),n.removeListener("end",l),n.removeListener("close",a),n.removeListener("error",g),s.removeListener("error",g),n.removeListener("end",v),n.removeListener("close",v),s.removeListener("close",v)}return n.on("end",v),n.on("close",v),s.on("close",v),s.emit("pipe",n),s}},{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(e,d,m){var f={}.toString;d.exports=Array.isArray||function(c){return f.call(c)=="[object Array]"}},{}],507:[function(e,d,m){d.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,d,m){var f=e("process-nextick-args"),c=Object.keys||function(g){var v=[];for(var h in g)v.push(h);return v};d.exports=o;var u=Object.create(e("core-util-is"));u.inherits=e("inherits");var s=e("./_stream_readable"),t=e("./_stream_writable");u.inherits(o,s);for(var n=c(t.prototype),r=0;r<n.length;r++){var i=n[r];o.prototype[i]||(o.prototype[i]=t.prototype[i])}function o(g){if(!(this instanceof o))return new o(g);s.call(this,g),t.call(this,g),g&&g.readable===!1&&(this.readable=!1),g&&g.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,g&&g.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",l)}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function l(){this.allowHalfOpen||this._writableState.ended||f.nextTick(a,this)}function a(g){g.end()}Object.defineProperty(o.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=g,this._writableState.destroyed=g)}}),o.prototype._destroy=function(g,v){this.push(null),this.end(),f.nextTick(v,g)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,d,m){d.exports=u;var f=e("./_stream_transform"),c=Object.create(e("core-util-is"));c.inherits=e("inherits"),c.inherits(u,f);function u(s){if(!(this instanceof u))return new u(s);f.call(this,s)}u.prototype._transform=function(s,t,n){n(null,s)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,d,m){(function(f,c){(function(){var u=e("process-nextick-args");d.exports=B;var s=e("isarray"),t;B.ReadableState=F,e("events").EventEmitter;var n=function(Z,q){return Z.listeners(q).length},r=e("./internal/streams/stream"),i=e("safe-buffer").Buffer,o=(typeof c<"u"?c:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function l(Z){return i.from(Z)}function a(Z){return i.isBuffer(Z)||Z instanceof o}var g=Object.create(e("core-util-is"));g.inherits=e("inherits");var v=e("util"),h=void 0;v&&v.debuglog?h=v.debuglog("stream"):h=function(){};var w=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy"),S;g.inherits(B,r);var E=["error","close","destroy","pause","resume"];function I(Z,q,de){if(typeof Z.prependListener=="function")return Z.prependListener(q,de);!Z._events||!Z._events[q]?Z.on(q,de):s(Z._events[q])?Z._events[q].unshift(de):Z._events[q]=[de,Z._events[q]]}function F(Z,q){t=t||e("./_stream_duplex"),Z=Z||{};var de=q instanceof t;this.objectMode=!!Z.objectMode,de&&(this.objectMode=this.objectMode||!!Z.readableObjectMode);var ke=Z.highWaterMark,oe=Z.readableHighWaterMark,ie=this.objectMode?16:16*1024;ke||ke===0?this.highWaterMark=ke:de&&(oe||oe===0)?this.highWaterMark=oe:this.highWaterMark=ie,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Z.encoding&&(S||(S=e("string_decoder/").StringDecoder),this.decoder=new S(Z.encoding),this.encoding=Z.encoding)}function B(Z){if(t=t||e("./_stream_duplex"),!(this instanceof B))return new B(Z);this._readableState=new F(Z,this),this.readable=!0,Z&&(typeof Z.read=="function"&&(this._read=Z.read),typeof Z.destroy=="function"&&(this._destroy=Z.destroy)),r.call(this)}Object.defineProperty(B.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Z){this._readableState&&(this._readableState.destroyed=Z)}}),B.prototype.destroy=y.destroy,B.prototype._undestroy=y.undestroy,B.prototype._destroy=function(Z,q){this.push(null),q(Z)},B.prototype.push=function(Z,q){var de=this._readableState,ke;return de.objectMode?ke=!0:typeof Z=="string"&&(q=q||de.defaultEncoding,q!==de.encoding&&(Z=i.from(Z,q),q=""),ke=!0),j(this,Z,q,!1,ke)},B.prototype.unshift=function(Z){return j(this,Z,null,!0,!1)};function j(Z,q,de,ke,oe){var ie=Z._readableState;if(q===null)ie.reading=!1,T(Z,ie);else{var Q;oe||(Q=G(ie,q)),Q?Z.emit("error",Q):ie.objectMode||q&&q.length>0?(typeof q!="string"&&!ie.objectMode&&Object.getPrototypeOf(q)!==i.prototype&&(q=l(q)),ke?ie.endEmitted?Z.emit("error",new Error("stream.unshift() after end event")):X(Z,ie,q,!0):ie.ended?Z.emit("error",new Error("stream.push() after EOF")):(ie.reading=!1,ie.decoder&&!de?(q=ie.decoder.write(q),ie.objectMode||q.length!==0?X(Z,ie,q,!1):P(Z,ie)):X(Z,ie,q,!1))):ke||(ie.reading=!1)}return V(ie)}function X(Z,q,de,ke){q.flowing&&q.length===0&&!q.sync?(Z.emit("data",de),Z.read(0)):(q.length+=q.objectMode?1:de.length,ke?q.buffer.unshift(de):q.buffer.push(de),q.needReadable&&_(Z)),P(Z,q)}function G(Z,q){var de;return!a(q)&&typeof q!="string"&&q!==void 0&&!Z.objectMode&&(de=new TypeError("Invalid non-string/buffer chunk")),de}function V(Z){return!Z.ended&&(Z.needReadable||Z.length<Z.highWaterMark||Z.length===0)}B.prototype.isPaused=function(){return this._readableState.flowing===!1},B.prototype.setEncoding=function(Z){return S||(S=e("string_decoder/").StringDecoder),this._readableState.decoder=new S(Z),this._readableState.encoding=Z,this};var J=8388608;function H(Z){return Z>=J?Z=J:(Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++),Z}function M(Z,q){return Z<=0||q.length===0&&q.ended?0:q.objectMode?1:Z!==Z?q.flowing&&q.length?q.buffer.head.data.length:q.length:(Z>q.highWaterMark&&(q.highWaterMark=H(Z)),Z<=q.length?Z:q.ended?q.length:(q.needReadable=!0,0))}B.prototype.read=function(Z){h("read",Z),Z=parseInt(Z,10);var q=this._readableState,de=Z;if(Z!==0&&(q.emittedReadable=!1),Z===0&&q.needReadable&&(q.length>=q.highWaterMark||q.ended))return h("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?Ae(this):_(this),null;if(Z=M(Z,q),Z===0&&q.ended)return q.length===0&&Ae(this),null;var ke=q.needReadable;h("need readable",ke),(q.length===0||q.length-Z<q.highWaterMark)&&(ke=!0,h("length less than watermark",ke)),q.ended||q.reading?(ke=!1,h("reading or ended",ke)):ke&&(h("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(Z=M(de,q)));var oe;return Z>0?oe=W(Z,q):oe=null,oe===null?(q.needReadable=!0,Z=0):q.length-=Z,q.length===0&&(q.ended||(q.needReadable=!0),de!==Z&&q.ended&&Ae(this)),oe!==null&&this.emit("data",oe),oe};function T(Z,q){if(!q.ended){if(q.decoder){var de=q.decoder.end();de&&de.length&&(q.buffer.push(de),q.length+=q.objectMode?1:de.length)}q.ended=!0,_(Z)}}function _(Z){var q=Z._readableState;q.needReadable=!1,q.emittedReadable||(h("emitReadable",q.flowing),q.emittedReadable=!0,q.sync?u.nextTick(A,Z):A(Z))}function A(Z){h("emit readable"),Z.emit("readable"),O(Z)}function P(Z,q){q.readingMore||(q.readingMore=!0,u.nextTick(L,Z,q))}function L(Z,q){for(var de=q.length;!q.reading&&!q.flowing&&!q.ended&&q.length<q.highWaterMark&&(h("maybeReadMore read 0"),Z.read(0),de!==q.length);)de=q.length;q.readingMore=!1}B.prototype._read=function(Z){this.emit("error",new Error("_read() is not implemented"))},B.prototype.pipe=function(Z,q){var de=this,ke=this._readableState;switch(ke.pipesCount){case 0:ke.pipes=Z;break;case 1:ke.pipes=[ke.pipes,Z];break;default:ke.pipes.push(Z);break}ke.pipesCount+=1,h("pipe count=%d opts=%j",ke.pipesCount,q);var oe=(!q||q.end!==!1)&&Z!==f.stdout&&Z!==f.stderr,ie=oe?z:me;ke.endEmitted?u.nextTick(ie):de.once("end",ie),Z.on("unpipe",Q);function Q(Ee,Ie){h("onunpipe"),Ee===de&&Ie&&Ie.hasUnpiped===!1&&(Ie.hasUnpiped=!0,we())}function z(){h("onend"),Z.end()}var Y=$(de);Z.on("drain",Y);var fe=!1;function we(){h("cleanup"),Z.removeListener("close",ee),Z.removeListener("finish",se),Z.removeListener("drain",Y),Z.removeListener("error",Se),Z.removeListener("unpipe",Q),de.removeListener("end",z),de.removeListener("end",me),de.removeListener("data",ve),fe=!0,ke.awaitDrain&&(!Z._writableState||Z._writableState.needDrain)&&Y()}var U=!1;de.on("data",ve);function ve(Ee){h("ondata"),U=!1;var Ie=Z.write(Ee);Ie===!1&&!U&&((ke.pipesCount===1&&ke.pipes===Z||ke.pipesCount>1&&te(ke.pipes,Z)!==-1)&&!fe&&(h("false write response, pause",ke.awaitDrain),ke.awaitDrain++,U=!0),de.pause())}function Se(Ee){h("onerror",Ee),me(),Z.removeListener("error",Se),n(Z,"error")===0&&Z.emit("error",Ee)}I(Z,"error",Se);function ee(){Z.removeListener("finish",se),me()}Z.once("close",ee);function se(){h("onfinish"),Z.removeListener("close",ee),me()}Z.once("finish",se);function me(){h("unpipe"),de.unpipe(Z)}return Z.emit("pipe",de),ke.flowing||(h("pipe resume"),de.resume()),Z};function $(Z){return function(){var q=Z._readableState;h("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&n(Z,"data")&&(q.flowing=!0,O(Z))}}B.prototype.unpipe=function(Z){var q=this._readableState,de={hasUnpiped:!1};if(q.pipesCount===0)return this;if(q.pipesCount===1)return Z&&Z!==q.pipes?this:(Z||(Z=q.pipes),q.pipes=null,q.pipesCount=0,q.flowing=!1,Z&&Z.emit("unpipe",this,de),this);if(!Z){var ke=q.pipes,oe=q.pipesCount;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var ie=0;ie<oe;ie++)ke[ie].emit("unpipe",this,{hasUnpiped:!1});return this}var Q=te(q.pipes,Z);return Q===-1?this:(q.pipes.splice(Q,1),q.pipesCount-=1,q.pipesCount===1&&(q.pipes=q.pipes[0]),Z.emit("unpipe",this,de),this)},B.prototype.on=function(Z,q){var de=r.prototype.on.call(this,Z,q);if(Z==="data")this._readableState.flowing!==!1&&this.resume();else if(Z==="readable"){var ke=this._readableState;!ke.endEmitted&&!ke.readableListening&&(ke.readableListening=ke.needReadable=!0,ke.emittedReadable=!1,ke.reading?ke.length&&_(this):u.nextTick(R,this))}return de},B.prototype.addListener=B.prototype.on;function R(Z){h("readable nexttick read 0"),Z.read(0)}B.prototype.resume=function(){var Z=this._readableState;return Z.flowing||(h("resume"),Z.flowing=!0,k(this,Z)),this};function k(Z,q){q.resumeScheduled||(q.resumeScheduled=!0,u.nextTick(C,Z,q))}function C(Z,q){q.reading||(h("resume read 0"),Z.read(0)),q.resumeScheduled=!1,q.awaitDrain=0,Z.emit("resume"),O(Z),q.flowing&&!q.reading&&Z.read(0)}B.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function O(Z){var q=Z._readableState;for(h("flow",q.flowing);q.flowing&&Z.read()!==null;);}B.prototype.wrap=function(Z){var q=this,de=this._readableState,ke=!1;Z.on("end",function(){if(h("wrapped end"),de.decoder&&!de.ended){var Q=de.decoder.end();Q&&Q.length&&q.push(Q)}q.push(null)}),Z.on("data",function(Q){if(h("wrapped data"),de.decoder&&(Q=de.decoder.write(Q)),!(de.objectMode&&Q==null)&&!(!de.objectMode&&(!Q||!Q.length))){var z=q.push(Q);z||(ke=!0,Z.pause())}});for(var oe in Z)this[oe]===void 0&&typeof Z[oe]=="function"&&(this[oe]=function(Q){return function(){return Z[Q].apply(Z,arguments)}}(oe));for(var ie=0;ie<E.length;ie++)Z.on(E[ie],this.emit.bind(this,E[ie]));return this._read=function(Q){h("wrapped _read",Q),ke&&(ke=!1,Z.resume())},this},Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),B._fromList=W;function W(Z,q){if(q.length===0)return null;var de;return q.objectMode?de=q.buffer.shift():!Z||Z>=q.length?(q.decoder?de=q.buffer.join(""):q.buffer.length===1?de=q.buffer.head.data:de=q.buffer.concat(q.length),q.buffer.clear()):de=ne(Z,q.buffer,q.decoder),de}function ne(Z,q,de){var ke;return Z<q.head.data.length?(ke=q.head.data.slice(0,Z),q.head.data=q.head.data.slice(Z)):Z===q.head.data.length?ke=q.shift():ke=de?he(Z,q):ue(Z,q),ke}function he(Z,q){var de=q.head,ke=1,oe=de.data;for(Z-=oe.length;de=de.next;){var ie=de.data,Q=Z>ie.length?ie.length:Z;if(Q===ie.length?oe+=ie:oe+=ie.slice(0,Z),Z-=Q,Z===0){Q===ie.length?(++ke,de.next?q.head=de.next:q.head=q.tail=null):(q.head=de,de.data=ie.slice(Q));break}++ke}return q.length-=ke,oe}function ue(Z,q){var de=i.allocUnsafe(Z),ke=q.head,oe=1;for(ke.data.copy(de),Z-=ke.data.length;ke=ke.next;){var ie=ke.data,Q=Z>ie.length?ie.length:Z;if(ie.copy(de,de.length-Z,0,Q),Z-=Q,Z===0){Q===ie.length?(++oe,ke.next?q.head=ke.next:q.head=q.tail=null):(q.head=ke,ke.data=ie.slice(Q));break}++oe}return q.length-=oe,de}function Ae(Z){var q=Z._readableState;if(q.length>0)throw new Error('"endReadable()" called on non-empty stream');q.endEmitted||(q.ended=!0,u.nextTick(pe,q,Z))}function pe(Z,q){!Z.endEmitted&&Z.length===0&&(Z.endEmitted=!0,q.readable=!1,q.emit("end"))}function te(Z,q){for(var de=0,ke=Z.length;de<ke;de++)if(Z[de]===q)return de;return-1}}).call(this)}).call(this,e("_process"),typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(e,d,m){d.exports=s;var f=e("./_stream_duplex"),c=Object.create(e("core-util-is"));c.inherits=e("inherits"),c.inherits(s,f);function u(r,i){var o=this._transformState;o.transforming=!1;var l=o.writecb;if(!l)return this.emit("error",new Error("write callback called multiple times"));o.writechunk=null,o.writecb=null,i!=null&&this.push(i),l(r);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function s(r){if(!(this instanceof s))return new s(r);f.call(this,r),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",t)}function t(){var r=this;typeof this._flush=="function"?this._flush(function(i,o){n(r,i,o)}):n(this,null,null)}s.prototype.push=function(r,i){return this._transformState.needTransform=!1,f.prototype.push.call(this,r,i)},s.prototype._transform=function(r,i,o){throw new Error("_transform() is not implemented")},s.prototype._write=function(r,i,o){var l=this._transformState;if(l.writecb=o,l.writechunk=r,l.writeencoding=i,!l.transforming){var a=this._readableState;(l.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},s.prototype._read=function(r){var i=this._transformState;i.writechunk!==null&&i.writecb&&!i.transforming?(i.transforming=!0,this._transform(i.writechunk,i.writeencoding,i.afterTransform)):i.needTransform=!0},s.prototype._destroy=function(r,i){var o=this;f.prototype._destroy.call(this,r,function(l){i(l),o.emit("close")})};function n(r,i,o){if(i)return r.emit("error",i);if(o!=null&&r.push(o),r._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(r._transformState.transforming)throw new Error("Calling transform done when still transforming");return r.push(null)}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,d,m){(function(f,c,u){(function(){var s=e("process-nextick-args");d.exports=I;function t(C){var O=this;this.next=null,this.entry=null,this.finish=function(){k(O,C)}}var n=!f.browser&&["v0.10","v0.9."].indexOf(f.version.slice(0,5))>-1?u:s.nextTick,r;I.WritableState=S;var i=Object.create(e("core-util-is"));i.inherits=e("inherits");var o={deprecate:e("util-deprecate")},l=e("./internal/streams/stream"),a=e("safe-buffer").Buffer,g=(typeof c<"u"?c:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function v(C){return a.from(C)}function h(C){return a.isBuffer(C)||C instanceof g}var w=e("./internal/streams/destroy");i.inherits(I,l);function y(){}function S(C,O){r=r||e("./_stream_duplex"),C=C||{};var W=O instanceof r;this.objectMode=!!C.objectMode,W&&(this.objectMode=this.objectMode||!!C.writableObjectMode);var ne=C.highWaterMark,he=C.writableHighWaterMark,ue=this.objectMode?16:16*1024;ne||ne===0?this.highWaterMark=ne:W&&(he||he===0)?this.highWaterMark=he:this.highWaterMark=ue,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 Ae=C.decodeStrings===!1;this.decodeStrings=!Ae,this.defaultEncoding=C.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(pe){H(O,pe)},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 t(this)}S.prototype.getBuffer=function(){for(var O=this.bufferedRequest,W=[];O;)W.push(O),O=O.next;return W},function(){try{Object.defineProperty(S.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var E;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(E=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(C){return E.call(this,C)?!0:this!==I?!1:C&&C._writableState instanceof S}})):E=function(C){return C instanceof this};function I(C){if(r=r||e("./_stream_duplex"),!E.call(I,this)&&!(this instanceof r))return new I(C);this._writableState=new S(C,this),this.writable=!0,C&&(typeof C.write=="function"&&(this._write=C.write),typeof C.writev=="function"&&(this._writev=C.writev),typeof C.destroy=="function"&&(this._destroy=C.destroy),typeof C.final=="function"&&(this._final=C.final)),l.call(this)}I.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function F(C,O){var W=new Error("write after end");C.emit("error",W),s.nextTick(O,W)}function B(C,O,W,ne){var he=!0,ue=!1;return W===null?ue=new TypeError("May not write null values to stream"):typeof W!="string"&&W!==void 0&&!O.objectMode&&(ue=new TypeError("Invalid non-string/buffer chunk")),ue&&(C.emit("error",ue),s.nextTick(ne,ue),he=!1),he}I.prototype.write=function(C,O,W){var ne=this._writableState,he=!1,ue=!ne.objectMode&&h(C);return ue&&!a.isBuffer(C)&&(C=v(C)),typeof O=="function"&&(W=O,O=null),ue?O="buffer":O||(O=ne.defaultEncoding),typeof W!="function"&&(W=y),ne.ended?F(this,W):(ue||B(this,ne,C,W))&&(ne.pendingcb++,he=X(this,ne,ue,C,O,W)),he},I.prototype.cork=function(){var C=this._writableState;C.corked++},I.prototype.uncork=function(){var C=this._writableState;C.corked&&(C.corked--,!C.writing&&!C.corked&&!C.bufferProcessing&&C.bufferedRequest&&_(this,C))},I.prototype.setDefaultEncoding=function(O){if(typeof O=="string"&&(O=O.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((O+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+O);return this._writableState.defaultEncoding=O,this};function j(C,O,W){return!C.objectMode&&C.decodeStrings!==!1&&typeof O=="string"&&(O=a.from(O,W)),O}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(C,O,W,ne,he,ue){if(!W){var Ae=j(O,ne,he);ne!==Ae&&(W=!0,he="buffer",ne=Ae)}var pe=O.objectMode?1:ne.length;O.length+=pe;var te=O.length<O.highWaterMark;if(te||(O.needDrain=!0),O.writing||O.corked){var Z=O.lastBufferedRequest;O.lastBufferedRequest={chunk:ne,encoding:he,isBuf:W,callback:ue,next:null},Z?Z.next=O.lastBufferedRequest:O.bufferedRequest=O.lastBufferedRequest,O.bufferedRequestCount+=1}else G(C,O,!1,pe,ne,he,ue);return te}function G(C,O,W,ne,he,ue,Ae){O.writelen=ne,O.writecb=Ae,O.writing=!0,O.sync=!0,W?C._writev(he,O.onwrite):C._write(he,ue,O.onwrite),O.sync=!1}function V(C,O,W,ne,he){--O.pendingcb,W?(s.nextTick(he,ne),s.nextTick($,C,O),C._writableState.errorEmitted=!0,C.emit("error",ne)):(he(ne),C._writableState.errorEmitted=!0,C.emit("error",ne),$(C,O))}function J(C){C.writing=!1,C.writecb=null,C.length-=C.writelen,C.writelen=0}function H(C,O){var W=C._writableState,ne=W.sync,he=W.writecb;if(J(W),O)V(C,W,ne,O,he);else{var ue=A(W);!ue&&!W.corked&&!W.bufferProcessing&&W.bufferedRequest&&_(C,W),ne?n(M,C,W,ue,he):M(C,W,ue,he)}}function M(C,O,W,ne){W||T(C,O),O.pendingcb--,ne(),$(C,O)}function T(C,O){O.length===0&&O.needDrain&&(O.needDrain=!1,C.emit("drain"))}function _(C,O){O.bufferProcessing=!0;var W=O.bufferedRequest;if(C._writev&&W&&W.next){var ne=O.bufferedRequestCount,he=new Array(ne),ue=O.corkedRequestsFree;ue.entry=W;for(var Ae=0,pe=!0;W;)he[Ae]=W,W.isBuf||(pe=!1),W=W.next,Ae+=1;he.allBuffers=pe,G(C,O,!0,O.length,he,"",ue.finish),O.pendingcb++,O.lastBufferedRequest=null,ue.next?(O.corkedRequestsFree=ue.next,ue.next=null):O.corkedRequestsFree=new t(O),O.bufferedRequestCount=0}else{for(;W;){var te=W.chunk,Z=W.encoding,q=W.callback,de=O.objectMode?1:te.length;if(G(C,O,!1,de,te,Z,q),W=W.next,O.bufferedRequestCount--,O.writing)break}W===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=W,O.bufferProcessing=!1}I.prototype._write=function(C,O,W){W(new Error("_write() is not implemented"))},I.prototype._writev=null,I.prototype.end=function(C,O,W){var ne=this._writableState;typeof C=="function"?(W=C,C=null,O=null):typeof O=="function"&&(W=O,O=null),C!=null&&this.write(C,O),ne.corked&&(ne.corked=1,this.uncork()),ne.ending||R(this,ne,W)};function A(C){return C.ending&&C.length===0&&C.bufferedRequest===null&&!C.finished&&!C.writing}function P(C,O){C._final(function(W){O.pendingcb--,W&&C.emit("error",W),O.prefinished=!0,C.emit("prefinish"),$(C,O)})}function L(C,O){!O.prefinished&&!O.finalCalled&&(typeof C._final=="function"?(O.pendingcb++,O.finalCalled=!0,s.nextTick(P,C,O)):(O.prefinished=!0,C.emit("prefinish")))}function $(C,O){var W=A(O);return W&&(L(C,O),O.pendingcb===0&&(O.finished=!0,C.emit("finish"))),W}function R(C,O,W){O.ending=!0,$(C,O),W&&(O.finished?s.nextTick(W):C.once("finish",W)),O.ended=!0,C.writable=!1}function k(C,O,W){var ne=C.entry;for(C.entry=null;ne;){var he=ne.callback;O.pendingcb--,he(W),ne=ne.next}O.corkedRequestsFree.next=C}Object.defineProperty(I.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(C){this._writableState&&(this._writableState.destroyed=C)}}),I.prototype.destroy=w.destroy,I.prototype._undestroy=w.undestroy,I.prototype._destroy=function(C,O){this.end(),O(C)}}).call(this)}).call(this,e("_process"),typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{},e("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(e,d,m){function f(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var c=e("safe-buffer").Buffer,u=e("util");function s(t,n,r){t.copy(n,r)}d.exports=function(){function t(){f(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,o=""+i.data;i=i.next;)o+=r+i.data;return o},t.prototype.concat=function(r){if(this.length===0)return c.alloc(0);for(var i=c.allocUnsafe(r>>>0),o=this.head,l=0;o;)s(o.data,i,l),l+=o.data.length,o=o.next;return i},t}(),u&&u.inspect&&u.inspect.custom&&(d.exports.prototype[u.inspect.custom]=function(){var t=u.inspect({length:this.length});return this.constructor.name+" "+t})},{"safe-buffer":520,util:188}],514:[function(e,d,m){var f=e("process-nextick-args");function c(t,n){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,f.nextTick(s,this,t)):f.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(l){!n&&l?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,f.nextTick(s,r,l)):f.nextTick(s,r,l):n&&n(l)}),this)}function u(){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 s(t,n){t.emit("error",n)}d.exports={destroy:c,undestroy:u}},{"process-nextick-args":466}],515:[function(e,d,m){arguments[4][490][0].apply(m,arguments)},{dup:490,events:422}],516:[function(e,d,m){d.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,d,m){m=d.exports=e("./lib/_stream_readable.js"),m.Stream=m,m.Readable=m,m.Writable=e("./lib/_stream_writable.js"),m.Duplex=e("./lib/_stream_duplex.js"),m.Transform=e("./lib/_stream_transform.js"),m.PassThrough=e("./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(e,d,m){d.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,d,m){d.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,d,m){arguments[4][217][0].apply(m,arguments)},{buffer:220,dup:217}],521:[function(e,d,m){arguments[4][218][0].apply(m,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,d,m){arguments[4][218][0].apply(m,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,d,m){(function(f,c){(function(){var u=e("process/browser.js").nextTick,s=Function.prototype.apply,t=Array.prototype.slice,n={},r=0;m.setTimeout=function(){return new i(s.call(setTimeout,window,arguments),clearTimeout)},m.setInterval=function(){return new i(s.call(setInterval,window,arguments),clearInterval)},m.clearTimeout=m.clearInterval=function(o){o.close()};function i(o,l){this._id=o,this._clearFn=l}i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},m.enroll=function(o,l){clearTimeout(o._idleTimeoutId),o._idleTimeout=l},m.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},m._unrefActive=m.active=function(o){clearTimeout(o._idleTimeoutId);var l=o._idleTimeout;l>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},l))},m.setImmediate=typeof f=="function"?f:function(o){var l=r++,a=arguments.length<2?!1:t.call(arguments,1);return n[l]=!0,u(function(){n[l]&&(a?o.apply(null,a):o.call(null),m.clearImmediate(l))}),l},m.clearImmediate=typeof c=="function"?c:function(o){delete n[o]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,d,m){(function(f){(function(){d.exports=c;function c(s,t){if(u("noDeprecation"))return s;var n=!1;function r(){if(!n){if(u("throwDeprecation"))throw new Error(t);u("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return s.apply(this,arguments)}return r}function u(s){try{if(!f.localStorage)return!1}catch{return!1}var t=f.localStorage[s];return t==null?!1:String(t).toLowerCase()==="true"}}).call(this)}).call(this,typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],525:[function(e,d,m){typeof Object.create=="function"?d.exports=function(c,u){c.super_=u,c.prototype=Object.create(u.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}})}:d.exports=function(c,u){c.super_=u;var s=function(){};s.prototype=u.prototype,c.prototype=new s,c.prototype.constructor=c}},{}],526:[function(e,d,m){d.exports=function(c){return c&&typeof c=="object"&&typeof c.copy=="function"&&typeof c.fill=="function"&&typeof c.readUInt8=="function"}},{}],527:[function(e,d,m){(function(f,c){(function(){var u=/%[sdj%]/g;m.format=function(R){if(!B(R)){for(var k=[],C=0;C<arguments.length;C++)k.push(n(arguments[C]));return k.join(" ")}for(var C=1,O=arguments,W=O.length,ne=String(R).replace(u,function(ue){if(ue==="%%")return"%";if(C>=W)return ue;switch(ue){case"%s":return String(O[C++]);case"%d":return Number(O[C++]);case"%j":try{return JSON.stringify(O[C++])}catch{return"[Circular]"}default:return ue}}),he=O[C];C<W;he=O[++C])E(he)||!V(he)?ne+=" "+he:ne+=" "+n(he);return ne},m.deprecate=function(R,k){if(X(c.process))return function(){return m.deprecate(R,k).apply(this,arguments)};if(f.noDeprecation===!0)return R;var C=!1;function O(){if(!C){if(f.throwDeprecation)throw new Error(k);f.traceDeprecation?console.trace(k):console.error(k),C=!0}return R.apply(this,arguments)}return O};var s={},t;m.debuglog=function(R){if(X(t)&&(t={}.NODE_DEBUG||""),R=R.toUpperCase(),!s[R])if(new RegExp("\\b"+R+"\\b","i").test(t)){var k=f.pid;s[R]=function(){var C=m.format.apply(m,arguments);console.error("%s %d: %s",R,k,C)}}else s[R]=function(){};return s[R]};function n(R,k){var C={seen:[],stylize:i};return arguments.length>=3&&(C.depth=arguments[2]),arguments.length>=4&&(C.colors=arguments[3]),S(k)?C.showHidden=k:k&&m._extend(C,k),X(C.showHidden)&&(C.showHidden=!1),X(C.depth)&&(C.depth=2),X(C.colors)&&(C.colors=!1),X(C.customInspect)&&(C.customInspect=!0),C.colors&&(C.stylize=r),l(C,R,C.depth)}m.inspect=n,n.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]},n.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r(R,k){var C=n.styles[k];return C?"\x1B["+n.colors[C][0]+"m"+R+"\x1B["+n.colors[C][1]+"m":R}function i(R,k){return R}function o(R){var k={};return R.forEach(function(C,O){k[C]=!0}),k}function l(R,k,C){if(R.customInspect&&k&&M(k.inspect)&&k.inspect!==m.inspect&&!(k.constructor&&k.constructor.prototype===k)){var O=k.inspect(C,R);return B(O)||(O=l(R,O,C)),O}var W=a(R,k);if(W)return W;var ne=Object.keys(k),he=o(ne);if(R.showHidden&&(ne=Object.getOwnPropertyNames(k)),H(k)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return g(k);if(ne.length===0){if(M(k)){var ue=k.name?": "+k.name:"";return R.stylize("[Function"+ue+"]","special")}if(G(k))return R.stylize(RegExp.prototype.toString.call(k),"regexp");if(J(k))return R.stylize(Date.prototype.toString.call(k),"date");if(H(k))return g(k)}var Ae="",pe=!1,te=["{","}"];if(y(k)&&(pe=!0,te=["[","]"]),M(k)){var Z=k.name?": "+k.name:"";Ae=" [Function"+Z+"]"}if(G(k)&&(Ae=" "+RegExp.prototype.toString.call(k)),J(k)&&(Ae=" "+Date.prototype.toUTCString.call(k)),H(k)&&(Ae=" "+g(k)),ne.length===0&&(!pe||k.length==0))return te[0]+Ae+te[1];if(C<0)return G(k)?R.stylize(RegExp.prototype.toString.call(k),"regexp"):R.stylize("[Object]","special");R.seen.push(k);var q;return pe?q=v(R,k,C,he,ne):q=ne.map(function(de){return h(R,k,C,he,de,pe)}),R.seen.pop(),w(q,Ae,te)}function a(R,k){if(X(k))return R.stylize("undefined","undefined");if(B(k)){var C="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return R.stylize(C,"string")}if(F(k))return R.stylize(""+k,"number");if(S(k))return R.stylize(""+k,"boolean");if(E(k))return R.stylize("null","null")}function g(R){return"["+Error.prototype.toString.call(R)+"]"}function v(R,k,C,O,W){for(var ne=[],he=0,ue=k.length;he<ue;++he)$(k,String(he))?ne.push(h(R,k,C,O,String(he),!0)):ne.push("");return W.forEach(function(Ae){Ae.match(/^\d+$/)||ne.push(h(R,k,C,O,Ae,!0))}),ne}function h(R,k,C,O,W,ne){var he,ue,Ae;if(Ae=Object.getOwnPropertyDescriptor(k,W)||{value:k[W]},Ae.get?Ae.set?ue=R.stylize("[Getter/Setter]","special"):ue=R.stylize("[Getter]","special"):Ae.set&&(ue=R.stylize("[Setter]","special")),$(O,W)||(he="["+W+"]"),ue||(R.seen.indexOf(Ae.value)<0?(E(C)?ue=l(R,Ae.value,null):ue=l(R,Ae.value,C-1),ue.indexOf(`
|
||
`)>-1&&(ne?ue=ue.split(`
|
||
`).map(function(pe){return" "+pe}).join(`
|
||
`).substr(2):ue=`
|
||
`+ue.split(`
|
||
`).map(function(pe){return" "+pe}).join(`
|
||
`))):ue=R.stylize("[Circular]","special")),X(he)){if(ne&&W.match(/^\d+$/))return ue;he=JSON.stringify(""+W),he.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(he=he.substr(1,he.length-2),he=R.stylize(he,"name")):(he=he.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),he=R.stylize(he,"string"))}return he+": "+ue}function w(R,k,C){var O=R.reduce(function(W,ne){return ne.indexOf(`
|
||
`)>=0,W+ne.replace(/\u001b\[\d\d?m/g,"").length+1},0);return O>60?C[0]+(k===""?"":k+`
|
||
`)+" "+R.join(`,
|
||
`)+" "+C[1]:C[0]+k+" "+R.join(", ")+" "+C[1]}function y(R){return Array.isArray(R)}m.isArray=y;function S(R){return typeof R=="boolean"}m.isBoolean=S;function E(R){return R===null}m.isNull=E;function I(R){return R==null}m.isNullOrUndefined=I;function F(R){return typeof R=="number"}m.isNumber=F;function B(R){return typeof R=="string"}m.isString=B;function j(R){return typeof R=="symbol"}m.isSymbol=j;function X(R){return R===void 0}m.isUndefined=X;function G(R){return V(R)&&_(R)==="[object RegExp]"}m.isRegExp=G;function V(R){return typeof R=="object"&&R!==null}m.isObject=V;function J(R){return V(R)&&_(R)==="[object Date]"}m.isDate=J;function H(R){return V(R)&&(_(R)==="[object Error]"||R instanceof Error)}m.isError=H;function M(R){return typeof R=="function"}m.isFunction=M;function T(R){return R===null||typeof R=="boolean"||typeof R=="number"||typeof R=="string"||typeof R=="symbol"||typeof R>"u"}m.isPrimitive=T,m.isBuffer=e("./support/isBuffer");function _(R){return Object.prototype.toString.call(R)}function A(R){return R<10?"0"+R.toString(10):R.toString(10)}var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var R=new Date,k=[A(R.getHours()),A(R.getMinutes()),A(R.getSeconds())].join(":");return[R.getDate(),P[R.getMonth()],k].join(" ")}m.log=function(){console.log("%s - %s",L(),m.format.apply(m,arguments))},m.inherits=e("inherits"),m._extend=function(R,k){if(!k||!V(k))return R;for(var C=Object.keys(k),O=C.length;O--;)R[C[O]]=k[C[O]];return R};function $(R,k){return Object.prototype.hasOwnProperty.call(R,k)}}).call(this)}).call(this,e("_process"),typeof Nt<"u"?Nt:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),Object.defineProperty(m,"v1",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(m,"v3",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(m,"v4",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(m,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(m,"NIL",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(m,"version",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(m,"validate",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(m,"stringify",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(m,"parse",{enumerable:!0,get:function(){return o.default}});var f=l(e("./v1.js")),c=l(e("./v3.js")),u=l(e("./v4.js")),s=l(e("./v5.js")),t=l(e("./nil.js")),n=l(e("./version.js")),r=l(e("./validate.js")),i=l(e("./stringify.js")),o=l(e("./parse.js"));function l(a){return a&&a.__esModule?a:{default:a}}},{"./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(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;function f(h){if(typeof h=="string"){const w=unescape(encodeURIComponent(h));h=new Uint8Array(w.length);for(let y=0;y<w.length;++y)h[y]=w.charCodeAt(y)}return c(s(t(h),h.length*8))}function c(h){const w=[],y=h.length*32,S="0123456789abcdef";for(let E=0;E<y;E+=8){const I=h[E>>5]>>>E%32&255,F=parseInt(S.charAt(I>>>4&15)+S.charAt(I&15),16);w.push(F)}return w}function u(h){return(h+64>>>9<<4)+14+1}function s(h,w){h[w>>5]|=128<<w%32,h[u(w)-1]=w;let y=1732584193,S=-271733879,E=-1732584194,I=271733878;for(let F=0;F<h.length;F+=16){const B=y,j=S,X=E,G=I;y=o(y,S,E,I,h[F],7,-680876936),I=o(I,y,S,E,h[F+1],12,-389564586),E=o(E,I,y,S,h[F+2],17,606105819),S=o(S,E,I,y,h[F+3],22,-1044525330),y=o(y,S,E,I,h[F+4],7,-176418897),I=o(I,y,S,E,h[F+5],12,1200080426),E=o(E,I,y,S,h[F+6],17,-1473231341),S=o(S,E,I,y,h[F+7],22,-45705983),y=o(y,S,E,I,h[F+8],7,1770035416),I=o(I,y,S,E,h[F+9],12,-1958414417),E=o(E,I,y,S,h[F+10],17,-42063),S=o(S,E,I,y,h[F+11],22,-1990404162),y=o(y,S,E,I,h[F+12],7,1804603682),I=o(I,y,S,E,h[F+13],12,-40341101),E=o(E,I,y,S,h[F+14],17,-1502002290),S=o(S,E,I,y,h[F+15],22,1236535329),y=l(y,S,E,I,h[F+1],5,-165796510),I=l(I,y,S,E,h[F+6],9,-1069501632),E=l(E,I,y,S,h[F+11],14,643717713),S=l(S,E,I,y,h[F],20,-373897302),y=l(y,S,E,I,h[F+5],5,-701558691),I=l(I,y,S,E,h[F+10],9,38016083),E=l(E,I,y,S,h[F+15],14,-660478335),S=l(S,E,I,y,h[F+4],20,-405537848),y=l(y,S,E,I,h[F+9],5,568446438),I=l(I,y,S,E,h[F+14],9,-1019803690),E=l(E,I,y,S,h[F+3],14,-187363961),S=l(S,E,I,y,h[F+8],20,1163531501),y=l(y,S,E,I,h[F+13],5,-1444681467),I=l(I,y,S,E,h[F+2],9,-51403784),E=l(E,I,y,S,h[F+7],14,1735328473),S=l(S,E,I,y,h[F+12],20,-1926607734),y=a(y,S,E,I,h[F+5],4,-378558),I=a(I,y,S,E,h[F+8],11,-2022574463),E=a(E,I,y,S,h[F+11],16,1839030562),S=a(S,E,I,y,h[F+14],23,-35309556),y=a(y,S,E,I,h[F+1],4,-1530992060),I=a(I,y,S,E,h[F+4],11,1272893353),E=a(E,I,y,S,h[F+7],16,-155497632),S=a(S,E,I,y,h[F+10],23,-1094730640),y=a(y,S,E,I,h[F+13],4,681279174),I=a(I,y,S,E,h[F],11,-358537222),E=a(E,I,y,S,h[F+3],16,-722521979),S=a(S,E,I,y,h[F+6],23,76029189),y=a(y,S,E,I,h[F+9],4,-640364487),I=a(I,y,S,E,h[F+12],11,-421815835),E=a(E,I,y,S,h[F+15],16,530742520),S=a(S,E,I,y,h[F+2],23,-995338651),y=g(y,S,E,I,h[F],6,-198630844),I=g(I,y,S,E,h[F+7],10,1126891415),E=g(E,I,y,S,h[F+14],15,-1416354905),S=g(S,E,I,y,h[F+5],21,-57434055),y=g(y,S,E,I,h[F+12],6,1700485571),I=g(I,y,S,E,h[F+3],10,-1894986606),E=g(E,I,y,S,h[F+10],15,-1051523),S=g(S,E,I,y,h[F+1],21,-2054922799),y=g(y,S,E,I,h[F+8],6,1873313359),I=g(I,y,S,E,h[F+15],10,-30611744),E=g(E,I,y,S,h[F+6],15,-1560198380),S=g(S,E,I,y,h[F+13],21,1309151649),y=g(y,S,E,I,h[F+4],6,-145523070),I=g(I,y,S,E,h[F+11],10,-1120210379),E=g(E,I,y,S,h[F+2],15,718787259),S=g(S,E,I,y,h[F+9],21,-343485551),y=n(y,B),S=n(S,j),E=n(E,X),I=n(I,G)}return[y,S,E,I]}function t(h){if(h.length===0)return[];const w=h.length*8,y=new Uint32Array(u(w));for(let S=0;S<w;S+=8)y[S>>5]|=(h[S/8]&255)<<S%32;return y}function n(h,w){const y=(h&65535)+(w&65535);return(h>>16)+(w>>16)+(y>>16)<<16|y&65535}function r(h,w){return h<<w|h>>>32-w}function i(h,w,y,S,E,I){return n(r(n(n(w,h),n(S,I)),E),y)}function o(h,w,y,S,E,I,F){return i(w&y|~w&S,h,w,E,I,F)}function l(h,w,y,S,E,I,F){return i(w&S|y&~S,h,w,E,I,F)}function a(h,w,y,S,E,I,F){return i(w^y^S,h,w,E,I,F)}function g(h,w,y,S,E,I,F){return i(y^(w|~S),h,w,E,I,F)}var v=f;m.default=v},{}],530:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var f="00000000-0000-0000-0000-000000000000";m.default=f},{}],531:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var f=c(e("./validate.js"));function c(t){return t&&t.__esModule?t:{default:t}}function u(t){if(!(0,f.default)(t))throw TypeError("Invalid UUID");let n;const r=new Uint8Array(16);return r[0]=(n=parseInt(t.slice(0,8),16))>>>24,r[1]=n>>>16&255,r[2]=n>>>8&255,r[3]=n&255,r[4]=(n=parseInt(t.slice(9,13),16))>>>8,r[5]=n&255,r[6]=(n=parseInt(t.slice(14,18),16))>>>8,r[7]=n&255,r[8]=(n=parseInt(t.slice(19,23),16))>>>8,r[9]=n&255,r[10]=(n=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=n/4294967296&255,r[12]=n>>>24&255,r[13]=n>>>16&255,r[14]=n>>>8&255,r[15]=n&255,r}var s=u;m.default=s},{"./validate.js":541}],532:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var f=/^(?:[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;m.default=f},{}],533:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=u;let f;const c=new Uint8Array(16);function u(){if(!f&&(f=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!f))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return f(c)}},{}],534:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;function f(t,n,r,i){switch(t){case 0:return n&r^~n&i;case 1:return n^r^i;case 2:return n&r^n&i^r&i;case 3:return n^r^i}}function c(t,n){return t<<n|t>>>32-n}function u(t){const n=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const a=unescape(encodeURIComponent(t));t=[];for(let g=0;g<a.length;++g)t.push(a.charCodeAt(g))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const i=t.length/4+2,o=Math.ceil(i/16),l=new Array(o);for(let a=0;a<o;++a){const g=new Uint32Array(16);for(let v=0;v<16;++v)g[v]=t[a*64+v*4]<<24|t[a*64+v*4+1]<<16|t[a*64+v*4+2]<<8|t[a*64+v*4+3];l[a]=g}l[o-1][14]=(t.length-1)*8/Math.pow(2,32),l[o-1][14]=Math.floor(l[o-1][14]),l[o-1][15]=(t.length-1)*8&4294967295;for(let a=0;a<o;++a){const g=new Uint32Array(80);for(let E=0;E<16;++E)g[E]=l[a][E];for(let E=16;E<80;++E)g[E]=c(g[E-3]^g[E-8]^g[E-14]^g[E-16],1);let v=r[0],h=r[1],w=r[2],y=r[3],S=r[4];for(let E=0;E<80;++E){const I=Math.floor(E/20),F=c(v,5)+f(I,h,w,y)+S+n[I]+g[E]>>>0;S=y,y=w,w=c(h,30)>>>0,h=v,v=F}r[0]=r[0]+v>>>0,r[1]=r[1]+h>>>0,r[2]=r[2]+w>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+S>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var s=u;m.default=s},{}],535:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var f=c(e("./validate.js"));function c(n){return n&&n.__esModule?n:{default:n}}const u=[];for(let n=0;n<256;++n)u.push((n+256).toString(16).substr(1));function s(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const i=(u[n[r+0]]+u[n[r+1]]+u[n[r+2]]+u[n[r+3]]+"-"+u[n[r+4]]+u[n[r+5]]+"-"+u[n[r+6]]+u[n[r+7]]+"-"+u[n[r+8]]+u[n[r+9]]+"-"+u[n[r+10]]+u[n[r+11]]+u[n[r+12]]+u[n[r+13]]+u[n[r+14]]+u[n[r+15]]).toLowerCase();if(!(0,f.default)(i))throw TypeError("Stringified UUID is invalid");return i}var t=s;m.default=t},{"./validate.js":541}],536:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var f=u(e("./rng.js")),c=u(e("./stringify.js"));function u(l){return l&&l.__esModule?l:{default:l}}let s,t,n=0,r=0;function i(l,a,g){let v=a&&g||0;const h=a||new Array(16);l=l||{};let w=l.node||s,y=l.clockseq!==void 0?l.clockseq:t;if(w==null||y==null){const j=l.random||(l.rng||f.default)();w==null&&(w=s=[j[0]|1,j[1],j[2],j[3],j[4],j[5]]),y==null&&(y=t=(j[6]<<8|j[7])&16383)}let S=l.msecs!==void 0?l.msecs:Date.now(),E=l.nsecs!==void 0?l.nsecs:r+1;const I=S-n+(E-r)/1e4;if(I<0&&l.clockseq===void 0&&(y=y+1&16383),(I<0||S>n)&&l.nsecs===void 0&&(E=0),E>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");n=S,r=E,t=y,S+=122192928e5;const F=((S&268435455)*1e4+E)%4294967296;h[v++]=F>>>24&255,h[v++]=F>>>16&255,h[v++]=F>>>8&255,h[v++]=F&255;const B=S/4294967296*1e4&268435455;h[v++]=B>>>8&255,h[v++]=B&255,h[v++]=B>>>24&15|16,h[v++]=B>>>16&255,h[v++]=y>>>8|128,h[v++]=y&255;for(let j=0;j<6;++j)h[v+j]=w[j];return a||(0,c.default)(h)}var o=i;m.default=o},{"./rng.js":533,"./stringify.js":535}],537:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var f=u(e("./v35.js")),c=u(e("./md5.js"));function u(n){return n&&n.__esModule?n:{default:n}}var t=(0,f.default)("v3",48,c.default);m.default=t},{"./md5.js":529,"./v35.js":538}],538:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=r,m.URL=m.DNS=void 0;var f=u(e("./stringify.js")),c=u(e("./parse.js"));function u(i){return i&&i.__esModule?i:{default:i}}function s(i){i=unescape(encodeURIComponent(i));const o=[];for(let l=0;l<i.length;++l)o.push(i.charCodeAt(l));return o}const t="6ba7b810-9dad-11d1-80b4-00c04fd430c8";m.DNS=t;const n="6ba7b811-9dad-11d1-80b4-00c04fd430c8";m.URL=n;function r(i,o,l){function a(g,v,h,w){if(typeof g=="string"&&(g=s(g)),typeof v=="string"&&(v=(0,c.default)(v)),v.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let y=new Uint8Array(16+g.length);if(y.set(v),y.set(g,v.length),y=l(y),y[6]=y[6]&15|o,y[8]=y[8]&63|128,h){w=w||0;for(let S=0;S<16;++S)h[w+S]=y[S];return h}return(0,f.default)(y)}try{a.name=i}catch{}return a.DNS=t,a.URL=n,a}},{"./parse.js":531,"./stringify.js":535}],539:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var f=u(e("./rng.js")),c=u(e("./stringify.js"));function u(n){return n&&n.__esModule?n:{default:n}}function s(n,r,i){n=n||{};const o=n.random||(n.rng||f.default)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){i=i||0;for(let l=0;l<16;++l)r[i+l]=o[l];return r}return(0,c.default)(o)}var t=s;m.default=t},{"./rng.js":533,"./stringify.js":535}],540:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var f=u(e("./v35.js")),c=u(e("./sha1.js"));function u(n){return n&&n.__esModule?n:{default:n}}var t=(0,f.default)("v5",80,c.default);m.default=t},{"./sha1.js":534,"./v35.js":538}],541:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var f=c(e("./regex.js"));function c(t){return t&&t.__esModule?t:{default:t}}function u(t){return typeof t=="string"&&f.default.test(t)}var s=u;m.default=s},{"./regex.js":532}],542:[function(e,d,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var f=c(e("./validate.js"));function c(t){return t&&t.__esModule?t:{default:t}}function u(t){if(!(0,f.default)(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}var s=u;m.default=s},{"./validate.js":541}],543:[function(e,d,m){/**
|
||
* Character classes and associated utilities for the 5th edition of XML 1.0.
|
||
*
|
||
* @author Louis-Dominique Dubeau
|
||
* @license MIT
|
||
* @copyright Louis-Dominique Dubeau
|
||
*/Object.defineProperty(m,"__esModule",{value:!0}),m.CHAR=`
|
||
\r --<2D>𐀀-`,m.S=` \r
|
||
`,m.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",m.NAME_CHAR="-"+m.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",m.CHAR_RE=new RegExp("^["+m.CHAR+"]$","u"),m.S_RE=new RegExp("^["+m.S+"]+$","u"),m.NAME_START_CHAR_RE=new RegExp("^["+m.NAME_START_CHAR+"]$","u"),m.NAME_CHAR_RE=new RegExp("^["+m.NAME_CHAR+"]$","u"),m.NAME_RE=new RegExp("^["+m.NAME_START_CHAR+"]["+m.NAME_CHAR+"]*$","u"),m.NMTOKEN_RE=new RegExp("^["+m.NAME_CHAR+"]+$","u");var f=9,c=10,u=13,s=32;m.S_LIST=[s,c,u,f];function t(o){return o>=s&&o<=55295||o===c||o===u||o===f||o>=57344&&o<=65533||o>=65536&&o<=1114111}m.isChar=t;function n(o){return o===s||o===c||o===u||o===f}m.isS=n;function r(o){return o>=65&&o<=90||o>=97&&o<=122||o===58||o===95||o===8204||o===8205||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}m.isNameStartChar=r;function i(o){return r(o)||o>=48&&o<=57||o===45||o===46||o===183||o>=768&&o<=879||o>=8255&&o<=8256}m.isNameChar=i},{}],544:[function(e,d,m){/**
|
||
* 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(m,"__esModule",{value:!0}),m.CHAR="--<2D>𐀀-",m.RESTRICTED_CHAR="-\b\v\f---",m.S=` \r
|
||
`,m.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",m.NAME_CHAR="-"+m.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",m.CHAR_RE=new RegExp("^["+m.CHAR+"]$","u"),m.RESTRICTED_CHAR_RE=new RegExp("^["+m.RESTRICTED_CHAR+"]$","u"),m.S_RE=new RegExp("^["+m.S+"]+$","u"),m.NAME_START_CHAR_RE=new RegExp("^["+m.NAME_START_CHAR+"]$","u"),m.NAME_CHAR_RE=new RegExp("^["+m.NAME_CHAR+"]$","u"),m.NAME_RE=new RegExp("^["+m.NAME_START_CHAR+"]["+m.NAME_CHAR+"]*$","u"),m.NMTOKEN_RE=new RegExp("^["+m.NAME_CHAR+"]+$","u");var f=9,c=10,u=13,s=32;m.S_LIST=[s,c,u,f];function t(a){return a>=1&&a<=55295||a>=57344&&a<=65533||a>=65536&&a<=1114111}m.isChar=t;function n(a){return a>=1&&a<=8||a===11||a===12||a>=14&&a<=31||a>=127&&a<=132||a>=134&&a<=159}m.isRestrictedChar=n;function r(a){return a===9||a===10||a===13||a>31&&a<127||a===133||a>159&&a<=55295||a>=57344&&a<=65533||a>=65536&&a<=1114111}m.isCharAndNotRestricted=r;function i(a){return a===s||a===c||a===u||a===f}m.isS=i;function o(a){return a>=65&&a<=90||a>=97&&a<=122||a===58||a===95||a===8204||a===8205||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=880&&a<=893||a>=895&&a<=8191||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039}m.isNameStartChar=o;function l(a){return o(a)||a>=48&&a<=57||a===45||a===46||a===183||a>=768&&a<=879||a>=8255&&a<=8256}m.isNameChar=l},{}],545:[function(e,d,m){/**
|
||
* Character class utilities for XML NS 1.0 edition 3.
|
||
*
|
||
* @author Louis-Dominique Dubeau
|
||
* @license MIT
|
||
* @copyright Louis-Dominique Dubeau
|
||
*/Object.defineProperty(m,"__esModule",{value:!0}),m.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",m.NC_NAME_CHAR="-"+m.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",m.NC_NAME_START_CHAR_RE=new RegExp("^["+m.NC_NAME_START_CHAR+"]$","u"),m.NC_NAME_CHAR_RE=new RegExp("^["+m.NC_NAME_CHAR+"]$","u"),m.NC_NAME_RE=new RegExp("^["+m.NC_NAME_START_CHAR+"]["+m.NC_NAME_CHAR+"]*$","u");function f(u){return u>=65&&u<=90||u===95||u>=97&&u<=122||u>=192&&u<=214||u>=216&&u<=246||u>=248&&u<=767||u>=880&&u<=893||u>=895&&u<=8191||u>=8204&&u<=8205||u>=8304&&u<=8591||u>=11264&&u<=12271||u>=12289&&u<=55295||u>=63744&&u<=64975||u>=65008&&u<=65533||u>=65536&&u<=983039}m.isNCNameStartChar=f;function c(u){return f(u)||u===45||u===46||u>=48&&u<=57||u===183||u>=768&&u<=879||u>=8255&&u<=8256}m.isNCNameChar=c},{}]},{},[15])(15)})})(_h);var Cv=_h.exports;function Ya(N){"@babel/helpers - typeof";return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},Ya(N)}var Tv=/^\s+/,Av=/\s+$/;function ut(N,b){if(N=N||"",b=b||{},N instanceof ut)return N;if(!(this instanceof ut))return new ut(N,b);var e=kv(N);this._originalInput=N,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=b.format||e.format,this._gradientType=b.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=e.ok}ut.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 b=this.toRgb();return(b.r*299+b.g*587+b.b*114)/1e3},getLuminance:function(){var b=this.toRgb(),e,d,m,f,c,u;return e=b.r/255,d=b.g/255,m=b.b/255,e<=.03928?f=e/12.92:f=Math.pow((e+.055)/1.055,2.4),d<=.03928?c=d/12.92:c=Math.pow((d+.055)/1.055,2.4),m<=.03928?u=m/12.92:u=Math.pow((m+.055)/1.055,2.4),.2126*f+.7152*c+.0722*u},setAlpha:function(b){return this._a=Sh(b),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var b=Jc(this._r,this._g,this._b);return{h:b.h*360,s:b.s,v:b.v,a:this._a}},toHsvString:function(){var b=Jc(this._r,this._g,this._b),e=Math.round(b.h*360),d=Math.round(b.s*100),m=Math.round(b.v*100);return this._a==1?"hsv("+e+", "+d+"%, "+m+"%)":"hsva("+e+", "+d+"%, "+m+"%, "+this._roundA+")"},toHsl:function(){var b=Zc(this._r,this._g,this._b);return{h:b.h*360,s:b.s,l:b.l,a:this._a}},toHslString:function(){var b=Zc(this._r,this._g,this._b),e=Math.round(b.h*360),d=Math.round(b.s*100),m=Math.round(b.l*100);return this._a==1?"hsl("+e+", "+d+"%, "+m+"%)":"hsla("+e+", "+d+"%, "+m+"%, "+this._roundA+")"},toHex:function(b){return Qc(this._r,this._g,this._b,b)},toHexString:function(b){return"#"+this.toHex(b)},toHex8:function(b){return Ov(this._r,this._g,this._b,this._a,b)},toHex8String:function(b){return"#"+this.toHex8(b)},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(mr(this._r,255)*100)+"%",g:Math.round(mr(this._g,255)*100)+"%",b:Math.round(mr(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(mr(this._r,255)*100)+"%, "+Math.round(mr(this._g,255)*100)+"%, "+Math.round(mr(this._b,255)*100)+"%)":"rgba("+Math.round(mr(this._r,255)*100)+"%, "+Math.round(mr(this._g,255)*100)+"%, "+Math.round(mr(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Xv[Qc(this._r,this._g,this._b,!0)]||!1},toFilter:function(b){var e="#"+qc(this._r,this._g,this._b,this._a),d=e,m=this._gradientType?"GradientType = 1, ":"";if(b){var f=ut(b);d="#"+qc(f._r,f._g,f._b,f._a)}return"progid:DXImageTransform.Microsoft.gradient("+m+"startColorstr="+e+",endColorstr="+d+")"},toString:function(b){var e=!!b;b=b||this._format;var d=!1,m=this._a<1&&this._a>=0,f=!e&&m&&(b==="hex"||b==="hex6"||b==="hex3"||b==="hex4"||b==="hex8"||b==="name");return f?b==="name"&&this._a===0?this.toName():this.toRgbString():(b==="rgb"&&(d=this.toRgbString()),b==="prgb"&&(d=this.toPercentageRgbString()),(b==="hex"||b==="hex6")&&(d=this.toHexString()),b==="hex3"&&(d=this.toHexString(!0)),b==="hex4"&&(d=this.toHex8String(!0)),b==="hex8"&&(d=this.toHex8String()),b==="name"&&(d=this.toName()),b==="hsl"&&(d=this.toHslString()),b==="hsv"&&(d=this.toHsvString()),d||this.toHexString())},clone:function(){return ut(this.toString())},_applyModification:function(b,e){var d=b.apply(null,[this].concat([].slice.call(e)));return this._r=d._r,this._g=d._g,this._b=d._b,this.setAlpha(d._a),this},lighten:function(){return this._applyModification(Dv,arguments)},brighten:function(){return this._applyModification(Bv,arguments)},darken:function(){return this._applyModification(Lv,arguments)},desaturate:function(){return this._applyModification(Fv,arguments)},saturate:function(){return this._applyModification(Pv,arguments)},greyscale:function(){return this._applyModification(Nv,arguments)},spin:function(){return this._applyModification(jv,arguments)},_applyCombination:function(b,e){return b.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(zv,arguments)},complement:function(){return this._applyCombination($v,arguments)},monochromatic:function(){return this._applyCombination(Uv,arguments)},splitcomplement:function(){return this._applyCombination(Hv,arguments)},triad:function(){return this._applyCombination(eh,[3])},tetrad:function(){return this._applyCombination(eh,[4])}};ut.fromRatio=function(N,b){if(Ya(N)=="object"){var e={};for(var d in N)N.hasOwnProperty(d)&&(d==="a"?e[d]=N[d]:e[d]=Xs(N[d]));N=e}return ut(N,b)};function kv(N){var b={r:0,g:0,b:0},e=1,d=null,m=null,f=null,c=!1,u=!1;return typeof N=="string"&&(N=Gv(N)),Ya(N)=="object"&&(si(N.r)&&si(N.g)&&si(N.b)?(b=Mv(N.r,N.g,N.b),c=!0,u=String(N.r).substr(-1)==="%"?"prgb":"rgb"):si(N.h)&&si(N.s)&&si(N.v)?(d=Xs(N.s),m=Xs(N.v),b=Iv(N.h,d,m),c=!0,u="hsv"):si(N.h)&&si(N.s)&&si(N.l)&&(d=Xs(N.s),f=Xs(N.l),b=Rv(N.h,d,f),c=!0,u="hsl"),N.hasOwnProperty("a")&&(e=N.a)),e=Sh(e),{ok:c,format:N.format||u,r:Math.min(255,Math.max(b.r,0)),g:Math.min(255,Math.max(b.g,0)),b:Math.min(255,Math.max(b.b,0)),a:e}}function Mv(N,b,e){return{r:mr(N,255)*255,g:mr(b,255)*255,b:mr(e,255)*255}}function Zc(N,b,e){N=mr(N,255),b=mr(b,255),e=mr(e,255);var d=Math.max(N,b,e),m=Math.min(N,b,e),f,c,u=(d+m)/2;if(d==m)f=c=0;else{var s=d-m;switch(c=u>.5?s/(2-d-m):s/(d+m),d){case N:f=(b-e)/s+(b<e?6:0);break;case b:f=(e-N)/s+2;break;case e:f=(N-b)/s+4;break}f/=6}return{h:f,s:c,l:u}}function Rv(N,b,e){var d,m,f;N=mr(N,360),b=mr(b,100),e=mr(e,100);function c(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}if(b===0)d=m=f=e;else{var u=e<.5?e*(1+b):e+b-e*b,s=2*e-u;d=c(s,u,N+1/3),m=c(s,u,N),f=c(s,u,N-1/3)}return{r:d*255,g:m*255,b:f*255}}function Jc(N,b,e){N=mr(N,255),b=mr(b,255),e=mr(e,255);var d=Math.max(N,b,e),m=Math.min(N,b,e),f,c,u=d,s=d-m;if(c=d===0?0:s/d,d==m)f=0;else{switch(d){case N:f=(b-e)/s+(b<e?6:0);break;case b:f=(e-N)/s+2;break;case e:f=(N-b)/s+4;break}f/=6}return{h:f,s:c,v:u}}function Iv(N,b,e){N=mr(N,360)*6,b=mr(b,100),e=mr(e,100);var d=Math.floor(N),m=N-d,f=e*(1-b),c=e*(1-m*b),u=e*(1-(1-m)*b),s=d%6,t=[e,c,f,f,u,e][s],n=[u,e,e,c,f,f][s],r=[f,f,u,e,e,c][s];return{r:t*255,g:n*255,b:r*255}}function Qc(N,b,e,d){var m=[Dn(Math.round(N).toString(16)),Dn(Math.round(b).toString(16)),Dn(Math.round(e).toString(16))];return d&&m[0].charAt(0)==m[0].charAt(1)&&m[1].charAt(0)==m[1].charAt(1)&&m[2].charAt(0)==m[2].charAt(1)?m[0].charAt(0)+m[1].charAt(0)+m[2].charAt(0):m.join("")}function Ov(N,b,e,d,m){var f=[Dn(Math.round(N).toString(16)),Dn(Math.round(b).toString(16)),Dn(Math.round(e).toString(16)),Dn(Eh(d))];return m&&f[0].charAt(0)==f[0].charAt(1)&&f[1].charAt(0)==f[1].charAt(1)&&f[2].charAt(0)==f[2].charAt(1)&&f[3].charAt(0)==f[3].charAt(1)?f[0].charAt(0)+f[1].charAt(0)+f[2].charAt(0)+f[3].charAt(0):f.join("")}function qc(N,b,e,d){var m=[Dn(Eh(d)),Dn(Math.round(N).toString(16)),Dn(Math.round(b).toString(16)),Dn(Math.round(e).toString(16))];return m.join("")}ut.equals=function(N,b){return!N||!b?!1:ut(N).toRgbString()==ut(b).toRgbString()};ut.random=function(){return ut.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Fv(N,b){b=b===0?0:b||10;var e=ut(N).toHsl();return e.s-=b/100,e.s=Qa(e.s),ut(e)}function Pv(N,b){b=b===0?0:b||10;var e=ut(N).toHsl();return e.s+=b/100,e.s=Qa(e.s),ut(e)}function Nv(N){return ut(N).desaturate(100)}function Dv(N,b){b=b===0?0:b||10;var e=ut(N).toHsl();return e.l+=b/100,e.l=Qa(e.l),ut(e)}function Bv(N,b){b=b===0?0:b||10;var e=ut(N).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(b/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(b/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(b/100)))),ut(e)}function Lv(N,b){b=b===0?0:b||10;var e=ut(N).toHsl();return e.l-=b/100,e.l=Qa(e.l),ut(e)}function jv(N,b){var e=ut(N).toHsl(),d=(e.h+b)%360;return e.h=d<0?360+d:d,ut(e)}function $v(N){var b=ut(N).toHsl();return b.h=(b.h+180)%360,ut(b)}function eh(N,b){if(isNaN(b)||b<=0)throw new Error("Argument to polyad must be a positive number");for(var e=ut(N).toHsl(),d=[ut(N)],m=360/b,f=1;f<b;f++)d.push(ut({h:(e.h+f*m)%360,s:e.s,l:e.l}));return d}function Hv(N){var b=ut(N).toHsl(),e=b.h;return[ut(N),ut({h:(e+72)%360,s:b.s,l:b.l}),ut({h:(e+216)%360,s:b.s,l:b.l})]}function zv(N,b,e){b=b||6,e=e||30;var d=ut(N).toHsl(),m=360/e,f=[ut(N)];for(d.h=(d.h-(m*b>>1)+720)%360;--b;)d.h=(d.h+m)%360,f.push(ut(d));return f}function Uv(N,b){b=b||6;for(var e=ut(N).toHsv(),d=e.h,m=e.s,f=e.v,c=[],u=1/b;b--;)c.push(ut({h:d,s:m,v:f})),f=(f+u)%1;return c}ut.mix=function(N,b,e){e=e===0?0:e||50;var d=ut(N).toRgb(),m=ut(b).toRgb(),f=e/100,c={r:(m.r-d.r)*f+d.r,g:(m.g-d.g)*f+d.g,b:(m.b-d.b)*f+d.b,a:(m.a-d.a)*f+d.a};return ut(c)};ut.readability=function(N,b){var e=ut(N),d=ut(b);return(Math.max(e.getLuminance(),d.getLuminance())+.05)/(Math.min(e.getLuminance(),d.getLuminance())+.05)};ut.isReadable=function(N,b,e){var d=ut.readability(N,b),m,f;switch(f=!1,m=Yv(e),m.level+m.size){case"AAsmall":case"AAAlarge":f=d>=4.5;break;case"AAlarge":f=d>=3;break;case"AAAsmall":f=d>=7;break}return f};ut.mostReadable=function(N,b,e){var d=null,m=0,f,c,u,s;e=e||{},c=e.includeFallbackColors,u=e.level,s=e.size;for(var t=0;t<b.length;t++)f=ut.readability(N,b[t]),f>m&&(m=f,d=ut(b[t]));return ut.isReadable(N,d,{level:u,size:s})||!c?d:(e.includeFallbackColors=!1,ut.mostReadable(N,["#fff","#000"],e))};var bf=ut.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"},Xv=ut.hexNames=Wv(bf);function Wv(N){var b={};for(var e in N)N.hasOwnProperty(e)&&(b[N[e]]=e);return b}function Sh(N){return N=parseFloat(N),(isNaN(N)||N<0||N>1)&&(N=1),N}function mr(N,b){Vv(N)&&(N="100%");var e=Kv(N);return N=Math.min(b,Math.max(0,parseFloat(N))),e&&(N=parseInt(N*b,10)/100),Math.abs(N-b)<1e-6?1:N%b/parseFloat(b)}function Qa(N){return Math.min(1,Math.max(0,N))}function pn(N){return parseInt(N,16)}function Vv(N){return typeof N=="string"&&N.indexOf(".")!=-1&&parseFloat(N)===1}function Kv(N){return typeof N=="string"&&N.indexOf("%")!=-1}function Dn(N){return N.length==1?"0"+N:""+N}function Xs(N){return N<=1&&(N=N*100+"%"),N}function Eh(N){return Math.round(parseFloat(N)*255).toString(16)}function th(N){return pn(N)/255}var Nn=function(){var N="[-\\+]?\\d+%?",b="[-\\+]?\\d*\\.\\d+%?",e="(?:"+b+")|(?:"+N+")",d="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",m="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+d),rgba:new RegExp("rgba"+m),hsl:new RegExp("hsl"+d),hsla:new RegExp("hsla"+m),hsv:new RegExp("hsv"+d),hsva:new RegExp("hsva"+m),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 si(N){return!!Nn.CSS_UNIT.exec(N)}function Gv(N){N=N.replace(Tv,"").replace(Av,"").toLowerCase();var b=!1;if(bf[N])N=bf[N],b=!0;else if(N=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e;return(e=Nn.rgb.exec(N))?{r:e[1],g:e[2],b:e[3]}:(e=Nn.rgba.exec(N))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=Nn.hsl.exec(N))?{h:e[1],s:e[2],l:e[3]}:(e=Nn.hsla.exec(N))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=Nn.hsv.exec(N))?{h:e[1],s:e[2],v:e[3]}:(e=Nn.hsva.exec(N))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=Nn.hex8.exec(N))?{r:pn(e[1]),g:pn(e[2]),b:pn(e[3]),a:th(e[4]),format:b?"name":"hex8"}:(e=Nn.hex6.exec(N))?{r:pn(e[1]),g:pn(e[2]),b:pn(e[3]),format:b?"name":"hex"}:(e=Nn.hex4.exec(N))?{r:pn(e[1]+""+e[1]),g:pn(e[2]+""+e[2]),b:pn(e[3]+""+e[3]),a:th(e[4]+""+e[4]),format:b?"name":"hex8"}:(e=Nn.hex3.exec(N))?{r:pn(e[1]+""+e[1]),g:pn(e[2]+""+e[2]),b:pn(e[3]+""+e[3]),format:b?"name":"hex"}:!1}function Yv(N){var b,e;return N=N||{level:"AA",size:"small"},b=(N.level||"AA").toUpperCase(),e=(N.size||"small").toLowerCase(),b!=="AA"&&b!=="AAA"&&(b="AA"),e!=="small"&&e!=="large"&&(e="small"),{level:b,size:e}}var Za={exports:{}};/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/Za.exports;(function(N,b){(function(){var e,d="4.17.21",m=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",t=500,n="__lodash_placeholder__",r=1,i=2,o=4,l=1,a=2,g=1,v=2,h=4,w=8,y=16,S=32,E=64,I=128,F=256,B=512,j=30,X="...",G=800,V=16,J=1,H=2,M=3,T=1/0,_=9007199254740991,A=17976931348623157e292,P=0/0,L=4294967295,$=L-1,R=L>>>1,k=[["ary",I],["bind",g],["bindKey",v],["curry",w],["curryRight",y],["flip",B],["partial",S],["partialRight",E],["rearg",F]],C="[object Arguments]",O="[object Array]",W="[object AsyncFunction]",ne="[object Boolean]",he="[object Date]",ue="[object DOMException]",Ae="[object Error]",pe="[object Function]",te="[object GeneratorFunction]",Z="[object Map]",q="[object Number]",de="[object Null]",ke="[object Object]",oe="[object Promise]",ie="[object Proxy]",Q="[object RegExp]",z="[object Set]",Y="[object String]",fe="[object Symbol]",we="[object Undefined]",U="[object WeakMap]",ve="[object WeakSet]",Se="[object ArrayBuffer]",ee="[object DataView]",se="[object Float32Array]",me="[object Float64Array]",Ee="[object Int8Array]",Ie="[object Int16Array]",Ce="[object Int32Array]",Fe="[object Uint8Array]",ze="[object Uint8ClampedArray]",je="[object Uint16Array]",ge="[object Uint32Array]",Me=/\b__p \+= '';/g,Be=/\b(__p \+=) '' \+/g,Xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ot=/&(?:amp|lt|gt|quot|#39);/g,ct=/[&<>"']/g,st=RegExp(ot.source),rt=RegExp(ct.source),bt=/<%-([\s\S]+?)%>/g,Qe=/<%([\s\S]+?)%>/g,et=/<%=([\s\S]+?)%>/g,_t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ft=/^\w*$/,jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,It=/[\\^$.*+?()[\]{}|]/g,ht=RegExp(It.source),Dt=/^\s+/,Ut=/\s/,wt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,er=/\{\n\/\* \[wrapped with (.+)\] \*/,Kt=/,? & /,pt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gt=/[()=,{}\[\]\/\s]/,kt=/\\(\\)?/g,xt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$t=/\w*$/,Qt=/^[-+]0x[0-9a-f]+$/i,mt=/^0b[01]+$/i,qt=/^\[object .+?Constructor\]$/,St=/^0o[0-7]+$/i,Tt=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ne=/($^)/,Le=/['\n\r\u2028\u2029\\]/g,Je="\\ud800-\\udfff",at="\\u0300-\\u036f",Mt="\\ufe20-\\ufe2f",rr="\\u20d0-\\u20ff",vr=at+Mt+rr,Dr="\\u2700-\\u27bf",yr="a-z\\xdf-\\xf6\\xf8-\\xff",lr="\\xac\\xb1\\xd7\\xf7",rn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nn="\\u2000-\\u206f",ar=" \\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",Xr="A-Z\\xc0-\\xd6\\xd8-\\xde",Wr="\\ufe0e\\ufe0f",Vr=lr+rn+nn+ar,En="['’]",Vn="["+Je+"]",ji="["+Vr+"]",Kr="["+vr+"]",$i="\\d+",Kn="["+Dr+"]",_i="["+yr+"]",Si="[^"+Je+Vr+$i+Dr+yr+Xr+"]",fi="\\ud83c[\\udffb-\\udfff]",bs="(?:"+Kr+"|"+fi+")",Hi="[^"+Je+"]",Gn="(?:\\ud83c[\\udde6-\\uddff]){2}",li="[\\ud800-\\udbff][\\udc00-\\udfff]",Bn="["+Xr+"]",zi="\\u200d",Ei="(?:"+_i+"|"+Si+")",ci="(?:"+Bn+"|"+Si+")",Cn="(?:"+En+"(?:d|ll|m|re|s|t|ve))?",Ui="(?:"+En+"(?:D|LL|M|RE|S|T|VE))?",Xi=bs+"?",sn="["+Wr+"]?",vs="(?:"+zi+"(?:"+[Hi,Gn,li].join("|")+")"+sn+Xi+")*",Wi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ys="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vi=sn+Xi+vs,ws="(?:"+[Kn,Gn,li].join("|")+")"+Vi,mn="(?:"+[Hi+Kr+"?",Kr,Gn,li,Vn].join("|")+")",Ki=RegExp(En,"g"),xs=RegExp(Kr,"g"),an=RegExp(fi+"(?="+fi+")|"+mn+Vi,"g"),_s=RegExp([Bn+"?"+_i+"+"+Cn+"(?="+[ji,Bn,"$"].join("|")+")",ci+"+"+Ui+"(?="+[ji,Bn+Ei,"$"].join("|")+")",Bn+"?"+Ei+"+"+Cn,Bn+"+"+Ui,ys,Wi,$i,ws].join("|"),"g"),gn=RegExp("["+zi+Je+vr+Wr+"]"),bn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gi=["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"],Ci=-1,Zt={};Zt[se]=Zt[me]=Zt[Ee]=Zt[Ie]=Zt[Ce]=Zt[Fe]=Zt[ze]=Zt[je]=Zt[ge]=!0,Zt[C]=Zt[O]=Zt[Se]=Zt[ne]=Zt[ee]=Zt[he]=Zt[Ae]=Zt[pe]=Zt[Z]=Zt[q]=Zt[ke]=Zt[Q]=Zt[z]=Zt[Y]=Zt[U]=!1;var Yt={};Yt[C]=Yt[O]=Yt[Se]=Yt[ee]=Yt[ne]=Yt[he]=Yt[se]=Yt[me]=Yt[Ee]=Yt[Ie]=Yt[Ce]=Yt[Z]=Yt[q]=Yt[ke]=Yt[Q]=Yt[z]=Yt[Y]=Yt[fe]=Yt[Fe]=Yt[ze]=Yt[je]=Yt[ge]=!0,Yt[Ae]=Yt[pe]=Yt[U]=!1;var Yi={À:"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"},Ss={"&":"&","<":"<",">":">",'"':""","'":"'"},Zi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ji={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ye=parseFloat,Re=parseInt,We=typeof Nt=="object"&&Nt&&Nt.Object===Object&&Nt,tt=typeof self=="object"&&self&&self.Object===Object&&self,Ct=We||tt||Function("return this")(),Et=b&&!b.nodeType&&b,Jt=Et&&!0&&N&&!N.nodeType&&N,nr=Jt&&Jt.exports===Et,cr=nr&&We.process,Ht=function(){try{var Oe=Jt&&Jt.require&&Jt.require("util").types;return Oe||cr&&cr.binding&&cr.binding("util")}catch{}}(),Tr=Ht&&Ht.isArrayBuffer,Ir=Ht&&Ht.isDate,pr=Ht&&Ht.isMap,Sr=Ht&&Ht.isRegExp,Ar=Ht&&Ht.isSet,on=Ht&&Ht.isTypedArray;function hr(Oe,Ue,He){switch(He.length){case 0:return Oe.call(Ue);case 1:return Oe.call(Ue,He[0]);case 2:return Oe.call(Ue,He[0],He[1]);case 3:return Oe.call(Ue,He[0],He[1],He[2])}return Oe.apply(Ue,He)}function Tn(Oe,Ue,He,it){for(var At=-1,tr=Oe==null?0:Oe.length;++At<tr;){var Mr=Oe[At];Ue(it,Mr,He(Mr),Oe)}return it}function Pr(Oe,Ue){for(var He=-1,it=Oe==null?0:Oe.length;++He<it&&Ue(Oe[He],He,Oe)!==!1;);return Oe}function An(Oe,Ue){for(var He=Oe==null?0:Oe.length;He--&&Ue(Oe[He],He,Oe)!==!1;);return Oe}function Yn(Oe,Ue){for(var He=-1,it=Oe==null?0:Oe.length;++He<it;)if(!Ue(Oe[He],He,Oe))return!1;return!0}function Ln(Oe,Ue){for(var He=-1,it=Oe==null?0:Oe.length,At=0,tr=[];++He<it;){var Mr=Oe[He];Ue(Mr,He,Oe)&&(tr[At++]=Mr)}return tr}function ae(Oe,Ue){var He=Oe==null?0:Oe.length;return!!He&&dr(Oe,Ue,0)>-1}function xe(Oe,Ue,He){for(var it=-1,At=Oe==null?0:Oe.length;++it<At;)if(He(Ue,Oe[it]))return!0;return!1}function De(Oe,Ue){for(var He=-1,it=Oe==null?0:Oe.length,At=Array(it);++He<it;)At[He]=Ue(Oe[He],He,Oe);return At}function Ge(Oe,Ue){for(var He=-1,it=Ue.length,At=Oe.length;++He<it;)Oe[At+He]=Ue[He];return Oe}function dt(Oe,Ue,He,it){var At=-1,tr=Oe==null?0:Oe.length;for(it&&tr&&(He=Oe[++At]);++At<tr;)He=Ue(He,Oe[At],At,Oe);return He}function nt(Oe,Ue,He,it){var At=Oe==null?0:Oe.length;for(it&&At&&(He=Oe[--At]);At--;)He=Ue(He,Oe[At],At,Oe);return He}function Ot(Oe,Ue){for(var He=-1,it=Oe==null?0:Oe.length;++He<it;)if(Ue(Oe[He],He,Oe))return!0;return!1}var or=fn("length");function ur(Oe){return Oe.split("")}function Er(Oe){return Oe.match(pt)||[]}function Or(Oe,Ue,He){var it;return He(Oe,function(At,tr,Mr){if(Ue(At,tr,Mr))return it=tr,!1}),it}function kr(Oe,Ue,He,it){for(var At=Oe.length,tr=He+(it?1:-1);it?tr--:++tr<At;)if(Ue(Oe[tr],tr,Oe))return tr;return-1}function dr(Oe,Ue,He){return Ue===Ue?Dh(Oe,Ue,He):kr(Oe,$r,He)}function Gr(Oe,Ue,He,it){for(var At=He-1,tr=Oe.length;++At<tr;)if(it(Oe[At],Ue))return At;return-1}function $r(Oe){return Oe!==Oe}function kn(Oe,Ue){var He=Oe==null?0:Oe.length;return He?hi(Oe,Ue)/He:P}function fn(Oe){return function(Ue){return Ue==null?e:Ue[Oe]}}function Mn(Oe){return function(Ue){return Oe==null?e:Oe[Ue]}}function Es(Oe,Ue,He,it,At){return At(Oe,function(tr,Mr,fr){He=it?(it=!1,tr):Ue(He,tr,Mr,fr)}),He}function Qi(Oe,Ue){var He=Oe.length;for(Oe.sort(Ue);He--;)Oe[He]=Oe[He].value;return Oe}function hi(Oe,Ue){for(var He,it=-1,At=Oe.length;++it<At;){var tr=Ue(Oe[it]);tr!==e&&(He=He===e?tr:He+tr)}return He}function qa(Oe,Ue){for(var He=-1,it=Array(Oe);++He<Oe;)it[He]=Ue(He);return it}function Ah(Oe,Ue){return De(Ue,function(He){return[He,Oe[He]]})}function Mf(Oe){return Oe&&Oe.slice(0,Ff(Oe)+1).replace(Dt,"")}function ln(Oe){return function(Ue){return Oe(Ue)}}function eo(Oe,Ue){return De(Ue,function(He){return Oe[He]})}function Cs(Oe,Ue){return Oe.has(Ue)}function Rf(Oe,Ue){for(var He=-1,it=Oe.length;++He<it&&dr(Ue,Oe[He],0)>-1;);return He}function If(Oe,Ue){for(var He=Oe.length;He--&&dr(Ue,Oe[He],0)>-1;);return He}function kh(Oe,Ue){for(var He=Oe.length,it=0;He--;)Oe[He]===Ue&&++it;return it}var Mh=Mn(Yi),Rh=Mn(Ss);function Ih(Oe){return"\\"+Ji[Oe]}function Oh(Oe,Ue){return Oe==null?e:Oe[Ue]}function qi(Oe){return gn.test(Oe)}function Fh(Oe){return bn.test(Oe)}function Ph(Oe){for(var Ue,He=[];!(Ue=Oe.next()).done;)He.push(Ue.value);return He}function to(Oe){var Ue=-1,He=Array(Oe.size);return Oe.forEach(function(it,At){He[++Ue]=[At,it]}),He}function Of(Oe,Ue){return function(He){return Oe(Ue(He))}}function ui(Oe,Ue){for(var He=-1,it=Oe.length,At=0,tr=[];++He<it;){var Mr=Oe[He];(Mr===Ue||Mr===n)&&(Oe[He]=n,tr[At++]=He)}return tr}function Gs(Oe){var Ue=-1,He=Array(Oe.size);return Oe.forEach(function(it){He[++Ue]=it}),He}function Nh(Oe){var Ue=-1,He=Array(Oe.size);return Oe.forEach(function(it){He[++Ue]=[it,it]}),He}function Dh(Oe,Ue,He){for(var it=He-1,At=Oe.length;++it<At;)if(Oe[it]===Ue)return it;return-1}function Bh(Oe,Ue,He){for(var it=He+1;it--;)if(Oe[it]===Ue)return it;return it}function es(Oe){return qi(Oe)?jh(Oe):or(Oe)}function Rn(Oe){return qi(Oe)?$h(Oe):ur(Oe)}function Ff(Oe){for(var Ue=Oe.length;Ue--&&Ut.test(Oe.charAt(Ue)););return Ue}var Lh=Mn(Zi);function jh(Oe){for(var Ue=an.lastIndex=0;an.test(Oe);)++Ue;return Ue}function $h(Oe){return Oe.match(an)||[]}function Hh(Oe){return Oe.match(_s)||[]}var zh=function Oe(Ue){Ue=Ue==null?Ct:ts.defaults(Ct.Object(),Ue,ts.pick(Ct,Gi));var He=Ue.Array,it=Ue.Date,At=Ue.Error,tr=Ue.Function,Mr=Ue.Math,fr=Ue.Object,ro=Ue.RegExp,Uh=Ue.String,vn=Ue.TypeError,Ys=He.prototype,Xh=tr.prototype,rs=fr.prototype,Zs=Ue["__core-js_shared__"],Js=Xh.toString,sr=rs.hasOwnProperty,Wh=0,Pf=function(){var p=/[^.]+$/.exec(Zs&&Zs.keys&&Zs.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),Qs=rs.toString,Vh=Js.call(fr),Kh=Ct._,Gh=ro("^"+Js.call(sr).replace(It,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qs=nr?Ue.Buffer:e,di=Ue.Symbol,ea=Ue.Uint8Array,Nf=qs?qs.allocUnsafe:e,ta=Of(fr.getPrototypeOf,fr),Df=fr.create,Bf=rs.propertyIsEnumerable,ra=Ys.splice,Lf=di?di.isConcatSpreadable:e,Ts=di?di.iterator:e,Ti=di?di.toStringTag:e,na=function(){try{var p=Ii(fr,"defineProperty");return p({},"",{}),p}catch{}}(),Yh=Ue.clearTimeout!==Ct.clearTimeout&&Ue.clearTimeout,Zh=it&&it.now!==Ct.Date.now&&it.now,Jh=Ue.setTimeout!==Ct.setTimeout&&Ue.setTimeout,ia=Mr.ceil,sa=Mr.floor,no=fr.getOwnPropertySymbols,Qh=qs?qs.isBuffer:e,jf=Ue.isFinite,qh=Ys.join,eu=Of(fr.keys,fr),Rr=Mr.max,Br=Mr.min,tu=it.now,ru=Ue.parseInt,$f=Mr.random,nu=Ys.reverse,io=Ii(Ue,"DataView"),As=Ii(Ue,"Map"),so=Ii(Ue,"Promise"),ns=Ii(Ue,"Set"),ks=Ii(Ue,"WeakMap"),Ms=Ii(fr,"create"),aa=ks&&new ks,is={},iu=Oi(io),su=Oi(As),au=Oi(so),ou=Oi(ns),fu=Oi(ks),oa=di?di.prototype:e,Rs=oa?oa.valueOf:e,Hf=oa?oa.toString:e;function le(p){if(br(p)&&!Rt(p)&&!(p instanceof Xt)){if(p instanceof yn)return p;if(sr.call(p,"__wrapped__"))return zl(p)}return new yn(p)}var ss=function(){function p(){}return function(x){if(!gr(x))return{};if(Df)return Df(x);p.prototype=x;var D=new p;return p.prototype=e,D}}();function fa(){}function yn(p,x){this.__wrapped__=p,this.__actions__=[],this.__chain__=!!x,this.__index__=0,this.__values__=e}le.templateSettings={escape:bt,evaluate:Qe,interpolate:et,variable:"",imports:{_:le}},le.prototype=fa.prototype,le.prototype.constructor=le,yn.prototype=ss(fa.prototype),yn.prototype.constructor=yn;function Xt(p){this.__wrapped__=p,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function lu(){var p=new Xt(this.__wrapped__);return p.__actions__=Yr(this.__actions__),p.__dir__=this.__dir__,p.__filtered__=this.__filtered__,p.__iteratees__=Yr(this.__iteratees__),p.__takeCount__=this.__takeCount__,p.__views__=Yr(this.__views__),p}function cu(){if(this.__filtered__){var p=new Xt(this);p.__dir__=-1,p.__filtered__=!0}else p=this.clone(),p.__dir__*=-1;return p}function hu(){var p=this.__wrapped__.value(),x=this.__dir__,D=Rt(p),K=x<0,re=D?p.length:0,ce=Sd(0,re,this.__views__),_e=ce.start,Te=ce.end,Pe=Te-_e,Ve=K?Te:_e-1,Ke=this.__iteratees__,Ye=Ke.length,qe=0,lt=Br(Pe,this.__takeCount__);if(!D||!K&&re==Pe&<==Pe)return hl(p,this.__actions__);var vt=[];e:for(;Pe--&&qe<lt;){Ve+=x;for(var Bt=-1,yt=p[Ve];++Bt<Ye;){var zt=Ke[Bt],Vt=zt.iteratee,un=zt.type,Ur=Vt(yt);if(un==H)yt=Ur;else if(!Ur){if(un==J)continue e;break e}}vt[qe++]=yt}return vt}Xt.prototype=ss(fa.prototype),Xt.prototype.constructor=Xt;function Ai(p){var x=-1,D=p==null?0:p.length;for(this.clear();++x<D;){var K=p[x];this.set(K[0],K[1])}}function uu(){this.__data__=Ms?Ms(null):{},this.size=0}function du(p){var x=this.has(p)&&delete this.__data__[p];return this.size-=x?1:0,x}function pu(p){var x=this.__data__;if(Ms){var D=x[p];return D===s?e:D}return sr.call(x,p)?x[p]:e}function mu(p){var x=this.__data__;return Ms?x[p]!==e:sr.call(x,p)}function gu(p,x){var D=this.__data__;return this.size+=this.has(p)?0:1,D[p]=Ms&&x===e?s:x,this}Ai.prototype.clear=uu,Ai.prototype.delete=du,Ai.prototype.get=pu,Ai.prototype.has=mu,Ai.prototype.set=gu;function Zn(p){var x=-1,D=p==null?0:p.length;for(this.clear();++x<D;){var K=p[x];this.set(K[0],K[1])}}function bu(){this.__data__=[],this.size=0}function vu(p){var x=this.__data__,D=la(x,p);if(D<0)return!1;var K=x.length-1;return D==K?x.pop():ra.call(x,D,1),--this.size,!0}function yu(p){var x=this.__data__,D=la(x,p);return D<0?e:x[D][1]}function wu(p){return la(this.__data__,p)>-1}function xu(p,x){var D=this.__data__,K=la(D,p);return K<0?(++this.size,D.push([p,x])):D[K][1]=x,this}Zn.prototype.clear=bu,Zn.prototype.delete=vu,Zn.prototype.get=yu,Zn.prototype.has=wu,Zn.prototype.set=xu;function Jn(p){var x=-1,D=p==null?0:p.length;for(this.clear();++x<D;){var K=p[x];this.set(K[0],K[1])}}function _u(){this.size=0,this.__data__={hash:new Ai,map:new(As||Zn),string:new Ai}}function Su(p){var x=xa(this,p).delete(p);return this.size-=x?1:0,x}function Eu(p){return xa(this,p).get(p)}function Cu(p){return xa(this,p).has(p)}function Tu(p,x){var D=xa(this,p),K=D.size;return D.set(p,x),this.size+=D.size==K?0:1,this}Jn.prototype.clear=_u,Jn.prototype.delete=Su,Jn.prototype.get=Eu,Jn.prototype.has=Cu,Jn.prototype.set=Tu;function ki(p){var x=-1,D=p==null?0:p.length;for(this.__data__=new Jn;++x<D;)this.add(p[x])}function Au(p){return this.__data__.set(p,s),this}function ku(p){return this.__data__.has(p)}ki.prototype.add=ki.prototype.push=Au,ki.prototype.has=ku;function In(p){var x=this.__data__=new Zn(p);this.size=x.size}function Mu(){this.__data__=new Zn,this.size=0}function Ru(p){var x=this.__data__,D=x.delete(p);return this.size=x.size,D}function Iu(p){return this.__data__.get(p)}function Ou(p){return this.__data__.has(p)}function Fu(p,x){var D=this.__data__;if(D instanceof Zn){var K=D.__data__;if(!As||K.length<m-1)return K.push([p,x]),this.size=++D.size,this;D=this.__data__=new Jn(K)}return D.set(p,x),this.size=D.size,this}In.prototype.clear=Mu,In.prototype.delete=Ru,In.prototype.get=Iu,In.prototype.has=Ou,In.prototype.set=Fu;function zf(p,x){var D=Rt(p),K=!D&&Fi(p),re=!D&&!K&&vi(p),ce=!D&&!K&&!re&&ls(p),_e=D||K||re||ce,Te=_e?qa(p.length,Uh):[],Pe=Te.length;for(var Ve in p)(x||sr.call(p,Ve))&&!(_e&&(Ve=="length"||re&&(Ve=="offset"||Ve=="parent")||ce&&(Ve=="buffer"||Ve=="byteLength"||Ve=="byteOffset")||ti(Ve,Pe)))&&Te.push(Ve);return Te}function Uf(p){var x=p.length;return x?p[bo(0,x-1)]:e}function Pu(p,x){return _a(Yr(p),Mi(x,0,p.length))}function Nu(p){return _a(Yr(p))}function ao(p,x,D){(D!==e&&!On(p[x],D)||D===e&&!(x in p))&&Qn(p,x,D)}function Is(p,x,D){var K=p[x];(!(sr.call(p,x)&&On(K,D))||D===e&&!(x in p))&&Qn(p,x,D)}function la(p,x){for(var D=p.length;D--;)if(On(p[D][0],x))return D;return-1}function Du(p,x,D,K){return pi(p,function(re,ce,_e){x(K,re,D(re),_e)}),K}function Xf(p,x){return p&&$n(x,Fr(x),p)}function Bu(p,x){return p&&$n(x,Jr(x),p)}function Qn(p,x,D){x=="__proto__"&&na?na(p,x,{configurable:!0,enumerable:!0,value:D,writable:!0}):p[x]=D}function oo(p,x){for(var D=-1,K=x.length,re=He(K),ce=p==null;++D<K;)re[D]=ce?e:zo(p,x[D]);return re}function Mi(p,x,D){return p===p&&(D!==e&&(p=p<=D?p:D),x!==e&&(p=p>=x?p:x)),p}function wn(p,x,D,K,re,ce){var _e,Te=x&r,Pe=x&i,Ve=x&o;if(D&&(_e=re?D(p,K,re,ce):D(p)),_e!==e)return _e;if(!gr(p))return p;var Ke=Rt(p);if(Ke){if(_e=Cd(p),!Te)return Yr(p,_e)}else{var Ye=Lr(p),qe=Ye==pe||Ye==te;if(vi(p))return pl(p,Te);if(Ye==ke||Ye==C||qe&&!re){if(_e=Pe||qe?{}:Fl(p),!Te)return Pe?pd(p,Bu(_e,p)):dd(p,Xf(_e,p))}else{if(!Yt[Ye])return re?p:{};_e=Td(p,Ye,Te)}}ce||(ce=new In);var lt=ce.get(p);if(lt)return lt;ce.set(p,_e),fc(p)?p.forEach(function(yt){_e.add(wn(yt,x,D,yt,p,ce))}):ac(p)&&p.forEach(function(yt,zt){_e.set(zt,wn(yt,x,D,zt,p,ce))});var vt=Ve?Pe?ko:Ao:Pe?Jr:Fr,Bt=Ke?e:vt(p);return Pr(Bt||p,function(yt,zt){Bt&&(zt=yt,yt=p[zt]),Is(_e,zt,wn(yt,x,D,zt,p,ce))}),_e}function Lu(p){var x=Fr(p);return function(D){return Wf(D,p,x)}}function Wf(p,x,D){var K=D.length;if(p==null)return!K;for(p=fr(p);K--;){var re=D[K],ce=x[re],_e=p[re];if(_e===e&&!(re in p)||!ce(_e))return!1}return!0}function Vf(p,x,D){if(typeof p!="function")throw new vn(c);return Ls(function(){p.apply(e,D)},x)}function Os(p,x,D,K){var re=-1,ce=ae,_e=!0,Te=p.length,Pe=[],Ve=x.length;if(!Te)return Pe;D&&(x=De(x,ln(D))),K?(ce=xe,_e=!1):x.length>=m&&(ce=Cs,_e=!1,x=new ki(x));e:for(;++re<Te;){var Ke=p[re],Ye=D==null?Ke:D(Ke);if(Ke=K||Ke!==0?Ke:0,_e&&Ye===Ye){for(var qe=Ve;qe--;)if(x[qe]===Ye)continue e;Pe.push(Ke)}else ce(x,Ye,K)||Pe.push(Ke)}return Pe}var pi=yl(jn),Kf=yl(lo,!0);function ju(p,x){var D=!0;return pi(p,function(K,re,ce){return D=!!x(K,re,ce),D}),D}function ca(p,x,D){for(var K=-1,re=p.length;++K<re;){var ce=p[K],_e=x(ce);if(_e!=null&&(Te===e?_e===_e&&!hn(_e):D(_e,Te)))var Te=_e,Pe=ce}return Pe}function $u(p,x,D,K){var re=p.length;for(D=Pt(D),D<0&&(D=-D>re?0:re+D),K=K===e||K>re?re:Pt(K),K<0&&(K+=re),K=D>K?0:cc(K);D<K;)p[D++]=x;return p}function Gf(p,x){var D=[];return pi(p,function(K,re,ce){x(K,re,ce)&&D.push(K)}),D}function Nr(p,x,D,K,re){var ce=-1,_e=p.length;for(D||(D=kd),re||(re=[]);++ce<_e;){var Te=p[ce];x>0&&D(Te)?x>1?Nr(Te,x-1,D,K,re):Ge(re,Te):K||(re[re.length]=Te)}return re}var fo=wl(),Yf=wl(!0);function jn(p,x){return p&&fo(p,x,Fr)}function lo(p,x){return p&&Yf(p,x,Fr)}function ha(p,x){return Ln(x,function(D){return ri(p[D])})}function Ri(p,x){x=gi(x,p);for(var D=0,K=x.length;p!=null&&D<K;)p=p[Hn(x[D++])];return D&&D==K?p:e}function Zf(p,x,D){var K=x(p);return Rt(p)?K:Ge(K,D(p))}function Hr(p){return p==null?p===e?we:de:Ti&&Ti in fr(p)?_d(p):Nd(p)}function co(p,x){return p>x}function Hu(p,x){return p!=null&&sr.call(p,x)}function zu(p,x){return p!=null&&x in fr(p)}function Uu(p,x,D){return p>=Br(x,D)&&p<Rr(x,D)}function ho(p,x,D){for(var K=D?xe:ae,re=p[0].length,ce=p.length,_e=ce,Te=He(ce),Pe=1/0,Ve=[];_e--;){var Ke=p[_e];_e&&x&&(Ke=De(Ke,ln(x))),Pe=Br(Ke.length,Pe),Te[_e]=!D&&(x||re>=120&&Ke.length>=120)?new ki(_e&&Ke):e}Ke=p[0];var Ye=-1,qe=Te[0];e:for(;++Ye<re&&Ve.length<Pe;){var lt=Ke[Ye],vt=x?x(lt):lt;if(lt=D||lt!==0?lt:0,!(qe?Cs(qe,vt):K(Ve,vt,D))){for(_e=ce;--_e;){var Bt=Te[_e];if(!(Bt?Cs(Bt,vt):K(p[_e],vt,D)))continue e}qe&&qe.push(vt),Ve.push(lt)}}return Ve}function Xu(p,x,D,K){return jn(p,function(re,ce,_e){x(K,D(re),ce,_e)}),K}function Fs(p,x,D){x=gi(x,p),p=Bl(p,x);var K=p==null?p:p[Hn(_n(x))];return K==null?e:hr(K,p,D)}function Jf(p){return br(p)&&Hr(p)==C}function Wu(p){return br(p)&&Hr(p)==Se}function Vu(p){return br(p)&&Hr(p)==he}function Ps(p,x,D,K,re){return p===x?!0:p==null||x==null||!br(p)&&!br(x)?p!==p&&x!==x:Ku(p,x,D,K,Ps,re)}function Ku(p,x,D,K,re,ce){var _e=Rt(p),Te=Rt(x),Pe=_e?O:Lr(p),Ve=Te?O:Lr(x);Pe=Pe==C?ke:Pe,Ve=Ve==C?ke:Ve;var Ke=Pe==ke,Ye=Ve==ke,qe=Pe==Ve;if(qe&&vi(p)){if(!vi(x))return!1;_e=!0,Ke=!1}if(qe&&!Ke)return ce||(ce=new In),_e||ls(p)?Rl(p,x,D,K,re,ce):wd(p,x,Pe,D,K,re,ce);if(!(D&l)){var lt=Ke&&sr.call(p,"__wrapped__"),vt=Ye&&sr.call(x,"__wrapped__");if(lt||vt){var Bt=lt?p.value():p,yt=vt?x.value():x;return ce||(ce=new In),re(Bt,yt,D,K,ce)}}return qe?(ce||(ce=new In),xd(p,x,D,K,re,ce)):!1}function Gu(p){return br(p)&&Lr(p)==Z}function uo(p,x,D,K){var re=D.length,ce=re,_e=!K;if(p==null)return!ce;for(p=fr(p);re--;){var Te=D[re];if(_e&&Te[2]?Te[1]!==p[Te[0]]:!(Te[0]in p))return!1}for(;++re<ce;){Te=D[re];var Pe=Te[0],Ve=p[Pe],Ke=Te[1];if(_e&&Te[2]){if(Ve===e&&!(Pe in p))return!1}else{var Ye=new In;if(K)var qe=K(Ve,Ke,Pe,p,x,Ye);if(!(qe===e?Ps(Ke,Ve,l|a,K,Ye):qe))return!1}}return!0}function Qf(p){if(!gr(p)||Rd(p))return!1;var x=ri(p)?Gh:qt;return x.test(Oi(p))}function Yu(p){return br(p)&&Hr(p)==Q}function Zu(p){return br(p)&&Lr(p)==z}function Ju(p){return br(p)&&ka(p.length)&&!!Zt[Hr(p)]}function qf(p){return typeof p=="function"?p:p==null?Qr:typeof p=="object"?Rt(p)?rl(p[0],p[1]):tl(p):xc(p)}function po(p){if(!Bs(p))return eu(p);var x=[];for(var D in fr(p))sr.call(p,D)&&D!="constructor"&&x.push(D);return x}function Qu(p){if(!gr(p))return Pd(p);var x=Bs(p),D=[];for(var K in p)K=="constructor"&&(x||!sr.call(p,K))||D.push(K);return D}function mo(p,x){return p<x}function el(p,x){var D=-1,K=Zr(p)?He(p.length):[];return pi(p,function(re,ce,_e){K[++D]=x(re,ce,_e)}),K}function tl(p){var x=Ro(p);return x.length==1&&x[0][2]?Nl(x[0][0],x[0][1]):function(D){return D===p||uo(D,p,x)}}function rl(p,x){return Oo(p)&&Pl(x)?Nl(Hn(p),x):function(D){var K=zo(D,p);return K===e&&K===x?Uo(D,p):Ps(x,K,l|a)}}function ua(p,x,D,K,re){p!==x&&fo(x,function(ce,_e){if(re||(re=new In),gr(ce))qu(p,x,_e,D,ua,K,re);else{var Te=K?K(Po(p,_e),ce,_e+"",p,x,re):e;Te===e&&(Te=ce),ao(p,_e,Te)}},Jr)}function qu(p,x,D,K,re,ce,_e){var Te=Po(p,D),Pe=Po(x,D),Ve=_e.get(Pe);if(Ve){ao(p,D,Ve);return}var Ke=ce?ce(Te,Pe,D+"",p,x,_e):e,Ye=Ke===e;if(Ye){var qe=Rt(Pe),lt=!qe&&vi(Pe),vt=!qe&&!lt&&ls(Pe);Ke=Pe,qe||lt||vt?Rt(Te)?Ke=Te:wr(Te)?Ke=Yr(Te):lt?(Ye=!1,Ke=pl(Pe,!0)):vt?(Ye=!1,Ke=ml(Pe,!0)):Ke=[]:js(Pe)||Fi(Pe)?(Ke=Te,Fi(Te)?Ke=hc(Te):(!gr(Te)||ri(Te))&&(Ke=Fl(Pe))):Ye=!1}Ye&&(_e.set(Pe,Ke),re(Ke,Pe,K,ce,_e),_e.delete(Pe)),ao(p,D,Ke)}function nl(p,x){var D=p.length;if(D)return x+=x<0?D:0,ti(x,D)?p[x]:e}function il(p,x,D){x.length?x=De(x,function(ce){return Rt(ce)?function(_e){return Ri(_e,ce.length===1?ce[0]:ce)}:ce}):x=[Qr];var K=-1;x=De(x,ln(gt()));var re=el(p,function(ce,_e,Te){var Pe=De(x,function(Ve){return Ve(ce)});return{criteria:Pe,index:++K,value:ce}});return Qi(re,function(ce,_e){return ud(ce,_e,D)})}function ed(p,x){return sl(p,x,function(D,K){return Uo(p,K)})}function sl(p,x,D){for(var K=-1,re=x.length,ce={};++K<re;){var _e=x[K],Te=Ri(p,_e);D(Te,_e)&&Ns(ce,gi(_e,p),Te)}return ce}function td(p){return function(x){return Ri(x,p)}}function go(p,x,D,K){var re=K?Gr:dr,ce=-1,_e=x.length,Te=p;for(p===x&&(x=Yr(x)),D&&(Te=De(p,ln(D)));++ce<_e;)for(var Pe=0,Ve=x[ce],Ke=D?D(Ve):Ve;(Pe=re(Te,Ke,Pe,K))>-1;)Te!==p&&ra.call(Te,Pe,1),ra.call(p,Pe,1);return p}function al(p,x){for(var D=p?x.length:0,K=D-1;D--;){var re=x[D];if(D==K||re!==ce){var ce=re;ti(re)?ra.call(p,re,1):wo(p,re)}}return p}function bo(p,x){return p+sa($f()*(x-p+1))}function rd(p,x,D,K){for(var re=-1,ce=Rr(ia((x-p)/(D||1)),0),_e=He(ce);ce--;)_e[K?ce:++re]=p,p+=D;return _e}function vo(p,x){var D="";if(!p||x<1||x>_)return D;do x%2&&(D+=p),x=sa(x/2),x&&(p+=p);while(x);return D}function Lt(p,x){return No(Dl(p,x,Qr),p+"")}function nd(p){return Uf(cs(p))}function id(p,x){var D=cs(p);return _a(D,Mi(x,0,D.length))}function Ns(p,x,D,K){if(!gr(p))return p;x=gi(x,p);for(var re=-1,ce=x.length,_e=ce-1,Te=p;Te!=null&&++re<ce;){var Pe=Hn(x[re]),Ve=D;if(Pe==="__proto__"||Pe==="constructor"||Pe==="prototype")return p;if(re!=_e){var Ke=Te[Pe];Ve=K?K(Ke,Pe,Te):e,Ve===e&&(Ve=gr(Ke)?Ke:ti(x[re+1])?[]:{})}Is(Te,Pe,Ve),Te=Te[Pe]}return p}var ol=aa?function(p,x){return aa.set(p,x),p}:Qr,sd=na?function(p,x){return na(p,"toString",{configurable:!0,enumerable:!1,value:Wo(x),writable:!0})}:Qr;function ad(p){return _a(cs(p))}function xn(p,x,D){var K=-1,re=p.length;x<0&&(x=-x>re?0:re+x),D=D>re?re:D,D<0&&(D+=re),re=x>D?0:D-x>>>0,x>>>=0;for(var ce=He(re);++K<re;)ce[K]=p[K+x];return ce}function od(p,x){var D;return pi(p,function(K,re,ce){return D=x(K,re,ce),!D}),!!D}function da(p,x,D){var K=0,re=p==null?K:p.length;if(typeof x=="number"&&x===x&&re<=R){for(;K<re;){var ce=K+re>>>1,_e=p[ce];_e!==null&&!hn(_e)&&(D?_e<=x:_e<x)?K=ce+1:re=ce}return re}return yo(p,x,Qr,D)}function yo(p,x,D,K){var re=0,ce=p==null?0:p.length;if(ce===0)return 0;x=D(x);for(var _e=x!==x,Te=x===null,Pe=hn(x),Ve=x===e;re<ce;){var Ke=sa((re+ce)/2),Ye=D(p[Ke]),qe=Ye!==e,lt=Ye===null,vt=Ye===Ye,Bt=hn(Ye);if(_e)var yt=K||vt;else Ve?yt=vt&&(K||qe):Te?yt=vt&&qe&&(K||!lt):Pe?yt=vt&&qe&&!lt&&(K||!Bt):lt||Bt?yt=!1:yt=K?Ye<=x:Ye<x;yt?re=Ke+1:ce=Ke}return Br(ce,$)}function fl(p,x){for(var D=-1,K=p.length,re=0,ce=[];++D<K;){var _e=p[D],Te=x?x(_e):_e;if(!D||!On(Te,Pe)){var Pe=Te;ce[re++]=_e===0?0:_e}}return ce}function ll(p){return typeof p=="number"?p:hn(p)?P:+p}function cn(p){if(typeof p=="string")return p;if(Rt(p))return De(p,cn)+"";if(hn(p))return Hf?Hf.call(p):"";var x=p+"";return x=="0"&&1/p==-T?"-0":x}function mi(p,x,D){var K=-1,re=ae,ce=p.length,_e=!0,Te=[],Pe=Te;if(D)_e=!1,re=xe;else if(ce>=m){var Ve=x?null:vd(p);if(Ve)return Gs(Ve);_e=!1,re=Cs,Pe=new ki}else Pe=x?[]:Te;e:for(;++K<ce;){var Ke=p[K],Ye=x?x(Ke):Ke;if(Ke=D||Ke!==0?Ke:0,_e&&Ye===Ye){for(var qe=Pe.length;qe--;)if(Pe[qe]===Ye)continue e;x&&Pe.push(Ye),Te.push(Ke)}else re(Pe,Ye,D)||(Pe!==Te&&Pe.push(Ye),Te.push(Ke))}return Te}function wo(p,x){return x=gi(x,p),p=Bl(p,x),p==null||delete p[Hn(_n(x))]}function cl(p,x,D,K){return Ns(p,x,D(Ri(p,x)),K)}function pa(p,x,D,K){for(var re=p.length,ce=K?re:-1;(K?ce--:++ce<re)&&x(p[ce],ce,p););return D?xn(p,K?0:ce,K?ce+1:re):xn(p,K?ce+1:0,K?re:ce)}function hl(p,x){var D=p;return D instanceof Xt&&(D=D.value()),dt(x,function(K,re){return re.func.apply(re.thisArg,Ge([K],re.args))},D)}function xo(p,x,D){var K=p.length;if(K<2)return K?mi(p[0]):[];for(var re=-1,ce=He(K);++re<K;)for(var _e=p[re],Te=-1;++Te<K;)Te!=re&&(ce[re]=Os(ce[re]||_e,p[Te],x,D));return mi(Nr(ce,1),x,D)}function ul(p,x,D){for(var K=-1,re=p.length,ce=x.length,_e={};++K<re;){var Te=K<ce?x[K]:e;D(_e,p[K],Te)}return _e}function _o(p){return wr(p)?p:[]}function So(p){return typeof p=="function"?p:Qr}function gi(p,x){return Rt(p)?p:Oo(p,x)?[p]:Hl(ir(p))}var fd=Lt;function bi(p,x,D){var K=p.length;return D=D===e?K:D,!x&&D>=K?p:xn(p,x,D)}var dl=Yh||function(p){return Ct.clearTimeout(p)};function pl(p,x){if(x)return p.slice();var D=p.length,K=Nf?Nf(D):new p.constructor(D);return p.copy(K),K}function Eo(p){var x=new p.constructor(p.byteLength);return new ea(x).set(new ea(p)),x}function ld(p,x){var D=x?Eo(p.buffer):p.buffer;return new p.constructor(D,p.byteOffset,p.byteLength)}function cd(p){var x=new p.constructor(p.source,$t.exec(p));return x.lastIndex=p.lastIndex,x}function hd(p){return Rs?fr(Rs.call(p)):{}}function ml(p,x){var D=x?Eo(p.buffer):p.buffer;return new p.constructor(D,p.byteOffset,p.length)}function gl(p,x){if(p!==x){var D=p!==e,K=p===null,re=p===p,ce=hn(p),_e=x!==e,Te=x===null,Pe=x===x,Ve=hn(x);if(!Te&&!Ve&&!ce&&p>x||ce&&_e&&Pe&&!Te&&!Ve||K&&_e&&Pe||!D&&Pe||!re)return 1;if(!K&&!ce&&!Ve&&p<x||Ve&&D&&re&&!K&&!ce||Te&&D&&re||!_e&&re||!Pe)return-1}return 0}function ud(p,x,D){for(var K=-1,re=p.criteria,ce=x.criteria,_e=re.length,Te=D.length;++K<_e;){var Pe=gl(re[K],ce[K]);if(Pe){if(K>=Te)return Pe;var Ve=D[K];return Pe*(Ve=="desc"?-1:1)}}return p.index-x.index}function bl(p,x,D,K){for(var re=-1,ce=p.length,_e=D.length,Te=-1,Pe=x.length,Ve=Rr(ce-_e,0),Ke=He(Pe+Ve),Ye=!K;++Te<Pe;)Ke[Te]=x[Te];for(;++re<_e;)(Ye||re<ce)&&(Ke[D[re]]=p[re]);for(;Ve--;)Ke[Te++]=p[re++];return Ke}function vl(p,x,D,K){for(var re=-1,ce=p.length,_e=-1,Te=D.length,Pe=-1,Ve=x.length,Ke=Rr(ce-Te,0),Ye=He(Ke+Ve),qe=!K;++re<Ke;)Ye[re]=p[re];for(var lt=re;++Pe<Ve;)Ye[lt+Pe]=x[Pe];for(;++_e<Te;)(qe||re<ce)&&(Ye[lt+D[_e]]=p[re++]);return Ye}function Yr(p,x){var D=-1,K=p.length;for(x||(x=He(K));++D<K;)x[D]=p[D];return x}function $n(p,x,D,K){var re=!D;D||(D={});for(var ce=-1,_e=x.length;++ce<_e;){var Te=x[ce],Pe=K?K(D[Te],p[Te],Te,D,p):e;Pe===e&&(Pe=p[Te]),re?Qn(D,Te,Pe):Is(D,Te,Pe)}return D}function dd(p,x){return $n(p,Io(p),x)}function pd(p,x){return $n(p,Il(p),x)}function ma(p,x){return function(D,K){var re=Rt(D)?Tn:Du,ce=x?x():{};return re(D,p,gt(K,2),ce)}}function as(p){return Lt(function(x,D){var K=-1,re=D.length,ce=re>1?D[re-1]:e,_e=re>2?D[2]:e;for(ce=p.length>3&&typeof ce=="function"?(re--,ce):e,_e&&zr(D[0],D[1],_e)&&(ce=re<3?e:ce,re=1),x=fr(x);++K<re;){var Te=D[K];Te&&p(x,Te,K,ce)}return x})}function yl(p,x){return function(D,K){if(D==null)return D;if(!Zr(D))return p(D,K);for(var re=D.length,ce=x?re:-1,_e=fr(D);(x?ce--:++ce<re)&&K(_e[ce],ce,_e)!==!1;);return D}}function wl(p){return function(x,D,K){for(var re=-1,ce=fr(x),_e=K(x),Te=_e.length;Te--;){var Pe=_e[p?Te:++re];if(D(ce[Pe],Pe,ce)===!1)break}return x}}function md(p,x,D){var K=x&g,re=Ds(p);function ce(){var _e=this&&this!==Ct&&this instanceof ce?re:p;return _e.apply(K?D:this,arguments)}return ce}function xl(p){return function(x){x=ir(x);var D=qi(x)?Rn(x):e,K=D?D[0]:x.charAt(0),re=D?bi(D,1).join(""):x.slice(1);return K[p]()+re}}function os(p){return function(x){return dt(yc(vc(x).replace(Ki,"")),p,"")}}function Ds(p){return function(){var x=arguments;switch(x.length){case 0:return new p;case 1:return new p(x[0]);case 2:return new p(x[0],x[1]);case 3:return new p(x[0],x[1],x[2]);case 4:return new p(x[0],x[1],x[2],x[3]);case 5:return new p(x[0],x[1],x[2],x[3],x[4]);case 6:return new p(x[0],x[1],x[2],x[3],x[4],x[5]);case 7:return new p(x[0],x[1],x[2],x[3],x[4],x[5],x[6])}var D=ss(p.prototype),K=p.apply(D,x);return gr(K)?K:D}}function gd(p,x,D){var K=Ds(p);function re(){for(var ce=arguments.length,_e=He(ce),Te=ce,Pe=fs(re);Te--;)_e[Te]=arguments[Te];var Ve=ce<3&&_e[0]!==Pe&&_e[ce-1]!==Pe?[]:ui(_e,Pe);if(ce-=Ve.length,ce<D)return Tl(p,x,ga,re.placeholder,e,_e,Ve,e,e,D-ce);var Ke=this&&this!==Ct&&this instanceof re?K:p;return hr(Ke,this,_e)}return re}function _l(p){return function(x,D,K){var re=fr(x);if(!Zr(x)){var ce=gt(D,3);x=Fr(x),D=function(Te){return ce(re[Te],Te,re)}}var _e=p(x,D,K);return _e>-1?re[ce?x[_e]:_e]:e}}function Sl(p){return ei(function(x){var D=x.length,K=D,re=yn.prototype.thru;for(p&&x.reverse();K--;){var ce=x[K];if(typeof ce!="function")throw new vn(c);if(re&&!_e&&wa(ce)=="wrapper")var _e=new yn([],!0)}for(K=_e?K:D;++K<D;){ce=x[K];var Te=wa(ce),Pe=Te=="wrapper"?Mo(ce):e;Pe&&Fo(Pe[0])&&Pe[1]==(I|w|S|F)&&!Pe[4].length&&Pe[9]==1?_e=_e[wa(Pe[0])].apply(_e,Pe[3]):_e=ce.length==1&&Fo(ce)?_e[Te]():_e.thru(ce)}return function(){var Ve=arguments,Ke=Ve[0];if(_e&&Ve.length==1&&Rt(Ke))return _e.plant(Ke).value();for(var Ye=0,qe=D?x[Ye].apply(this,Ve):Ke;++Ye<D;)qe=x[Ye].call(this,qe);return qe}})}function ga(p,x,D,K,re,ce,_e,Te,Pe,Ve){var Ke=x&I,Ye=x&g,qe=x&v,lt=x&(w|y),vt=x&B,Bt=qe?e:Ds(p);function yt(){for(var zt=arguments.length,Vt=He(zt),un=zt;un--;)Vt[un]=arguments[un];if(lt)var Ur=fs(yt),dn=kh(Vt,Ur);if(K&&(Vt=bl(Vt,K,re,lt)),ce&&(Vt=vl(Vt,ce,_e,lt)),zt-=dn,lt&&zt<Ve){var xr=ui(Vt,Ur);return Tl(p,x,ga,yt.placeholder,D,Vt,xr,Te,Pe,Ve-zt)}var Fn=Ye?D:this,ii=qe?Fn[p]:p;return zt=Vt.length,Te?Vt=Dd(Vt,Te):vt&&zt>1&&Vt.reverse(),Ke&&Pe<zt&&(Vt.length=Pe),this&&this!==Ct&&this instanceof yt&&(ii=Bt||Ds(ii)),ii.apply(Fn,Vt)}return yt}function El(p,x){return function(D,K){return Xu(D,p,x(K),{})}}function ba(p,x){return function(D,K){var re;if(D===e&&K===e)return x;if(D!==e&&(re=D),K!==e){if(re===e)return K;typeof D=="string"||typeof K=="string"?(D=cn(D),K=cn(K)):(D=ll(D),K=ll(K)),re=p(D,K)}return re}}function Co(p){return ei(function(x){return x=De(x,ln(gt())),Lt(function(D){var K=this;return p(x,function(re){return hr(re,K,D)})})})}function va(p,x){x=x===e?" ":cn(x);var D=x.length;if(D<2)return D?vo(x,p):x;var K=vo(x,ia(p/es(x)));return qi(x)?bi(Rn(K),0,p).join(""):K.slice(0,p)}function bd(p,x,D,K){var re=x&g,ce=Ds(p);function _e(){for(var Te=-1,Pe=arguments.length,Ve=-1,Ke=K.length,Ye=He(Ke+Pe),qe=this&&this!==Ct&&this instanceof _e?ce:p;++Ve<Ke;)Ye[Ve]=K[Ve];for(;Pe--;)Ye[Ve++]=arguments[++Te];return hr(qe,re?D:this,Ye)}return _e}function Cl(p){return function(x,D,K){return K&&typeof K!="number"&&zr(x,D,K)&&(D=K=e),x=ni(x),D===e?(D=x,x=0):D=ni(D),K=K===e?x<D?1:-1:ni(K),rd(x,D,K,p)}}function ya(p){return function(x,D){return typeof x=="string"&&typeof D=="string"||(x=Sn(x),D=Sn(D)),p(x,D)}}function Tl(p,x,D,K,re,ce,_e,Te,Pe,Ve){var Ke=x&w,Ye=Ke?_e:e,qe=Ke?e:_e,lt=Ke?ce:e,vt=Ke?e:ce;x|=Ke?S:E,x&=~(Ke?E:S),x&h||(x&=~(g|v));var Bt=[p,x,re,lt,Ye,vt,qe,Te,Pe,Ve],yt=D.apply(e,Bt);return Fo(p)&&Ll(yt,Bt),yt.placeholder=K,jl(yt,p,x)}function To(p){var x=Mr[p];return function(D,K){if(D=Sn(D),K=K==null?0:Br(Pt(K),292),K&&jf(D)){var re=(ir(D)+"e").split("e"),ce=x(re[0]+"e"+(+re[1]+K));return re=(ir(ce)+"e").split("e"),+(re[0]+"e"+(+re[1]-K))}return x(D)}}var vd=ns&&1/Gs(new ns([,-0]))[1]==T?function(p){return new ns(p)}:Go;function Al(p){return function(x){var D=Lr(x);return D==Z?to(x):D==z?Nh(x):Ah(x,p(x))}}function qn(p,x,D,K,re,ce,_e,Te){var Pe=x&v;if(!Pe&&typeof p!="function")throw new vn(c);var Ve=K?K.length:0;if(Ve||(x&=~(S|E),K=re=e),_e=_e===e?_e:Rr(Pt(_e),0),Te=Te===e?Te:Pt(Te),Ve-=re?re.length:0,x&E){var Ke=K,Ye=re;K=re=e}var qe=Pe?e:Mo(p),lt=[p,x,D,K,re,Ke,Ye,ce,_e,Te];if(qe&&Fd(lt,qe),p=lt[0],x=lt[1],D=lt[2],K=lt[3],re=lt[4],Te=lt[9]=lt[9]===e?Pe?0:p.length:Rr(lt[9]-Ve,0),!Te&&x&(w|y)&&(x&=~(w|y)),!x||x==g)var vt=md(p,x,D);else x==w||x==y?vt=gd(p,x,Te):(x==S||x==(g|S))&&!re.length?vt=bd(p,x,D,K):vt=ga.apply(e,lt);var Bt=qe?ol:Ll;return jl(Bt(vt,lt),p,x)}function kl(p,x,D,K){return p===e||On(p,rs[D])&&!sr.call(K,D)?x:p}function Ml(p,x,D,K,re,ce){return gr(p)&&gr(x)&&(ce.set(x,p),ua(p,x,e,Ml,ce),ce.delete(x)),p}function yd(p){return js(p)?e:p}function Rl(p,x,D,K,re,ce){var _e=D&l,Te=p.length,Pe=x.length;if(Te!=Pe&&!(_e&&Pe>Te))return!1;var Ve=ce.get(p),Ke=ce.get(x);if(Ve&&Ke)return Ve==x&&Ke==p;var Ye=-1,qe=!0,lt=D&a?new ki:e;for(ce.set(p,x),ce.set(x,p);++Ye<Te;){var vt=p[Ye],Bt=x[Ye];if(K)var yt=_e?K(Bt,vt,Ye,x,p,ce):K(vt,Bt,Ye,p,x,ce);if(yt!==e){if(yt)continue;qe=!1;break}if(lt){if(!Ot(x,function(zt,Vt){if(!Cs(lt,Vt)&&(vt===zt||re(vt,zt,D,K,ce)))return lt.push(Vt)})){qe=!1;break}}else if(!(vt===Bt||re(vt,Bt,D,K,ce))){qe=!1;break}}return ce.delete(p),ce.delete(x),qe}function wd(p,x,D,K,re,ce,_e){switch(D){case ee:if(p.byteLength!=x.byteLength||p.byteOffset!=x.byteOffset)return!1;p=p.buffer,x=x.buffer;case Se:return!(p.byteLength!=x.byteLength||!ce(new ea(p),new ea(x)));case ne:case he:case q:return On(+p,+x);case Ae:return p.name==x.name&&p.message==x.message;case Q:case Y:return p==x+"";case Z:var Te=to;case z:var Pe=K&l;if(Te||(Te=Gs),p.size!=x.size&&!Pe)return!1;var Ve=_e.get(p);if(Ve)return Ve==x;K|=a,_e.set(p,x);var Ke=Rl(Te(p),Te(x),K,re,ce,_e);return _e.delete(p),Ke;case fe:if(Rs)return Rs.call(p)==Rs.call(x)}return!1}function xd(p,x,D,K,re,ce){var _e=D&l,Te=Ao(p),Pe=Te.length,Ve=Ao(x),Ke=Ve.length;if(Pe!=Ke&&!_e)return!1;for(var Ye=Pe;Ye--;){var qe=Te[Ye];if(!(_e?qe in x:sr.call(x,qe)))return!1}var lt=ce.get(p),vt=ce.get(x);if(lt&&vt)return lt==x&&vt==p;var Bt=!0;ce.set(p,x),ce.set(x,p);for(var yt=_e;++Ye<Pe;){qe=Te[Ye];var zt=p[qe],Vt=x[qe];if(K)var un=_e?K(Vt,zt,qe,x,p,ce):K(zt,Vt,qe,p,x,ce);if(!(un===e?zt===Vt||re(zt,Vt,D,K,ce):un)){Bt=!1;break}yt||(yt=qe=="constructor")}if(Bt&&!yt){var Ur=p.constructor,dn=x.constructor;Ur!=dn&&"constructor"in p&&"constructor"in x&&!(typeof Ur=="function"&&Ur instanceof Ur&&typeof dn=="function"&&dn instanceof dn)&&(Bt=!1)}return ce.delete(p),ce.delete(x),Bt}function ei(p){return No(Dl(p,e,Wl),p+"")}function Ao(p){return Zf(p,Fr,Io)}function ko(p){return Zf(p,Jr,Il)}var Mo=aa?function(p){return aa.get(p)}:Go;function wa(p){for(var x=p.name+"",D=is[x],K=sr.call(is,x)?D.length:0;K--;){var re=D[K],ce=re.func;if(ce==null||ce==p)return re.name}return x}function fs(p){var x=sr.call(le,"placeholder")?le:p;return x.placeholder}function gt(){var p=le.iteratee||Vo;return p=p===Vo?qf:p,arguments.length?p(arguments[0],arguments[1]):p}function xa(p,x){var D=p.__data__;return Md(x)?D[typeof x=="string"?"string":"hash"]:D.map}function Ro(p){for(var x=Fr(p),D=x.length;D--;){var K=x[D],re=p[K];x[D]=[K,re,Pl(re)]}return x}function Ii(p,x){var D=Oh(p,x);return Qf(D)?D:e}function _d(p){var x=sr.call(p,Ti),D=p[Ti];try{p[Ti]=e;var K=!0}catch{}var re=Qs.call(p);return K&&(x?p[Ti]=D:delete p[Ti]),re}var Io=no?function(p){return p==null?[]:(p=fr(p),Ln(no(p),function(x){return Bf.call(p,x)}))}:Yo,Il=no?function(p){for(var x=[];p;)Ge(x,Io(p)),p=ta(p);return x}:Yo,Lr=Hr;(io&&Lr(new io(new ArrayBuffer(1)))!=ee||As&&Lr(new As)!=Z||so&&Lr(so.resolve())!=oe||ns&&Lr(new ns)!=z||ks&&Lr(new ks)!=U)&&(Lr=function(p){var x=Hr(p),D=x==ke?p.constructor:e,K=D?Oi(D):"";if(K)switch(K){case iu:return ee;case su:return Z;case au:return oe;case ou:return z;case fu:return U}return x});function Sd(p,x,D){for(var K=-1,re=D.length;++K<re;){var ce=D[K],_e=ce.size;switch(ce.type){case"drop":p+=_e;break;case"dropRight":x-=_e;break;case"take":x=Br(x,p+_e);break;case"takeRight":p=Rr(p,x-_e);break}}return{start:p,end:x}}function Ed(p){var x=p.match(er);return x?x[1].split(Kt):[]}function Ol(p,x,D){x=gi(x,p);for(var K=-1,re=x.length,ce=!1;++K<re;){var _e=Hn(x[K]);if(!(ce=p!=null&&D(p,_e)))break;p=p[_e]}return ce||++K!=re?ce:(re=p==null?0:p.length,!!re&&ka(re)&&ti(_e,re)&&(Rt(p)||Fi(p)))}function Cd(p){var x=p.length,D=new p.constructor(x);return x&&typeof p[0]=="string"&&sr.call(p,"index")&&(D.index=p.index,D.input=p.input),D}function Fl(p){return typeof p.constructor=="function"&&!Bs(p)?ss(ta(p)):{}}function Td(p,x,D){var K=p.constructor;switch(x){case Se:return Eo(p);case ne:case he:return new K(+p);case ee:return ld(p,D);case se:case me:case Ee:case Ie:case Ce:case Fe:case ze:case je:case ge:return ml(p,D);case Z:return new K;case q:case Y:return new K(p);case Q:return cd(p);case z:return new K;case fe:return hd(p)}}function Ad(p,x){var D=x.length;if(!D)return p;var K=D-1;return x[K]=(D>1?"& ":"")+x[K],x=x.join(D>2?", ":" "),p.replace(wt,`{
|
||
/* [wrapped with `+x+`] */
|
||
`)}function kd(p){return Rt(p)||Fi(p)||!!(Lf&&p&&p[Lf])}function ti(p,x){var D=typeof p;return x=x??_,!!x&&(D=="number"||D!="symbol"&&Tt.test(p))&&p>-1&&p%1==0&&p<x}function zr(p,x,D){if(!gr(D))return!1;var K=typeof x;return(K=="number"?Zr(D)&&ti(x,D.length):K=="string"&&x in D)?On(D[x],p):!1}function Oo(p,x){if(Rt(p))return!1;var D=typeof p;return D=="number"||D=="symbol"||D=="boolean"||p==null||hn(p)?!0:ft.test(p)||!_t.test(p)||x!=null&&p in fr(x)}function Md(p){var x=typeof p;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?p!=="__proto__":p===null}function Fo(p){var x=wa(p),D=le[x];if(typeof D!="function"||!(x in Xt.prototype))return!1;if(p===D)return!0;var K=Mo(D);return!!K&&p===K[0]}function Rd(p){return!!Pf&&Pf in p}var Id=Zs?ri:Zo;function Bs(p){var x=p&&p.constructor,D=typeof x=="function"&&x.prototype||rs;return p===D}function Pl(p){return p===p&&!gr(p)}function Nl(p,x){return function(D){return D==null?!1:D[p]===x&&(x!==e||p in fr(D))}}function Od(p){var x=Ta(p,function(K){return D.size===t&&D.clear(),K}),D=x.cache;return x}function Fd(p,x){var D=p[1],K=x[1],re=D|K,ce=re<(g|v|I),_e=K==I&&D==w||K==I&&D==F&&p[7].length<=x[8]||K==(I|F)&&x[7].length<=x[8]&&D==w;if(!(ce||_e))return p;K&g&&(p[2]=x[2],re|=D&g?0:h);var Te=x[3];if(Te){var Pe=p[3];p[3]=Pe?bl(Pe,Te,x[4]):Te,p[4]=Pe?ui(p[3],n):x[4]}return Te=x[5],Te&&(Pe=p[5],p[5]=Pe?vl(Pe,Te,x[6]):Te,p[6]=Pe?ui(p[5],n):x[6]),Te=x[7],Te&&(p[7]=Te),K&I&&(p[8]=p[8]==null?x[8]:Br(p[8],x[8])),p[9]==null&&(p[9]=x[9]),p[0]=x[0],p[1]=re,p}function Pd(p){var x=[];if(p!=null)for(var D in fr(p))x.push(D);return x}function Nd(p){return Qs.call(p)}function Dl(p,x,D){return x=Rr(x===e?p.length-1:x,0),function(){for(var K=arguments,re=-1,ce=Rr(K.length-x,0),_e=He(ce);++re<ce;)_e[re]=K[x+re];re=-1;for(var Te=He(x+1);++re<x;)Te[re]=K[re];return Te[x]=D(_e),hr(p,this,Te)}}function Bl(p,x){return x.length<2?p:Ri(p,xn(x,0,-1))}function Dd(p,x){for(var D=p.length,K=Br(x.length,D),re=Yr(p);K--;){var ce=x[K];p[K]=ti(ce,D)?re[ce]:e}return p}function Po(p,x){if(!(x==="constructor"&&typeof p[x]=="function")&&x!="__proto__")return p[x]}var Ll=$l(ol),Ls=Jh||function(p,x){return Ct.setTimeout(p,x)},No=$l(sd);function jl(p,x,D){var K=x+"";return No(p,Ad(K,Bd(Ed(K),D)))}function $l(p){var x=0,D=0;return function(){var K=tu(),re=V-(K-D);if(D=K,re>0){if(++x>=G)return arguments[0]}else x=0;return p.apply(e,arguments)}}function _a(p,x){var D=-1,K=p.length,re=K-1;for(x=x===e?K:x;++D<x;){var ce=bo(D,re),_e=p[ce];p[ce]=p[D],p[D]=_e}return p.length=x,p}var Hl=Od(function(p){var x=[];return p.charCodeAt(0)===46&&x.push(""),p.replace(jt,function(D,K,re,ce){x.push(re?ce.replace(kt,"$1"):K||D)}),x});function Hn(p){if(typeof p=="string"||hn(p))return p;var x=p+"";return x=="0"&&1/p==-T?"-0":x}function Oi(p){if(p!=null){try{return Js.call(p)}catch{}try{return p+""}catch{}}return""}function Bd(p,x){return Pr(k,function(D){var K="_."+D[0];x&D[1]&&!ae(p,K)&&p.push(K)}),p.sort()}function zl(p){if(p instanceof Xt)return p.clone();var x=new yn(p.__wrapped__,p.__chain__);return x.__actions__=Yr(p.__actions__),x.__index__=p.__index__,x.__values__=p.__values__,x}function Ld(p,x,D){(D?zr(p,x,D):x===e)?x=1:x=Rr(Pt(x),0);var K=p==null?0:p.length;if(!K||x<1)return[];for(var re=0,ce=0,_e=He(ia(K/x));re<K;)_e[ce++]=xn(p,re,re+=x);return _e}function jd(p){for(var x=-1,D=p==null?0:p.length,K=0,re=[];++x<D;){var ce=p[x];ce&&(re[K++]=ce)}return re}function $d(){var p=arguments.length;if(!p)return[];for(var x=He(p-1),D=arguments[0],K=p;K--;)x[K-1]=arguments[K];return Ge(Rt(D)?Yr(D):[D],Nr(x,1))}var Hd=Lt(function(p,x){return wr(p)?Os(p,Nr(x,1,wr,!0)):[]}),zd=Lt(function(p,x){var D=_n(x);return wr(D)&&(D=e),wr(p)?Os(p,Nr(x,1,wr,!0),gt(D,2)):[]}),Ud=Lt(function(p,x){var D=_n(x);return wr(D)&&(D=e),wr(p)?Os(p,Nr(x,1,wr,!0),e,D):[]});function Xd(p,x,D){var K=p==null?0:p.length;return K?(x=D||x===e?1:Pt(x),xn(p,x<0?0:x,K)):[]}function Wd(p,x,D){var K=p==null?0:p.length;return K?(x=D||x===e?1:Pt(x),x=K-x,xn(p,0,x<0?0:x)):[]}function Vd(p,x){return p&&p.length?pa(p,gt(x,3),!0,!0):[]}function Kd(p,x){return p&&p.length?pa(p,gt(x,3),!0):[]}function Gd(p,x,D,K){var re=p==null?0:p.length;return re?(D&&typeof D!="number"&&zr(p,x,D)&&(D=0,K=re),$u(p,x,D,K)):[]}function Ul(p,x,D){var K=p==null?0:p.length;if(!K)return-1;var re=D==null?0:Pt(D);return re<0&&(re=Rr(K+re,0)),kr(p,gt(x,3),re)}function Xl(p,x,D){var K=p==null?0:p.length;if(!K)return-1;var re=K-1;return D!==e&&(re=Pt(D),re=D<0?Rr(K+re,0):Br(re,K-1)),kr(p,gt(x,3),re,!0)}function Wl(p){var x=p==null?0:p.length;return x?Nr(p,1):[]}function Yd(p){var x=p==null?0:p.length;return x?Nr(p,T):[]}function Zd(p,x){var D=p==null?0:p.length;return D?(x=x===e?1:Pt(x),Nr(p,x)):[]}function Jd(p){for(var x=-1,D=p==null?0:p.length,K={};++x<D;){var re=p[x];K[re[0]]=re[1]}return K}function Vl(p){return p&&p.length?p[0]:e}function Qd(p,x,D){var K=p==null?0:p.length;if(!K)return-1;var re=D==null?0:Pt(D);return re<0&&(re=Rr(K+re,0)),dr(p,x,re)}function qd(p){var x=p==null?0:p.length;return x?xn(p,0,-1):[]}var e0=Lt(function(p){var x=De(p,_o);return x.length&&x[0]===p[0]?ho(x):[]}),t0=Lt(function(p){var x=_n(p),D=De(p,_o);return x===_n(D)?x=e:D.pop(),D.length&&D[0]===p[0]?ho(D,gt(x,2)):[]}),r0=Lt(function(p){var x=_n(p),D=De(p,_o);return x=typeof x=="function"?x:e,x&&D.pop(),D.length&&D[0]===p[0]?ho(D,e,x):[]});function n0(p,x){return p==null?"":qh.call(p,x)}function _n(p){var x=p==null?0:p.length;return x?p[x-1]:e}function i0(p,x,D){var K=p==null?0:p.length;if(!K)return-1;var re=K;return D!==e&&(re=Pt(D),re=re<0?Rr(K+re,0):Br(re,K-1)),x===x?Bh(p,x,re):kr(p,$r,re,!0)}function s0(p,x){return p&&p.length?nl(p,Pt(x)):e}var a0=Lt(Kl);function Kl(p,x){return p&&p.length&&x&&x.length?go(p,x):p}function o0(p,x,D){return p&&p.length&&x&&x.length?go(p,x,gt(D,2)):p}function f0(p,x,D){return p&&p.length&&x&&x.length?go(p,x,e,D):p}var l0=ei(function(p,x){var D=p==null?0:p.length,K=oo(p,x);return al(p,De(x,function(re){return ti(re,D)?+re:re}).sort(gl)),K});function c0(p,x){var D=[];if(!(p&&p.length))return D;var K=-1,re=[],ce=p.length;for(x=gt(x,3);++K<ce;){var _e=p[K];x(_e,K,p)&&(D.push(_e),re.push(K))}return al(p,re),D}function Do(p){return p==null?p:nu.call(p)}function h0(p,x,D){var K=p==null?0:p.length;return K?(D&&typeof D!="number"&&zr(p,x,D)?(x=0,D=K):(x=x==null?0:Pt(x),D=D===e?K:Pt(D)),xn(p,x,D)):[]}function u0(p,x){return da(p,x)}function d0(p,x,D){return yo(p,x,gt(D,2))}function p0(p,x){var D=p==null?0:p.length;if(D){var K=da(p,x);if(K<D&&On(p[K],x))return K}return-1}function m0(p,x){return da(p,x,!0)}function g0(p,x,D){return yo(p,x,gt(D,2),!0)}function b0(p,x){var D=p==null?0:p.length;if(D){var K=da(p,x,!0)-1;if(On(p[K],x))return K}return-1}function v0(p){return p&&p.length?fl(p):[]}function y0(p,x){return p&&p.length?fl(p,gt(x,2)):[]}function w0(p){var x=p==null?0:p.length;return x?xn(p,1,x):[]}function x0(p,x,D){return p&&p.length?(x=D||x===e?1:Pt(x),xn(p,0,x<0?0:x)):[]}function _0(p,x,D){var K=p==null?0:p.length;return K?(x=D||x===e?1:Pt(x),x=K-x,xn(p,x<0?0:x,K)):[]}function S0(p,x){return p&&p.length?pa(p,gt(x,3),!1,!0):[]}function E0(p,x){return p&&p.length?pa(p,gt(x,3)):[]}var C0=Lt(function(p){return mi(Nr(p,1,wr,!0))}),T0=Lt(function(p){var x=_n(p);return wr(x)&&(x=e),mi(Nr(p,1,wr,!0),gt(x,2))}),A0=Lt(function(p){var x=_n(p);return x=typeof x=="function"?x:e,mi(Nr(p,1,wr,!0),e,x)});function k0(p){return p&&p.length?mi(p):[]}function M0(p,x){return p&&p.length?mi(p,gt(x,2)):[]}function R0(p,x){return x=typeof x=="function"?x:e,p&&p.length?mi(p,e,x):[]}function Bo(p){if(!(p&&p.length))return[];var x=0;return p=Ln(p,function(D){if(wr(D))return x=Rr(D.length,x),!0}),qa(x,function(D){return De(p,fn(D))})}function Gl(p,x){if(!(p&&p.length))return[];var D=Bo(p);return x==null?D:De(D,function(K){return hr(x,e,K)})}var I0=Lt(function(p,x){return wr(p)?Os(p,x):[]}),O0=Lt(function(p){return xo(Ln(p,wr))}),F0=Lt(function(p){var x=_n(p);return wr(x)&&(x=e),xo(Ln(p,wr),gt(x,2))}),P0=Lt(function(p){var x=_n(p);return x=typeof x=="function"?x:e,xo(Ln(p,wr),e,x)}),N0=Lt(Bo);function D0(p,x){return ul(p||[],x||[],Is)}function B0(p,x){return ul(p||[],x||[],Ns)}var L0=Lt(function(p){var x=p.length,D=x>1?p[x-1]:e;return D=typeof D=="function"?(p.pop(),D):e,Gl(p,D)});function Yl(p){var x=le(p);return x.__chain__=!0,x}function j0(p,x){return x(p),p}function Sa(p,x){return x(p)}var $0=ei(function(p){var x=p.length,D=x?p[0]:0,K=this.__wrapped__,re=function(ce){return oo(ce,p)};return x>1||this.__actions__.length||!(K instanceof Xt)||!ti(D)?this.thru(re):(K=K.slice(D,+D+(x?1:0)),K.__actions__.push({func:Sa,args:[re],thisArg:e}),new yn(K,this.__chain__).thru(function(ce){return x&&!ce.length&&ce.push(e),ce}))});function H0(){return Yl(this)}function z0(){return new yn(this.value(),this.__chain__)}function U0(){this.__values__===e&&(this.__values__=lc(this.value()));var p=this.__index__>=this.__values__.length,x=p?e:this.__values__[this.__index__++];return{done:p,value:x}}function X0(){return this}function W0(p){for(var x,D=this;D instanceof fa;){var K=zl(D);K.__index__=0,K.__values__=e,x?re.__wrapped__=K:x=K;var re=K;D=D.__wrapped__}return re.__wrapped__=p,x}function V0(){var p=this.__wrapped__;if(p instanceof Xt){var x=p;return this.__actions__.length&&(x=new Xt(this)),x=x.reverse(),x.__actions__.push({func:Sa,args:[Do],thisArg:e}),new yn(x,this.__chain__)}return this.thru(Do)}function K0(){return hl(this.__wrapped__,this.__actions__)}var G0=ma(function(p,x,D){sr.call(p,D)?++p[D]:Qn(p,D,1)});function Y0(p,x,D){var K=Rt(p)?Yn:ju;return D&&zr(p,x,D)&&(x=e),K(p,gt(x,3))}function Z0(p,x){var D=Rt(p)?Ln:Gf;return D(p,gt(x,3))}var J0=_l(Ul),Q0=_l(Xl);function q0(p,x){return Nr(Ea(p,x),1)}function ep(p,x){return Nr(Ea(p,x),T)}function tp(p,x,D){return D=D===e?1:Pt(D),Nr(Ea(p,x),D)}function Zl(p,x){var D=Rt(p)?Pr:pi;return D(p,gt(x,3))}function Jl(p,x){var D=Rt(p)?An:Kf;return D(p,gt(x,3))}var rp=ma(function(p,x,D){sr.call(p,D)?p[D].push(x):Qn(p,D,[x])});function np(p,x,D,K){p=Zr(p)?p:cs(p),D=D&&!K?Pt(D):0;var re=p.length;return D<0&&(D=Rr(re+D,0)),Ma(p)?D<=re&&p.indexOf(x,D)>-1:!!re&&dr(p,x,D)>-1}var ip=Lt(function(p,x,D){var K=-1,re=typeof x=="function",ce=Zr(p)?He(p.length):[];return pi(p,function(_e){ce[++K]=re?hr(x,_e,D):Fs(_e,x,D)}),ce}),sp=ma(function(p,x,D){Qn(p,D,x)});function Ea(p,x){var D=Rt(p)?De:el;return D(p,gt(x,3))}function ap(p,x,D,K){return p==null?[]:(Rt(x)||(x=x==null?[]:[x]),D=K?e:D,Rt(D)||(D=D==null?[]:[D]),il(p,x,D))}var op=ma(function(p,x,D){p[D?0:1].push(x)},function(){return[[],[]]});function fp(p,x,D){var K=Rt(p)?dt:Es,re=arguments.length<3;return K(p,gt(x,4),D,re,pi)}function lp(p,x,D){var K=Rt(p)?nt:Es,re=arguments.length<3;return K(p,gt(x,4),D,re,Kf)}function cp(p,x){var D=Rt(p)?Ln:Gf;return D(p,Aa(gt(x,3)))}function hp(p){var x=Rt(p)?Uf:nd;return x(p)}function up(p,x,D){(D?zr(p,x,D):x===e)?x=1:x=Pt(x);var K=Rt(p)?Pu:id;return K(p,x)}function dp(p){var x=Rt(p)?Nu:ad;return x(p)}function pp(p){if(p==null)return 0;if(Zr(p))return Ma(p)?es(p):p.length;var x=Lr(p);return x==Z||x==z?p.size:po(p).length}function mp(p,x,D){var K=Rt(p)?Ot:od;return D&&zr(p,x,D)&&(x=e),K(p,gt(x,3))}var gp=Lt(function(p,x){if(p==null)return[];var D=x.length;return D>1&&zr(p,x[0],x[1])?x=[]:D>2&&zr(x[0],x[1],x[2])&&(x=[x[0]]),il(p,Nr(x,1),[])}),Ca=Zh||function(){return Ct.Date.now()};function bp(p,x){if(typeof x!="function")throw new vn(c);return p=Pt(p),function(){if(--p<1)return x.apply(this,arguments)}}function Ql(p,x,D){return x=D?e:x,x=p&&x==null?p.length:x,qn(p,I,e,e,e,e,x)}function ql(p,x){var D;if(typeof x!="function")throw new vn(c);return p=Pt(p),function(){return--p>0&&(D=x.apply(this,arguments)),p<=1&&(x=e),D}}var Lo=Lt(function(p,x,D){var K=g;if(D.length){var re=ui(D,fs(Lo));K|=S}return qn(p,K,x,D,re)}),ec=Lt(function(p,x,D){var K=g|v;if(D.length){var re=ui(D,fs(ec));K|=S}return qn(x,K,p,D,re)});function tc(p,x,D){x=D?e:x;var K=qn(p,w,e,e,e,e,e,x);return K.placeholder=tc.placeholder,K}function rc(p,x,D){x=D?e:x;var K=qn(p,y,e,e,e,e,e,x);return K.placeholder=rc.placeholder,K}function nc(p,x,D){var K,re,ce,_e,Te,Pe,Ve=0,Ke=!1,Ye=!1,qe=!0;if(typeof p!="function")throw new vn(c);x=Sn(x)||0,gr(D)&&(Ke=!!D.leading,Ye="maxWait"in D,ce=Ye?Rr(Sn(D.maxWait)||0,x):ce,qe="trailing"in D?!!D.trailing:qe);function lt(xr){var Fn=K,ii=re;return K=re=e,Ve=xr,_e=p.apply(ii,Fn),_e}function vt(xr){return Ve=xr,Te=Ls(zt,x),Ke?lt(xr):_e}function Bt(xr){var Fn=xr-Pe,ii=xr-Ve,_c=x-Fn;return Ye?Br(_c,ce-ii):_c}function yt(xr){var Fn=xr-Pe,ii=xr-Ve;return Pe===e||Fn>=x||Fn<0||Ye&&ii>=ce}function zt(){var xr=Ca();if(yt(xr))return Vt(xr);Te=Ls(zt,Bt(xr))}function Vt(xr){return Te=e,qe&&K?lt(xr):(K=re=e,_e)}function un(){Te!==e&&dl(Te),Ve=0,K=Pe=re=Te=e}function Ur(){return Te===e?_e:Vt(Ca())}function dn(){var xr=Ca(),Fn=yt(xr);if(K=arguments,re=this,Pe=xr,Fn){if(Te===e)return vt(Pe);if(Ye)return dl(Te),Te=Ls(zt,x),lt(Pe)}return Te===e&&(Te=Ls(zt,x)),_e}return dn.cancel=un,dn.flush=Ur,dn}var vp=Lt(function(p,x){return Vf(p,1,x)}),yp=Lt(function(p,x,D){return Vf(p,Sn(x)||0,D)});function wp(p){return qn(p,B)}function Ta(p,x){if(typeof p!="function"||x!=null&&typeof x!="function")throw new vn(c);var D=function(){var K=arguments,re=x?x.apply(this,K):K[0],ce=D.cache;if(ce.has(re))return ce.get(re);var _e=p.apply(this,K);return D.cache=ce.set(re,_e)||ce,_e};return D.cache=new(Ta.Cache||Jn),D}Ta.Cache=Jn;function Aa(p){if(typeof p!="function")throw new vn(c);return function(){var x=arguments;switch(x.length){case 0:return!p.call(this);case 1:return!p.call(this,x[0]);case 2:return!p.call(this,x[0],x[1]);case 3:return!p.call(this,x[0],x[1],x[2])}return!p.apply(this,x)}}function xp(p){return ql(2,p)}var _p=fd(function(p,x){x=x.length==1&&Rt(x[0])?De(x[0],ln(gt())):De(Nr(x,1),ln(gt()));var D=x.length;return Lt(function(K){for(var re=-1,ce=Br(K.length,D);++re<ce;)K[re]=x[re].call(this,K[re]);return hr(p,this,K)})}),jo=Lt(function(p,x){var D=ui(x,fs(jo));return qn(p,S,e,x,D)}),ic=Lt(function(p,x){var D=ui(x,fs(ic));return qn(p,E,e,x,D)}),Sp=ei(function(p,x){return qn(p,F,e,e,e,x)});function Ep(p,x){if(typeof p!="function")throw new vn(c);return x=x===e?x:Pt(x),Lt(p,x)}function Cp(p,x){if(typeof p!="function")throw new vn(c);return x=x==null?0:Rr(Pt(x),0),Lt(function(D){var K=D[x],re=bi(D,0,x);return K&&Ge(re,K),hr(p,this,re)})}function Tp(p,x,D){var K=!0,re=!0;if(typeof p!="function")throw new vn(c);return gr(D)&&(K="leading"in D?!!D.leading:K,re="trailing"in D?!!D.trailing:re),nc(p,x,{leading:K,maxWait:x,trailing:re})}function Ap(p){return Ql(p,1)}function kp(p,x){return jo(So(x),p)}function Mp(){if(!arguments.length)return[];var p=arguments[0];return Rt(p)?p:[p]}function Rp(p){return wn(p,o)}function Ip(p,x){return x=typeof x=="function"?x:e,wn(p,o,x)}function Op(p){return wn(p,r|o)}function Fp(p,x){return x=typeof x=="function"?x:e,wn(p,r|o,x)}function Pp(p,x){return x==null||Wf(p,x,Fr(x))}function On(p,x){return p===x||p!==p&&x!==x}var Np=ya(co),Dp=ya(function(p,x){return p>=x}),Fi=Jf(function(){return arguments}())?Jf:function(p){return br(p)&&sr.call(p,"callee")&&!Bf.call(p,"callee")},Rt=He.isArray,Bp=Tr?ln(Tr):Wu;function Zr(p){return p!=null&&ka(p.length)&&!ri(p)}function wr(p){return br(p)&&Zr(p)}function Lp(p){return p===!0||p===!1||br(p)&&Hr(p)==ne}var vi=Qh||Zo,jp=Ir?ln(Ir):Vu;function $p(p){return br(p)&&p.nodeType===1&&!js(p)}function Hp(p){if(p==null)return!0;if(Zr(p)&&(Rt(p)||typeof p=="string"||typeof p.splice=="function"||vi(p)||ls(p)||Fi(p)))return!p.length;var x=Lr(p);if(x==Z||x==z)return!p.size;if(Bs(p))return!po(p).length;for(var D in p)if(sr.call(p,D))return!1;return!0}function zp(p,x){return Ps(p,x)}function Up(p,x,D){D=typeof D=="function"?D:e;var K=D?D(p,x):e;return K===e?Ps(p,x,e,D):!!K}function $o(p){if(!br(p))return!1;var x=Hr(p);return x==Ae||x==ue||typeof p.message=="string"&&typeof p.name=="string"&&!js(p)}function Xp(p){return typeof p=="number"&&jf(p)}function ri(p){if(!gr(p))return!1;var x=Hr(p);return x==pe||x==te||x==W||x==ie}function sc(p){return typeof p=="number"&&p==Pt(p)}function ka(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=_}function gr(p){var x=typeof p;return p!=null&&(x=="object"||x=="function")}function br(p){return p!=null&&typeof p=="object"}var ac=pr?ln(pr):Gu;function Wp(p,x){return p===x||uo(p,x,Ro(x))}function Vp(p,x,D){return D=typeof D=="function"?D:e,uo(p,x,Ro(x),D)}function Kp(p){return oc(p)&&p!=+p}function Gp(p){if(Id(p))throw new At(f);return Qf(p)}function Yp(p){return p===null}function Zp(p){return p==null}function oc(p){return typeof p=="number"||br(p)&&Hr(p)==q}function js(p){if(!br(p)||Hr(p)!=ke)return!1;var x=ta(p);if(x===null)return!0;var D=sr.call(x,"constructor")&&x.constructor;return typeof D=="function"&&D instanceof D&&Js.call(D)==Vh}var Ho=Sr?ln(Sr):Yu;function Jp(p){return sc(p)&&p>=-_&&p<=_}var fc=Ar?ln(Ar):Zu;function Ma(p){return typeof p=="string"||!Rt(p)&&br(p)&&Hr(p)==Y}function hn(p){return typeof p=="symbol"||br(p)&&Hr(p)==fe}var ls=on?ln(on):Ju;function Qp(p){return p===e}function qp(p){return br(p)&&Lr(p)==U}function em(p){return br(p)&&Hr(p)==ve}var tm=ya(mo),rm=ya(function(p,x){return p<=x});function lc(p){if(!p)return[];if(Zr(p))return Ma(p)?Rn(p):Yr(p);if(Ts&&p[Ts])return Ph(p[Ts]());var x=Lr(p),D=x==Z?to:x==z?Gs:cs;return D(p)}function ni(p){if(!p)return p===0?p:0;if(p=Sn(p),p===T||p===-T){var x=p<0?-1:1;return x*A}return p===p?p:0}function Pt(p){var x=ni(p),D=x%1;return x===x?D?x-D:x:0}function cc(p){return p?Mi(Pt(p),0,L):0}function Sn(p){if(typeof p=="number")return p;if(hn(p))return P;if(gr(p)){var x=typeof p.valueOf=="function"?p.valueOf():p;p=gr(x)?x+"":x}if(typeof p!="string")return p===0?p:+p;p=Mf(p);var D=mt.test(p);return D||St.test(p)?Re(p.slice(2),D?2:8):Qt.test(p)?P:+p}function hc(p){return $n(p,Jr(p))}function nm(p){return p?Mi(Pt(p),-_,_):p===0?p:0}function ir(p){return p==null?"":cn(p)}var im=as(function(p,x){if(Bs(x)||Zr(x)){$n(x,Fr(x),p);return}for(var D in x)sr.call(x,D)&&Is(p,D,x[D])}),uc=as(function(p,x){$n(x,Jr(x),p)}),Ra=as(function(p,x,D,K){$n(x,Jr(x),p,K)}),sm=as(function(p,x,D,K){$n(x,Fr(x),p,K)}),am=ei(oo);function om(p,x){var D=ss(p);return x==null?D:Xf(D,x)}var fm=Lt(function(p,x){p=fr(p);var D=-1,K=x.length,re=K>2?x[2]:e;for(re&&zr(x[0],x[1],re)&&(K=1);++D<K;)for(var ce=x[D],_e=Jr(ce),Te=-1,Pe=_e.length;++Te<Pe;){var Ve=_e[Te],Ke=p[Ve];(Ke===e||On(Ke,rs[Ve])&&!sr.call(p,Ve))&&(p[Ve]=ce[Ve])}return p}),lm=Lt(function(p){return p.push(e,Ml),hr(dc,e,p)});function cm(p,x){return Or(p,gt(x,3),jn)}function hm(p,x){return Or(p,gt(x,3),lo)}function um(p,x){return p==null?p:fo(p,gt(x,3),Jr)}function dm(p,x){return p==null?p:Yf(p,gt(x,3),Jr)}function pm(p,x){return p&&jn(p,gt(x,3))}function mm(p,x){return p&&lo(p,gt(x,3))}function gm(p){return p==null?[]:ha(p,Fr(p))}function bm(p){return p==null?[]:ha(p,Jr(p))}function zo(p,x,D){var K=p==null?e:Ri(p,x);return K===e?D:K}function vm(p,x){return p!=null&&Ol(p,x,Hu)}function Uo(p,x){return p!=null&&Ol(p,x,zu)}var ym=El(function(p,x,D){x!=null&&typeof x.toString!="function"&&(x=Qs.call(x)),p[x]=D},Wo(Qr)),wm=El(function(p,x,D){x!=null&&typeof x.toString!="function"&&(x=Qs.call(x)),sr.call(p,x)?p[x].push(D):p[x]=[D]},gt),xm=Lt(Fs);function Fr(p){return Zr(p)?zf(p):po(p)}function Jr(p){return Zr(p)?zf(p,!0):Qu(p)}function _m(p,x){var D={};return x=gt(x,3),jn(p,function(K,re,ce){Qn(D,x(K,re,ce),K)}),D}function Sm(p,x){var D={};return x=gt(x,3),jn(p,function(K,re,ce){Qn(D,re,x(K,re,ce))}),D}var Em=as(function(p,x,D){ua(p,x,D)}),dc=as(function(p,x,D,K){ua(p,x,D,K)}),Cm=ei(function(p,x){var D={};if(p==null)return D;var K=!1;x=De(x,function(ce){return ce=gi(ce,p),K||(K=ce.length>1),ce}),$n(p,ko(p),D),K&&(D=wn(D,r|i|o,yd));for(var re=x.length;re--;)wo(D,x[re]);return D});function Tm(p,x){return pc(p,Aa(gt(x)))}var Am=ei(function(p,x){return p==null?{}:ed(p,x)});function pc(p,x){if(p==null)return{};var D=De(ko(p),function(K){return[K]});return x=gt(x),sl(p,D,function(K,re){return x(K,re[0])})}function km(p,x,D){x=gi(x,p);var K=-1,re=x.length;for(re||(re=1,p=e);++K<re;){var ce=p==null?e:p[Hn(x[K])];ce===e&&(K=re,ce=D),p=ri(ce)?ce.call(p):ce}return p}function Mm(p,x,D){return p==null?p:Ns(p,x,D)}function Rm(p,x,D,K){return K=typeof K=="function"?K:e,p==null?p:Ns(p,x,D,K)}var mc=Al(Fr),gc=Al(Jr);function Im(p,x,D){var K=Rt(p),re=K||vi(p)||ls(p);if(x=gt(x,4),D==null){var ce=p&&p.constructor;re?D=K?new ce:[]:gr(p)?D=ri(ce)?ss(ta(p)):{}:D={}}return(re?Pr:jn)(p,function(_e,Te,Pe){return x(D,_e,Te,Pe)}),D}function Om(p,x){return p==null?!0:wo(p,x)}function Fm(p,x,D){return p==null?p:cl(p,x,So(D))}function Pm(p,x,D,K){return K=typeof K=="function"?K:e,p==null?p:cl(p,x,So(D),K)}function cs(p){return p==null?[]:eo(p,Fr(p))}function Nm(p){return p==null?[]:eo(p,Jr(p))}function Dm(p,x,D){return D===e&&(D=x,x=e),D!==e&&(D=Sn(D),D=D===D?D:0),x!==e&&(x=Sn(x),x=x===x?x:0),Mi(Sn(p),x,D)}function Bm(p,x,D){return x=ni(x),D===e?(D=x,x=0):D=ni(D),p=Sn(p),Uu(p,x,D)}function Lm(p,x,D){if(D&&typeof D!="boolean"&&zr(p,x,D)&&(x=D=e),D===e&&(typeof x=="boolean"?(D=x,x=e):typeof p=="boolean"&&(D=p,p=e)),p===e&&x===e?(p=0,x=1):(p=ni(p),x===e?(x=p,p=0):x=ni(x)),p>x){var K=p;p=x,x=K}if(D||p%1||x%1){var re=$f();return Br(p+re*(x-p+ye("1e-"+((re+"").length-1))),x)}return bo(p,x)}var jm=os(function(p,x,D){return x=x.toLowerCase(),p+(D?bc(x):x)});function bc(p){return Xo(ir(p).toLowerCase())}function vc(p){return p=ir(p),p&&p.replace(be,Mh).replace(xs,"")}function $m(p,x,D){p=ir(p),x=cn(x);var K=p.length;D=D===e?K:Mi(Pt(D),0,K);var re=D;return D-=x.length,D>=0&&p.slice(D,re)==x}function Hm(p){return p=ir(p),p&&rt.test(p)?p.replace(ct,Rh):p}function zm(p){return p=ir(p),p&&ht.test(p)?p.replace(It,"\\$&"):p}var Um=os(function(p,x,D){return p+(D?"-":"")+x.toLowerCase()}),Xm=os(function(p,x,D){return p+(D?" ":"")+x.toLowerCase()}),Wm=xl("toLowerCase");function Vm(p,x,D){p=ir(p),x=Pt(x);var K=x?es(p):0;if(!x||K>=x)return p;var re=(x-K)/2;return va(sa(re),D)+p+va(ia(re),D)}function Km(p,x,D){p=ir(p),x=Pt(x);var K=x?es(p):0;return x&&K<x?p+va(x-K,D):p}function Gm(p,x,D){p=ir(p),x=Pt(x);var K=x?es(p):0;return x&&K<x?va(x-K,D)+p:p}function Ym(p,x,D){return D||x==null?x=0:x&&(x=+x),ru(ir(p).replace(Dt,""),x||0)}function Zm(p,x,D){return(D?zr(p,x,D):x===e)?x=1:x=Pt(x),vo(ir(p),x)}function Jm(){var p=arguments,x=ir(p[0]);return p.length<3?x:x.replace(p[1],p[2])}var Qm=os(function(p,x,D){return p+(D?"_":"")+x.toLowerCase()});function qm(p,x,D){return D&&typeof D!="number"&&zr(p,x,D)&&(x=D=e),D=D===e?L:D>>>0,D?(p=ir(p),p&&(typeof x=="string"||x!=null&&!Ho(x))&&(x=cn(x),!x&&qi(p))?bi(Rn(p),0,D):p.split(x,D)):[]}var e1=os(function(p,x,D){return p+(D?" ":"")+Xo(x)});function t1(p,x,D){return p=ir(p),D=D==null?0:Mi(Pt(D),0,p.length),x=cn(x),p.slice(D,D+x.length)==x}function r1(p,x,D){var K=le.templateSettings;D&&zr(p,x,D)&&(x=e),p=ir(p),x=Ra({},x,K,kl);var re=Ra({},x.imports,K.imports,kl),ce=Fr(re),_e=eo(re,ce),Te,Pe,Ve=0,Ke=x.interpolate||Ne,Ye="__p += '",qe=ro((x.escape||Ne).source+"|"+Ke.source+"|"+(Ke===et?xt:Ne).source+"|"+(x.evaluate||Ne).source+"|$","g"),lt="//# sourceURL="+(sr.call(x,"sourceURL")?(x.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ci+"]")+`
|
||
`;p.replace(qe,function(yt,zt,Vt,un,Ur,dn){return Vt||(Vt=un),Ye+=p.slice(Ve,dn).replace(Le,Ih),zt&&(Te=!0,Ye+=`' +
|
||
__e(`+zt+`) +
|
||
'`),Ur&&(Pe=!0,Ye+=`';
|
||
`+Ur+`;
|
||
__p += '`),Vt&&(Ye+=`' +
|
||
((__t = (`+Vt+`)) == null ? '' : __t) +
|
||
'`),Ve=dn+yt.length,yt}),Ye+=`';
|
||
`;var vt=sr.call(x,"variable")&&x.variable;if(!vt)Ye=`with (obj) {
|
||
`+Ye+`
|
||
}
|
||
`;else if(Gt.test(vt))throw new At(u);Ye=(Pe?Ye.replace(Me,""):Ye).replace(Be,"$1").replace(Xe,"$1;"),Ye="function("+(vt||"obj")+`) {
|
||
`+(vt?"":`obj || (obj = {});
|
||
`)+"var __t, __p = ''"+(Te?", __e = _.escape":"")+(Pe?`, __j = Array.prototype.join;
|
||
function print() { __p += __j.call(arguments, '') }
|
||
`:`;
|
||
`)+Ye+`return __p
|
||
}`;var Bt=wc(function(){return tr(ce,lt+"return "+Ye).apply(e,_e)});if(Bt.source=Ye,$o(Bt))throw Bt;return Bt}function n1(p){return ir(p).toLowerCase()}function i1(p){return ir(p).toUpperCase()}function s1(p,x,D){if(p=ir(p),p&&(D||x===e))return Mf(p);if(!p||!(x=cn(x)))return p;var K=Rn(p),re=Rn(x),ce=Rf(K,re),_e=If(K,re)+1;return bi(K,ce,_e).join("")}function a1(p,x,D){if(p=ir(p),p&&(D||x===e))return p.slice(0,Ff(p)+1);if(!p||!(x=cn(x)))return p;var K=Rn(p),re=If(K,Rn(x))+1;return bi(K,0,re).join("")}function o1(p,x,D){if(p=ir(p),p&&(D||x===e))return p.replace(Dt,"");if(!p||!(x=cn(x)))return p;var K=Rn(p),re=Rf(K,Rn(x));return bi(K,re).join("")}function f1(p,x){var D=j,K=X;if(gr(x)){var re="separator"in x?x.separator:re;D="length"in x?Pt(x.length):D,K="omission"in x?cn(x.omission):K}p=ir(p);var ce=p.length;if(qi(p)){var _e=Rn(p);ce=_e.length}if(D>=ce)return p;var Te=D-es(K);if(Te<1)return K;var Pe=_e?bi(_e,0,Te).join(""):p.slice(0,Te);if(re===e)return Pe+K;if(_e&&(Te+=Pe.length-Te),Ho(re)){if(p.slice(Te).search(re)){var Ve,Ke=Pe;for(re.global||(re=ro(re.source,ir($t.exec(re))+"g")),re.lastIndex=0;Ve=re.exec(Ke);)var Ye=Ve.index;Pe=Pe.slice(0,Ye===e?Te:Ye)}}else if(p.indexOf(cn(re),Te)!=Te){var qe=Pe.lastIndexOf(re);qe>-1&&(Pe=Pe.slice(0,qe))}return Pe+K}function l1(p){return p=ir(p),p&&st.test(p)?p.replace(ot,Lh):p}var c1=os(function(p,x,D){return p+(D?" ":"")+x.toUpperCase()}),Xo=xl("toUpperCase");function yc(p,x,D){return p=ir(p),x=D?e:x,x===e?Fh(p)?Hh(p):Er(p):p.match(x)||[]}var wc=Lt(function(p,x){try{return hr(p,e,x)}catch(D){return $o(D)?D:new At(D)}}),h1=ei(function(p,x){return Pr(x,function(D){D=Hn(D),Qn(p,D,Lo(p[D],p))}),p});function u1(p){var x=p==null?0:p.length,D=gt();return p=x?De(p,function(K){if(typeof K[1]!="function")throw new vn(c);return[D(K[0]),K[1]]}):[],Lt(function(K){for(var re=-1;++re<x;){var ce=p[re];if(hr(ce[0],this,K))return hr(ce[1],this,K)}})}function d1(p){return Lu(wn(p,r))}function Wo(p){return function(){return p}}function p1(p,x){return p==null||p!==p?x:p}var m1=Sl(),g1=Sl(!0);function Qr(p){return p}function Vo(p){return qf(typeof p=="function"?p:wn(p,r))}function b1(p){return tl(wn(p,r))}function v1(p,x){return rl(p,wn(x,r))}var y1=Lt(function(p,x){return function(D){return Fs(D,p,x)}}),w1=Lt(function(p,x){return function(D){return Fs(p,D,x)}});function Ko(p,x,D){var K=Fr(x),re=ha(x,K);D==null&&!(gr(x)&&(re.length||!K.length))&&(D=x,x=p,p=this,re=ha(x,Fr(x)));var ce=!(gr(D)&&"chain"in D)||!!D.chain,_e=ri(p);return Pr(re,function(Te){var Pe=x[Te];p[Te]=Pe,_e&&(p.prototype[Te]=function(){var Ve=this.__chain__;if(ce||Ve){var Ke=p(this.__wrapped__),Ye=Ke.__actions__=Yr(this.__actions__);return Ye.push({func:Pe,args:arguments,thisArg:p}),Ke.__chain__=Ve,Ke}return Pe.apply(p,Ge([this.value()],arguments))})}),p}function x1(){return Ct._===this&&(Ct._=Kh),this}function Go(){}function _1(p){return p=Pt(p),Lt(function(x){return nl(x,p)})}var S1=Co(De),E1=Co(Yn),C1=Co(Ot);function xc(p){return Oo(p)?fn(Hn(p)):td(p)}function T1(p){return function(x){return p==null?e:Ri(p,x)}}var A1=Cl(),k1=Cl(!0);function Yo(){return[]}function Zo(){return!1}function M1(){return{}}function R1(){return""}function I1(){return!0}function O1(p,x){if(p=Pt(p),p<1||p>_)return[];var D=L,K=Br(p,L);x=gt(x),p-=L;for(var re=qa(K,x);++D<p;)x(D);return re}function F1(p){return Rt(p)?De(p,Hn):hn(p)?[p]:Yr(Hl(ir(p)))}function P1(p){var x=++Wh;return ir(p)+x}var N1=ba(function(p,x){return p+x},0),D1=To("ceil"),B1=ba(function(p,x){return p/x},1),L1=To("floor");function j1(p){return p&&p.length?ca(p,Qr,co):e}function $1(p,x){return p&&p.length?ca(p,gt(x,2),co):e}function H1(p){return kn(p,Qr)}function z1(p,x){return kn(p,gt(x,2))}function U1(p){return p&&p.length?ca(p,Qr,mo):e}function X1(p,x){return p&&p.length?ca(p,gt(x,2),mo):e}var W1=ba(function(p,x){return p*x},1),V1=To("round"),K1=ba(function(p,x){return p-x},0);function G1(p){return p&&p.length?hi(p,Qr):0}function Y1(p,x){return p&&p.length?hi(p,gt(x,2)):0}return le.after=bp,le.ary=Ql,le.assign=im,le.assignIn=uc,le.assignInWith=Ra,le.assignWith=sm,le.at=am,le.before=ql,le.bind=Lo,le.bindAll=h1,le.bindKey=ec,le.castArray=Mp,le.chain=Yl,le.chunk=Ld,le.compact=jd,le.concat=$d,le.cond=u1,le.conforms=d1,le.constant=Wo,le.countBy=G0,le.create=om,le.curry=tc,le.curryRight=rc,le.debounce=nc,le.defaults=fm,le.defaultsDeep=lm,le.defer=vp,le.delay=yp,le.difference=Hd,le.differenceBy=zd,le.differenceWith=Ud,le.drop=Xd,le.dropRight=Wd,le.dropRightWhile=Vd,le.dropWhile=Kd,le.fill=Gd,le.filter=Z0,le.flatMap=q0,le.flatMapDeep=ep,le.flatMapDepth=tp,le.flatten=Wl,le.flattenDeep=Yd,le.flattenDepth=Zd,le.flip=wp,le.flow=m1,le.flowRight=g1,le.fromPairs=Jd,le.functions=gm,le.functionsIn=bm,le.groupBy=rp,le.initial=qd,le.intersection=e0,le.intersectionBy=t0,le.intersectionWith=r0,le.invert=ym,le.invertBy=wm,le.invokeMap=ip,le.iteratee=Vo,le.keyBy=sp,le.keys=Fr,le.keysIn=Jr,le.map=Ea,le.mapKeys=_m,le.mapValues=Sm,le.matches=b1,le.matchesProperty=v1,le.memoize=Ta,le.merge=Em,le.mergeWith=dc,le.method=y1,le.methodOf=w1,le.mixin=Ko,le.negate=Aa,le.nthArg=_1,le.omit=Cm,le.omitBy=Tm,le.once=xp,le.orderBy=ap,le.over=S1,le.overArgs=_p,le.overEvery=E1,le.overSome=C1,le.partial=jo,le.partialRight=ic,le.partition=op,le.pick=Am,le.pickBy=pc,le.property=xc,le.propertyOf=T1,le.pull=a0,le.pullAll=Kl,le.pullAllBy=o0,le.pullAllWith=f0,le.pullAt=l0,le.range=A1,le.rangeRight=k1,le.rearg=Sp,le.reject=cp,le.remove=c0,le.rest=Ep,le.reverse=Do,le.sampleSize=up,le.set=Mm,le.setWith=Rm,le.shuffle=dp,le.slice=h0,le.sortBy=gp,le.sortedUniq=v0,le.sortedUniqBy=y0,le.split=qm,le.spread=Cp,le.tail=w0,le.take=x0,le.takeRight=_0,le.takeRightWhile=S0,le.takeWhile=E0,le.tap=j0,le.throttle=Tp,le.thru=Sa,le.toArray=lc,le.toPairs=mc,le.toPairsIn=gc,le.toPath=F1,le.toPlainObject=hc,le.transform=Im,le.unary=Ap,le.union=C0,le.unionBy=T0,le.unionWith=A0,le.uniq=k0,le.uniqBy=M0,le.uniqWith=R0,le.unset=Om,le.unzip=Bo,le.unzipWith=Gl,le.update=Fm,le.updateWith=Pm,le.values=cs,le.valuesIn=Nm,le.without=I0,le.words=yc,le.wrap=kp,le.xor=O0,le.xorBy=F0,le.xorWith=P0,le.zip=N0,le.zipObject=D0,le.zipObjectDeep=B0,le.zipWith=L0,le.entries=mc,le.entriesIn=gc,le.extend=uc,le.extendWith=Ra,Ko(le,le),le.add=N1,le.attempt=wc,le.camelCase=jm,le.capitalize=bc,le.ceil=D1,le.clamp=Dm,le.clone=Rp,le.cloneDeep=Op,le.cloneDeepWith=Fp,le.cloneWith=Ip,le.conformsTo=Pp,le.deburr=vc,le.defaultTo=p1,le.divide=B1,le.endsWith=$m,le.eq=On,le.escape=Hm,le.escapeRegExp=zm,le.every=Y0,le.find=J0,le.findIndex=Ul,le.findKey=cm,le.findLast=Q0,le.findLastIndex=Xl,le.findLastKey=hm,le.floor=L1,le.forEach=Zl,le.forEachRight=Jl,le.forIn=um,le.forInRight=dm,le.forOwn=pm,le.forOwnRight=mm,le.get=zo,le.gt=Np,le.gte=Dp,le.has=vm,le.hasIn=Uo,le.head=Vl,le.identity=Qr,le.includes=np,le.indexOf=Qd,le.inRange=Bm,le.invoke=xm,le.isArguments=Fi,le.isArray=Rt,le.isArrayBuffer=Bp,le.isArrayLike=Zr,le.isArrayLikeObject=wr,le.isBoolean=Lp,le.isBuffer=vi,le.isDate=jp,le.isElement=$p,le.isEmpty=Hp,le.isEqual=zp,le.isEqualWith=Up,le.isError=$o,le.isFinite=Xp,le.isFunction=ri,le.isInteger=sc,le.isLength=ka,le.isMap=ac,le.isMatch=Wp,le.isMatchWith=Vp,le.isNaN=Kp,le.isNative=Gp,le.isNil=Zp,le.isNull=Yp,le.isNumber=oc,le.isObject=gr,le.isObjectLike=br,le.isPlainObject=js,le.isRegExp=Ho,le.isSafeInteger=Jp,le.isSet=fc,le.isString=Ma,le.isSymbol=hn,le.isTypedArray=ls,le.isUndefined=Qp,le.isWeakMap=qp,le.isWeakSet=em,le.join=n0,le.kebabCase=Um,le.last=_n,le.lastIndexOf=i0,le.lowerCase=Xm,le.lowerFirst=Wm,le.lt=tm,le.lte=rm,le.max=j1,le.maxBy=$1,le.mean=H1,le.meanBy=z1,le.min=U1,le.minBy=X1,le.stubArray=Yo,le.stubFalse=Zo,le.stubObject=M1,le.stubString=R1,le.stubTrue=I1,le.multiply=W1,le.nth=s0,le.noConflict=x1,le.noop=Go,le.now=Ca,le.pad=Vm,le.padEnd=Km,le.padStart=Gm,le.parseInt=Ym,le.random=Lm,le.reduce=fp,le.reduceRight=lp,le.repeat=Zm,le.replace=Jm,le.result=km,le.round=V1,le.runInContext=Oe,le.sample=hp,le.size=pp,le.snakeCase=Qm,le.some=mp,le.sortedIndex=u0,le.sortedIndexBy=d0,le.sortedIndexOf=p0,le.sortedLastIndex=m0,le.sortedLastIndexBy=g0,le.sortedLastIndexOf=b0,le.startCase=e1,le.startsWith=t1,le.subtract=K1,le.sum=G1,le.sumBy=Y1,le.template=r1,le.times=O1,le.toFinite=ni,le.toInteger=Pt,le.toLength=cc,le.toLower=n1,le.toNumber=Sn,le.toSafeInteger=nm,le.toString=ir,le.toUpper=i1,le.trim=s1,le.trimEnd=a1,le.trimStart=o1,le.truncate=f1,le.unescape=l1,le.uniqueId=P1,le.upperCase=c1,le.upperFirst=Xo,le.each=Zl,le.eachRight=Jl,le.first=Vl,Ko(le,function(){var p={};return jn(le,function(x,D){sr.call(le.prototype,D)||(p[D]=x)}),p}(),{chain:!1}),le.VERSION=d,Pr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(p){le[p].placeholder=le}),Pr(["drop","take"],function(p,x){Xt.prototype[p]=function(D){D=D===e?1:Rr(Pt(D),0);var K=this.__filtered__&&!x?new Xt(this):this.clone();return K.__filtered__?K.__takeCount__=Br(D,K.__takeCount__):K.__views__.push({size:Br(D,L),type:p+(K.__dir__<0?"Right":"")}),K},Xt.prototype[p+"Right"]=function(D){return this.reverse()[p](D).reverse()}}),Pr(["filter","map","takeWhile"],function(p,x){var D=x+1,K=D==J||D==M;Xt.prototype[p]=function(re){var ce=this.clone();return ce.__iteratees__.push({iteratee:gt(re,3),type:D}),ce.__filtered__=ce.__filtered__||K,ce}}),Pr(["head","last"],function(p,x){var D="take"+(x?"Right":"");Xt.prototype[p]=function(){return this[D](1).value()[0]}}),Pr(["initial","tail"],function(p,x){var D="drop"+(x?"":"Right");Xt.prototype[p]=function(){return this.__filtered__?new Xt(this):this[D](1)}}),Xt.prototype.compact=function(){return this.filter(Qr)},Xt.prototype.find=function(p){return this.filter(p).head()},Xt.prototype.findLast=function(p){return this.reverse().find(p)},Xt.prototype.invokeMap=Lt(function(p,x){return typeof p=="function"?new Xt(this):this.map(function(D){return Fs(D,p,x)})}),Xt.prototype.reject=function(p){return this.filter(Aa(gt(p)))},Xt.prototype.slice=function(p,x){p=Pt(p);var D=this;return D.__filtered__&&(p>0||x<0)?new Xt(D):(p<0?D=D.takeRight(-p):p&&(D=D.drop(p)),x!==e&&(x=Pt(x),D=x<0?D.dropRight(-x):D.take(x-p)),D)},Xt.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},Xt.prototype.toArray=function(){return this.take(L)},jn(Xt.prototype,function(p,x){var D=/^(?:filter|find|map|reject)|While$/.test(x),K=/^(?:head|last)$/.test(x),re=le[K?"take"+(x=="last"?"Right":""):x],ce=K||/^find/.test(x);re&&(le.prototype[x]=function(){var _e=this.__wrapped__,Te=K?[1]:arguments,Pe=_e instanceof Xt,Ve=Te[0],Ke=Pe||Rt(_e),Ye=function(zt){var Vt=re.apply(le,Ge([zt],Te));return K&&qe?Vt[0]:Vt};Ke&&D&&typeof Ve=="function"&&Ve.length!=1&&(Pe=Ke=!1);var qe=this.__chain__,lt=!!this.__actions__.length,vt=ce&&!qe,Bt=Pe&&!lt;if(!ce&&Ke){_e=Bt?_e:new Xt(this);var yt=p.apply(_e,Te);return yt.__actions__.push({func:Sa,args:[Ye],thisArg:e}),new yn(yt,qe)}return vt&&Bt?p.apply(this,Te):(yt=this.thru(Ye),vt?K?yt.value()[0]:yt.value():yt)})}),Pr(["pop","push","shift","sort","splice","unshift"],function(p){var x=Ys[p],D=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",K=/^(?:pop|shift)$/.test(p);le.prototype[p]=function(){var re=arguments;if(K&&!this.__chain__){var ce=this.value();return x.apply(Rt(ce)?ce:[],re)}return this[D](function(_e){return x.apply(Rt(_e)?_e:[],re)})}}),jn(Xt.prototype,function(p,x){var D=le[x];if(D){var K=D.name+"";sr.call(is,K)||(is[K]=[]),is[K].push({name:x,func:D})}}),is[ga(e,v).name]=[{name:"wrapper",func:e}],Xt.prototype.clone=lu,Xt.prototype.reverse=cu,Xt.prototype.value=hu,le.prototype.at=$0,le.prototype.chain=H0,le.prototype.commit=z0,le.prototype.next=U0,le.prototype.plant=W0,le.prototype.reverse=V0,le.prototype.toJSON=le.prototype.valueOf=le.prototype.value=K0,le.prototype.first=le.prototype.head,Ts&&(le.prototype[Ts]=X0),le},ts=zh();Jt?((Jt.exports=ts)._=ts,Et._=ts):Ct._=ts}).call(Nt)})(Za,Za.exports);var kf=Za.exports;function Ch(N){N=N.replace("#","");for(var b=N.match(/../g),e=0;e<3;e++)b[e]=parseInt(b[e],16);return b}function Th(N,b,e){for(var d=[N.toString(16),b.toString(16),e.toString(16)],m=0;m<3;m++)d[m].length==1&&(d[m]="0"+d[m]);return"#"+d.join("")}function Zv(N,b){for(var e=Ch(N),d=0;d<3;d++)e[d]=Math.floor(e[d]*(1-b));return Th(e[0],e[1],e[2])}function Jv(N,b){for(var e=Ch(N),d=0;d<3;d++)e[d]=Math.floor((255-e[d])*b+e[d]);return Th(e[0],e[1],e[2])}const rf=["#FFFFFF","#000000","#BFBFBF","#323232","#4472C4","#ED7D31","#A5A5A5","#FFC000","#5B9BD5","#71AD47"],nf=["#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","#FFFFFF"];let Qv=80,qv=24;function gy(N,b={}){return ey(Z1(N),b)}function ey(N,b){return new Promise(function(e,d){const m=new XMLHttpRequest;m.open(b.method||"GET",N,!0),m.responseType=b.responseType||"arraybuffer",m.onload=function(){m.status===200?e(m.response):d(m.status)},m.onerror=function(){d(m.status)},m.withCredentials=b.withCredentials||!1,b.headers&&Object.keys(b.headers).forEach(function(f){m.setRequestHeader(f,b.headers[f])}),m.send(b.body)})}function by(N){try{return new Cv.Workbook().xlsx.load(N)}catch(b){return console.warn(b),Promise.reject(b)}}function ty(N,b,e){for(let d=0;d<(N.columns||[]).length;d++)b.cols[d.toString()]={},N.columns[d].width?b.cols[d.toString()].width=N.columns[d].width*6+(e.widthOffset||0):b.cols[d.toString()].width=Qv+(e.widthOffset||0);b.cols.len=Math.max(Object.keys(b.cols).length,e.minColLength||0)}function ry(N){let{numFmt:b,value:e,type:d}=N;switch(d){case 2:try{if(N.style.numFmt){if(N.style.numFmt.endsWith("%")){let m=N.style.numFmt.match(/\.(\d+)%/);return m?(e*100).toFixed(m[1].length)+"%":e*100+"%"}else if(/0(\.0+)?/.test(N.style.numFmt)){let m="";if(N.style.numFmt.startsWith("$")?m="$":N.style.numFmt.startsWith('"¥')&&(m="¥"),e===0&&N.style.numFmt.startsWith("_"))return"-";let f=N.style.numFmt.match(/0\.(0+)(_|;|$)/);f?f=f[1].length:f=0;let c=e.toFixed(f)+"";if(N.style.numFmt.includes("#,##")){c=c.split(".");let u=c[0].split("").reverse(),s=[];for(let t=0;t<u.length;t++)s.push(u[t]),(t+1)%3===0&&t<u.length-1&&u[t+1]!=="-"&&s.push(",");c[0]=s.reverse().join(""),c=c.join(".")}return m+c}}return e+""}catch{return e}case 3:return e;case 4:switch(b){case"yyyy-mm-dd;@":return Pi(e).format("YYYY-MM-DD");case"mm-dd-yy":return Pi(e).format("YYYY/MM/DD");case"[$-F800]dddd, mmmm dd, yyyy":return Pi(e).format("YYYY年M月D日 ddd");case'm"月"d"日";@':return Pi(e).format("M月D日");case"yyyy/m/d h:mm;@":case'm/d/yy "h":mm':return Pi(e).subtract(8,"hour").format("YYYY/M/DD HH:mm");case"h:mm;@":return Pi(e).format("HH:mm");default:return Pi(e).format("YYYY-MM-DD")}case 5:return e.text;case 6:return kf.get(e,"result.error")||e.result;case 8:return N.text;case 9:return N.text.toUpperCase();default:return e}}function sf(N){if(typeof N=="object")return"#000000";if(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.test(N))return N.startsWith("#")?N:"#"+N;N=N.trim().toLowerCase();let b={};try{let e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(N);return b.r=parseInt(e[2],16),b.g=parseInt(e[3],16),b.b=parseInt(e[4],16),b.a=parseInt(e[1],16)/255,ut(`rgba(${b.r}, ${b.g}, ${b.b}, ${b.a})`).toHexString()}catch(e){console.warn(e)}}function af(N,b){return N>9?"#C7C9CC":typeof b>"u"?rf[N]:b>0?Jv(rf[N],b):Zv(rf[N],Math.abs(b))}function ny(N){N.style=kf.cloneDeep(N.style);let b=null;N.style.fill&&N.style.fill.fgColor&&(N.style.fill.fgColor.argb?b=sf(N.style.fill.fgColor.argb):N.style.fill.fgColor.hasOwnProperty("theme")?b=af(N.style.fill.fgColor.theme,N.style.fill.fgColor.tint):N.style.fill.fgColor.indexed?b=nf[N.style.fill.fgColor.indexed]||"#C7C9CC":b="#C7C9CC"),b&&(N.style.bgcolor=b);let e=null;if(N.style.font&&N.style.font.color&&(N.style.font.color.argb?e=sf(N.style.font.color.argb):N.style.font.color.hasOwnProperty("theme")?e=af(N.style.font.color.theme,N.style.font.color.tint):N.style.font.color.indexed?e=nf[N.style.font.color.indexed]||"#000000":e="#000000"),e&&(N.style.color=e),N.style.alignment&&(N.style.alignment.horizontal&&(N.style.align=N.style.alignment.horizontal),N.style.alignment.vertical&&(N.style.valign=N.style.alignment.vertical)),N.style.alignment&&N.style.alignment.wrapText&&(N.style.textwrap=!0),N.style.border){let d={};Object.keys(N.style.border).forEach(m=>{let f=N.style.border[m],c="#000000";typeof f.color=="string"?c=f.color:f.color&&(f.color.argb?c=sf(f.color.argb):f.color.hasOwnProperty("theme")?c=af(f.color.theme,f.color.tint):f.color.indexed&&(c=nf[f.color.indexed])),d[m]=[f.style||"thin",c]}),N.style.border2={...N.style.border},N.style.border=d}return N.style}function vy(N,b){let e=[],d=[];return N.eachSheet(m=>{d.push(m);let f={name:m.name,styles:[],rows:{},cols:{},merges:[],media:[]},c=[];for(let s in m._merges){f.merges.push(m._merges[s].shortRange);let t={};t.startAddress=m._merges[s].tl,t.endAddress=m._merges[s].br,t.YRange=m._merges[s].model.bottom-m._merges[s].model.top,t.XRange=m._merges[s].model.right-m._merges[s].model.left,c.push(t)}ty(m,f,b),(m._rows||[]).forEach((s,t)=>{f.rows[t]={cells:{}},s.height?f.rows[t].height=s.height+(b.heightOffset||0):f.rows[t].height=qv+(b.heightOffset||0),(s._cells||[]).forEach((n,r)=>{f.rows[t].cells[r]={};let i=kf.find(c,function(o){return o.startAddress==n._address});i&&n.master.address!=i.startAddress||(i&&(f.rows[t].cells[r].merge=[i.YRange,i.XRange]),f.rows[t].cells[r].text=ry(n),f.styles.push(ny(n)),f.rows[t].cells[r].style=f.styles.length-1)})}),f._media&&(f.media=f._media);let u=Object.keys(f.rows);f.rows.len=Math.max(+u[u.length-1]+1,b.hasOwnProperty("minRowLength")?b.minRowLength:100),e.push(f)}),N._worksheets=d,{workbookData:e,workbookSource:N,medias:N.media||[]}}let $a=[];function yy(N,b,e,d,m={}){e&&e._media.length&&e._media.forEach(f=>{let{imageId:c,range:u,type:s}=f;if(s==="image"){let t=iy(e,u,d,m);sy(N,c,b[c],t)}})}let Ha=60,za=25,of=80,ff=24,Un=window.devicePixelRatio;function iy(N,b,e,d){var E,I,F,B,j,X,G,V,J,H,M,T,_,A;let{widthOffset:m,heightOffset:f}=d,{tl:c={},br:u={}}=b,{nativeCol:s,nativeColOff:t,nativeRow:n,nativeRowOff:r}=c,i=Ha,o=za;for(let P=0;P<s;P++)i+=((I=(E=N==null?void 0:N._columns)==null?void 0:E[P])==null?void 0:I.width)*6||of,i+=m||0;for(let P=0;P<n;P++)o+=((B=(F=N==null?void 0:N._rows)==null?void 0:F[P])==null?void 0:B.height)||ff,o+=f||0;let l=i+t/12700,a=o+r/12700,{nativeCol:g,nativeColOff:v,nativeRow:h,nativeRowOff:w}=u,y;if(s===g)y=(v-t)/12700;else{y=(((X=(j=N==null?void 0:N._columns)==null?void 0:j[s])==null?void 0:X.width)*6||of)-t/12700;for(let P=s+1;P<g;P++)y+=((V=(G=N==null?void 0:N._columns)==null?void 0:G[P])==null?void 0:V.width)*6||of;y+=v/12700}let S;if(n===h)S=(w-r)/12700;else{S=(((H=(J=N==null?void 0:N._rows)==null?void 0:J[n])==null?void 0:H.height)||ff)-r/12700;for(let P=n+1;P<h;P++)S+=((T=(M=N==null?void 0:N._rows)==null?void 0:M[P])==null?void 0:T.height)||ff;S+=w/12700}return{x:(l-(((_=e==null?void 0:e.scroll)==null?void 0:_.x)||0))*Un,y:(a-(((A=e==null?void 0:e.scroll)==null?void 0:A.y)||0))*Un,width:y*Un,height:S*Un}}function wy(){$a=[]}function sy(N,b,e,d){ay(b,e).then(m=>{let f=0,c=0,u=m.width,s=m.height,t=d.x,n=d.y,r=d.width,i=d.height,o=r/u,l=i/s;if(t<Ha*Un){let a=Ha*Un-t;t=Ha*Un,r-=a,u-=a/o,f+=a/o}if(n<za*Un){let a=za*Un-n;n=za*Un,i-=a,s-=a/l,c+=a/l}N.drawImage(m,f,c,u,s,t,n,r,i)}).catch(m=>{console.error(m)})}function ay(N,b){return new Promise((e,d)=>{if($a[N])return e($a[N]);const{buffer:m}=b.buffer;let f=new Blob([m],{type:"image/"+b.extension}),c=URL.createObjectURL(f),u=new Image;u.src=c,u.onload=function(){e(u),$a[N]=u},u.onerror=function(s){d(s)}})}function xy(N){if(N){let b=N.querySelectorAll("input");for(let e of b)e&&!e.readOnly&&(e.readOnly=!0);document.activeElement&&document.activeElement.blur()}}export{Sv as S,yy as a,by as b,wy as c,gy as g,kf as l,xy as r,vy as t};
|